User avatar
elkberry
Posts: 167
Joined: Wed Dec 28, 2016 9:21 pm

Pi 0 W OTG Ethernet only working after unplug, then replug?

Tue May 02, 2017 4:57 pm

Hardware:
  • I'm using a Raspberry Pi Zero W
  • OTG cable ... correctly working ;)
  • 10/100MBit Ethernet USB 2.0 Adapter Renkforce brand, power consumption max 166mA according to data sheet
Power supply, tried each with same result:
  • official 2.5A power supply
  • 1.0A 5.1V USB 5100mAh power bank
  • Microsoft 1A Surface Pro 3 power brick
Software:
  • fresh Raspbian install from March image,
  • then updated as of today.
When I boot the Raspberry Pi Zero W with the Ethernet USB adapter already plugged in, then I the USB adapter won't send or receive any frames; the activity LED flashes, because there's always traffic, but ping fails. Addresses and routes are correctly set up. An ip -4 addr show eth0 ... shows the interface to be present, and both the data link layer to be up, as well as the layer 3. But communication over this interface completely fails.

Now, after unplugging and the re-plugging the USB Ethernet adaptor, sending and receiving now correctly works.

Any ideas as to what the cause might be? For the prototype, manual unplugging is fair at the moment. But for field use this is a "no go".
From ZX81 to Raspberry Pi, but wait ... where's the 7805 gone?

wh7qq
Posts: 1448
Joined: Thu Oct 09, 2014 2:50 am

Re: Pi 0 W OTG Ethernet only working after unplug, then repl

Tue May 02, 2017 7:02 pm

You should be using a self powered USB hub for the ethernet adapter.

fruitoftheloom
Posts: 23426
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Pi 0 W OTG Ethernet only working after unplug, then repl

Tue May 02, 2017 7:54 pm

elkberry wrote:Hardware:
  • I'm using a Raspberry Pi Zero W
  • OTG cable ... correctly working ;)
  • 10/100MBit Ethernet USB 2.0 Adapter Renkforce brand, power consumption max 166mA according to data sheet
Power supply, tried each with same result:
  • official 2.5A power supply
  • 1.0A 5.1V USB 5100mAh power bank
  • Microsoft 1A Surface Pro 3 power brick
Software:
  • fresh Raspbian install from March image,
  • then updated as of today.
When I boot the Raspberry Pi Zero W with the Ethernet USB adapter already plugged in, then I the USB adapter won't send or receive any frames; the activity LED flashes, because there's always traffic, but ping fails. Addresses and routes are correctly set up. An ip -4 addr show eth0 ... shows the interface to be present, and both the data link layer to be up, as well as the layer 3. But communication over this interface completely fails.

Now, after unplugging and the re-plugging the USB Ethernet adaptor, sending and receiving now correctly works.

Any ideas as to what the cause might be? For the prototype, manual unplugging is fair at the moment. But for field use this is a "no go".
With the USB Ethernet Adaptor plugged in what is the output of:

Code: Select all

lsusb
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

User avatar
elkberry
Posts: 167
Joined: Wed Dec 28, 2016 9:21 pm

Re: Pi 0 W OTG Ethernet only working after unplug, then repl

Mon May 08, 2017 9:12 am

Sorry for not answering earlier; I've now testing on a Raspberry Pi 3 Model B instead of a Pi Zero W.

So, lsusb gives for my USB 2.0 Ethernet adaptor:

Code: Select all

ID 0a46:1269 Davicom Semiconductor, Inc.
Seems that the initialization of this adaptor is a little picky: sometimes after my Pi 3B booted, it works; sometimes, I need to pull and re-plug the USB 2.0 Ethernet adaptor. Grmbl. :evil:

What really surprises me is: in my application, the Pi 3B doesn't consume much more power than the Pi Zero W, so apart from the cute form factor of the Zero W the Pi 3B might be better for me, as it seems to be more forgiving in my particular application. And in the base setup I don't need to additional USB 2.0 Ethernet adaptor, as I have built-in Ethernet...
From ZX81 to Raspberry Pi, but wait ... where's the 7805 gone?

fruitoftheloom
Posts: 23426
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Pi 0 W OTG Ethernet only working after unplug, then repl

Mon May 08, 2017 9:36 am

elkberry wrote:Sorry for not answering earlier; I've now testing on a Raspberry Pi 3 Model B instead of a Pi Zero W.

So, lsusb gives for my USB 2.0 Ethernet adaptor:

Code: Select all

ID 0a46:1269 Davicom Semiconductor, Inc.
Seems that the initialization of this adaptor is a little picky: sometimes after my Pi 3B booted, it works; sometimes, I need to pull and re-plug the USB 2.0 Ethernet adaptor. Grmbl. :evil:

What really surprises me is: in my application, the Pi 3B doesn't consume much more power than the Pi Zero W, so apart from the cute form factor of the Zero W the Pi 3B might be better for me, as it seems to be more forgiving in my particular application. And in the base setup I don't need to additional USB 2.0 Ethernet adaptor, as I have built-in Ethernet...
Yes the RPi 3B uses an USB/LAN Chipset http://www.microchip.com/wwwproducts/en/LAN9514 on the single USB 2.0 BUS to provide the USB and Ethernet Port. The max total USB power draw is 1200mA

Power usage: https://www.raspberrypi.org/help/faqs/#powerReqs

Regards the Davicom DM9601 USB ethernet adaptor, they seem to be poor quality and many issues have been reported over the years........
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

User avatar
elkberry
Posts: 167
Joined: Wed Dec 28, 2016 9:21 pm

Re: Pi 0 W OTG Ethernet only working after unplug, then repl

Mon May 08, 2017 1:34 pm

fruitoftheloom wrote:Regards the Davicom DM9601 USB ethernet adaptor, they seem to be poor quality and many issues have been reported over the years........
Yeah, add me to the crowd bitten by Davicom.
From ZX81 to Raspberry Pi, but wait ... where's the 7805 gone?

fruitoftheloom
Posts: 23426
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Pi 0 W OTG Ethernet only working after unplug, then repl

Mon May 08, 2017 3:52 pm

elkberry wrote:
fruitoftheloom wrote:Regards the Davicom DM9601 USB ethernet adaptor, they seem to be poor quality and many issues have been reported over the years........
Yeah, add me to the crowd bitten by Davicom.
...for future reference look for a USB 3.0 RTL8153 USB Ethernet Adaptor something like:

https://www.amazon.co.uk/gp/aw/d/B01KZIM1XA
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

MarkDH102
Posts: 404
Joined: Fri Feb 13, 2015 3:18 pm

Re: Pi 0 W OTG Ethernet only working after unplug, then repl

Mon May 08, 2017 4:03 pm

...for future reference look for a USB 3.0 RTL8153 USB Ethernet Adaptor something like:

https://www.amazon.co.uk/gp/aw/d/B01KZIM1XA

Can you personally vouch for this adapter?
I'm having distance/brick wall issues with a Zero and an Edimax WiFi adapter.
Cheers.

fruitoftheloom
Posts: 23426
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Pi 0 W OTG Ethernet only working after unplug, then repl

Mon May 08, 2017 4:15 pm

MarkDH102 wrote:...for future reference look for a USB 3.0 RTL8153 USB Ethernet Adaptor something like:

https://www.amazon.co.uk/gp/aw/d/B01KZIM1XA

Can you personally vouch for this adapter?
I'm having distance/brick wall issues with a Zero and an Edimax WiFi adapter.
Cheers.
Not personally, this wiki writer uses a ASIX Chipset Adaptor:

https://www.jeffgeerling.com/blogs/jeff ... networking
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

User avatar
elkberry
Posts: 167
Joined: Wed Dec 28, 2016 9:21 pm

Re: Pi 0 W OTG Ethernet only working after unplug, then repl

Mon May 08, 2017 5:22 pm

Why an USB 3.0 Ethernet adaptor? Doesn't it have higher power consumption, even if in USB 2.0 mode? And does it properly work on an USB 2.0 port of the Raspberry Pis?
From ZX81 to Raspberry Pi, but wait ... where's the 7805 gone?

Return to “Troubleshooting”