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 Modbus Master Slave Example Issue

QT Modbus Master Slave Example Issue

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 429 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
    shiggsy
    wrote on last edited by shiggsy
    #1

    Hi,
    I am running the QT Modbus Master \ Slave example using comm ports but the Master is Timing out and not getting a response. However with the Category Logging running I can see the Slave does appear to be responding. The Client and Server output is below:

    Client
    qt.modbus: (RTU client) Sent Serial PDU: 0x0300000001
    qt.modbus.lowlevel: (RTU client) Sent Serial ADU: 0x110300000001869a
    qt.modbus: (RTU client) Send successful: 0x0300000001
    qt.modbus: (RTU client) Receive timeout: 0x0300000001
    qt.modbus: (RTU client) Sent Serial PDU: 0x0300000001
    qt.modbus.lowlevel: (RTU client) Sent Serial ADU: 0x110300000001869a
    qt.modbus: (RTU client) Send successful: 0x0300000001
    qt.modbus: (RTU client) Receive timeout: 0x0300000001
    qt.modbus: (RTU client) Sent Serial PDU: 0x0300000001
    qt.modbus.lowlevel: (RTU client) Sent Serial ADU: 0x110300000001869a
    qt.modbus: (RTU client) Send successful: 0x0300000001
    qt.modbus: (RTU client) Receive timeout: 0x0300000001
    qt.modbus: (RTU client) Sent Serial PDU: 0x0300000001
    qt.modbus.lowlevel: (RTU client) Sent Serial ADU: 0x110300000001869a
    qt.modbus: (RTU client) Send successful: 0x0300000001
    qt.modbus: (RTU client) Receive timeout: 0x0300000001

    Server
    qt.modbus.lowlevel: (RTU server) Received ADU: "110300000001869a"
    qt.modbus: (RTU server) Request PDU: 0x0300000001
    qt.modbus: (RTU server) Response PDU: 0x03020111
    qt.modbus.lowlevel: (RTU server) Received ADU: "110300000001869a"
    qt.modbus: (RTU server) Request PDU: 0x0300000001
    qt.modbus: (RTU server) Response PDU: 0x03020111
    qt.modbus.lowlevel: (RTU server) Received ADU: "110300000001869a"
    qt.modbus: (RTU server) Request PDU: 0x0300000001
    qt.modbus: (RTU server) Response PDU: 0x03020111
    qt.modbus.lowlevel: (RTU server) Received ADU: "110300000001869a"
    qt.modbus: (RTU server) Request PDU: 0x0300000001
    qt.modbus: (RTU server) Response PDU: 0x03020111

    I am using QT 5.14.1 (MSVC 2017 32 bit) on Windows 10 x64, and I am connecting the Master and Slave using Virtual Serial Port Driver 9.0 by Eltima Software, which shows me the byte count incrementing at the comm ports going from Master to Slave but not coming the other way.

    I tried using the TCP option instead of comm ports and TCP does work.

    Going back to comm ports I tried using a third party Modbus Slave Simulator and that QT Modbus Master example received data from that ok.

    Below is an image of the settings I am using.

    Any ideas what the issue may be ?

    alt text

    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