|
Re: Qt 4.7 on QNX 6.5.0 SDP1 using Rs232 interface on Beagleboard XM
|
06/17/2013 12:55 PM
post102357
|
Re: Qt 4.7 on QNX 6.5.0 SDP1 using Rs232 interface on Beagleboard XM
thanks!
I will try it your way, because I am afraid that it isnot so easy to change QestSerialPort (for a newbie) :)
|
|
|
|
Re: Qt 4.7 on QNX 6.5.0 SDP1 using Rs232 interface on Beagleboard XM
|
06/25/2013 8:39 AM
post102628
|
Re: Qt 4.7 on QNX 6.5.0 SDP1 using Rs232 interface on Beagleboard XM
Hi Dennis
I worked with your example code and used the same parameter changes. As I understood termios this should set the
terminal settings to raw mode.
------------------------------------------------
// Set input baud rate
speed = 115200;
cfsetispeed(&raw, speed);
cfsetospeed(&raw, speed);
raw.c_iflag &= ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON );
raw.c_oflag &= ~(OPOST);
raw.c_cflag &= ~(CSIZE|IHFLOW|OHFLOW);
raw.c_cflag |= CS8 | CREAD | CLOCAL;
raw.c_cflag &= ~CSTOPB;
raw.c_cflag &= ~PARENB;
raw.c_lflag &= ~(ECHO | ICANON | ISIG | ECHOE | ECHOK | ECHONL | IEXTEN);
raw.c_cc[VMIN] = 1;
raw.c_cc[VTIME] = 0;
---------------------------------------------
Then I tried to read and write between my laptop and the BBxM. (for testing and snding the qnx code I use Momentics via
qconn). My Problem now:
1. the first character/byte/int/whatever is ignored. only after the second send it is recognized on the BBxM
2. I cannot receive signals from Qnx on my laptop. however, if I don´t use the testprogram and send from my laptop a
string ("Hello") I receice immediately from QNX the same string ("Hello").
I am sure that it is a problem from the QNX side, because I don´t receive anything if the serial port isn´t connected
to the BBxM.
It looks like there is another program by default which is monitoring the serial interface and if I try to open the
serial device on my own to send and read, then it meddle with the data.
What can I do about this? Any idea? (need some screenshots for explaining my problem?)
|
|
|