Talking to a usb device (serial terminal)

Grant Edwards grante at visi.com
Tue Mar 4 12:35:14 EST 2008


On 2008-03-04, blaine <frikker at gmail.com> wrote:

>> Try using the appropriate constant from /usr/include/... (for
>> the target platform, of course).
>>
>> --
>> Grant Edwards                   grante             Yow! Please come home with
>>                                   at               me ... I have Tylenol!!
>>                                visi.com
> Thank you for your response.  I can't seem to find what you're
> referencing in /usr/include.  I found termios.h - but it does not
> define any constants (I can include it if you wish).

$ grep -r  B921600 /usr/include
/usr/include/asm/termbits.h:#define   B921600 0010007
/usr/include/bits/termios.h:#define  B921600  0010007

> I could recompile python, I imagine, with additional constants but
> this wouldn't be ideal - although it is a possible solution.

termios.c in Python definitely needs to be updated.

> the only reference to a baud rate in termios.h is here:

It's in a file that's included in termios.h.  See above.

-- 
Grant Edwards                   grante             Yow! Here I am at the flea
                                  at               market but nobody is buying
                               visi.com            my urine sample bottles ...



More information about the Python-list mailing list