[SWLUG] Serial ports

Steve Anderson steve at twindx.com
Mon Jul 31 12:42:58 UTC 2006


Hiya LUGarinos.

Real quick[1] question, hopefully a real simple answer. I've got an
old till display hooked up to the serial port on a PC. It's configured
to 38400 bps, 8-N-1, no flow control. On Windows I can run Hyperterm
on COM1, select those settings, type away and the letters come up on
the display. I could probably set those settings as the default for
the port and redirect echos at the serial port.

Under Linux, what I want to do is configure /dev/ttyS0 to those
settings and get the same result. Having looked around it looks like
"stty" or possibly "setserial" will let me get the settings correct
but I'm having difficulty following what's going on, because most (if
not all) of the resources I've found are talking about having a
terminal hooked up to the serial port and seem to be aimed more at
that particular kettle of fish.

So, has anyone got any advice/experience they can share? The machine
it's going to go on has no X server installed, so please stick to
console-friendly methods!

Steve

[1] Quick question with a very long preamble, I admit.

-- 
Irregular Shed - http://www.twindx.com



More information about the Swlug mailing list