1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-07 23:14:32 +03:00
openwrt-xburst/package/comgt/files/getimsi.gcom
blogic b592127753 comgt: Add scripts to comgt to retrieve the IMSI and CNUM to identify the SIM card.
Signed-off-by: Daniel Golle <dgolle@allnet.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29365 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-30 14:16:44 +00:00

18 lines
242 B
Plaintext

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 1 "^m" $s
get 1 "^m" $s
let x = len($s)
if x<2 goto continue
let $s = $right($s, x-1)
print $s
:continue
exit 0