#Connecting to a SiLabs dev kit
1 messages · Page 1 of 1 (latest)
You should be able to like so:
zigpy -vvv radio --baudrate 115200 ezsp /dev/serial/by-id/... backup -z
That probably involves clicking on the "start" button first right? But that fails with the following error:
Failed to save add-on configuration, Missing required option 'network_device' in TubesZB Zigpy-CLI Tools (d0f5a498_tzb-zigpy-cli-tools). Got {'network_device': None, 'device': '/dev/serial/by-id/usb-Silicon_Labs_J-Link_OB_000440273658-if00', 'device_type': False, 'action': 'backup', 'radio_type': None, 'baudrate': '115200'}
As if it refuses to use the serial device rather that the network_device
Ah, I think I understand
This isn't an addon
zigpy-cli is a Python package: pip install zigpy-cli
Oh, on my PC then?
Preferably a Mac or a Linux computer but yes
Because on HAOS that wouldn't be possible
You can if you enter the Docker container, you'll need the advanced SSH addon, then disable protection mode, and you can run docker exec -it homeassistant /bin/bash
So I did try on my Ubuntu PC and I got the asyncio.exceptions.TimeoutError mentionned in the troubleshooting link, however following the described steps did not solve it for me
Log output (before the python Traceback):
asyncio DEBUG Using selector: EpollSelector
zigpy.ota DEBUG Registering new OTA provider: Ledvance(url='https://api.update.ledvance.com/v1/zigbee/firmwares', manufacturer_ids=(4489, 4364))
zigpy.ota DEBUG Registering new OTA provider: Sonoff(url=None, manufacturer_ids=(4742,))
zigpy.ota DEBUG Registering new OTA provider: Inovelli(url=None, manufacturer_ids=(4655,))
zigpy.ota DEBUG Registering new OTA provider: ThirdReality(url=None, manufacturer_ids=(4659, 4877, 5127))
zigpy.serial DEBUG Opening a serial connection to '/dev/serial/by-id/usb-Silicon_Labs_J-Link_OB_000440273658-if00' (baudrate=115200, xonxoff=True, rtscts=False)
bellows.ezsp DEBUG Resetting EZSP
bellows.uart DEBUG Resetting ASH
bellows.ash DEBUG Sending frame CANCEL + RstFrame() + FLAG
bellows.ash DEBUG Sending data 1ac038bc7e
bellows.uart DEBUG Connection lost: None
bellows.uart DEBUG Closed serial connection
So as far as ZHA is concerned, your device isn't functional. Are you 100% sure you set the baudrate correctly?
Yes, I followed the steps to change the baudrate to 115200
Maybe I should use an RCP project instead of an NCP?
Trying to build an RCP to use my home assistant as a coordinator
So I can have a zigbee network on my home assistant
I mean, so I can control a zigbee network using home assistant
Would have used matter but it required to use the home assistant app to add devices and I am one of the lucky fellas who is experiencing connection issues between android and HA
Right, but why are you using a SiLabs dev kit and building your own firmware?
You'll want to build NCP, nor RCP
The ncp-uart-hw ZigBee project
Because I happen to have a couple of Silabs kit and a raspberry pi
It has worked for openThread in the past
So I assumed I could flash a Zigbee Ncp and it would work as well
Oh, did you build and flash the bootloader to the dev kit as well?
...
That's a lot of shame on a Sunday ahah
Yup I totally forgot
Any chance that might work on the Simplicity SDK with 8.x ?
Yeah, everything in ZHA is compatible with it
I would recommend downgrading to the Gecko SDK though, the new one has outstanding issues
Ok then, I'll stick to gsdk 4.4 for now
Depending on the dev kit that you use, you may be able to directly use the pre-configured projects: https://github.com/nabucasa/silabs-firmware-builder
The code in the repo is configured for BRD4001A + BRD4179B