Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Device connects but never starts the program

Device connects but never starts the program

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 3 Posters 111 Views 3 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.
  • Elias 0E Offline
    Elias 0E Offline
    Elias 0
    wrote on last edited by
    #1

    Hello, I haven't used Mysensors for a few years now since the sensors I have that use it works and I have started using wifi more and more. However, now I have started a new project where I want to use Mysensors. The problem is that I can't get it working. I use an esp32 and an rf24 radio wired following theses instructions https://www.mysensors.org/apidocs/MyHwESP32_8h_source.html and also use a capacitor. Since I haven't used Mysensors for a few years my gateway is still running V 1.5 whiles my esp32 is using the latest stable version of the library. If I understood correctly I should be able to connect to the older gateway, right? I tried using the default BinarySwitchSensor with the only modification being a serial print added as the first thing in the loop to see if everything worked and was wired correctly. However, it doesn't work...

    Here is my serial print https://pastebin.com/ik1K3r2j

    I am no expert but it seems like it connects to the gateway and gets an ID assigned on line 24 meaning that everything is correctly wired, since the radio seems to be able to communicate with the gateway. But like you see my serial print isn't being printed and instead sends a bunch of different stuff. Also, nothing happens when I press the button. I also get a "!TSM:UPL:FAIL" is this a problem? Does anybody know what might be happening?

    YveauxY 1 Reply Last reply
    0
    • Elias 0E Elias 0

      Hello, I haven't used Mysensors for a few years now since the sensors I have that use it works and I have started using wifi more and more. However, now I have started a new project where I want to use Mysensors. The problem is that I can't get it working. I use an esp32 and an rf24 radio wired following theses instructions https://www.mysensors.org/apidocs/MyHwESP32_8h_source.html and also use a capacitor. Since I haven't used Mysensors for a few years my gateway is still running V 1.5 whiles my esp32 is using the latest stable version of the library. If I understood correctly I should be able to connect to the older gateway, right? I tried using the default BinarySwitchSensor with the only modification being a serial print added as the first thing in the loop to see if everything worked and was wired correctly. However, it doesn't work...

      Here is my serial print https://pastebin.com/ik1K3r2j

      I am no expert but it seems like it connects to the gateway and gets an ID assigned on line 24 meaning that everything is correctly wired, since the radio seems to be able to communicate with the gateway. But like you see my serial print isn't being printed and instead sends a bunch of different stuff. Also, nothing happens when I press the button. I also get a "!TSM:UPL:FAIL" is this a problem? Does anybody know what might be happening?

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #2

      @Elias-0 said in Device connects but never starts the program:

      my gateway is still running V 1.5 whiles my esp32 is using the latest stable version of the library

      That doesn't work; the difference in main version numbers (v1 vs. v2) indicate a break in protocol so those library versions are not compatibel.
      To test your new setup (or as a final solution) without interfering with your existing v1.5 setup you could setup another MySensors gateway using the same library version as your ESP32. Make sure to use a different radio channel than the v1 gateway and you should be good to go!

      http://yveaux.blogspot.nl

      1 Reply Last reply
      1
      • Elias 0E Offline
        Elias 0E Offline
        Elias 0
        wrote on last edited by
        #3

        Hello, thanks for responding. Yeah, might try to set up a new gateway. Since all my other sensors are working I don't feel like redoing everything. Just one question, on the download page for the library there is a comment under the newest release saying

        "This is the latest stable release. Normally the best version to use for your project. It should be fully backward compatible with your controller (serial api hasn't been changed since 1.5). We recommend updating both gateway and sensors to the the latest release."

        Is this me misunderstanding something, am I not using the serial api?

        mfalkviddM YveauxY 2 Replies Last reply
        1
        • Elias 0E Elias 0

          Hello, thanks for responding. Yeah, might try to set up a new gateway. Since all my other sensors are working I don't feel like redoing everything. Just one question, on the download page for the library there is a comment under the newest release saying

          "This is the latest stable release. Normally the best version to use for your project. It should be fully backward compatible with your controller (serial api hasn't been changed since 1.5). We recommend updating both gateway and sensors to the the latest release."

          Is this me misunderstanding something, am I not using the serial api?

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          @Elias-0 a controller is a software like Domoticz or OpenHab. See https://www.mysensors.org/controller and https://www.mysensors.org/about/network for more information.

          The Serial API is used between a MySensors gateway and a controller. The Serial API is not used between MySensors nodes.

          1 Reply Last reply
          0
          • Elias 0E Elias 0

            Hello, thanks for responding. Yeah, might try to set up a new gateway. Since all my other sensors are working I don't feel like redoing everything. Just one question, on the download page for the library there is a comment under the newest release saying

            "This is the latest stable release. Normally the best version to use for your project. It should be fully backward compatible with your controller (serial api hasn't been changed since 1.5). We recommend updating both gateway and sensors to the the latest release."

            Is this me misunderstanding something, am I not using the serial api?

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by
            #5

            @Elias-0 said in Device connects but never starts the program:

            It should be fully backward compatible with your controller (serial api hasn't been changed since 1.5).

            @mfalkvidd is correct. I was talking about the on-air protocol between two radios that has changed; the nodes simply don't understand eachother when using different main versions.

            http://yveaux.blogspot.nl

            Elias 0E 1 Reply Last reply
            0
            • YveauxY Yveaux

              @Elias-0 said in Device connects but never starts the program:

              It should be fully backward compatible with your controller (serial api hasn't been changed since 1.5).

              @mfalkvidd is correct. I was talking about the on-air protocol between two radios that has changed; the nodes simply don't understand eachother when using different main versions.

              Elias 0E Offline
              Elias 0E Offline
              Elias 0
              wrote on last edited by
              #6

              @Yveaux @mfalkvidd Thanks for answering. Got controller and gateway mixed up. Am I supposed to mark this topic as Solved somehow now when it's solved or should I just leave it?

              mfalkviddM 1 Reply Last reply
              1
              • Elias 0E Elias 0

                @Yveaux @mfalkvidd Thanks for answering. Got controller and gateway mixed up. Am I supposed to mark this topic as Solved somehow now when it's solved or should I just leave it?

                mfalkviddM Offline
                mfalkviddM Offline
                mfalkvidd
                Mod
                wrote on last edited by
                #7

                @Elias-0 you can edit the first post in this thread and click on the title to change it if you like. It's not a requirement though.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                13

                Online

                11.7k

                Users

                11.2k

                Topics

                113.1k

                Posts


                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • MySensors
                • OpenHardware.io
                • Categories
                • Recent
                • Tags
                • Popular