Changeset 29365


Ignore:
Timestamp:
2011-11-30T15:16:44+01:00 (6 years ago)
Author:
blogic
Message:

comgt: Add scripts to comgt to retrieve the IMSI and CNUM to identify the SIM card.

Signed-off-by: Daniel Golle <dgolle@…>

Location:
trunk/package/comgt
Files:
1 added
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/package/comgt/Makefile

    r28636 r29365  
    7575        $(INSTALL_DATA) ./files/getstrength.gcom $(1)/etc/gcom/getstrength.gcom 
    7676        $(INSTALL_DATA) ./files/getcarrier.gcom $(1)/etc/gcom/getcarrier.gcom 
     77        $(INSTALL_DATA) ./files/getcnum.gcom $(1)/etc/gcom/getcnum.gcom 
     78        $(INSTALL_DATA) ./files/getimsi.gcom $(1)/etc/gcom/getimsi.gcom 
    7779        $(INSTALL_DIR) $(1)/etc/hotplug.d/tty 
    7880        $(INSTALL_DATA) $(FILES_DIR)/3g.usb $(1)/etc/hotplug.d/tty/30-3g 
  • trunk/package/comgt/files/getimsi.gcom

    r29364 r29365  
    77 
    88:start 
    9  send "ATI^m" 
    10  get 1 "" $s 
     9 send "AT+CIMI^m" 
     10 get 1 "^m" $s 
     11 get 1 "^m" $s 
     12 let x = len($s) 
     13 if x<2 goto continue 
     14 let $s = $right($s, x-1) 
    1115 print $s 
    12  
    1316:continue 
    1417 exit 0 
Note: See TracChangeset for help on using the changeset viewer.