Electronic – Trying to find location in GSM network

at commandsgsm

I am using a GSM modem by Simcom SIM 800E. I'm interfacing it over the serial link.

I am passing command AT+CSCB to get the location. But I am not getting it. I just get the response OK.

Can someone tell me the correct way to use this command?

The modem works fine while sending and receiving SMS.

Best Answer

AT+CSCB is to "Select Cell Broadcast SMS Messages" - not to get a location: (datasheet, p. 70)

enter image description here

What you can try is explained here. First send the Test Command, AT+CSCB=?. You should get a response with a list of supported modes. Then you can try the Read Command, AT+CSCB? and you should get the current mode and so. At last you can try a Write Command, AT+CSCB=<mode> with <mode> one of the modes listed in the response to the Test Command. You can verify this change with the Read Command AT+CSCB?.

When you do want a location, try what PeterJ says in the comments on the question: send a AT+CENG=2. This sets the engineering mode (whatever that may be) and replies with all kinds of network information. Refer to the datasheet for an exact list, but it would include:

< mcc > : mobile country code
< mnc > : mobile network code
< bsic > : base station identification code
< lac > : location area code

With the bsic, you can use this to find your location. Other return variables may be useful as well.