1

I've been trying to get CellIDs for multiple cellular towers to triangulate the position of a windows mobile phone in a C# application.

I am able to get the lat/long of the currently connected cell tower using David Tiger's WMLocationInfo dll from http://forum.xda-developers.com/showthread.php?t=934948, but this is not accurate enough because it uses only the current cell tower. I need an accuracy of ~100M or so without using GPS. So if I can get the CellIDs and signal strengths of at least three towers, I'll should be able to improve the accuracy to a reasonable extent.

I found a discussion at Get Multiple Cell IDs for location using Cellular Towers C# Windows Mobile where johansebasb was addressing the same requirement.

Can someone point me towards a sample project or code that I can use for this?

Thanks in advance.

8
  • Have you looked at How to properly triangulate gsm cell towers to get a location?
    – PaulH
    Feb 28, 2014 at 21:23
  • Thanks, Paul. Yes, I looked at that, but I'm not sure if the devices I'm targeting will support the AT+KCELL command, and rather than experiment with that I thought the easier solution would be to manually find 3 neighboring towers with CellIDs, get the signal strength and write an algorithm to calculate the approximate position.
    – smichigan
    Mar 1, 2014 at 5:04
  • @PaulH Incidentally, I haven't been able to find out how to execute an AT command in a windows mobile application. The dozens of examples I could find all showed how to pass an AT command to a GSM modem or device attached to a PC through serial or USB. Is there some code you could point me towards?
    – smichigan
    Mar 1, 2014 at 19:26
  • The answer posted by @Jared Kells shows the math your application needs. The API you want to get the cell tower ID is the RIL. Specifically RIL_GetCellTowerInfo()
    – PaulH
    Mar 3, 2014 at 22:04
  • Take a look at: stackoverflow.com/questions/19387531/…
    – PaulH
    Mar 3, 2014 at 22:05

1 Answer 1

1

There are two probs with that:

  1. The RIL does not expose that function
  2. You may send AT^moni command to GSM modem but this may disturb or corrupt the RIL. The RIL is sending and parsing all commands to control the modem. Think of the RIL being the wrapper around all modem communication.
  3. You need a comm port to send (inject) AT commands to the modem. That may be implemented or not by the RIL driver.
  4. If the modem does not support AT^moni you are lost. The Siemens MC75 supports cell monitoring via:

AT^SMONC Cell Monitoring The AT^SMONC execute command delivers cell information containing 9 values from a maximum of 7 base stations. The first base station is the serving cell.

AFAIK Sierra Modems do support AT^moni too. Qualcomm? Don't know.

1
  • Sorry for not responding earlier - was out of the country and out of contact. Thank you @PaulH and josef for your responses and help with this, but it looks as if I have to put this on ice for the moment. There seems to be no straightforward answer to this problem.
    – smichigan
    Mar 18, 2014 at 5:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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