In the past two days, I have studied how to obtain location information through the base station. I have used a mature method to obtain the cell phone cellid (Cell ID) to obtain the longitude and latitude of the mobile phone, the specific method is that I wrote some articles in the previous article. If you want to know the details, you can take a look.
I wrote a demo over the past two days. It is strange that I have debugged the demo on my wm5ppc and can obtain more accurate location information. As a result, my boss's mobile phone is wm6.5 of CDMA, once the program is opened, it will be like a dead machine. If you want to close it, you cannot debug the code step by step. As a result, it will not move to the waitone after ril_getcel1_info, finally, I checked the result and did not return the correct handle when initializing the RIL. I did not correctly judge whether the program was successful or not. The problem is that this API cannot be used? After checking a lot of information, we finally get a result. The cellid method is available for GSM and CDMA, so it is not a CDMA problem, but a machine problem. For WM mobile phones, ms sets a RIL standard and does not stipulate that the vendor must implement it. Therefore, some vendors are lazy or are selfish and have not been exposed to us !!
Finally, Google finds an incomplete list:
Mobile phones supporting cellid:
- T-Mobile G1
- HP ipaq hw6900
- HTC 4350
- HTC 8525
- HTC Atlas
- HTC mteor
- HTC p3300
- HTC p3450
- HTC p3600
- HTC p3650
- HTC Touch (not supported on some devices)
- HTC Touch dual
- HTC Touch Diamond (only works in IE mobile)
- HTC tytn
- HTC tytn II
- O2 xda orbit
- Palm Treo 750
- Samsung blackjack II
- Samsung i780
- Samsung Sch i760
GPS is supported, but Cell ID is not supported:
- HTC mogul on Sprint (users can enable GPS with a firmware upgrade *)
- Motorola Q9.
Cell ID is not supported.
- Cingular 3125
- HTC 8900
- HTC Apache
- HTC dash
- HTC Juno
- HTC mp6900sp
- HTC x7500
- Motorola Q
- Palm Treo 700
- Pantech duo
- Samsung blackjack (Version I only)
- Verizon SCH-i760.
- Verizon xv6700
- Verizon vx6800
The above list is intended to be useful to you. I also found other methods on the Internet. I have been verifying this day. The specific logic is to directly read a certain memory address.
Read the cellid directly. If it succeeds, I will share it with you here :)
By wangweixing2000 21:46:29