PDA

View Full Version : QExtSerialport question



bnilsson
6th June 2009, 22:29
I am trying to get QExtserialport working on Windows, but it is giving me problems.
Surprising, since it is working fine on MacOSX.

For receive, it seems to lock to 1200 baud regardless of what I set it to, and for transmit, I am not sure what it does.

I am testing it by connecting a null modem cable between COM1: and COM2:, running the qextserialport test application QESPTA on COM1: and HyperTerminal on COM2:.
At 1200 baud I can write characters on the HyperTerminal and receive them on the QESPTA, If I transmit something from QESPTA I cannot find a port setting in HyperTerminal that will receive it.

Am I missing something fundamental such as pin straps on the ports?
I would assume a three line cable would be enough? (RxD,GND,TxD)
These are the settings I use:

port = new QextSerialPort("COM1");
port->setBaudRate(BAUD9600);
port->setFlowControl(FLOW_OFF);
port->setParity(PAR_NONE);
port->setDataBits(DATA_8);
port->setStopBits(STOP_1);
//set timeouts to 500 ms
port->setTimeout(500);


Any comments or suggestions would be appreciated.

BN