Dennis Kellly
|
Re: Qt 4.7 on QNX 6.5.0 SDP1 using Rs232 interface on Beagleboard XM
|
Dennis Kellly
06/17/2013 12:34 PM
post102356
|
Re: Qt 4.7 on QNX 6.5.0 SDP1 using Rs232 interface on Beagleboard XM
Since QextSerialPort supports posix operating systems, it would probably need little change to work with QNX.
However, once inside run(), you can just write your own QNX serial code. The biggest issue for newbies is getting the
serial port set to "raw" mode - so it acts like a windows comport. To do that you can run "stty +raw </dev/ser1" - then
use open()/read()/write() calls.
The attached sample program "should" open, set "raw" and then print received data to the console. (Code based on sample
, can be placed inside your run() method.)
|
|
|