greghgradwell

greghgradwell

I’m just posting this info here, because I hadn’t found any other topics related to using USB hubs with the RPi0. @fhunleth helped with solve these issues via Slack, so I wanted to record them in case someone else had the same problem.

TLDR: Use the RPi system configuration instead of RPi0.

I was trying to use this USB Hub with Nerves. According to the manual, it would work with the Zero out of the box by commenting out the line dtoverlay=dwc2 in the config.txt file. I had confirmed that this was the case with a Zero running Raspbian (and a Pi3 running Nerves), so I tried using the RPi0 Nerves build with the modified config.txt file. This didn’t work, nor did making a bunch of other changes to this file and the cmdline.txt file. I figured I needed to get the serial port behaving correctly, but it just wouldn’t happen.

I’m sure most of you already know the answer, because it was clearly stated in the documentation :man_facepalming:t2:, which is to use the RPi system configuration instead of the RPi0. This places the USB port in “host” mode, as opposed to OTG, which is what I was trying to do with the config files, but clearly it’s not that simple.

In the end, the hub works great. It’s connected by pogo pins, so no additional power is required. And had I read the manuals, I would have been using it many hours ago. At least I learned how to modify the default configuration, which had seemed really scary before, but really wasn’t too bad thanks again to all the great documentation.

Side note, during all this I learned about the Nerves.Leds package, which proved to be really helpful in debugging the Pi0, as I could start blinking a heartbeat once my program had booted and was connected to my network.

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews