Having trouble with my RPI MQTT gateway talking to my first sensor



  • Hello,

    Finally got my radios working properly with my RPI Gateway. I'm now having problems with my first homemade DHT11 Sensor which is connected to a NANO V3 with a NRF24 radio connecting to my gateway and talking. Both Radios have a 47uF Capacator between the VCC and GND on the Radio

    I used the code in http://smarthomeblog.net/diy-home-automation-sensors-first-node/

    This is what I'm getting in the Serial Monitor of Arduino ..

    16 MCO:BGN:INIT NODE,CP=RNNNA---,VER=2.2.0
    25 TSM:INIT
    26 TSF:WUR:MS=0
    33 TSM:INIT:TSP OK
    35 TSM:INIT:STATID=1
    40 TSF:SID:OK,ID=1
    43 TSM:FPAR
    1642 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    3649 !TSM:FPAR:NO REPLY
    3651 TSM:FPAR
    5251 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    7258 !TSM:FPAR:NO REPLY
    7260 TSM:FPAR
    8859 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    10866 !TSM:FPAR:NO REPLY
    10868 TSM:FPAR
    12468 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    14476 !TSM:FPAR:FAIL
    14477 TSM:FAIL:CNT=1
    14479 TSM:FAIL:DIS
    14481 TSF:TDI:TSL
    24484 TSM:FAIL:RE-INIT
    24486 TSM:INIT
    24494 TSM:INIT:TSP OK
    24496 TSM:INIT:STATID=1
    24498 TSF:SID:OK,ID=1
    24500 TSM:FPAR
    26099 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    28107 !TSM:FPAR:NO REPLY
    28109 TSM:FPAR
    29709 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    31716 !TSM:FPAR:NO REPLY
    31718 TSM:FPAR
    33317 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    35325 !TSM:FPAR:NO REPLY
    35328 TSM:FPAR
    36927 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    38935 !TSM:FPAR:FAIL

    And keeps on going to

    161233 TSM:FAIL:CNT=7
    161235 TSM:FAIL:DIS
    161238 TSF:TDI:TSL**

    This is what i'm reading through SSH...

    mysgw: Starting gateway...
    mysgw: Protocol version - 2.2.0
    mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0
    mysgw: TSF:LRT:OK
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: TSM:INIT:TSP OK
    mysgw: TSM:INIT:GW MODE
    mysgw: TSM:READY:ID=0,PAR=0,DIS=0
    mysgw: MCO:REG:NOT NEEDED
    mysgw: MCO:BGN:STP
    mysgw: MCO:BGN:INIT OK,TSP=1
    mysgw: GWT:RMQ:MQTT RECONNECT
    mysgw: connected to 192.168.1.112
    mysgw: GWT:RMQ:MQTT CONNECTED
    mysgw: GWT:TPS:TOPIC=mysensors-out/0/255/0/0/18,MSG SENT
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7

    And keeps on going and going and going.

    Any ideas why it's not relaying information from the Gateway to the Sensor?


  • Mod

    could be fake clones of NRF24 radio modules



  • @gohan

    Right again! I got some other brands of radio modules that came today and tried them and they worked like a charm right away. Guess I wonโ€™t be buying the ones from makerfire on amazon again. The kuman worked so far and came in anti static bags. The other ones were just loose wrapped in plastic bubble wrap. I feel so stupid posting such an easy fix ๐Ÿ˜‚


  • Mod

    The first nrf24 I bought were the ones with blob on the pcb, I spent countless hours trying to understand why it wasn't working, then I figured that those were everything but nrf24 so returned them to Amazon and bought other fake clones that were working up to 6/7 meters and I got them refunded after 1 star review I made. Finally I got the good ones (more expensive of course), link in the shopping section of mysensors site.



  • @gohan

    The Ebyte nRF24L01+ Ones?

    Also, does MySensors get a commission off of the links provided in the store? I would much rather support you guys!


  • Mod

    Yes, those.


  • Mod

    Also, does MySensors get a commission off of the links provided in the store? I would much rather support you guys!

    Yes, MySensors does get a commission when using the links in the store (and most links in the forum).

    Some more info: https://www.mysensors.org/about/mysensors#do-you-make-loads-of-money-on-this


Log in to reply
 

Suggested Topics

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts