I am developing a hobby project to detect/measure distance between my cell phone and cell tower (GSM tower). I am newbie. I even dont know whether this is possible or not. I have following hardware: 1) Raspberry pi 3 2) RTL2832u

I am planning to use OpenBTS and FreeSwitch stack in future for advanced feature development.

  • Hobby projects like this are great. You can certainly learn a lot by doing it yourself. To do this with a RPi you'll want a GSM module to find "my cell tower" But of course, there are other ways to simply detect cell tower signals. Have you looked at the apps available for smart phones? I saw one a while back which identified the tower my phone was connected to and put it up on a map, along with signal strength info. – SDsolar Apr 16 at 15:41
  • 1
    Yes. The android app OpenSignal and RF Tracker is real helpful. Cell2GPS too is great website. But I am planning to develop same on Raspberry Pi 3. – AvadhanaSolutions Apr 16 at 17:23
up vote 6 down vote accepted

One approach would be to capture the GSM Cell ID. This uniquely identifies a particular GSM site. You can then lookup this ID in a database such as one offered by Cobain to determine the tower location. If your application serves a very limited geography, you could build your own database to suit your needs.

In order to calculate distance, you will need to geo locate your receive site through a GPS signal, manual entry, or other means. You could then use Google Map services to show the two points and the distance between them.

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.