AT command AT+CIMI

Purpose

       Learning how to get the International Mobile Subscriber Identity

 

Eevironment

       Shell terminal, base on gcom command and gcom script

 

Procdeure

      

gcom script :

opengt
set com 115200n81
set comecho off
set senddelay 0.02
waitquiet 0.2 0.2
flash 0.1 :start
send "AT+CIMI^m"
get "^m" $s
get "^m" $s
let x = len($s)
if x< goto continue
let $s = $right($s, x-)
print $s
:continue
exit

test method:

root@IoTP:~# gcom -d /dev/ttyUSB2 -s /etc/gcom/getimsi.gcom
05-07 15:44