Difficulties getting RAS status - Windows Mobile Development and Hacking General

Dear all,
I am developing an application that controlls different
network possibillities. This means it has to be able to turn cradle
communication, wlan and gprs on and off. One by one or all at the same
time. This all works fine, except for one major problem.
I need to detect if a RAS ppp connection has been lost, so I can
redial it in the background. I used the RAS function
"RasGetConnectState", but this keeps returning "Connected", even if
the handheld is wrapped in 5 cm of aluminium foil. Offcourse, this
isn't right. I hoped there would be a tapi event when the connection
is lost, but these events only fire when the connection is explicitly
made or broken. So no luck here also. I can't use any function that
checks if a network is still alive, because there are situations where
wlan, cradle and gprs could be alive at the same time. So these
functions can return true, even when gprs is turned off.
I heard something about the RIL, but haven't been able to develop it
or test it yet. I really hope anyone has some groundbreaking ideas,
cause I'm really running out.
Maybe some Einstein could help me out
here, thank you.
Kind Regards,
Peter

Related

Can't connect to local WiFi...errrrr!

I managed to do this quite easily with my PDA2K, but I'm having a heck of a time getting connected to my WiFi LAN. Has anyone managed to do this yet? Not GPRS, but WiFi.
Thanks!
Tom
Turn up the power level to max performance
I had trouble connecting to my home wifi (well it would appear to connect, but pocket IE wouldn't "locate" any pages). I ran ethereal on my home linux gateway and saw that it was getting its DHCP address properly and performing DNS lookups and even getting the responses. I wish there was ethereal for the Pocket PC, because what eventually made it work was that I turned up the power to maximum performance (instead of in between that and maximum battery). I guess the power level was just a tad too low such that the DNS queries weren't making it back to the 9100/Wizard device. Everything has worked like a charm since including Skype and a voip phone I use to connect by my home PBX called SJPhone.
Turns out I can't connect with either device now. I can get on with my laptop without a problem.
The manual sucks on this topic, but what's the best way to connect to a network?
Tom
Just bringing this back to the top. Still no connection at work, home or Starbucks.
Tom
is the Wizard any better than the BA?
Sorry tnw I can't help - I am wondering whether I should ditch my BA and go for the Wizard... do you think the Wizard is an improvement over the BA, or is it a downgrade?
I really liked my BA when I bought it. I had a the crappy HP from Tmobile which gave me nothing but problems, so getting the BA was great. I still like it. I saw the Universal in person and while it looked cool, I was getting tired of having a big pda/phone so I really didn't want to buy it. Its bigger and heavier than my BA, so that pretty much turned me off.
I read about the K-Jam on The Register and 48 hours after that had one in my hand. I really, really like it. I was looking for a smaller device than the PDA2K and having seen the i-Jam before, I thought this should work perfectly....and it does. I'm really glad I didn't go with the Universal. But, to each his own. The keyboard on the K-Jam is great also, screen is good, speaker is loud, speakerphone is perfect, camera is good....I really have no downsides to it....except I can't get on my frigg'in wifi.
If you don't mind the size, go for the universal. If you're tired of the size and weight of the BA, go with the Wizard. Overall, I feel the Wizard is a huge improvement over the BA. Phone and BT work perfectly! If you buy it from Expansys, you have 14 days to play with it. 14-day return policy.
Tom
Re: Turn up the power level to max performance
funnymanva said:
I had trouble connecting to my home wifi (well it would appear to connect, but pocket IE wouldn't "locate" any pages). I ran ethereal on my home linux gateway and saw that it was getting its DHCP address properly and performing DNS lookups and even getting the responses. I wish there was ethereal for the Pocket PC, because what eventually made it work was that I turned up the power to maximum performance (instead of in between that and maximum battery). I guess the power level was just a tad too low such that the DNS queries weren't making it back to the 9100/Wizard device. Everything has worked like a charm since including Skype and a voip phone I use to connect by my home PBX called SJPhone.
Click to expand...
Click to collapse
I am getting the same, will not locate any page, though wifi settings show signal strength. Changing to settings suggested did not work for me, anyone else had this and resolved? Other than that loving the MDA Vario (Kjam)
happy bunny
finally got working. not too sure what I did but a couple of soft resets and undoing setting a specified IP address. now typing this on the couch using wireless network. Kjam now staying Ijam (MDA compact) likely to be on ebay soon.
Re: happy bunny
allanbach said:
finally got working. not too sure what I did but a couple of soft resets and undoing setting a specified IP address. now typing this on the couch using wireless network. Kjam now staying Ijam (MDA compact) likely to be on ebay soon.
Click to expand...
Click to collapse
What did you change? I've been playing with this all day long. I'm writting this on my laptop over the wifi I should be able to connect to using my kjam. I spent a couple hours at Starbucks today as well.
Any hints would be great! I can get on GPRS without a problem, if that makes a difference.
Tom
My T-Mobile (UK) MDA Vario will not connect to my home 802.11g network. If I switch to mixed 802.11b/g mode the Vario connects and everything is well. The Vario can see the "g" network and knows which encryption is in use but it will not connect. I've read that Australian versions will connect to "g" networks, as will K-Jams and 9100s.
T-Mobile (UK) told me that they have chosen to disable "g" access. I am stunned. I've been trying to find a way to re-enable "g" access but so far no luck. I have hard reset and loaded no external ROM files whatsoever but that didn't fix it. I'm now trawling through the registry to try to find something but I don't actually have a clue what to look for or where.
If anyone has a solution to enabling "g" access on the UK MDA Vario please post. It is the only disappointment I have with the machine.
My KJam was able to connect to g network but on 11M, and regularly dropped the connection and connected, and in an hour of use it halted on WiFi (the pda works, but you get hourglass and nothing more if you enter wifi settings, or try to turn wifi off). I restricted the access point to 802.11b.
i can connect to my AP with no problems if it unsecured. if i turn on encryption it does not get an ip. if i enable mac filtering it works, but removes the mac from the AP when i disconnect.
afaik some APs have problems communicating with mobile devices.
Re: Turn up the power level to max performance
funnymanva said:
I had trouble connecting to my home wifi (well it would appear to connect, but pocket IE wouldn't "locate" any pages). I ran ethereal on my home linux gateway and saw that it was getting its DHCP address properly and performing DNS lookups and even getting the responses. I wish there was ethereal for the Pocket PC, because what eventually made it work was that I turned up the power to maximum performance (instead of in between that and maximum battery). I guess the power level was just a tad too low such that the DNS queries weren't making it back to the 9100/Wizard device. Everything has worked like a charm since including Skype and a voip phone I use to connect by my home PBX called SJPhone.
Click to expand...
Click to collapse
thanks!!!!!! i have been busting my nut with this!!!!
I am having the same problem like this. .. but how did u guys fix it?

Activesync schedule and standby

Hi everyone,
first of all i want to thank you all for the excellent work... this forum is really a gold mine...
Anyway, my problem is:
I set Activesync (the one in the phone) to syncronise once every hour with my company's Exchange server between 9:00 and 17:00. As my company entire building is fully covered by WiFi, I was expecting activesync would use WiFi to syncronise, and connected to GPRS when that is not available...
Insted, with my great surprise, Activesync uses always GPRS !
I think that when AS turns the devices on, it finds no connected interfaces - WiFi need at least 5 seconds to connect - so it connects to GPRS!
The only solution I found is to schedule an appointment with an alarm to the device is on (and connected) when AS syncronises, but this leave some ugly "scars" on my calendar...
Anyone knows a solution for this problem?
If I understand You correct You use the Universal for syncing. This means You use ASync 4.0 or 4.1. I recall that Microsoft changed (for security reasons) the way to synchronize with ASync. Bluetooth is still available, but WiFi is NOT available anymore.
Not a nice information, but should "solve" your problem. No sorry, that's not solve, but "answer".
Ruud
Currntly WM5 prevent you to sync with your computer through WiFi, but syncing with Exchange server is working - if I start Activesync manually it syncs using WiFi. If I am too fast (and manage to click sync before the WiFi is connected), it syncs through GPRS.
OK, sorry for that.
I am the one here now receiving information, where I wanted to answer You. Thanks very much for that information, but sorry I cannot be of any help.
I tried to contact with our ExchangeServer. It works through USB whilst connected to my office-PC, but does not work through WiFi, GPRS or even while being connected through USB to my home-PC. I am quite sure it has to do with our Exchangeserver not being configured correctly so I stopped bothering (more important things to do
As I have NO sync with the exchange working through GPRS I am not even getting as far as You are, not even noticing the problem You mention.
Hope somebody else will be of more help.
Ruud
If you are not able to connect from the WiFi network and from home, this means that your system administrator does not trust internet and wireless, so he let you only connect through the office wired network...
I have not tested that, but I believe that Exchange uses an SSL connection, which should be safe even if you are connected through an unencrypted channel...
Normal AS connections (USB for example) are not encrypted, and MS, in its infinite wisdom, think that the user is too stupid to setup a wireless network properly (to be honest, i am still not able to connect with the Universal to my WPA home network)
My/our system administrator is willing to let me in, but simply does not know the exchange server software well enough to understand where he is making a mistake. He offered me to try as he was sure that he prepared the system correctly, the result was a no-go.
When we both get some spare time (which hardly happenes) we will try out some more. As with the internal firewall, spending enough time looking through the microsoft information will finally solve the problem, it's just that lack of time.
Pity that nobody else jumped on this thread yet to help You,
Ruud

Mystery Data Connection???

Hey,
I'm experiencing a strange problem with my hermes.
The device wakes up often without a reason. The effect is the following:
. device wakes up
. the connectivity icon changes from 3G to H, means HSDPA connection built up
. spb gprs monitor shows different amount of data transfers
If I close the data connection manually with the red hook on button, the effect doesnt appear any more. So I guess this in an inbound connection made to my device. But how can that be???
Does WM wakes up on inbound connections? How can I find out, which data is being transfered? Are there any network monitoring tools for WM?
Is it right, that to wake up the device from a program that makes an outbound connection an entry in the notification list has to exist? There is nothing. No notification that could wake up the device.
Need help!
Device seeks automatically the strongest signal around. If you stay in an area with both types of signal you will find frquent flipping in and out of 3g UMTS. You may not have experienced this but it can also lead to the dropping of calls also.
You can use Danielherrerro's bandswitch application aka commmgrpro that allows you to easily choose which bands to turn on off.
Mike
I think you misunderstood.
Chaning the band doesnt normaly lead to download traffic.
Btw. I selected gsm instead of gms & umts in the phone options, so the device cant switch. Still waking up and producing some traffic. This effect wasnt there til last week.
Mine does this because it checks for mail every 15 minutes, do you have mail scheduled???
good luck.
Oggy.
LaroCroft said:
I think you misunderstood.
Chaning the band doesnt normaly lead to download traffic.
Btw. I selected gsm instead of gms & umts in the phone options, so the device cant switch. Still waking up and producing some traffic. This effect wasnt there til last week.
Click to expand...
Click to collapse
My bad. Ogier is right, it must be an app. that's connecting - possibles include:
Mail
Weather apps
Sync apps - time sync etc
Mike
Gprs Today Plugin
<seems like an 'in-topic' post>
anyone have any good suggestions on a today-plugin that shows wifi/gprs connection? My theme does not show the connection icon (3g,g,e,etc.), so I was looking for somethig that would show with conenction I was using as a today plugin. Something like the one shoen here in custels rom.
I would use spb gprs monitor, but for some reason all spb applications show this really annoying this line at the top of my screen, so I have given up on spb. any other ideas short of dumping custels ROM? thanks
Definitly dont think thats an application
Problem occurs only if a data connection is still active. If I disconnect manually no wake up occurs.
Seems device is waken up from an external source?!

Choosing between WiFi, GPRS, VPN etc. - any simple utility outthere? plz...

Is there a kind of utility that if a connection is required, asks user how to connect? Something like there use to be on a PC, when You start IE? I don't remember which version of IE/Windows it was but it looks something like this - http://support.bee.net/dial/email/outlook6.gif
The problem is, selecting manually how to connect is very much pain in the ass, I am wondering that if there isn't a software already written for this, why is that. It would be a simple yet very usable - You start IE for example, and the phone asks you how to connect, via WLAN or GPRS or whatever. OR maybe even over BT if You have a BT device for connection over PC or smth.
The second option would be to prioritize the connection list - like tell the PDA that first try WLAN, if it fails then try GPRS etc.
The third option would be somehow to use MortScript for this. It's still better than going to Connection Manager through tens of taps.
Been searching the forums. Looked through at least all threads' titles under networking. But no solution so far.
Any ideas? I would appreciate any help. And still wondering why someone hasn't already solved this... Maybe they have, but cannot find it then
So nobody has ever heard of anything like this? Would there be an enthusiast who would program such utility? It would not be a major application...
How do you manually choose connection?
I have HTC Diamond with Windows Mobile 6. I connect it to my work computer to synchronise with Outlook but I want to use my 3G (or GPRS) connection for internet. What should I do?
i really dislike the way the WM6 autoamatically chooses GPRS has its first connection type.. but then if WIFI is turned off it has no choice
An option to possible enable Wifi rather than GPRS would be nice
Windows mobile's connection manager is horrible. I suspect the group assigned to WM networking at microsoft had little (or no) prior experience and didn't really understand how IP routing, interface stacking, etc. works.
We sorely need some kind of end-to-end communications manager that is aware of all network devices (GPRS, CF wireless/ethernet cards, onboard wireless, bluetooth, USB, etc) and virtual devices (all forms of VPN), and how they interoperate. Something that allows editing of routing rules, per-connection DNS servers, gateway priorities, preferred devices, timeouts, connection persistence, etc.
Worry about things like "dial-on-demand" after the basics are covered.
Today it's virtually impossible to keep a WM device on a VPN connection and even harder when you've got phone calls and wifi to deal with. I have my activesync configured through a PPTP VPN and at least 5 times a day it loses its connection and requires me to manually press "sync." Sometimes that doesn't even work, requiring a reboot. Usually there will be some vague and unhelpful error message like "waiting for network" or "could not connect for an unknown reason."
In fact while I'm on a bit of a rant, is anyone else infuriated by error messages like that?
Obviously there was an error - you don't need to tell the user that. If there was no error, you'd be connected! What is the purpose of telling the user there was an error? There is always an "error" unless there is success. TELL THE USER WHAT THE ERROR WAS. Anything else is useless and frustrating.
The device should also absolutely freak out if it ever loses any connection. If the phone loses anything.. the GSM signal, activesync's connection to the exchange server, the VPN... it should beep, vibrate, flash, and refuse to do anything (sleep, power off, etc) until either one of two conditions is true:
1. The error is no longer present (the phone was able to reestablish the connection), or
2. The user has acknowledged and dismissed the error.
It should never be the case that the phone is disconnected and not attempting to reconnect, unless the user chooses that mode of operation. Anything else leads to lost email, missed meetings, and high blood pressure.
Ugh.
Anyway, I think there's a lot of money to be made by a company that can put together a properly functioning WM connection management system. I'm still looking...
This might help, I've not tried it yet but it looks promising....
http://www.iaccarino.de/silvio/ppcstuff.htm#MobileProfiler
That is a much needed program. WM 6.1 does an awful job with GPRS, WiFi,
Phone, etc.
Thanks joemanb, somehow I missed Your reply. But this isn't exactly what I'm looking for. But thanks anyway. I understand that this proggy would be very useful for many people but I don't understand why somebody with programming skills doesn't want to do it...
I have the very same problem.
I have both symbian and WM phones.
Nokia have had this right since my 9500 when you check email or go on the Internet it prompts you for the connection to use. I got a Imate-Kjam and was shocked that it did not do this. It was subsequently replaced with a E90 that still does it the right way and very well. I just got a Samsung SGH-i780 and it is great but it still has no Idea of how to connect to the Internet the way I would like. having 3g makes it less of a problem as I simply don't use the wi-fi but this bugs me that I can't.
All they need to do is have the phone prompt you when you open a Internet app for the connection to use. How hard can that be to realize ?
Bump bump bump
Um... Bump?
Come on developers, You cannot say You don't miss something like that already...
Bandswitch
I hope too in the developers. While waiting I found "Bandswitch" which make something similar...
http://www.freewarepocketpc.net/ppc-download-bandswitch-v1-2-3.html
Disable GPRS connections
Try this. Works fine on my Herald/P4350.
http://www.modaco.com/content/pocket-pc-software/246171/new-free-utility/
Thanks for the suggestions but as far as I can tell, these apps only handle mobile data connections and now Wi-Fi. You can easily disable GPRS by creating a fake GPRS connection with no real access point. That is not what I am trying to accomplish here. But thanks anyway.

Orange 3G - stopping GPRS ?

Hi
Just got an Orange 3G. One annoying feature is that if it drops a WiFi connection it goes automatically to using GPRS without any indication (which thens starts to cost !!!)
Orange say you can't stop this happening. Does anyone know any trick to stop this (there is no way to keep the GPRS off as there was on my old Touch)
Be grateful for any help
As I said to the person who asked the same question a few days ago *sigh*, google nodata
petez1 said:
Hi
Just got an Orange 3G. One annoying feature is that if it drops a WiFi connection it goes automatically to using GPRS without any indication (which thens starts to cost !!!)
Orange say you can't stop this happening. Does anyone know any trick to stop this (there is no way to keep the GPRS off as there was on my old Touch)
Be grateful for any help
Click to expand...
Click to collapse
You need to check how your phone is connecting.
AFAIK the orange ROM uses the unique manager not the normal HTC connection manager.
This means you dont really have a WiFi connection. Orange unique is their VOIP(??) implementation.
If you have a livebox and orange as your ISP your phone will automatically switch to using your WiFi connection for phone calls saving you money, the downside is you cant use wifi for anything else.
The only way to sort it is buy flashing a different ROM.
Orange Unique ----http://www.business.orange.co.uk/services/broadband/unique-for-business/
Hi
Thanks for the info. Been trying to sort out with Orange and same answer - disable GPRS and the WiFi stops as well !!! (One of the Orange guys even admitted that it was because they don't make money on voice now, only data). The 'nodata' fix doesn't work as it also stops the WiFi. Any thoughts on which ROM I might flash?
Thanks for your help
I'm actually an Orange employee, working for Handset Faults, and looking to solve this for a customer.
There is a rom update available from HTC, which apparently fixes this, however the customer I'm trying to resolve this for, has tried updating and his serial number shows as no available ROM.
I don't think the No-data resolution will work, so hoping if theres any other solutions you guys could suggest?
I know on my current HS, which is a Hermes, I've the communication manager, which i believe isn't available on the Touch 3G, unless debranded.
Really, I'm just trying to get more advice, so would appreciate anyone's tried and tested work-around, as i've to call said customer back tomorrow, with hopefully a resolution, but if not, then he'll have to wait till a ROM update becomes available from HTC/Orange for branded handsets.
I found a solution to this problem last night that works for me on my Touch 3G with Orange.
Enter Unique Manager - Advanced Settings - Network Adapter - My Network Card Connects to - and ensure they're all set to connect to The Internet.
I have also setup a Block GPRS connection under Settings - Connections - Conections which stop GPRS connecting and can now connect via Wifi no problem.
Bob
bobmac892 said:
I found a solution to this problem last night that works for me on my Touch 3G with Orange.
Enter Unique Manager - Advanced Settings - Network Adapter - My Network Card Connects to - and ensure they're all set to connect to The Internet.
I have also setup a Block GPRS connection under Settings - Connections - Conections which stop GPRS connecting and can now connect via Wifi no problem.
Bob
Click to expand...
Click to collapse
Bob
Thanks for this - going to give it a try but when i go into Settings - Connections for the second part of your fix, where do I go next (I can't find Conections which stop GPRS connecting)
Thanks
Thanks Bob,
Will copy this and put it on my phone somehow!
Thank you very much for the advice!
Greeee
Did you manage to make it work?
petez1 said:
Greeee
Did you manage to make it work?
Click to expand...
Click to collapse
Unfortunately, the customer cancelled their upgrade and got another handset before trying this.
Shame really!
Thanks for the help though!
petez1 said:
Bob
Thanks for this - going to give it a try but when i go into Settings - Connections for the second part of your fix, where do I go next (I can't find Conections which stop GPRS connecting)
Thanks
Click to expand...
Click to collapse
Bob/Greee
Still haven't been able to work out the second part of the fix - can you help?
Thanks
I've no suggestions tbh, cause I don't own a Touch 3G, I personally run a Hermes.
I'm actually trying to follow this up, and check what Bob meant by blocking GPRS on it.
Also, would you chaps be so kind to advise me if GPS under the HTC Touch 3G uses GPRS to connect, or does it use Satelittes like a normal GPS?
Just another question my customer asked today.
Thank you,
Greeee said:
I've no suggestions tbh, cause I don't own a Touch 3G, I personally run a Hermes.
I'm actually trying to follow this up, and check what Bob meant by blocking GPRS on it.
Also, would you chaps be so kind to advise me if GPS under the HTC Touch 3G uses GPRS to connect, or does it use Satelittes like a normal GPS?
Just another question my customer asked today.
Thank you,
Click to expand...
Click to collapse
The GPS will use the satelitte to get a signal (just like proper SatNavs), but if there's an A-GPS feature, it will use a tiny bit of GPRS to speed up the process.
It'll then use the GPRS (if enabled) to download maps for the local area if it there isn't a map already installed on the handset.
That's why it's always a good idea to disable GPRS when roaming, at £8/mb- it's a pricey thing to use.
However, you can normaly download maps using WiFi before you leave (if you know where you'll be going), which will save time and money on using the network for data.
I get asked that question alot too (I work for them too, in NT1- First Impressions)
It will use the GPRS for the GPS locator if you leave A-GPS selected. Fortunately you can disable A-GPS to stop this happening.
Interestingly, I can't find any real difference in the speed of 'finding' satalites between standard GPS and A-GPS.
Thanks for the advice guys.
So any ideas how to fully block GPRS traffic outgoing, unless wanted? So its WIFI only when my customer is at home?
No further movement on this one...
Anyone got any ideas, how to utilise the WIFI facility switching the Unique Phone part off, and blocking GPRS traffic?
Thank you,
NoData works on fone.......BUT
Hi I got my touch 3g couple days ago its on orange contract brilliant fone apart from cannot connect to wifi as you all know it still connects thru gprs so I downloaded Nodata installed on fone disabled gprs with it. So good so far switched on wifi thru unique manager then checked that data connection was still off and it was BRILLIANT I shouted.
My wifi was connected to my hub and data connection was off woo hoo
Started web browser and lo an behold Get the message "cannot connect with current connection settings"
As far as I am led to believe at the present time there is no way round this problem apart from installing a clean version of windows but if I am mistaken please tell me how to get around this problem.
Cheers Biggles
HTC touch Dual An a HTC touch 3G
I have the Touch 3g with Orange - but thanks to the guys on this forum I got rid of the Orange branding/mess by using a 'stock' rom and I am not now using Orange Unique. Then I did the following........but not sure if it works with the Orange Unique stuff.
As far I as I can see there is no explict way of turning GPRS off - if it is set up then it will connect to it when a program requests data. I have unlimited internet on my home network but I need to turn GPRS off when roaming abroad so I don't get charged silly amounts.
I found that the only way I can guarantee to stop the phone using GPRS is to change the name of the Access Point Name - then it cannot connect to the service. On my phone (a Touch 3g) it is under Settings, Connections, Connections, Manage Existing Connections - then edit the connection details. On mine it is Orange Internet - so edit this and get to the Access Point Name - which is orangeinternet in my case - i just take away a few letters at the end and save the settings.
At this point GPRS will not work because the Access Point Name is not correct and you will get a message from any program trying to access the internet if wifi is not enabled. To get it to work again just edit the Access Point Name back to what it was. In my case I do not have to switch the phone off/on - I can just change the Access Point Name at anytime and it works or dosn't as I require.
Hope this helps.
doublegandt said:
On my phone (a Touch 3g) it is under Settings, Connections, Connections, Manage Existing Connections - then edit the connection details. On mine it is Orange Internet - so edit this and get to the Access Point Name - which is orangeinternet in my case - i just take away a few letters at the end and save the settings.
Click to expand...
Click to collapse
Hi,
With Orange Unique there isn't any "Manage Existing Connections" that I can find - just addding new modem or VPN? Am I in the right place?
Thanks
for the benefit of people who may be subscribed to this thread, I think I have found a fix for the orange rom using data connection instead of wifi, read on here:-
http://forum.xda-developers.com/showpost.php?p=4517074&postcount=12
post back to that thread if it works for you!

Categories

Resources