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. Announcements
  3. 💬 Advanced Gateway Options

💬 Advanced Gateway Options

Scheduled Pinned Locked Moved Announcements
59 Posts 16 Posters 8.2k Views 13 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 hek
    #1

    This thread contains comments for the article "Advanced Gateway Options" posted on MySensors.org.

    1 Reply Last reply
    0
    • proddyP Offline
      proddyP Offline
      proddy
      wrote on last edited by
      #2

      MY_LEDS_BLINKING_FEATURE is now obsolete in the latest 2.1

      mfalkviddM 1 Reply Last reply
      0
      • maghacM Offline
        maghacM Offline
        maghac
        wrote on last edited by
        #3

        Is there a new way to get the radio status LEDs?

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

          Doesn't this error message show when you are trying to compile?

          https://github.com/mysensors/MySensors/blob/dd9dff77ed1948db2b348bbdb82d0d3daa9e8e3a/MySensors.h#L89-L93

          1 Reply Last reply
          0
          • proddyP proddy

            MY_LEDS_BLINKING_FEATURE is now obsolete in the latest 2.1

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

            @Paul-Derbyshire thanks for noticing. I have removed MY_LEDS_BLINKING_FEATURE from the instructions.

            1 Reply Last reply
            0
            • maghacM Offline
              maghacM Offline
              maghac
              wrote on last edited by
              #6

              Got the LEDs working now, after some issues relating to the weird GPIO mapping on the NodeMCU.

              However, they are always on, and only blink off when receiving or transmitting. Is this intended? Can it be inverted (so they are off normally but only on when there is activity).

              Also, under what circumstances will the ERR led blink?

              S 1 Reply Last reply
              0
              • E Offline
                E Offline
                emc2
                Hardware Contributor
                wrote on last edited by
                #7

                @maghac said in 💬 Advanced Gateway Options:

                However, they are always on, and only blink off when receiving or transmitting. Is this intended? Can it be inverted (so they are off normally but only on when there is activity).
                You should be able to use

                #define MY_WITH_LEDS_BLINKING_INVERSE
                

                But because of the weird wiring on esp8266 based boards it's always a hit or miss, some LEDs should be inversed, some other not. You may have to play with pull-ups or pull-downs resistors on some pins.

                1 Reply Last reply
                0
                • mppM Offline
                  mppM Offline
                  mpp
                  wrote on last edited by
                  #8

                  What would be needed to make this work with the MQTT gateway?

                  MyController with USB powered WeMos D1/mini ESP8266 MQTT Gateways and battery powered Arduino Pro Mini using the RFM69 radio

                  1 Reply Last reply
                  0
                  • bbarriereB Offline
                    bbarriereB Offline
                    bbarriere
                    wrote on last edited by
                    #9

                    Hello Builders,

                    i am building a arduino 2560 node and i would like to activate radio blinking LED.

                    I have tested to insert lines regarding Blinking for pins 4,5,6 but there is a issue :

                    0 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
                    3 MCO:BGN:BFR
                    203 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
                    208 !MCO:SLP:REP
                    1 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
                    5 MCO:BGN:BFR
                    205 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
                    209 !MCO:SLP:REP
                    0 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
                    4 MCO:BGN:BFR
                    204 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
                    209 !MCO:SLP:REP
                    1 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
                    5 MCO:BGN:BFR
                    204 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
                    209 !MCO:SLP:REP
                    0 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
                    4 MCO:BGN:BFR
                    204 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
                    209 !MCO:SLP:REP
                    1 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
                    5 MCO:BGN:BFR
                    204 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
                    209 !MCO:SLP:REP
                    0 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
                    4 MCO:BGN:BFR
                    204 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
                    209 !MCO:SLP:REP

                    Radio don't want initialized and probably the 2560 pinout don't work for blinking with pins 4,5,6.

                    Are there a specific pinout for 2560 for radio blinking ?

                    1 Reply Last reply
                    0
                    • tomtasticT Offline
                      tomtasticT Offline
                      tomtastic
                      wrote on last edited by
                      #10

                      For an RFM69HW, is anything other than '#define MY_RADIO_RFM69' required to make use of the higher tx power?

                      mfalkviddM 1 Reply Last reply
                      0
                      • tomtasticT tomtastic

                        For an RFM69HW, is anything other than '#define MY_RADIO_RFM69' required to make use of the higher tx power?

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

                        @tomtastic yes. define MY_IS_RFM69HW.

                        References:
                        https://github.com/mysensors/MySensors/blob/726a20dad9696ed86408106061a9e0be31995b5c/MyConfig.h#L800

                        https://www.mysensors.org/build/connect_radio (Scroll down to Configuring MySensors for RFM69)

                        tomtasticT 1 Reply Last reply
                        0
                        • mfalkviddM mfalkvidd

                          @tomtastic yes. define MY_IS_RFM69HW.

                          References:
                          https://github.com/mysensors/MySensors/blob/726a20dad9696ed86408106061a9e0be31995b5c/MyConfig.h#L800

                          https://www.mysensors.org/build/connect_radio (Scroll down to Configuring MySensors for RFM69)

                          tomtasticT Offline
                          tomtasticT Offline
                          tomtastic
                          wrote on last edited by
                          #12

                          @mfalkvidd Thats great, many thanks!
                          Still much to learn and finding important snippets of information here and there.

                          I feel like both the options 'MY_RFM69_FREQUENCY RF69_433MHZ' and 'MY_IS_RFM69HW' should probably be mentioned in the SensebenderGatewaySerial.ino configuration file example lines.

                          1 Reply Last reply
                          0
                          • R Offline
                            R Offline
                            r-nox
                            wrote on last edited by
                            #13
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • pihomeP Offline
                              pihomeP Offline
                              pihome
                              wrote on last edited by
                              #14

                              is there a way to have one led that show if controller is connected to gateway ?

                              PiHome - Smart Heating Control

                              1 Reply Last reply
                              0
                              • maghacM maghac

                                Got the LEDs working now, after some issues relating to the weird GPIO mapping on the NodeMCU.

                                However, they are always on, and only blink off when receiving or transmitting. Is this intended? Can it be inverted (so they are off normally but only on when there is activity).

                                Also, under what circumstances will the ERR led blink?

                                S Offline
                                S Offline
                                Strixx
                                wrote on last edited by
                                #15

                                @maghac What pins are you using for the LEDs? I have been investigating the GPIO vs PIN layout for the NodeMCU now for several hours. And I am still not shore which I shall use.
                                I have found complete maps for the GPIO and thought I had it all figured out. But then I saw in the example code for the gateway (GatewayESP8266.ino) the following:

                                /*
                                 * Inclusion mode button:
                                 * - Connect GPIO5 via switch to GND ('inclusion switch')
                                */
                                ....
                                // Digital pin used for inclusion mode button
                                //#define MY_INCLUSION_MODE_BUTTON_PIN  3
                                

                                But on NodeMCU GPIO5 is PIN D1 and not D3 (which is GPIO0)

                                So please... Anyone... What pins on the NodeMCU is usable for connecting radio traffic LEDs, and how do I name them in the code?

                                maghacM 1 Reply Last reply
                                0
                                • S Strixx

                                  @maghac What pins are you using for the LEDs? I have been investigating the GPIO vs PIN layout for the NodeMCU now for several hours. And I am still not shore which I shall use.
                                  I have found complete maps for the GPIO and thought I had it all figured out. But then I saw in the example code for the gateway (GatewayESP8266.ino) the following:

                                  /*
                                   * Inclusion mode button:
                                   * - Connect GPIO5 via switch to GND ('inclusion switch')
                                  */
                                  ....
                                  // Digital pin used for inclusion mode button
                                  //#define MY_INCLUSION_MODE_BUTTON_PIN  3
                                  

                                  But on NodeMCU GPIO5 is PIN D1 and not D3 (which is GPIO0)

                                  So please... Anyone... What pins on the NodeMCU is usable for connecting radio traffic LEDs, and how do I name them in the code?

                                  maghacM Offline
                                  maghacM Offline
                                  maghac
                                  wrote on last edited by
                                  #16

                                  @Strixx Sorry, I don't remember and I have since then stopped using the LEDs. Couldn't get the inverse feature to work and I realized having LED indicators were not all that useful anyway in the end. If the gateway works, I will see it on MQTT traffic anyway.

                                  S 1 Reply Last reply
                                  1
                                  • maghacM maghac

                                    @Strixx Sorry, I don't remember and I have since then stopped using the LEDs. Couldn't get the inverse feature to work and I realized having LED indicators were not all that useful anyway in the end. If the gateway works, I will see it on MQTT traffic anyway.

                                    S Offline
                                    S Offline
                                    Strixx
                                    wrote on last edited by
                                    #17

                                    @maghac Well... I guess you are right about how useful the LEDs are. But I still would like to learn how to use the NodeMCU. And then there is also this, shall we call it OCD... ;-)

                                    1 Reply Last reply
                                    0
                                    • mntlvrM Offline
                                      mntlvrM Offline
                                      mntlvr
                                      wrote on last edited by
                                      #18

                                      So what is the finial solution to using the Led's on a ESP 8266-E gateway are they of any use if using a Vera Controller?
                                      I have used them when I had a working Ethernet gateway but I am wanting to use an Esp 8266-E gateway now . What pins do one use on ESP device
                                      Thanks for the help

                                      S 2 Replies Last reply
                                      0
                                      • mntlvrM mntlvr

                                        So what is the finial solution to using the Led's on a ESP 8266-E gateway are they of any use if using a Vera Controller?
                                        I have used them when I had a working Ethernet gateway but I am wanting to use an Esp 8266-E gateway now . What pins do one use on ESP device
                                        Thanks for the help

                                        S Offline
                                        S Offline
                                        Strixx
                                        wrote on last edited by
                                        #19

                                        @mntlvr I am using D1, D9 and D10. And it works perfectly on NodeMCU 0.9. Without the need of "MY_WITH_LEDS_BLINKING_INVERSE".

                                        Here is the code:

                                        // Set blinking period (in milliseconds)
                                        #define MY_DEFAULT_LED_BLINK_PERIOD 300
                                        
                                        // Flash leds on rx/tx/err
                                        // Led pins used if blinking feature is enabled above
                                        // Internal onboard LED is PIN 16 
                                        #define MY_DEFAULT_ERR_LED_PIN D10  // Error led pin (Red)
                                        #define MY_DEFAULT_RX_LED_PIN  D9  // Receive led pin (Yellow)
                                        #define MY_DEFAULT_TX_LED_PIN  D1  // Transmit led pin (Green)
                                        
                                        1 Reply Last reply
                                        0
                                        • mntlvrM Offline
                                          mntlvrM Offline
                                          mntlvr
                                          wrote on last edited by
                                          #20

                                          Thanks Strixx
                                          I am using D4 D5 D9 D10
                                          and as soon as I can get the unit to work with either of my Vera's I will know if mine works. It seems sinceI have gone over to the newest Library none of the gateways I build works.

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


                                          20

                                          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