GSM/GPRS and Roam - Windows Mobile Development and Hacking General

Hi,
I've been having problems getting some cellular info for my program. In both cases I open a tapi line to the "Cellular Line" device...
Problem 1:
I am trying to use lineGetCurrentSystemType() in extapi to get information about the current connection type. In other words I want to know if the phone currently has GPRS or GSM capability. I can successfully open the line, but everytime I call lineGetCurrentSystemType() I get LINEERR_OPERATIONFAILED. Can anyone help with this, or offer a better solution?
Problem 2:
I want to know if the phone is roaming, or on its home network. I've been using lineGetLineDevStatus() from TAPI, but dwRoamMode is always LINEROAMMODE_UNAVAIL. Can anyone tell me how to get the roaming status?
Thanx,
Blair.
PS. For those that have been asking, lineGetLineDevStatus() also has a dwSignalLevel property that I've been using to get the signal strength / signal level of the "Cellular Line" device.

Just a quick question
Hope you don't mind me asking but....
Reading your P.S. I was wondering how difficult it would be to use the Get Signal Strength Call to provide an alert when Mobile Signal is lost, just a load beep/beeps would do. I rely entirely on my mobile for work. I have to be contactable at all times. On my old Motorola V66 I could set an alert tone to inform me when I have no signal, but there does not seem to be any way to do this with the XDAII!
Any info (or a working app) would be greatly appreciated!!
Thanks

Related

Using as general modem via TAPI (or RIL if need be)

I am trying (unsuccessfully so far) to develop a program that will create a data (modem) connection to a modem connected to any other phone. I then want to transfer a small file using xmodem.
I have done extensive searches and tried solutions with TAPI calls based on samples I have found. I can dial the number of my laptop from the i-mate and the laptop on my desk rings. I tell it to pickup the line (ATA) and it does, but there is no "LINECALLSTATE_CONNECTED" from the "lineInitialize" callback function on the imate. All I get is a "LINECALLSTATE_DISCONNECTED" with the type as "LINEDISCONNECTMODE_UNREACHABLE". finally the it all hangs up, no connection.
I seem to be banging my head against a wall at the moment. There must be many of you out there who have done this or very similar.
I can post source is you want that type of thing, but I dont expect anyone to debug my app, but any pointers or others experiences are appreciated. I have come across the RIL interface, but I get the impression that TAPI is the "correct" way.
Thanks in advance.
Frustrated...
Have you got data enabled on your SIM. I was also banging my head against a wall until I thought I would check that with my service provider. There are 2 data things they can enable, one is fax but there is also data. Without data enabled you will never get a sucessfull modem connection.
arrhh!.. that's is. lol. I knew it would be something silly. Ill call today.
Thanks also. God bless you.
Well sorry to say that was not the issue, I still only get repeated
"LINEDISCONNECTMODE_UNREACHABLE"
errors. I am starting to wonder if I am just getting really bad lines. Can someone who has made a modem connection from the PPC to a desktop modem please post their experience on how reliable it is and what type of connection speed it should connect at (9600? 1200? 300? any connection?).
Is their any working sample code for creating a data connection from the PPC using the TAPI?
I will be happy to publish the code to the small project I am doing so future developers have something to work from as I havent been able to find a working example so far. (when it works that is)
Any help appreciated.
Thank-you
Figured out why it would not connect, for anyone else who has similar problems. Mine was the "CSC Line Type" option in the connection settings area.
It was set to "9600 v110" and "Non-transparent".
Im in australia, I understand the v.110 is the american standard, I changed it to
"9600 v.32" and "Non-transparent" and it connects fine. (dont you hate this type of bug)
Im still unsure what the "Transparent" and "Non-transparent" are todo with, if anyone could expain it would be appreciated.
I am glad you got it working. So I guess your code must be OK. I did not set any special communication mode so I guess that my XDA must of been set correctly anyway. It seems sensible that you are supplied with a setup for the country your device is meant for. I say this is bad of the provider.
How do you get to this setting ? I can't even seem to find it on my XDA. I have got a CSD setting that has a choice of 'Analogue' or 'ISDN' mode, mine is set to 'Analogue'.
I did post some code on this forum that is cut from an application I wrote, have a look at
http://forum.xda-developers.com/viewtopic.php?p=7857&highlight=#7857
Cheers
Paul
The code actually worked almost first time when I had all the connection settings right. Ive got the XModem transfer working now also.
The "CSD Line Type" on my device (an i-mate) is an icon in the setting connection tab. In the same tab there is also
"Beam" - allows you to turn on recieve all incoming beams
"Bluetooth" - on/off/discoverable and bonding
"Connections" - normal connection setup
"GPRS Settings" - PAP/CHAP auth and class 8(4RIT)/class 10(3R2T)
not sure what the different GPRS settings are for either, but that side seems to work.
Hey to you all,
I'm trying to set up a CSD connection via RIL , AT commands and TAPI!!! You seem to have accomplished the TAPI solution which i have not started yet, could you advice me on the necessary TAPI functions to use in order to make this work ?
Any help would be very appreciated. Thanks to all.
Have you seen this link?
http://forum.xda-developers.com/viewtopic.php?t=1716&highlight=csd

Qtek 9000 is out of reach

Please give me any advice on the problem with this very good but uncertain device.
After a period of my no activity with GSM net (1.5-2 hours) no one can reach me by phone. Just after i make any call (or send sms, make ussd request) and next 2 hours everything is ok, then i'm again out of reach. Signal indicator is ok, and I can make calls anytime i want, but people can't reach me (till i do any action in net).
I've tryed all ROMs i could find, including the latest one - no results.
Operator - North West GSM (Megafon Volga)
I hope the description of a problem is clear. Sorry if it is not.
Please help.
hi,
maybe changing the phone settings to manual helps.
Hi.
U mean Net Selection - automatic/manual ? I will try...
Btw, is there any possibility to set gsm net ping frequency in registry. Or may be there exist a program that can ping gsm net periodically, i think it should kill the problem (gprs pingers do not solve it, i've already tryed).
I remember that on my old Nokia were such a setings as net requests frequency...
Thank you.
GarryDD said:
U mean Net Selection - automatic/manual ? I will try...
Click to expand...
Click to collapse
No results
make sure that your phone settings are correct: in the "band" tab, make sure your network type is set appropriately - if you have a umts (3G) subscription, set it to "wcdma" otherwise, choose "gsm".

HERMES WORST NIGHTMARE - "the cell phone death trap"

I recently moved into a new ‘cell phone death trap’ apartment (apt).
I’ve seen my phone connect, I’m guessing; connect to four different cell towers from my apt. I’ve sat and watched it go from 2 bar E, disconnect, to 1 bar G, disconnect, to no bars 3G, disconnect, and so on….
But here’s the clincher…
Sometimes it will also connect to a full strength edge network, but it indicates it’s roaming by the Triangle icon. Now if I’m on that ‘Triangle” network, my phone works great, meaning I actually can make and receive calls!
But, I’m guessing again, because it shows it is roaming; it also does not like to stay connected to this network. Actually it prefers to switch itself back onto a weak edge network without any signal.
My phone battery doesn’t last more than five hours, NOT TALKING, just in standby because it is constantly switching towers.
At this point I want to throw my Hermes out a window! But I know that wont do any good, because anyone else who come to my apt and has AT&T/Cingular gets the same results.
So here’s my question:
“Can I force my phone to stay on a particular cell tower?”
If so, I love you….
you should re-post over in this thread Daniel's software might be able to solve your problem (or Daniel might have other ideas).
thank you for the suggestion. i tried that and he said, "Sorry nop. It isnt the pourpose of cmp or bs...."
I don't think you can force to a specific tower but you can force to a particular provider:
START/SETTINGS/PHONE/NETWORK/MANUAL
and also select whether you want to force GSM/WCDMA and the GSM/UNTS band:
START/SETTINGS/PHONE/BAND
Maybe by going this route you can lock onto a reasonable signal.
2 other alternatives... Sell the appartment... Buy a landline and donate the Hermes to me
taze said:
I recently moved into a new ‘cell phone death trap’ apartment (apt).
I’ve seen my phone connect, I’m guessing; connect to four different cell towers from my apt. I’ve sat and watched it go from 2 bar E, disconnect, to 1 bar G, disconnect, to no bars 3G, disconnect, and so on….
But here’s the clincher…
Sometimes it will also connect to a full strength edge network, but it indicates it’s roaming by the Triangle icon. Now if I’m on that ‘Triangle” network, my phone works great, meaning I actually can make and receive calls!
But, I’m guessing again, because it shows it is roaming; it also does not like to stay connected to this network. Actually it prefers to switch itself back onto a weak edge network without any signal.
My phone battery doesn’t last more than five hours, NOT TALKING, just in standby because it is constantly switching towers.
At this point I want to throw my Hermes out a window! But I know that wont do any good, because anyone else who come to my apt and has AT&T/Cingular gets the same results.
So here’s my question:
“Can I force my phone to stay on a particular cell tower?”
If so, I love you….
Click to expand...
Click to collapse
Are you able to change networks?
Are you able to ask your service provider the location of the towers and if they're planning either any upgrades or any more in the area?
If not you may wish to consider the first point, changing service providers.
I know what a pain it can be to have little or no service when needed. Personally, here in the UK, I'm on Orange. Where I lived in Wales it was either Orange or Vodafone that has a decent signal. When I'm out and about with work those are the two popular towers with o2 creeping up and some others too, but for the most part those are the strongest.
I don't, I'm sorry, have any better advice for you. Apart from leave your Hermes on charge when you're home near a window (safely) and carry a bluetooth earpeice around instead Good Luck with your Valiant Quest
ach2 said:
I don't think you can force to a specific tower but you can force to a particular provider:
START/SETTINGS/PHONE/NETWORK/MANUAL
Click to expand...
Click to collapse
i went to that tab and all i have is a Find Network button, which does nothing...no manual option
ach2 said:
and also select whether you want to force GSM/WCDMA and the GSM/UNTS band:
START/SETTINGS/PHONE/BAND
Maybe by going this route you can lock onto a reasonable signal.
Click to expand...
Click to collapse
I've tried this method as well and it does not help. apparently both the good and the band networks all fall under GSM(900+1800)+UMTS(2100). The other two band options never find a network.
ach2 said:
2 other alternatives... Sell the apartment... Buy a landline and donate the Hermes to me
Click to expand...
Click to collapse
I'll consider it....thank you for your suggestions, I REALLY APPERCIATE ANYONES (constructive) FEEDBACK.
Elwyn M3100 said:
Are you able to change networks?
Are you able to ask your service provider the location of the towers and if they're planning either any upgrades or any more in the area?
If not you may wish to consider the first point, changing service providers.
I know what a pain it can be to have little or no service when needed. Personally, here in the UK, I'm on Orange. Where I lived in Wales it was either Orange or Vodafone that has a decent signal. When I'm out and about with work those are the two popular towers with o2 creeping up and some others too, but for the most part those are the strongest.
I don't, I'm sorry, have any better advice for you. Apart from leave your Hermes on charge when you're home near a window (safely) and carry a bluetooth earpeice around instead. Good Luck with your Valiant Quest
Click to expand...
Click to collapse
Thank you for your suggestions. Unfortuantly im locked in a 2yr contract, thats how ****ty american cell phone companies do things. Plus, the better providers in the area dont use SIM cards (ie. Sprint/Verizon), so that would mean bye bye Hermes.
Ill will go by the Cingular store and ask about the possible service upgrade, but those fools dont really know whats what, thats why im on xda-dev!
I like the bluetooth idea, ill try find a "sweet spot" in the apt and try that method. Thanks again!
"I have dream..."
My idea just seems possible, however i cant program so who am i too.....
The idea of having blocked cell id numbers. If i could FieldTest or somehow extract the cell ids from the towers i dont want, then create a file that the phone checks against before joining a tower.....
I dont know, just a dream i suppose...
In both cases (roaming and not) are you registered in same operator?
If you're having a difficult time maintaining solid cellular reception, you might want to consider buying an external antenna. Refer to my post here regarding an antenna that can be purchased from Radio Shack. The antenna is now on clearance for $20 and the pigtail is $10. This may or may not help depending upon your location in relation to the towers, but if you try it out, let me know how it works.
Cheers
Yeah, I'm on an 18 month contract... But I'm about 8 months in now
You might even be able to get bluetooth repeaters once you find your, ahem, sweet spot
danielherrero said:
In both cases (roaming and not) are you registered in same operator?
Click to expand...
Click to collapse
i believe so. the only reason i think it's roaming is because of the Triangle icon. But my SIM is only authorized for one operator, Cingular.
is there a better way to check?
Thank you very much Daniel!
Lancealot said:
If you're having a difficult time maintaining solid cellular reception, you might want to consider buying an external antenna. Refer to my post here regarding an antenna that can be purchased from Radio Shack. The antenna is now on clearance for $20 and the pigtail is $10. This may or may not help depending upon your location in relation to the towers, but if you try it out, let me know how it works.
Cheers
Click to expand...
Click to collapse
i would be willing to try those products but i believe they're now fully discontinued. Either of those item numbers from your post no longer exsist.
No problem
taze said:
i would be willing to try those products but i believe they're now fully discontinued. Either of those item numbers from your post no longer exsist.
Click to expand...
Click to collapse
Call your closest Radio Shack and ask if they have either of those catalog numbers in stock. Worst case scenario is that they won't, however they can check the districts perpetual stock and see how many are available, and if you ask nicely, they can have the antenna and pigtail shipped to their store so you don't have to run all over creation just to get it.
...An even worst case scenario would be if you didn't live in the US or didn't have any Radio Shacks close by.. however I might know of someone who could use their employee discount to cover shipping costs Let me know if you have any questions.
weinson said:
you should re-post over in this thread Daniel's software might be able to solve your problem (or Daniel might have other ideas).
Click to expand...
Click to collapse
Taze,
I would also recommend that you try one of Daniel's applications - he is working on Comm Manager Pro but I think that Bandswitch will probably help you. I find similar problems to those you describe at work here in the UK with T-Mobile and my battery would often run low even during a day at work. The problem appears to have been caused by the Vario II (Hermes) spending all day jumping back and forward between networks whilst hunting for the best signal. Although the Bandswitch application (very small footprint) will not increase the signal you may find that forcing the phone to operate in a particular band helps - this is very easily achieved via the Bandswitch interface rather than going into settings each time. I now regularly switch to GSM each day when I get to work and it has solved my battery run-down issue completely!
Comm Manager Pro does much the same and more. It allows you to define a location (according to Cell ID and LAC Code) from which you can set the CMP application to (amongst other functions) switch to a particular band - or even turn the phone off).
Given what you have said this may not help but I would certainly give it a go. Good luck.
Regards
tony.wheeler said:
Taze,
I would also recommend that you try one of Daniel's applications - he is working on Comm Manager Pro but I think that Bandswitch will probably help you. I find similar problems to those you describe at work here in the UK with T-Mobile and my battery would often run low even during a day at work. The problem appears to have been caused by the Vario II (Hermes) spending all day jumping back and forward between networks whilst hunting for the best signal. Although the Bandswitch application (very small footprint) will not increase the signal you may find that forcing the phone to operate in a particular band helps - this is very easily achieved via the Bandswitch interface rather than going into settings each time. I now regularly switch to GSM each day when I get to work and it has solved my battery run-down issue completely!
Comm Manager Pro does much the same and more. It allows you to define a location (according to Cell ID and LAC Code) from which you can set the CMP application to (amongst other functions) switch to a particular band - or even turn the phone off).
Given what you have said this may not help but I would certainly give it a go. Good luck.
Regards
Click to expand...
Click to collapse
im going to try bandswitch today and see how it works. thank you for the suggestion!
i wish daniel could add the feature of blocked, preferred, of locked Cell ID's. that would be worth a good amount of money to me....
Hi.
I would like to help you.... I can detect cells and lac but I cant force radio hardware to attach on a particular cell. This a task for Radio ROM. The only posibility (maybe) would be if the operator names are diferent. Could you go to settings a search for operators? Maybe your operator has different name in roaming than non roaming. In that case It would be easy to help you....
Oooo if FieldTest were a controllable application....
Ok what I’ve discovered so far after watching FieldTest for about an hour.
The Good Connection -
LAC 0020
MNC/MCC 31017
NCELL INFO1 700-80 dbm <---- (at least four out of six NCELL maintain a steady 700-80dbm, often all six NCELL)
NCELL INFO2 700-80 dbm
NCELL INFO3 700-80 dbm
NCELL INFO4 700-80 dbm
NCELL INFO5 700-80 dbm
NCELL INFO6 700-80 dbm
BAND 2CS
CHANNEL 1:CCCH (stays, doesn’t change)
The Bad Connection
LAC d6ef
MNC/MCC 31380
NCELL INFO1 140-100 dbm
NCELL INFO2 140-100 dbm <---- (i get two NCELL at the most 140 each, rarely four NCELL, never more)
NCELL INFO3 0
NCELL INFO4 0
NCELL INFO5 0
NCELL INFO6 0
BAND 3:850 (once I saw it switch to PCS on this same MNC)
CHANNEL 1:CCCH/0:BCCH/255<UNKNOWN> (switches between these quite frequently)
So what I’ve interpreted from all that is.
Well I’ve confirmed my ****ty connection. Even though the phone often shows two bars, I can’t make or receive calls. Based on the NCELL db numbers and the constant channel changing, that **** just don’t work.
Most importantly, the phone is always trying to switch to the highest possible band. Because PCS is a lower band than GSM 850, my phone won’t stay on the PCS connection.
O yes, another discovery is, in WM6, if you are connected to a PCS band network, it displays the Triangle icon as if you are roaming but in fact it is not roaming.
So Daniel since you seem to be the best chance for a better life [for my Hermes]:
I need a way to force band selection beyond just GSM and UMTS.
I tried BandSwitch and it does not work for me because all my available connections fall under GSM.
And even beyond that I’d like to be able to force MNC’s, as I believe they are the specific network number.
Or can I block a LAC?
In settings, I only have one operator, Cingular, “Home of the most dropped calls.”
Hi.
I undestand perfectly your frustration and I will try to do what I can althought It doesnt seem easy thing because there isnt any(known) api to manage Radio Rom. Fieldtest is OEM dependent and I imagine It only works for only one manufacturer of radio hardware chip.
Ok, first try. If you start radio phone 10 times....
1) how many times your phone register to roaming (and wished) network?
2) If registed to roaming network, how much time (aprox) stays on it before register to bad cells?.
Why? well ,CMP executes actions when you enter on some place (compound by cells and lacs). You could create a place with your hated cells and then associate the action "reset radio" when registed to those cells (or lacs). In this way if your device falls into bad cells it would be resetted (only radio, not phone) until registed to good cells...
Only an idea....
Dani
If you can determine the direction of the "bad" towers, try lining your walls with lead sheets to block their signals and letting you connect to a prefered tower.

Wanted: Get alert, when GPRS no more available

I am searching for an app, that gives me a sound-alert, when I do not have an GPRS-connection anymore, because there is no more signal.
Or, when there is no more GSM-signal, for example in a building, and I cant receive anymore phone calls because of this.
Thank You
Nobody any idea?
PhoneAlarm should be able to give you a notification, when your signal is low, or unavailable.
I will look at it, thank You very much.
Any other ideas?
if your phone supports it, a setting is available in alerts and sounds.
you can set a alert and sound when the connection has been broken or lost.
Wow, which phone supports that?
Unfortunatly my HTC Touch does not....
I'm using Nav n Go 8, an when I loose my GPS connection it tells me, so I'm not too sure what navigation software your using, but that alone should work.
Sorry, but its not GPS, but GPRS I was asking for.......

[Q] Problem Using SuperRam getting no tmobile network signal In Southern CA USA (OC)

Anyone know what the problem is? I am not very knowledgeable when coming to phone and how they function. I am thinking, could it be the radio setting? I am in the USA, using tmobile network. I get signal and I can call text. If my phone are on standby for not being use, I get the X signal for no network connection and after switching the phone back on.
I am located in Socal in the Orange County, any one with the fix for this please let me know. I didn't have this many drop network with other build, but I love how fast this Super Ram build is. Please help if you can. Thank you!
ihpauto1 said:
Anyone know what the problem is? I am not very knowledgeable when coming to phone and how they function. I am thinking, could it be the radio setting? I am in the USA, using tmobile network. I get signal and I can call text. If my phone are on standby for not being use, I get the X signal for no network connection and after switching the phone back on.
I am located in Socal in the Orange County, any one with the fix for this please let me know. I didn't have this many drop network with other build, but I love how fast this Super Ram build is. Please help if you can. Thank you!
Click to expand...
Click to collapse
I'm assuming you're using Darkstone's build, check his post; there is a complete work-up and description and fixes for problems. Remember, it's still a work in progress and there will be problems. His forum is just for that. The Devs have put a warning on his thread to basically keep it clean and search before posting repeat questions.
http://forum.xda-developers.com/showthread.php?t=870518
"Bugs Remaining:
- Notification LED's only blink once
- SetCPU unable to change CPU speed (not that I think that theres much need to do this anyway)
- Possible PPP data issues for some people"
ihpauto1 said:
Anyone know what the problem is? I am not very knowledgeable when coming to phone and how they function. I am thinking, could it be the radio setting? I am in the USA, using tmobile network. I get signal and I can call text. If my phone are on standby for not being use, I get the X signal for no network connection and after switching the phone back on.
I am located in Socal in the Orange County, any one with the fix for this please let me know. I didn't have this many drop network with other build, but I love how fast this Super Ram build is. Please help if you can. Thank you!
Click to expand...
Click to collapse
Since you and I are on the same network and area, check your build.prop settings for DNS, check your APN and I have mine set to HSP...Check my thread for links and instructions.
Thank, slightly confuse thought. I don't use data service so I don't know if my network or cell phone reception have anything to do with PPP. If it does I will give it a shot and try to fix it. Everywhere I go have Wifi and it work wonders, just my cell reception for tmobile are going up and down at time, and every couple min it would lose everything. Sometime going to network and trying to reconnect it would give me some bar and sometime it doesn't. Very annoying but please verified if PPP will fix it. Seem more like data (3g) issue more than reception issue. I don't know if both are the same thing or not. I will give it a shot if it will fix my reception for signal because I don't want to mess anything up.
Thanks for the lead and heads up.

Categories

Resources