On Dec 18, 2005, at 4:29 AM, Christian Magnusson wrote:


2. Can OSX really support 115200, but is just not documented?

The main-problem was that 115200 wasn't defined in the include-files and
gave compilation errors. I'm pretty sure their UART handle 115200 with some
tweeking, but I haven't tried yet.

4. Should we just return an error for that combination (DS9097 and OSX) and 
document the incompatibility.

It wouldn't be much problem to add some possibility to set the speed with a
command like "echo 38400 > bus.0/system/adapter/speed". That could perhaps
it possible to debug different hardware problems.

Is it necessary to set 115200 when DS9097 is used?


/Christian

In the interest of higher bus speed, lets recap the events leading to the patch.

 I originally got an "ow_ds9097.c:312: error: 'B115200' undeclared" during the make process.

The man-page for "cfsetispeed" says the highest supported baudrate in termios.h is 38400.

The file at /usr/include/termios.h  does not define the variable, instead points to #include <sys/termios.h>

The file at /usr/include/sys/termios.h  defines the variables as follows:
/*
 * Standard speeds
 */
#define B0 0
#define B50 50
#define B75 75
#define B110 110
#define B134 134
#define B150 150
#define B200 200
#define B300 300
#define B600 600
#define B1200 1200
#define B1800 1800
#define B2400 2400
#define B4800 4800
#define B9600 9600
#define B19200 19200
#define B38400 38400
#ifndef _POSIX_C_SOURCE
#define B7200 7200
#define B14400 14400
#define B28800 28800
#define B57600 57600
#define B76800 76800
#define B115200 115200
#define B230400 230400
#define EXTA 19200
#define EXTB 38400
#endif  /* !_POSIX_C_SOURCE */

Reply via email to