Support for LISA-N101
Fork of C027_Support by
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.
Diff: MDM.h
- Revision:
- 126:76b578ec2912
- Parent:
- 124:a58c1a7c5e18
--- a/MDM.h Thu Apr 23 12:05:40 2015 +0000 +++ b/MDM.h Fri May 22 08:54:47 2015 +0000 @@ -47,7 +47,7 @@ char imei[15+1]; //!< International Mobile Equipment Identity char meid[18+1]; //!< Mobile Equipment IDentifier char manu[16]; //!< Manufacturer (u-blox) - char model[16]; //!< Model Name (LISA-U200, LISA-C200 or SARA-G350) + char model[32]; //!< Model Name (LISA-U200, LISA-C200 or SARA-G350) char ver[16]; //!< Software Version } DevStatus; //! Registration Status @@ -80,7 +80,6 @@ (((IP)(c))<< 8) | \ (((IP)(d))<< 0)) - // ---------------------------------------------------------------- // Device // ---------------------------------------------------------------- @@ -295,6 +294,19 @@ // DATAGRAMS (via C027N Neul module) // ---------------------------------------------------------------- + /** Determine the version of the module. + \return the version string + */ + char * getVersion (void); + + /** Initialise the modem with a MACTEST string. + Only required for Phase 1 modules. + \param size the number of bytes in buf + \param buf the bytes to be sent + \return true if successful, false otherwise + */ + bool sendMactest(int size, const char* buf); + /** Send a datagram \param size the number of bytes in buf \param buf the bytes to be sent @@ -599,6 +611,7 @@ static MDMParser* inst; bool _init; bool _ubloxat; + bool _useNMI; int _outstandingNMI; #ifdef TARGET_UBLOX_C027 bool _onboard; @@ -707,4 +720,4 @@ // the mutex resource Mutex _mtx; }; -#endif \ No newline at end of file +#endif