インターフェース2014年10月号のu-blox C027で3G通信する記事で使用したプログラム。   CQ publishing Interface 2014.10 issue, C027 3G test program.

Dependencies:   C027_Support C027_SupportTest mbed picojson

Fork of C027_SupportTest by u-blox

インターフェース2014年10月号のu-blox C027で3G通信する記事で使用したプログラムです。

Files at this revision

API Documentation at this revision

Comitter:
mazgch
Date:
Thu Apr 10 13:07:35 2014 +0000
Parent:
6:71f6214d595e
Child:
8:681a7b36c19d
Commit message:
use latest libarary

Changed in this revision

C027_Support.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/C027_Support.lib	Wed Apr 09 13:04:06 2014 +0000
+++ b/C027_Support.lib	Thu Apr 10 13:07:35 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/ublox/code/C027_Support/#8f12ac182bbb
+http://mbed.org/teams/ublox/code/C027_Support/#c4df7bcf9b6e
--- a/main.cpp	Wed Apr 09 13:04:06 2014 +0000
+++ b/main.cpp	Thu Apr 10 13:07:35 2014 +0000
@@ -10,6 +10,9 @@
     const char* txtDev[] = { "Unknown", "SARA-G350", "LISA-U200", "LISA-C200" };
     if (status->dev < sizeof(txtDev)/sizeof(*txtDev) && (status->dev != MDMParser::DEV_UNKNOWN))
         printf("  Device:       %s\r\n", txtDev[status->dev]);
+    const char* txtLpm[] = { "Disabled", "Enabled", "Active" };
+    if (status->lpm < sizeof(txtLpm)/sizeof(*txtLpm))
+        printf("  Power Save:   %s\r\n", txtLpm[status->lpm]);
     const char* txtSim[] = { "Unknown", "Pin", "Ready" };
     if (status->sim < sizeof(txtSim)/sizeof(*txtSim) && (status->sim != MDMParser::SIM_UNKNOWN))
         printf("  SIM:          %s\r\n", txtSim[status->sim]);
@@ -19,6 +22,8 @@
         printf("  IMEI:         %s\r\n", status->imei);
     if (*status->imsi)  
         printf("  IMSI:         %s\r\n", status->imsi);
+    if (*status->meid) 
+        printf("  MEID:         %s\r\n", status->meid);
     if (*status->manu) 
         printf("  Manufacturer: %s\r\n", status->manu);
     if (*status->model)  
@@ -60,10 +65,10 @@
 
     GPSI2C gps(GPSSDA,GPSSCL,GPSADR);     // use GPSI2C class
     // GPSSerial gps(GPSTXD,GPSRXD,GPSBAUD); // or GPSSerial class 
-    MDMSerial mdm(MDMTXD, MDMRXD, MDMBAUD
-#if DEVICE_SERIAL_FC
-                 ,MDMRTS,MDMCTS
-#endif
+    MDMSerial mdm(MDMTXD,MDMRXD,MDMBAUD
+ #if DEVICE_SERIAL_FC
+                ,MDMRTS,MDMCTS
+ #endif
                 );
                 
     // initialize the modem 
@@ -186,7 +191,7 @@
         mdm.powerOff();
         gps.powerOff();
     }
-    printf("done\r\n");
+    printf("Shutdown\r\n");
     // now it is safe to switch off
     c027.mdmPower(false);
     c027.gpsPower(false);