Skip to content
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

Stable connections + GSM USSD Codes #779

Open
bill210kouk opened this issue Feb 10, 2024 · 0 comments
Open

Stable connections + GSM USSD Codes #779

bill210kouk opened this issue Feb 10, 2024 · 0 comments

Comments

@bill210kouk
Copy link

[ x] I have read the Troubleshooting section of the ReadMe

What type of issues is this?

[ ] Request to support a new module

[ ] Bug or problem compiling the library
[ ] Bug or issue with library functionality (ie, sending data over TCP/IP)
[ x] Question or request for help

What are you working with?

Modem: A7670E
Main processor board: ESP32 GSM LILYGO A7670E
TinyGSM version: Latest
Code:Loop code :
if (!modem.isGprsConnected()){
Serial.println("Setup GPRS");
gprsSetup();
}
if (!mqtt.connected()){
Serial.println("Setup MQTT");
mqttConnection();
}
mqtt.loop();

Scenario, steps to reproduce

I would like to ask the community. Im producing a custom solution in which it is mandatory to keep connections 24/7 and be able to use ussd commands to retrieve balance and remaining MB + a check to reliably read unread sms. In my case with this loop and functions implemented to achieve i have managed to maintain a stable connection to a broker with gprs connection. The problem i noticed is that when i try to use USSD commands with AT+CUSD=1 or the function implemented inside the library my gsm module restarts thus disconnecting and failing to achieve the command asked. If there any way to optimize all functionalities without restarts?

Expected result

Actual result

Controller when asked about USSD commands restarts the gsm modul

Debug and AT command log

ATREADY1 most of the times. Low successful rate on commands

@bill210kouk bill210kouk changed the title Stable connections + GSM Stable connections + GSM USSD Codes Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant