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. Problem Connecting to gateway

Problem Connecting to gateway

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 3 Posters 2.9k 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.
  • J Offline
    J Offline
    Jaime Machado
    wrote on last edited by
    #1

    Hi I'm new to arduino world.
    I'm really impressed by the library but for some reason i cannot connect my sensor to the gateway.

    I'm using a ESP8266 connected to a NRF42 radio as a gateway. All my libraries are fully updated. I connected a 22uF capacitor to the power suply of the NRF24.
    Im using a external lab power supply to power for circuits.
    Log Gateway:

    0;255;3;0;9;Client 0: 255;255;3;0;20;0
    0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;TSF:MSG:READ,255-255-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=255
    0;255;3;0;9;TSF:PNG:SEND,TO=0
    0;255;3;0;9;TSF:CKU:OK
    0;255;3;0;9;TSF:MSG:GWL OK
    0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,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,255-255-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=255
    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-255-255,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,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    0;255;3;0;9;Client 0: 255;255;3;0;4;2
    0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=4,pt=0,l=1,sg=0,ft=0,st=OK:2
    0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    0;255;3;0;9;Client 0: 255;255;3;0;4;2
    0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=4,pt=0,l=1,sg=0,ft=0,st=OK:2
    0;255;3;0;9;TSF:MSG:READ,255-255-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=255
    0;255;3;0;9;TSF:PNG:SEND,TO=0
    0;255;3;0;9;TSF:CKU:OK
    0;255;3;0;9;TSF:MSG:GWL OK
    0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,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,255-255-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=255
    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-255-255,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,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    0;255;3;0;9;Client 0: 255;255;3;0;4;2
    0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=4,pt=0,l=1,sg=0,ft=0,st=OK:2
    0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    0;255;3;0;9;Client 0: 255;255;3;0;4;2

    The sensor is a Arduino nano conected to a NRF24 radio. 22uF capacitor contected to the radio power supply. Powered by external supply.
    Sensor LOG:
    0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
    3 TSM:INIT
    4 TSF:WUR:MS=0
    11 TSM:INIT:TSP OK
    12 TSM:FPAR
    15 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2022 !TSM:FPAR:NO REPLY
    2024 TSM:FPAR
    2026 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2033 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    2038 TSF:MSG:FPAR OK,ID=0,D=1
    4034 TSM:FPAR:OK
    4035 TSM:ID
    4036 TSM:ID:REQ
    4039 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    6046 TSM:ID
    6047 TSM:ID:REQ
    6049 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    8057 TSM:ID
    8058 TSM:ID:REQ
    8060 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    10070 TSM:ID
    10071 TSM:ID:REQ
    10074 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    12081 !TSM:ID:FAIL
    12082 TSM:FAIL:CNT=1
    12084 TSM:FAIL:PDT
    22087 TSM:FAIL:RE-INIT
    22089 TSM:INIT
    22096 TSM:INIT:TSP OK
    22098 TSM:FPAR
    22100 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    24109 !TSM:FPAR:NO REPLY
    24111 TSM:FPAR
    24113 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    26121 !TSM:FPAR:NO REPLY
    26123 TSM:FPAR
    26125 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    26132 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    26137 TSF:MSG:FPAR OK,ID=0,D=1
    28133 TSM:FPAR:OK
    28134 TSM:ID
    28136 TSM:ID:REQ
    28138 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    30146 TSM:ID
    30147 TSM:ID:REQ
    30150 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    32157 TSM:ID
    32158 TSM:ID:REQ
    32161 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    34168 TSM:ID
    34169 TSM:ID:REQ
    34172 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    36180 !TSM:ID:FAIL
    36182 TSM:FAIL:CNT=2
    36184 TSM:FAIL:PDT
    46187 TSM:FAIL:RE-INIT
    46189 TSM:INIT
    46196 TSM:INIT:TSP OK
    46198 TSM:FPAR
    46200 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    48209 !TSM:FPAR:NO REPLY
    48211 TSM:FPAR
    48214 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    48221 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    48226 TSF:MSG:FPAR OK,ID=0,D=1
    50222 TSM:FPAR:OK
    50223 TSM:ID
    50225 TSM:ID:REQ
    50227 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    52235 TSM:ID
    52236 TSM:ID:REQ
    52239 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    54246 TSM:ID
    54247 TSM:ID:REQ
    54250 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:

    Can anyone tell me whats wrong here?

    blaceyB 1 Reply Last reply
    0
    • J Jaime Machado

      Hi I'm new to arduino world.
      I'm really impressed by the library but for some reason i cannot connect my sensor to the gateway.

      I'm using a ESP8266 connected to a NRF42 radio as a gateway. All my libraries are fully updated. I connected a 22uF capacitor to the power suply of the NRF24.
      Im using a external lab power supply to power for circuits.
      Log Gateway:

      0;255;3;0;9;Client 0: 255;255;3;0;20;0
      0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=1,sg=0,ft=0,st=OK:0
      0;255;3;0;9;TSF:MSG:READ,255-255-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=255
      0;255;3;0;9;TSF:PNG:SEND,TO=0
      0;255;3;0;9;TSF:CKU:OK
      0;255;3;0;9;TSF:MSG:GWL OK
      0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,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,255-255-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=255
      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-255-255,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,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Client 0: 255;255;3;0;4;2
      0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=4,pt=0,l=1,sg=0,ft=0,st=OK:2
      0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Client 0: 255;255;3;0;4;2
      0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=4,pt=0,l=1,sg=0,ft=0,st=OK:2
      0;255;3;0;9;TSF:MSG:READ,255-255-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=255
      0;255;3;0;9;TSF:PNG:SEND,TO=0
      0;255;3;0;9;TSF:CKU:OK
      0;255;3;0;9;TSF:MSG:GWL OK
      0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,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,255-255-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=255
      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-255-255,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,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Client 0: 255;255;3;0;4;2
      0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=4,pt=0,l=1,sg=0,ft=0,st=OK:2
      0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Client 0: 255;255;3;0;4;2

      The sensor is a Arduino nano conected to a NRF24 radio. 22uF capacitor contected to the radio power supply. Powered by external supply.
      Sensor LOG:
      0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
      3 TSM:INIT
      4 TSF:WUR:MS=0
      11 TSM:INIT:TSP OK
      12 TSM:FPAR
      15 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      2022 !TSM:FPAR:NO REPLY
      2024 TSM:FPAR
      2026 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      2033 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
      2038 TSF:MSG:FPAR OK,ID=0,D=1
      4034 TSM:FPAR:OK
      4035 TSM:ID
      4036 TSM:ID:REQ
      4039 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
      6046 TSM:ID
      6047 TSM:ID:REQ
      6049 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
      8057 TSM:ID
      8058 TSM:ID:REQ
      8060 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
      10070 TSM:ID
      10071 TSM:ID:REQ
      10074 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
      12081 !TSM:ID:FAIL
      12082 TSM:FAIL:CNT=1
      12084 TSM:FAIL:PDT
      22087 TSM:FAIL:RE-INIT
      22089 TSM:INIT
      22096 TSM:INIT:TSP OK
      22098 TSM:FPAR
      22100 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      24109 !TSM:FPAR:NO REPLY
      24111 TSM:FPAR
      24113 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      26121 !TSM:FPAR:NO REPLY
      26123 TSM:FPAR
      26125 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      26132 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
      26137 TSF:MSG:FPAR OK,ID=0,D=1
      28133 TSM:FPAR:OK
      28134 TSM:ID
      28136 TSM:ID:REQ
      28138 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
      30146 TSM:ID
      30147 TSM:ID:REQ
      30150 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
      32157 TSM:ID
      32158 TSM:ID:REQ
      32161 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
      34168 TSM:ID
      34169 TSM:ID:REQ
      34172 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
      36180 !TSM:ID:FAIL
      36182 TSM:FAIL:CNT=2
      36184 TSM:FAIL:PDT
      46187 TSM:FAIL:RE-INIT
      46189 TSM:INIT
      46196 TSM:INIT:TSP OK
      46198 TSM:FPAR
      46200 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      48209 !TSM:FPAR:NO REPLY
      48211 TSM:FPAR
      48214 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      48221 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
      48226 TSF:MSG:FPAR OK,ID=0,D=1
      50222 TSM:FPAR:OK
      50223 TSM:ID
      50225 TSM:ID:REQ
      50227 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
      52235 TSM:ID
      52236 TSM:ID:REQ
      52239 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
      54246 TSM:ID
      54247 TSM:ID:REQ
      54250 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:

      Can anyone tell me whats wrong here?

      blaceyB Offline
      blaceyB Offline
      blacey
      Admin
      wrote on last edited by
      #2

      @Jaime-Machado said in Problem Connecting to gateway:

      Can anyone tell me whats wrong here?

      Welcome to MySensors! Sounds like you are making great strides already. Usually the gateway is connected to an HA controller that is responsible for vending IDs to nodes during the inclusion/pairing process. In your case, if you are using a stand-alone gateway and node, then you will need to statically define the node id in the node sketch. The node id needs to be unique to each node and ranges from 1 to 254 (note, you can also have up to 254 child sensors per node).

      Try setting the following in the top of your node sketch before the MySensors.h include.

      #define MY_NODE_ID 1
      
      #include <MySensors.h>
      

      Whenever I need to statically set a node id, I usually do so at the very top of the sketch so it is clear when you open the sketch that the node id is statically defined.

      Finally, did you know that you can post code blocks using ``` before and after the code to make it more legible? That is what I used above.

      1 Reply Last reply
      3
      • J Offline
        J Offline
        Jaime Machado
        wrote on last edited by
        #3

        Thanks blacey for the quick response.
        I actually was runing a controller on my pc but for some reason assign a ID for the nodes is not working for me.

        I tried running it on Domoticz and also using MYSController 1.0.0beta.

        I was able to get a conection when i set

        #define MY_NODE_ID 10
        #define MY_PARENT_NODE_ID 0
        #define MY_PARENT_NODE_IS_STATIC
        

        But without this is, it was impossible to get a connection impossible.

        Would know what my problem might be?

        Best Regards,

        Jaime

        R 1 Reply Last reply
        0
        • J Jaime Machado

          Thanks blacey for the quick response.
          I actually was runing a controller on my pc but for some reason assign a ID for the nodes is not working for me.

          I tried running it on Domoticz and also using MYSController 1.0.0beta.

          I was able to get a conection when i set

          #define MY_NODE_ID 10
          #define MY_PARENT_NODE_ID 0
          #define MY_PARENT_NODE_IS_STATIC
          

          But without this is, it was impossible to get a connection impossible.

          Would know what my problem might be?

          Best Regards,

          Jaime

          R Offline
          R Offline
          Reza
          wrote on last edited by Reza
          #4

          @Jaime-Machado
          you use gateway for parent ! the node id 0 is for gateway usually.use default sketch for gateway is site
          also use a 100uf capacitor and use this in sketchs(gateway and nodes)

          #define MY_RF24_PA_LEVEL RF24_PA_HIGH
          

          also use an other parent for repeater if long distance

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


          16

          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