Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossibile to flash on SonoZigbee 3.0 USB #107

Open
PetFra opened this issue Jul 15, 2024 · 47 comments
Open

Impossibile to flash on SonoZigbee 3.0 USB #107

PetFra opened this issue Jul 15, 2024 · 47 comments

Comments

@PetFra
Copy link

PetFra commented Jul 15, 2024

Hello there, I'm trying to flash a classic Sonoff to have Thread on it.
I tried on windows and Mac, but doesn't work.
I attach the log, I also tried with the python script but it didn't work for sure because of my poor Python Skill.

silabs_flasher.log

Any help would be highly apprecciated. Thanks

@darkxst
Copy link
Owner

darkxst commented Jul 16, 2024

The flasher is not getting any response from the dongle. Is this ZBdongle-E? what firmware is on it currently?

@PetFra
Copy link
Author

PetFra commented Jul 16, 2024

Ho thanks, is the classic Sonoff ZigBee 3.0 dongle

as far as I remember is the original firmware on it.

Would using the python script bypass the issue?

@darkxst
Copy link
Owner

darkxst commented Jul 16, 2024

Sonoff have two different dongles, ZBDongle-E is compatible with my web flsher and these firmwares. The other one ZBDongle-P is a different chipset and requires different flasher and firmware from:
https:/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin

Make sure you have ZBDongle-E first!

@PetFra
Copy link
Author

PetFra commented Jul 16, 2024

I think problem is I have Dongle P
This is mine: https://amzn.eu/d/0d47x3yq

and it says dongle P
So I need to understand if I can make thread over it

thanks a lot for your input

@darkxst
Copy link
Owner

darkxst commented Jul 17, 2024

Currently there are no Thread firmwares for the P dongles (that I am aware of anyway). I might release Thread firmware for these sometime in the future...

For now, you can however build your own firmware from this repo:
https:/TexasInstruments/ot-ti/commits/main

@PetFra
Copy link
Author

PetFra commented Jul 20, 2024

Hi thanks!
I’ll look into it!

thank very much

@TarasRybak
Copy link

TarasRybak commented Aug 8, 2024

Hello.
@darkxst, look at my logs too, please. for some reason it does not want to connect to Windows 11, Chrome or Edge. I installed universal drivers on 07/19/2024. CP210x Universal Windows Driver v11.4.0.
silabs_flasher (1).log

20240808_030036

@TarasRybak
Copy link

i tried to update locally. on a Proxmox machine. on a home assistant. installed venv, installed the flasher. tried two versions 7.4.2 and 7.4.3. but i have another problem.
image

@darkxst
Copy link
Owner

darkxst commented Aug 9, 2024

@TarasRybak You need to use the raw link from github, otherwise its just downloading the html page.

https:/darkxst/silabs-firmware-builder/raw/main/firmware_builds/zbdonglee/ncp-uart-hw-v7.4.3.0-zbdonglee-115200.gbl

@TarasRybak
Copy link

@darkxst
oh, thank you very much. it was successful!!!! I spent 4 days on all that.
image

@Dizzy49
Copy link

Dizzy49 commented Aug 10, 2024

silabs_flasher.log

I am having the exact same issue as Cannot flash my Sonoff ZBDongle-E with web flasher except mine is not V2
image

I have tried every USB port on my desktop and get the same error. I just bought this from itead less than two weeks ago. Is it possible it is already updated? How can I find out?

@darkxst
Copy link
Owner

darkxst commented Aug 11, 2024

except mine is not V2

@Dizzy49 Are you sure this is ZBDongle-E and not ZBDongle-P (which requires different firmware and flashing tools)?

@Dizzy49
Copy link

Dizzy49 commented Aug 12, 2024 via email

@ghost
Copy link

ghost commented Aug 27, 2024

Having the same issue. Been trying to troubleshoot all night.

I have the dongle-E and out of the box it was working fine. I started reading up on things and was suggested to flash with the newer firmware to use ember or whatever. Tool recognizes the dongle it looks like it connects for a second, then spins out and says cannot read firmware.

Tried 3 cables, ports on both front of my PC, back of PC, some USB 2.0 and some 3.1 and 3.2.

@darkxst
Copy link
Owner

darkxst commented Aug 27, 2024

@Mdumas81 can you provide logs?

It seems some Windows users are having trouble with web flasher recently, not sure why though, I havent been able to replicate myself.

As an alternative if you have a HA box you can try use the Silabs flasher addon.

@ghost
Copy link

ghost commented Aug 27, 2024

silabs_flasher (5).log

I have a HA green and I am brand new to all this, so I will totally give that a try.

@darkxst
Copy link
Owner

darkxst commented Aug 27, 2024

I suppose this is causing it to fail, but not sure why...

2024-08-27 01:18:49 emscripten bellows.ezsp[42] DEBUG Resetting EZSP
2024-08-27 01:18:49 emscripten bellows.uart[42] DEBUG Resetting ASH
2024-08-27 01:18:49 emscripten bellows.uart[42] DEBUG Sending: b'1ac038bc7e'
2024-08-27 01:18:50 emscripten bellows.uart[42] DEBUG RSTACK Version: 2 Reason: RESET_POWER_ON frame: b'c102029b7b7e'
2024-08-27 01:18:50 emscripten bellows.ezsp[42] INFO NCP entered failed state. No application handler registered, ignoring...
2024-08-27 01:18:54 emscripten bellows.uart[42] DEBUG Connection lost: None
2024-08-27 01:18:54 emscripten bellows.uart[42] DEBUG Closed serial connection

I have a HA green and I am brand new to all this, so I will totally give that a try.

There is a hidden setting in the silabs flasher addon (Click the button to show unused settings) that you can use to put a custom URL into. Just make sure you use the RAW url from github page.

@ghost
Copy link

ghost commented Aug 27, 2024

thank you, i think the firmware updated but i cant tell as the only way i know is to look from within z2m but z2m is now throwing errors

@darkxst
Copy link
Owner

darkxst commented Aug 27, 2024

thank you, i think the firmware updated but i cant tell as the only way i know is to look from within z2m but z2m is now throwing errors

Are you using ember backend in Z2M? it should work fine with my 7.4.x firmwares

@ghost
Copy link

ghost commented Aug 27, 2024

I believe so, Ive been at this for a while now so I've messed around with a ton of things. I just reinstalled everything fresh and am trying to setup again but Im getting what appears to be one of the more common errors, but no solution has worked so far.

[2024-08-27 01:43:19] error: 	z2m: Error while starting zigbee-herdsman
[2024-08-27 01:43:19] error: 	z2m: Failed to start zigbee
[2024-08-27 01:43:19] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-08-27 01:43:19] error: 	z2m: Exiting...
[2024-08-27 01:43:19] error: 	z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
    at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:746:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1758:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29)
    at Zigbee.start (/app/lib/zigbee.ts:63:27)
    at Controller.start (/app/lib/controller.ts:139:27)
    at start (/app/index.js:154:5)

@ghost
Copy link

ghost commented Aug 27, 2024

image

@darkxst
Copy link
Owner

darkxst commented Aug 27, 2024

which firmware did you flash?

@ghost
Copy link

ghost commented Aug 27, 2024

ncp-uart-hw-v7.4.3.0-zbdonglee-115200.gbl

@ghost
Copy link

ghost commented Aug 27, 2024

ncp-uart-hw-v7.4.2.0-zbdonglee-115200.gbl seems to be flashing properly, Going to try that

@darkxst
Copy link
Owner

darkxst commented Aug 27, 2024

both those should work, there werent really any changes between 7.4.2 and 7.4.3.

@ghost
Copy link

ghost commented Aug 27, 2024

ok so 7.4.2 worked it looks like. Im getting a ton more info

Starting Zigbee2MQTT without watchdog.
[2024-08-27 02:11:16] info: 	z2m: Logging to console, file (filename: log.log)
[2024-08-27 02:11:16] info: 	z2m: Starting Zigbee2MQTT version 1.39.1 (commit #unknown)
[2024-08-27 02:11:16] info: 	z2m: Starting zigbee-herdsman (0.55.3)
[2024-08-27 02:11:17] info: 	zh:ember: Using default stack config.
[2024-08-27 02:11:17] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-08-27 02:11:17] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-08-27 02:11:17] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-08-27 02:11:17] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-08-27 02:11:17] info: 	zh:ember:uart:ash: Serial port opened
[2024-08-27 02:11:17] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-08-27 02:11:18] info: 	zh:ember:uart:ash: ======== ASH connected ========
[2024-08-27 02:11:18] info: 	zh:ember:uart:ash: ======== ASH started ========
[2024-08-27 02:11:18] info: 	zh:ember:ezsp: ======== EZSP started ========
[2024-08-27 02:11:19] info: 	zh:ember: Adapter EZSP protocol version (13) lower than Host. Switched.
[2024-08-27 02:11:19] info: 	zh:ember: Adapter version info: {"ezsp":13,"revision":"7.4.2 [GA]","build":0,"major":7,"minor":4,"patch":2,"special":0,"type":170}
[2024-08-27 02:11:19] info: 	zh:ember: [STACK STATUS] Network up.
[2024-08-27 02:11:19] info: 	zh:ember: [INIT TC] Adapter network does not match config. Leaving network...
[2024-08-27 02:11:20] info: 	zh:ember: [STACK STATUS] Network down.
[2024-08-27 02:11:20] info: 	zh:ember: [INIT TC] No valid backup found.
[2024-08-27 02:11:20] info: 	zh:ember: [INIT TC] Forming from config.
[2024-08-27 02:11:20] info: 	zh:ember: [INIT FORM] Forming new network with: {"panId":28037,"extendedPanId":[230,91,206,189,106,92,214,131],"radioTxPower":5,"radioChannel":11,"joinMethod":0,"nwkManagerId":0,"nwkUpdateId":0,"channels":134215680}
[2024-08-27 02:11:20] info: 	zh:ember: [STACK STATUS] Network up.
[2024-08-27 02:11:20] info: 	zh:ember: [INIT FORM] New network formed!
[2024-08-27 02:11:20] info: 	zh:ember: [CONCENTRATOR] Started source route discovery. 1247ms until next broadcast.
[2024-08-27 02:11:20] info: 	zh:controller: Wrote coordinator backup to '/config/zigbee2mqtt/coordinator_backup.json'
[2024-08-27 02:11:20] info: 	z2m: zigbee-herdsman started (reset)
[2024-08-27 02:11:20] info: 	z2m: Coordinator firmware version: '{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":2,"revision":"7.4.2 [GA]","special":0,"type":170},"type":"EmberZNet"}'
[2024-08-27 02:11:20] info: 	z2m: Currently 0 devices are joined:
[2024-08-27 02:11:20] info: 	z2m: Zigbee: disabling joining new devices.
[2024-08-27 02:11:21] info: 	z2m: Connecting to MQTT server at mqtt://192.168.1.4:1883
[2024-08-27 02:11:21] info: 	z2m: Connected to MQTT server
[2024-08-27 02:11:21] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
[2024-08-27 02:11:21] info: 	z2m: Started frontend on port 8099
[2024-08-27 02:11:22] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
[2024-08-27 02:11:22] info: 	z2m: Zigbee2MQTT started!
[2024-08-27 02:11:27] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/binary_sensor/1221051039810110150109113116116_0x6c5cb1fffe992e53/connection_state/config', payload '{"device":{"hw_version":"EmberZNet 7.4.2 [GA]","identifiers":["zigbee2mqtt_bridge_0x6c5cb1fffe992e53"],"manufacturer":"Zigbee2MQTT","model":"Bridge","name":"Zigbee2MQTT Bridge","sw_version":"1.39.1"},"device_class":"connectivity","entity_category":"diagnostic","name":"Connection state","object_id":"zigbee2mqtt_bridge_connection_state","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"payload_off":"offline","payload_on":"online","state_topic":"zigbee2mqtt/bridge/state","unique_id":"bridge_0x6c5cb1fffe992e53_connection_state_zigbee2mqtt","value_template":"{{ value_json.state }}"}'
[2024-08-27 02:11:27] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/binary_sensor/1221051039810110150109113116116_0x6c5cb1fffe992e53/restart_required/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"availability_mode":"all","device":{"hw_version":"EmberZNet 7.4.2 [GA]","identifiers":["zigbee2mqtt_bridge_0x6c5cb1fffe992e53"],"manufacturer":"Zigbee2MQTT","model":"Bridge","name":"Zigbee2MQTT Bridge","sw_version":"1.39.1"},"device_class":"problem","enabled_by_default":false,"entity_category":"diagnostic","name":"Restart required","object_id":"zigbee2mqtt_bridge_restart_required","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/bridge/info","unique_id":"bridge_0x6c5cb1fffe992e53_restart_required_zigbee2mqtt","value_template":"{{ value_json.restart_required }}"}'
[2024-08-27 02:11:27] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/button/1221051039810110150109113116116_0x6c5cb1fffe992e53/restart/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"availability_mode":"all","command_topic":"zigbee2mqtt/bridge/request/restart","device":{"hw_version":"EmberZNet 7.4.2 [GA]","identifiers":["zigbee2mqtt_bridge_0x6c5cb1fffe992e53"],"manufacturer":"Zigbee2MQTT","model":"Bridge","name":"Zigbee2MQTT Bridge","sw_version":"1.39.1"},"device_class":"restart","name":"Restart","object_id":"zigbee2mqtt_bridge_restart","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"payload_press":"","unique_id":"bridge_0x6c5cb1fffe992e53_restart_zigbee2mqtt"}'
[2024-08-27 02:11:27] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/select/1221051039810110150109113116116_0x6c5cb1fffe992e53/log_level/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"availability_mode":"all","command_template":"{\"options\": {\"advanced\": {\"log_level\": \"{{ value }}\" } } }","command_topic":"zigbee2mqtt/bridge/request/options","device":{"hw_version":"EmberZNet 7.4.2 [GA]","identifiers":["zigbee2mqtt_bridge_0x6c5cb1fffe992e53"],"manufacturer":"Zigbee2MQTT","model":"Bridge","name":"Zigbee2MQTT Bridge","sw_version":"1.39.1"},"entity_category":"config","name":"Log level","object_id":"zigbee2mqtt_bridge_log_level","options":["error","warning","info","debug"],"origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/bridge/info","unique_id":"bridge_0x6c5cb1fffe992e53_log_level_zigbee2mqtt","value_template":"{{ value_json.log_level | lower }}"}'
[2024-08-27 02:11:27] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/1221051039810110150109113116116_0x6c5cb1fffe992e53/version/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"availability_mode":"all","device":{"hw_version":"EmberZNet 7.4.2 [GA]","identifiers":["zigbee2mqtt_bridge_0x6c5cb1fffe992e53"],"manufacturer":"Zigbee2MQTT","model":"Bridge","name":"Zigbee2MQTT Bridge","sw_version":"1.39.1"},"entity_category":"diagnostic","icon":"mdi:zigbee","name":"Version","object_id":"zigbee2mqtt_bridge_version","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/bridge/info","unique_id":"bridge_0x6c5cb1fffe992e53_version_zigbee2mqtt","value_template":"{{ value_json.version }}"}'
[2024-08-27 02:11:27] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/1221051039810110150109113116116_0x6c5cb1fffe992e53/coordinator_version/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"availability_mode":"all","device":{"hw_version":"EmberZNet 7.4.2 [GA]","identifiers":["zigbee2mqtt_bridge_0x6c5cb1fffe992e53"],"manufacturer":"Zigbee2MQTT","model":"Bridge","name":"Zigbee2MQTT Bridge","sw_version":"1.39.1"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:chip","name":"Coordinator version","object_id":"zigbee2mqtt_bridge_coordinator_version","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/bridge/info","unique_id":"bridge_0x6c5cb1fffe992e53_coordinator_version_zigbee2mqtt","value_template":"{{ value_json.coordinator.meta.revision }}"}'
[2024-08-27 02:11:27] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/1221051039810110150109113116116_0x6c5cb1fffe992e53/network_map/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"availability_mode":"all","device":{"hw_version":"EmberZNet 7.4.2 [GA]","identifiers":["zigbee2mqtt_bridge_0x6c5cb1fffe992e53"],"manufacturer":"Zigbee2MQTT","model":"Bridge","name":"Zigbee2MQTT Bridge","sw_version":"1.39.1"},"enabled_by_default":false,"entity_category":"diagnostic","json_attributes_template":"{{ value_json.data.value | tojson }}","json_attributes_topic":"zigbee2mqtt/bridge/response/networkmap","name":"Network map","object_id":"zigbee2mqtt_bridge_network_map","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/bridge/response/networkmap","unique_id":"bridge_0x6c5cb1fffe992e53_network_map_zigbee2mqtt","value_template":"{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"}'
[2024-08-27 02:11:27] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/1221051039810110150109113116116_0x6c5cb1fffe992e53/permit_join_timeout/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"availability_mode":"all","device":{"hw_version":"EmberZNet 7.4.2 [GA]","identifiers":["zigbee2mqtt_bridge_0x6c5cb1fffe992e53"],"manufacturer":"Zigbee2MQTT","model":"Bridge","name":"Zigbee2MQTT Bridge","sw_version":"1.39.1"},"device_class":"duration","entity_category":"diagnostic","name":"Permit join timeout","object_id":"zigbee2mqtt_bridge_permit_join_timeout","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/bridge/info","unique_id":"bridge_0x6c5cb1fffe992e53_permit_join_timeout_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ iif(value_json.permit_join_timeout is defined, value_json.permit_join_timeout, None) }}"}'
[2024-08-27 02:11:27] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/switch/1221051039810110150109113116116_0x6c5cb1fffe992e53/permit_join/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"availability_mode":"all","command_topic":"zigbee2mqtt/bridge/request/permit_join","device":{"hw_version":"EmberZNet 7.4.2 [GA]","identifiers":["zigbee2mqtt_bridge_0x6c5cb1fffe992e53"],"manufacturer":"Zigbee2MQTT","model":"Bridge","name":"Zigbee2MQTT Bridge","sw_version":"1.39.1"},"icon":"mdi:human-greeting-proximity","name":"Permit join","object_id":"zigbee2mqtt_bridge_permit_join","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"payload_off":"false","payload_on":"true","state_topic":"zigbee2mqtt/bridge/info","unique_id":"bridge_0x6c5cb1fffe992e53_permit_join_zigbee2mqtt","value_template":"{{ value_json.permit_join | lower }}"}'

@darkxst
Copy link
Owner

darkxst commented Aug 28, 2024

I suppose this is causing it to fail, but not sure why...

2024-08-27 01:18:49 emscripten bellows.ezsp[42] DEBUG Resetting EZSP
2024-08-27 01:18:49 emscripten bellows.uart[42] DEBUG Resetting ASH
2024-08-27 01:18:49 emscripten bellows.uart[42] DEBUG Sending: b'1ac038bc7e'
2024-08-27 01:18:50 emscripten bellows.uart[42] DEBUG RSTACK Version: 2 Reason: RESET_POWER_ON frame: b'c102029b7b7e'
2024-08-27 01:18:50 emscripten bellows.ezsp[42] INFO NCP entered failed state. No application handler registered, ignoring...
2024-08-27 01:18:54 emscripten bellows.uart[42] DEBUG Connection lost: None
2024-08-27 01:18:54 emscripten bellows.uart[42] DEBUG Closed serial connection

can someone with the above errors, try test with this patched flasher
https://darkxst.github.io/cp-test/

@NickFurlo
Copy link

NickFurlo commented Aug 31, 2024

Came across this issue while trying to flash my new ZBDongle-E. cp-test appears to work in that it recognizes the firmware version and provides an options to upgrade, but the install immediately fails for me.

silabs_flasher (2).log

@yvess16
Copy link

yvess16 commented Sep 8, 2024

I suppose this is causing it to fail, but not sure why...

2024-08-27 01:18:49 emscripten bellows.ezsp[42] DEBUG Resetting EZSP
2024-08-27 01:18:49 emscripten bellows.uart[42] DEBUG Resetting ASH
2024-08-27 01:18:49 emscripten bellows.uart[42] DEBUG Sending: b'1ac038bc7e'
2024-08-27 01:18:50 emscripten bellows.uart[42] DEBUG RSTACK Version: 2 Reason: RESET_POWER_ON frame: b'c102029b7b7e'
2024-08-27 01:18:50 emscripten bellows.ezsp[42] INFO NCP entered failed state. No application handler registered, ignoring...
2024-08-27 01:18:54 emscripten bellows.uart[42] DEBUG Connection lost: None
2024-08-27 01:18:54 emscripten bellows.uart[42] DEBUG Closed serial connection

can someone with the above errors, try test with this patched flasher https://darkxst.github.io/cp-test/

just came across this, as i had the same issues. Exact same logs as you mentioned. Tried to flash on https://darkxst.github.io/cp-test/ and it worked fine! Thanks so much!
Out of curiosity, what changed?

@giandena
Copy link

giandena commented Oct 2, 2024

can someone with the above errors, try test with this patched flasher https://darkxst.github.io/cp-test/

just came across this, as i had the same issues. Exact same logs as you mentioned. Tried to flash on https://darkxst.github.io/cp-test/ and it worked fine! Thanks so much! Out of curiosity, what changed?

Using this tool I finally saw the update page, unfortunately, the update is not completed anyway. I've been waiting for 30 minutes but nothing happens.
1
2

@darkxst
Copy link
Owner

darkxst commented Oct 2, 2024

Out of curiosity, what changed?

Sonoff changed the usb serial chip, the windows driver for this new chip (cp2102) has some quirks that reset device at an inconvenient time.

@darkxst
Copy link
Owner

darkxst commented Oct 2, 2024

Using this tool I finally saw the update page, unfortunately, the update is not completed anyway. I've been waiting for 30 minutes but nothing happens.

Try get logs from developer tools (F12)

@giandena
Copy link

giandena commented Oct 2, 2024

@pashdown
Copy link

pashdown commented Oct 6, 2024

  • MacOS Sequoia 15.0.1
  • SiLabs VCP MacOSX Driver
  • cu.SLAB_USBtoUART
  • Sonoff ZBDongle-E

Unable to identify existing default firmware with normal and cp-test flasher. Complains about the buggy macOS driver even though I'm using SiLabs. LED changes from red to green in the process. Here are the cp-test logs:
silabs_flasher (1).log

@giandena
Copy link

giandena commented Oct 9, 2024

Solved ! I was able to update the firmware using Secure CRT on windows10.
The official instructions do not explain exactly how to start the boot phase and then press the key 1.
The most important step!
Once the device is connected you need to remove it and reinsert it into the USB port again while holding down the boot key on the device.
At this point in SecureCRT you need to press the reconnect button and then release the boot button. Only in this way the menu appear that allows you to update the firmware.
Image

@quickquest88
Copy link

quickquest88 commented Oct 15, 2024

I'm having issues with this too. Def have the zbdongle-e, when I open the web tool, it will recognize the dongle, then throw an error about not connecting.

silabs_flasher (1).log
silabs_flasher.log

can some one help, please?

edit: with cp test, it seems to recognize the device, but fails at installing the firmware.

silabs_flasher (3).log

@darkxst
Copy link
Owner

darkxst commented Oct 15, 2024

There are known issues with the windows driver resetting device when we open serial port. Not managed to work around this yet.

If you are using Home Assistant, easiest option is to use the "Silabs Flasher" addon to flash dongle. This has a hidden option to specify custom URL to flash.

@quickquest88
Copy link

That didn't work either. "Universal-silabs-flasher-up exited code 6."

@darkxst
Copy link
Owner

darkxst commented Oct 15, 2024

can you paste full logs.

and make sure you are using the "raw" links from github

@quickquest88
Copy link

Silicon Labs Flasher
Info
Documentation
Configuration
Log
Silicon Labs Flasher
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service banner: starting


Add-on: Silicon Labs Flasher
Silicon Labs firmware flasher add-on

Add-on version: 0.3.0
You are running the latest version of this add-on.
System: Home Assistant OS 13.1 (amd64 / generic-x86-64)
Home Assistant Core: 2024.10.2
Home Assistant Supervisor: 2024.10.2

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

s6-rc: info: service banner successfully started
s6-rc: info: service universal-silabs-flasher: starting
[19:51:38] INFO: universal-silabs-flasher-up script exited with code 6
s6-rc: warning: unable to start service universal-silabs-flasher: command exited 6
s6-rc: info: service banner: stopping
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service banner successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service banner: starting


Add-on: Silicon Labs Flasher
Silicon Labs firmware flasher add-on

Add-on version: 0.3.0
You are running the latest version of this add-on.
System: Home Assistant OS 13.1 (amd64 / generic-x86-64)
Home Assistant Core: 2024.10.2
Home Assistant Supervisor: 2024.10.2

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

s6-rc: info: service banner successfully started
s6-rc: info: service universal-silabs-flasher: starting
[19:51:42] INFO: universal-silabs-flasher-up script exited with code 6
s6-rc: warning: unable to start service universal-silabs-flasher: command exited 6
s6-rc: info: service banner: stopping
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service banner successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service banner: starting


Add-on: Silicon Labs Flasher
Silicon Labs firmware flasher add-on

Add-on version: 0.3.0
You are running the latest version of this add-on.
System: Home Assistant OS 13.1 (amd64 / generic-x86-64)
Home Assistant Core: 2024.10.2
Home Assistant Supervisor: 2024.10.2

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

s6-rc: info: service banner successfully started
s6-rc: info: service universal-silabs-flasher: starting
[19:53:22] INFO: universal-silabs-flasher-up script exited with code 6
s6-rc: warning: unable to start service universal-silabs-flasher: command exited 6
s6-rc: info: service banner: stopping
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service banner successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

@darkxst
Copy link
Owner

darkxst commented Oct 15, 2024

Is something else connected to dongle? make sure ZHA or Z2M dont have active connection to dongle while flashing

@quickquest88
Copy link

quickquest88 commented Oct 15, 2024

I do not think I have any zigbee integrations or add ons. I did uninstall silicon labs multiprotocol.

Do I need to configure the dongle on the devices page?

@darkxst
Copy link
Owner

darkxst commented Oct 15, 2024

Do I need to configure the dongle on the devices page?

yes you need to configure the dongle as device in silabs flasher addon

@quickquest88
Copy link

quickquest88 commented Oct 15, 2024

Sorry for the delay, still no go.

The flasher just sits there and doesn't do anything. I set the device up on the devices page and started a new network. Still nothing.

Edit: I'll attach a log from the Linux web tool as soon as I get home.

Edit2: I think I'm just stupid, and doing something totally wrong. Sunday, I ordered an slb-07, just in case the sonoff I bought was bad. It does exactly the same thing. Linux web flasher, and the ha based flasher, neither work. Now, with the ha based flasher, I get an error exiting code 1. And then it quits.

@Vaiperu
Copy link

Vaiperu commented Oct 18, 2024

EDIT: I used my wifes WIN 11 laptop and it worked just fine ... guess it's time to move to win 11

I have the same issue. Ordered the ZBDongle-E 3 with the SL chip EFR32MG21

Device Manager shows it as "Silicon Labs CP210x USB to UART Bridge (COM5)" (I installed the driver manually from slabs.com

Logs:
`Connection failed
The running firmware could not be detected.

Make sure the USB port works and if you are using a USB extension cable, make sure the cable can transfer data. Unplug the Sonoff ZBDongle-E and plug it back in to reset and try again.`

2024-10-18 21:11:58 emscripten universal_silabs_flasher.flasher[42] INFO Probing ApplicationType.GECKO_BOOTLOADER at 115200 baud
2024-10-18 21:11:58 emscripten zigpy.serial[42] DEBUG Opening a serial connection to '/dev/webserial' (115200 baudrate)
2024-10-18 21:11:58 emscripten universal_silabs_flasher.common[42] DEBUG Connection made: <webserial_transport.WebSerialTransport object at 0x15be540>
2024-10-18 21:11:58 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'3'
2024-10-18 21:12:00 emscripten webserial_transport[42] DEBUG Closing serial port
2024-10-18 21:12:00 emscripten universal_silabs_flasher.flasher[42] INFO Probing ApplicationType.CPC at 460800 baud
2024-10-18 21:12:00 emscripten zigpy.serial[42] DEBUG Opening a serial connection to '/dev/webserial' (460800 baudrate)
2024-10-18 21:12:00 emscripten webserial_transport[42] DEBUG Closed serial port
2024-10-18 21:12:00 emscripten universal_silabs_flasher.common[42] DEBUG Connection made: 
/<webserial_transport.WebSerialTransport object at 0x1aab508>
2024-10-18 21:12:00 emscripten universal_silabs_flasher.cpc[42] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 21:12:00 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 21:12:00 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'x'
2024-10-18 21:12:00 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'\x00'
2024-10-18 21:12:01 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 1 of 4)
2024-10-18 21:12:01 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'\x80'
2024-10-18 21:12:01 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'\xf8\x00x\x80\x00\x80\x00\xf8\xf8\x80\xf8\xf8x\xf8'
2024-10-18 21:12:01 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to parse buffer bytearray(b'\xf8'): ValueError('Invalid flag')
2024-10-18 21:12:01 emscripten universal_silabs_flasher.cpc[42] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 21:12:01 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 21:12:02 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 2 of 4)
2024-10-18 21:12:02 emscripten universal_silabs_flasher.cpc[42] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 21:12:02 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 21:12:03 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 3 of 4)
2024-10-18 21:12:03 emscripten universal_silabs_flasher.cpc[42] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 21:12:03 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 21:12:04 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 4 of 4)
2024-10-18 21:12:04 emscripten webserial_transport[42] DEBUG Closing serial port
2024-10-18 21:12:04 emscripten universal_silabs_flasher.flasher[42] INFO Probing ApplicationType.CPC at 115200 baud
2024-10-18 21:12:04 emscripten zigpy.serial[42] DEBUG Opening a serial connection to '/dev/webserial' (115200 baudrate)
2024-10-18 21:12:04 emscripten webserial_transport[42] DEBUG Closed serial port
2024-10-18 21:12:04 emscripten universal_silabs_flasher.common[42] DEBUG Connection made: <webserial_transport.WebSerialTransport object at 0x1c4c278>
2024-10-18 21:12:04 emscripten universal_silabs_flasher.cpc[42] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 21:12:04 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 21:12:04 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'\x11'
2024-10-18 21:12:05 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 1 of 4)
2024-10-18 21:12:05 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'\x1a'
2024-10-18 21:12:05 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'\xc1\x02\x02\x9b{~'
2024-10-18 21:12:05 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to parse buffer bytearray(b'~'): ValueError('Invalid flag')
2024-10-18 21:12:05 emscripten universal_silabs_flasher.cpc[42] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 21:12:05 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 21:12:07 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 2 of 4)
2024-10-18 21:12:07 emscripten universal_silabs_flasher.cpc[42] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 21:12:07 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 21:12:08 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 3 of 4)
2024-10-18 21:12:08 emscripten universal_silabs_flasher.cpc[42] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 21:12:08 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 21:12:09 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 4 of 4)
2024-10-18 21:12:09 emscripten webserial_transport[42] DEBUG Closing serial port
2024-10-18 21:12:09 emscripten universal_silabs_flasher.flasher[42] INFO Probing ApplicationType.CPC at 230400 baud
2024-10-18 21:12:09 emscripten zigpy.serial[42] DEBUG Opening a serial connection to '/dev/webserial' (230400 baudrate)
2024-10-18 21:12:09 emscripten webserial_transport[42] DEBUG Closed serial port
2024-10-18 21:12:09 emscripten universal_silabs_flasher.common[42] DEBUG Connection made: <webserial_transport.WebSerialTransport object at 0x18b6c30>
2024-10-18 21:12:09 emscripten universal_silabs_flasher.cpc[42] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 21:12:09 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 21:12:09 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'\x06'
2024-10-18 21:12:09 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'\xe0'
2024-10-18 21:12:10 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 1 of 4)
2024-10-18 21:12:10 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'\x98'
2024-10-18 21:12:10 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'\xe0\x06\x18\x18\x9e\xf8\x9e\x86\xfe'
2024-10-18 21:12:10 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to parse buffer bytearray(b'\xfe'): ValueError('Invalid flag')
2024-10-18 21:12:10 emscripten universal_silabs_flasher.cpc[42] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 21:12:10 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 21:12:11 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 2 of 4)
2024-10-18 21:12:11 emscripten universal_silabs_flasher.cpc[42] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 21:12:11 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 21:12:12 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 3 of 4)
2024-10-18 21:12:12 emscripten universal_silabs_flasher.cpc[42] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 21:12:12 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 21:12:13 emscripten universal_silabs_flasher.cpc[42] DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 4 of 4)
2024-10-18 21:12:13 emscripten webserial_transport[42] DEBUG Closing serial port
2024-10-18 21:12:13 emscripten universal_silabs_flasher.flasher[42] INFO Probing ApplicationType.EZSP at 115200 baud
2024-10-18 21:12:13 emscripten zigpy.serial[42] DEBUG Opening a serial connection to '/dev/webserial' (115200 baudrate)
2024-10-18 21:12:13 emscripten webserial_transport[42] DEBUG Closed serial port
2024-10-18 21:12:13 emscripten bellows.ezsp[42] DEBUG Resetting EZSP
2024-10-18 21:12:13 emscripten bellows.uart[42] DEBUG Resetting ASH
2024-10-18 21:12:13 emscripten bellows.uart[42] DEBUG Sending: b'1ac038bc7e'
2024-10-18 21:12:14 emscripten bellows.uart[42] DEBUG RSTACK Version: 2 Reason: RESET_POWER_ON frame: b'c102029b7b7e'
2024-10-18 21:12:14 emscripten bellows.ezsp[42] INFO NCP entered failed state. No application handler registered, ignoring...
2024-10-18 21:12:18 emscripten bellows.uart[42] DEBUG Connection lost: None
2024-10-18 21:12:18 emscripten bellows.uart[42] DEBUG Closed serial connection
2024-10-18 21:12:18 emscripten universal_silabs_flasher.flasher[42] INFO Probing ApplicationType.EZSP at 230400 baud
2024-10-18 21:12:18 emscripten zigpy.serial[42] DEBUG Opening a serial connection to '/dev/webserial' (230400 baudrate)
2024-10-18 21:12:18 emscripten webserial_transport[42] DEBUG Closing serial port
2024-10-18 21:12:18 emscripten webserial_transport[42] DEBUG Closed serial port
2024-10-18 21:12:18 emscripten bellows.ezsp[42] DEBUG Resetting EZSP
2024-10-18 21:12:18 emscripten bellows.uart[42] DEBUG Resetting ASH
2024-10-18 21:12:18 emscripten bellows.uart[42] DEBUG Sending: b'1ac038bc7e'
2024-10-18 21:12:23 emscripten bellows.uart[42] DEBUG Connection lost: None
2024-10-18 21:12:23 emscripten bellows.uart[42] DEBUG Closed serial connection
2024-10-18 21:12:23 emscripten universal_silabs_flasher.flasher[42] INFO Probing ApplicationType.SPINEL at 460800 baud
2024-10-18 21:12:23 emscripten zigpy.serial[42] DEBUG Opening a serial connection to '/dev/webserial' (460800 baudrate)
2024-10-18 21:12:23 emscripten webserial_transport[42] DEBUG Closing serial port
2024-10-18 21:12:23 emscripten webserial_transport[42] DEBUG Closed serial port
2024-10-18 21:12:23 emscripten universal_silabs_flasher.common[42] DEBUG Connection made: <webserial_transport.WebSerialTransport object at 0x18a9970>
2024-10-18 21:12:23 emscripten universal_silabs_flasher.spinel[42] DEBUG Sending frame SpinelFrame(header=SpinelHeader(transaction_id=3, network_link_id=0, flag=2), command_id=<CommandID.PROP_VALUE_GET: 2>, data=b'\x02')
2024-10-18 21:12:23 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'~\x83\x02\x02\xe65~'
2024-10-18 21:12:23 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'x'
2024-10-18 21:12:23 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'\x00'
2024-10-18 21:12:24 emscripten universal_silabs_flasher.spinel[42] DEBUG Failed to send SpinelFrame(header=SpinelHeader(network_link_id=0, flag=2), command_id=<CommandID.PROP_VALUE_GET: 2>, data=b'\x02'), trying again in 0.10s (attempt 1 of 4)
2024-10-18 21:12:24 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'\x80'
2024-10-18 21:12:24 emscripten universal_silabs_flasher.common[42] DEBUG Received data b'\xf8\x00x\x80\x00\x80\x00\xf8\xf8\x80\xf8\xf8x\xf8'
2024-10-18 21:12:25 emscripten universal_silabs_flasher.spinel[42] DEBUG Sending frame SpinelFrame(header=SpinelHeader(transaction_id=3, network_link_id=0, flag=2), command_id=<CommandID.PROP_VALUE_GET: 2>, data=b'\x02')
2024-10-18 21:12:25 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'~\x83\x02\x02\xe65~'
2024-10-18 21:12:26 emscripten universal_silabs_flasher.spinel[42] DEBUG Failed to send SpinelFrame(header=SpinelHeader(network_link_id=0, flag=2), command_id=<CommandID.PROP_VALUE_GET: 2>, data=b'\x02'), trying again in 0.10s (attempt 2 of 4)
2024-10-18 21:12:26 emscripten universal_silabs_flasher.spinel[42] DEBUG Sending frame SpinelFrame(header=SpinelHeader(transaction_id=3, network_link_id=0, flag=2), command_id=<CommandID.PROP_VALUE_GET: 2>, data=b'\x02')
2024-10-18 21:12:26 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'~\x83\x02\x02\xe65~'
2024-10-18 21:12:27 emscripten universal_silabs_flasher.spinel[42] DEBUG Failed to send SpinelFrame(header=SpinelHeader(network_link_id=0, flag=2), command_id=<CommandID.PROP_VALUE_GET: 2>, data=b'\x02'), trying again in 0.10s (attempt 3 of 4)
2024-10-18 21:12:27 emscripten universal_silabs_flasher.spinel[42] DEBUG Sending frame SpinelFrame(header=SpinelHeader(transaction_id=3, network_link_id=0, flag=2), command_id=<CommandID.PROP_VALUE_GET: 2>, data=b'\x02')
2024-10-18 21:12:27 emscripten universal_silabs_flasher.common[42] DEBUG Sending data b'~\x83\x02\x02\xe65~'
2024-10-18 21:12:28 emscripten universal_silabs_flasher.spinel[42] DEBUG Failed to send SpinelFrame(header=SpinelHeader(network_link_id=0, flag=2), command_id=<CommandID.PROP_VALUE_GET: 2>, data=b'\x02'), trying again in 0.10s (attempt 4 of 4)
2024-10-18 21:12:28 emscripten webserial_transport[42] DEBUG Closing serial port
2024-10-18 21:12:28 emscripten webserial_transport[42] DEBUG Closed serial port

@quickquest88
Copy link

quickquest88 commented Oct 18, 2024

When I try to flash using the web tool on a linux box, i get this log

silabs_flasher (3).log

update: running the flashing tool from HA, I get this:

[18:30:49] INFO: Starting universal-silabs-flasher with /dev/ttyUSB0 (bootloader baudrate 460800)
2024-10-15 18:30:49.943 core-silabs-flasher asyncio DEBUG Using selector: EpollSelector
Error: '/root/firmware.gbl' does not appear to be a valid firmware image: ValueError('Unknown firmware image type')
[18:30:50] INFO: universal-silabs-flasher-up script exited with code 1
s6-rc: warning: unable to start service universal-silabs-flasher: command exited 1
s6-rc: info: service banner: stopping
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service banner successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service banner: starting


Add-on: Silicon Labs Flasher
Silicon Labs firmware flasher add-on

Add-on version: 0.3.0
You are running the latest version of this add-on.
System: Home Assistant OS 13.2 (amd64 / generic-x86-64)
Home Assistant Core: 2024.10.2
Home Assistant Supervisor: 2024.10.2

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

s6-rc: info: service banner successfully started
s6-rc: info: service universal-silabs-flasher: starting
[18:32:28] INFO: Starting universal-silabs-flasher with /dev/ttyUSB0 (bootloader baudrate 460800)
2024-10-15 18:32:29.252 core-silabs-flasher asyncio DEBUG Using selector: EpollSelector
Error: '/root/firmware.gbl' does not appear to be a valid firmware image: ValueError('Unknown firmware image type')
[18:32:29] INFO: universal-silabs-flasher-up script exited with code 1
s6-rc: warning: unable to start service universal-silabs-flasher: command exited 1
s6-rc: info: service banner: stopping
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service banner successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service banner: starting


Add-on: Silicon Labs Flasher
Silicon Labs firmware flasher add-on

Add-on version: 0.3.0
You are running the latest version of this add-on.
System: Home Assistant OS 13.2 (amd64 / generic-x86-64)
Home Assistant Core: 2024.10.2
Home Assistant Supervisor: 2024.10.2

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

s6-rc: info: service banner successfully started
s6-rc: info: service universal-silabs-flasher: starting
[19:54:06] INFO: Starting universal-silabs-flasher with /dev/ttyUSB0 (bootloader baudrate 460800)
2024-10-18 19:54:06.622 core-silabs-flasher asyncio DEBUG Using selector: EpollSelector
2024-10-18 19:54:06.623 core-silabs-flasher universal_silabs_flasher.flash INFO Extracted GBL metadata: NabuCasaMetadata(metadata_version=1, sdk_version='4.4.4', ezsp_version=None, ot_rcp_version=None, cpc_version=None, fw_type=<FirmwareImageType.RCP_UART_802154: 'rcp-uart-802154'>, baudrate=460800)
2024-10-18 19:54:06.623 core-silabs-flasher universal_silabs_flasher.flash DEBUG Probing app type ApplicationType.CPC first
2024-10-18 19:54:06.623 core-silabs-flasher universal_silabs_flasher.flash DEBUG Probing with 460800 baudrate first
2024-10-18 19:54:06.623 core-silabs-flasher universal_silabs_flasher.flasher INFO Probing ApplicationType.GECKO_BOOTLOADER at 460800 baud
2024-10-18 19:54:06.623 core-silabs-flasher zigpy.serial DEBUG Opening a serial connection to '/dev/ttyUSB0' (baudrate=460800, xonxoff=False, rtscts=False)
2024-10-18 19:54:06.626 core-silabs-flasher universal_silabs_flasher.common DEBUG Connection made: SerialTransport(<_UnixSelectorEventLoop running=True closed=False debug=False>, <universal_silabs_flasher.gecko_bootloader.GeckoBootloaderProtocol object at 0x7f66251780d0>, Serial<id=0x7f66251b49a0, open=True>(port='/dev/ttyUSB0', baudrate=460800, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))
2024-10-18 19:54:06.626 core-silabs-flasher universal_silabs_flasher.common DEBUG Sending data b'\n'
2024-10-18 19:54:06.626 core-silabs-flasher universal_silabs_flasher.common DEBUG Sending data b'3'
2024-10-18 19:54:08.631 core-silabs-flasher universal_silabs_flasher.flasher INFO Probing ApplicationType.CPC at 460800 baud
2024-10-18 19:54:08.631 core-silabs-flasher zigpy.serial DEBUG Opening a serial connection to '/dev/ttyUSB0' (baudrate=460800, xonxoff=False, rtscts=False)
2024-10-18 19:54:08.633 core-silabs-flasher universal_silabs_flasher.common DEBUG Connection made: SerialTransport(<_UnixSelectorEventLoop running=True closed=False debug=False>, <universal_silabs_flasher.cpc.CPCProtocol object at 0x7f66251da3d0>, Serial<id=0x7f66251b49a0, open=True>(port='/dev/ttyUSB0', baudrate=460800, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))
2024-10-18 19:54:08.634 core-silabs-flasher universal_silabs_flasher.cpc DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 19:54:08.635 core-silabs-flasher universal_silabs_flasher.common DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 19:54:09.637 core-silabs-flasher universal_silabs_flasher.cpc DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 1 of 4)
2024-10-18 19:54:09.738 core-silabs-flasher universal_silabs_flasher.cpc DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 19:54:09.739 core-silabs-flasher universal_silabs_flasher.common DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 19:54:10.740 core-silabs-flasher universal_silabs_flasher.cpc DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 2 of 4)
2024-10-18 19:54:10.841 core-silabs-flasher universal_silabs_flasher.cpc DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 19:54:10.842 core-silabs-flasher universal_silabs_flasher.common DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'
2024-10-18 19:54:11.845 core-silabs-flasher universal_silabs_flasher.cpc DEBUG Failed to send CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b''))), trying again in 0.10s (attempt 3 of 4)
2024-10-18 19:54:11.946 core-silabs-flasher universal_silabs_flasher.cpc DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_GET: 2>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=b'')))
2024-10-18 19:54:11.947 core-silabs-flasher universal_silabs_flasher.common DEBUG Sending data b'\x14\x00\n\x00\xc4U\xd3\x02\x00\x04\x00\x03\x00\x00\x00\xdb\x12'

@quickquest88
Copy link

Now I have found this
"For ubuntu, you have to allow chromium to acces your usb devices: Settings > Apps > Chromium Web Browser > Permissions > Access USB Hardware directly"

WTF does that mean? I have installed Ubuntu. There is no "settings". There is "system settings", but there is no "applications" there, only "applets", and chromium doesn't appear on that list. How do I find this setting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants