Von English mit KI übersetzt ·
Ich bin Facility-Manager, kein Elektrotechniker, aber ich habe letztes Jahr genau diese Idee für ein Lobby-Display verfolgt und dabei einen ganzen Nachmittag verschwendet. Der Pi implementiert kein HEC. Bei HDMI sind das die Pins 14 und 19, und der Pi hat dahinter keinen Ethernet-PHY, es gibt also nichts, was man in der Software aktivieren könnte. Kein Overlay wird das beheben.Was ich schließlich gemacht habe und was ich in deiner Reihenfolge ausprobieren würde:
- Ein Micro-USB-zu-Ethernet-Adapter am USB-Port des Zero (nicht am PWR-Port). Adapter auf Basis des ASIX AX88772 funktionieren sofort, eth0 erscheint einfach. Meiner hat etwa zehn Dollar gekostet.
- USB-Gadget-Modus: Der Zero gibt sich über das USB-Kabel gegenüber einem Laptop als Netzwerkkarte aus. Füge
dtoverlay=dwc2in config.txt hinzu undmodules-load=dwc2,g_ethernach rootwait in cmdline.txt. Dann muss der Laptop seine Verbindung freigeben. - Auf einen Zero 2 W wechseln, falls WLAN irgendwann erlaubt wird.
Sobald eth0 läuft, ist die MQTT-Seite dieselbe wie bei jedem anderen Pi: TLS auf 8883 mit dem Geräte-Token.
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.

