xyzroe / ZigStarGW-MT

GUI wrapper designed for convenient service work with TI CC1352/CC2538/CC2652 based Zigbee sticks or gateways. Packed into single executable file
GNU General Public License v3.0
276 stars 18 forks source link

Auto BSL reset not working with USB adapters using Silabs CP2102N like Sonoff USB Plus Dongle #2

Open Hedda opened 2 years ago

Hedda commented 2 years ago

FYI, automatic BSL reset not working on Windows OS (Microsoft Windows 10 operating system) with USB adapters based on Silicon Labs CP2102N USB-to-UART chip and TI CC2652P Zigbee chip like the new SONOFF Zigbee 3.0 USB Dongle Plus by ITead:

https://itead.cc/product/sonoff-zigbee-3-0-usb-dongle-plus/

Get error message:

Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'

Know issue in upstream cc2538-bsl by JelmerT but a workaround do exist by using boot reset code from Sonoff uartlog.py script:

https://github.com/JelmerT/cc2538-bsl/issues/113

image

mercenaruss commented 2 years ago

@Hedda need to use BSL button to enter bootloader, this is problem with hardware design.

Hedda commented 2 years ago

@Hedda need to use BSL button to enter bootloader, this is problem with hardware design.

As I understand from the discussion in https://github.com/JelmerT/cc2538-bsl/issues/113 it is not really a problem with the hardware but either a bug in the CP2102N revision or more likely an issue with Microsoft Windows serial interface in combination with the bug in the CP2102N revision they use. It should however be possible to workaround those issues by adding additional delays, so this might get "fixed" in a future version of https://github.com/JelmerT/cc2538-bsl

xyzroe commented 2 years ago

When support will be implemented in JelmerT / cc2538-bsl then I will add.

Hedda commented 2 years ago

@xyzroe FYI, JelmerT got it working via a new option attribute here -> https://github.com/JelmerT/cc2538-bsl/pull/114

xyzroe commented 2 years ago

@xyzroe FYI, JelmerT got it working via a new option attribute here -> JelmerT/cc2538-bsl#114

OK. Thank you. I'll do it at my leisure.

xyzroe commented 2 years ago

@Hedda Could you please check this video? https://youtu.be/-0JXHbYDFTs Some guy flash sonoff stock using multitool with no changes or button pushes.

From 3:30

Hedda commented 2 years ago

@Hedda Could you please check this video? https://youtu.be/-0JXHbYDFTs Some guy flash sonoff stock using multitool with no changes or button pushes.

From 3:30

Video was removed before I could see it.

xyzroe commented 2 years ago

Re-uploaded here https://m.youtube.com/watch?v=Y7XDC9oer5I

On Jan 10, 2022, 3:54 PM +0200, Hedda @.***>, wrote:

@Hedda Could you please check this video? https://youtu.be/-0JXHbYDFTs Some guy flash sonoff stock using multitool with no changes or button pushes. From 3:30 Video was removed before I could see it. — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>

Hedda commented 2 years ago

See that he uses "ITead_Sonoff_Zigbee-delay" branch from https://github.com/JelmerT/cc2538-bsl/pull/114 to use Auto-BSL when not pressing button.

He must be pressing the BTL-button when using ZigStar GW Multi tool with ITead SONOFF Zigbee 3.0 USB Dongle Plus.

image

xyzroe commented 2 years ago

Screen Shot 2022-01-10 at 6 20 53 PM please watch again from 2:40

RadioLed2000 commented 2 years ago

Just now I could flash sonoff stick with GW Multi tool without opening enclosure!!!

  1. Plug it in the USB
  2. Read NVRAM
  3. Try to flash firmware, got an error
  4. Unplug and plug again to USB port
  5. Press Start to flash firmware and it successfelly flashed it

I don't know how it works, but it works)))

TheNutHouse84 commented 2 years ago

@Hedda I was also able to flash my sonoff dongle by doing same as @RadioLed2000.

fowl2 commented 1 year ago

Can confirm.

All I needed to do to flash without pressing the button was:

  1. Plug in the dongle normally
  2. click "write", receive "timeout" message
  3. unplug+plug
  4. click write again
xbmcnut commented 1 year ago

For me, I had to hold down the boot button for 20s before (and after) inserting the stick. 10s did not cut it multiple times. I kept getting Timeout waiting for ACK/NACK after 'Synch (0x55 0x55) prior.

AlanADV commented 1 year ago

Same here, only worked after holding the reset button for about 20 seconds after inserting the dongle.

pitkaha commented 1 year ago

For me, I had to hold down the boot button for 20s before (and after) inserting the stick. 10s did not cut it multiple times. I kept getting Timeout waiting for ACK/NACK after 'Synch (0x55 0x55) prior.

Same. For the next one fighting with Sonoff ZBDongle-P lets make it simple. For me this worked:

  1. Get ZigStar GW Multi and newest firmware here.
  2. Open the case, screws are PH0.
  3. Open ZigStar.
  4. Plug Sonoff into usb port while pushing down boot button and keep it pressed down for 20sec after power led has turned on.
  5. Choose the right port and the firmware you downloaded on ZigStar.
  6. Choose Erase, Write and Verify and click Write, the process bar should move quite quickly.