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. Sensors node startup without gateway

Sensors node startup without gateway

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 6 Posters 1.7k Views 7 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.
  • Lars DeutschL Offline
    Lars DeutschL Offline
    Lars Deutsch
    wrote on last edited by
    #1

    Hi,

    I made quite a number of MySensor devices. Easy reliable and cheap. I use the NRF24 chips.

    However: sometimes my raspi sensor gateway crashes and then I am in trouble: my sensors do not start up when they do not find a gateway.

    I know what you think; whats a point of a MySensor device starting up, when the gateway is not present - the point is that I have some critical devices which would work perfectly well without the gateway and an aerial connection (I would just lack remote control and status update) e.g. light switches, RGB lights, fan control, etc.

    I am working at another city during the week .. guess what
    Any ideas ?

    thanks,
    Lars my wife tells me when my devices do stop working during my absence ... not funny :(

    So I am looking for a way to bypass sensor initialization in case the gateway is not found. Then at least my devices would work offline using buttons.

    dbemowskD Boots33B 2 Replies Last reply
    0
    • Lars DeutschL Lars Deutsch

      Hi,

      I made quite a number of MySensor devices. Easy reliable and cheap. I use the NRF24 chips.

      However: sometimes my raspi sensor gateway crashes and then I am in trouble: my sensors do not start up when they do not find a gateway.

      I know what you think; whats a point of a MySensor device starting up, when the gateway is not present - the point is that I have some critical devices which would work perfectly well without the gateway and an aerial connection (I would just lack remote control and status update) e.g. light switches, RGB lights, fan control, etc.

      I am working at another city during the week .. guess what
      Any ideas ?

      thanks,
      Lars my wife tells me when my devices do stop working during my absence ... not funny :(

      So I am looking for a way to bypass sensor initialization in case the gateway is not found. Then at least my devices would work offline using buttons.

      dbemowskD Offline
      dbemowskD Offline
      dbemowsk
      wrote on last edited by
      #2

      @lars-deutsch This topic has come up before and I don't know what if any progress there is on it, but why not fix the crashes in the gateway for the time being. I am sure if you post more information here as far as what problems you are having with the gateway, people will probably help you figure out why it is crashing.

      What controller software are you using? I would assume because you are using nRF24 radios at your nodes that you have a serial gateway? Tell us more about your setup.

      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

      1 Reply Last reply
      0
      • Lars DeutschL Lars Deutsch

        Hi,

        I made quite a number of MySensor devices. Easy reliable and cheap. I use the NRF24 chips.

        However: sometimes my raspi sensor gateway crashes and then I am in trouble: my sensors do not start up when they do not find a gateway.

        I know what you think; whats a point of a MySensor device starting up, when the gateway is not present - the point is that I have some critical devices which would work perfectly well without the gateway and an aerial connection (I would just lack remote control and status update) e.g. light switches, RGB lights, fan control, etc.

        I am working at another city during the week .. guess what
        Any ideas ?

        thanks,
        Lars my wife tells me when my devices do stop working during my absence ... not funny :(

        So I am looking for a way to bypass sensor initialization in case the gateway is not found. Then at least my devices would work offline using buttons.

        Boots33B Offline
        Boots33B Offline
        Boots33
        Hero Member
        wrote on last edited by
        #3

        @lars-deutsch Have a look at this post

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Andy Phan
          wrote on last edited by Andy Phan
          #4

          I have tried to work around the node initialization process without a gateway. Set static parent ID and set check uplink to false. The log shows node initialize completed, that is as far as it gets. So there is no way to properly initialize a node without a gateway.

          RFM69 transceiver workable solution is to implement RFM69 library and MyMessage.h. This is a one way communication. You can construct a MySensors message format and send to Gateway. You cannot receive data from controller.

          See attached sketch for RFM69HW transceiver.

          #include <RFM69.h>
          #include "MyMessage.h"
          
          // Construct a MySensors Message
          MyMessage SmokeSensorMsg(MyMessage &msg, uint8_t destination, uint8_t sensor, uint8_t command, uint8_t type, bool ack = false)
          {
            msg.sender = NODEID;
            msg.destination = destination;
            msg.sensor = sensor;
            msg.type = type;
            mSetCommand(msg,command);
            mSetRequestAck(msg,ack);
            mSetAck(msg,false);
            mSetPayloadType(msg, P_BYTE);
            return msg;
          }
          
          void Loop()
          {
             // Send message to Gateway
                 typedef MyMessage message;     
                 message msg = SmokeSensorMsg(msg, 
                                  GATEWAYID, 
                                  smokeSensorId, 
                                  C_SET, 
                                  V_TRIPPED, 
                                  false);
            msg.bValue = (smokeReading > smoke_threshold)?1:0;  
               radio.send(GATEWAYID, (const void*)(&msg), sizeof(msg));
              
               }
          
          dbemowskD 1 Reply Last reply
          0
          • A Andy Phan

            I have tried to work around the node initialization process without a gateway. Set static parent ID and set check uplink to false. The log shows node initialize completed, that is as far as it gets. So there is no way to properly initialize a node without a gateway.

            RFM69 transceiver workable solution is to implement RFM69 library and MyMessage.h. This is a one way communication. You can construct a MySensors message format and send to Gateway. You cannot receive data from controller.

            See attached sketch for RFM69HW transceiver.

            #include <RFM69.h>
            #include "MyMessage.h"
            
            // Construct a MySensors Message
            MyMessage SmokeSensorMsg(MyMessage &msg, uint8_t destination, uint8_t sensor, uint8_t command, uint8_t type, bool ack = false)
            {
              msg.sender = NODEID;
              msg.destination = destination;
              msg.sensor = sensor;
              msg.type = type;
              mSetCommand(msg,command);
              mSetRequestAck(msg,ack);
              mSetAck(msg,false);
              mSetPayloadType(msg, P_BYTE);
              return msg;
            }
            
            void Loop()
            {
               // Send message to Gateway
                   typedef MyMessage message;     
                   message msg = SmokeSensorMsg(msg, 
                                    GATEWAYID, 
                                    smokeSensorId, 
                                    C_SET, 
                                    V_TRIPPED, 
                                    false);
              msg.bValue = (smokeReading > smoke_threshold)?1:0;  
                 radio.send(GATEWAYID, (const void*)(&msg), sizeof(msg));
                
                 }
            
            dbemowskD Offline
            dbemowskD Offline
            dbemowsk
            wrote on last edited by
            #5

            @andy-phan Can you please edit your post and put your code in a code block? Just highlight your code and click the </> button at the top.

            Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
            Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pjr
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • gohanG Offline
                gohanG Offline
                gohan
                Mod
                wrote on last edited by
                #7

                It is quite odd that the gateway crashes. I had other problems but gateway has been running pretty much all the time

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


                35

                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