Need help with Raspberry Pi Gateway
-
I have 4 Nano/NRF24 sensor nodes with NODE-ID's defined in the sketches.
They work just fine with a W5100 MQTT Gateway, all nodes are recognized and messages passed to the MQTT broker. However when I instead use a Raspberry Pi, configured as a MQTT gateway, only one of the nodes seems to be recognized. What do I need to do to have all nodes recognized (two sensor nodes have the same 105 NODE_ID)?mysgw: TSF:MSG:READ,105-105-0,s=133,c=1,t=37,pt=2,l=2,sg=0:3 mysgw: Sending message on topic: my103gw-out/105/133/1/0/37 mysgw: TSF:MSG:READ,105-105-255,s=255,c=3,t=7,pt=0,l=0,sg=0: mysgw: TSF:MSG:BC mysgw: TSF:MSG:FPAR REQ,ID=105 mysgw: TSF:CKU:OK,FCTRL mysgw: TSF:MSG:GWL OK mysgw: !TSF:MSG:SEND,0-0-105-105,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 mysgw: TSF:MSG:READ,133-133-255,s=255,c=3,t=7,pt=0,l=0,sg=0: mysgw: TSF:MSG:BC mysgw: TSF:MSG:FPAR REQ,ID=133 mysgw: TSF:CKU:OK,FCTRL mysgw: TSF:MSG:GWL OK mysgw: !TSF:MSG:SEND,0-0-133-133,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 mysgw: TSF:MSG:READ,132-132-255,s=255,c=3,t=7,pt=0,l=0,sg=0: mysgw: TSF:MSG:BC mysgw: TSF:MSG:FPAR REQ,ID=132 mysgw: TSF:CKU:OK,FCTRL mysgw: TSF:MSG:GWL OK mysgw: !TSF:MSG:SEND,0-0-132-132,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 mysgw: TSF:MSG:READ,133-133-255,s=255,c=3,t=7,pt=0,l=0,sg=0: mysgw: TSF:MSG:BC mysgw: TSF:MSG:FPAR REQ,ID=133 mysgw: TSF:CKU:OK,FCTRL mysgw: TSF:MSG:GWL OK mysgw: !TSF:MSG:SEND,0-0-133-133,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 mysgw: TSF:MSG:READ,105-105-0,s=134,c=1,t=0,pt=7,l=5,sg=0:18 mysgw: Sending message on topic: my103gw-out/105/134/1/0/0
-
Nack messages mean that it didn't get a response usually due to signal problems or insufficient power. How do you power the nrf24 on the rpi? What cap did you use on the radio?
-
@gohan Thank you! The RPI is powered from the USB port on my ASUS router (I had powered it from a 2.5 amp USB source in the past with no change in result). However, I had been using the NRF24L01 with the antenna; I changed the radio to a NRF24L01+ and -- success! So it must be a power issue after all. I have used the antenna version on the sensors in the past with no problems. I haven't used capacitors yet, I'll try those soon. But for the moment, I'm back in operation.
Thank you!
-
If you are using the 3.3v from rpi gpio you would normally need a capacitor and when using the PA radio you would normally use the 5v plus a voltage regulator, since gpio pins usually can't provide enough current
-
@gohan I missed the * in the wiring of the PA radio and wired it to the GPIO 3.3V pin; I had assumed that since the gateway was getting the one node solidly/all the time and the other nodes not at all, there must have been an issue other than power. I must say, the power issue is mentioned often enough on MySensors.org that I should have tried that solution a long time ago.
Thanks again.