-
Notifications
You must be signed in to change notification settings - Fork 215
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
There's a way to reset the rf module? #92
Comments
I have also noticed this issue. Calling
I would love to get to the bottom of why such drastic action is required :-( |
60s??? wow... I tried to do the rf12_initialize if i don't receive messages from minutes. On your experience try to do rf12_initalize when the device is in this undefined status is useless? I tried the following without success..
|
Same here - that's the RF12 driver in native ("classic") mode? I've never seen this before... |
It's running in RFM69CW mode:
60's is probably an overkill, issue only occurs occasionally every few days. |
So the only solution for you is a reinitialize every x seconds/minutes? |
@lettierimarco would you be willing to give my test code a spin. It is derived from jeelib and a full git replacement: https://github.com/jcw/jeelib/tree/RFxConsole |
@JohnOH sure, but i repeat, the issue is quietly randomly, so difficult to reproduce. |
I may have incorrectly assumed you were having this problem with RFM69CW hardware. My adjustments in the RFM69 code are quite extensive. My tweaks for the RFM12B are indeed trivial. FWIW I have not seen anything to concern me while operating RFM12B devices. |
Hi John, Have you got a summary of changes you have made to the default jeelib in your branch?
|
I'm afraid I don't have a summary the changes evolved or quite a long period. A diff of the five RF69* files will show them. |
I've compiled your rfm12.cpp without # define RF69_COMPAT 1, my RF works but i don't know if my issue will reproduce again... |
I've forked jeelib and commit some little change i've done: https://github.com/lettierimarco/jeelib |
I'd like to look into this issue - is there any more info which might help narrow this down? PS. Strictly speaking, the answer to this issue is "yes": call |
@glynhudson @lettierimarco - are we mixing RF69 and RF12 issues in this discussion by any chance? if so, please consider splitting off a separate one - I really want to help get to the bottom of this, but I'm going to have a very hard time if two problems are being mixed up... |
My issue happens using rf12. |
I have just checked in two changes to the RF69 compat mode driver, i.e. inter-operating with an RF12 driver at the other end, which should substantially improve bad packet rejection and reduce dead-time - i.e. better noise rejection and fewer missed packets - with a huge thank-you to Martyn and John. This change does not affect the RF12 driver side of things. |
@lettierimarco can you post your full sketch with an indication as to where the code is returning permanent false (checkmessagereceived). |
@JohnOH I only supposed this... I can't reproduce the issue programmatically but it happens. |
I don't think your issue is connected with the RF69 issue. |
in rf12.cpp i'm trying this without success until now:
... |
Might you try adding an } else { error-message } to the
|
I've already done this debug in past. |
I am sorry to have covered old ground for you. I thought you may be locking up where rf12_canSend never returns true. In my case this has been an issue whereby the RF noise floor was never quiet enough for rf12_canSend to return true. I don't have any further ideas for you at this point. |
So far so good 3 days and counting.... I have setup a test using latest JeeLib. If anyone is interested I have experimented with git submodules this has allowed me to associate the github libs (at a specific point) used in my project within the project repo itself without loosing association with the original lib repo. Using this method of lib management has been fantastic for this example: I created a new dev branch 'rf-test' and in that branch fast-forwarded jeelib to the latest version and made the changes to code required for the test. openenergymonitor/emonpi@e96cb04 I have documented using sub modules here: https://github.com/openenergymonitor/emonpi/tree/master/firmware/libraries |
Still looking good 👍 |
Great - declare victory before it decides to change its mind! :) |
… radio freezes after ~2days of operation. unoserver2: Reset RFM69 if the time of last recvd pkt > 10sec. This reset is a workaround for a JeeLib issue due to which the radio freezes about ~2 days of continuous operation (see jeelabs/jeelib#92) NaTopic2: Don't add packets from node_id=0 to history. PktHndlr: Correctly handle packets from node_id=0; naarad: Set packet history to 4*24hrs.
…est reçu pendant 15 minutes. Parfois, le module ne semble plus réagir aux envois de commande, cette évolution permettra de voir si c'est le module radio qui est bloqué (problème déjà rencontré sur le forum jeelabs/jeelib#92)
When the rf module is high stressed and/or far from other nodes the checkmessagereceived return ever false and i can not send on my rf module.
But if turn off and on the device it start work again.
I've debugged carefully my sketch but it seems to be the library/hardware no responding.
There's so a way to reset the rf module without reboot the device?
The text was updated successfully, but these errors were encountered: