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. Use QModbusRtuSerialMaster with RS485
Qt 6.11 is out! See what's new in the release blog

Use QModbusRtuSerialMaster with RS485

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 527 Views 1 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.
  • M Offline
    M Offline
    Mark81
    wrote on last edited by Mark81
    #1

    I'm trying to modify the Modbus Master example (https://code.qt.io/cgit/qt/qtserialbus.git/tree/examples/serialbus/modbus/master?h=5.15) in order to use an RS485 serial line.

    I must change the DE signal by hand, before and after a transmission.
    I'm using the libgpiod and I'm able to change the state of the DE pin.

    I wonder if this is going to work, because I need to set the pin high just before start a transmission (this is easy) and set it low just after the transmission ends. I'm not sure if this may be accomplished because how to know when the Qt framework has completed the transmission of methods like connectDevice() or sendReadRequest() ?

    Do you have any other suggestion?

    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