On 04/27/2008 03:05:38 PM, William Estrada wrote:

  Now I want to
> 
> > use the unit with the soekris, but Whatever I try, somehow I can't
> get
> > the software (shell script) to talk to the serial device

I'm jumping into the middle of this without looking at details,
but I did just setup a soekris box with OpenBSD.
In my case the soekris serial port (com0) is /dev/console.  You want
to look at /etc/ttys to setup the serial device, and probably
use a "terminal class" defined in /etc/gettytab.  I came
up with a /etc/ttys line like:

console "/usr/libexec/getty std.9600"         vt220   on secure

I've got /etc/boot.conf with:
stty com0 9600
set tty com0

You may not want the console on the serial port (or maybe
you're using the second serial port, uh, jp4?).
In that case /etc/ttys should have the "console"
line "off".   Anyhow, you'll either be using /dev/tty00 (or
/dev/tty01), if the serial device is doing the initiation and
the talking, or, more likely, your script is doing the talking
and you want to use /dev/cua00 (or /dev/cua01).  See "man 4 tty".

The other trick is to begin by using minicom (in ports)
to talk to your device manually.  Start by turning all flow control
off and then add back what you need.  You can also do something
like "ttys -a < /dev/cua00" to see what the settings are on a
particular serial port.  Something like "cat - < /dev/tty00 &"
can also be handy, as can tip.

RS232 gets grody quick.  I suspect I can use "rtscts" at the
end of the /etc/ttys line along with a null modem cable
that swaps rts and cts when connecting to my PC to use
the RTS line for hardware flow control, hardware flow
control almost always being the best choice.  I've not
fully tested this yet, but I do notice the the OpenBSD
boot program does not like this.  Only one char gets
echoed and the rest buffer on the soekris until I turn
off hardware flow control in minicom.  (Or maybe
it's a DTR/DCD issue.  *sigh*.)

This looks exactly like the error you're getting, so
there's probably a hardware flow control issue.
Seems to me you want hardware flow control off.
(/etc/ttys line has softcar?)

Karl <[EMAIL PROTECTED]>
Free Software:  "You don't pay back, you pay forward."
                  -- Robert A. Heinlein
_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech

Reply via email to