learning at command AT+CSUB


【Purpose】

Learning how to get mobile module info

 

【Eevironment】

Shell terminal, base on gcom command and gcom script

 

【Procdeure】

 

opengt
set com 115200n81
set comecho off
set senddelay 0.02
waitquiet 0.2 0.2
flash 0.1

:start
send "AT+CSUB^m"
get 1 "" $s
print $s

:continue
exit 0

 

test mothed:

root@IoTP:/etc/gcom# gcom -d /dev/ttyUSB2 -s csub.gcom 
AT+CSUB
+CSUB: B11V02
+CSUB: MDM9x07_AP_S_217_V1.41_181213

OK

 

posted @ 2019-04-22 14:21  嵌入式实操  阅读(573)  评论(0编辑  收藏  举报