Getting tower location instead of gps

331 Views Asked by At

I have a GSM/GPS unit connected to a Microcontroller, the communication between them works fine. I am able to get the GPS and send it to the Microcontroller but there are times when the unit is inside the building so I can't really get the current GPS location, instead I want to get the tower location.

The AT command I'm using to get the LAC and CI with response is as follows.

Command: AT+CREG=2

Response: enter image description here

From this, LAC = 2BCB or 11211 and CI = 2B9A or 11162

The sim card I'm using is registered under T-Mobile, so the MCC = 310 and MNC = 260 by looking them up here. However when I plug those values on this website, I don't get the location.

What am I missing ?

I noticed when I try to check the current network with AT+COPS? I don't get the same results as shown here.

enter image description here

Am I suppose to manually set the network information ? If yes please someone provide me with the correct format. I tried sending At+COPS=4,2,”310 260″ but that threw me an error.

Here is the AT command document I am following, it has a different format. Thanks!

1

There are 1 best solutions below

0
On BEST ANSWER

I figured it out, I just had to plug in the values in this website instead of the original website I was using.