terminal to a serial port

Martijn van Oosterhout kleptog at svana.org
Thu Feb 14 23:25:24 EST 2002


On Thu, Feb 14, 2002 at 10:41:45PM +1100, Kim Holburn wrote:

> I want to open a terminal session to a serial port.  I can't see how to do
> it.  This is easy in Windows 9+ or 2K.  I use hyperterm.
> 
> I tried minicom but it insists trying to talk to a modem.  I don't have a
> modem connected, just a device with a serial port.  I just want a direct
> connection to the serial port, to have a window acting as a terminal
> emulator.  How hard is that?  I take it that the serial ports are
> /dev/ttyS0 ans /dev/ttyS1 .  If I try and read one I just get an error:

Minicom will try to initialise a modem by sending ATZ but it works exactly
like a terminal emulator after. If you look in the configuration  of minicom
you can disable the init strings.

While modems will autosense the bit rate, other components are not so
intelligent. 9600N81 is a very common setup. As for the I/O errors:

> > tail -f /dev/ttyS0
> tail: /dev/ttyS0: Input/output error
> tail: tail.c:728: recheck: Assertion `valid_file_spec (f)' failed.
> Abort

Are your serial ports configured? Use setserial to check that they actually
are detected OK. The assert failure is wierd but the file isn't openable.

Oh, ttyS0 is COM1 and ttyS1 is COM2.

HTH,

-- 
Martijn van Oosterhout <kleptog at svana.org>
http://svana.org/kleptog/
> Terrorists can only take my life. Only my government can take my freedom.




More information about the linux mailing list