How to get current location area using AT command

musharrafalam

Distinguished
May 27, 2011
2
0
18,510
Hi Rajveer

You can use the following command

AT+CREG?

This will give you a result like:

+CREG: 2, 1, "00DE", "665A"

The "2" reflects the current "+CREG" setting (2 means "Enables unexpected network registration and location information messages" )
"1" indicates that the phone is registered with the network,
In my case "00DE" is the Location Area Code (LAC) in hex,
and "665A" is the CellID (CI) in hex.

Regards

Musharraf
 

dee_26

Distinguished
Jan 18, 2012
1
0
18,510


How do we know the address of LAC using AT Command?

please help
thanks
Regards
Dee
 

musharrafalam

Distinguished
May 27, 2011
2
0
18,510
Dee,
If I am getting it right, you want current location of your GSM modem in the form of address. If this is true, then you can get it only if your GSM service provider broadcasts it in your Location Area.
It would be better if you obtain Location Codes based on area and prepare a list of what Location code means which Area.

Regards

Musharraf
 

sumitdby

Distinguished
Feb 4, 2012
2
0
18,510



hi :hello: Musharraf

m getting result like..

+CREG: 1,5 only

how do i decode the location