Repository navigation
Adding Thread radio #170
Replies: 2 comments 3 replies
|
Congratulations, this is a really nice piece of work! Freeing the console UART and running a second in-kernel bridge to give the box a dedicated Thread radio is exactly the kind of hack this project is meant to enable. And the guide is very well documented: wiring, photos, the A few remarks after reading the guide: Silabs download (HTTP 403)I can reproduce this from here. Silabs' Akamai front end currently answers 403 to Bootloader and the H2 sharing UART0The bootloader still uses UART0 at 38400 baud. During its autoboot window it drains the whole RX FIFO looking for an ESC byte (0x1B), and if it finds one it enters download mode instead of booting Linux. Since the H2 is powered from the same 3.3 V rail, it boots at the same time as the gateway. Anything it sends on its TX line during that window is read by the bootloader at the wrong baud rate. I haven't checked what an OpenThread RCP sends at power-up, so this is a possible failure, not one I've observed. If the gateway ever comes up in bootloader/TFTP mode instead of Linux after a power cycle, this is the first thing I'd suspect. It might be worth a line in your troubleshooting table. Recovery without the serial consoleWith the H2 on J1, the serial console is gone for recovery. If the network configuration breaks, you'll have to open the box and swap the H2 for a USB-TTL adapter. You already hint at this, but it deserves a short warning near the start, before people commit to the change. Maintaining the patch setDuplicating the driver is the practical approach today: its parameters ( Power budgetI haven't measured how much headroom the gateway's 3.3 V rail has. The ESP32-H2 has a modest current draw, but if you see instability under radio load, try a separate supply (with common GND) to rule it out. Alternative without extra hardware: same-channel multi-PAN on the EFR32If the goal is simply Zigbee + Thread from one box, the EFR32 can already do both concurrently, without the H2 and without touching the kernel. You flash it with the RCP firmware and run There are limits to keep in mind:
Guide: Zigbee + Thread (multi-PAN). See also the radio options overview. Your approach has real advantages of its own: Thread gets its own radio and channel, and the NCP Zigbee setup stays untouched. So both paths have their place. Your field results with a real Thread device would be valuable either way. Looking forward to your Matter-over-Thread results. |
Update: ESP32-H2 Thread radio – Matter devices and OTA firmware updates working!As promised, here's an update now that I've had the opportunity to test the ESP32-H2 setup with actual Matter-over-Thread devices. Good news: Matter-over-Thread is working, including successful OTA firmware updates! I purchased several of IKEA's new Matter-over-Thread devices and have successfully commissioned the following types into Home Assistant:
All devices are connected to the same Thread network ( Hardware and software setupThe setup is unchanged from my earlier experiments:
The RTL8196E gateway provides network access to the ESP32-H2 radio, while Home Assistant runs the Thread Border Router and Matter controller. Matter commissioningThe initial commissioning experience was slightly confusing. My Android phone was on a different VLAN from Home Assistant and the Thread Border Router. The first attempts failed with a "Can't reach device" message. After moving the phone to the same IoT VLAN as Home Assistant, devices were straightforward to add. Thread network and mesh routingHome Assistant's Thread topology view confirms the expected device roles:
This is encouraging because I have six KAJPLATS GU10 bulbs intended for outdoor lighting. These should provide additional Thread routers and potentially improve mesh coverage for the battery-powered devices. Successful Matter OTA firmware updateThis was probably the most interesting result. Home Assistant automatically discovered an available firmware update for the IKEA KAJPLATS GU10:
The update progressed through downloading/transferring and installing, and Home Assistant now reports: This demonstrates that the ESP32-H2 setup can handle more than basic Matter commands and sensor reports. It has also successfully carried a complete firmware update over Thread. I still have several KAJPLATS bulbs to update, so this will provide further opportunities to test OTA reliability. Dedicated ESP32-H2 vs. same-channel multi-PANThanks again for pointing out the multi-PAN capabilities of the original EFR32 radio. Using the existing radio for both Zigbee and Thread is certainly an attractive option, especially since it avoids additional hardware and UART modifications. However, I still see several advantages to the dedicated ESP32-H2 approach:
The trade-offs are the extra hardware, UART configuration and the modifications required to expose the additional radio through the gateway. Next stepsI currently have:
I'll continue commissioning the remaining devices, applying firmware updates and monitoring Thread mesh stability. I also want to verify long-term stability and cold-boot behavior of the RTL8196E gateway with the ESP32-H2 connected. So far, the dedicated ESP32-H2 approach looks very promising. We now have working Zigbee and Thread radios on the same RTL8196E gateway, with real Matter devices and a successfully completed Matter OTA update. Thanks again for your work on the Open Linux Firmware project! |
Uh oh!
There was an error while loading. Please reload this page.
I have made a guide to disable console output and use the free serial port with an ESP32-H2 to add Thread radio to the same device.
Confirmed working in Home Assistant with ESPHome on multiple ESP32-H2 devices, I will test Matter over Thread as soon as possible.
https://github.com/SysAdminDk/HomeAssistant/blob/main/rtl8196e-gateway/readme.md
All reactions