-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Digi WiFi S6b becomes unstable #347
Comments
I've seen this happening, but I haven't had time to troubleshoot it yet. |
Ok thanks - good to know (negative logic) - that I'm on to something :( I'm focusing on my SDI-12/LT500 issues 1st. |
The interface code, and on every time the S6B wakes forces the S6B to do a write to its persistent store.
and the answer came today by "mvut Veteran of the Digi Community " |
I had never noticed that warning before in the XBee manual. That needs to be fixed in TinyGSM. |
I've modified TinyGSM to read most parameters from the XBee before attempting to write so it does not have to write to flash when no actual change has been made. It's not perfect, though. For some fields (like passwords) the current value cannot be read back from the XBee so we have no choice but to write it each time. |
Hey thanks. Will check it out. |
Hi @SRGDamia1 could you point at what you did in TinyGSM - I can't find any updates, and I'm still having issues. Thanks |
I created the function |
Unfortunately.. if your S6B's flash has already become unstable because of excessive writing, no changes here will help with that. I doubt anything at all could be done to remedy it. |
Thanks for the info. OK thats what I thought, it is using changeSettingIfNeeded() I did test with my older Xbee S6B, and still saw the same instability, and didn't have the time to dig into it. |
I ran the tests with a brand new Xbee S6B. No different. |
Some recent testing with an update time set at every two minutes resulted in some successful POSTS. |
I have a potential user/Environmental Scientist (Biologist) who has a stream location that has a WiFi access, to connect to a depth gage sensor. The communication model incorporates an application layer "delayed delivery" with an internal "reliable delivery". |
I've got a fix for this and had it testing for the last couple of days successfully. |
I'm (finally!) looking at this. Could you explain what's going on with your fix? What are the caller ID offsets? |
Hey welcome back. ! and happy thanksgiving, trying to get this comment in before an evening meal. Compare against It seems the issue is that S6B isn't tearing down the tcp/ip connection on sleep. So what i do is change the tcp/ip connection to local: before sleeping, Anyway if you want a working S6B (not clear about that as I know there is a lot going on) then tell me which repo it should be against and I'll put a tested version against it. |
Just to reference the above comment - on merging its broken the curated version of TinyGsm for Digi WiFi module that I have. Its taken me two hours to track it down. solution neilh10#125 |
The core of the solution is to force the tcp//ip link to close after each POST, before the WiFi device is put to sleep to save power. There are other debugging and housekeeping also included, and I haven't wanted to change it from the core of what I have tested over 2years. The solution I have is based on two systems that have been working in the field. Both of these systems have had other problems - disconnected solar and the virtual failure - however when these problems where fixed the upload over WiFi using reliable delivery/batch queue algorithms on my fork (neilh10#1) has worked for 100% of outstanding records. https://monitormywatershed.org/sites/nh_LCC45/ transmitting reliably since at least since Jan14/2022 I'm generating two PRs - The test setup only uses local sensors. As this is a verification test setup I also describe and track equipment., For building I'm using the latest Pio on VSC. For working files in src - there is an alpha development environment that I configure in folder ModularSensors\a\DRWI_SIM7080LTE The platformio.ini is setup for development that is against against local source ModularSensors\src. Change to desired destination for TinyGSM For files referencing to the lib ModularSensors use folder ModularSensors\sensors_test\DRWI_SIM7080LTE. Change to desired destination For testing - I've let it run a couple of hours at two minute sampling and verified it gets a '201' - this isn't a long term test Then I've turned off the WiFi signal, let it try a couple of times to find it, then turned it back on, and its continued transmitting. Loosing of course any attempted readings as Reliable Delivery is not implemented yet. Hope I haven't missed anything. Happ to answer any questions - I'm out tomorrow 22nd at https://www.sensorsconverge.com/sensorsconvergecom/expo-highlights |
Debug listing files files |
Sara added to (develop) as part of |
A weekend of testing and no level2 modem driver issues. |
I'm using the Digi Xbee XB2B-WFWT/XB2B-WFUT or WiFi S6B hybrid based off a 0.27.0 baseline .
After some time running it starts to become unstable - after sleeping and being woke up it doesn't connect with the local WiFi network.
Occasionally it seems to stop responding to +++ commands.
Sometimes this takes two days to show with these problems, and other times its within an hour.
It was working on the 0.25.0 base line. I have introduced changes to reduce and then remove the polling of the MetaData in case this is causing the issue, but it still shows.
I'm documenting this in case anybody else is seeing anything similar and this could be a discussion point.
It is a relatively "soft" issue, as it doesn't show straight away and there are a lot of complex elements in the network. It has been happening against two different WiFi gateways I have. It is POSTing data to the MMW.
After Mayfly reset, it reliably connects to the local network WiFi, gets the NIST time successfully, then its only later it isn't able to connect again.
It has been happening across three different Mayfly test systems (each with a WiFi S6B) I was putting on a 0.27.0 stability test.
I have introduced changes to make sure the WiFi S6B hybrid is HARD reset when it shows this, but hasn't appeared to make any difference.
I have moved to the 0.27.5 baseline to be compatible with the latest release, but there isn't much added functionality between 0.27.0 and 0.27.5
I was thinking my next step is to use the "LTE Bee Adapter Rev 1b" board, modified to power down when reset is active.
The text was updated successfully, but these errors were encountered: