Problem with QSerialPort
-
Hi,
I tried to open port (i want to send letter 'F' to arduino via bluetooth) but immediately i get error "Semaphore limit exceeded " (it can be a little bit different because i get error in my language ).
Below i post part of the codeserial.setPortName("COM6"); if(!serial.open(QIODevice::ReadOnly)){ QMessageBox::critical(this, tr("Error"), serial.errorString()); return;} serial.setBaudRate(9600); serial.setDataBits(QSerialPort::Data8); serial.setParity(QSerialPort::NoParity); serial.setStopBits(QSerialPort::OneStop); serial.setFlowControl(QSerialPort::NoFlowControl); if (serial.isOpen() && serial.isWritable()){ qDebug() << "Serial is open";
It would be awesome if someon could help me.
-
Hi! Have you tried to run one of the Qt Serial Port Examples?
-
Hi! Have you tried to run one of the Qt Serial Port Examples?
@Wieland Yes i tried one of them, also tried project blubot from github. It seems to be problem not with code but with windows, does you ever encouter something like that?
-
Hi
Did you try other function of BT ?
Are the board and the pc connected`?You could also try
http://doc.qt.io/qt-5/qtbluetooth-btfiletransfer-example.html -
Pc and arduino are connected :-) I was thinking about using qbluetooth but it seems to be excesive if i want just send letter ;-)
-
Pc and arduino are connected :-) I was thinking about using qbluetooth but it seems to be excesive if i want just send letter ;-)
@AngrySkarpeta
Well it might be overkill
but it“sounds like its not really connected but
without actual errors then its not possible to guess at all.
Could be a driver issue or trust issue.
You should use other tools to try to test if they are really paired. -
This post is deleted!