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. Development
  3. 1.6 gateway possible error

1.6 gateway possible error

Scheduled Pinned Locked Moved Development
16 Posts 5 Posters 3.9k 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.
  • M Offline
    M Offline
    Mihai
    wrote on last edited by
    #3

    It could be related to, but I am not sure. I have encountered something similar but on node, I have posted on http://forum.mysensors.org/topic/2675/mysensors-1-6-availability/9 and later on it seems to disappear. The nodes works fine as I have tested and the tests were done with the same commands ON and OFF, so the problem I found is only in the gateway.

    1 Reply Last reply
    0
    • mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #4

      Yes, it seems related to node problems, not gateway. Sorry.

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Mihai
        wrote on last edited by
        #5

        I explain here what I see myself, may be I am wrong, I am not an expert in MySensors.
        So, I add sensors to the gateway - MySensors 1.6, the gateway is the only powered module, the Serial Monitor shows the incoming message to be ON, OFF then ONF and it does not work anymore for the switch.
        Power up a node and check it: it works fine, the messages are the right ones.
        I have change the message for active state from ON to ONN to be the same length with the off state and it works for the gateway.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Mihai
          wrote on last edited by
          #6

          Problem solved in the version 2.0.0-beta.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mihai
            wrote on last edited by
            #7

            Problem found in 2.0.0-beta: the LED pins seems to be active on nodes even I didn't enable MY_LEDS_BLINKING_FEATURE in MyConfig.h, so I expect them to be unavailable and do not interfere with my sketch, but they did. How to disable them and keep the pins for my program?
            In 1.6 they are not active.

            1 Reply Last reply
            0
            • hekH Online
              hekH Online
              hek
              Admin
              wrote on last edited by
              #8

              There was a related PR merged a couple of days ago... could be some new bug introduced perhaps. Are you running the absolutely latest?

              https://github.com/mysensors/Arduino/pull/323

              Ping @tbowmo

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Mihai
                wrote on last edited by
                #9

                I use the development version downloaded about one hour before posting, then check several times with 1.6 and 2.0 versions. I change the LED pin to 2 for all three LEDs (Rx, Tx, Err) and then my switches that use old LED PINs works fine, while a LED connected to the PIN 2 was blinking.

                1 Reply Last reply
                0
                • tbowmoT Offline
                  tbowmoT Offline
                  tbowmo
                  Admin
                  wrote on last edited by
                  #10

                  I made a change, so that if any of the LED's where defined, then it will enable MY_LED_BLINKING_FEATURE

                  Could it be that you have a define for some of the LED's somewhere?

                  look for MY_DEFAULT_xx_LED defines..

                  Or are they set as default somewhere in the library @hek?

                  1 Reply Last reply
                  0
                  • tbowmoT Offline
                    tbowmoT Offline
                    tbowmo
                    Admin
                    wrote on last edited by
                    #11

                    yes.. I see the problem now.. My bad :(

                    Didn't see that we set the MY_DEFAULT_xx_LED defines for different archs if they are not defined by the user..

                    I'll make the appropriate changes tonight (I'm not at my dev machine now)

                    S 1 Reply Last reply
                    0
                    • tbowmoT tbowmo

                      yes.. I see the problem now.. My bad :(

                      Didn't see that we set the MY_DEFAULT_xx_LED defines for different archs if they are not defined by the user..

                      I'll make the appropriate changes tonight (I'm not at my dev machine now)

                      S Offline
                      S Offline
                      Samuel235
                      Hardware Contributor
                      wrote on last edited by
                      #12

                      @tbowmo, so does this mean that we no longer have to enable/uncomment the "MY_LED_BLINKING_FEATURE" in config.h? We are able to just assign the pins inside of the sketch (like the default sketch of the development branch shows) without touching out config file?

                      MySensors 2.1.1
                      Controller - OpenHAB (Virtual Machine)
                      Gateway - Arduino Mega MQTT Gateway W5100

                      tbowmoT 1 Reply Last reply
                      0
                      • S Samuel235

                        @tbowmo, so does this mean that we no longer have to enable/uncomment the "MY_LED_BLINKING_FEATURE" in config.h? We are able to just assign the pins inside of the sketch (like the default sketch of the development branch shows) without touching out config file?

                        tbowmoT Offline
                        tbowmoT Offline
                        tbowmo
                        Admin
                        wrote on last edited by
                        #13

                        @samuel235

                        That was the initial thought, but I now see that it will not work, as the Leds are defined in the core, if they are missing, so they will always be defined when we reach the logic that enables MY_BLINKING_LED_FEATURE. And then that will always be enabled.

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          Mihai
                          wrote on last edited by
                          #14

                          The LEDs are still active. I solve it by set all LEDs PIN no to 200 into MyConfig.h . Not a PRO solution, but I need the PINs and now I can use them.

                          1 Reply Last reply
                          1
                          • tbowmoT Offline
                            tbowmoT Offline
                            tbowmo
                            Admin
                            wrote on last edited by tbowmo
                            #15

                            @Mihai

                            I have fixed this today on development, so could you try updating from github (The stuff I made last night, had some build errors on ESP platform, so that's why it first came in tonight)

                            1 Reply Last reply
                            2
                            • M Offline
                              M Offline
                              Mihai
                              wrote on last edited by
                              #16

                              Yes, it works fine now, thank you!

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


                              11

                              Online

                              11.7k

                              Users

                              11.2k

                              Topics

                              113.0k

                              Posts


                              Copyright 2019 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