一. 网址参考
二. 实践与截图
1. 检测GPRS模块和SIM卡信息
1)AT指令测试
2)设置TA(Terminal Adapter)响应格式
2. AT+QICSGP配置APN
write:AT+QICSGP=1,1,"lebara","","",1 ec20 read[6]: OK
3. CFUN切换
4. CFUN切换之后,查询当前网络状态:
AT+COPS?, AT+CGREG?, AT+QENG="servingcell
5. AT+QIACT=1 拨号,AT+QIACT? 查询拨号结果
write:AT+QIACT=1 ec20 read[6]: OK write:AT+QIACT? ec20 read[39]: +QIACT: 1,1,1,"10.203.75.182" OK
6. AT+QIOPEN:连接TCP服务器及查询连接状态
write:AT+QIOPEN=1,0,"TCP","46.251.153.210",8900,0,1 ec20 read[6]: OK write:AT+QISTATE=1,0 ec20 read[67]: +QISTATE: 0,"TCP","46.251.153.210",8900,0,1,1,0,1,"uart1" OK
7. AT+QNWINFO: 查询连接的网络信息
ec20 read[72]: +QNWINFO: "FDD LTE","42003","LTE BAND 20",1850 OK +QIOPEN: 0,0
标签:OK,read,TCP,write,指令,ec20,QIACT,调试 From: https://www.cnblogs.com/shanyu20/p/17085097.html