
Originally Posted by
sidenelen
sorry for the such noob questions.
No prob, this is the newbie forum after all.
Try your code without the "if" on the open statement:
. . .
if(deneme->isOpen())
{
. . .
. . .
deneme->open(QIODevice::ReadWrite)
if(deneme->isOpen())
{
. . .
To copy to clipboard, switch view to plain text mode
Edit:
Obviously I'm stabbing in the dark with the above.
Did your microprocessor docs specify the port settings you are using? Here are the settings that I use:
port = new QextSerialPort("/dev/ttyS0");
port->setBaudRate(BAUD19200);
port->setFlowControl(FLOW_OFF);
port->setParity(PAR_NONE);
port->setDataBits(DATA_8);
port->setStopBits(STOP_2);
port = new QextSerialPort("/dev/ttyS0");
port->setBaudRate(BAUD19200);
port->setFlowControl(FLOW_OFF);
port->setParity(PAR_NONE);
port->setDataBits(DATA_8);
port->setStopBits(STOP_2);
port->open(QIODevice::ReadWrite)
To copy to clipboard, switch view to plain text mode
Bookmarks