Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. PySide6 missing QtSerialBus, modbus
Forum Updated to NodeBB v4.3 + New Features

PySide6 missing QtSerialBus, modbus

Scheduled Pinned Locked Moved Solved Qt for Python
5 Posts 2 Posters 554 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.
  • A Offline
    A Offline
    AndrzejK
    wrote on last edited by
    #1

    Hi,
    How to check this example?

    https://doc-snapshots.qt.io/qtforpython-dev/examples/example_serialbus_modbus_modbusclient.html

    I see that PySide6 not include package QtSerialBus (file mainwindow.py in example)

    from PySide6.QtSerialBus import (QModbusDataUnit,                                                                                                       
                                     QModbusDevice, QModbusReply,                                                                                           
                                     QModbusRtuSerialClient, QModbusTcpClient)   
    

    Any idea how to install missing QtSerialBus for Python?

    Regards
    Andrzej

    1 Reply Last reply
    0
    • A AndrzejK

      @Gojir4 I can't use CAN. I need Modbus.
      I researched that package Qt Modbus from Qt work for C++ solution but for Python is missing.

      Gojir4G Offline
      Gojir4G Offline
      Gojir4
      wrote on last edited by
      #4

      @AndrzejK What about pymodbus

      I don't think QtSerialBus for python will be released, but I may be wrong. Otherwise you may need to wrap C++ QtSerialBus module to python by yourself using shiboken, but that will be not be simple.

      A 1 Reply Last reply
      0
      • Gojir4G Offline
        Gojir4G Offline
        Gojir4
        wrote on last edited by
        #2

        Seems it's not available for python. Probably they didn't have included it as it is a standard and I guess everything you need is already provided by python libraries. Maybe you can try with python-can .

        A 1 Reply Last reply
        0
        • Gojir4G Gojir4

          Seems it's not available for python. Probably they didn't have included it as it is a standard and I guess everything you need is already provided by python libraries. Maybe you can try with python-can .

          A Offline
          A Offline
          AndrzejK
          wrote on last edited by
          #3

          @Gojir4 I can't use CAN. I need Modbus.
          I researched that package Qt Modbus from Qt work for C++ solution but for Python is missing.

          Gojir4G 1 Reply Last reply
          0
          • A AndrzejK

            @Gojir4 I can't use CAN. I need Modbus.
            I researched that package Qt Modbus from Qt work for C++ solution but for Python is missing.

            Gojir4G Offline
            Gojir4G Offline
            Gojir4
            wrote on last edited by
            #4

            @AndrzejK What about pymodbus

            I don't think QtSerialBus for python will be released, but I may be wrong. Otherwise you may need to wrap C++ QtSerialBus module to python by yourself using shiboken, but that will be not be simple.

            A 1 Reply Last reply
            0
            • Gojir4G Gojir4

              @AndrzejK What about pymodbus

              I don't think QtSerialBus for python will be released, but I may be wrong. Otherwise you may need to wrap C++ QtSerialBus module to python by yourself using shiboken, but that will be not be simple.

              A Offline
              A Offline
              AndrzejK
              wrote on last edited by
              #5

              @Gojir4 Thank you. I will check pymodbus.
              You are right, wrap C++ QT Serial Bus to Python is not simple.

              1 Reply Last reply
              0
              • A AndrzejK has marked this topic as solved on

              • Login

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