Fork of ublox-cellular-base to add LARA-R2 support
Fork of ublox-cellular-base by
Diff: UbloxCellularBase.cpp
- Branch:
- R4_powerup_fix
- Revision:
- 16:afb3ca2d9915
- Parent:
- 15:93b157a47b8d
diff -r 93b157a47b8d -r afb3ca2d9915 UbloxCellularBase.cpp --- 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();