I also tried with qextserialport 's example project, event folder, it gives me the same thing, not working!
QextSerialPort * port = new QextSerialPort("COM8", QextSerialPort::EventDriven);
port->setBaudRate(BAUD9600);
port->setFlowControl(FLOW_OFF);
port->setParity(PAR_NONE);
port->setDataBits(DATA_8);
port->setStopBits(STOP_1);
if (!(port->lineStatus() & LS_DSR)) {
out << "warning: device is not turned on" << endl;
}
QextSerialPort * port = new QextSerialPort("COM8", QextSerialPort::EventDriven);
port->setBaudRate(BAUD9600);
port->setFlowControl(FLOW_OFF);
port->setParity(PAR_NONE);
port->setDataBits(DATA_8);
port->setStopBits(STOP_1);
port->open(QIODevice::ReadWrite);
if (!(port->lineStatus() & LS_DSR)) {
out << "warning: device is not turned on" << endl;
}
To copy to clipboard, switch view to plain text mode
Bookmarks