learning at commad AT+CPSI

【Purpose】

Learning how to get mobile network info

【Eevironment】

Shell terminal, base on gcom command and gcom script

【Procdeure】

root@IoTP:/etc/gcom# cat cpsi.gcom 
opengt
set com 115200n81
set comecho off
set senddelay 0.02
waitquiet 0.2 0.2
flash 0.1

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

:continue
exit 0

  test method:

root@IoTP:/etc/gcom# gcom -d /dev/ttyUSB2 -s cpsi.gcom 
AT+CPSI?
+CPSI: LTE,Online,460-00,0x5140,86233862,50,EUTRAN-BAND38,37900,5,5,-70,-848,-578,17

OK

  

原文地址:https://www.cnblogs.com/lianghong881018/p/10484600.html