-
Notifications
You must be signed in to change notification settings - Fork 43
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
Fails or disconnects after a month #106
Comments
If the system needs to run continuously for a month before a failure occurs, logging to SD may be the only solution. |
Thanks @lewisxhe - I ring the remote T-SIM7600 board it goes straight to answer phone so I am guessing this means its off line or off 4G connectivity? what is your view on this? Normally you could ring wait for x times until it meets the threshold and answer. The fact it answers straight away?
This to me seems that it T-SIM7600 board is not answering which must mean the modem is either off 4G, hung or other or its not running my code above - what is the default behavior here? Q. If the T-SIM7600 has a connection but the ESP has hung will it answer a incoming call immediately? I run multiple functions with a timer.
Some take a lot of values and some do not. Some update every 4 hrs some ever 24hrs. If TempCount is unsigned int (16-bit unsigned): An unsigned int can hold a maximum value of 65,535. With Update_temp() called once per second: The counter would overflow after 65,535 seconds. Converting this to days: If TempCount is unsigned long (32-bit unsigned): Using an unsigned long would give a much longer time before overflow, and the 23 days of operation is well within the capacity of this data type. Unsigned long: Use for counters that need to handle long time periods (e.g., over several days or weeks). Unsigned int: If you know that a counter will never exceed 65,535 (around 18 hours for 1-second increments), you could consider using unsigned int instead to save memory (if your microcontroller has limited RAM). Change to ... Using unsigned long allows these counters to handle much larger values (up to 4,294,967,295) without risk of overflow for an extended period (years, depending on increment frequency). example
Suspect I need to change from int to long and or bool?
So am I heading in the right direction? bool is used for simple true/false decisions. |
Deployed a T-SIM7600 board which has been running for close to the entire month. I have code that reconnects the SIM if it shows its disconnected. The T-SIM7600 is currently 4hrs drive away so not a easy fix.
Prior to deploying it to the remote site hence why I needed this type of 4G connectivity I disabled the debugging serial as this is now the second time I had experienced this issue.
Setup code that if it receives a call from cell A it will kick off a reboot or a call from cell B place it into deep sleep that only the ESP not the modem as I couldn't get the code to work for the modem as well.
If I ring the remote T-SIM7600 board it goes straight to answer phone so I am guessing this means its off line or off 4G connectivity?
I also setup code that if it receives a text with a exact code number and task it could reboot, deep sleep, arm or disarm.
There is also code running to check SIM credit balance every 23hrs and this stopped a few days ago as I can see the history logs in the SIM carry portal.
Note the way I have coded is T-SIM7600 board runs a process with timers to check x at different intervals. I do remember seeing some where issues with running timers over a long periods?
Example:
So my question is as follows:
Any advice on how to move forward please?
Revised the code for another issue
#40
The text was updated successfully, but these errors were encountered: