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
QtWS25 Last Chance

How to set a correct RS422 serial port communication

Scheduled Pinned Locked Moved Unsolved General and Desktop
serial port comrs422moxa
4 Posts 2 Posters 809 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 27 Nov 2021, 07:25 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
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 27 Nov 2021, 11:33 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 29 Nov 2021, 07:36
      0
      • C Christian Ehrlicher
        27 Nov 2021, 11:33

        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 29 Nov 2021, 07:36 last edited by
        #3

        @Christian-Ehrlicher

        Qt 5.9.5
        Qt Creator 4.5.2

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 29 Nov 2021, 15:14 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

          4/4

          29 Nov 2021, 15:14

          • Login

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