u-blox
/
example-reading-imei-imsi
Example to read the modem IMEI and eUICC/SIM IMSI
Revision 2:397a4c92da82, committed 2019-06-05
- Comitter:
- RobMeades
- Date:
- Wed Jun 05 13:42:44 2019 +0100
- Parent:
- 1:63483ec4d0ff
- Child:
- 3:7fb46e218f53
- Commit message:
- Set initial modem interface rate to 115,200 (from 9600) as SARA-R4xx series modems default to this rate and do not auto-baud. Remove unused variable delayToggle.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed-os.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Feb 15 11:48:51 2018 +0000 +++ b/main.cpp Wed Jun 05 13:42:44 2019 +0100 @@ -56,7 +56,6 @@ // To check if the user pressed the User Button or not void threadBodyUserButtonCheck(void const *args){ - float delayToggle = delay; while (1){ if (userButton.read() == 1 ) { // User Button is pressed @@ -153,7 +152,7 @@ printf("\n\r\n\ru-blox C030 reading the modem IMEI and eUICC/SIM IMSI\n\r"); printf("Initialising UART for modem communication"); - fh = new UARTSerial(MDMTXD, MDMRXD, 9600); + fh = new UARTSerial(MDMTXD, MDMRXD, 115200); printf("...DONE\r\n"); // NOTE: if you are experiencing problems with the AT command @@ -161,7 +160,7 @@ // from the AT command parser printf("Initialising the modem AT command parser"); at = new ATCmdParser(fh, OUTPUT_ENTER_KEY, AT_PARSER_BUFFER_SIZE, - AT_PARSER_TIMEOUT, false); + AT_PARSER_TIMEOUT, false); printf("...DONE\r\n"); printf("Initializing the modem\r\n");
--- a/mbed-os.lib Thu Feb 15 11:48:51 2018 +0000 +++ b/mbed-os.lib Wed Jun 05 13:42:44 2019 +0100 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#6e0d01cd13e8aca7bf4d697c3699ec9225386881 +https://github.com/ARMmbed/mbed-os/#2b354a40b068147f7ccddf15204d1e77a5b88ba5