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

Files at this revision

API Documentation at this revision

Comitter:
rob.meades@u-blox.com
Date:
Mon Jun 12 23:04:27 2017 +0100
Parent:
0:7ccf0e7e8a83
Child:
2:c89190eda594
Child:
3:c998512df3d0
Commit message:
Tested on C027.

Changed in this revision

TESTS/unit_tests/default/main.cpp Show annotated file Show diff for this revision Revisions of this file
UbloxATCellularInterface.cpp Show annotated file Show diff for this revision Revisions of this file
UbloxATCellularInterface.h Show annotated file Show diff for this revision Revisions of this file
--- a/TESTS/unit_tests/default/main.cpp	Mon Jun 12 21:32:21 2017 +0000
+++ b/TESTS/unit_tests/default/main.cpp	Mon Jun 12 23:04:27 2017 +0100
@@ -1,4 +1,4 @@
-#include "ublox_modem_driver/UbloxATCellularInterface.h"
+#include "UbloxATCellularInterface.h"
 #include "greentea-client/test_env.h"
 #include "unity.h"
 #include "utest.h"
@@ -7,10 +7,10 @@
 #include "mbed_trace.h"
 #define TRACE_GROUP "TEST"
 #else
-#define tr_debug(format, ...) debug(format, ## __VA_ARGS__)
-#define tr_info(format, ...)  debug(format, ## __VA_ARGS__)
-#define tr_warn(format, ...)  debug(format, ## __VA_ARGS__)
-#define tr_error(format, ...) debug(format, ## __VA_ARGS__)
+#define tr_debug(format, ...) debug(format "\n", ## __VA_ARGS__)
+#define tr_info(format, ...)  debug(format "\n", ## __VA_ARGS__)
+#define tr_warn(format, ...)  debug(format "\n", ## __VA_ARGS__)
+#define tr_error(format, ...) debug(format "\n", ## __VA_ARGS__)
 #endif
 
 using namespace utest::v1;
--- a/UbloxATCellularInterface.cpp	Mon Jun 12 21:32:21 2017 +0000
+++ b/UbloxATCellularInterface.cpp	Mon Jun 12 23:04:27 2017 +0100
@@ -21,10 +21,10 @@
 #include "mbed_trace.h"
 #define TRACE_GROUP "UACI"
 #else
-#define tr_debug(format, ...) debug(format, ## __VA_ARGS__)
-#define tr_info(format, ...)  debug(format, ## __VA_ARGS__)
-#define tr_warn(format, ...)  debug(format, ## __VA_ARGS__)
-#define tr_error(format, ...) debug(format, ## __VA_ARGS__)
+#define tr_debug(format, ...) debug(format "\n", ## __VA_ARGS__)
+#define tr_info(format, ...)  debug(format "\n", ## __VA_ARGS__)
+#define tr_warn(format, ...)  debug(format "\n", ## __VA_ARGS__)
+#define tr_error(format, ...) debug(format "\n", ## __VA_ARGS__)
 #endif
 
 /**********************************************************************
--- a/UbloxATCellularInterface.h	Mon Jun 12 21:32:21 2017 +0000
+++ b/UbloxATCellularInterface.h	Mon Jun 12 23:04:27 2017 +0100
@@ -13,11 +13,11 @@
  * limitations under the License.
  */
 
-#ifndef _UBLOX_CELLULAR_DRIVER_GEN_AT_DATA_
-#define _UBLOX_CELLULAR_DRIVER_GEN_AT_DATA_
+#ifndef _UBLOX_AT_CELLULAR_INTERFACE_
+#define _UBLOX_AT_CELLULAR_INTERFACE_
 
-#include "ublox_modem_driver/UbloxCellularBase.h"
-#include "netsocket/CellularBase.h"
+#include "UbloxCellularBase.h"
+#include "CellularBase.h"
 #include "NetworkStack.h"
 
 /** UbloxATCellularInterface class.
@@ -621,5 +621,5 @@
     void UUPSDD_URC();
 };
 
-#endif // _UBLOX_CELLULAR_DRIVER_GEN_AT_DATA_
+#endif // _UBLOX_AT_CELLULAR_INTERFACE_