Raspberry Pi Zero 2 W USB OTG Connection

How To Fix Windows 10 RaspberryPi USB OTG Ethernet/Gadget

 Posted by: Albert Fit on 11/01/2024


  1. Introduction
    • Overview of the problem: Raspberry Pi Zero 2 identification as a USB Serial Device.
    • The need to install the RNDIS driver for the USB device.
    • Link to the driver on GitHub.
  2. Hardware Connection
    • Instructions for physically connecting the Raspberry Pi Zero 2 to the computer.
    • Plugging the USB into the appropriate connector near the HDMI port.
  3. Identifying the Device
    • Steps to open Device Manager on Windows 10.
    • Identifying the Raspberry Pi Zero 2 in the Ports (COM & LPT) section.
    • Troubleshooting tips if the device is not visible in Device Manager.
  4. Driver Installation
    • Instructions on updating the driver for the USB Serial Device.
    • Selecting the unzipped folder containing the downloaded driver.
    • The device now appearing as a USB Ethernet/RNDIS Gadget.
  5. Testing the Connection
    • Verifying the functionality of the fixed connection.
    • Navigating to Network & Internet Settings to check the Ethernet connection.
    • Confirming the presence of the USB Ethernet/RNDIS Gadget in the description.
  6. Conclusion
    • Congratulations on resolving the connection issues.
    • Encouragement to proceed with SSH or VNC using preferred clients.


In this comprehensive guide, we'll tackle the common USB OTG connection issues when using the Raspberry Pi Zero 2 with Windows 10.

The problem is that when you connect the Raspberry Pi Zero 2 W, it first gets identified as a USB Serial Device on a COM port.

Thankfully, we can overcome this by installing the RNDIS driver for the USB device.

I have uploaded the specific driver on my GitHub page, and you can find it here:


Connect the Raspberry Pi with USB OTG

As in the image above, you can connect the Raspberry Pi by plugging the USB into the connector closest to the HDMI port.

Open up Device Manager and Find the USB Serial Device

Once connected, the Raspberry Pi green light will be on, and you should see the device in your device manager's Ports (COM & LPT) section.

To open the device manager, press the windows symbol on your keyboard and type Device Manager. Click on the first result.

Note: If you do not see the Raspberry Pi in the Ports section, try checking the following:

  • There is a valid installation on the SD card, and it is inserted properly.
  • You have added modules-load=dwc2,g_ether after rootwait in cmdline.txt (found in bootfs or boot on the SD card)
  • Added dtoverlay=dwc2 at the end of the config.txt file (found in bootfs or boot on the SD card)
  • And finally, make sure your cable is of good quality and transfers data (some only charge).

Updating the horndis Driver for USB OTG

To update the driver, right-click on the USB Serial Device and click on Update Driver.

You can just select the folder you have unzipped when downloading the driver.

Once the update is complete, the device will show as a USB Ethernet/RNDIS Gadget.

USB OTG Driver Installed

Testing the USB OTG connection

You can check it works as it should by navigating to Network & Internet Settings and clicking on the new Ethernet connection.

You should see the USB Ethernet/RNDIS Gadget in the description.


Congratulations! You can now go ahead and try to SSH or VNC with your favourite clients.

If you would like to purchase a Raspberry Pi Zero 2 W, here are some affiliate links:

Raspberry Pi Zero 2 W on amazon.co.uk


This post was largely inspired by MatsK.

About The Author
Hi, I'm Albert, a lead developer and principal surveyor at The Scan Station. I work with drones, laser scanning and photogrammetry. You will often find me developing web applications to display geomatics data. I am also passionate about machine learning and data science.