[Resolved]Can't configure setting when my program use QserialPort
-
wrote on 5 Jan 2015, 13:14 last edited by
Hi guys:
is there anyone have the problem that the same application in the different computers, one can work and the other one can't?? My program use QserialPort library to communicate with other machine. And the weird thing is in my computer i can change the setting(baudrate, parity...etc), but in the other computer these fucntion will return false. Does anyone have any idea?? -
Hi,
Are you using linux ? If so, did you check that the user of the other machine has the rights to access the serial port ? e.g. being part of the "dialout" group
-
wrote on 5 Jan 2015, 13:22 last edited by
Hi:
My computer and the others are win7 . -
Then did you hard code the name of the serial port and the computers don't use the same ?
-
wrote on 5 Jan 2015, 13:28 last edited by
Hi:
No, i use QSerialPortInfo::availablePorts() to find the correct port. -
wrote on 5 Jan 2015, 13:36 last edited by
I use errorString() and it shows "The parameter is incorrect.". But it doesn't make sense, in my computer, all things are working.
-
bq. "The parameter is incorrect.”
-
What type of serial port (chip) did you use?
-
Please give more info what do you do..
-
After what of method appears this error?
-
What version of QtSerialPort did you use?
-
Can you reproduce this error with Terminal example ?
-
Can you open these serial ports using others terminals (putty, termite, terraterm)?
-
-
UPD: Probably, it is this bug: https://qt.gitorious.org/qt/qtserialport/commit/fdfd7f69743c64850979c333ddd4d2677d3d2d25
which is fixed in future Qt 5.4.1. But you can manually try to download and rebuild of QtSerialPort from sources (from the 5.4 branch).
-
wrote on 6 Jan 2015, 02:04 last edited by
Hi,
Where can i download QtSerialPort only from sources?? is it compatible with Qt5.3(i am using qt5.3) -
wrote on 6 Jan 2015, 06:41 last edited by
Hi guys:
I download Qt5.4 and move Qt5SerialPort.dll to the computer that couldn't use comport normally by using Qt serialport library of Qt 5.3. Now, everything are good. Thanks a lot.
4/10