Qt Serial Port Echoes Input Qt Serial Port Echoes Input
-
wrote on 16 Sept 2014, 16:14 last edited by
I'm using Kubuntu 14. I have a gateway device plugged into /dev/ttyUSB0. When I use screen and send a command, I only get the response from the gateway. However, in my Qt program, (using Qt Serial Port), my command is always echoed back to me. I disabled echo on the device using stty -F /dev/ttyUSB0 -echo.
There is a similar problem here: " linux-c-serial-port-echoes-output":http://stackoverflow.com/questions/12506836/linux-c-serial-port-echoes-output. However it looks like it was never solved and I tried some of the suggestions there. How would I change the thermios settings using Qt?
I could try to program around the echo, but I would prefer to not deal with it. Any help would be appreciated.
-
wrote on 17 Sept 2014, 07:53 last edited by
What are you using in Qt for this? Have you tried with the sample terminal app that comes with the Qt Serial sources?
-
wrote on 17 Sept 2014, 08:04 last edited by
As I say in the original post, I'm using Qt Serial Port. As the reference states:
bq. The following items are not supported by this module:
- Terminal features, such as echo, control CR/LF, and so on.
- Text mode.
- Configuring timeouts and delays while reading or writing.
- Pinout signal change notification.
-
wrote on 17 Sept 2014, 08:07 last edited by
Yes, to operate the RS232 port. But where do you display the data and what are you using to send data to the QtSerialPort module?
1/4