A mobile phone forum. Mobile-Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Mobile-Forum forum » General mobile phone forums » GSM
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

GSM localization - triangulation



 
 
Thread Tools Display Modes
  #1  
Old November 15th 15, 12:07 PM posted to alt.cellular.gsm
gm
external usenet poster
 
Posts: 12
Default GSM localization - triangulation

Hi !

Am making one project with my sim900 module and AT command set.
The goal is to get , as much as possible, correct location of my gsm
modem. This is what i tried so far:

AT+COPS?
-----------
+COPS: 0,0,"Tele2"
OK


AT+CREG?
-----------
+CREG: 0,1
OK

Parameters:
mode 0 - automatic choice (the parameter oper will be ignored)
format 1 - alphanumeric short form

AT+CGREG?
----------
+CGREG: 2,1,"006F","263F"

Am getting good location but just one line and one tower...

AT+CGREG=?
---------
+CGREG: (0,1,2)
OK

What does this 3 parameters do ? Should there not be just two ?
How can i call AT+CGREG[=[n]] with this "n" number.

Anyway, help needed on setting basic triangulation.

Thank you in advance !
GM
  #2  
Old November 16th 15, 12:12 AM posted to alt.cellular.gsm
John Henderson[_2_]
external usenet poster
 
Posts: 57
Default GSM localization - triangulation

gm wrote:

Am making one project with my sim900 module and AT command set.
The goal is to get , as much as possible, correct location of my gsm
modem. This is what i tried so far:


I'm commenting on the things you raise out of order. I want to tackle
the following aspect first, because it may affect your understanding of
AT commands generally.

AT+CGREG=?
---------
+CGREG: (0,1,2)
OK

What does this 3 parameters do ? Should there not be just two ?
How can i call AT+CGREG[=[n]] with this "n" number.


I think you've misunderstod the query forma of AT command syntax. They
are not three parameters, but three supported alternative values for
parameter 1.

Let's take this AT+CGREG command as our example. Certain (but far
from all) commands have three types of syntax. They a

1. Set the value for the command on the modem. If you want to
set +CGREG to zero, the command is "AT+CGREG=0".

2. Query the present value. The syntax for that is "AT+CGREG?".

3. Query the range of values supported by the modem. This is the
"AT+CGREG=?" command.

In the case of this command, only the first parameter can be set.
That's the mode of responses to subsequent "AT+CGREG?" commands.

Your "AT+CGREG=?" command result is telling you that +CGREG can be set
to either 0, or 1, or 2. The other value defined in 3GPP 27.007 is 3,
and your modem is telling you that it doesn't support being set to 3.

AT+CGREG?
----------
+CGREG: 2,1,"006F","263F"


This is telling you that you've got +CGREG set to 2.

The 1 in the second parameter says that your modem is registered on your
home network.

And then there's the LAC and cell ID, of course.

If +CGREG was set to 0 or to 1, you'd not be getting LAC and cell ID
information.

Now modes 1 and 2 also provide unsolicited reports. That's to say,
you'll get a "+CGREG: ..." result whenever there's a change in the
cellular environment which affects +CGREG.

AT+COPS?
-----------
+COPS: 0,0,"Tele2"
OK


That's giving you the operator name. You can set it to give you the
network ID (MCC concatenated with MNC) instead, using "AT+COPS?" after
configuring it first with "AT+COPS=3,2".

The nalue 3 in the first parameter means "leave the value in the first
parameter unchanged".

Assuming that you don't have a data connection up, the command
"AT+COPS=?" will do a little more than report supported values. It does
a network scan, and will report all networks visible to your modem at
the time. It can take a while (from several seconds to more than a
minute) to come back with results.

AT+CREG?
-----------
+CREG: 0,1
OK

Parameters:
mode 0 - automatic choice (the parameter oper will be ignored)
format 1 - alphanumeric short form


I don't know where you got that bit about format from, but it's
not right. It seems to me that you're thinking about the "AT+COPS"
command there.

In fact, "AT+CREG" and "AT+CGREG" behave in the same way. The differnce
is that "AT+CREG" lives in the circuit-switched domain, while "AT+CGREG"
works in the packet domain (ie, with GPRS as far as GSM is concerned).
Personally, I'd avoid any potential problems with the APNs required for
GPRS, and use "AT+CREG=2" instead.

In fact, if you want a one-shot reading of LAC and cell ID, with no
unexpected unsolicited results to follow, you can do that with the
composite command:

AT+CREG=2;+CREG?;+CREG=0

Am getting good location but just one line and one tower...


You need to get out more .

Anyway, help needed on setting basic triangulation.


I downloaded an AT command reference for your module from:
http://www.espruino.com/datasheets/SIM900_AT.pdf

There are some very powerful commands available in engineering mode,
including what looks to me like Network Management Results. This should
give you at least signal strenghts for the strongest 6 neighbouring
cells.

It looks like you can also read the timing advance (TA) value. Multiply
that value by 553.5 metres to give you the approximate distance to the
cell you're camped on. If you're moving, or if the cell changes, you
need to interact with the tower so that the module updates the TA
value. Otherwise it'll be stale.

In the past, I've used "AT+CLIP?" to force such an interaction, and
refresh the TA value.

John




  #3  
Old November 16th 15, 12:20 AM posted to alt.cellular.gsm
John Henderson[_2_]
external usenet poster
 
Posts: 57
Default GSM localization - triangulation

I wrote:

Network Management Results


I meant to say Network Measurement Results, of course

John
  #4  
Old November 16th 15, 02:32 PM posted to alt.cellular.gsm
gm[_2_]
external usenet poster
 
Posts: 4
Default GSM localization - triangulation

John, THANK YOU very much for this 101 tutorial.
I will read this few more times so i can set some basic setup.
Anyhow, if you have any more suggestions, please be so kind and write it
down...

GM

On 11/16/2015 01:20 AM, John Henderson wrote:
I wrote:

Network Management Results


I meant to say Network Measurement Results, of course

John


  #5  
Old November 16th 15, 03:02 PM posted to alt.cellular.gsm
John Henderson[_2_]
external usenet poster
 
Posts: 57
Default GSM localization - triangulation

gm wrote:

Anyhow, if you have any more suggestions, please be so kind and write it
down...


The flippant answer is to buy a GSM modem like the Sierra Wireless 312U
(no longer available new). It has an onboard GPS receiver which can be
activated, and the exact position of the modem read with a few AT
commands.

But persevering with your SIM900, the big question is what you can get
out of engineering mode.

I'd try:

AT+CENG=3

followed by:

AT+CENG?

Without a SIM900 myself, I'm not in a position to explore further. I'm
sure you'll have further questions as you progress.

John




  #6  
Old November 16th 15, 09:31 PM posted to alt.cellular.gsm
gm
external usenet poster
 
Posts: 12
Default GSM localization - triangulation

I was thinking on buying such product but the end user want's to go with
sim900 ( because of budget )

I forget to write in the original topic that i have tried this commands too:

AT+COPS=?
AT+CSQ
AT+CREG=2
AT+CREG ?

The answer was:
+COPS: (2,"TELE2","","21902"),(1,"T-Mobile
HR","T-Mobile","21901"),(3,"HR VIP","VIP","21910"),,(0,1,4),(0,1,2)

+CSQ: 14,0

AT+CREG?
+CREG: 2,1,"006F","1C90"

The location is cca 10 km away from my original location...
What do you think about this ?

Am going to make test with your suggestion and will write back the results.

GM



On 16.11.2015 16:02, John Henderson wrote:
gm wrote:

Anyhow, if you have any more suggestions, please be so kind and write it
down...


The flippant answer is to buy a GSM modem like the Sierra Wireless 312U
(no longer available new). It has an onboard GPS receiver which can be
activated, and the exact position of the modem read with a few AT
commands.

But persevering with your SIM900, the big question is what you can get
out of engineering mode.

I'd try:

AT+CENG=3

followed by:

AT+CENG?

Without a SIM900 myself, I'm not in a position to explore further. I'm
sure you'll have further questions as you progress.

John





  #7  
Old November 16th 15, 10:50 PM posted to alt.cellular.gsm
John Henderson[_2_]
external usenet poster
 
Posts: 57
Default GSM localization - triangulation

gm wrote:

I forget to write in the original topic that i have tried this commands too:

AT+COPS=?
AT+CSQ
AT+CREG=2
AT+CREG ?

The answer was:
+COPS: (2,"TELE2","","21902"),(1,"T-Mobile
HR","T-Mobile","21901"),(3,"HR VIP","VIP","21910"),,(0,1,4),(0,1,2)


Now, if you'd done "AT+COPS=3,2" first, you'd get MCC and MNC
data instead of the operator names.

+CSQ: 14,0


That's an RSSI value of -85 dBm ((14 * 2) - 113).

AT+CREG?
+CREG: 2,1,"006F","1C90"


If you're in Croatia, and your MCC is 219 and your MNC is 02, then you
can get an approximate location of this cell by going to
http://www.minigps.net/map.html and entering the four field values
"219", "02", "6F" and "1C90". Tick the little box marked "16" to the
right, as your LAC and cell ID values are in hexadecimal. Enter the
displayed VeriCode to prove you're human, and you'll get a map.

The location is cca 10 km away from my original location...
What do you think about this ?


-85 dBm is perfectly adequate signal.

John
  #8  
Old November 17th 15, 12:21 AM posted to alt.cellular.gsm
John Henderson[_2_]
external usenet poster
 
Posts: 57
Default GSM localization - triangulation

gm wrote:

+COPS: (2,"TELE2","","21902"),(1,"T-Mobile HR","T-Mobile","21901"),(3,"HR VIP","VIP","21910"),,(0,1,4),(0,1,2)


Looking more closely at that result, I see that it's got the MCC/MNC
info there as well as the name.

But looking at the first argument within the three sets of brackets
which show a detected network, they show stat information.

stat values a

1 - available
2 - current
3 - forbidden

So you're camped on MCC 219 and MNC 02 as I suspected from the "TELE2"
before I noticed them there.

AT+CREG?
+CREG: 2,1,"006F","1C90"


And the second argument ("1") in that result shows that you're on the
SIM's home network. If that was a "5", the device would be roaming

The SIM is also permitted to roam onto network ID 21901, but not onto
21910.

John

  #9  
Old November 17th 15, 07:58 AM posted to alt.cellular.gsm
gm
external usenet poster
 
Posts: 12
Default GSM localization - triangulation

Great info, thank you.
I am located in Croatia and i have used

http://cellidfinder.com/cells/findcell to get geolocation.

Am gonna make some additional tests today, and i let you know the results.

GM


On 17.11.2015 01:21, John Henderson wrote:
gm wrote:

+COPS: (2,"TELE2","","21902"),(1,"T-Mobile HR","T-Mobile","21901"),(3,"HR VIP","VIP","21910"),,(0,1,4),(0,1,2)


Looking more closely at that result, I see that it's got the MCC/MNC
info there as well as the name.

But looking at the first argument within the three sets of brackets
which show a detected network, they show stat information.

stat values a

1 - available
2 - current
3 - forbidden

So you're camped on MCC 219 and MNC 02 as I suspected from the "TELE2"
before I noticed them there.

AT+CREG?
+CREG: 2,1,"006F","1C90"


And the second argument ("1") in that result shows that you're on the
SIM's home network. If that was a "5", the device would be roaming

The SIM is also permitted to roam onto network ID 21901, but not onto
21910.

John


  #10  
Old November 17th 15, 09:45 PM posted to alt.cellular.gsm
John Henderson[_2_]
external usenet poster
 
Posts: 57
Default GSM localization - triangulation

gm wrote:

I ... have used

http://cellidfinder.com/cells/findcell to get geolocation.


Thanks for the link, which I've bookmarked. There are quite a few cell-
finding sites. Most rely on data collected from GPS-enabled smartphones
running appropriate apps. As such, the locations are approximate, with some
of the issues discussed he
http://wiki.opencellid.org/wiki/FAQ#...other_position

The Chinese site I mentioned has particularly comprehensive data (collected
from many sources).

John
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A630, java and triangulation location data - NOT GPS [email protected] Motorola 0 April 30th 05 03:28 PM
sms can't launch due to missing localization information John Constable Ericsson 4 February 6th 04 06:51 PM


All times are GMT +1. The time now is 03:00 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2004-2017 Mobile-Forum.
The comments are property of their posters.