我尝试着使用示例代码进行SIM7020C的拨号,我使用了SIM800分支部分的代码进行尝试,首先是执行
Code: Select all
AT+CGDCONT=1,"ip","CMNET"
Code: Select all
AT+CGDCONT?
Code: Select all
+CGDCONT: 1,"IP","CMNBIOT","100.121.10.100",0,0,0,,,,0,,0,,0
所以尝试在示例代码中注释跳过了这条指令,让程序继续执行
按代码的意思是接下来在等待获取ip,并进行进一步的MQTT之类的操作。
而实际上接下来输出如下:
Code: Select all
W (605) esp-modem: 运行的指令:ATD*99#
I (725) pppos_example: Modem PPP Started
I (725) pppos_example: PPP state changed event 259
I (725) pppos_example: PPP state changed event 262
I (745) pppos_example: PPP state changed event 263
I (745) pppos_example: PPP state changed event 265
I (60745) pppos_example: PPP state changed event 267
I (60745) pppos_example: PPP state changed event 262
I (72745) pppos_example: PPP state changed event 268
I (72745) pppos_example: PPP state changed event 256
I (72745) esp-netif_lwip-ppp: Connection lost
I (72745) pppos_example: Modem Disconnect from PPP Server
我不确定是不是7020C这个模组不支持PPPOS的操作,或者说我需要在哪个指令里进一步进行调试,麻烦各位帮忙指点下~