Comments (12)
I also tried to reset the Arduino board using the RESET button but the SIM7000G only come back if I power off the board disconnecting the USB cable and switch off.
from lilygo-t-sim7000g.
If your board stops responding to AT then you are doing something wrong in the sketch. My company has these installed all across our city for data collection, they have been running for months and all reply to AT commands just fine. Not a single one has gone "bad".
Assuming you just want to REBOOT the sim7000g you can use
#define MODEM_RST 5
void modem_reset() {
Serial.println("\nModem hardware reset\n");
pinMode(MODEM_RST, OUTPUT);
digitalWrite(MODEM_RST, LOW);
delay(260); //Treset 252ms
digitalWrite(MODEM_RST, HIGH);
delay(10000); //Modem takes longer to get ready and reply after this kind of reset vs power on
}
This will do the same thing as pressing a REBOOT button on the sim7000g (if it had one).
you can also just disconnect all power (batteries and USB) then plug it back in.
the button on the board called RST is for the ESP32 to REBOOT
if it is not replying to AT after this you may need to RESET the sim7000g. there is a sketch made to reset the board.
/examples/Arduino_TinyGSM/ResetModem
It is not a perfect reset tho because they don't have one for the sim7000 yet so it's using the sim800 code (very very similar)
Another thing, we don't use the FONA library. that is adafruit. it is super old, outdated, and not maintained as it should be. If you are just trying to build something simple, FONA might work. I have done a LOT of development with Sim7000 modules and I also have tried using FONA. I hated it. they use bad methods of "talking" to the sim7000 that can result in a "bricked" device (AT not working).
So for those reasons I highly recommend using TinyGSM since it is under active development.
If this has fixed your issue CLOSE it, If you need more help, leave a reply 🙂
- Hale
from lilygo-t-sim7000g.
Thanks @Mr-HaleYa for all this information.
I'm not using FONA, I made my own direct calls with async wait for response.
It's difficult to investigate because it took more than 24h to stop.
I'm using 25 boards to test and only 1 or 2 stops after this time. They are not always the same stopping.
I tried your reset and tried to use the PWR pin for 1500 ms to try to reset the SIM board when it stop responding but didn't work too.
When the SIM7000 stop responding the STATUS led is on.
The only way to restore is to disconnect from power.
In your city your are using 2G, 3G or LTE?
Here the board is in 2G and the power consumption is bigger.
Maybe this could be causing the SIM halts?
In your city you have any kind of periodic reset to avoid halts?
Do you have any other clue to check?
Thank you!!
from lilygo-t-sim7000g.
Where do you live? because in the USA 2G is dead since t-mobile (the last company carrying 2g) has ended support.
Maybe this could be causing the SIM halts?
I use CAT-M1 which is a version of LTE. I also used 2G for months so I'm VERY doubtful this is the reason
What else is it doing when it stops working? like I said it should not just stop unless something is wrong. What I do is if any errors happen ESP.restart();
from lilygo-t-sim7000g.
I'm in Spain, we have some areas with only 2G yet.
I will try to test in the city with LTE and see if this stops too.
When it stops the ESP keep working I just lose the communication with SIM7000.
I also tried the ESP.restart() but the ESP restarts normally and the SIM7000 still don't respond until I disconnect the power.
I will keep trying to find whats wrong and get back with updates soon.
Many thanks for your help!
from lilygo-t-sim7000g.
After 72hrs running the boards in the city none has stopped.
This is a good news, but I use this boards inside cars moving into areas without signal.
So it concern me if it will stop or not...
I'm still guessing the problem could be caused by a power consumption peak.
There is some point of the board where I can add a capacitor to hold the power to avoid this kind of situation?
Many thanks for your help!
from lilygo-t-sim7000g.
Hay procopio
I am also in Spain and not having any issues like this. What carrier are you using for 2G?
from lilygo-t-sim7000g.
Hi @grichfitz , we are using Orange and you?
from lilygo-t-sim7000g.
Why do you think that is caused by power consumption peak? You think the power draw spikes or dips and then it locks the sim7000? Adding a capacitor with smooth spikes but I really don't understand your thinking of power spikes
If you want to restart the modem I explained how but you said it didn't work yet you didn't really explain what you meant by that. When they stop working do the little red LEDs keep blinking or do they both shut off or what is the state of the board?
from lilygo-t-sim7000g.
Found the problem!
At some point we was sending AT commands without wait the response from another command.
I think this was crashing the sim7000 someway.
Now we learn to send one command per time.
Thanks for you all and hope this help someone.
from lilygo-t-sim7000g.
Found the problem!
At some point we was sending AT commands without wait the response from another command.
I think this was crashing the sim7000 someway.
Now we learn to send one command per time.
Thanks for you all and hope this help someone.
Yes, that can cause crashes.
I hope you have fixed your problem but if you are still having disconnections I found that mine was having them because it was trying to connect to incorrect bands. I removed all bands except band 12 from catm1 and now it hasn't disconnected once for a week. before it disconnected every 52-85 minutes
if you are using catm1 or NBIOT then you can see the bands with this AT command AT+CBANDCFG?
and set you own bands with AT+CBANDCFG=CAT-M,12
(I use catm1 band 12 only)
from lilygo-t-sim7000g.
Tks for the tip @Mr-HaleYa!
My problem with AT command was the AT+CGATT=1 has timeout of 140 seconds to give an error, but in the AT Commands document it is wrong (75 seconds).
After the 75 seconds I was trying to send a new command and the modem stop responding.
from lilygo-t-sim7000g.
Related Issues (20)
- MQTT Example crashing
- T-SIM7070G schematics
- Devicescript board config files
- SMS+CALL+ LTE CONNECTION SAME TIME HOT 1
- e-Paper display connect
- Differences between TTGO SIM7070G and SIM7000G
- Micro python modem connection help
- ESP32 Firmware Upgrade via SIM7000G
- Is the LoRa shield compatible with both T-SIM7070G and T-SIM7000G?
- 7000X-PCIE 52 pin schematic
- ************************Does Lilygo ACTUALLY provide support???********************** HOT 1
- Измените регион и язык
- T-SIM7000G and LoRa shield Error LORA Begin FAIL
- Blynk Connectivity in Australia and battery use
- Firebase RealTime
- GSM/SIM connector type/size
- Difficulty in setting up GPIO
- SIM7000G ok but SIM7070G drops data on LTE-M TCP connections HOT 1
- Unable to Power Board: Computer not recognizing USB
- SIM7070G Modem Power-on Failure HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lilygo-t-sim7000g.