Base class for the ublox-xxx-cellular-xxx classes. Cannot be used standalone, only inherited by classes that do properly useful stuff. Or, to put it another way, if you are using any of the ublox-xxx-cellular-xxx classes, you will need this class also.
Dependents: example-ublox-cellular-interface example-ublox-cellular-driver-gen HelloMQTT example-ublox-cellular-interface_r410M ... more
Diff: UbloxCellularBase.cpp
- Branch:
- R4_powerup_fix
- Revision:
- 16:afb3ca2d9915
- Parent:
- 15:93b157a47b8d
- Child:
- 19:15f31e074d67
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();
u-blox