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.
Dependents: App_Pese_Ruche_SYSBEE
Fork of C027_Support by
Revision 140:8ad0ff04c73c, committed 2018-04-11
- Comitter:
- maxelior
- Date:
- Wed Apr 11 08:43:42 2018 +0000
- Parent:
- 137:6a7a5c4f35f6
- Commit message:
- version fonctionnelle sans fonction essaimage et gps
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 Mon Jan 25 13:30:55 2016 +0000
+++ b/MDM.cpp Wed Apr 11 08:43:42 2018 +0000
@@ -710,6 +710,7 @@
ok = REG_DONE(_net.csd) &&
(REG_DONE(_net.psd) || REG_DONE(_net.eps));
UNLOCK();
+ INFO(".");
return ok;
failure:
unlock();
@@ -2041,7 +2042,7 @@
#ifdef MDM_DEBUG
_debugLevel = (level < -1) ? -1 :
(level > 3) ? 3 :
- level;
+ level;
#endif
return _debugLevel == level;
}
@@ -2049,7 +2050,7 @@
void MDMParser::dumpDevStatus(MDMParser::DevStatus* status,
_DPRINT dprint, void* param)
{
- dprint(param, "Modem::devStatus\r\n");
+ dprint(param, "\r\nModem::devStatus\r\n");
const char* txtDev[] = { "Unknown", "SARA-G35", "LISA-U2", "LISA-U2-03S", "LISA-C2",
"SARA-U2", "LEON-G2", "TOBY-L2", "MPCI-L2" };
if (status->dev < sizeof(txtDev)/sizeof(*txtDev) && (status->dev != DEV_UNKNOWN))
--- a/MDM.h Mon Jan 25 13:30:55 2016 +0000
+++ b/MDM.h Wed Apr 11 08:43:42 2018 +0000
@@ -15,9 +15,11 @@
//! include debug capabilty on more powerful targets with a dedicated debug port
#if defined(TARGET_LPC1768) || defined(TARGET_LPC4088) || defined(TARGET_K64F)
- #define MDM_DEBUG
+ #define MDM_DEBUG 1
#endif
+#define MDM_DEBUG 1 //modifié par nos soins...
+
/** basic modem parser class
*/
class MDMParser
@@ -787,8 +789,8 @@
\param rxSize the size of the serial rx buffer
\param txSize the size of the serial tx buffer
*/
- MDMSerial(PinName tx MDM_IF( = MDMTXD, = D1 ),
- PinName rx MDM_IF( = MDMRXD, = D0 ),
+ MDMSerial(PinName tx MDM_IF( = MDMTXD, = D8 ),
+ PinName rx MDM_IF( = MDMRXD, = D2 ),
int baudrate MDM_IF( = MDMBAUD, = 115200 ),
#if DEVICE_SERIAL_FC
PinName rts MDM_IF( = MDMRTS, = NC /* D2 resistor R62 on shield not mounted */ ),
