Search code examples
internet-explorerwinapimodem

How to get IMEI number of a data card?


I have a Vodaphone data card with SIM embedded in that.

There is IMEI number printed on datacard. I wanted to know is there any way to read the IMEI number of that data card programmatically.

I am using datacard for browsing.

And also I wanted to know where can I get information on programming for data card so that I can get more information on data card.


Solution

  • The data card most likely acts as a modem, and most GSM modems support the ETSI GSM 07.07 standard.

    You should get the IMEI by issuing AT+CGSN:

    5.4 Request product serial number identification +CGSN

    Table 5: +CGSN action command syntax

    Command          Possible response(s)
    +CGSN            <sn>
                     +CME ERROR: <err>
    +CGSN=?
    

    Description

    Execution command causes the TA to return one or more lines of information text , determined by the ME manufacturer, which is intended to permit the user of the TA to identify the individual ME to which it is connected to.

    Typically, the text will consist of a single line containing the IMEI (International Mobile station Equipment Identity) number of the ME, but manufacturers may choose to provide more information if desired. Refer subclause 9.2 for possible <err> values.

    Defined values

    <sn>: the total number of characters, including line terminators, in the information text shall not exceed 2048 characters. Text shall not contain the sequence 0<CR> or OK<CR>

    Implementation

    Optional.