colony.c 406 B

12345678910111213141516171819202122232425262728293031
  1. #include "includes.h"
  2. /* IP 查询,网络模式查询,及处于2-4G查询*/
  3. void AtQuery()
  4. {
  5. static unsigned char send_sucCt=0;
  6. switch(send_sucCt){
  7. case 0:
  8. //ModemSendAT("AT+POC=509\r\n");
  9. break;
  10. case 1:
  11. // ModemSendAT("AT+MODODREX?\r\n");
  12. ModemSendAT("AT+CSQ\r\n");
  13. break;
  14. case 2:
  15. ModemSendAT("AT^SYSINFO\r\n");
  16. break;
  17. }
  18. if(++send_sucCt>2) send_sucCt=0;
  19. }