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. [SOLVED] Serial Port Bug?: Double display of input in Terminal Example | SOLVED

[SOLVED] Serial Port Bug?: Double display of input in Terminal Example | SOLVED

Scheduled Pinned Locked Moved General and Desktop
terminaldouble displayinput
5 Posts 2 Posters 1.7k Views
  • 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.
  • S Offline
    S Offline
    Sen Li
    wrote on 1 Apr 2015, 01:49 last edited by Sen Li 4 Feb 2015, 01:16
    #1

    I am a beginner of QSerialPort, and learning the Terminal Example, try to communicate with an optical sensor.

    I use that example to talk to the sensor, try to send string to it, however, whenever I type any one letter into the console, it shows up two letter, what's happening?

    It works like below:

    ACTIONS MENU:
    (1) Send command string
    (2) Send ASCII characters
    (3) Continuous receive
    (4) Return to main menu

    ->11

    Enter hex string of 256 values or less. Press return when finished.
    RR = Receive, CH = Chip Select High, CL = Chip Select Low, DY = 10ms Delay
    RRRR
    R1 = 0x00
    String sent!

    Actually I just typed in "1" and "RR", it shows like I typed in as "11" and "RRRR".

    Has anyone encountered this problem?
    How should I fix this?
    Thank you!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SysTech
      wrote on 1 Apr 2015, 01:56 last edited by SysTech 4 Jan 2015, 01:58
      #2

      If you are using the terminal example provided by Qt then under settings there is "Local echo". Uncheck that.

      Settings is under the gear icon.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sen Li
        wrote on 1 Apr 2015, 23:06 last edited by
        #3

        Thank you! Exactly answered my question

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SysTech
          wrote on 2 Apr 2015, 01:10 last edited by
          #4

          You are welcome.

          Please edit your post and set the subject line to include SOLVED

          S 1 Reply Last reply 2 Apr 2015, 01:17
          0
          • S SysTech
            2 Apr 2015, 01:10

            You are welcome.

            Please edit your post and set the subject line to include SOLVED

            S Offline
            S Offline
            Sen Li
            wrote on 2 Apr 2015, 01:17 last edited by
            #5

            @SysTech
            Thank you for you reminding!

            1 Reply Last reply
            0

            1/5

            1 Apr 2015, 01:49

            • Login

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