aboutsummaryrefslogtreecommitdiffstats
path: root/package/comgt/files/getimsi.gcom
diff options
context:
space:
mode:
Diffstat (limited to 'package/comgt/files/getimsi.gcom')
-rw-r--r--package/comgt/files/getimsi.gcom17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/comgt/files/getimsi.gcom b/package/comgt/files/getimsi.gcom
new file mode 100644
index 0000000000..04854561b1
--- /dev/null
+++ b/package/comgt/files/getimsi.gcom
@@ -0,0 +1,17 @@
+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