GSM Net Cell info for position calculation using weighted mean

Gachkar4 years ago

Hi;
I cannot find information about cell information sending.
I see the cell item in osmand protocol class but I don't know how to use it.
If anybody share information about it I will be very grateful.
how to use cellinfo to use location finding before GPS got ready ?
I can get positions of cellids from opencellid web site or using a local database in gps device and calculate the current position with weighted mean formula. but updating this database is hard.
If this done in server side its very simple.

Thanks in advance.

Anton Tananaev4 years ago

We call it geolocation. See documentation.

Gachkar4 years ago

Thank you for your reply
Please help me to find format of uploading cell info for osmand protocol

with Thanks

Anton Tananaev4 years ago

I don't think we support it for OsmAnd.

Gachkar4 years ago

I see following switch in osmand class :

                    case "cell":
                        String[] cell = value.split(",");
                        if (cell.length > 4) {
                            network.addCellTower(CellTower.from(
                                    Integer.parseInt(cell[0]), Integer.parseInt(cell[1]),
                                    Integer.parseInt(cell[2]), Integer.parseInt(cell[3]), Integer.parseInt(cell[4])));
                        } else {
                            network.addCellTower(CellTower.from(
                                    Integer.parseInt(cell[0]), Integer.parseInt(cell[1]),
                                    Integer.parseInt(cell[2]), Integer.parseInt(cell[3])));
                        }
                        break;
Anton Tananaev4 years ago

I guess it is supported. See if unit test has any examples.

Gachkar4 years ago

I search the some classes
may be the format is MCC,MNC,LAC,CID but i can't find the rx level info ?
I test it tomorrow.

Gachkar4 years ago

In above switch/case if the length of the data greater than 4 the forth item may be rxl.
and all datas are decimal string not hex !