Re: Debugging C# apps that use USB and Dial-up internet via Ethernet
- From: "Michel Verhagen (eMVP)" <michel@xxxxxxxxxx>
- Date: Thu, 10 Apr 2008 03:17:27 +1200
The IPHelper functions should be able to help you out. What you want is change the route or the metric (look at SetIpForwardEntry, SetIfEntry, etc).
Good luck,
Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog
GuruCE
http://GuruCE.com
Consultancy, training and development services.
William Powell wrote:
WinCE Experts,.
We are developing a WinCE 6.0 headless device (based on the Atmel 9260 and Adeneo BSP) that uses the USB function port as a virtual com port to a PC (customer requirement): two hardware modules that provide dial-up internet connections (GPRS and satellite); one Wifi module (with a provided Ethernet driver) for communication to a remote server ;and an ethernet port to support development only.
We currently have included the CoreCon components and the Autolauncher in the build and can successfully create a flash based image that boots and is ready for C# application debugging. We also autolaunch the cerhost tool to allow the debug host to run the cerdisp tool to view a display on the device (for development purposes)
Problem:
With the ethernet connection running to support debugging, we cannot seem to get the dialup networking to recognize the dialup port as the preferred networking transport. Test case 1:
To test, we've isolated the ethernet connection to the host by selecting a static IP address and connected only the debug host PC and the target system on a network (no DHCP, no access to the internet, no DNS). [We've also tried this using a router not connected to the internet with just the host and target on the router network and DHCP assigned IP addresses]
We starteup the OS image with a shell and created dialup entries for the modem in the registry. When we initiate the dialup connection via the control panel networking application, the modem connects (GPRS data connection to the internet). We then try to ping a known site (google): the device resolves the name and gets the IP, but then I see an error message (transmit failed, error code 11010). The device is able to ping itself properly but is unable to send/receive any data.
Test case 2:
We wrote a test program that programmatically starts the dialup connection (using OpenNETCF calls) and transfers data over the connection. This program is downloaded via ethernet (run without debugging) from Visual Studio 2005, we disconnect the ethernet cable (there is a pause in the program to give us time to do this), and the program then executes, successfully starts the dialup networking connection, and successfully transfers data over the dialup connection. So, it appears if the ethernet connection is "not available" (but driver still installed), WinCE select the other (dialup) networking connection and works.
Question:
Is there a way to setup to use ethernet debugging to debug an application that uses dialup networking such that the debugging packets are routed to the ethernet port but other packets use the dialup networking connection.
Any help would greatly improve our ability to debug the program...
Bill Powell
- Follow-Ups:
- Re: Debugging C# apps that use USB and Dial-up internet via Ethernet
- From: Chris Tacke, eMVP
- Re: Debugging C# apps that use USB and Dial-up internet via Ethernet
- References:
- Debugging C# apps that use USB and Dial-up internet via Ethernet
- From: William Powell
- Debugging C# apps that use USB and Dial-up internet via Ethernet
- Prev by Date: Re: windows CE mass storage devices
- Next by Date: Re: Debugging C# apps that use USB and Dial-up internet via Ethernet
- Previous by thread: Debugging C# apps that use USB and Dial-up internet via Ethernet
- Next by thread: Re: Debugging C# apps that use USB and Dial-up internet via Ethernet
- Index(es):
Relevant Pages
|