Simple COM Port String Handler - Ubuntu
BlitzMax Forums/BlitzMax Programming/Simple COM Port String Handler - Ubuntu
| ||
A working COM port String handler to get around the ReadByte(stream) lock up, might be of use to someone. First thing, Open a terminal and add the following lines to rc.local eg. $sudo gedit /etc/rc.local #Set COM Port to 9600 BAUD, Null Modem config stty -F /dev/ttyS0 9600 raw -echo #Create a log file cat /dev/ttyS0 > /var/tmp/ttyS0.log & #Allow BMax permission to play with it chmod a+rw /var/tmp/ttyS0.log This will now automatically log everything recieved by the specified com port to a text file. Bit of a hack but working. 8) |
| ||
Very nice, thank you ! I am working on a project to interface to a small LCD display through the serial port. I don't need to receive, just transmit characters and your code was just what I needed. JD |