Download the Tom's Hardware App from the App Store
The reference for current tech news
Yes No
Tom's Hardware > Forum > Smartphones & PDAs > General Discussion > How to get current location area using AT command

How to get current location area using AT command

Forum Smartphones & PDAs : General Discussion How to get current location area using AT command

Word :    Username :           
 

Hello,
I am searching for AT command to display present local area name. Please help me asap. Thanks in advance.

Rajveer.

Reply to vikramkerkar
Register or log in to remove.

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

Reply to musharrafalam

musharrafalam wrote :

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



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

please help
thanks
Regards
Dee

Reply to dee_26

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

Reply to musharrafalam

musharrafalam wrote :

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




hi :hello: Musharraf

m getting result like..

+CREG: 1,5 only

how do i decode the location

Reply to sumitdby



hi :hello: Musharraf

m getting result like..

+CREG: 1,5 only

how do i decode the location

Reply to sumitdby
Register or log in to remove.
Tom's Hardware > Forum > Smartphones & PDAs > General Discussion > How to get current location area using AT command
Go to:

There are 399 identified and unidentified users. To see the list of identified users, Click here.

  • Ask the community now
  • Publish
Ad
Latest best answer
I want to add users to my freshly activated Terminal win server 2003
By ijack, 768 days ago:

Installation should be pretty much the same. Here's an article specific to 2003. If that...

They won a badge
Join us in greeting them