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
Disconnect from GSM network, turn off modem #329
Comments
Here is the API for the Network. |
Ahh thank you! I had been using the last release version which doesn't have a bunch of those functions. |
@zkemble did you get the GSM to turn OFF and then back ON? I cannot get it to turn back ON? |
@medida This works for me: However, there is a bug (again) where if you connect to GPRS, then deregister from the network and register again, GPRS will no longer be able to connect and might crash the module. Only restarting the module fixes it - |
thanks - i'll give that ago. I really want to be able to put the device to sleep - turn off the modem / gps to save as much power as possible... but if i have to reboot i would have to save any settings and re-read them... therfore taking more time. |
The lowest current consumption I can get the module down to is 1.6mA @ 4V (the datasheet says 1.46mA, so not too far off). To get any lower you will have to shutdown the module, which for me gives ~240uA (datasheet says 216uA), which is still kinda high, and you'll loose settings and things, and it can't automatically turn itself back on. |
I just found that setting GPIO_PIN31, GPIO_PIN32, GPIO_PIN33 and GPIO_PIN34 to OUTPUT LOW reduces current by around 0.4mA, so now the lowest current draw while the module is on is 1.2mA. |
I have found i can reconnect the network by calling the following code. For some reason - if i try to connect with the wrong APN - then the correct one - it works! Network_PDP_Context_t context = { |
Thanks for this @medida! I gave it a quick go and it seems to work! General flow of things is:
|
thanks for this info,
is 4mA |
I have no idea an more - i abandoned the product sometime ago as it was not working as i wanted and the project it was inteneded for stopped as well. |
1. SDK version(SDK 版本)
{
V2.112
}
2. In what kind of operation problems appear, and how to reproduce the problem ?(什么样的操作步骤问题会出现,是否是稳定复现,如何复现问题?)
{
Is there any way of disconnecting/unregistering from the GSM network and stop searching? And turn off the modem while still keeping the main processor running?
PM_SleepMode(true)
does not disconnect from the network, as mentioned here #79}
The text was updated successfully, but these errors were encountered: