I did make a conversion program to convert Cell Tower information to actual locations. You can download the version on SourceForge here..
Contents of the zip:
- Cell2KML.exe: Program which converts the input.txt into output.kml
- cells.txt: cache from www.opencellid.org, but in stripped form and with format: id,mcc,mnc,lac,cellid, lat, lon
- cellsNew.txt: will be appended with found locations via internet service of Google Maps with format id,mcc,mnc,lac,cellid, lat, lon
- input.txt: input file in format: datetime,mcc,mnc,lac,cellid
- output.kml: output file suitable for Google Earth, Google Maps or Google Mobile
Some notes:
- Cell2KML.exe works on PC and on Windows Mobile, but on Windows Mobile it is really slow......and progress information is not yet available on Windows Mobile (only a debug log file)
- When location is not in cells.txt or cellsNew.txt, then internet is used for getting the actual location and the positive result is added to cellsNew.txt
- output.kml can be used immediately in Google Earth (if installed on your PC) and Google Mobile Maps by double clicking on the file
- if you want to use the output.kml in Google Maps, then your kml must be public accessible on the internet. You can use a public folder of DropBox or as in my example on SourceForge, e.g.:
<br>
BattClock can now monitor the nearest cell tower with your phone using GSM. Why is this interesting?
- This Cell Tower Info can be used for getting an approximate location using several services (Google, OpenCellId, Celldb, location-api)
- No GPS needed! Works on any Windows Mobile phone supported by BattClock!
- If you have a GPS this is more accurate, but also drains battery.
- No internet access needed on your phone, the monitored data can be translated offline to actual locations on a PC with internet access.
- With that you can keep track of where you have been when or which approximate route you did take.
- With triangulation in combination with Tower Signal Strength even more accurate positioning could be computed.
- If you can map the cellid to a approximate Location (Langitude, Longitude) via an offline database, you even do not need internet access.
The input.txt can you be a battclock.csv file, when you only selected to log to file mcc,mnc,lac,cellid, otherwise you must make sure the columns are in the order datetime,mcc,mnc,lac,cellid. Copy your battclock.csv file in the same directory as the Cell2KML.exe program and name it input.txt.
When you convert this Cell Tower Information to kml format, you can show this on Map applications, like Google Earth, Google Maps or an offline Map application which supports kml.
Example kml file here, which opens in Google Maps.
The following information can be monitored (displayed, logged to BattClock.csv file or to registry):
-Mobile Country Code
-Mobile Network Code
-Location Area Code
-Cell ID
-Tower Signal Strength
-Base Station ID (not filled on my Touch Diamond)
-GPRS Cell ID (not seen filled on my Touch Diamond)
-GPRS Base Station ID (not seen filled on my Touch Diamond)
The following registry values can be filled, below HKEY_CURRENT_USER\Software\ZuinigeRijder\Status, so other programs (e.g. MortScript) can react on it:
- MobileCountryCode
- MobileNetworkCode
- LocationAreaCode
- CellId
- TowerSignalStrength
- BaseStationId
- GPRSCellId
- GPRSBaseStationId
For offline converting the Cell Tower Info, you need to enable at least the logging for the following info:
- Mobile Country Code
- Mobile Network Code
- Location Area Code
- Cell ID
The default check time is once per 30 seconds (if one of the items is enabled). You can set the number of seconds via registry key or via BattConfig: "TowerInfoSeconds".
Note that the monitoring does not occur in a deep sleep. At power on after a deep sleep, the monitoring resumes immediately (without the wait of the configured seconds).
Contents of the zip:
- Cell2KML.exe: Program which converts the input.txt into output.kml
- cells.txt: cache from www.opencellid.org, but in stripped form and with format: id,mcc,mnc,lac,cellid, lat, lon
- cellsNew.txt: will be appended with found locations via internet service of Google Maps with format id,mcc,mnc,lac,cellid, lat, lon
- input.txt: input file in format: datetime,mcc,mnc,lac,cellid
- output.kml: output file suitable for Google Earth, Google Maps or Google Mobile
Some notes:
- Cell2KML.exe works on PC and on Windows Mobile, but on Windows Mobile it is really slow......and progress information is not yet available on Windows Mobile (only a debug log file)
- When location is not in cells.txt or cellsNew.txt, then internet is used for getting the actual location and the positive result is added to cellsNew.txt
- output.kml can be used immediately in Google Earth (if installed on your PC) and Google Mobile Maps by double clicking on the file
- if you want to use the output.kml in Google Maps, then your kml must be public accessible on the internet. You can use a public folder of DropBox or as in my example on SourceForge, e.g.:
<br>
Code:
http://maps.google.com/maps?q=http://touchlockpro.sourceforge.net/CellTower2KML/battclock.kml
BattClock can now monitor the nearest cell tower with your phone using GSM. Why is this interesting?
- This Cell Tower Info can be used for getting an approximate location using several services (Google, OpenCellId, Celldb, location-api)
- No GPS needed! Works on any Windows Mobile phone supported by BattClock!
- If you have a GPS this is more accurate, but also drains battery.
- No internet access needed on your phone, the monitored data can be translated offline to actual locations on a PC with internet access.
- With that you can keep track of where you have been when or which approximate route you did take.
- With triangulation in combination with Tower Signal Strength even more accurate positioning could be computed.
- If you can map the cellid to a approximate Location (Langitude, Longitude) via an offline database, you even do not need internet access.
The input.txt can you be a battclock.csv file, when you only selected to log to file mcc,mnc,lac,cellid, otherwise you must make sure the columns are in the order datetime,mcc,mnc,lac,cellid. Copy your battclock.csv file in the same directory as the Cell2KML.exe program and name it input.txt.
When you convert this Cell Tower Information to kml format, you can show this on Map applications, like Google Earth, Google Maps or an offline Map application which supports kml.
Example kml file here, which opens in Google Maps.
The following information can be monitored (displayed, logged to BattClock.csv file or to registry):
-Mobile Country Code
-Mobile Network Code
-Location Area Code
-Cell ID
-Tower Signal Strength
-Base Station ID (not filled on my Touch Diamond)
-GPRS Cell ID (not seen filled on my Touch Diamond)
-GPRS Base Station ID (not seen filled on my Touch Diamond)
The following registry values can be filled, below HKEY_CURRENT_USER\Software\ZuinigeRijder\Status, so other programs (e.g. MortScript) can react on it:
- MobileCountryCode
- MobileNetworkCode
- LocationAreaCode
- CellId
- TowerSignalStrength
- BaseStationId
- GPRSCellId
- GPRSBaseStationId
For offline converting the Cell Tower Info, you need to enable at least the logging for the following info:
- Mobile Country Code
- Mobile Network Code
- Location Area Code
- Cell ID
The default check time is once per 30 seconds (if one of the items is enabled). You can set the number of seconds via registry key or via BattConfig: "TowerInfoSeconds".
Note that the monitoring does not occur in a deep sleep. At power on after a deep sleep, the monitoring resumes immediately (without the wait of the configured seconds).
Last edited: