To set serial speed and generally control serial line parameters from a
terminal you need "stty" which is not part of the flash image but is on the
usbstick or cf. setserial only deals with hardware issues such as hardware
address, device type etc.
stty 19200 < /dev/ttyAM0
stty -a < /dev/ttyAM0 to list all current settings
Bob
On Saturday 11 June 2005 17:49, Daniel Smolik wrote:
> mwg0627 napsal(a):
> > I have the TS-7250 model and I am trying to communicate through the
> > serial port. My serial device requires the baud rate to be set to
> > 19200. I have disabled getty in inittab so nothing else is using the
> > serial port. I have had no success setting /dev/ttyAM0 to this rate.
> >
> > This is what I've done.
> >
> > After reboot:
> >
> > # setserial /dev/ttyAM0 -G
> > /dev/ttyAM0 uart undefined port 0x0000 irq 52 baud_base 921600 spd_normal
> >
> > The 'setserial' man page says that baud_base is CLK / 16. Which clock?
> > It may be that I don't really understand how to set this parameter.
> > Anyhow, since the default baud rate is 115200 I figure baud_base is
> > being divided by 8 (921600 / 8 = 115200). So I try, 8 * 19200 =
> > 153600,
> >
> > # setserial /dev/ttyAM0 baud_base 153600
> >
> > Doesn't work.
> >
> > Next, I try,
> >
> > # setserial /dev/ttyAM0 baud_base 19200
> >
> > Doesn't work.
> >
> > So, the simple question is how can I set the baud rate of COM1 to
> > 19200? Or is there some other reason why I can't communicate on COM1?
> >
> >
> > Thanks,
> > Mike
>
> Hi,
> why do you using setserial ? I have GSM modem connected to the same
> port and board and run mgetty + pppd without any problem. I don't use
> setserial.
>
> Dan
>
> > Yahoo! Groups Links
>
> Yahoo! Groups Links
>
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|