[sllug-members]: error message

Matt Warnock mwarnock at ridgecrestherbals.com
Fri Jan 15 09:31:27 MST 2010


You just ran stty on the default, /dev/console, which isn't helpful.  In
the first place, the console is a serial emulation, not a serial port,
so the 38400 port speed is meaningless.

As usual, "man stty" is your friend.  You'll also want to run:

stty -a /dev/ttyS0
stty -a /dev/ttyS1
stty -a /dev/ttyS2

and examine the output.  If S0 is working and S3 isn't, see what the
differences are.  I assume you HAVE a physical S3, but that isn't
standard on any recent computer I know of.  So if you added it, is the
hardware working?  What do 'dmesg|grep serial' or 'dmesg|grep ttyS[0-4]'
tell you?  Is the hardware even there?

Here is the result of 'dmesg|grep serial' on a desktop machine (my
laptop has no serial ports at all).

[    0.808093] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.808187] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

Hmm, using the same interrupts that they always did.  This is a blast
from the past, I haven't futzed with a serial port in about 10 years.
If you don't see ttyS3 in your output, there is your FIRST problem.

Once you know the hardware is working, 'stty -a /dev/ttyS3' will tell
you the baud rate, data/parity/stop bits (usually 8n1) that the serial
port needs to be set to to interoperate with your equipment, whatever it
is.  You'll also need to set RTS/CTS or XON/XOFF correctly (hardware or
software flow control) or you'll lose data.

Welcome to the bad old days of serial interface programming.  ;-}


On Fri, 2010-01-15 at 07:47 -0700, jack b friend wrote:
> On Thu, 2010-01-14 at 22:00 -0700, Matt Warnock wrote:
> > IIRC, way back in the day, com1&3 shared an interrupt, as did com2&4,
> > and on SOME systems, you couldn't use both at once.  But that was a LONG
> > time ago.  Aren't they smarter now?  But then again, its a rare machine
> > now that even HAS three serial ports.
> > 
> > I think you can use the old 'stty -a' command to find out how these
> > ports are set, and try to set them manually.  Are you trying to drive it
> > at 480000 bps on a port that maxes out at 115200 or 230400?
> 
> here is the report Matt:
> 
> jack at jack-desktop:~$ stty -a
> speed 38400 baud; rows 24; columns 80; line = 0;
> intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2
> = M-^?;
> swtch = M-^?; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
> lnext = ^V; flush = ^O; min = 1; time = 0;
> -parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
> -ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
> -ixoff
> -iuclc ixany imaxbel iutf8
> opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
> vt0 ff0
> isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
> -echoprt
> echoctl echoke
> jack at jack-desktop:~$ 
> 
> whatever that means
> thank you
> jack
> 
> 
> > 
> > On Thu, 2010-01-14 at 21:21 -0700, Jarom Hatch wrote:
> > > ttyS0 and ttyS2 are serial ports, usually mapped to the equivalent of
> > > com1 and com3 respectively.  Does xlog use the serial port?  And if so,
> > > is your port defined as com1 (ttyS0) or com3 (ttyS2)?
> > > 
> > > Jarom
> > > 
> > > jack b friend wrote:
> > > > "an error occured while opening port /dev/ttyS2: invalid configuration"
> > > > 
> > > > does anyone know a way to find out what that means?
> > > > 
> > > > the software is "Xlog"--ham radio logging program. that same port is
> > > > used successfully by Windows when i boot to Win XP and a logging program
> > > > running in that OS.
> > > > 
> > > > i am running Ubuntu 9.10. /dev/ttyS0 is successfully used by "cwdaemon"
> > > > for another ham radio application.
> > > > 
> > > > is there a conflict between S0 and S2?
> > > > 
> > > > thanks
> > > > jack
> > > > 
> > > > 
> > > > ______________________________________________________________________
> > > > See http://www.sllug.org/ for latest SLLUG news, information, links.
> > > > Join SLLUG and other UT LUG members on irc.FreeNode.net channel #Utah
> > > > sllug-members at sllug.org
> > > > http://www.sllug.org/cgi-bin/mailman/listinfo/sllug-members
> > > 
> > > ______________________________________________________________________
> > > See http://www.sllug.org/ for latest SLLUG news, information, links.
> > > Join SLLUG and other UT LUG members on irc.FreeNode.net channel #Utah
> > > sllug-members at sllug.org
> > > http://www.sllug.org/cgi-bin/mailman/listinfo/sllug-members
> > 
> > 
> 
> 
> 
> ______________________________________________________________________
> See http://www.sllug.org/ for latest SLLUG news, information, links.
> Join SLLUG and other UT LUG members on irc.FreeNode.net channel #Utah
> sllug-members at sllug.org
> http://www.sllug.org/cgi-bin/mailman/listinfo/sllug-members


-- 
Matt Warnock <mwarnock at ridgecrestherbals.com>
RidgeCrest Herbals, Inc.



More information about the sllug-members mailing list