Excessive NACK
-
If I set the ACK flag in my send() , I get a lot of NACK from the MQTT gateway..
MySensor 2.1b
M0 CPU
IDE 1.6.13- Will MySensor do the auto re-transmit? if not, why not?, it should up to N times.
- If I run without the ACK flag set, I get very few if any NACK
- If I add a 500ms delay after each send, the number of NACK is less, (but this is a waist of power)
- all board have 47uf at the radio
TSM:INIT TSF:WUR:MS=0 TSM:INIT:TSP OK TSM:INIT:STATID=20 TSF:SID:OK,ID=20 TSM:FPAR TSF:MSG:SEND,20-20-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: TSF:MSG:READ,0-0-20,s=255,c=3,t=8,pt=1,l=1,sg=0:0 TSF:MSG:FPAR PREF TSF:MSG:FPAR OK,ID=0,D=1 TSM:FPAR:OK TSM:ID TSM:ID:OK TSM:UPL TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1 TSF:MSG:READ,0-0-20,s=255,c=3,t=25,pt=1,l=1,sg=0:1 TSF:MSG:PONG RECV,HP=1 TSM:UPL:OK TSM:READY:ID=20,PAR=0,DIS=1 TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 TSF:MSG:READ,0-0-20,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 TSF:MSG:SEND,20-20-0-0,s=255,c=0,t=17,pt=0,l=10,sg=0,ft=0,st=OK:2.1.0-beta TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0 TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=11,pt=0,l=20,sg=0,ft=0,st=OK:Soil Moisture Sensor !TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=12,pt=0,l=4,sg=0,ft=0,st=NACK:1.1a TSF:MSG:SEND,20-20-0-0,s=1,c=0,t=21,pt=0,l=14,sg=0,ft=1,st=OK:Water Moisture MCO:REG:REQ !TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=NACK:2 TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=1,st=OK:2 TSF:MSG:READ,0-0-20,s=255,c=3,t=27,pt=1,l=1,sg=0:1 MCO:PIM:NODE REG=1 MCO:BGN:STP TSF:MSG:SEND,20-20-0-0,s=1,c=1,t=47,pt=0,l=8,sg=0,ft=0,st=OK:Starting ***In Setup ** Hello from the Water Sensor on a M0 ** Soil Moisture Sensor 1.1a /Users/lafleur/Desktop/MySensor-Arduino-development/Arduino_fork/Soil_Moisture_Sensor_R1.1-RFM95/Soil_Moisture_Sensor_ Dec 28 2016, 10:12:32 My Node ID: 20 Setting Time on DS3231 MCO:BGN:INIT OK,TSP=1 TSF:MSG:READ,0-0-20,s=1,c=1,t=47,pt=0,l=8,sg=0:Starting TSF:MSG:ACK Moisture 1: 13 Res: 10100 TSF:MSG:SEND,20-20-0-0,s=1,c=1,t=27,pt=4,l=4,sg=0,ft=0,st=OK:13 !TSF:MSG:SEND,20-20-0-0,s=1,c=1,t=14,pt=5,l=4,sg=0,ft=0,st=NACK:10100 Moisture 2: 3 Res: 100000 TSF:MSG:SEND,20-20-0-0,s=2,c=1,t=27,pt=4,l=4,sg=0,ft=1,st=OK:3 !TSF:MSG:SEND,20-20-0-0,s=2,c=1,t=14,pt=5,l=4,sg=0,ft=0,st=NACK:100000 Moisture 3: 3 Res: 100000 TSF:MSG:SEND,20-20-0-0,s=3,c=1,t=27,pt=4,l=4,sg=0,ft=1,st=OK:3 !TSF:MSG:SEND,20-20-0-0,s=3,c=1,t=14,pt=5,l=4,sg=0,ft=0,st=NACK:100000 Moisture 4: 3 Res: 100000 TSF:MSG:SEND,20-20-0-0,s=4,c=1,t=27,pt=4,l=4,sg=0,ft=1,st=OK:3 !TSF:MSG:SEND,20-20-0-0,s=4,c=1,t=14,pt=5,l=4,sg=0,ft=0,st=NACK:100000 TSF:MSG:SEND,20-20-0-0,s=1,c=1,t=38,pt=7,l=5,sg=0,ft=1,st=OK:4.25 !TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=NACK:65 Vbat: 4.25V Moisture 1: 13 Res: 10102 TSF:MSG:SEND,20-20-0-0,s=1,c=1,t=27,pt=4,l=4,sg=0,ft=1,st=OK:13 !TSF:MSG:SEND,20-20-0-0,s=1,c=1,t=14,pt=5,l=4,sg=0,ft=0,st=NACK:10102 Moisture 2: 3 Res: 100000 TSF:MSG:SEND,20-20-0-0,s=2,c=1,t=27,pt=4,l=4,sg=0,ft=1,st=OK:3 !TSF:MSG:SEND,20-20-0-0,s=2,c=1,t=14,pt=5,l=4,sg=0,ft=0,st=NACK:100000 Moisture 3: 3 Res: 100000 TSF:MSG:SEND,20-20-0-0,s=3,c=1,t=27,pt=4,l=4,sg=0,ft=1,st=OK:3 !TSF:MSG:SEND,20-20-0-0,s=3,c=1,t=14,pt=5,l=4,sg=0,ft=0,st=NACK:100000 Moisture 4: 3 Res: 100000 TSF:MSG:SEND,20-20-0-0,s=4,c=1,t=27,pt=4,l=4,sg=0,ft=1,st=OK:3 !TSF:MSG:SEND,20-20-0-0,s=4,c=1,t=14,pt=5,l=4,sg=0,ft=0,st=NACK:100000 TSF:MSG:SEND,20-20-0-0,s=1,c=1,t=38,pt=7,l=5,sg=0,ft=1,st=OK:4.26 !TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=NACK:65 Vbat: 4.25V
-
there are few things missing..
- what's your hardware for GW (mcu). i assume your node is atsam
- which radio? rfm95?
if this is rfm95, i think it's because the lib is still new and dev for the moment, but lot of work is done. Also note rssi is already implemented. not completely but it's there
-
This post is deleted!
-
Gateway is ESP8266 and radio is RFM95
-
How did you solve this finally?
I'm also experiencing a huge amount of NACK's. Adding large delays solves the NACK's but isn't an option as I want to use batteries.
-
@mpp 90-95% percent of my NACKs were solved by:
- changing radio
- installing or changing capacitor
- changing the radio power supply