Results 1 to 4 of 4

Thread: Setting of comm ports - adding second com port - redirection

  1. #1
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    Midlands, UK
    Posts
    145

    Setting of comm ports - adding second com port - redirection

    I've found 'lx-viewer' which should let me view and plot '.DXF' format CAD files to my HP (hpgl) plotter. A couple of things are stopping me from doing this! How do I set up baud, parity, bits and handshaking on my serial port, how do I get the second coms port recognised by Knoppix and what is the best way of outputting the plot file to the device?

    cp plot.hpgl /dev/ttys0 ?????

    Many thanks, I'll do a 'google' in the meantime!

    Stu.....

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: Setting of comm ports - adding second com port - redirec

    --See ' man setserial ', and /etc/init.d/setserial. To check your serial port current config:
    ' setserial -a /dev/ttyS0 ' as root.

    --You can also:
    ' cat /proc/tty/driver/serial ' as any user:
    serinfo:1.0 driver:5.05c revision:2001-07-08
    0: uart:16550A port:3F8 irq:4 baud:9600 tx:8 rx:60 brk:3
    1: uart:16550A port:2F8 irq:3 baud:9600 tx:6 rx:0

    --From google, here is example of something you could put into /etc/serial.conf:
    /dev/ttyS0 uart 16550A port 0x03f8 irq 4 baud_base 115200 spd_normal skip_test

    --As far as getting the plot to the device, maybe use cat(?) But you did say lx-viewer should let you do the plot directly to the device...

    Quote Originally Posted by stukennedyuk
    I've found 'lx-viewer' which should let me view and plot '.DXF' format CAD files to my HP (hpgl) plotter. A couple of things are stopping me from doing this! How do I set up baud, parity, bits and handshaking on my serial port, how do I get the second coms port recognised by Knoppix and what is the best way of outputting the plot file to the device?

    cp plot.hpgl /dev/ttys0 ?????

    Many thanks, I'll do a 'google' in the meantime!

    Stu.....

  3. #3
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    Midlands, UK
    Posts
    145
    Thanks for that. I found a command 'stty' - set tty (set teletype) which lets you change bits per second, parity and handshake. e.g.

    stty 19200 cs8 -parenb crtscts -echo -F /dev/ttyS0

    -would set baud to 19200, number of bits to 8, turn parity off, e.g. 'none'set hardware handshake and turn off echo on serial port ttyS0 (the first one)

    Stu.....

  4. #4
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    Midlands, UK
    Posts
    145
    Looking at the qcad website (http://www.ribbonsoft.com/qcad.html) shows that support for hp/gl is postponed. LX-viewer will open qcad .dxf files and will output them to the plotter (use print to file first them cat filename.hpgl /dev/ttySx ) but it's not a practical solution, for a couple of reasons. (font scaling and pen handling).

    Time to check out some other cad packages!

    Just thought you'd like to know!

    Stu.....

Similar Threads

  1. Rear USB ports do not work?
    By Maverik in forum General Support
    Replies: 0
    Last Post: 04-02-2005, 07:31 AM
  2. How to get a list of parrallel port and serial port?
    By kn2user in forum General Support
    Replies: 0
    Last Post: 12-06-2004, 06:43 PM
  3. OFF TOPIC: Port Redirection
    By hernan in forum General Support
    Replies: 1
    Last Post: 09-17-2004, 07:40 PM
  4. How to open ports for eetee P2P :(
    By cortechs in forum Networking
    Replies: 2
    Last Post: 03-04-2004, 09:06 AM
  5. I need help closing ports
    By jojo in forum General Support
    Replies: 3
    Last Post: 02-23-2004, 11:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Genuine IBM ThinkPad Trackpoint Tip Cap Pack 91P8421 NEW OLD STOCK -SEALED - OEM picture

Genuine IBM ThinkPad Trackpoint Tip Cap Pack 91P8421 NEW OLD STOCK -SEALED - OEM

$8.88



Vintage IBM 5140 PC Convertible Power Supply AC Adapter Charger 2684292 OEM picture

Vintage IBM 5140 PC Convertible Power Supply AC Adapter Charger 2684292 OEM

$39.99



IBM 5763-SS1 R02M00 AS/400 Cumulative PTFS Operating System/400 V3 LOT 6 OEM New picture

IBM 5763-SS1 R02M00 AS/400 Cumulative PTFS Operating System/400 V3 LOT 6 OEM New

$999.99



2025 NEW Genuine OEM BATTERY for IBM 00Y4643 00Y4594 90Y7689 90Y7632 V3700 V3500 picture

2025 NEW Genuine OEM BATTERY for IBM 00Y4643 00Y4594 90Y7689 90Y7632 V3700 V3500

$119.00



IBM Face Plate for OEM IMI 5012H 10MB MFM 5.25

IBM Face Plate for OEM IMI 5012H 10MB MFM 5.25" Full Height Hard Disk Drive

$29.99



IBM 6450350 OEM PS/2 2-Button Ball Mouse NEW NOS Made in Japan picture

IBM 6450350 OEM PS/2 2-Button Ball Mouse NEW NOS Made in Japan

$19.99



IBM OEM Genuine 1969-009 CD Driver  Untested As PARTS. Read Description. picture

IBM OEM Genuine 1969-009 CD Driver Untested As PARTS. Read Description.

$32.99



IBM OEM Genuine 1969-010 CD Driver  Untested picture

IBM OEM Genuine 1969-010 CD Driver Untested

$40.49



IBM Genuine OEM Network Printer 12 Toner Cartridge 63H3005 Printer Ink - NEW  picture

IBM Genuine OEM Network Printer 12 Toner Cartridge 63H3005 Printer Ink - NEW

$119.58



NEW IBM Lenovo T61 14in 4;3 NOT WIDE motherboard  T601F FRANKENPAD 44C3924 OEM picture

NEW IBM Lenovo T61 14in 4;3 NOT WIDE motherboard T601F FRANKENPAD 44C3924 OEM

$299.95