How to determine which cell you're in? - Windows Mobile Software Development

Hi,
I'm new to the forum but have been watching the progress of the XDA Developers for quite some time now with great interest.
I saw something last night which I would like on my XDA. A friend of mine showed me his new Nokia 7xxx. He had a little java app called miniGPRS. Basically, it tells you which cell you're currently in and alerts you when you change cells. You can also setup events depending on leaving/entering a cell. For example, switch phone to vibrate when entering your local cinema. Or as he said, getting the phone to welcome you home with a message or WAV, just in case you forgot where you are
Does anone know how to read the cell id using eVB?
I'm also looking at mapping the Cell_ID's to locations in Ireland as O2 don't like giving this information out.
Any info would be appreciated
Regards
Keith Burke 8)
Ireland

Cell ID
Dear all,
The cell id can be found easely. i'll post a VB.NET code that enables u to find out which cell u r using and the location area code ...
I'll try to post the code as soon as possible maybe this weekend ...

Nice one Hady
Regards
Keith Burke
Ireland

Re: Cell ID
Hady said:
The cell id can be found easely. i'll post a VB.NET code that enables u to find out which cell u r using and the location area code ...
I'll try to post the code as soon as possible maybe this weekend ...
Click to expand...
Click to collapse
Alright!
How? Through RIL? Talking directly to the modem? I thought the transmission of location area code wasn't standardized between providers (It's a cell-broadcast in some places).
Anyway: good news: please post as soon as you find the time!

I think I found out how:
at+creg=2 -> set gsm to report location + cellid
at+creg? -> answers "+CREG: 2, 1, 00CB, 3F5F"
where 3f5f is the hex cell id.

XDA developer Itsme said:
I think I found out how:
Click to expand...
Click to collapse
YES!
Now the questions is how do we get this info without turning off TAPI and disabling the phone all the time? Is there a way to keep this reporting going, just like it gets the battery and signal status all the time?
Hady: did you use the same method, or something else?

in the ril patent, I see that 'RIL_GetRegistrationStatus' calls at+creg.
and so should 'RIL_GetCellTowerInfo' but looking at rilgsm.dll, it is
not implemented.
I have also tried to find a generic cmd-request function in the ril api,
( and rilgsm.dll - which implements all the ioctls, called by ril.dll )
but cannot find one.

XDA developer Itsme said:
I think I found out how:
at+creg=2 -> set gsm to report location + cellid
at+creg? -> answers "+CREG: 2, 1, 00CB, 3F5F"
where 3f5f is the hex cell id.
Click to expand...
Click to collapse
I'm using [trying] eVB and the Comm Control to try the same but to no avail. Itsme, could you let me know how you are sending the AT commands to the modem?
Regards
Keith Burke
Ireland

XDA developer Itsme wrote:
I think I found out how:
at+creg=2 -> set gsm to report location + cellid
at+creg? -> answers "+CREG: 2, 1, 00CB, 3F5F"
where 3f5f is the hex cell id.
Click to expand...
Click to collapse
What ROM would that be using please?
Thanks

You can use either wmodem + serial cable, or 'dualser' from the bootloader.
If you take a look at xdaunlock you'll see how to send AT commands to the GSM programatically
with wmodem, and the xdaunlock method you will need the qtek 3.17, or xdadev SER.
I tried it on both radio 4.06 and 4.16.

Re: Cell ID
Hady said:
Dear all,
The cell id can be found easely. i'll post a VB.NET code that enables u to find out which cell u r using and the location area code ...
I'll try to post the code as soon as possible maybe this weekend ...
Click to expand...
Click to collapse
Hady,
Any sign of that vb.net code? Not really puching you, but I'd really like to get a start on my little app.
Regards
Keith Burke
Ireland

cell id
sorry guys for the delay but i had no time to publish the code.
anyways justy dop the following rather than waiting:
start TraceLogger (\windows\tracelogger)
the password is: htc
then go to G23
select MMI + event and click start
now use tracelogviewer provided by the xda devbelopers
u should get the +CSQ something.
well don't get depressed just keep looking at the output and u'll see the cell id and the location area code whenever your mobile changes cells ...
if u don't see any, just drive a few blocks and u'll notice the cell id and location area code pupping on your screen whenever your mobile uses a different cell.
i can tell you another trick to find out your current cell id, just do the following:
1- turn off your GSM
2- run TraceLogger with thye same commands as above but don't click strat
3- turn on your gsm, wait 3 seconds and then click start on TraceLogger
4- go to tracelogviewer and u'll see your current cell id with all checkings and notifications of the GSM modem ...
Best Regards guys
Fill me with updates
Hady
Lebanon

Hi,every one
I meet a problem,please help me:
I have a PDA which is installed inside a radio module, called ET180 with
pocket PC 2002 OS, I do not know how to send AT command to radio module in program, I am using EVB or EVC for coding.
If outside radio module is connect to PC by serial port, I can send command to serial port. but on ET180, I do not know how the radio module is connected.
Do you know is there a RIL(radio interface layer) function that can send command, and How? or any other way?
Thanks

XDA developer Itsme said:
I think I found out how:
at+creg=2 -> set gsm to report location + cellid
at+creg? -> answers "+CREG: 2, 1, 00CB, 3F5F"
where 3f5f is the hex cell id.
Click to expand...
Click to collapse
In fact, there's one thing I don't really get.
You see sometimes you have to setup the phone (e.g. with my XDA) to listen for cell broadcast channel 050 in order to get cell/station id. How does this relate to the +CREG command?

pigeon said:
In fact, there's one thing I don't really get.
You see sometimes you have to setup the phone (e.g. with my XDA) to listen for cell broadcast channel 050 in order to get cell/station id. How does this relate to the +CREG command?
Click to expand...
Click to collapse
This only works if you cellular provider sticks the cell info in a broadcast message, which some providers do. There's no standard for this. In Germany, VIAG Interkom (now O2-DE) even used to broadcast the geographical coordinates of the cell in a channel. (Using their local geocoordinate system Gauss-Krueger, I think it was called).
No clue if this still happens (I would guess not: they'd rather sell that information than give it away...)

XDA developer Peter Poelman said:
... In Germany, VIAG Interkom (now O2-DE) even used to broadcast the geographical coordinates of the cell in a channel. (Using their local geocoordinate system Gauss-Krueger, I think it was called).
No clue if this still happens (I would guess not: they'd rather sell that information than give it away...)
Click to expand...
Click to collapse
Yes it still happens that they transmit the coordinates. But it is anoying that you are geting them as SMS.
:wink: Greetings,
Kaputter

Kaputter said:
Yes it still happens that they transmit the coordinates. But it is anoying that you are geting them as SMS.
Click to expand...
Click to collapse
You could use tstril and get the messages from the RIL layer, I guess.

XDA developer Peter Poelman said:
This only works if you cellular provider sticks the cell info in a broadcast message, which some providers do. There's no standard for this.
Click to expand...
Click to collapse
I see... so for the channel broadcast, do I have to explicitly tell tell the network to broadcast messages to me (with AT commands or something)?
Right, here's something I might ask on this thread as well then.
My friend told me with his old nokia mobile phone, you can switch it into some sort of internal debugging or engineering mode, called NetMon.
http://nokia.crazy.cz/monitore.php
The phone will give you a lot of details like signal shown in dB, a list of nearest stations, also distance from the stations/cells, etc.
Now except the signal strength which is pretty common, do these all sound like phone specific? Or it would be another non-standard information that the provider somehow provide using cell broadcast messages? I've checked roughly in the GSM AT command specs and I don't think there's anything close.
Thanks.

pigeon said:
[Nokia monitor mode...]
Now except the signal strength which is pretty common, do these all sound like phone specific? Or it would be another non-standard information that the provider somehow provide using cell broadcast messages? I've checked roughly in the GSM AT command specs and I don't think there's anything close.
Click to expand...
Click to collapse
Oh my, as soon as we'd have lots of spare time, we'd know what to do. Get our own code to run on the phone while it's in operation, and start dumping the RAM of a running phone. This would probably almost immediately yield all sorts of interesting information. CellIDs, signal strengths of loudest neighbour cells. Timing advances (i.e. speed-of-light measurement of distance to current serving tower), crypto algorithm (and possibly even keys) and (with some more work...) the activity on the control channel, the paging of other phones and whatever else all goes through there. Fun, fun, fun...

Hehe...
So what you mean is, in theory any mobile phone should have information about all those things? (Sorry if I'm not really only talking about XDA here)

Related

Soft to lock on a specific GSM cell

Hi,
I'm looking for a software to manually lock my Qtek 9090 on a specific GSM cell (or a specific antenna, somehow). It's very easy to do such a thing on my old Nokia using the hidden menus, but I never found a Pocket PC application that can do that. Any idea ?
Hi yannl,
this shouldn't be a big deal for those how know how to program such a thingy. I assume it should be possible to block the phone program from calling (or even simpler and uglier simply to kill it's process) when you are not in the "right" cell.
As dutty's cell profiler is able changes diverse settings or even launch apps, etc. depending on the cell you're in, it shouldn't be too difficult to realize your wish...
HTH,
BGK[/url]
Thanks. I contacted Cell Profiler to ask them about a feature like that. But I'm very surprised that no software around allows to lock on a cell.
why would you like to do so ?
locking phone to a specific cell/BTS/WTS
AlCapone said:
why would you like to do so ?
Click to expand...
Click to collapse
please tell if there is any way to lock the phone to specific Scrambling code or a BTS, needs it for some testing.

It's beautiful... what is it?

So i've enabled Engineering Mode on my phone. I can understand a couple of the items that it shows, but does someone have a page/manual that defines what each one is?
I actually know a little about cell phone networks, so a description of each field would be a great start .
Thanks,
A.
apadua said:
So i've enabled Engineering Mode on my phone. I can understand a couple of the items that it shows, but does someone have a page/manual that defines what each one is?
I actually know a little about cell phone networks, so a description of each field would be a great start .
Thanks,
A.
Click to expand...
Click to collapse
Maybe you cano post how to enter engineering mode?
Also exactly what are the items you want explained?
\HKEY_LOCAL_MACHINE\Software\HTC\EngineerMode
Set it to 1
Then call *#*#364#*#*
apadua said:
\HKEY_LOCAL_MACHINE\Software\HTC\EngineerMode
Set it to 1
Then call *#*#364#*#*
Click to expand...
Click to collapse
It seems that I don't have this registry key in my QTEK9000 so i cannot help you. Sorry.
the key is only for HTC Wizard (and maybe Charmer)
Is there anything like this for the Universal?
I'm all for seeing things that other people don't usually see =)

For guys girls who didnt know about RemoteTracker - Antitheft software by Joubert

Guys/Girls since we are equipped with an expensive piece of phone i guess this software is very useful! After all its Totally FREE!
Check it out! it is released by a guy called "Joubert Vasconcelos"
on XDA he is known as 'joubertvasc'!
I guess we all should have this on our HDs i have on mine already totally awesome and working!
this is where you can download the app.
http://remotetracker.sourceforge.net/
this is where you find support
http://forum.xda-developers.com/showthread.php?t=394203
A word from the Original Site:
"This is an Antitheft software and you can use it to track your Windows Mobile device when it was lost or stolen.
It works catching a formated SMS sent from any phone, MSN, AIM or web sites and then send useful informations back. These informations can have GPS coordinates, list os contacts, owner informations and more.
You can use it to others objectives, like keep your eyes in your child. Use your imagination!
To use all features RemoteTracker has, your device must have GPS and GSM capabilities. If your device does not have a built in GPS receiver, you can get the position based on the Cell Tower it is answering. Please visit OpenCellClient project for more details.
If the thief change your SIM card, you will receive a SMS alerting you and you still can track your device. All you need to do is set an emergency cel number."
Enjoy!
i've been using this app.. really great stuff
UPS this is COOOL !!
I am always hanging around with an expensive piece of hardware, you´re damn right !!!
This will help to make me feel more comfortable with my SEX1
THANKS !!!
you are welcome!
Does anyone know how to cook this into the touch HD ROM?? as this will prevent anyone doing hard resets
dagg3r said:
Does anyone know how to cook this into the touch HD ROM?? as this will prevent anyone doing hard resets
Click to expand...
Click to collapse
When I read this post, I thought the same, this should be cooked in all roms.
javielo1974 said:
When I read this post, I thought the same, this should be cooked in all roms.
Click to expand...
Click to collapse
Yeah they should actually. the guy who made this app is even giving out code to have it cooked in Roms.
My only question is even if they do cook this into roms, after a hard reset by the guy who steals the phone how will the settings be loaded again to the program? (such as the Number to SmS) hmm.. if they have a workaround on this too it will be so great!
for true tracking & protection and to be "cookable" it needs to be stupid on the device. By that I mean all it knows how to do is call home and report the phone IMEI & Location info. For example:
On hard reset it is set to run as a service in the background.
On New SIM Detection it calls home and report phone number & IMEI.
Server side has info for registered owener of the IMEI. Forwards the message to your e-mail.
If the phone was taken you can send SMS to the number to enable "active tracking" which sends location reports to home on a regular interval. All message sent home are forwarded to registered owner.
If a developer did this they might even be able to make a deal with providers so that the Call Home function is directly to the carriers and it gets built into the Stock Roms.
I use Sprite Terminator. Has the option to remove all your important data.
Usefull thread. but only missing small how to cook this into the touch diam/pro or HD ROM. The main problem is how to make that shortcut fo SMS
kyphur said:
If a developer did this they might even be able to make a deal with providers so that the Call Home function is directly to the carriers and it gets built into the Stock Roms.
Click to expand...
Click to collapse
if your phone get stolen, you'll going to buy a new one. No deal for them

SMS through PC

So, I'm looking for an app that allows me to send and recieve SMS through my PC, with my Dash connected via activesync.
Many people recommend Jeyo, but I want to try another one. Any suggestions?
This is relevant to my interests, seeing as my house is possibly the BIGGEST DEAD ZONE in my area.
Pocket Controller
phuKKah said:
This is relevant to my interests, seeing as my house is possibly the BIGGEST DEAD ZONE in my area.
Click to expand...
Click to collapse
Well, if you live in a dead zone, then you have a slightly larger problem. Just because you can connect to your computer doesn't mean you can do whatever you want.
For instance, I use(d) mDesktop ... awesome app, but what it does is use the PHONE as a "Network Router" (That is my term, basically it will act as a connection to the network) ... so no signal = no signal. The computer will not compensate. If you live in a deadzone, complain to your company and toss around a couple "You know [ANOTHER COMPANY] has great service here and a great price too" if you need to, and maybe the company will get some action done (then again, that isn't all too likely since towers tend to be shared for multiple purposes).
If you live in a dead zone, either complain, or try to find some sort of Online SMS service, because I am positive they exist, or build some sort of amplifier for cell signal (i would check instructables.com).
orb3000 said:
Pocket Controller
Click to expand...
Click to collapse
Thanks!
I've tested it. There's a small issue. It allows keyboard input from the pc but some letters don't work. here's an explanation from one of SOTI's support team:
"we have tested Pocket Controller-Pro with Dash-equivalent devices (HTC-S620 / Excalibur) and it works without any problems.
The problem is observed on devices that are running the T-Mobile branded firmware, which is customized for T-Mobile and responds differently to input compared to devices running a standard firmware (with a standard keyboard input driver). "
I'm curently running 3VO's ROM.. any ideas?
UPDATE: same happens with "MyMobiler"
Cyclonezephyrxz7 said:
Well, if you live in a dead zone, then you have a slightly larger problem. Just because you can connect to your computer doesn't mean you can do whatever you want.
For instance, I use(d) mDesktop ... awesome app, but what it does is use the PHONE as a "Network Router" (That is my term, basically it will act as a connection to the network) ... so no signal = no signal. The computer will not compensate. If you live in a deadzone, complain to your company and toss around a couple "You know [ANOTHER COMPANY] has great service here and a great price too" if you need to, and maybe the company will get some action done (then again, that isn't all too likely since towers tend to be shared for multiple purposes).
If you live in a dead zone, either complain, or try to find some sort of Online SMS service, because I am positive they exist, or build some sort of amplifier for cell signal (i would check instructables.com).
Click to expand...
Click to collapse
Haha I've been *****ing to T-Mo forever about it, but they won't do anything. The best I can do is AIM by adding phone numbers to it, but I would much rather be able to use my wifi and be able to text through my phone. Oh, the downfalls of technology :/
jgrv said:
Thanks!
I've tested it. There's a small issue. It allows keyboard input from the pc but some letters don't work. here's an explanation from one of SOTI's support team:
"we have tested Pocket Controller-Pro with Dash-equivalent devices (HTC-S620 / Excalibur) and it works without any problems.
The problem is observed on devices that are running the T-Mobile branded firmware, which is customized for T-Mobile and responds differently to input compared to devices running a standard firmware (with a standard keyboard input driver). "
I'm curently running 3VO's ROM.. any ideas?
Click to expand...
Click to collapse
Change ROM if you can
Here it´s working perfect
I use mymobile works great
orb3000 said:
Change ROM if you can
Here it´s working perfect
Click to expand...
Click to collapse
how sad is that haha
- Maybe I'll make my own app
If you do it please share it with us!
Its funny that you post this because I recently stumbled upon such a program,
look up : Jeyomobile
its an application that uses microcoft outlook with your active sync its
been awesome, and made it way easier to not only reply to text while im chillen on the computer but also delete **** loads of them.
thanks! but my problem with jeyo is that's not sending sms.. just receiving..
also I would like a stand-alone program and i Think Jeyo is a Outlook plugin. Activesync should consider sms sync and interface

[Q] Few problems with my Desire, any ideas?

I'm using unbranded Desire with no mods/rooting, udgraded to the latest official Android 2.2 version.
Here are my problems:
1. People say that they couldn't reach me (number unavailable) while I was on the network all the time. Doesn't happen very often (or I just don't know that) but is really annoying when it does.
2. I am connected to my home WiFi but browser/other programs say that network connection is not available. I have to turn wifi off and on again for it to work. Can it have something to do with the "energy management" widget?
3. My phone is calling people. I get a callback from people saying I called them but they couldn't hear anything (phone was in my pocket). I was wondering if it wasn't the case when I am finishing a call and pressing the red button to end the call but someone on the other side hung up earlier and when I press, the "call" function is activated. However I remember 1 or 2 times when it was definetely not the case.
4. I desperately need a PDF reader that allows to continue reading a book in the place where I finished last time. At the moment I need to be very careful not to close the pdf reader app. When I do I need to look for the page, really annoying. This should be a free app (Google doesn't want my money, they don't allow people from my country into paid appstore )
Hello, 1&2 are really weird problems, they might be connected with the radio, can you check your radio version in settings\about\software\baseband. Some people had problems with the official OTA. Just to be sure - is your wifi alright on other devices and are you sure you have sufficient network coverage. If you download torrents with a crappy router you are likely to get problems. If you're in a low signal area it is possible to lose signal while your device is in your pocket e.g. closer to the ground, when you pick it up you see the bars, when it's in the pocket the network dies. One thing you can easily do is a factory reset , this way we'll find out if any software is causing the problem
3 - you might be turning your device on and then pressing the screen and then calling people, it is not unheard of . Ask them if they hear any noise like cars, people passing by and other stuff, if they do then that's the case
4 - search the market, there are a few, you'll need to try them to see which works best for you
freakzone said:
Hello, 1&2 are really weird problems, they might be connected with the radio, can you check your radio version in settings\about\software\baseband.
Click to expand...
Click to collapse
32.43.00.32U_5.09.00.20 - does it tell you anything?
freakzone said:
Some people had problems with the official OTA. Just to be sure - is your wifi alright
Click to expand...
Click to collapse
I'm quite sure it is, I have the maximum signal strength on the display of the phone.
freakzone said:
this way we'll find out if any software is causing the problem
Click to expand...
Click to collapse
I think I'll do it when I have a spare weekend
freakzone said:
4 - search the market, there are a few, you'll need to try them to see which works best for you
Click to expand...
Click to collapse
quite a few of them and NONE supporting what I need :-/
It might be worth to pop in the store, the unit might be defective, this radio is alright for froyo
allerune said:
1. People say that they couldn't reach me (number unavailable) while I was on the network all the time. Doesn't happen very often (or I just don't know that) but is really annoying when it does.
Click to expand...
Click to collapse
If you only have a 2G connection, and are actively using data, all incoming calls will get diverted to voicemail because 2G only supports voice or data - not both at the same time. This is not an issue if you are in 3G coverage, when you can have simultaneous voice and data.
Note that this is a network side issue - 2G networks can be configured to prioritize voice over data, so that if a call comes through data is suspended, but as far as I'm aware most networks (in the UK at least) do not support this.
Regards,
Dave
freakzone said:
It might be worth to pop in the store, the unit might be defective, this radio is alright for froyo
Click to expand...
Click to collapse
I guess there is no point going to the store with a problem that cannot be reproduced :-/
Anyway I don't think it's something physical, I suppose software reset will fix everything.
I had that with Nokias, there was a main board problem (every now and then it said "invalid sim card"). Every time I sent it back to the manufacturer, it came back saying "software replaced, tested, everything ok".
Thanks for help anyway ;-)
foxmeister said:
If you only have a 2G connection, and are actively using data, all incoming calls will get diverted to voicemail because 2G only supports voice or data - not both at the same time. This is not an issue if you are in 3G coverage, when you can have simultaneous voice and data.
Click to expand...
Click to collapse
Thanks Dave, actually my phone is set to automatically choose network type and I am using a widget to turn off mobile data since I have WiFi at home and only turn it on when I'm outdoors.
I heard that some phones cannot decide whether they should log into the 3G or 2G and that may be the issue. I have changed the settings to use only 3G, we'll see how it works.
BTW: Dave, is it London Ealing? I used to work in Ealing O'Neill's pub back in my student days :-D

Categories

Resources