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. How to set a correct RS422 serial port communication

How to set a correct RS422 serial port communication

Scheduled Pinned Locked Moved Unsolved General and Desktop
serial port comrs422moxa
4 Posts 2 Posters 822 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.
  • Z Offline
    Z Offline
    ZMohammad
    wrote on last edited by
    #1

    Hi
    I have written a simple RS422 serial port (which is connected to MOXA) program.
    I set the settings and then opens the port.
    There is two problems

    1. If I am in debugging mode and terminate the program before closing the port, my program never finishes until I restart my computer.
    2. I send my packet but I don't get the response while when I write a program with same setting in c#, I don't have no problem.
      I will appreciate if help me
    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      There is no difference on OS level between RS232 and RS422/485. What exact Qt version do you use? Please use the latest Qt5 or Qt6 version.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Z 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        There is no difference on OS level between RS232 and RS422/485. What exact Qt version do you use? Please use the latest Qt5 or Qt6 version.

        Z Offline
        Z Offline
        ZMohammad
        wrote on last edited by
        #3

        @Christian-Ehrlicher

        Qt 5.9.5
        Qt Creator 4.5.2

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I would try with a more recent version of Qt but doubt it's really a Qt problem but more a driver problem.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0

          • Login

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