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. Strange behaviour - Check Wires and Version Mismatch

Strange behaviour - Check Wires and Version Mismatch

Scheduled Pinned Locked Moved Troubleshooting
22 Posts 5 Posters 10.2k 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.
  • hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by
    #9

    What happens if you move the sensor close to the gateway while fetching id. When it has been received move sensor back to the final location.

    I vaguely remember a discussion I had with @Yveaux where we concluded that the temporary id 255 would cause problems during initial id handover if a relay node was involved during this process.

    The solution would be to choose some other id (254) during this handshake.

    Just making a mental note from out discussion here:
    "So a node takes on temp ID 254, broadcasts a parent-node request and selects the best incoming parent by distance (all sent to 254). Then it requests (still with ID 254) its node ID, which is forwarded to the gateway and each relay stores the route to 254 in its routing table. The gateway assigns one, and routes it back to 254, which then takes on its new node ID. Sounds good!"

    marceltrapmanM 1 Reply Last reply
    1
    • hekH hek

      What happens if you move the sensor close to the gateway while fetching id. When it has been received move sensor back to the final location.

      I vaguely remember a discussion I had with @Yveaux where we concluded that the temporary id 255 would cause problems during initial id handover if a relay node was involved during this process.

      The solution would be to choose some other id (254) during this handshake.

      Just making a mental note from out discussion here:
      "So a node takes on temp ID 254, broadcasts a parent-node request and selects the best incoming parent by distance (all sent to 254). Then it requests (still with ID 254) its node ID, which is forwarded to the gateway and each relay stores the route to 254 in its routing table. The gateway assigns one, and routes it back to 254, which then takes on its new node ID. Sounds good!"

      marceltrapmanM Offline
      marceltrapmanM Offline
      marceltrapman
      Mod
      wrote on last edited by
      #10

      @hek Apologies for the late reply.
      I have walked around with the sensor but without any luck.
      The id is requested and the id is sent but that is it.
      No further debug info either.
      Attached is a screenshot of the arduino output (left) and the controller/gateway output (right).

      Screen Shot 2014-10-25 at 14.17.11.png

      Fulltime Servoy Developer
      Parttime Moderator MySensors board

      I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
      I have a FABtotum to print cases.

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #11

        Hmm.. where did the id-payload (4) go?
        Type should also be 4 (I_ID_RESPONSE) but it seems to be 3...

        marceltrapmanM 1 Reply Last reply
        0
        • hekH hek

          Hmm.. where did the id-payload (4) go?
          Type should also be 4 (I_ID_RESPONSE) but it seems to be 3...

          marceltrapmanM Offline
          marceltrapmanM Offline
          marceltrapman
          Mod
          wrote on last edited by marceltrapman
          #12

          @hek said:

          Hmm.. where did the id-payload (4) go?
          Type should also be 4 (I_ID_RESPONSE) but it seems to be 3...

          Honestly I don't know what is happening here.
          The controller seems to do its work well.
          The gateway, as far as I can see, also.

          The sensor is a black hole to me right now.

          Below is the eeprom dump:

          NODE_ID          :255
          PARENT_NODE_ID   :2
          DISTANCE         :2
          ROUTES           :255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255
          CONTROLLER_CONFIG:255255255255255255255255255255255255255255255255255255255255255255255255
          FIRMWARE_TYPE    :255255
          FIRMWARE_VERSION :255255
          FIRMWARE_BLOCKS  :255255
          FIRMWARE_CRC     :255255
          LOCAL_CONFIG     :255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255255
          

          Repeater id is indeed 2.
          Don't know what the distance value represents.

          Fulltime Servoy Developer
          Parttime Moderator MySensors board

          I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
          I have a FABtotum to print cases.

          1 Reply Last reply
          0
          • hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #13

            what happens if you hard-code parent to 0 in begin() while fetching id?

            marceltrapmanM 1 Reply Last reply
            0
            • hekH hek

              what happens if you hard-code parent to 0 in begin() while fetching id?

              marceltrapmanM Offline
              marceltrapmanM Offline
              marceltrapman
              Mod
              wrote on last edited by marceltrapman
              #14

              @hek said:

              what happens if you hard-code parent to 0 in begin() while fetching id?

              Even stranger. This is what I do:

              //board.begin(msgCallback, nodeId, repeaterMode, parentNodeId, paLevel, channel, dataRate);
              board.begin(NULL, NULL, false, 0);
              

              This is now the result:

              NODE_ID          :0
              PARENT_NODE_ID   :2
              DISTANCE         :2
              

              Do you want me to write the node id and parent id direct into the eeprom?

              Fulltime Servoy Developer
              Parttime Moderator MySensors board

              I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
              I have a FABtotum to print cases.

              1 Reply Last reply
              0
              • hekH Offline
                hekH Offline
                hek
                Admin
                wrote on last edited by hek
                #15

                setting the parent in constructor won't update the eeprom. It just uses the specified parent and never searches for a new one.

                And you'll have to specify AUTO for id

                marceltrapmanM 1 Reply Last reply
                0
                • hekH hek

                  setting the parent in constructor won't update the eeprom. It just uses the specified parent and never searches for a new one.

                  And you'll have to specify AUTO for id

                  marceltrapmanM Offline
                  marceltrapmanM Offline
                  marceltrapman
                  Mod
                  wrote on last edited by
                  #16

                  @hek So, how do I 'suddenly' have id = 0 then?

                  I will clear the eeprom again and see what happens...

                  Fulltime Servoy Developer
                  Parttime Moderator MySensors board

                  I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                  I have a FABtotum to print cases.

                  marceltrapmanM 1 Reply Last reply
                  0
                  • marceltrapmanM marceltrapman

                    @hek So, how do I 'suddenly' have id = 0 then?

                    I will clear the eeprom again and see what happens...

                    marceltrapmanM Offline
                    marceltrapmanM Offline
                    marceltrapman
                    Mod
                    wrote on last edited by
                    #17

                    @marceltrapman Stupid fail with that AUTO setting :blush:

                    But the good news is that my sensor now has ID 4...

                    So the bad news, I guess, is that the repeater seems to fail...

                    Fulltime Servoy Developer
                    Parttime Moderator MySensors board

                    I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                    I have a FABtotum to print cases.

                    1 Reply Last reply
                    0
                    • hekH Offline
                      hekH Offline
                      hek
                      Admin
                      wrote on last edited by
                      #18

                      As I mentioned earlier fetching id THROUGH a repeater need some additional love.

                      marceltrapmanM 1 Reply Last reply
                      0
                      • hekH hek

                        As I mentioned earlier fetching id THROUGH a repeater need some additional love.

                        marceltrapmanM Offline
                        marceltrapmanM Offline
                        marceltrapman
                        Mod
                        wrote on last edited by marceltrapman
                        #19

                        @hek said:

                        As I mentioned earlier fetching id THROUGH a repeater need some additional love.

                        Hmm, so I fail that love :(

                        How can we get this thing going?
                        The thing is don't want to walk down to my gateway each time I want to test something out.
                        And, I also prefer not to use a fixed id because that would make testing the controller plugin a b****.

                        Fulltime Servoy Developer
                        Parttime Moderator MySensors board

                        I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                        I have a FABtotum to print cases.

                        1 Reply Last reply
                        0
                        • greglG Offline
                          greglG Offline
                          gregl
                          Hero Member
                          wrote on last edited by
                          #20

                          Hey @marceltrapman - I just upgraded one of my sketches from 1.3 to 1.4 ( im finally moving to 1.4 in "production!!)

                          Anyway, i had the same issue with version mismatch error and spewing out

                          version mismatch
                          read: 255-255-255 s=255,c=7,t=255,pt=7,l=31:NAN
                          version mismatch
                          read: 255-255-255 s=255,c=7,t=255,pt=7,l=31:NAN
                          version mismatch
                          read: 255-255-255 s=255,c=7,t=255,pt=7,l=31:NAN
                          version mismatch
                          read: 255-255-255 s=255,c=7,t=255,pt=7,l=31:NAN
                          

                          wondering wtf was going on, i disconnected the relays board connected to VCC... the messages stopped and everything worked correctly- other than the relays actuating...
                          figured it could be a power issue, i connected proper power source as the issue occured with just a USB 5v from my PC....and reconnecting relay all worked properly..including now the relay.

                          So, check your powersupply!

                          HTH..

                          marceltrapmanM 1 Reply Last reply
                          0
                          • greglG gregl

                            Hey @marceltrapman - I just upgraded one of my sketches from 1.3 to 1.4 ( im finally moving to 1.4 in "production!!)

                            Anyway, i had the same issue with version mismatch error and spewing out

                            version mismatch
                            read: 255-255-255 s=255,c=7,t=255,pt=7,l=31:NAN
                            version mismatch
                            read: 255-255-255 s=255,c=7,t=255,pt=7,l=31:NAN
                            version mismatch
                            read: 255-255-255 s=255,c=7,t=255,pt=7,l=31:NAN
                            version mismatch
                            read: 255-255-255 s=255,c=7,t=255,pt=7,l=31:NAN
                            

                            wondering wtf was going on, i disconnected the relays board connected to VCC... the messages stopped and everything worked correctly- other than the relays actuating...
                            figured it could be a power issue, i connected proper power source as the issue occured with just a USB 5v from my PC....and reconnecting relay all worked properly..including now the relay.

                            So, check your powersupply!

                            HTH..

                            marceltrapmanM Offline
                            marceltrapmanM Offline
                            marceltrapman
                            Mod
                            wrote on last edited by
                            #21

                            @gregl said:

                            So, check your powersupply!

                            I don't see the version mismatch thing anymore luckily but it would have surprised me if it was power. Not only did I check it but I also use a power converter in this case to supply constant 3.3v (I use pro mini 3.3v).

                            Anyway, thanks for the tip :)

                            Fulltime Servoy Developer
                            Parttime Moderator MySensors board

                            I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                            I have a FABtotum to print cases.

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              SparkAndHale
                              wrote on last edited by
                              #22

                              Same here. I had to go up to 5V to power my Arduino Pro Mini 3.3V sufficiently.

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


                              18

                              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