0% found this document useful (0 votes)
194 views16 pages

Raspberry Pi OTG

Raspberry Pi OTG

Uploaded by

Eduardo Mendoza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
194 views16 pages

Raspberry Pi OTG

Raspberry Pi OTG

Uploaded by

Eduardo Mendoza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

  
0

(https://www.factoryforward.com/)

Home (https://www.factoryforward.com) / 
NewsFeed (https://www.factoryforward.com/category/newsfeed/), Raspberry Pi (https://www.factoryforward.com/category/raspberry-pi/) / 
Raspberry Pi Zero W Headless setup – Windows 10 RNDIS Driver issue resolved

19 Raspberry Pi Zero W Headless setup – Windows 10 RNDIS


Jan
Driver issue resolved
 By Sharath (https://www.factoryforward.com/author/sarathkumar341/)
 NewsFeed (https://www.factoryforward.com/category/newsfeed/), Raspberry Pi
(https://www.factoryforward.com/category/raspberry-pi/)
 boards (https://www.factoryforward.com/tag/boards/), Raspberry Pi (https://www.factoryforward.com/tag/raspberry-pi/), tutorials
(https://www.factoryforward.com/tag/tutorials/)
 16 Comments (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/#comments)

Setting up a headless setup for Pi Zero W is simple. The limitation of Pi Zero and Zero W is that it doesn’t have an
Ethernet port. All we have is a single USB port. We need to use it as an Ethernet via USB technique to access the Pi. There
are many tutorials available for this. But if you are using Windows 10 you might be faced the problem with RNDIS driver.
The RNDIS (https://en.wikipedia.org/wiki/RNDIS) driver will install automatically on all operating systems but not
in Windows 10. In Windows10 the Pi Zero W detects as a Serial USB Device instead of RNDIS Device. RNDIS is an
Ethernet via USB driver which enables virtual Ethernet connection link between the Pi and your Laptop. I tried

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 1/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

downloading the drivers and installed but most drivers didn’t work. Then nally I found a driver link in a forum and I tried
installing it manually and it’s worked. So I’m going to explain the complete steps for this headless setup along with driver
installation. If you are facing issue only at the driver installation part you can directly continue with step 9.

Hardware Required:

Raspberry Pi Zero W (https://www.factoryforward.com/product/raspberry-pi-zero-w/)


USB Cable (https://www.factoryforward.com/product-category/mainboards/raspberrypi/)
16GB MicroSD card (https://www.factoryforward.com/product-category/mainboards/raspberrypi/)

Software Required for Headless setup:

SD Card Formatter Software (https://www.sdcard.org/downloads/formatter_4/)


Win32 Disk Imager Software (https://sourceforge.net/projects/win32diskimager/)
VNC Viewer (https://www.realvnc.com/en/connect/download/viewer/chrome/)
Putty Software (http://www.putty.org/)
Sublime Text (https://www.sublimetext.com/) or Notepad++  (https://notepad-plus-plus.org/)
Raspbian OS (Raspbian Stretch (https://downloads.raspberrypi.org/raspbian_latest))
RNDIS Driver (http://web1.moddevices.com/shared/mod-duo-rndis.zip) from MOD (http://moddevices.com/)
(Musical Operating Devices). They are using this driver on their musical devices and it works with Raspberry Pi also.
Click here to download (http://web1.moddevices.com/shared/mod-duo-rndis.zip) the driver. Also, check this forum
(https://forum.moddevices.com/t/rndis-driver-for-windows-10/299) for more details.

Optional Software:


Advanced IP Scanner (https://www.advanced-ip-scanner.com/) – To nd your Pi’s IP. How to use it? Click Here
(https://www.factoryforward.com/raspberry-pi-headless-wi -setup/).

Buy Raspberry Pi Zero W (https://www.factoryforward.com/product/raspberry-pi-zero-w/)

The Pi Zero W has in-built Wi-Fi, so you can use the headless Wi-Fi Setup too. Check out the Headless Wi-Fi setup tutorial
(https://www.factoryforward.com/raspberry-pi-headless-wi -setup/) here.

Step 1: Format the SD card with SD card formatter. (https://www.sdcard.org/downloads/formatter_4/)

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 2/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

Step 2: After formatting open Win32 Disk Imager (https://sourceforge.net/projects/win32diskimager/) (or Etcher
(https://etcher.io/)), locate the downloaded Raspbian image le and ash it to the SD Card.

Note: NOOBs will not work with this set up (NOOBs is Just an OS installer). So, we need Raspbian. The Current version is
Raspbian Stretch (https://downloads.raspberrypi.org/raspbian_latest). A Raspbian OS is an image le with the ‘.img’
extension (It also comes with ‘.zip’ le you have to extract it before ashing).

Step 3: Once ashing done. Navigate to the SD Card folder. You can able to see the les extracted from the image.

Step 4: Now open ‘cmdline.txt’ le and add this at the end of the le. (Make sure it is at the end of the le not in newline).

modules-load=dwc2,g_ether

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 3/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

Step 5: Now we need to modify the ‘con g.txt’ le. So open the ‘con g.txt’ le in text editor. Then add the following line
anywhere in the le (will be in a newline).

dtoverlay=dwc2

Now save this le and close it.

Step 6: SSH is disabled default in new Raspbian OS. You can enable it by simply create an empty le and name it as ssh
without any extension. Make sure the le name extensions option is selected in windows view settings.

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 4/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

Step 7: Eject the microSD card from the computer and place it in the Raspberry Pi. Then connect the PC and Raspberry Pi
via USB cable. You don’t need external power as the Pi zero W USB pin provides power as well as data transfer. Wait until
the pi boots up completely. It might take up to 90 Seconds.

Step 8: If the RNDIS driver installs automatically then jump to Step 10 for SSH using Putty (http://www.putty.org/). If it
installs as a USB Serial Device then continue the following steps. You can check this in Device Manager. In Windows 10
the RNDIS Driver installs as a USB Serial Device at COM Port. So we need to install drivers to manually enable Ethernet
over USB.

Click here to download (http://web1.moddevices.com/shared/mod-duo-rndis.zip) the RNDIS Driver which I got


from this forum (https://forum.moddevices.com/t/rndis-driver-for-windows-10/299). Extract the downloaded zip
les.

 Step 9: Open Device Manager and you can see the Pi is detected as USB Serial Device at COM port under the PORTS &
LPT. Right click on it and select “Update Driver Software”.

Select ‘Browse my computer for driver software’.

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 5/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

Choose the location where you extracted the driver les on your PC.

Select the Extracted driver folder which is mod-duo-rndis. Click ok and click Next. This will install the driver.

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 6/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

Now you can able to see the Pi Zero W as RNDIS in Network adapters.

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 7/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

Step 10: Make sure you have installed Bonjour Service (https://support.apple.com/kb/DL999?locale=en_US) (Apple Inc.)
on your PC. It is a service to discover the Shared resources on the network and web servers. If you have iTunes installed
on your PC, then it had been already installed. If Bonjour is not installed then the Hostname will not be mapped with IP.
So you are not able to use Hostname (eg: raspberripi.local) in Putty (You can use direct IP of Pi. But nding the IP will be
complex for headless setup).

 Open Putty and enter the Host Name as ‘raspberrypi.local’ and port as 22. Click open, this will open a terminal window
asking for username and password.

Step 11: Enter the default username as ‘pi’ and default password as ‘raspberry’.

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 8/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

Step 12: Now type vncserver in the terminal window. This will run the virtual server on the raspberry pi.

Step 13: Now go to Google Chrome and open VNC Viewer App (You need to install from google apps store or visit
website).

Step 14: Enter the Hostname as ‘raspberrypi.local:1’(Hostname or IP address of Pi with :1 at the end.)

Step 15: Now enter the Pi username and password. The default username is ‘pi’. The default password is ‘raspberry’.

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 9/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

Step 16: Congrats! You can access the raspberry pi with your laptop screen and keyboard now.

Other Headless Setup tutorials:

How to Connect Raspberry Pi with Laptop – Headless Setup Ethernet (https://www.factoryforward.com/connect-


raspberry-pi-laptop-display/)

Connect Raspberry Pi with Mobile Screen | Android | VNC Viewer (https://www.factoryforward.com/raspberry-pi-


android-mobile-screen/)

 Share this post     

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 10/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

 Author

Sharath (https://www.factoryforward.com/author/sarathkumar341/)

 Comments (16)

Simon Walters
A couple of points
You seem to have missed o installing Bonjour for Windows. Unless you do that, its unlikely that your Windows
PC will know what IP address maps to raspberrypi.local

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=129#respond)
Also, I’d personally recommend using sudo rasp-con g to enable vnc server and rebooting the Pi rather than running vncserver
manually as you’ll only have to do that once
PS Much better to point to an o cial source of drivers than copy and host them yourself. People will feel safer that way

 January 23, 2018 at 5:56 PM

Sharath
Thanks for informing Simon,
I have updated about Bonjour service. And regarding the drivers, it is hosted on that MOD website only (They
are using this driver for their musical devices). I have just added the direct download link.

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=130#respond)
January 24, 2018 at 12:10 PM

savageriver
Thank you for your solution
After searching old forum and website about Raspberry Pi Zero W ( USB Device (COM3 – COM4 or COM5)
then I found your website.

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=283#respond)
Treid and veri ed : It is working with the last raspbian stretch version 2018-03
Thanks again

April 20, 2018 at 1:30 AM

Sharath
Great! Help someone in need who was searching for it.

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 11/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-
resolved/?replytocom=389#respond)
May 11, 2018 at 5:24 PM

Thomas Frieho
Thank you very much! Your driver helped and was exactly what I was searching for.

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=298#respond)
April 23, 2018 at 1:41 AM

Sharath
Nice! You are welcome.


 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=388#respond)
May 11, 2018 at 5:23 PM

brian
Day three after formatting a working zero so i could record a fail-safe way of reaching a headless state.
I know when I rst tried it that I couldn’t get it to work, there is only so many times you can check your ssh le or
wpa.conf. I ended up plugging in a Usb cable and assigning it an IP address.(if only I could remember how)

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=409#respond)
Yesterday i watched over 30 YouTube tutorials “Pi zero headless” and none worked for me, no matter how many versions of
raspian, how many versions of image writers, how many versions le editors.
Today I found your post, yours is di erent than all the tutorials i did yesterday in the cmd.txt le, all the others had modules-
load=dwc2,g_ether after “rootwait” and not at the end. Could this be my problem?
Bonjour is in, RNDIS driver is in, the pi shows up as unidenti ed network and is unreachable with putty or Advanced IP Scanner.
netstat -n netstat -a netstat -b don’t show it but it can’t be far away. 😉

May 15, 2018 at 4:13 PM

Sharath
It doesn’t matter before or after rootwait. But one thing you need to care about is the space (Also Enter key or
\n characters). Because, the program gets parsed one by one (each text is get parsed). So the enter (newline
\n) will be parsed incorrect and won’t add the next text. So you need to be care ful on the space and newline.
That’s y in the image I mentioned everything in single line (sublime text shows the line number. See the image).
One more error will be the empty SSH File (It will get deleted every time you boot. It can be enabled permanently after you

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 12/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=434#respond)
access the pi in pi con g settings).
If you want to backup your working Pi SD Card (Backup existing os settings) Check this tutorial –
https://www.factoryforward.com/clone-raspberry-pi-sd-card/ (https://www.factoryforward.com/clone-raspberry-pi-sd-card/)

May 16, 2018 at 7:21 PM

Peter Schlemowitz (http://peterschlemowitz.wordpress.com)


For some unfathomable reason I could not get ssh to work independently, this was an extremely simpler solution.

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=974#respond)
July 6, 2018 at 12:38 AM

Sharath
Awesome!
Cheers! 😉

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
 replytocom=1127#respond)
August 23, 2018 at 12:01 PM

Wesley (https://mertarauh.com)
The driver xed the problems I had. Awesome. Many thanks!

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=1122#respond)
August 23, 2018 at 2:46 AM

Sharath
You are always welcome Wesley 🙂 Thumbs Up!

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=1126#respond)
August 23, 2018 at 11:59 AM

Vincent

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 13/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

Very useful! In particular step 8 and 9 provided me the solution I was looking for (I’m using windows 10). I
searched a long time on the net before nding this.
Thanks again.

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=1309#respond)
October 13, 2018 at 6:34 PM

Lester Louch
very interesting points you have remarked, appreciate it for putting up.

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=1882#respond)
December 20, 2018 at 4:11 AM

rob
keeps saying connection timed out but it showing up on my devices. Its connected and stu just cant ssh into can
someone help me please? I put a new image on it
my email is [email protected] (mailto:[email protected])


 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=1965#respond)
December 29, 2018 at 10:19 AM

Sharath (https://www.factoryforward.com/author/sarathkumar341/)
Check whether the Bonjour service is installed on your PC or not. If not you can’t use the ‘raspberrypi.local’
method.
Alternatively, You need to nd exact ip and use it.

 Reply (https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/?
replytocom=1998#respond)
January 1, 2019 at 1:06 PM

Leave a Reply

Your email address will not be published. Required elds are marked *

Comment

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 14/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

Name *

Email *

Website

Post Comment

RELATED POSTS

(https://www.factoryforward.com/gettin (https://www.factoryforward.com/powe (https://www.factoryforward.com/raspb


started-raspberry-pi-gpio- up-microbit-start-coding/) pi-android-mobile-screen/)
programming-using-python/)

Powering up the
23 18
Connect Raspberry Pi
04
Getting Started with Microbit and Start with Mobile Screen |
Dec Apr
Raspberry Pi GPIO Coding Android | VNC Viewer
Jul
Programming using
com/clone- (https://www.factoryforward.com/powering-
(https://www.factoryforward.co(
Python up-microbit-start-coding/) pi-android-mobile-screen/) t
(https://www.factoryforward.com/getting-
In this topic, we will see how to power Android Apps makes our task easier. It m
started-raspberry-pi-gpio- up the microbit and start coding makes the IoT more simple and T

Get in Touch!
https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 15/16
30/1/2019 Raspberry Pi Zero W Headless setup - Windows 10 RNDIS Driver issue resolved - FactoryForward

Contact Us

 Address:
Shop No.8 Chandra Complex , Nethaji Road, Hosur

 Phone:
+91 9500 96 4166

 Email:
[email protected] (mailto:[email protected])

 Working Days/Hours:
Mon - Sat / 9:00 AM - 7:00 PM

Quick Links

About Us (https://www.factoryforward.com/about-us/)

Shipping and Delivery (https://www.factoryforward.com/shipping-and-delivery/)

Cancel and Return (https://www.factoryforward.com/1507-2/)

A liate Dashboard (https://www.factoryforward.com/a liate/)



Contact Us (https://www.factoryforward.com/contact-us/)

Join to get latest products & o ers!

Email *

Subscribe!

© Copyright 2016. All Rights Reserved.

https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ 16/16

You might also like