Planet MY Forum (地球互动)'s Archiver

wmip168 Post at 28-10-2009 10:31

AutoActiveSync v2.5.2 - Auto connect ActiveSync via BT (when in range)

--------------------------------------------------------------------------------[size=0pt] `[O`~dZ [/size]
[size=0pt] aJSFEuj# [/size]
AutoActiveSync via BT[size=0pt] N p m$#'ra [/size]
[size=0pt] M=Gn_<< [/size]
I’musing Windows Mobile devices for years. And I like this OS and devices,but I found one big mistake (comparing to Nokia for example). There isno way to auto-connect ActiveSync via BT. For example Nokia e50 connectto synchronization software when is in range! I now, that this could bebecause of architecture of WM devices (for example deep suspend andproblem with waking device up and checking… blah blah). [size=0pt] ^|G{EC [/size]
[size=0pt] }1{>nno [/size]
Ok,I decided to create small software to auto-connect via BT when in rangeof Bluetooth cradle (your device could be on or suspended).[size=0pt] ;Wh        3- [/size]
[size=0pt] >.fD"[y!lz [/size]
There is two settings:[size=0pt] g@'ZYB [/size]
• first: select device from list (device must be paired – this device is computer with ActiveSync profile)[size=0pt] !"=] s[7R [/size]
•second: select interval of searching (in suspend and in powered onmode) – this settings are in milliseconds. Please don’t set less then15000 (15 sec)! Remember that less value cause your device to moreoften wake up from suspend to unattended mode and check for device ifis in range (this could drain battery). My setting is 120 sec (120000ms) - now I’m testing this value.[size=0pt] fS" [/size]
[size=0pt] S"6+l  [/size]
How does it work? It is looking for some system states before looking for specified by user BT cradle and allowing to connect:[size=0pt] U Ru$9P [/size]
• device can’t be connected to cradle (any other connection by USB or manual via BT will be detected)[size=0pt] 8TLJ+ZN"�w [/size]
• device can’t be connected to BT A2DP or BT Hands Free (this is to prevent of audio interruptions)[size=0pt] +DDb#O [/size]
• device must be charged over “VeryLow” state (I think this is around 20%) or being connected to charger[size=0pt] f+b:b;Z [/size]
[size=0pt] D% J^I [/size]
Howto use it? After first run (if You use cab please run it again to showsettings window) You must select your ActiveSync BT destination deviceand set interval. Then click “Save” and “Hide Window”. If you like toexit application – just click “Exit”. The device will look for cradleevery _your_interval_ of time (in sleep also). The application windowmust run in background for now (for people who use for example HTC TaskManager – you can add this window to special applications). And whendevice detected in suspend mode possibilities to connect the programwill wake up device, connect and in maximum 10 second put device backto sleep (unattended mode).[size=0pt] %I@#eU4j [/size]
[size=0pt] :{\@L- [/size]
Warning!Remember, that not only searching for device via BT could drain yourbattery. When ActiveSync is connected via BT and device is in suspendmode in real it is unattended mode. It mean, that for example CPU isworking normally (not in deep suspend) and draining battery. [size=0pt] DHOOs5p [/size]
[size=0pt] |<xdg~s [/size]
Registry. This software store settings in registry, right here: HKCU\Software\AutoActiveSync[size=0pt] dfWYSZZh [/size]
[size=0pt] t%Bx3eCT`Z [/size]
Questions& Sugestions Write here, but please remember, that I have limitedfree time – I will try to answer, but sometimes this could be difficult(to find this free time). And sorry for my bad english [size=0pt] %1dp        H{ 9 [/size]
[size=0pt] l/h.m~T< [/size]
What you need? You need only .NET framework 3.5 & Windows Mobile 6+ (because I use 6 SDK).[size=0pt] OHNpqw8 [/size]
[size=0pt] 8(q]7$O [/size]
Usage.After installing please run AutoActiveSync from start menu (this isonly configurator - you must configure it before first usage). Thenjust run the service (on first tab). After restarting device servicewill autostart (via startup folder in Windows directory). Please note,that application can crash before accepting usage of unsigned dll's!For me the best solution is to disable checking it.[size=0pt] qJ%Axkt0 [/size]
[size=0pt] v$jT)xY>4h [/size]
[url=http://forum.xda-developers.com/showthread.php?t=530327]http://forum.xda-developers.com/showthread.php?t=530327[/url]

Page: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.