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. PyQT5-Zigbee App
Forum Update on Monday, May 27th 2025

PyQT5-Zigbee App

Scheduled Pinned Locked Moved Unsolved Qt for Python
8 Posts 3 Posters 649 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.
  • M Offline
    M Offline
    Mitko
    wrote on last edited by Mitko
    #1

    Hi, i try to run this project, but i have problem.
    https://github.com/RuslanSdk/XBee-PyQt5-V.1.0
    I'm able to add one Xbee/Zigbee module (although i can't see the info for it in the app), but when i try to add second module, the app just shutdown.
    Any help ?
    135850438-2c05e200-8b74-45d0-90ca-722ba1ccfabc.jpg

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Did you try to use the debugger to see what happens ?
      It don't list any errors or anything when it crashes ?

      M 1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Besides @mrjj's good suggestions, the code does not look like it's written for multiple concurrent connections. You should check the architecture.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        M 1 Reply Last reply
        1
        • mrjjM mrjj

          Hi
          Did you try to use the debugger to see what happens ?
          It don't list any errors or anything when it crashes ?

          M Offline
          M Offline
          Mitko
          wrote on last edited by
          #4

          @mrjj

          Hi, with Debug mode i've got this response:

          C:\python\XBee-PyQt5-V.1.0-master\venv\Scripts\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2020.3.3\plugins\python-ce\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 56672 --file C:/XBee-PyQt5-V.1.0-master/XBee_gui.py
          Connected to pydev debugger (build 211.7628.24)
          COM-порт: 12, Скорость: 115200
          ПОРТ ОТКРЫТ. Устройство готово к работе
          Firmware version: 21 A7
          S2B ZigBee Coordinator API
          COM-порт: 14, Скорость: 9600
          ПОРТ ОТКРЫТ. Устройство готово к работе
          Firmware version: 23 A7
          S2B ZigBee Router API
          S2B ZigBee Router API
          

          It seems like when i try to connect second device, it replace the first one.

          What to do ?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Refactor the code so it can handle multiple connection.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            M 1 Reply Last reply
            1
            • SGaistS SGaist

              Hi,

              Besides @mrjj's good suggestions, the code does not look like it's written for multiple concurrent connections. You should check the architecture.

              M Offline
              M Offline
              Mitko
              wrote on last edited by
              #6

              @SGaist
              Well, according to image description, it should establish some network. I hope it does.
              https://github.com/RuslanSdk/XBee-PyQt5-V.1.0/blob/master/images/network-map-icon.png

              1 Reply Last reply
              0
              • SGaistS SGaist

                Refactor the code so it can handle multiple connection.

                M Offline
                M Offline
                Mitko
                wrote on last edited by
                #7

                @SGaist
                It is difficult for me, because i'm now to this.
                Can someone help me?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Since you need several objects, you need to use either a list or a dictionary to store these objects depending on how you want to retrieve them later on.

                  Since you are new to this, I would recommend starting with training the basics before launching yourself in a complex applications.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1

                  • Login

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