[Rxtx] Baud rate problem
Andy Eskelson
andyyahoo at g0poy.co.uk
Sat Apr 28 19:15:34 MDT 2012
It is highly unlikely that 38400 would not be supported, it's a standard
bitrate.
If in doubt, this can be tested via minicom which is a perfectly good
terminal program. very basic, very like the old DOS procom terminal.
If you have never run this before, run as root, that makes things
easier. ctl-A Z O will get to the setup screen. then you can select
device, and bitrates.
If you want to run as a normal user, then if I remember correctly you
need to run as root first, then save the config file in the users
home directory. After that i6t will run as a nor5mal users (providing the
user is a member of the correct groups. uucp, and dialout (depends on
distro)
Andy
On Sat, 28 Apr 2012 14:47:07 +0200
"M.Dec-GM" <mariusz.dec at gmail.com> wrote:
> Hi all,
> It looks very mysterious - computer can not divide factors for 38400 and
> divides good for other bauds????
> Have you checked connected device?
> Maybe there is not really 38400 and something near and therefore there is a
> difference between RXTX versions.
>
> Or there is a problem in this particular Linux distibution where obtaining
> this baud rate in system doesn't work.
>
> Try to connect at this speed without Java and check if works.
>
> Mariusz
>
>
>
> ----- Original Message -----
> From: "Marcin" <depmar at poczta.onet.pl>
> To: <rxtx at qbang.org>
> Sent: Saturday, April 28, 2012 9:22 AM
> Subject: Re: [Rxtx] Baud rate problem
>
>
> >I also have problems with 38400 baud rate on Linux. It works fine with
> > 2.1.7r2 but not with 2.2-pre2.
> >
> > -----Original Message-----
> > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of
> > Mike Markowski
> > Sent: Friday, April 27, 2012 11:42 PM
> > To: rxtx at qbang.org
> > Subject: Re: [Rxtx] Baud rate problem
> >
> > If you ever need 38400 baud tested, please let me know. I have a device
> > that uses that baud. At the moment, it communicates fine with 2.1.7r2 but
> > not 2.2-pre2.
> >
> > Thanks,
> > Mike
> >
> > On 04/22/2012 01:36 PM, Trent Jarvi wrote:
> >>
> >> 38400 should be supported on Linux. Testing baudrate code in rxtx
> >> isnt very easy because testing is usually done with a loopback
> >> connector. The baudrate always matches itself.
> >>
> >> A serial port has a crystal that is used to generate a baudbase.
> >> 128000 is fairly common. The frequency is then divided to produce
> >> lower baudrates. Divide by 1 and its 128000. Divide by 13 and you
> >> get 9600.
> >>
> >> The BaudBase and Divisor are in the structure returned from ioctl(
> >> fd, TIOCGSERIAL, &sstruct );.
> >>
> >> When the baudrate is set to B38400 (a C define used for 38400
> >> baudrates), you can modify the divisor to generate rates that are not
> >> predifined in the C header files.
> >>
> >> BaudRate = BaudBase/Divisor.
> >>
> >> Many common rates are predifined for programmers but the struct is
> >> there for other rates.
> >>
> > _______________________________________________
> > Rxtx mailing list
> > Rxtx at qbang.org
> > http://mailman.qbang.org/mailman/listinfo/rxtx
> >
> > _______________________________________________
> > Rxtx mailing list
> > Rxtx at qbang.org
> > http://mailman.qbang.org/mailman/listinfo/rxtx
> >
>
> _______________________________________________
> Rxtx mailing list
> Rxtx at qbang.org
> http://mailman.qbang.org/mailman/listinfo/rxtx
More information about the Rxtx
mailing list