itead / Sonoff_Zigbee_Dongle_Firmware

155 stars 18 forks source link

How to enter Bootloader Mode after flashing Sonoff_Zigbee_Dongle_Firmware/Dongle-E/Router/Z3RouterUSBDonlge_EZNet6.10.3_V1.0.0.gbl ? #1

Closed tukenmail closed 1 year ago

tukenmail commented 1 year ago

How to enter Bootloader Mode after flashing Sonoff_Zigbee_Dongle_Firmware/Dongle-E/Router/Z3RouterUSBDonlge_EZNet6.10.3_V1.0.0.gbl ? After flashing this router firmware, I can't enter Bootloader Mode through boot button. I can't flash other firmware anymore. Boot button is used by pair function. Help. Thank You.

chasetb commented 1 year ago

I used using the elelabs-zigbee-ezsp-utility to place my ZBDongle-E device back into Bootloader mode. It doesn't require holding down any buttons which is nice and the same utility can be used to flash firmware to the ZBDongle-E too.

darkxst commented 1 year ago

I have not had any issues getting into bootloader mode when flashed with router firmware. Just hold down the boot button while plugging into USB port and it will come up in the Gecko bootloader.

The Elelabs tool does not work when the ZBDongle-E has the router firmware flashed (it works perfectly with the standard firmware though), since the router firmware uses an ascii based serial shell which confuses the autodetection/probing of the device. I've not yet worked out how to get this firmware back into bootloader mode using software methods. Maybe one of the commands in the shell will allow to do this, however not found any documentation for that.

You can however use the shell to put the device back into pairing mode with the network leave command, without having to open the device to access the boot/pairing button! and there are a few other obvious commands such as info and version that return device/firmware info etc.

tukenmail commented 1 year ago

Hold down the boot button while plugging into USB port and it will come up in the Gecko bootloader.

It works. Thank you. But have to remove case. Hope it support elelabs-zigbee-ezsp-utility in the future.

JacekKac commented 1 year ago

I used using the elelabs-zigbee-ezsp-utility to place my ZBDongle-E device back into Bootloader mode. It doesn't require holding down any buttons which is nice and the same utility can be used to flash firmware to the ZBDongle-E too.

@chasetb can you help with flashin sonooff "E" dongle with this tool? nor sure how to use it in case of sonoff

JacekKac commented 1 year ago

ok i did it. one more question how to software reset the devic to allow new pairing?

darkxst commented 1 year ago

@JacekKac in router mode you can issue network leave command over serial.

JacekKac commented 1 year ago

can you provide a way to do it from a command line on unix system ? i was always using some python script to handle devices

darkxst commented 1 year ago

Plug into computer USB and run screen /dev/ttyUSB0 (or whatever the actual device is detected as) then you get a shell to send the commands

darkxst commented 1 year ago

or use minicom or whatever serial console you have available on your distro of choice