Send retries statistics
-
Hi
Is there a way to pull send retries statistics and present in my controller of choice (openhab in my case)?
I have several battery nodes (rfm69) with ATC enabled. I'm trying to fine tune target RSSI for ATC to optimize battery life. Is there a way to get to either total or average number of retries ?
-
@prelektr There is currently no way to get the retry counter. You could modify the library to use RFM69_RETRIES=1 and handle retries yourself, or modify the library to make the last number of retries available hin the same manner rssi and snr is already available)
Code reference: https://github.com/mysensors/MySensors/blob/36cdaf4a8ef1c60d37da4097a7681beed9099b69/hal/transport/RFM69/driver/new/RFM69_new.h#L135I guess you've already looked at rssi and snr levels? I would think they were sufficient, but I haven't tried.
-
I guess you could activate MY_DEBUG, connect rx to tx and read the debug output. A slightly convoluted solution, but no need to modify the library.
-
@mfalkvidd thanks! I'll try with RFM69_RETRIES=1 and handle retris from sketch. The reason I'd like to see what is my retry count is that I'd like to see how the nodes perform in a longer period of time. for short time I see that the power is fluctuating so I wanted to see how many retries on average do I have for a given target_rssi (-70 is the default). I was wondering how much lower can I get to still have reliable link quality.
-
@prelektr sounds interesting. Would be great if you can share the results later.