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. Development
  3. Excessive NACK

Excessive NACK

Scheduled Pinned Locked Moved Development
6 Posts 4 Posters 2.8k 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.
  • L Offline
    L Offline
    lafleur
    wrote on last edited by lafleur
    #1

    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

    1. Will MySensor do the auto re-transmit? if not, why not?, it should up to N times.
    2. If I run without the ACK flag set, I get very few if any NACK
    3. If I add a 500ms delay after each send, the number of NACK is less, (but this is a waist of power)
    4. 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 
    
    1 Reply Last reply
    0
    • scalzS Offline
      scalzS Offline
      scalz
      Hardware Contributor
      wrote on last edited by scalz
      #2

      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 ;)

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lafleur
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • L Offline
          L Offline
          lafleur
          wrote on last edited by
          #4

          Gateway is ESP8266 and radio is RFM95

          1 Reply Last reply
          0
          • mppM Offline
            mppM Offline
            mpp
            wrote on last edited by
            #5

            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.

            MyController with USB powered WeMos D1/mini ESP8266 MQTT Gateways and battery powered Arduino Pro Mini using the RFM69 radio

            alexsh1A 1 Reply Last reply
            0
            • mppM mpp

              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.

              alexsh1A Offline
              alexsh1A Offline
              alexsh1
              wrote on last edited by
              #6

              @mpp 90-95% percent of my NACKs were solved by:

              1. changing radio
              2. installing or changing capacitor
              3. changing the radio power supply
              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              18

              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