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.
Dependencies: ublox-cellular-driver-gen gnss ublox-cellular-base ublox-at-cellular-interface-ext
Revision 8:11be5eb33196, committed 2017-06-13
- Comitter:
- rob.meades@u-blox.com
- Date:
- Tue Jun 13 00:13:40 2017 +0100
- Parent:
- 7:7781212f4bb4
- Child:
- 9:da9695394d5f
- Commit message:
- Running on C027 but NOT yet working correctly, please only use with caution for now.
Changed in this revision
--- a/gnss.lib Fri Jun 09 22:23:57 2017 +0000 +++ b/gnss.lib Tue Jun 13 00:13:40 2017 +0100 @@ -1,1 +1,1 @@ -https://mbed.org/teams/ublox/code/gnss/#82308d600690 +https://mbed.org/teams/ublox/code/gnss/#af4baf3c67f3
--- a/main.cpp Fri Jun 09 22:23:57 2017 +0000
+++ b/main.cpp Tue Jun 13 00:13:40 2017 +0100
@@ -126,7 +126,12 @@
int main()
{
- UbloxATCellularInterfaceExt *interface = new UbloxATCellularInterfaceExt();
+// UbloxATCellularInterfaceExt *interface = new UbloxATCellularInterfaceExt();
+ // If you need to debug the cellular interface, comment out the
+ // instantiation above and uncomment the one below.
+ UbloxATCellularInterfaceExt *interface = new UbloxATCellularInterfaceExt(MDMTXD, MDMRXD,
+ MBED_CONF_UBLOX_CELL_BAUD_RATE,
+ true);
UbloxATCellularInterfaceExt::Error *err;
UbloxATCellularInterfaceExt::CellLocData data;
char buf[1024];
@@ -134,7 +139,12 @@
int numRes;
GnssSerial gnssSerial; // This needed purely to power on the GNSS chip in
// order that Cell Locate on the module can use it
+#ifdef TARGET_UBLOX_C027
+ // No user button on C027
+ InterruptIn userButton(NC);
+#else
InterruptIn userButton(SW0);
+#endif
// Attach a function to the user button
userButton.rise(&cbButton);
@@ -219,7 +229,7 @@
// CELL LOCATE OPERATIONS (in a loop)
printf("=== Cell Locate ===\n");
- printf("Sending Cell Locate requests in a loop until the user button is pressed...\n");
+ printf("Sending Cell Locate requests in a loop (until the user button is pressed on C030 or forever on C027)...\n");
while (!buttonPressed) {
interface->cellLocSrvUdp();
interface->cellLocConfig(1); // Deep scan mode
--- a/mbed-os.lib Fri Jun 09 22:23:57 2017 +0000 +++ b/mbed-os.lib Tue Jun 13 00:13:40 2017 +0100 @@ -1,1 +1,1 @@ -https://github.com/u-blox/mbed-os/#66cee1c02baf29d6b17c3778b6767592b9cbfd60 +https://github.com/u-blox/mbed-os/#4eb6495f370c0a410e6b56be6043591087990ff3