¿Puede una Pi Zero obtener Ethernet a través de su puerto mini-HDMI (HEC) para un nodo sensor?
Traducido del English por IA ·
Proyecto de laboratorio: una Pi Zero (la básica, sin Wi-Fi) con un BME280 que debe enviar temperatura, humedad y presión a Hermetry por MQTT cada minuto. El laboratorio tiene puertos de red cableados por todas partes, pero no hay Wi-Fi en el que tengamos permiso para conectar dispositivos.Leyendo sobre HDMI 1.4 encontré el HDMI Ethernet Channel (HEC), y los monitores y cables del laboratorio son todos HDMI 1.4 o posteriores. Mi idea era obtener red a través del mini-HDMI de la Zero y no tener que comprar nada. Sin embargo, no encuentro ninguna configuración para ello; ip link solo muestra lo. ¿Me falta algún overlay o módulo del kernel, o simplemente la Zero no hace esto?
Lab project: a Pi Zero (the plain one, no Wi-Fi) with a BME280 that should send temperature, humidity and pressure to Hermetry over MQTT every minute. The lab has wired network ports everywhere but no Wi-Fi we’re allowed to put devices on.
While reading about HDMI 1.4 I found the HDMI Ethernet Channel (HEC), and the lab monitors and cables are all HDMI 1.4 or newer. So my idea was to get networking over the Zero’s mini-HDMI and skip buying anything. I can’t find any setting for it though, ip link only shows lo. Is there an overlay or kernel module I’m missing, or does the Zero just not do this?
Traducido del English por IA ·
Estoy bastante seguro de que la Pi no conecta los pines HEC en absoluto, pero nunca lo he comprobado como es debido.
Pretty sure the Pi doesn’t wire up the HEC pins at all, but I’ve never checked properly.
Traducido del English por IA ·
Yo también tengo curiosidad por esto, en nuestro edificio hay cableado HDMI por todas partes que nadie utiliza.
Curious about this too, we have HDMI runs all over our building that nobody uses.
Traducido del English por IA ·
Soy de instalaciones, no ingeniero electrónico, pero el año pasado intenté exactamente esta idea para una pantalla de recepción y perdí una tarde entera con ella. La Pi no implementa HEC. En HDMI son los pines 14 y 19, y la Pi no tiene un PHY Ethernet detrás de ellos, así que no hay nada que activar por software. Ningún overlay lo arreglará.Lo que terminé usando, y lo que probaría en tu orden:
- Un adaptador micro-USB a Ethernet en el puerto USB del Zero (no el de PWR). Los basados en ASIX AX88772 funcionan de inmediato, eth0 simplemente aparece. El mío costó unos diez dólares.
- Modo gadget USB: el Zero se hace pasar por una tarjeta de red ante un portátil a través del cable USB. Añade
dtoverlay=dwc2a config.txt ymodules-load=dwc2,g_etherdespués de rootwait en cmdline.txt. Luego el portátil tiene que compartir su conexión. - Cambiar a un Zero 2 W si algún día se permite el Wi-Fi.
Una vez que eth0 esté activo, el lado de MQTT es igual que en cualquier otra Pi: TLS en el 8883 con el token del dispositivo.
I’m a facilities guy, not an EE, but I chased this exact idea for a lobby display last year and burned an afternoon on it. The Pi doesn’t implement HEC. On HDMI that’s pins 14 and 19, and the Pi has no Ethernet PHY behind them, so there’s nothing to switch on in software. No overlay will fix it.
What I ended up with, and what I’d try in your order:
- A micro-USB to Ethernet adapter on the Zero’s USB port (not the PWR one). ASIX AX88772 based ones work out of the box, eth0 just appears. Mine was about ten dollars.
- USB gadget mode: the Zero pretends to be a network card to a laptop over the USB cable. Add
dtoverlay=dwc2to config.txt andmodules-load=dwc2,g_etherafter rootwait in cmdline.txt. Then the laptop has to share its connection. - Swap for a Zero 2 W if Wi-Fi ever becomes allowed.
Once eth0 is up the MQTT side is the same as any other Pi, TLS on 8883 with the device token.
Traducido del English por IA ·
Entonces, con el modo gadget, la Zero aparece como una tarjeta de red para el portátil, y el portátil enruta el tráfico para ella? Eso significa que el portátil tiene que estar encendido todo el tiempo?
so with gadget mode the Zero looks like a network card to the laptop and the laptop routes for it? that means the laptop has to stay on all the time
Traducido del English por IA ·
Sí, el portátil comparte su conexión (NAT) y tiene que permanecer encendido. Por eso me decanté por el adaptador.
Yep, laptop shares its connection (NAT) and has to stay on. That’s why I went with the adapter.
Traducido del English por IA ·
Encontré un adaptador AX88772 cajón del laboratorio, eth0 se levantó en el primer arranque, las lecturas llegan cada minuto. La idea del HEC está oficialmente muerta, gracias por ahorrarme la tarde.
Found an AX88772 adapter in the lab drawer, eth0 came up on first boot, readings arriving every minute. The HEC idea is officially dead, thanks for saving me the afternoon.
- Debes estar registrado para responder a este debate.
Únete a la conversación
Inicia sesión para preguntar y responder, dar me gusta a las publicaciones útiles y marcar la respuesta que resolvió tu problema. Cada aportación suma puntos y niveles.

