Question

I need to extract the following data from a 3G modem:

  • The mobile network code
  • The mobile location area code
  • The connected mobile cell tower ID
  • The SIM security status (Unlocked, PIN or PUK)
  • The SIM serial number

My technique of getting data from the USB 3G modem is using AT commands over a serial interface. Does anyone know how I can gather this information? I cannot seem to find relevant AT commands to use.

No correct solution

OTHER TIPS

You need the standard 3GPP AT command specification.

Mobile network code example section 7.3: Get network name:

at+cops?

+COPS: 0,0,"Vodafone.de",2

OK

Set +COPS to return network code and get code:

at+cops=0,2
OK
at+cops?
+COPS: 0,2,"26202",6

LAC and Cell Id, section 7.2: Example using +CREG:

at+creg=2
OK
at+creg?
+CREG: 2,1, 2A9, EBA7011

OK

SIM security status, Section 8.3 eg:

AT+CPIN?
+CPIN: SIM PIN

SIM id number: You can read the IMSI with + CIMI, Section 5.5

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top