Implementation of the CellularInterface for u-blox C027 and C030 (non-N2xx flavour) modems that uses the IP stack on-board the cellular modem, hence not requiring LWIP (and so less RAM) and allowing any AT command exchanges to be carried out at the same time as data transfers (since the modem remains in AT mode all the time). This library may be used from mbed 5.5 onwards. If you need to use SMS, USSD or access the modem file system at the same time as using the CellularInterface then use ublox-at-cellular-interface-ext instead.
Dependents: example-ublox-cellular-interface example-ublox-cellular-interface_r410M example-ublox-mbed-client example-ublox-cellular-interface ... more
Revision 27:3d709ee8c3e1, committed 2019-05-23
- Comitter:
- wajahat.abbas@u-blox.com
- Date:
- Thu May 23 13:07:14 2019 +0500
- Parent:
- 26:4f28a1eaa2aa
- Child:
- 28:aef4a3de0de3
- Commit message:
- updated RAT and MNO test cases
Changed in this revision
TESTS/unit_tests/default/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/TESTS/unit_tests/default/main.cpp Wed May 22 16:14:50 2019 +0500 +++ b/TESTS/unit_tests/default/main.cpp Thu May 23 13:07:14 2019 +0500 @@ -1080,7 +1080,7 @@ if (interface->is_registered_csd() || interface->is_registered_psd() || interface->is_registered_eps()) { tr_error("RAT should only be set in detached state"); // Deregister from Network - TEST_ASSERT(interface->nwk_deregistration()); + drop_connection(interface); } // Get and store initial RAT set on modem @@ -1125,7 +1125,7 @@ TEST_ASSERT(interface->connect(MBED_CONF_APP_DEFAULT_PIN, MBED_CONF_APP_APN, MBED_CONF_APP_USERNAME, MBED_CONF_APP_PASSWORD) == 0); - TEST_ASSERT(interface->nwk_deregistration()); + drop_connection(interface); } @@ -1159,7 +1159,7 @@ if (interface->is_registered_csd() || interface->is_registered_psd() || interface->is_registered_eps()) { tr_error("MNO profile should only be set in detached state"); // Deregister from Network - TEST_ASSERT(interface->nwk_deregistration()); + drop_connection(interface); } // Getting current mno profile @@ -1184,7 +1184,7 @@ TEST_ASSERT(interface->connect(MBED_CONF_APP_DEFAULT_PIN, MBED_CONF_APP_APN, MBED_CONF_APP_USERNAME, MBED_CONF_APP_PASSWORD) == 0); - TEST_ASSERT(interface->nwk_deregistration()); + drop_connection(interface); // Restore MNO profile to previous settings TEST_ASSERT(interface->set_mno_profile((UbloxATCellularInterface::MNOProfile)previous_profile));