ksjh / silabs-firmware-builder

Silicon Labs firmware builder
13 stars 2 forks source link

SL Web Tools Flashing Support #12

Open darkxst opened 1 year ago

darkxst commented 1 year ago

This is definitely a wish list item, however would be cool to add support to this repo.

SL Web Tools allows you to flash Silabs devices directly from the browser, its built upon ESP Web tools and Universal-silabs-flasher, and I must say its pretty cool!. See this blog post for details:

https://www.home-assistant.io/blog/2023/02/08/state-of-matter-and-thread/#silabs-multi-flasher--sl-web-tools

Here is a barebones implementation hosted on Github pages for ZBDongle-E https://github.com/darkxst/sl-test/tree/gh-pages https://darkxst.github.io/sl-test/

It would however require some modifications to the build system:

darkxst commented 1 year ago

Could someone who has the ZB-GW04 v1.1 and/or v1.2 post the output from lsusb for these devices? I need the vendor id, product id and description string.

Hedda commented 1 year ago

Could someone who has the ZB-GW04 v1.1 and/or v1.2 post the output from lsusb for these devices? I need the vendor id, product id and description string.

@darkxst Suggest ask @xsp1989 if he knows ZB-GW04 USB VID + PID + description string -> https://github.com/xsp1989/zigbeeFirmware/issues/40

I do not have one myself but someone wrote that ZB-GW04 v1.2 USB uses the identifier 1A86:7523 which should be VID and PID:

https://community.home-assistant.io/t/zigbee-coordinator-1a86-7523-cannot-start-or-pair-any-devices/545740

Note it may be that it not have a unique description string but that is just an assumption based on experience with some others:

https://community.home-assistant.io/t/community-help-wanted-to-whitelist-all-compatible-zigbee-and-z-wave-dongles-adapters-for-automatic-usb-discovery-in-home-assistant/344412

https://github.com/home-assistant/core/blob/dev/homeassistant/components/zha/manifest.json

https://www.home-assistant.io/integrations/zha#discovery-via-usb-or-zeroconf

darkxst commented 1 year ago

ZB-GW04 v1.2 USB uses the identifier 1A86:7523

Yeh I found this somewhere after I posted for that. I have used those values on my test site for both versions for now. I've not specifically tested the ZB-GW04 yet, but I have a ZB-GW04 dongle on the way for testing.

Once ksjh reviews my open PR's will look at merging the flasher page across to this repo.

darkxst commented 1 year ago

Turns out there is no way to get the product description string through the webSerial API.

Vid/pid is only applied as a filter when selecting USB port. So wouldnt be able to auto-detect devices at this stage.