Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SUGGESTION: Add log entry when RF channel is too noisy #1504

Open
frapell opened this issue Sep 10, 2021 · 0 comments
Open

SUGGESTION: Add log entry when RF channel is too noisy #1504

frapell opened this issue Sep 10, 2021 · 0 comments

Comments

@frapell
Copy link

frapell commented Sep 10, 2021

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

LOCAL bool RFM69_channelFree(void)
{
// returns true if channel activity under RFM69_CSMA_LIMIT_DBM
const rfm69_RSSI_t RSSI = RFM69_readRSSI(false);
RFM69_DEBUG(PSTR("RFM69:CSMA:RSSI=%" PRIi16 "\n"), RFM69_internalToRSSI(RSSI));
return (RSSI > RFM69_RSSItoInternal(MY_RFM69_CSMA_LIMIT_DBM));
}

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant