Connect a USBDBG RNDIS Device (Compact 2013)
10/16/2014
If your OEM provided a platform-specific device driver (PDD) for your Windows Embedded Compact powered device, you, a Windows Embedded Compact 2013 developer, can use this procedure to connect your Windows Embedded Compact powered device to Platform Builder so you can download images and debug software over an emulated Ethernet port.
You can configure your device for an emulated Ethernet connection with either a static or dynamic IP address. You cannot connect to the network from your Windows Embedded Compact powered device when using a static IP. Use a dynamic IP if you need to connect to the intranet, Internet, or attached network drives from the Windows Embedded Compact powered device.
After you have connected your Windows Embedded Compact powered device to your computer with a USB cable and configured its IP address, you can connect Platform Builder to your device.
To install the desktop drivers
Connect the USB cable to your Windows Embedded Compact powered device and turn it on. When the Found New Hardware Wizard opens, choose one of the following .inf files:
OS
Path
Windows XP
%_WINCEROOT%\platform\common\src\common\kitldrv\usbdbg\usbdbgrndismdd\host\xp\wceusbdbgrndis.inf
Windows Vista or Windows 7.
%_WINCEROOT%\platform\common\src\common\kitldrv\usbdbg\usbdbgrndismdd\host\Vista\wceusbdbgrndis.inf
When the driver installation completes, you may have to reboot your computer to complete the installation.
To configure your device with a static IP
After the device is connected to the computer, on the computer, in Control Panel, click Network and Internet, then click Network and Sharing Center, and then Change adapter settings.
Right-click the new Local Area Connection, and click Properties. If you already have a local area connection with the default name of "Local Area Connection," the new one is named "Local Area Connection (2)."
In the Local Area Connection Properties dialog box, in the This connection uses the following items box, select Internet Protocol Version 4 (TCP/IPv4), and then click Properties.
In the Internet Protocol Version 4 (TCP/IPv4) Properties dialog box, on the General tab, do the following:
- Select Use the following IP address, and then in IP address, set the IP address to one of the following:
- If the device has its own fixed address, use that address.
- Otherwise, set the IP address to a number that does not conflict with another device, for example an address in the range 169.254.x.x.
- In Subnet mask, set the subnet mask to 255.255.0.0.
- Click OK.
- Select Use the following IP address, and then in IP address, set the IP address to one of the following:
If the OS on your computer is Windows Vista or Windows 7, in the Local Area Connection Properties dialog box, in the This connection uses the following items disable Internet Protocol 6 (TCP/IPv6), Link-Layer Topology Discovery Mapper I/O Driver, and Link-Layer Topology Discovery Responder.
Click OK to close the Local Area Connection Properties dialog box.
You can now configure Platform Builder to connect to your device.
To configure your device with a dynamic IP
After the device is connected, in Control Panel, click Network and Internet, then click Network and Sharing Center, and then click Change adapter settings.
Right-click the new Local Area Connection and click Properties. If you already have a local area connection with the default name of "Local Area Connection," the new one is named "Local Area Connection (2)."
In the This connection uses the following items box, select Internet Protocol Version 4 (TCP/IPv4), and then click Properties.
In the Internet Protocol Version 4 (TCP/IPv4) Properties dialog box, select Obtain IP address automatically, and then click OK.
In the Local Area Connection Properties dialog box, on the Sharing tab, select the Allow other network users to connect through this computer’s Internet connection check box, and then click OK.
You can now configure Platform Builder to connect to your device.
To configure Platform Builder to connect to your device
In Visual Studio, on the Target menu, click Connectivity Options.
In the Target Device Connectivity Options dialog box, do the following:
- Under Device Configuration, select Add Device, specify a New target device name, and then click Add.
- Under Service Configuration, select Ethernet for both the Kernel Download and Kernel Transport options.
- Click the Settings button next to Kernel Download.
Turn your device on, and, in the Ethernet Download Settings dialog box, do the following:
- Wait for your device to appear in the Active target devices list.
- Select the device in the Active target devices list and click Apply.
In the Target Device Connectivity Options dialog box, click Close.
You can now download images to your device and debug your device over the emulated Ethernet port.
See Also
Concepts
USBDBG Communication Algorithm