Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: UbloxCellularBase.cpp
- Branch:
- R4_powerup_fix
- Revision:
- 16:afb3ca2d9915
- Parent:
- 15:93b157a47b8d
- Child:
- 19:15f31e074d67
--- a/UbloxCellularBase.cpp Thu Jul 12 10:13:45 2018 +0500
+++ b/UbloxCellularBase.cpp Tue Jul 24 11:59:48 2018 +0500
@@ -556,7 +556,10 @@
wait_ms(250);
for (int retry_count = 0; !success && (retry_count < 20); retry_count++) {
- modem_power_up();
+ //In case of SARA-R4, modem takes a while to turn on, constantly toggling the power pin every ~2 secs causes the modem to never power up.
+ if ( (retry_count % 5) == 0) {
+ modem_power_up();
+ }
wait_ms(500);
// Modem tends to spit out noise during power up - don't confuse the parser
_at->flush();