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. Several instance QModbusTcpClient interfere with each other.
QtWS25 Last Chance

Several instance QModbusTcpClient interfere with each other.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 106 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.
  • B Offline
    B Offline
    big.Mike
    wrote on last edited by
    #1

    Hello,
    currently I'm using the class QModbusTcpClient (as Modbus master).
    I want to connect to several Modbus devices (clients) with diff IP addresses. Its working fine if I connect with one Modbus device.
    But as soon as I create the second instance of the class, both classes start to crash and interfere with each other. I tried to split them on different Thread and use them in one Thread , nothing helps. Several days of searching have yielded no results.
    Please help me find the right solution, I am stuck.

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

      You should post a minimal, compilable example so we can see what you're doing.

      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