[APP] Connection State Checker - Windows Mobile Apps and Games

HISTORY
V1.1 [2009-10-05]
1) Options dialog to change timeout to run the program automatically (10 by default) and web server to reach (www.google.com by default)
2) Option to reset statistics.
3) When the gui is opened its auto-refreshed automatically each 2 seconds
3) Minor fixes
V1.0[2009-10-04]
1) Initial release.
History
Hi
I ve developed a little program to solve a problem I ve many years ago. I use direct push so I need a permanent connection. This is achieved using activesync (direct push) or setting a connection as always on.
PROBLEM TO SOLVE:
Many times a connecion is stablished minutes or hours ago. But it doesnt work correctly. I dont know if the problem is in phone operator system, or in the device or some roms. Simply the connection is corrupted. If you try to suf a web it doesnt work. Clicking "sync" in activesync keeps rolling for ever. So I ve to close the connection manually (hang button long press) and stablishing a connection again. And then all works again
WHAT I SEARCHED AND DIDNT FIND:
1)A program that tries to reach a server (www.google.es) each x minutes. If there is an active connection but cant reach it then kill the connection and stablish it again. The program doesnt download the page content. Simply reach the server so very little data usage (a few bytes each time)
2) very little, no cpu consuming and no resident. Windows should run it each x minutes. Do its job in a few milliseconds and exit.
3) perform its job even if the device is suspended..
4) So I wrote my little program. It works correctly.
5) If the phone is in fly mode then it skip its job
USAGE:
Just install. No need to run it manually. It installs too a little GUI program (ConnectionStateCheckerGUI) to see some statistics (stored in the registry) like number of checks, corrupt connections, last check, etc. You can set the timeout (10 minutes) and server (http://www.google.com) in the registry.
My job needs a 100% safe real time mailing working. This little program guarantees it and maybe there are other people in my situation.
Greetings
Dani
pd: The black background is because of omnia2 skin. In other devices is a tipical white dialog.

OK. gracias nene.

all right!
Nice work buddy, a common problem that bugs a lot of people including you but you decided to do something about it and now we can all be happy.
May I redistribute this on my website?

thanks for that...

Thanks
Sure, you can use, upload, distribute or what you want with it
...and if someone has any suggestion....
First I was going to do icmp ping instead of http get but my phone company (and probably other) has blocked pings....
Greetings
Dani

HiĀ”
New version on first post
greetings
Dani

Any chance of a Today screen icon? That would be more helpful than having to call the program in order to see connection status.

UncleBeer said:
Any chance of a Today screen icon? That would be more helpful than having to call the program in order to see connection status.
Click to expand...
Click to collapse
Good idea but MS says not to use Today plugins because arent used in WM6.5.....
The GUI only reads the statistics stored in the registry and refresh them each 2 seconds...
Dani

Thank you for this nice piece of software.
However I have few questions, right after installing and soft-resetting, then changed web reference to www.google.com and interval to 1 minute, it keeps saying that the Last Result is KO, and only Connection Fixed has the increment.
What makes it odd, is that the connection is actually OK, I can connect to www.google.com via UCWeb and Slick is running too.
This is quite bugging me, however since I only installed it for less than an hour, I'll report again whether my connection would be kept alive permanently or not by this program.
(Dopod 818Pro aka HTC Prophet/WM6.1/My Buble Blue ROM by varanusvincent)
Andi

cumisquid said:
Thank you for this nice piece of software.
However I have few questions, right after installing and soft-resetting, then changed web reference to www.google.com and interval to 1 minute, it keeps saying that the Last Result is KO, and only Connection Fixed has the increment.
What makes it odd, is that the connection is actually OK, I can connect to www.google.com via UCWeb and Slick is running too.
This is quite bugging me, however since I only installed it for less than an hour, I'll report again whether my connection would be kept alive permanently or not by this program.
Andi
Click to expand...
Click to collapse
Hi
Please dont remove "http://" because this is used by WinInet to choose the correct destination. Leave http://www.google.com (or any other site but using http://) and it will work again....
Dani

I did, it's http://www.google.com, with the http://
The connection is still KO (though Slick is up and running smoothly)
Does it matter if the GPRS connection has the proxy setup?
And when I tried disconnecting the GPRS, and then use the Check Now, it won't reconnect.
Oh, btw, the Last Check field is always empty.
Andi

cumisquid said:
I did, it's http://www.google.com, with the http://
The connection is still KO (though Slick is up and running smoothly)
Does it matter if the GPRS connection has the proxy setup?
And when I tried disconnecting the GPRS, and then use the Check Now, it won't reconnect.
Andi
Click to expand...
Click to collapse
Yes, for sure is related with GPRS Proxy. Let me take a look at this.....

Andi,
Could you test this version? I ve added support for GPRS proxy. It works in my network but I dont use proxy. Could you try it?
Thanks

Dani,
Sorry for the late reply. I have just finished installing and voila! The Last Check is not empty anymore. I have changed the web reference to http://www.google.com, and interval still to 1 minute, and guess what, now the Last Result is OK!! and Connections OK is now the one who gets the increment. So yes! It works! When WM finished loading up, and when I use the Check Now function, it is now connecting the GPRS automatically.
So I supposed it would close and then reconnect GPRS if ever the connection gets corrupted, right?
Once again, Bravo!
Andi

Just wondering really, if I can get it scheduled for certain time only? Or I can get it stop, perhaps? It would be better than filling in the interval time of 360 minutes every night?

Hi
It seems to work correctly. Tomorrow I will comvert the beta im release amd probably will add period of checking as I did in bandswitch
Dani

Dani,
Just find another thing here.
I did say it does make an automatic connection, it *is* connecting, however, i have just found out, it does *not* end up connected at all.
What I meant by connecting, the antenna icon is having two arrows and the small box with G in it, but it won't be connected at the end of the animation.
The Connection Fix number is added, but since there is no connection in real.
In the end, I still have to use UCWeb or Slick to get connected.
-------edited
Okay, strange enough, I changed the interval to 5 minutes, and after awaited for 2 times trial, it did finally made the connection. Hm.
-------edited again
I did try certain things again. I changed back the interval to 1 minute. Then I tried the following:
* Changed the web reference to http://wap.telkomsel.com (the provider's default wap page), 3 times trial, all failed.
* Changed the web reference to http://www.google.co.id, 2 times trial, finally connected.
* Changed the web reference to http://www.google.com, 3 times trial, all failed.
* Changed the web reference to http://208.67.219.230/ (www.google.com ip address), 3 times trial, very short timed trial, all failed. I supposed it does not accept IP address as a reference?
I'm not an expert in this area, however, it does seem to me that it's related to session time-out thing.
Once the time-out reached, it drops the on-going connection trial. I concluded this because I checked my Data plan's balance, and nothing's to be deducted during the failed session.
So the work around I finally do is to change the registry at HKLM/Comm/ConnMgr/Providers/{myGPRSconn-hash-number}/title_of_conn/AlwaysOn value to decimal 1.
After that, it would get the connection established, even if it seems it doesn't receive any reply from the referred web, get passed all the session time-out variable, until the complete handshake (if this is the correct term).
Andi

wow, that was a deep test. Thanks.
Tomorrow I will try to find a gprs server with proxy to do try/error system

danielherrero said:
Many times a connecion is stablished minutes or hours ago. But it doesnt work correctly. I dont know if the problem is in phone operator system, or in the device or some roms. Simply the connection is corrupted. If you try to suf a web it doesnt work. Clicking "sync" in activesync keeps rolling for ever. So I ve to close the connection manually (hang button long press) and stablishing a connection again. And then all works again
Click to expand...
Click to collapse
Hello Dani,
It has been some time since you posted here. Are you still supporting or working on this app? If you are I would like to ask a question or two having tried the app on a TMOUS HD2 recently.
A lot of the time the app works exactly as you intended - perhaps 50% or better improvement. But sometimes it is not able to disconnect and re-establish the connection for some reason. I find that it will end up in a near permanent KO result loop.
At these times the data connection is established (H or 3G) but no app can successfully connect (no email, no browser). Your app will continue trying but is not successful.
At such a time if I manually drop the data connection (via Touch X action screen, for example) the connection can be re-established within 15-30 seconds of an app trying for data. It is not immediate - some app will have to ask for a data connection and it takes some 15+ seconds before it can successfully continue.
What I am wondering is how your app is trying to do this and how is the data disconnect of Touch X different. I hope I explain it clearly.
.

ny_limited said:
Hello Dani,
It has been some time since you posted here. Are you still supporting or working on this app? If you are I would like to ask a question or two having tried the app on a TMOUS HD2 recently.
A lot of the time the app works exactly as you intended - perhaps 50% or better improvement. But sometimes it is not able to disconnect and re-establish the connection for some reason. I find that it will end up in a near permanent KO result loop.
At these times the data connection is established (H or 3G) but no app can successfully connect (no email, no browser). Your app will continue trying but is not successful.
At such a time if I manually drop the data connection (via Touch X action screen, for example) the connection can be re-established within 15-30 seconds of an app trying for data. It is not immediate - some app will have to ask for a data connection and it takes some 15+ seconds before it can successfully continue.
What I am wondering is how your app is trying to do this and how is the data disconnect of Touch X different. I hope I explain it clearly.
.
Click to expand...
Click to collapse
Hi
Let me took a look at this

Related

Sprint Touch Pro data connection issues

I've owned a Touch Pro for a few months now and overall it's a good device. It has its quirks, but then again what phone doesn't? There is one problem in particular, however, that I can't seem to figure out. I've searched up and down in XDA Forums, and on Google, and I just can't find out a fix for my data connection always turning on for no reason. I have all my e-mail accounts set to "manual send / recieve", the weather program set to "update weather manually", and as far as I know there are no other programs on my phone that have access to the internet without my permission.
The problem I have is sometimes I will wake my phone up from its sleep mode, and I will discover that the data connection is active and appearing to be transmitting. Also, EVERY time I restart my phone and it goes through the boot process, the data connection will re-activate even before TouchFLO 3D opens up on the today screen. It's really annoying, because I have no idea what's causing it to do this, or why it does it at random times, or whenever I reset my device.
Does anyone have any solutions to this problem? I hate having to manually go in periodically and make sure my data connection is set to "off", instead of having it stay that way when I set it.
So no help on this one then?
I don't have a solution but I can help by bumping your thread and saying I have the same problem on Verizon. I was at a friend's place all weekend, and he has wifi all over, so I turned off data and used his wifi instead. Well sure enough all weekend my data connection kept turning itself back on. It seemed to happen only when going into sleep mode. So I kept the phone plugged in so it would never totally "sleep". Wifi stayed connected with no data connection starting automatically. Annoying especially considering the 5 GB data limit on the PDA plan.
Well I'm glad I'm at least not alone on this one. It's weird too that even though your device is on a different carrier, it still does the same thing. I wonder if it's a hardware issue?
I know that someone has to have an answer for this...
go into pocket express and press menu then go to express settings then on the top left theres a pulldown press it and go into auto updates and turn it off.. pissed me off when i got the phone.. couldnt find a fix till i started going through all the programs to find the one doing it.. and it was the stupid Pocket Express
I have had my MDA Compact V for a few months now, and it's only recently that I've had the same problem. Each time I switch on, my data connection starts or alternatively if I loose signal then get it back then I see my data connection is on again. Thankfully I have the Solo 20 package with unlimited net usage (although you're are limited to 1Gb/month) but it drains my battery really badly.
I went through every possible setting and program to switch off location settings or auto downloads/updates and I still have the same problem, but I downloaded Data Controller v1.00 from Freewarepocketpc.net and I can toggle my data connection on or off as I please.
Heres what you need
Install below cab, then use the NODATA app, select what you want off, PHONE AS MODEM and DATA are your two options I believe... Your data will never come back on... until you re-enable it that is....
PS... THIS IS NOT MY CAB, THIS IS SOMETHING I FOUND WHEN TRYING TO ADDRESS THESAME PROBLEM YOU ARE HAVING. THIS CAB WAS DOWNLOADED FROM MoDaCo BUT I DONT HAVE THE LINK... ALL RESPECTS GO TO HIM... I AM JUST SHARING WHAT HAS WORKED FOR ME IN THE PAST...
Seems it's one or the other
What sucks is on my Sprint HTC touch pro 2 (cdma), I was having a problem where I couldn't answer calls all the time, but sometimes I could, and eventually found that it was always when the data connection was showing active is when I couldn't answer a call. But when that was happening, my data connection would turn back off after a few seconds when I was done using it. It was driving me crazy not being able to answer my calls and I finally found a post that let me correct that problem, it was changing the HKLM\Comm\ConnMgr\Planner\Settings\SuspendResume value that fixed this problem... the value of this registry setting was originally "GPRS_bye_if_device_off". This setting made it so the data connection would turn off when not being used, but it apparently messes up cdma phones from being able to switch over to answer an incoming phone call if the data connection is active. I changed this registry entry to "#777" as the post said to do, and sure enough, that corrected the problem with being able to answer my calls if the data connection is active. I'm real happy to have that working now, but when I changed this setting, my data connection is now always showing active (white arrows showing in status) and even if I turn it off manually, it comes on by it's self way more often than the every 4 hours I have it set to check emails.
There is a registry setting called CacheTime under the same Settings key as the above mentioned registry entry that I changed, that when the "GPRS_bye_if_device_off" value is used, the CacheTime key value will indeed control how long the data connection stays on before automatically turning off. But When I change the Entry to "#777" which is necessary to allow me to answer calls when data is active, then changing the CacheTime value has no effect and the data connection stays on until you manually turn it off.
I'd like to find a way to turn the data connection off, while still not messing up me being able to answer calls when the data connection is active, and seems to me that if both of these things can be done separately with two different registry settings, that it must be possible to do both.... so if any of you tech wizards can find a way to do this, I'd love to see it!
Possible Fix?
Hey, I have noticed the same problem. It is annoying from a battery life aspect as well as a system slowdown when coming out of sleep. I could not find much of a workaround except one of the settings in TD3 Tools I installed. In the "Data Connection" tab you can yurn on an option that makes your "End" key also terminate an active data connections. So if you hit it after waking your phone you won't have the annoying slowdown with your Sense UI...

[Q] WiFi niggle

I've had a mini pro for a while and I am very happy with it - but I do have one slight niggle with the WiFi..
When its connected to my home router it works great - until the screen times out and the powersaving comes on. At this point when the phone is used again the WiFi icon shows as connected but its not connected to the network and can only be convinced to work again and it needs the wifi resetting by switching it off and on again...
The firmware is the A012 but this wasnt a problem at first so I am wondering if it was something to do with an update or a piece of software...
If anyone has any suggestions..?
fortunatly that one is easy to solve.
- Go to wifi definitions;
- press menu button (is the one with four squares).
- Select advanced;
Then you will have something like "wifi suspension policy", you just have to alter that to always connect or something. My phone is in portuguese so I cannot say exactly what it will appear in English but I think you can get the idea.
Regards
MrMustaine said:
fortunatly that one is easy to solve.
- Go to wifi definitions;
- press menu button (is the one with four squares).
- Select advanced;
Then you will have something like "wifi suspension policy", you just have to alter that to always connect or something. My phone is in portuguese so I cannot say exactly what it will appear in English but I think you can get the idea.
Regards
Click to expand...
Click to collapse
Already found that and changed it and it still didnt make any difference unfortunately. not sure what else I can do.
I had the same problem. What is your wifi encryption type?
I was on WPA-PSK and I saw on a Japanese forum that if you change to WPA2-PSK it would fix the problem which it did! Let us know if this helps you.
hi, i think this will fix permanently until the phone updated to 2.1 but there is a solution before that which i have experience and come up with 2 solution:
firstly install wifi fixer, its free on the marked.
setup to never off mode on settings.
1. if the phone connected charged, the wifi always on even the dispaly off
but i don't recomend to do this with the batt fully charge, because it could make batt live shorten(overcharge), i think.
2. this is abit tricky but it works .. it make the wifi always on without connected charge by:
- install program called gmote than run it, if possible setup to connect to the server, but dont have to.
- and the tricky is, before the phone display off or you are not playing with phone, run the gmote and make sure the gmote program run in the DISPLAY PHONE (mine in gmote browse mode) and leave it like that, than you can leave the phone.
i used this all the time and it works, even i leave the phone for long hours and than check it ... wow the wifi still connected and i tried browsing internet.. amazing ... it works but i see it drain the batt faster .. lol
hope this solution can help anyone

data wont turn off

now ive tried many key words and phrases to search, maybe im just searching wrong or something but i cant find any fix to this yet im sure others have experienced it.
basically my data keeps turning on every 10 minutes or so after i switch it off. no programs are running, weather not set to update, youtube hasnt been set to login and neither has twitter, activesync set to usb. the only home screen tabs i have are messages, internet, photos&vid, and weather. time isnt set to update via internet. auto update of database within the data connection are turned off, auto config turned off
im on the verge of hard resetting.
not sure, but maybe WMLongLife could help to identify the culprit, as with each new connection it asks you to define connection type/access
go to settings tab / more / connections / connections / advanced / choose networks -> programs with automatic internet access use: set to "firmennetzwerk" (i guess its work network or something similar).
now your phone doesnt connect data anymore..
if you want to connect it again, you have to change that again..
DN41
b-16707 said:
now ive tried many key words and phrases to search, maybe im just searching wrong or something but i cant find any fix to this yet im sure others have experienced it.
basically my data keeps turning on every 10 minutes or so after i switch it off. no programs are running, weather not set to update, youtube hasnt been set to login and neither has twitter, activesync set to usb. the only home screen tabs i have are messages, internet, photos&vid, and weather. time isnt set to update via internet. auto update of database within the data connection are turned off, auto config turned off
im on the verge of hard resetting.
Click to expand...
Click to collapse
Did you uncheck "My Location"?
have you tried the "no data.cab" file works for me
yea ive looked into the above solutions but didnt want anything semi-permanent.
ironically i soft reset the device about 4 times within 30min and its back to normal now...go figure.
Search for dialup enablerdisabler. Install it first thing after a new Rom. Goto start find it and disable data once and for all
Sent from my HTC HD2 using XDA App

[Q] ActiveSync problem

So here is the thing. From time to time, mostly hour by hour, my Leo connects with internet and changes time one hour forward. Always, after I notice the change I turn the clock back, but it's not a solution. And one more thing, after that, in task manager, activesync is always present. I tried to decline Location service, tweaking the registry as advised few weeks ago on xda main page. I seroiusly need help in disableing activesync, because it really gets on my nerve. I have a data plan from my operator, but those constant time changes are annoying and confuseing sometimes (especcialy in the morning). Thank You for the solution (if there is any) in advance
as for time changes you'll find few threads on disabling the GSM time sync, also check in Settings / Data services if the internet time sync is disabled
for ActiveSync check here

Tasker (Need a little help please)

Hi,
Whilst help with the profiles would be great, i'd much prefer help with understanding the "why" so i can learn it for future use.
Scenario:
I want to send a text to my wife when i arrive at work.
The most accurate way is when my phone connects to the work wifi. Now, i'm in and of the office all day so only want it to happen once.
So i did:
State > Net > Wifi Connected > SSID work > if %SMSKEV = 0
+ wait 1 second
+ variable set %SMSKEV = 1
So it will only fire 1 text off, then change the variable so it cant happen again. And then:
A separate profile that at midnight (using start and end time 0:00)
Variable set > %SMSKEV = 0
in order to reset it for the next day.
in my head this all sounds right. the tasks run fine (my wife gets the text) BUT the first task is still running now, not sending texts or anything, but the task is green in tasker so is ACTIVE. i only want it to run once when appropriate and then stop, but because i'm saying "when connected" to the work wifi, hours later i am still meeting the criteria of being connected to the work wifi so the profile is still active all the time later.
does this make ANY sense to anyone? what am i doing wrong?
many thanks for your help
Further:
"Events are a little different to other contexts because they are instantaneous whereas other contexts usually have a duration." from the user guide.
I think this is my problem, I need an event that says when i connect to the wifi, not a state. But there is no event for connecting to wifi...
kevmeister46 said:
Hi,
Whilst help with the profiles would be great, i'd much prefer help with understanding the "why" so i can learn it for future use.
Scenario:
I want to send a text to my wife when i arrive at work.
The most accurate way is when my phone connects to the work wifi. Now, i'm in and of the office all day so only want it to happen once.
So i did:
State > Net > Wifi Connected > SSID work > if %SMSKEV = 0
+ wait 1 second
+ variable set %SMSKEV = 1
So it will only fire 1 text off, then change the variable so it cant happen again. And then:
A separate profile that at midnight (using start and end time 0:00)
Variable set > %SMSKEV = 0
in order to reset it for the next day.
in my head this all sounds right. the tasks run fine (my wife gets the text) BUT the first task is still running now, not sending texts or anything, but the task is green in tasker so is ACTIVE. i only want it to run once when appropriate and then stop, but because i'm saying "when connected" to the work wifi, hours later i am still meeting the criteria of being connected to the work wifi so the profile is still active all the time later.
does this make ANY sense to anyone? what am i doing wrong?
many thanks for your help
Further:
"Events are a little different to other contexts because they are instantaneous whereas other contexts usually have a duration." from the user guide.
I think this is my problem, I need an event that says when i connect to the wifi, not a state. But there is no event for connecting to wifi...
Click to expand...
Click to collapse
I understand your problem. =)
I dont realy know how to solve it the way you tried to, but i think there is another way...
If you arrive at work every day at the same time you may find a way to connect a several time (for instance 10:15 am ) to your wifes text message.
Hope i could help yoou or even keep you mind walking on =)
I wanted to do exactly the same thing, perform a task once per day when connected to home wifi, only initiate a sync using FolderSycn, as opposed to send anSMS. I thought abut setting the variable, then resetting it at midnight just like you did.
But what I tried was to just set a simple profile:
when state = wifi connected to home wifi ssid, perform sync.
As you said, it still shows the profile as active as long as the wifi is connected, but it doesn't affect anything. As soon as you leave the wifi network and connect again, it will perform it again.
I guess in your case this might not be enough, just in case you lose wifi or leave your work for ome reason then return.
thank you both for replying. i think ive worked out a slightly better way of doing it.
As jiffer1991 said i used a time context but as a second context.
so i set it all up as i previously described with the Wifi Connected being the first context, then added a second time context from 7:40 to 8:10.
I always arrive within this period and have allowed a little extra. But it also means the task isn't active through out the day.
I know it probably "could" stay active and be completely harmless, i'm just thinking that maybe active tasks contribute to battery drain ??
Anyway thats how i've solved it for now.
thanks again for your replies and help.
:O)
You could also add as first context if %SMSKEV = 0
This way it won't be active the rest of the day and the sms will be send if you arrive a bit late
Cheers

Categories

Resources