Own fork of C027_Support
Dependents: MbedSmartRestMain MbedSmartRestMain
Fork of C027_Support by
Revision 59:382695f1ce85, committed 2014-05-13
- Comitter:
- mazgch
- Date:
- Tue May 13 06:54:27 2014 +0000
- Parent:
- 58:e38a2e942fbb
- Child:
- 60:1f65abb842be
- Commit message:
- some more LISA-C fixes
Changed in this revision
MDM.cpp | Show annotated file Show diff for this revision Revisions of this file |
MDM.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MDM.cpp Tue May 13 06:14:13 2014 +0000 +++ b/MDM.cpp Tue May 13 06:54:27 2014 +0000 @@ -547,11 +547,14 @@ _ip = NOIP; if (_dev.dev == DEV_LISA_C200) { // TODO: is there something to do here? - +#if 0 //Get local IP address sendFormated("AT+CMIP?\r\n"); if (RESP_OK != waitFinalResp(_cbCMIP, &_ip)) return NOIP; +#else + return 0x01010101; // a fake IP +#endif } else { // check gprs attach status sendFormated("AT+CGATT?\r\n");
--- a/MDM.h Tue May 13 06:14:13 2014 +0000 +++ b/MDM.h Tue May 13 06:54:27 2014 +0000 @@ -456,7 +456,9 @@ // management struture for sockets typedef enum { SOCK_FREE, SOCK_CREATED, SOCK_CONNECTED } SockState; typedef struct { SockState state; int pending; unsigned int timeout_ms; } SockCtrl; - SockCtrl _sockets[16]; + // LISA-C has 6 TCP and 6 UDP sockets starting at index 18 + // LISA-U and SARA-G have 7 sockets starting at index 1 + SockCtrl _sockets[32]; static MDMParser* inst; };