Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Serial Port Echoes Input Qt Serial Port Echoes Input
Forum Updated to NodeBB v4.3 + New Features

Qt Serial Port Echoes Input Qt Serial Port Echoes Input

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MrUser
    wrote on 16 Sept 2014, 16:14 last edited by
    #1

    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.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      McLion
      wrote on 17 Sept 2014, 07:53 last edited by
      #2

      What are you using in Qt for this? Have you tried with the sample terminal app that comes with the Qt Serial sources?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MrUser
        wrote on 17 Sept 2014, 08:04 last edited by
        #3

        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.
        1 Reply Last reply
        0
        • M Offline
          M Offline
          McLion
          wrote on 17 Sept 2014, 08:07 last edited by
          #4

          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 Reply Last reply
          0

          1/4

          16 Sept 2014, 16:14

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved