Koozali.org: home of the SME Server

Serial port configuration

Offline jlopes

  • 1
  • +0/-0
Serial port configuration
« on: January 18, 2007, 12:19:01 PM »
I have a problem connecting an old serial device (a weighing machine).

I tested telnet from another computer with the same cable and the communication is correct when I use de default settings.

It seems I can’t use the correct options and commands to configure the serial port. I tried to use a line on inittab with “m:2345:off:/sbin/agetty 9600 ixon …. ttyS1”;
I tried to put the stty line on rc.local.

I think setserial command does not allow all the parameters I need…
I think there is another issue about controlling the flow between the devices and maybe another one with UART capability of devices.

On SCO Openserver I used to turn around the problem editing the S80lp file and introduce the following line:
(stty 9600 ixon ixoff –ixany parenb cs7 ; while :; do sleep 3600 ; done) </dev/tty2a &


Can please someone help me in this case?

Offline Gaston94

  • *****
  • 184
  • +0/-0
Re: Serial port configuration
« Reply #1 on: January 19, 2007, 09:19:46 PM »
Hi,
I cannot help you very far but I wouldn't have expect to write this :
Quote from: "jlopes"
I tried to use a line on inittab with “m:2345:off:/sbin/agetty 9600 ixon …. ttyS1”;

but more likely something like
Code: [Select]
m:2345:respawn:/sbin/agetty 9600
hope this can help

G.