-
Notifications
You must be signed in to change notification settings - Fork 653
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
SONOFF Zigbee 3.0 USB Dongle Plus by ITead do support Auto BSL #328
Conversation
SONOFF Zigbee 3.0 USB Dongle Plus by ITead does support Auto BSL
By the way, can probably assume this adapter uses DIO_13 for BSL Trigger Pin since it looks to take most hardware design references from TI LAUNCHXL-CC26xR1 or Slaesh's CC2652RB stick and Electrolama's zzh first-generation of CC2652 adapters? ...and if so it probably also uses DIO_6 for red LED and DIO_7 for green LED? https://github.com/Koenkk/Z-Stack-firmware/blob/master/coordinator/Z-Stack_3.x.0/bin/README.md
|
As mentioned in JelmerT/cc2538-bsl#113 if you can figure out how much delay needs to be added in cc2538-bsl you should be able to flash without needing Please submit a PR if you do, so we can support more HW in the cc2538-bsl script! |
Hmm, are you saying accepting PR #328 is dependent on cc2538-bsl script by JelmerT supporting this for each dongle or not? Does a fix for JelmerT/cc2538-bsl#113 have to be merged into cc2538-bsl and working in there for "Auto BSL" to be listed as support by hardware in Koenkk's Z-Stack-firmware repo when the hardware does technically already support automatic BSL? I thought README.md in Koenkk/Z-Stack-firmware repo only listed different hardware-enabled features for each specific dongle? https://github.com/Koenkk/Z-Stack-firmware/blob/master/coordinator/Z-Stack_3.x.0/bin/README.md So what if "Auto-BSL" is now already supported by the hardware and working in another script other than the cc2538-bsl script? Not listing "Auto-BSL" as a hardware feature for the dongle could simply mean that new developers will ignore it for this dongle. At least as it stands now this README.md in Koenkk/Z-Stack-firmware repo does not specify that listing "Auto-BSL" support only equals that Auto-BSL is supported in the cc2538-bsl script by JelmerT for that specific dongle. In fact, the independent cc2538-bsl script is currently not mentioned in this repo at all so does that directly dependent connection seem very strange or is that just me? |
FYI, JelmerT got it working however I believe that help may still want in testing firmware upgrade(s) with his pull request patch for ITead’s Sonoff CC2652P USB dongle with JelmerT cc2538-bsl tool using the new option https://github.com/JelmerT/cc2538-bsl/tree/feature/ITead_Sonoff_Zigbee-delay Please report firmware upgrade issue with it or confirm it working under which operating system so this might get merged: (Again there is a longer related troubleshooting discussion in JelmerT/cc2538-bsl#114 with some more information on solution). |
Closing as PR #329 by @guozi7788 also contained this change setting Auto-BSL field to Yes value for the Sonoff Plus dongle now. |
UPDATE! Auto BSL works on ITead's Sonoff Zigbee 3.0 USB Dongle Plus using c2538-bsl with patch -> JelmerT/cc2538-bsl#114
The back-story is that several other Home Assistant community members have tested Sonoff provided uartLog.py script which seems to confirm "Auto BSL" is working even if it does not currently work with the current version of cc2538-bsl and llama-bsl.
https://community.home-assistant.io/t/itead-sonoff-zigbee-3-0-usb-dongle-plus-adapter-based-on-texas-instruments-cc2652p/340705/45
https://community.home-assistant.io/t/itead-sonoff-zigbee-3-0-usb-dongle-plus-adapter-based-on-texas-instruments-cc2652p/340705/96
Anyway, I have now also myself confirmed that running the attached
uartLog.py
script from Sonoff docx part as published in ITead's HOW TO FLASH FIRMWARE TO CC2652P instructions do indeed make ITead's Sonoff Zigbee 3.0 Plus Dongle automatically enter bootloader mode and after running that script just to get into BSL mode I could flash it directly using cc2538-bsl.py and llama-bsl.py scripts without having open the enclosure and pressing the BTL button which of course can be very convenient.Copy of attached script from ITead/Sonoff: uartLog.zip
This is code in Sonoff provided uartLog.py script that already works to enters the bootloader using Auto-BSL software reset:
So it looks like both pins are active low, and RTS is connected to reset and DTR is connected to the bootloader pin. Which should be the same as in the standard configuration in this script.
So the only difference I'm seeing is the extra delays in their script.
Try adding some delays in the same spots, and see if that makes it work.
PS: The probable reason why does not yet work in cc2538-bsl is needed extra delays in the script, see -> JelmerT/cc2538-bsl#113