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. No communication between Sensor and Gateway

No communication between Sensor and Gateway

Scheduled Pinned Locked Moved Troubleshooting
20 Posts 8 Posters 8.1k Views 2 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
    Martien Wijnands
    wrote on last edited by
    #1

    So I am a real newbe on this, so please be gentle with me...!

    Situation:

    Gateway;
    Arduino Uno with NRF24L01+ module
    Uploaded the Serial Gateway on this one

    Sensor;
    Arduino mini pro with NRF24L01+ module
    Uploaded the binairy switch sensor on this one
    Connected a push button on GND and D3

    Problem
    There seems to be no communication between the sensor and the gateway.

    Steps I have taken to troubleshoot
    Looked up the serial output on gateway;
    6-12-2015 12:48:40 RX 0;0;3;0;9;gateway started, id=0, parent=0, distance=0
    6-12-2015 12:48:40 RX 0;0;3;0;14;Gateway startup complete.

    Looked up the serial output on the sensor;
    6-12-2015 12:49:34 INFO Unknown message, Msg=find parent, dc=1
    6-12-2015 12:49:34 RX find parent
    6-12-2015 12:49:34 INFO Unknown message, Msg=send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:, dc=1
    6-12-2015 12:49:34 RX send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:

    When I push my button on the sensor it outputs upper 4 lines again.

    In MYSController I only 'see' my gateway, no sensors.

    Measured the 3.3 output voltage on the PCB of the 2.4Ghz board.

    Please help to take the next troubleshooting step!

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jpbabou
      wrote on last edited by
      #2

      Hi
      Like you, i'have got a lot a problem to connect nano pro mini with a serial gateway on a raspeberry
      Everything is fine on with a Arduino Uno.i think there are problems with the 3,3 V pover on tte nano pro mini
      I keep on investigating..
      TRy to connect with UNO with gateway sketch and one UNO with sensor sketch.. and everyting wikk be ok..
      As you i'm newbee

      1 Reply Last reply
      0
      • sundberg84S Offline
        sundberg84S Offline
        sundberg84
        Hardware Contributor
        wrote on last edited by
        #3

        Which version do you run?

        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
        • S Offline
          S Offline
          Samuel235
          Hardware Contributor
          wrote on last edited by
          #4

          Like sundberg84, I would advise that you both provide us with the sketch that you are using and let us know what version of the MySensors API you've got the sketch from.

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

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jantup
            wrote on last edited by
            #5

            When I started with MySensors recently, I got non-communication because I didn't assign the gateway and the sensor node an ID so they can identify themselves during communication. Seeing node ID's 0 and 255 on your logs, my first question would be: did you assign node ID's (from controller)?

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

              I use version 1.5
              @sundberg84
              @samuel235
              On the gateway I loaded the sketch SerialGateway.ino from the examples folder.
              On the Sensor I loaded the sketch BinarySwitchSensor.ino from the examples folder.

              @jantup
              No, I did not change anything on the example sketches, how do I assign an ID to the gateway and sensor? (I thought this was an automated proces?)

              Thanks for your replies!

              1 Reply Last reply
              0
              • sundberg84S Offline
                sundberg84S Offline
                sundberg84
                Hardware Contributor
                wrote on last edited by
                #7

                If you have some sort of controller they assign the id (gateway is 0 by default). what does your serial logs lock like?

                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
                • M Offline
                  M Offline
                  Martien Wijnands
                  wrote on last edited by
                  #8

                  @sundberg84
                  My serials logs are on the OP

                  S 1 Reply Last reply
                  0
                  • M Martien Wijnands

                    @sundberg84
                    My serials logs are on the OP

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

                    @Martien-Wijnands By the look of the logs i would say that your Gateway has a ID of 0 (Which is default). Now, the node needs to be assigned an ID. Some controllers do support auto assignment however, for troubleshooting at least i would force an ID on the node manually. To do so you need to edit "gw.begin()" on the sensor node sketch to read:

                    gw.begin(NULL, [NODE_ID], true)
                    

                    Just add a number between 1-254 (Any number that isn't already taken by another node on the network) in the above code. Remember to remove the square brackets too.

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

                    1 Reply Last reply
                    0
                    • sundberg84S Offline
                      sundberg84S Offline
                      sundberg84
                      Hardware Contributor
                      wrote on last edited by sundberg84
                      #10

                      Sorry I didnt explain @Martien-Wijnands I was interested i how the node serial looks during startup, in OP it its only when you press the button? As samuel235 explains that can help setting a node ID but if you dont see the node in MYSController i dont think the node radio traffic reaches the gw...

                      Do you see anything about ST:Fail or ST:OK (or this was removed in 1.5? maybe, I never used 1.5).

                      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
                      • J Offline
                        J Offline
                        jantup
                        wrote on last edited by
                        #11

                        Hi,

                        Sketches needs not to be changed. Node IDs are not encoded in software, they are data from MySensors perspective. Nodes doesn't manage IDs themselves, but any node need an ID in order to communicate. Assigning node IDs must be done from outside MySensors network and totally depends on the controller you use.

                        I use OpenHab as a controller, you can automate (code) ID assigning there.

                        Honestly, I myself am too lazy and still assign node IDs manually by sending appropriate string to controller's USB port the gateway is attached to from command line as a response to gateway when a node asks for ID on the nodes radio network. You can do the same without even having a controller, just attach the gateway node to a computer through USB, monitor what's incoming and send the right string back to the USB port when you see a node asking for the ID.

                        I was very surprised when I found out that MySensors nodes network is not self-sufficient in this sense. You can see how I figured it out here, but as I said, it really depends on the controller you use.

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          Martien Wijnands
                          wrote on last edited by
                          #12

                          I use MYScontroller as the controller, when this works I plan for using domoticz.

                          @samuel235
                          The logs on the gateway;
                          0;0;3;0;9;gateway started, id=0, parent=0, distance=0
                          0;0;3;0;14;Gateway startup complete.

                          The logs on the node (after setting the node ID to 5)
                          find parent
                          send: 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
                          find parent
                          send: 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
                          find parent
                          send: 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
                          repeater started, id=5, parent=255, distance=255
                          find parent
                          send: 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
                          find parent
                          send: 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:

                          No ST:Fail or ST:OK in both outputs. I really think my radio's are not sending/receiving data!

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            mortommy
                            wrote on last edited by
                            #13

                            Hi,
                            did you solve the issue?
                            I have the same behavior between my Gateway (Arduino Nano 5V ) and just one sensor (Arduino Pro Mini 3.3V connected to PC USB port via Arduino UNO board). The Serial Monitor get just the same entries as yours.
                            Thank you.

                            S 1 Reply Last reply
                            0
                            • M mortommy

                              Hi,
                              did you solve the issue?
                              I have the same behavior between my Gateway (Arduino Nano 5V ) and just one sensor (Arduino Pro Mini 3.3V connected to PC USB port via Arduino UNO board). The Serial Monitor get just the same entries as yours.
                              Thank you.

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

                              @mortommy - And are you running the same version of mysensors?

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

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                mortommy
                                wrote on last edited by
                                #15

                                Hi @samuel235 , Yes, v1.5.
                                I also connected the caps between the radio Vcc and GND connectors to exclude power issues, but I wanted to recycle some pieces I already had, so I used 3.3 uF, could be the problem?
                                Thank you.

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  Samuel235
                                  Hardware Contributor
                                  wrote on last edited by Samuel235
                                  #16

                                  It could possibly be, its all depending on your environment. I would like a hardware contributer to confirm or correct me on this one but i would change that cap to something higher, check the 'connecting the radio' page, don't quote me on this but i think the recommended is something like a 4.7uF to start with. I actually have 100uF on mine, i went over the top and was just being safe. However on my custom board thats in design stages i will be trying a 47uF.

                                  It could quite possibly not be this thats the issue, but it would be step 1 of trial and error troubleshooting that i would take.

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

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    mortommy
                                    wrote on last edited by mortommy
                                    #17

                                    Hi,
                                    I solved the issue. After reading many posts I went to check if my radio module was a real NRF24L01+ plus version, and I realized that one of the 5 modules I bought as one pack, the one connected to the serial gateway, is different. So I connected a real plus version and now is working!
                                    Thank you.

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      Martien Wijnands
                                      wrote on last edited by
                                      #18

                                      Hi,

                                      I solved the issue!

                                      My radio's were fake/defect.

                                      I ordered some new radio's and they work like a charm!

                                      Thanks for all your help and tips/tricks.

                                      1 Reply Last reply
                                      0
                                      • D Offline
                                        D Offline
                                        DutchMurk
                                        wrote on last edited by
                                        #19

                                        Hi Martien, It seems that I have the same problem. I bought my NRF24L01+ through the aliexpress link on this site. The initiate like they should but do not communicate at all. Where did you order your new ones ?

                                        1 Reply Last reply
                                        0
                                        • A Offline
                                          A Offline
                                          abrasha
                                          wrote on last edited by
                                          #20

                                          I had quite similar issue with sensor and gateway not communicating.
                                          Solved today

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


                                          19

                                          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