Support for LISA-N101

Fork of C027_Support by u-blox

This is a variant of the C027 driver code for the C027N version, i.e. the one with the Neul/Huawei/u-blox Cellular Internet of Things module on board. The AT command interface for this module is entirely different to the AT interface for the other u-blox modules, hence this fork of the driver. Work is underway to rearchitect the original C027 driver so that a merge can be done.

Revision:
15:5eda64e5b9d1
Parent:
11:b084552b03fe
Child:
18:e5697801df29
--- a/GPS.cpp	Tue Nov 19 09:02:35 2013 +0000
+++ b/GPS.cpp	Fri Nov 22 08:23:30 2013 +0000
@@ -211,7 +211,7 @@
 
 GPSSerial::GPSSerial(PinName tx /*= GPSTXD*/, PinName rx /*= GPSRXD*/, int baudrate /*= GPSBAUD*/,
             int rxSize /*= 256*/, int txSize /*= 128*/) : 
-            SerialPipe(tx, rx, rxSize, txSize, "gps")
+            SerialPipe(tx, rx, rxSize, txSize)
 {
     baud(baudrate);
 }
@@ -295,7 +295,7 @@
     if (!I2C::write(GPSADR,&REGSTREAM,sizeof(REGSTREAM),true))
         sent = GPSParser::sendUbx(cls, id, buf, len);
     found = (len == sent);
-    stop();
+    I2C::stop();
     return sent;
 }
 
@@ -311,7 +311,6 @@
             size = len;
         if (size > 0)
             read = !I2C::read(GPSADR,buf,size, true) ? size : 0;
-        stop();
         found = (read == size);
     }
     else