Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Independent Developers
  4. Qt serial port programming ctrl commands not working
Forum Updated to NodeBB v4.3 + New Features

Qt serial port programming ctrl commands not working

Scheduled Pinned Locked Moved Unsolved Independent Developers
3 Posts 3 Posters 1.7k Views 4 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.
  • K Offline
    K Offline
    Kesav
    wrote on last edited by Kesav
    #1

    Hi,

    I am new to Qt serial programming and i would like to write the ctrl commands like 'Ctrl+D' or 'Ctrl+Z' over serial port to the device which is connected in my PC.
    I have tried following syntaxes but didnt work.

    1. serialport.write("04\r\n");
      2.serialport.write("\x04");

    Can anyone help me on this?

    Regards
    Kesav

    Pablo J. RoginaP 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What are these command for ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • K Kesav

        Hi,

        I am new to Qt serial programming and i would like to write the ctrl commands like 'Ctrl+D' or 'Ctrl+Z' over serial port to the device which is connected in my PC.
        I have tried following syntaxes but didnt work.

        1. serialport.write("04\r\n");
          2.serialport.write("\x04");

        Can anyone help me on this?

        Regards
        Kesav

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #3

        @Kesav are you sure the device is receiving the data you sent?

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        1

        • Login

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