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.
LPG_ATCmd_Processing/LPG_ATCmd_Processing.cpp@6:86eea1bcf499, 2019-04-24 (annotated)
- Committer:
- lwtroach
- Date:
- Wed Apr 24 03:30:36 2019 +0000
- Revision:
- 6:86eea1bcf499
- Parent:
- 4:418b6d4097e1
- Child:
- 7:e556528beeba
ALL SECTOR ARE USED BY STORED THE TEST STRING ??? BUT I ONLY GIVE ONE ADDRESS ???
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lwtroach | 0:6bdfb6ccd136 | 1 | |
lwtroach | 0:6bdfb6ccd136 | 2 | #include "LPG_ATCmd_Processing.h" |
lwtroach | 0:6bdfb6ccd136 | 3 | |
lwtroach | 0:6bdfb6ccd136 | 4 | Timer TimeOutCounter; |
lwtroach | 0:6bdfb6ccd136 | 5 | |
lwtroach | 0:6bdfb6ccd136 | 6 | tsATCmds ATCmds[] = |
lwtroach | 0:6bdfb6ccd136 | 7 | { |
lwtroach | 6:86eea1bcf499 | 8 | {(char*)"ATI\r\n",(char*)"OK",2000,e_NO_REC,3}, |
lwtroach | 0:6bdfb6ccd136 | 9 | {(char*)"AT+CFUN=0\r\n",(char*)"OK",2000,e_NO_REC,3}, |
lwtroach | 0:6bdfb6ccd136 | 10 | {(char*)"AT+CFUN=1\r\n",(char*)"OK",2000,e_NO_REC,3}, |
lwtroach | 6:86eea1bcf499 | 11 | {(char*)"AT+CGATT=1\r\n",(char*)"OK",2000,e_NO_REC,3}, |
lwtroach | 6:86eea1bcf499 | 12 | {(char*)"AT+GSN\r\n",(char*)"OK",2000,e_NO_REC,3}, |
lwtroach | 6:86eea1bcf499 | 13 | |
lwtroach | 6:86eea1bcf499 | 14 | |
lwtroach | 0:6bdfb6ccd136 | 15 | }; |
lwtroach | 0:6bdfb6ccd136 | 16 | |
lwtroach | 4:418b6d4097e1 | 17 | void LPG_ATCmd_Processing_WriteCommand(const char* Command, RawSerial TransPort, RawSerial DebugPort) |
lwtroach | 0:6bdfb6ccd136 | 18 | { |
lwtroach | 4:418b6d4097e1 | 19 | LPG_ATCmd_Processing_WriteCommand(Command, TransPort); |
lwtroach | 6:86eea1bcf499 | 20 | /*DebugPort.puts("UART Sended.\r\n");*/ |
lwtroach | 0:6bdfb6ccd136 | 21 | } |
lwtroach | 4:418b6d4097e1 | 22 | void LPG_ATCmd_Processing_WriteCommand(const char* Command, RawSerial TransPort) |
lwtroach | 0:6bdfb6ccd136 | 23 | { |
lwtroach | 4:418b6d4097e1 | 24 | TransPort.puts((const char*)Command); |
lwtroach | 0:6bdfb6ccd136 | 25 | } |
lwtroach | 0:6bdfb6ccd136 | 26 | |
lwtroach | 6:86eea1bcf499 | 27 | void LPG_ATCmd_Processing_ModuleStateCheck() |
lwtroach | 0:6bdfb6ccd136 | 28 | { |
lwtroach | 0:6bdfb6ccd136 | 29 | |
lwtroach | 6:86eea1bcf499 | 30 | |
lwtroach | 0:6bdfb6ccd136 | 31 | } |
lwtroach | 0:6bdfb6ccd136 | 32 | |
lwtroach | 0:6bdfb6ccd136 | 33 | |
lwtroach | 0:6bdfb6ccd136 | 34 | |
lwtroach | 0:6bdfb6ccd136 | 35 | |
lwtroach | 6:86eea1bcf499 | 36 |