Hi,
First thing to mention is that I've not had many/any dealings with
serial port stuff, so I'm just working from what I see.
I'm guessing you're working with pyserial - I don't see serial modules
in the core module docs, and a google of serialObject got me to the
pyserial page.
So, looking at the pyserial docs - in serialposix.py (which is what
you're ultimately going to be using as you're doing this on linux),
there seems to be a lot of stuff surrounding custom baud rates in
_reconfigurePort. Basically, when the object is constructed and open()
is called, _reconfigurePort is called.
One of the tasks of that function is to check the baud rate. First, it
checks to see if it's one of the preconfigured rates (those that are
returned by getSupportedBaudRates), and if not, it tries to configure
it using magic I don't understand (again, because I'm not used to
working with serial ports), and it only bombs out if it absolutely
can't do it.
So, with all of that said, it basically seems to be simply a case of
setting the baudrate attribute to 31250 and hoping for the best.
Chances are, it won't complain. :)
As I said, this is only from reading the code, not using it, so you
might need some more specific help, but it does look like it should
work.
Best of luck.
Aoife
2009/5/18 Harry Van Haaren <
harry...@gmail.com>: