|
From: lucky g. <lg...@ya...> - 2008-06-28 11:54:04
|
Hi Dave, Actually the driver gets loaded without error. But it seems that some other application(maybe the Windows Mobile connection manager) disables the TAP driver. I have found some related information in a windows mobile blog(http://blogs.msdn.com/wmshell/archive/2006/05/19/602219.aspx) that says "ActiveSync uses RNDIS, which is configured as an "exclusive connection" - Connection Manager will shut down all other connections that are active when you connect to the desktop. GPRS simply gets disconnected, but the WiFi adapter is completely unbound, which is equivalent to pulling out the network card. Once the device disconnects from the desktop, the wifi adapter rebinds and shows up in settings and wireless manager again. This behavior prevents devices from being multi-homed (connected to multiple networks at the same time). When you connect to ActiveSync, you can use desktop pass-through (DTPT) to access the corporate network but connection manager will not allow a connection to the Internet to stay active at the same time as DTPT." Since I am also using ActiveSync DTPT to access the VPN Server running on another machine in LAN from the WM emulator, the windows connection manager might be disabling the TAP adapter. Since this problem seems to be due to the use of RNDIS as an exclusive connection by ActiveSync, can you suggest any workaround for making this RNDIS connection non-exclusive OR any other method to make both RNDIS and TAP coexist. Thanks and Regards, LG --- On Fri, 6/27/08, Dave <de...@zi...> wrote: From: Dave <de...@zi...> Subject: RE: [Openvpn-users] Issue with OpenVPN Client on Windows Mobile 5.0 and6.0 To: lg...@ya... Cc: ope...@li... Date: Friday, June 27, 2008, 8:46 AM Message Ah, OK. You're wanting to use the TAP to prototype a different system. Well, too bad about the emulator requirement because I just don't have any experience to relate. I used the WM2003 emulator briefly, and really for UI testing and not even for the driver. The emulator used in WM5 and WM6 is architecturally different than the one for WM2003, so maybe that is part of it. Im using eVC4 to build, so I don't have the WM5 emulator. You should know WM5 and 6 are much more locked down as well, particularly for smartphone. I get away with that by signing the code and loading it dynamically later (it won't be automatically loaded upon system start). Even this won't work with some devices, particularly smartphones, because there you will need to sign with the quite expensive 'privileged certificate' key. Since you are programming, in might be interesting to know if there is any informative error code when you try to load the driver? the driver loading is done in taputil.c, btw. -Dave -----Original Message----- From: lucky goyal [mailto:lg...@ya...] Sent: Thursday, June 26, 2008 12:11 AM To: Dave Cc: ope...@li... Subject: RE: [Openvpn-users] Issue with OpenVPN Client on Windows Mobile 5.0 and6.0 Hi Dave, Thanks for your reply. The reason for testing on Emulator is that I am trying to implement a prototype VPN program. I have taken OpenVPN TAP driver as reference. Both the VPN application and UI are different from OpenVPN. I could successfully test my prototype VPN on PocketPC 2003 and Smartphone 2003. But when I tested it on WM 5.0 and 6.0(both PocketPC and SmartPhone) I faced this problem. Since I have taken OpenVPN TAP driver as reference and the problem seemed to be with driver, I tried to test the OpenVPN on WM 5.0 and 6.0 to find out if the problem exists for OpenVPN also. And the problem indeed exist for OpenVPN also. I have not tested it with any device as my requirement for now is to make my prototype running on WM5.0/6.0 emulator. Thanks and Regards, Lucky Goyal --- On Thu, 6/26/08, Dave <de...@zi...> wrote: From: Dave <de...@zi...> Subject: RE: [Openvpn-users] Issue with OpenVPN Client on Windows Mobile 5.0 and6.0 To: lg...@ya..., ope...@li... Date: Thursday, June 26, 2008, 8:38 AM ... > I am facing a problem with OpenVPN Client running on Windows Mobile 5.0 and 6.0 Emulator. ... > Also on one of the forums I found a workaround for making both TAP interface(used by OpenVPN) and Serial Over DMA interface(used by ActiveSync) exist simulatneously. This workaround was to kill the "ConnectionManager.exe"(The default windows One) and it worked. But this is just a workaround. Could you please help me find a solution for this problem. ... > Another important thing to note here is that this setup works perfectly fine with PocketPC 2003 Emulator without needing any workarounds. Any help on this issue is highly appreciated. ... Wish I could give more useful news but I rarely run the emulator versions even for testing. The architecture of the emulator changed radically with version 5 (I think using virtual pc but cant recall). I am curious though: why are you needing to run in the emulator? Personally, I find physical devices a much better test, an invariably on CE most of the testing work is compatibility with wahtever OEM network driver is installed. Now, if you're wanting to prototype alternative UI, that's a different story.... -Dave |