Hi!
I would love to see a programm like VJBlueSync for our diamonds. That would be very usefull. Does anybody know something like this?
Greetz
Korbi
le_cactus said:
Hi,
I couldn't live without it. The following script connects Bluetooth through ActiveSync and Syncs. The connection will remain active until the script is started again, or the connection is closed manually.
Code:
If NOT wndExists "Connected to MEDIACENTER"
RegReadDWord HKLM, System\State\Hardware, Bluetooth, Bluetooth
If Expression %Bluetooth% <= 8
Set BluetoothWas, "Off"
Run "\Windows\ToggleBTH.exe"
Sleep 3000
EndIf
Run "\Windows\rnaapp.exe", -n -m -e"MEDIACENTER"
WaitFor "Connected to MEDIACENTER", 15
Run "\Windows\udp2tcp.exe"
Run "\Windows\rapiclnt.exe", -dppp_peer
Run "\Windows\repllog.exe", /remote /sched /h
Sleep 1000
RegWriteDWord HKLM, System\State\Hardware, Cradled, 1
While wndExists "Connected to MEDIACENTER"
Sleep 1000
EndWhile
Run "\Program Files\MortScript\TKill.exe", UDP to TCP proxy
Run "\Program Files\MortScript\TKill.exe", Remote API Client
Run "\Program Files\MortScript\TKill.exe", ActiveSync
If equals %BluetoothWas%, "Off"
Run "\Windows\ToggleBTH.exe"
EndIf
Else
Run "\Program Files\MortScript\TKill.exe", Connected to MEDIACENTER
EndIf
Needless to say you need to replace MEDIACENTER with the name of your own BT Connection.
ToggleBTH turns on the BlueTooth radio if it wasn't already on, and turns it off again is the connection is dropped.
TKill really kills the various processes when done; killing them with MortScript's internal commands didn't seem stable.
Cheers,
Cacti
Click to expand...
Click to collapse
I've done that b4 on my Wizard and Tilt with mortscript. I don't see any reason why that wouldn't work on Diamond/Raphael
Cheers,
/Cacti
Thanks.. I will try...
Related
Hi, new to the form. This is a useful place!
Am with O2 Mini S, 1.5.70, AS 4.1, XP sp1, Oulook 2k3.
Does anyone notice AS runs every 5 minutes? I first tried the Add Server Source hack by WM5 Axim users, but didn't work. I couldn't find any registry entry that relates to the sync frequency.
Apart from suffering the unplug usb and wizzard freeze problem seen here. AS syncs every 5 minutes really annoys me. I need to rely on AS's tcp via bluetooth to use networking on the device and AS is heavy weight process.
So far, I have some solutions:
1. kill the wce* processes, which leaves the device connected (TCP stack still works, USB charges) but AS on the desktop says disconnected. Your wizzard's AS will still TRY to sync every 5 minutes, but it'll return quickly because the desktop ain't listening. But remember to double click AS on your desktop when you need to sync stuff again.
2. Replace the useless MS bluetooth stack with the widcomm stack taken from the Atom? Then use the PAN profile for connection. Disconnect PAN and run AS via bt from the device when needed. (But PAN on PC is not always possible as company laptops will almost certainly not allow internet connection sharing, never mind allowing you to have BT PAN enabled in the first place)
So afterall, does anyone know how to re-enable manual syncing? Some registry hack? AS 4.x is such a big step backward, I already have to disable firewall and VPN service from my company laptop when connecting, AS 3.8 was so much better when I was with an ipaq or SP3i. May be a sticky with enough post on it to get M$' to fix AS.
There are numerous threads relating to AS 4.1 and starting every x mins .... Please try to search next time....
Anyway, the simplest way is to create a dummy server entry in AS (On the mobile device) then when creating it uncheck all the "MAIL / NOTES / ..." entries in the advanced section. Once the Server has been created you can modify the server sync to set it to never.
For more info have a look through this forum for other threads on AS 4.1.
sorry if that has been talked about alot before, I suspected it. But I did a search before and couldn't find related stuff on this site, plenty of firewall/VPN stuff found which I also had a problem with...
The Add Server Source hack has been widely referenced in the dell Axim WM5 forums. As I mentioned, it didn't work for me, my ROM is very recent, as the phone is new for two weeks. I couldn't find any entry in the device registry that suggests it will run at any schedule! Although I can see peak time settings...etc but none of the scheduling options in registry.
Am really wondering if this is a problem with the specific ROM.
Yeah, I aplogise, am I bad, didn't read all your post....
Have you got any other apps that try to update regularly like Weather plugins etc?
I can agree with humps on that.
I've got a new k-jam and tried to stop AS4.1 from syncing when not connected to pc, by creating a fake server then through options setting it to manual sync.
No luck however as it still comes up in the list of running programs whenever i check :evil:
fix for constantly syncing when USB-connected
Sorry in advance if this isn't the right place for this.
I was so mad about Activesync 4.5 re-syncing during two out of every five minutes when connected via USB that I implemented a workaround that might prove useful to others as well. The result is that you can click an icon on your desktop computer and instantly change whether your handheld willl connect to its partnership for syncing or as a guest for doing other work (or just charging). Most of my data syncs wirelessly with an Exchange server anyway, and MightySync and PocketController function independent of the ActiveSync partnership. Ah, the peace ;-)
Here are the steps:
1. Change HKLM\Software\Microsoft\Windows CE Services\GuestOnly to "1".
2. Export HKCU\Software\Microsoft\Windows CE Services\Partners\[your device's partnership key] to a .reg file with name like "partnership.reg".
3. Create a batch file or script to stop WCESMGR, import the .reg file (regedit /s = silent) and restart WCESMGR. Name it like "partnership.bat".
4. Make a copy of the .reg file, edit it to *delete* the reg info (place a minus sign inside the beginning bracket of each key/subkey name), and name it like "guest.reg".
5 Create a new batch file or script to stop WCESMGR, import the guest.reg file and restart WCESMGR. Name it like "guest.bat".
6. When you execute "guest.bat," your device's partnership is deleted, and with the "GuestOnly" key enabled and no partnership found, ActiveSync will connect it as a guest without asking. After you execute "partnership.bat," ActiveSync will be ready to recognize your device on connection and sync.
7. Now, create a batch file or script that allows you to choose which .bat to execute, so you have one thing to click to go back and forth between connection types.
As will be obvious, I'm not a programmer AT ALL. I use pskill to clobber WCESMGR, and CHOICE.EXE copied form Server 2003 to choose connection type. It could be done more elegantly...but it sure works.
Only caveat: Later changing of syncing settings might require re-export of .reg key and recreate/edit of.reg-delete file.
Hello,
I've developed an application on WM4 that associates with 802.11 access-points and also establishes GPRS connections. Connections created with my app work just fine on PocketPC 2002 (WM4). When I ported to PocketPC 2005 (WM5) the application still creates the 802.11 and GPRS connections without error but the device will not recognise the 802.11 connection and always wants to create a connection using GPRS when I open IE or attempt any other IP connection. The only way around this that I've found is to put the phone into flight mode, but since my software is supposed to run on phones, that is not an option since users probably want to recieve calls while they browse. I've seen threads related to this on user forums but so far the only solution I've seen is to disable the phone.
Everything works just fine when WZC creates the 802.11 connection which leads me to believe that there's some IOCTL out there that tells the device to use the 802.11 connection.
Does anyone know the true magic to get around this?
litewoheat said:
Hello,
I've developed an application on WM4 that associates with 802.11 access-points and also establishes GPRS connections. Connections created with my app work just fine on PocketPC 2002 (WM4). When I ported to PocketPC 2005 (WM5) the application still creates the 802.11 and GPRS connections without error but the device will not recognise the 802.11 connection and always wants to create a connection using GPRS when I open IE or attempt any other IP connection. The only way around this that I've found is to put the phone into flight mode, but since my software is supposed to run on phones, that is not an option since users probably want to recieve calls while they browse. I've seen threads related to this on user forums but so far the only solution I've seen is to disable the phone.
Everything works just fine when WZC creates the 802.11 connection which leads me to believe that there's some IOCTL out there that tells the device to use the 802.11 connection.
Does anyone know the true magic to get around this?
Click to expand...
Click to collapse
Have you disable WZC ? If you disable the WZC of device, the Connection Manager can not detect the WiFi card and it use GPRS connection. IE use the service of Connection Manager for detect if a device is connected or no to internet.
WZC
WZC is disabled. With it enabled I cannot control the 802.11 device with NDISUIO.
litewoheat said:
WZC is disabled. With it enabled I cannot control the 802.11 device with NDISUIO.
Click to expand...
Click to collapse
Yes and no.
You can query and set OID value of 802.11 also if NDISUIO is locked by WZC.
IOCTL_NDISUIO_QUERY_OID_VALUE accept NDISUIO_QUERY_OID struct that in WinCE is present the ptcDeviceName variable. Set it with name of device and you can query OID value also if NDISUIO is locket by WZC.
You can select the access point with WZC and prefered network. The functions is WZCQueryInterface and WZCSetInterface.
Ciao Massimo
Really can't use WZC
Thanks for the informative reply. We'd like to turn WZC off for other reasons, mainly the notifications it displays when a new access point is in range. In places where there's metro wifi or just a large concentration of wifi access the notifications are extreeeeemly annoying when they constantly pop up(thanks Microsoft).
Is there a way to disable Connection Manager entirely so that it doesn't get in the way?
litewoheat said:
Thanks for the informative reply. We'd like to turn WZC off for other reasons, mainly the notifications it displays when a new access point is in range. In places where there's metro wifi or just a large concentration of wifi access the notifications are extreeeeemly annoying when they constantly pop up(thanks Microsoft).
Is there a way to disable Connection Manager entirely so that it doesn't get in the way?
Click to expand...
Click to collapse
For notification,you can simply disable from panel control->sound & notification.
For disable Connecion Manager, you must kill the process connmgr.exe with a task manager. Without connecion manager, the wifi remains enabled also you syncronize the device with activesync. The collateral effect is that IE don't work. The Connection Manager is a wrapper between applications and socket. Without CM, the applications can not establish a connection also is the device is effectively connected to network.
You can also disable WZC with DeactivateDevice API.
if I can give a suggestion to you, don't disable WZC or Connection Manager... the negative effect is more of positive effect. Try to use my prev solution.
I am developing a advanced manager of wireless with thie solution posted and work very well. I can select a my prefered AP, retrive RSSI and search SSID without disable WZC a CM.
Ciao Massimo
I'll give it a try, but...
OK, I think you've convinced me. Can I programatically disable the notifications? I can't really expect our users to do that.
litewoheat said:
OK, I think you've convinced me. Can I programatically disable the notifications? I can't really expect our users to do that.
Click to expand...
Click to collapse
For disable notifications edit the registry:
HKCU\ControlPanel\Notifications\{DDBD3B44-80B0-4b24-9DC4-839FEA6E559E}
and set
Options = 0
Ciao Massimo
How to link in wzcsapi.lib?
So I guess I'm not smart enough to figure out how to link in the library wzcsapi.lib. I'm using VS2005. I have Platform Builder so I do indeed have the correct files. I don't get a cannot file file linker error but I do get linker errors for every WZC function in my app. I tried the wzctool sample with the same outcome.
From what I can tell the wzcsapi.lib does have the exports I need but I just can't get VS2005 to link.
Is there some magic to use the WZC functions?
If you use Platform Builder, add into your catalog platform "Wireless LAN (802.11) STA - Automatic Configuration and 802.1x". After sysgen, you found wzcsapi.lib into $(_PROJECTROOT)\cesysgen\oak\lib\$(_CPUINDPATH)\ folder.
No using PB
I'm not using Platform Builder. I'm using VC2005.
Is there a solution for this issue
Using a dll without the correct lib file.
First my guess at the problem, and then a couple of questions.
Library files are compiler specific. The one you're using is for Platform Builder. Platform Builder's compiler probably differs from the one in VS2005.
Another way to use wzcsapi.dll is to link to it at run time using LoadLibrary and GetProcAddress like so
Code:
INTFS_KEY_TABLE GuidTable;
PINTFS_KEY_TABLE pGuidTable;
pGuidTable = &GuidTable;
HMODULE hMod = LoadLibrary (_T("wzcsapi.dll"));
if (hMod==NULL) {
_stprintf(buff, , ErrorCode);
MessageBox(NULL, _T("Failed to load wzcsapi.dll"), _T("ERROR"), MB_OK);
return;
}
_WZCEnumInterfaces pfnWZCEnumInterfaces = (_WZCEnumInterfaces) GetProcAddress (hMod, _T("WZCEnumInterfaces"));
if (pfnWZCEnumInterfaces == NULL) {
MessageBox(NULL, _T("Failed find function"), _T("ERROR"), MB_OK);
return;
}
DWORD ErrorCode = pfnWZCEnumInterfaces(NULL, pGuidTable);
if (ErrorCode!= ERROR_SUCCESS )
{
ErrorCode=GetLastError();
_stprintf(buff, _T("WZCEnumInterfaces Failed--error code %d"), ErrorCode);
MessageBox(NULL, buff, _T("ERROR"), MB_OK);
return;
}
Now for the question part .
How does a miniport driver originally tell the connection manager to consider using the miniport when making and IP connection?
Also, I'd like to be able to request 802.11 scans and set OID_802_11_BSSID to force association with a particular access point. Is this best done using CreateFile/DeviceIoControl or using the WZC funtions? I'll guess using DeviceIoControl, since it doesn't look possible using WZC functions? Can I do this with connection manager running? Anyone have sample code for getting/setting one of the OID_802_11 oid's?
Thanks,
SetoK
Thanks
SetoK
Just installed Sygate firewall and now I can't synch. It synchs fine if I disable sygate. I get connected but not actually synching, the icon either keeps spinning or doesnt do anything. Sometimes the synch button is pressable but nothing happens. Never had a problem synching with comodo firewall before I uninstalled that. Others who had this problem fixed their smartphone registry like this:
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RND IS]
Name of value to add: MTU
Type: DWORD
Data: 1514 (decimal)
Reg Sub Key: [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RND IS]
Name of Value to add: MaxOutTransfer
Type: DWORD
Data: 1642 (decimal)
Can I do this for the MDA Compact 3 and what phone reg editor to use?
I tried the microsoft fix by adding advanced rules to sygate, but that didn't work.
Had the same problem.You need to allow traffic over certain ports and allow Active Sync act as a server.If I remember corectly,I checked the log of what traffic was blocked during sync and told Sygate to allow it.
Ah well, who needs the hassle. I've uninstalled sygate and installed PC Tools firewall plus. No problem synching.
This thread is not development and it's not hacking. It's networking. Moving thread to the general networking forum.
In windows, I can enter "netstat -b" to get a list of all applications which are connecting to the network. Is there such a utility for WM 6.1? I would like to know which applications running in the background are connecting to the Internet on my Kaiser. I found the equivalent to ping and ipconfig /all, but I would also like to have netstat available.
fdcSoft TaskManager has netstat GUI, however TCP connections are not displayed on any of the devices I tried. UDP connections are showing Ok.
Hello,
I've a small issue with my GPRS connection...
My X1 keeps on connecting to the internet automaticly... thier is no specific timing patterns or anything like that... and it has become a problem since it costs...
My settings
-----------------------------------
ActiveSync is disabled
WLAN is disabled
Microsoft Direct Push is disabled
-----------------------------------
13 processes running
-----------------------------------
s2u2.exe
iLock.exe
Biotouch.exe
cprog.exe
panelManager.exe
connmgr.exe
shell32.exe
gwes.exe
device.exe
filesys.exe
NK.exe
CommManager.exe
services.exe
-----------------------------------
any clue?
My guess: Windows Live.
It keeps auto connecting.
Or Handago store, or maybe GPS...
forgot to add that QuickGPS is also disabled..
but I never login on msn... and its off :S
turn off your HSPDA
If you do not need any internet connections, just delete the internet profiles of your provider. I've done so, because I don't need it and my provider gets paid by minutes, not by traffic... not so good, if your mobile dials in over night (for what reason ever).
Greetings
Action_Heinz said:
If you do not need any internet connections, just delete the internet profiles of your provider. I've done so, because I don't need it and my provider gets paid by minutes, not by traffic... not so good, if your mobile dials in over night (for what reason ever).
Greetings
Click to expand...
Click to collapse
Or use the program NoData
http://www.modaco.com/content/pocket-pc-software/246171/new-free-utility-nodata/
fring also auto force connect
Well but anyway the device should NOT connect by itself...
Maybe Fring indeed??