Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / August 2007

Tip: Looking for answers? Try searching our database.

WiFi disabled when PDA is connected to PC?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Hearn - 30 Aug 2007 12:20 GMT
I'm trying to develop a WM5 PDA application (using .NET CF2 and
OpenNETCF 2.1) which makes use of WiFi, however I've noticed that a lot
of the time, when the PDA is cradled and connected to the PC (Vista
using WMDC) the WiFi gets disabled.  I fetch the list of current network
adaptors and I only get "USB Cable:" as the name.  When I undock the PDA
I then get "SWLD23N1", which is a WiFi adaptor.

Sometimes this doesn't happen, occasionally I can cradle the PDA and
still get the WiFi adaptor - but the usual thing is that once cradled
the WiFi gets disabled.  This happens both on a HP iPAW hx2490b running
WM5 and a MDA Vario (HTC Wizard) running WM6.

The particular problem is that I'm unable to use the Visual Studio 2005
debugger to investigate any problems when I'm using the WiFi as I need
to be docked to debug, but docking pulls down the WiFi connection.

Any advice?

Thanks

David
ink - 30 Aug 2007 12:41 GMT
Hi dave
Debugging on CE5.0 device without Activesync
This information ONLY applies to the Visual Studio 2005.

Without the help of ActiveSync, VS 2005 does not automatically copy the
connectivity binaries down to the device and hence debugging becomes
problematic.

In order to use debugger on Windows CE 5.0 devices without active sync, you
need to:

Step 1:
Manually copy the following files down to the device.

Clientshutdown.exe

ConmanClient2.exe

CMaccept.exe

eDbgTL.dll

TcpConnectionA.dll

Files are located in the "C: \Program Files\Common Files\Microsoft
Shared\CoreCon\1.0\Target\wce400\<CPU>" (I used arm4i), to a folder on the
device, I sugest createing a new folder in "\windows\VS2005_Debug".

Step 2:
Set the correct IP address in Visual Studio 2005.

Open VS 2005

Tools >> Options >> Device Tools >> Devices

Choose Windows CE 5.0 device, click on "properties".

On the "Windows CE 5.0 device properties" dialog, click on "Configure".

On the "Configure TCP/IP" Transport dialog, choose "Use Specific IP Address"
and type in the IP address of your Windows CE 5.0 device.

Click OK.

Step 3:
Manually launch the conmanclient2.exe

Browse to the conmanclient2.exe on the device and run it. You may also use
the command prompt if you have one.

Step 4:
Enable the connection by running cMaccept.exe

Browse to the cMaccept.exe on the device and run it. You may also use the
command prompt if you have one.

Connect to the device (i.e. start debugging you application) within 3
minutes after you run cMaccept.exe. (The 3 minutes window is for the first
connection. As long as you establish the first connection within 3 minutes,
the following deployment/debugging sessions using the same VS instance is
not limited by this 3 minutes window)

You need to perform Step 4 again when you try to connect from another
instance of VS2005. (You can skip this step if the security is already
disabled on the CE device by setting "HKLM\CoreConOverrideSecurity = 1". But
disabling security may expose your device to malicious attack)

Hope this helps.

ink

> I'm trying to develop a WM5 PDA application (using .NET CF2 and OpenNETCF
> 2.1) which makes use of WiFi, however I've noticed that a lot of the time,
[quoted text clipped - 17 lines]
>
> David
David Hearn - 31 Aug 2007 11:35 GMT
Thanks for the advice - I'll give that a go.

D
Paul G. Tobey [eMVP] - 30 Aug 2007 16:15 GMT
Yep, ActiveSync turns off other network connections, I think, to avoid
accidentally bridging from your local computer which trusts the ActiveSync
connection, to, say, the Starbucks across the street.   Supposedly, WM6 has
a registry entry that you can set that will tell AS to allow the other
network connection to persist, but WM5 should always be dropping it.

As ink indicated, debug over the network, not via ActiveSync, to debug
programs that are doing something with WiFi directly.

Paul T.

> I'm trying to develop a WM5 PDA application (using .NET CF2 and OpenNETCF
> 2.1) which makes use of WiFi, however I've noticed that a lot of the time,
[quoted text clipped - 17 lines]
>
> David
David Hearn - 31 Aug 2007 11:36 GMT
> Yep, ActiveSync turns off other network connections, I think, to avoid
> accidentally bridging from your local computer which trusts the ActiveSync
[quoted text clipped - 6 lines]
>
> Paul T.

Ahh, that explains why then.  Hadn't considered that.  I'll give ink's
advice a go.

D

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.