12345678910111213141516171819202122232425262728293031 |
- #include "includes.h"
- /* IP 查询,网络模式查询,及处于2-4G查询*/
- void AtQuery()
- {
- static unsigned char send_sucCt=0;
-
- switch(send_sucCt){
-
- case 0:
- //ModemSendAT("AT+POC=509\r\n");
- break;
- case 1:
- // ModemSendAT("AT+MODODREX?\r\n");
- ModemSendAT("AT+CSQ\r\n");
- break;
- case 2:
- ModemSendAT("AT^SYSINFO\r\n");
- break;
- }
- if(++send_sucCt>2) send_sucCt=0;
- }
|