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. Hardware
  3. What do the Error led flashes mean?

What do the Error led flashes mean?

Scheduled Pinned Locked Moved Hardware
12 Posts 4 Posters 3.1k 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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #2

    I haven't used much the status leds but I never seen that

    1 Reply Last reply
    0
    • W Woodside

      I have a gateway talking successfully to a four relay board and a soil moisture sensor. The gateway is connected to a Vera controller via ethernet.

      Everything is working. I get voltage levels and moisture percentage from the moisture sensor displayed on the Vera dashboard. I can also switch the relays on and off from the Vera dashboard.

      I have connected the status leds to the gateway. The transmit and receive seem to flash at the appropriate time.

      However the error led also flashes each time there is a transmit/receive. The number of flashes varies depending on the activity from a couple of flashes to what seems about 20. It flashes too quickly to accurately count.

      There are no error message in the gateway serial monitor.

      Is this normal behavior?
      Do the number of flashes mean anything
      If everything is working what is the worth of the error led?

      sundberg84S Offline
      sundberg84S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by sundberg84
      #3

      @Woodside I can see the error flash when a node is requesting time or count from the controller and the answer back doesn't reach and/or get ack from the node. Not sure the general use for the led and curious as well but this is one thing I noticed.

      If you are a code guy (I'm not) I'm pretty sure it's easy to find out by looking at the source code.

      Controller: Proxmox VM - Home Assistant
      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

      1 Reply Last reply
      0
      • W Offline
        W Offline
        Woodside
        wrote on last edited by
        #4

        Has nobody implemented the error LED and wondered what the flashes mean?:worried:

        YveauxY 1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #5

          What do you see in the serial log when you see the red led flashing?

          1 Reply Last reply
          0
          • W Woodside

            Has nobody implemented the error LED and wondered what the flashes mean?:worried:

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

            @Woodside In fact, I have implemented the current Indication-code, which controls the error led behavior ;-)
            The number of red flashes indicate the type of error occurred.
            For 2.1.1 (it's defined in https://github.com/mysensors/MySensors/blob/2.1.1/core/MyIndication.h, in principle it can change with MySensors releases) the list is as follows:

            INDICATION_ERR_HW_INIT             HW initialization error
            INDICATION_ERR_TX                  Failed to transmit message.
            INDICATION_ERR_TRANSPORT_FAILURE   Transport failure.
            INDICATION_ERR_INIT_TRANSPORT      MySensors transport hardware (radio) init failure.
            INDICATION_ERR_FIND_PARENT         Failed to find parent node.
            INDICATION_ERR_GET_NODEID          Failed to receive node ID.
            INDICATION_ERR_CHECK_UPLINK        Failed to check uplink
            INDICATION_ERR_SIGN                Error signing.
            INDICATION_ERR_LENGTH              Invalid message length.
            INDICATION_ERR_VERSION             Protocol version mismatch.
            INDICATION_ERR_NET_FULL            Network full. All node IDs are taken.
            INDICATION_ERR_INIT_GWTRANSPORT    Gateway transport hardware init failure.
            INDICATION_ERR_LOCKED              Node is locked.
            INDICATION_ERR_FW_FLASH_INIT       Firmware update flash initialisation failure.
            INDICATION_ERR_FW_TIMEOUT          Firmware update timeout.
            INDICATION_ERR_FW_CHECKSUM         Firmware update checksum mismatch.
            

            The first error gives 1 flash, the 2nd 2 flashes etc. Count the flashes and this table tells you exactly what is wrong.

            I admit it sometimes is hard to count the flashes, especially when multiple errors are reported sequentially, but the basis is there.
            Always open to suggestions!

            http://yveaux.blogspot.nl

            1 Reply Last reply
            1
            • W Offline
              W Offline
              Woodside
              wrote on last edited by
              #7

              @Yveaux That is useful information, thank you.

              Rather than trying to count the flashes to work out what is going on, can I output the error message(s) to the serial monitor?

              @gohan Attached is the serial log from startup and some successful commands from Vera to turn the relays on and off. I cannot see any errors? When the Gateway starts up there are about 29 flashes of the error led (difficult to count exactly).

              For a successful relay on or off there are two error flashes. According to the MyIndication.h extract from @Yveaux, corresponds to 'Failed to transmit message'. But the relay switches correctly and there are no transmit errors in the serial log.:confused:

              0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
              0;255;3;0;9;TSM:INIT
              0;255;3;0;9;TSF:WUR:MS=0
              0;255;3;0;9;TSM:INIT:TSP OK
              0;255;3;0;9;TSM:INIT:GW MODE
              0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
              IP: 192.168.0.40
              0;255;3;0;9;MCO:BGN:STP
              0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
              0;255;3;0;9;TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
              0;255;3;0;9;TSF:MSG:BC
              0;255;3;0;9;TSF:MSG:FPAR REQ,ID=3
              0;255;3;0;9;TSF:CKU:OK,FCTRL
              0;255;3;0;9;TSF:MSG:GWL OK
              0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
              0;255;3;0;9;TSF:MSG:PINGED,ID=3,HP=1
              0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
              0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=0,t=18,pt=0,l=5,sg=0:2.1.1
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=11,pt=0,l=5,sg=0:Relay
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.1
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=1,c=0,t=3,pt=0,l=0,sg=0:
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=2,c=0,t=3,pt=0,l=0,sg=0:
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=3,c=0,t=3,pt=0,l=0,sg=0:
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=4,c=0,t=3,pt=0,l=0,sg=0:
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
              0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
              0;255;3;0;9;Eth: connect
              0;255;3;0;9;Eth: 3;4;1;1;2;1
              0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=4,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:1
              0;255;3;0;9;Eth: 
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=4,c=1,t=2,pt=0,l=1,sg=0:1
              0;255;3;0;9;TSF:MSG:ACK
              0;255;3;0;9;Eth: 3;4;1;1;2;0
              0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=4,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:0
              0;255;3;0;9;Eth: 
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=4,c=1,t=2,pt=0,l=1,sg=0:0
              0;255;3;0;9;TSF:MSG:ACK
              0;255;3;0;9;Eth: 3;3;1;1;2;1
              0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=3,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:1
              0;255;3;0;9;Eth: 
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=3,c=1,t=2,pt=0,l=1,sg=0:1
              0;255;3;0;9;TSF:MSG:ACK
              0;255;3;0;9;Eth: 3;3;1;1;2;0
              0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=3,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:0
              0;255;3;0;9;Eth: 
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=3,c=1,t=2,pt=0,l=1,sg=0:0
              0;255;3;0;9;TSF:MSG:ACK
              0;255;3;0;9;Eth: 3;2;1;1;2;1
              0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=2,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:1
              0;255;3;0;9;Eth: 
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=2,c=1,t=2,pt=0,l=1,sg=0:1
              0;255;3;0;9;TSF:MSG:ACK
              0;255;3;0;9;Eth: 3;2;1;1;2;0
              0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=2,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:0
              0;255;3;0;9;Eth: 
              0;255;3;0;9;TSF:MSG:READ,3-3-0,s=2,c=1,t=2,pt=0,l=1,sg=0:0
              0;255;3;0;9;TSF:MSG:ACK```
              YveauxY 1 Reply Last reply
              0
              • gohanG Offline
                gohanG Offline
                gohan
                Mod
                wrote on last edited by
                #8

                Did you try with a gateway with version 2.2.0?

                1 Reply Last reply
                0
                • W Woodside

                  @Yveaux That is useful information, thank you.

                  Rather than trying to count the flashes to work out what is going on, can I output the error message(s) to the serial monitor?

                  @gohan Attached is the serial log from startup and some successful commands from Vera to turn the relays on and off. I cannot see any errors? When the Gateway starts up there are about 29 flashes of the error led (difficult to count exactly).

                  For a successful relay on or off there are two error flashes. According to the MyIndication.h extract from @Yveaux, corresponds to 'Failed to transmit message'. But the relay switches correctly and there are no transmit errors in the serial log.:confused:

                  0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
                  0;255;3;0;9;TSM:INIT
                  0;255;3;0;9;TSF:WUR:MS=0
                  0;255;3;0;9;TSM:INIT:TSP OK
                  0;255;3;0;9;TSM:INIT:GW MODE
                  0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
                  IP: 192.168.0.40
                  0;255;3;0;9;MCO:BGN:STP
                  0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
                  0;255;3;0;9;TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                  0;255;3;0;9;TSF:MSG:BC
                  0;255;3;0;9;TSF:MSG:FPAR REQ,ID=3
                  0;255;3;0;9;TSF:CKU:OK,FCTRL
                  0;255;3;0;9;TSF:MSG:GWL OK
                  0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
                  0;255;3;0;9;TSF:MSG:PINGED,ID=3,HP=1
                  0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
                  0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=0,t=18,pt=0,l=5,sg=0:2.1.1
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=11,pt=0,l=5,sg=0:Relay
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.1
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=1,c=0,t=3,pt=0,l=0,sg=0:
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=2,c=0,t=3,pt=0,l=0,sg=0:
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=3,c=0,t=3,pt=0,l=0,sg=0:
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=4,c=0,t=3,pt=0,l=0,sg=0:
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
                  0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
                  0;255;3;0;9;Eth: connect
                  0;255;3;0;9;Eth: 3;4;1;1;2;1
                  0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=4,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:1
                  0;255;3;0;9;Eth: 
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=4,c=1,t=2,pt=0,l=1,sg=0:1
                  0;255;3;0;9;TSF:MSG:ACK
                  0;255;3;0;9;Eth: 3;4;1;1;2;0
                  0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=4,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:0
                  0;255;3;0;9;Eth: 
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=4,c=1,t=2,pt=0,l=1,sg=0:0
                  0;255;3;0;9;TSF:MSG:ACK
                  0;255;3;0;9;Eth: 3;3;1;1;2;1
                  0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=3,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:1
                  0;255;3;0;9;Eth: 
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=3,c=1,t=2,pt=0,l=1,sg=0:1
                  0;255;3;0;9;TSF:MSG:ACK
                  0;255;3;0;9;Eth: 3;3;1;1;2;0
                  0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=3,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:0
                  0;255;3;0;9;Eth: 
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=3,c=1,t=2,pt=0,l=1,sg=0:0
                  0;255;3;0;9;TSF:MSG:ACK
                  0;255;3;0;9;Eth: 3;2;1;1;2;1
                  0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=2,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:1
                  0;255;3;0;9;Eth: 
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=2,c=1,t=2,pt=0,l=1,sg=0:1
                  0;255;3;0;9;TSF:MSG:ACK
                  0;255;3;0;9;Eth: 3;2;1;1;2;0
                  0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=2,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:0
                  0;255;3;0;9;Eth: 
                  0;255;3;0;9;TSF:MSG:READ,3-3-0,s=2,c=1,t=2,pt=0,l=1,sg=0:0
                  0;255;3;0;9;TSF:MSG:ACK```
                  YveauxY Offline
                  YveauxY Offline
                  Yveaux
                  Mod
                  wrote on last edited by
                  #9

                  @Woodside You can define MY_INDICATION_HANDLER and implement your own indication handler which translates the callbacks to serial output (or to a different LED indication pattern), e.g.:

                  #define MY_INDICATION_HANDLER 
                  // ....
                  void indication(indication_t ind)
                  {
                    switch(ind)
                    {
                      case INDICATION_TX:          Serial.println(F("TX")); break;
                      case INDICATION_RX:          Serial.println(F("RX")); break;
                      // ....etc...
                      case INDICATION_ERR_HW_INIT: Serial.println(F("ERR_HW_INIT")); break;
                      case INDICATION_ERR_TX:      Serial.println(F("ERR_TX")); break;
                      // ....etc...
                    }
                  }
                  

                  http://yveaux.blogspot.nl

                  gohanG 1 Reply Last reply
                  0
                  • YveauxY Yveaux

                    @Woodside You can define MY_INDICATION_HANDLER and implement your own indication handler which translates the callbacks to serial output (or to a different LED indication pattern), e.g.:

                    #define MY_INDICATION_HANDLER 
                    // ....
                    void indication(indication_t ind)
                    {
                      switch(ind)
                      {
                        case INDICATION_TX:          Serial.println(F("TX")); break;
                        case INDICATION_RX:          Serial.println(F("RX")); break;
                        // ....etc...
                        case INDICATION_ERR_HW_INIT: Serial.println(F("ERR_HW_INIT")); break;
                        case INDICATION_ERR_TX:      Serial.println(F("ERR_TX")); break;
                        // ....etc...
                      }
                    }
                    
                    gohanG Offline
                    gohanG Offline
                    gohan
                    Mod
                    wrote on last edited by
                    #10

                    @Yveaux this could be an idea to have a lcd on the gateway that reports the error description and node affected.

                    YveauxY 1 Reply Last reply
                    0
                    • gohanG gohan

                      @Yveaux this could be an idea to have a lcd on the gateway that reports the error description and node affected.

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

                      @gohan Have a look at this gateway from @Japio : https://www.openhardware.io/view/349/MySensors-ESP8266-MQTT-gateway
                      He used the indications to get more feedback using LEDs.

                      http://yveaux.blogspot.nl

                      1 Reply Last reply
                      0
                      • W Offline
                        W Offline
                        Woodside
                        wrote on last edited by
                        #12

                        Thanks both.

                        I will try the gateway with version 2.2.0 first.

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


                        29

                        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