Hi,
Am working on a project using serial line comms to remote control a radio receiver. That has an rs232 interface at 4800 bauds. Have written some code to drive it, but neither the cfsetispeed or cfsetospeed are setting the baud rate. Using an old protocol analyser, can see that the code is working, sending, receiving, no errors, with a loopback tx to rx on the interface cable, but at the default 9600 bauds, not 4800. Digging around a bit, the Bxxxx baud rate definitions would normally be in termios.h, but are not, and it's not clear where they are defined. The /dev/cuau0 serial port had a lock file, deleted, thinking that it may have an effect, but the default 9600 baud rate stubbornly remains. Can show the code, if that helps, but not flagging up any errors from the various system calls within the open function.. Any ideas appreciated, with thanks ?.
Am working on a project using serial line comms to remote control a radio receiver. That has an rs232 interface at 4800 bauds. Have written some code to drive it, but neither the cfsetispeed or cfsetospeed are setting the baud rate. Using an old protocol analyser, can see that the code is working, sending, receiving, no errors, with a loopback tx to rx on the interface cable, but at the default 9600 bauds, not 4800. Digging around a bit, the Bxxxx baud rate definitions would normally be in termios.h, but are not, and it's not clear where they are defined. The /dev/cuau0 serial port had a lock file, deleted, thinking that it may have an effect, but the default 9600 baud rate stubbornly remains. Can show the code, if that helps, but not flagging up any errors from the various system calls within the open function.. Any ideas appreciated, with thanks ?.