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. ESP8266 WiFi gateway port for MySensors

ESP8266 WiFi gateway port for MySensors

Scheduled Pinned Locked Moved Development
328 Posts 56 Posters 310.8k Views 39 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.
  • A RA A R

    @Yveaux Thanks for the reply. Let me elaborate please. My sensor sends data to ESP8266 which sends it to NodeMCU ESP8266. From there I want the NodeMCU ESP8266 to send data through a wired Ethernet. (from there i want it be sent to a router).

    So my question is can the GatewayESP8266.ino be used to send data from NodeMCU to Ethernet?

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

    @A-R said:

    can the GatewayESP8266.ino be used to send data from NodeMCU to Ethernet?

    How do you plan to connect the wired ethernet to the NodeMCU board?
    You could probably connect a W5100 module through SPI, but why bother?

    http://yveaux.blogspot.nl

    A RA 1 Reply Last reply
    0
    • YveauxY Yveaux

      @A-R said:

      can the GatewayESP8266.ino be used to send data from NodeMCU to Ethernet?

      How do you plan to connect the wired ethernet to the NodeMCU board?
      You could probably connect a W5100 module through SPI, but why bother?

      A RA Offline
      A RA Offline
      A R
      wrote on last edited by
      #260

      @Yveaux I am using W5100. Its a system requirement. I want wifi connectivity with sensors through ESPs but the final data is to be routed through ethernet for security.

      YveauxY 1 Reply Last reply
      0
      • A RA A R

        @Yveaux I am using W5100. Its a system requirement. I want wifi connectivity with sensors through ESPs but the final data is to be routed through ethernet for security.

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

        @A-R But do you use any MySensors parts then?

        http://yveaux.blogspot.nl

        A RA 1 Reply Last reply
        0
        • YveauxY Yveaux

          @A-R But do you use any MySensors parts then?

          A RA Offline
          A RA Offline
          A R
          wrote on last edited by
          #262

          @Yveaux No. I asked a simple question: can the GatewayESP8266.ino be used to send data from NodeMCU to Ethernet? If you have an answer then do reply.

          YveauxY 1 Reply Last reply
          0
          • A RA A R

            @Yveaux No. I asked a simple question: can the GatewayESP8266.ino be used to send data from NodeMCU to Ethernet? If you have an answer then do reply.

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

            @A-R No need to get all grumpy! I'm just trying to understand what you want to achieve, and help you out.
            You are posting to a MySensors forum, so I assumed you are using MySensors software in your project.
            Answer to your question: No.

            http://yveaux.blogspot.nl

            1 Reply Last reply
            2
            • scalzS Offline
              scalzS Offline
              scalz
              Hardware Contributor
              wrote on last edited by scalz
              #264

              @A-R : it depends of what you are connecting to esp8266, you didn't give details. esp8266 lacks of io, so it depends...I think you have not googled?? esp8266 w5100 for instance, you will find things...then if it is to use radio+w5100 with esp8266, sure it's possible but depends of available io...software spi you would have to double io, hardware spi, need manage your cs lines...some work. If it's just esp8266+w5100 there are already things on google...

              1 Reply Last reply
              0
              • rapzakR rapzak

                Hi,

                I have added som support, where the gateway can upload data to emoncms, transparant to other functions (not fully testet):

                in gatewayutil add this in top of file, after the ARDUINO check:

                #define EMONCMS
                
                #ifdef EMONCMS
                static WiFiClient emon_client;
                const char* emon_host = "emoncms.org";  
                const int emon_httpPort = 80; 
                const int emon_addr_offset = 10;
                #endif
                

                Change this function to:

                void incomingMessage(const MyMessage &message) {
                //  if (mGetCommand(message) == C_PRESENTATION && inclusionMode) {
                //	gw.rxBlink(3);
                //   } else {
                //	gw.rxBlink(1);
                //   }
                   // Pass along the message from sensors to serial line
                   serial(PSTR("%d;%d;%d;%d;%d;%s\n"),message.sender, message.sensor, mGetCommand(message), mGetAck(message), message.type, message.getString(convBuf));
                #ifdef EMONCMS
                     if (!emon_client.connect(emon_host, emon_httpPort)) {
                      Serial.println("emoncms connection failed");
                      }
                
                      emon_client.print(String("GET /emoncms/input/post.json?&node="+ String(message.sender+emon_addr_offset)+"&json={"+String(message.sensor)+":"+message.getString(convBuf)+"}&apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXX\r\n"));
                      Serial.println(String("GET /emoncms/input/post.json?&node="+ String(message.sender+emon_addr_offset)+"&json={"+String(message.sensor)+":"+message.getString(convBuf)+"}&apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXX\r\n"));
                #endif
                } 
                

                It will upload data with NODE ID and Sensor ID from the network, with an offset of emon_addr_offset...

                /Rapzak

                RobbanR Offline
                RobbanR Offline
                Robban
                wrote on last edited by
                #265

                @rapzak said:

                Hi,

                I have added som support, where the gateway can upload data to emoncms, transparant to other functions (not fully testet):

                in gatewayutil add this in top of file, after the ARDUINO check:

                #define EMONCMS
                
                #ifdef EMONCMS
                static WiFiClient emon_client;
                const char* emon_host = "emoncms.org";  
                const int emon_httpPort = 80; 
                const int emon_addr_offset = 10;
                #endif
                

                Change this function to:

                void incomingMessage(const MyMessage &message) {
                //  if (mGetCommand(message) == C_PRESENTATION && inclusionMode) {
                //	gw.rxBlink(3);
                //   } else {
                //	gw.rxBlink(1);
                //   }
                   // Pass along the message from sensors to serial line
                   serial(PSTR("%d;%d;%d;%d;%d;%s\n"),message.sender, message.sensor, mGetCommand(message), mGetAck(message), message.type, message.getString(convBuf));
                #ifdef EMONCMS
                     if (!emon_client.connect(emon_host, emon_httpPort)) {
                      Serial.println("emoncms connection failed");
                      }
                
                      emon_client.print(String("GET /emoncms/input/post.json?&node="+ String(message.sender+emon_addr_offset)+"&json={"+String(message.sensor)+":"+message.getString(convBuf)+"}&apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXX\r\n"));
                      Serial.println(String("GET /emoncms/input/post.json?&node="+ String(message.sender+emon_addr_offset)+"&json={"+String(message.sensor)+":"+message.getString(convBuf)+"}&apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXX\r\n"));
                #endif
                } 
                

                It will upload data with NODE ID and Sensor ID from the network, with an offset of emon_addr_offset...

                /Rapzak

                Are there any one that can help me implement this in the dev version? Have a nodemcu 1-0 and got errors uploading the 1.5 version so i cant use that. Tried to fix it but ended up with the dev version.

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  bkenobi
                  wrote on last edited by
                  #266

                  Can anyone provide the correct wiring for NodeMCU (ESP-12E) to RFM69HW? I have seen several different guides that show connections for RFM69, but there are several different patterns and none have worked so far. Perhaps I didn't get it right, but this is what I've seen and tried:

                  someburner/esp-rfm69

                  RFM69->	ESP-12E
                  MISO	GPIO12
                  MOSI	GPIO13
                  SCK		GPIO14
                  CS/SS	GPIO15
                  DIO0	GPIO5
                  VCC		3V3
                  GND		GND
                  ANA		<antenna>
                  

                  halburd/NodeMCU-Gateway

                  RFM69->	NodeMCU
                  NSS		GPIO2 (J2P5)
                  SCK		SCK (J1P9)
                  MISO	MISO (J1P8)
                  MOSI	MOSI (J1P6)
                  DIO0	SS (J1P7)
                  VCC		3V3
                  GND		GND
                  ANA		<antenna>
                  

                  I've also determined that the following should also be correct, though again, they all don't match.

                  RFM69	ESP-12E	WEMOS D1	NodeMCUv3
                  MISO	GPIO12	D6/D12		D6
                  MOSI	GPIO13	D7/D11		D7
                  SCK		GPIO14	D5/D13		D5
                  CS/SS	GPIO15	D10			D8
                  DIO0	GPIO5	D3/D15		D1
                  

                  I've also tried to figure out how to use the nRF24L0+ wiring, but that doesn't quite match either. If someone could simply post a working config, I could get some traction on my project.

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    bkenobi
                    wrote on last edited by
                    #267

                    Looking at the different charts, I've located some errors (I think).

                    Looking at someburner's setup, it looks like he is opting to use software SPI rather than hardware as the ESP pins for SPI are not on GPIO12-15.

                    Looking at halburd's code, it appears that he's opted to use GPIO2 for slave select and connect the actual SS to DIO0. I'm not clear why this is done, but it seems odd.

                    I lost the reference to the last chart. It also uses GPIO's for SPI rather than the built-in hardware SPI. The guide in this sketch is only documented for nRF24L01+, so it doesn't match exactly. But, it also uses GPIO 4, 12, 13, 14, 15. It seems odd to use those rather than the SPI pins.

                    1 Reply Last reply
                    0
                    • Mark SwiftM Offline
                      Mark SwiftM Offline
                      Mark Swift
                      wrote on last edited by
                      #268

                      I tried to get the ESP8266 gateway working for 2 weeks but kept getting st=fail at various times. Switching to a serial gateway fixed it straight away? Is this a known issue? Is it perhaps related to having the ESP8266 and the nRF24L01's so close together? BTW, I tied both the normal gateway and the MQTT gateway without much success. The who time I thought it was a radio issue :-/

                      This was all running on a NodeMCU v1.0.

                      Mark

                      YveauxY 2 Replies Last reply
                      0
                      • Mark SwiftM Mark Swift

                        I tried to get the ESP8266 gateway working for 2 weeks but kept getting st=fail at various times. Switching to a serial gateway fixed it straight away? Is this a known issue? Is it perhaps related to having the ESP8266 and the nRF24L01's so close together? BTW, I tied both the normal gateway and the MQTT gateway without much success. The who time I thought it was a radio issue :-/

                        This was all running on a NodeMCU v1.0.

                        Mark

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

                        @Mark-Swift Did you follow the connection in the ESP build guide?
                        Did you make any changes to the sketch? Which MySensors version did you use and which ESP Arduino version?
                        Just asking all these questions so we can be of better help.

                        http://yveaux.blogspot.nl

                        Mark SwiftM 1 Reply Last reply
                        0
                        • YveauxY Yveaux

                          @Mark-Swift Did you follow the connection in the ESP build guide?
                          Did you make any changes to the sketch? Which MySensors version did you use and which ESP Arduino version?
                          Just asking all these questions so we can be of better help.

                          Mark SwiftM Offline
                          Mark SwiftM Offline
                          Mark Swift
                          wrote on last edited by
                          #270

                          @Yveaux I believe so, the nNF24L01 is connected to a NodeMCU (I've tried feeding the radio off both the onboard 3.3v and via VIN and a 1117 3.3v regulator (I have caps across the radio GND / VCC).

                          No changes were made to the sketch - I'm using the latest development build (also on the nodes). I've tried with all of the ESP Arduino board versions, doesn't seem to change anything?

                          1 Reply Last reply
                          0
                          • Mark SwiftM Mark Swift

                            I tried to get the ESP8266 gateway working for 2 weeks but kept getting st=fail at various times. Switching to a serial gateway fixed it straight away? Is this a known issue? Is it perhaps related to having the ESP8266 and the nRF24L01's so close together? BTW, I tied both the normal gateway and the MQTT gateway without much success. The who time I thought it was a radio issue :-/

                            This was all running on a NodeMCU v1.0.

                            Mark

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

                            @Mark-Swift said:

                            kept getting st=fail at various times

                            Now I read over your post again I get the impression that it sometimes works, and sometimes you get st=fail. Is this correct?

                            http://yveaux.blogspot.nl

                            1 Reply Last reply
                            0
                            • Mark SwiftM Offline
                              Mark SwiftM Offline
                              Mark Swift
                              wrote on last edited by Mark Swift
                              #272

                              Example - I'm sat here right now with one of my nodes and the gateway connected to my Macbook via USB.

                              When using the serial gateway I get =ok after each item no problem; in fact I can't make it fail.

                              When using the ESP8266 MQTT gateway I get:

                              Starting repeater (RNNRA-, 2.0.0-beta)
                              Radio init successful.
                              send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=13,sg=0,st=ok:R+M+L+T+D+Rpt
                              send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.1
                              send: 3-3-0-0 s=1,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                              send: 3-3-0-0 s=2,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                              send: 3-3-0-0 s=3,c=0,t=16,pt=0,l=0,sg=0,st=fail:
                              send: 3-3-0-0 s=4,c=0,t=15,pt=0,l=0,sg=0,st=ok:
                              send: 3-3-0-0 s=10,c=0,t=1,pt=0,l=0,sg=0,st=fail:
                              send: 3-3-0-0 s=11,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                              send: 3-3-0-0 s=12,c=0,t=23,pt=0,l=0,sg=0,st=fail:
                              send: 3-3-0-0 s=255,c=3,t=15,pt=0,l=2,sg=0,st=ok:
                              send: 3-3-0-0 s=255,c=0,t=18,pt=0,l=10,sg=0,st=fail:2.0.0-beta
                              send: 3-3-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
                              Init complete, id=3, parent=0, distance=1
                              Moisture Sensor: 0
                              send: 3-3-0-0 s=1,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
                              Rain Sensor: 0
                              send: 3-3-0-0 s=2,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
                              LUX: 54612
                              send: 3-3-0-0 s=3,c=1,t=37,pt=3,l=2,sg=0,st=ok:54612
                              Distance: 0 cm
                              send: 3-3-0-0 s=4,c=1,t=13,pt=2,l=2,sg=0,st=ok:0
                              No rain or moisture detected, landroid is not waiting: Status(0)
                              Landroid is free to go and is now waiting on the schedule: Status(0)
                              Landroid is home charging!
                              Sending landroidHome (1) status to gateway: send: 3-3-0-0 s=10,c=1,t=16,pt=1,l=1,sg=0,st=ok:1
                              Sending landroidWaitingTriggered (0) status to gateway: send: 3-3-0-0 s=11,c=1,t=16,pt=1,l=1,sg=0,st=ok:0
                              Sending timeElapsed (0) status to gateway: send: 3-3-0-0 s=12,c=1,t=48,pt=2,l=2,sg=0,st=fail:0

                              Using the serial gateway on a nano (Not connected to anything, just the nano and nRF24L01) I get:

                              Starting repeater (RNNRA-, 2.0.0-beta)
                              Radio init successful.
                              send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=13,sg=0,st=ok:R+M+L+T+D+Rpt
                              send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.1
                              send: 3-3-0-0 s=1,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                              send: 3-3-0-0 s=2,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                              send: 3-3-0-0 s=3,c=0,t=16,pt=0,l=0,sg=0,st=ok:
                              send: 3-3-0-0 s=4,c=0,t=15,pt=0,l=0,sg=0,st=ok:
                              send: 3-3-0-0 s=10,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                              send: 3-3-0-0 s=11,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                              send: 3-3-0-0 s=12,c=0,t=23,pt=0,l=0,sg=0,st=ok:
                              send: 3-3-0-0 s=255,c=3,t=15,pt=0,l=2,sg=0,st=ok:
                              send: 3-3-0-0 s=255,c=0,t=18,pt=0,l=10,sg=0,st=ok:2.0.0-beta
                              send: 3-3-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
                              Init complete, id=3, parent=0, distance=1
                              Moisture Sensor: 0
                              send: 3-3-0-0 s=1,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
                              Rain Sensor: 0
                              send: 3-3-0-0 s=2,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
                              LUX: 54612
                              send: 3-3-0-0 s=3,c=1,t=37,pt=3,l=2,sg=0,st=ok:54612
                              Distance: 69 cm
                              send: 3-3-0-0 s=4,c=1,t=13,pt=2,l=2,sg=0,st=ok:69
                              No rain or moisture detected, landroid is not waiting: Status(0)
                              Landroid is free to go and is now waiting on the schedule: Status(0)
                              Landroid is out cutting the grass!
                              Sending landroidHome (0) status to gateway: send: 3-3-0-0 s=10,c=1,t=16,pt=1,l=1,sg=0,st=ok:0
                              Sending landroidWaitingTriggered (0) status to gateway: send: 3-3-0-0 s=11,c=1,t=16,pt=1,l=1,sg=0,st=ok:0
                              Sending timeElapsed (0) status to gateway: send: 3-3-0-0 s=12,c=1,t=48,pt=2,l=2,sg=0,st=ok:0

                              YveauxY 1 Reply Last reply
                              0
                              • Mark SwiftM Mark Swift

                                Example - I'm sat here right now with one of my nodes and the gateway connected to my Macbook via USB.

                                When using the serial gateway I get =ok after each item no problem; in fact I can't make it fail.

                                When using the ESP8266 MQTT gateway I get:

                                Starting repeater (RNNRA-, 2.0.0-beta)
                                Radio init successful.
                                send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=13,sg=0,st=ok:R+M+L+T+D+Rpt
                                send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.1
                                send: 3-3-0-0 s=1,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                                send: 3-3-0-0 s=2,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                                send: 3-3-0-0 s=3,c=0,t=16,pt=0,l=0,sg=0,st=fail:
                                send: 3-3-0-0 s=4,c=0,t=15,pt=0,l=0,sg=0,st=ok:
                                send: 3-3-0-0 s=10,c=0,t=1,pt=0,l=0,sg=0,st=fail:
                                send: 3-3-0-0 s=11,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                                send: 3-3-0-0 s=12,c=0,t=23,pt=0,l=0,sg=0,st=fail:
                                send: 3-3-0-0 s=255,c=3,t=15,pt=0,l=2,sg=0,st=ok:
                                send: 3-3-0-0 s=255,c=0,t=18,pt=0,l=10,sg=0,st=fail:2.0.0-beta
                                send: 3-3-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
                                Init complete, id=3, parent=0, distance=1
                                Moisture Sensor: 0
                                send: 3-3-0-0 s=1,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
                                Rain Sensor: 0
                                send: 3-3-0-0 s=2,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
                                LUX: 54612
                                send: 3-3-0-0 s=3,c=1,t=37,pt=3,l=2,sg=0,st=ok:54612
                                Distance: 0 cm
                                send: 3-3-0-0 s=4,c=1,t=13,pt=2,l=2,sg=0,st=ok:0
                                No rain or moisture detected, landroid is not waiting: Status(0)
                                Landroid is free to go and is now waiting on the schedule: Status(0)
                                Landroid is home charging!
                                Sending landroidHome (1) status to gateway: send: 3-3-0-0 s=10,c=1,t=16,pt=1,l=1,sg=0,st=ok:1
                                Sending landroidWaitingTriggered (0) status to gateway: send: 3-3-0-0 s=11,c=1,t=16,pt=1,l=1,sg=0,st=ok:0
                                Sending timeElapsed (0) status to gateway: send: 3-3-0-0 s=12,c=1,t=48,pt=2,l=2,sg=0,st=fail:0

                                Using the serial gateway on a nano (Not connected to anything, just the nano and nRF24L01) I get:

                                Starting repeater (RNNRA-, 2.0.0-beta)
                                Radio init successful.
                                send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=13,sg=0,st=ok:R+M+L+T+D+Rpt
                                send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.1
                                send: 3-3-0-0 s=1,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                                send: 3-3-0-0 s=2,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                                send: 3-3-0-0 s=3,c=0,t=16,pt=0,l=0,sg=0,st=ok:
                                send: 3-3-0-0 s=4,c=0,t=15,pt=0,l=0,sg=0,st=ok:
                                send: 3-3-0-0 s=10,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                                send: 3-3-0-0 s=11,c=0,t=1,pt=0,l=0,sg=0,st=ok:
                                send: 3-3-0-0 s=12,c=0,t=23,pt=0,l=0,sg=0,st=ok:
                                send: 3-3-0-0 s=255,c=3,t=15,pt=0,l=2,sg=0,st=ok:
                                send: 3-3-0-0 s=255,c=0,t=18,pt=0,l=10,sg=0,st=ok:2.0.0-beta
                                send: 3-3-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
                                Init complete, id=3, parent=0, distance=1
                                Moisture Sensor: 0
                                send: 3-3-0-0 s=1,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
                                Rain Sensor: 0
                                send: 3-3-0-0 s=2,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
                                LUX: 54612
                                send: 3-3-0-0 s=3,c=1,t=37,pt=3,l=2,sg=0,st=ok:54612
                                Distance: 69 cm
                                send: 3-3-0-0 s=4,c=1,t=13,pt=2,l=2,sg=0,st=ok:69
                                No rain or moisture detected, landroid is not waiting: Status(0)
                                Landroid is free to go and is now waiting on the schedule: Status(0)
                                Landroid is out cutting the grass!
                                Sending landroidHome (0) status to gateway: send: 3-3-0-0 s=10,c=1,t=16,pt=1,l=1,sg=0,st=ok:0
                                Sending landroidWaitingTriggered (0) status to gateway: send: 3-3-0-0 s=11,c=1,t=16,pt=1,l=1,sg=0,st=ok:0
                                Sending timeElapsed (0) status to gateway: send: 3-3-0-0 s=12,c=1,t=48,pt=2,l=2,sg=0,st=ok:0

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

                                @Mark-Swift It does work sometimes, so that rules out a lot of possible problems!
                                How do you power the NodeMCU & rest of the hardware?
                                Both NodeMCU & nRF are very sensitive to low/noisy supplies.

                                http://yveaux.blogspot.nl

                                Mark SwiftM 1 Reply Last reply
                                0
                                • YveauxY Yveaux

                                  @Mark-Swift It does work sometimes, so that rules out a lot of possible problems!
                                  How do you power the NodeMCU & rest of the hardware?
                                  Both NodeMCU & nRF are very sensitive to low/noisy supplies.

                                  Mark SwiftM Offline
                                  Mark SwiftM Offline
                                  Mark Swift
                                  wrote on last edited by
                                  #274

                                  @Yveaux I power the NodeMCU from either my Macbook Retina, or from a decent USB wall plug, tbh, it seems to make little difference which I use. I presume everyone else is powering them via the USB also?

                                  I've also tried a spare NodeMCU and a bunch of radios. In fact, I've been trying to get this working for 3 weeks, it's literally going to cause a divorce soon :-/

                                  YveauxY 1 Reply Last reply
                                  0
                                  • Mark SwiftM Mark Swift

                                    @Yveaux I power the NodeMCU from either my Macbook Retina, or from a decent USB wall plug, tbh, it seems to make little difference which I use. I presume everyone else is powering them via the USB also?

                                    I've also tried a spare NodeMCU and a bunch of radios. In fact, I've been trying to get this working for 3 weeks, it's literally going to cause a divorce soon :-/

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

                                    @Mark-Swift The log mentions Moisture Sensor, Rain Sensor, LUX, Distance.
                                    Are these real sensor connected (and yes, how) or virtual?

                                    http://yveaux.blogspot.nl

                                    1 Reply Last reply
                                    0
                                    • Mark SwiftM Offline
                                      Mark SwiftM Offline
                                      Mark Swift
                                      wrote on last edited by
                                      #276

                                      @Yveaux real sensors connected to my robot mower garage node...

                                      1 Reply Last reply
                                      0
                                      • Mark SwiftM Offline
                                        Mark SwiftM Offline
                                        Mark Swift
                                        wrote on last edited by
                                        #277

                                        @Yveaux Node code is here for reference:

                                        http://pastebin.com/mxkLq1Rp

                                        YveauxY 1 Reply Last reply
                                        0
                                        • Mark SwiftM Mark Swift

                                          @Yveaux Node code is here for reference:

                                          http://pastebin.com/mxkLq1Rp

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

                                          @Mark-Swift To be frank: I don't know.
                                          I'm quite sure it has nothing to do with the ESP port, or software in general.
                                          You could try different orientation of the nRF, or move it closer to the sensor(s).

                                          Are you using an amplified nRF24 btw?

                                          http://yveaux.blogspot.nl

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


                                          22

                                          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