LBS Geolocation

homaa year ago

Hi!
I try use lbs with TK905.
I have config:

<entry key='geolocation.enable'>true</entry>
<entry key='geolocation.type'>opencellid</entry>
<entry key='geolocation.key'>token</entry>
<entry key='geolocation.processInvalidPositions'>true</entry>
<entry key='filter.zero'>true</entry>

I have "V"-flag in tracker message:

[SG*9058756459*008d*UD,310523,125513,V,0.000000,S,0.000000,W,0.00,0,0,0,89,98,0,50,00000000,4,1,250,02,9787,24486,89,9787,24467,89,9787,9397,89,9787,24481,89,,00]

But I have this log:

2023-05-31 12:55:17  INFO: [Taffb0faa: watch < tracker_ip] 5b53472a393035383735363435392a303038642a55442c3331303532332c3132353531332c562c302e3030303030302c532c302e3030303030302c572c302e30302c302c302c302c38392c39382c302c35302c30303030303030302c342c312c3235302c30322c393738372c32343438362c38392c393738372c32343436372c38392c393738372c393339372c38392c393738372c32343438312c38392c2c30305d
2023-05-31 12:55:17  WARN: Geolocation network error - Cell not found (1) - GeolocationException (OpenCellIdGeolocationProvider:59 < *:46 < ...)

And LBS doesnt work.
Can you help with it? What can work wrong?
Thanks in advance!

Anton Tananaeva year ago

The error seems pretty clear:

Cell not found

Have you tried different provider?

homaa year ago

no, I haven't another api-key for lbs-provider and can't check it. I will try go to another base station and check

Anton Tananaeva year ago

Why not try Google?

homaa year ago

youre are right. in opencellid I give:

This XML file does not appear to have any style information associated with it. The document tree is shown below. <rsp stat="fail"> <err info="Cell not found" code="1" notice="This cell tower was not found in OpenCelliD. However, it is available from Unwired Labs LocationAPI (unwiredlabs.com). We allow 50 free fallback requests to LocationAPI for OpenCelliD users. For more, please contact us at https://unwiredlabs.com/contact"/> </rsp>
and with google it works.

homaa year ago

upd:
OpenCellID can make 50 requests to unwiredlabs database, but we can add to OpenCellID our base station. For examle:
1.Check OpenCellID database:
http://www.opencellid.org/cell/get?mcc=250&mnc=2&cellid=24481&lac=9787&key=pk.openceelid_api_key
2.Find base station coordinates:
http://api.mylnikov.org/mobile/main.py/get?mcc=250&mnc=2&cellid=24481&lac=9787&data=open&v=1.1
3.Add coordinates to OpenCellID database http://www.opencellid.org/cell/get?mcc=250&mnc=2&cellid=24481&lac=9787&key=pk.openceelid_api_key
4.After several hours we can check OpenCellID database again

MK7 months ago

Hi,

I have in the log:

2023-10-26 19:31:07  INFO: [T5a35b82d: h02 < 94.254.206.3] 2a48512c3836353230353033393630393338322c56332c3032323033302c32363030332c30362c3035333430322c3035353538312c3134352c2d37352c3035333430322c3035353537312c3134342c2c3035333430322c3034373633312c3133392c2c3035333430322c3034373633332c3133372c2c3035333430322c3035363331312c3133372c2c3035333430322c3035343838312c3133352c2c303241442c302c582c3033313130352c4646464646424646230d0a
2023-10-26 19:31:07  INFO: [T5a35b82d] id: 865205039609382, time: 2005-11-03 03:20:30, lat: 50.46360, lon: 18.81886, course: 0.0

I decoded the message:

*HQ,865205039609382,V3,022030,26003,06,053402,055581,145,-75,053402,055571,144,,053402,047631,139,,053402,047633,137,,053402,056311,137,,053402,054881,135,,02AD,0,X,031105,FFFFFBFF#

Now I'm trying to send a request to OpenCelliD. Based on the document https://www.traccar.org/protocol/5013-h02/h02_cantrack_secumore.pdf it should be something like that:

https://www.opencellid.org/cell/get?mcc=26003&mnc=06&cellid=55581&lac=53402&key=pk.XXXXXXXXXXXXXXXXX

But the answer for the above request is:

[rsp stat="fail"]
  [err info="No valid cell IDs or LACs provided" code="3"/]
[/rsp]

How the correct request should look like?

Regards,
Marcin

Anton Tananaev7 months ago

Have you checked the documentation?

MK7 months ago

Yes, few times with a little break and finally works. It should be:

https://www.opencellid.org/cell/get?mcc=260&mnc=03&cellid=55581&lac=53402&key=pk.XXXXXXXXXXXXXXXXX

26003,06,053402,055581,145,-75,053402,055571,144,,053402,047631,139,,053402,047633,137,,053402,056311,137,,053402,054881,135, goes to:

26003 is MCC=260 and MNC=03 (there is no comma between)
06 is information "how many cells are included in the message"
cell no 1: 053402,055581,145,-75 with CELLID=55581 nad LAC=53402
...
cell no 6: 053402,054881,135, with CELLID=54881 nad LAC=53402