MySensors
MySensors copied to clipboard
SUGGESTION: Add log entry when RF channel is too noisy
I was recently having issues where my GW will receive data, but would not send back.
I wrote the details on what was going on in https://forum.mysensors.org/topic/11802/my-rpi-gateway-suddenly-stopped-working-no-idea-what-else-to-try?_=1631270464864
As can be seen in the first message to that thread, all I could see with the default debug messages was !TSF:MSG:SEND because an ACK was not received. This was not really the case.
In reality, what happened was that this function https://github.com/mysensors/MySensors/blob/2e00bf6a10f76d6aaa1999e12313237bc3edabd3/hal/transport/RFM69/driver/new/RFM69_new.cpp#L369-L375 would never return true, because there was a faulty node sending garbage into the channel.
I only found out when I added MY_DEBUG_VERBOSE_RFM69 flag when compiling mysgw.
So the suggestion would be to add some more generic message (without the need to use MY_DEBUG_VERBOSE_RFM69) that would say something like "channel too noisy" or something like that...