Advertisement
PalleA

Flash Sonoff Zigbee 3.0 Dongle plus

Jan 20th, 2022 (edited)
695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Install Python for windows download right here and install it.
  2. # Make sure you enable everything when installing
  3. # it might be necessary to reboot computer
  4. https://www.python.org/downloads/
  5. make a folder C:\sonoff
  6. run cmd as administrator
  7. type powershell and press enter
  8. Type each command below - step by step
  9.  
  10. # go to the folder
  11. cd c:\sonoff
  12.  
  13. # Upgrade PIP as so it is the latest release
  14. py -m pip install --upgrade pip
  15.  
  16. # Install the module for Import Serial
  17. py -m pip install pyserial
  18.  
  19. # Install the Module for flashing HEX-files
  20. py -m pip install intelhex
  21.  
  22. # Install the module gevent for the flash py file.
  23. py -m pip install gevent
  24.  
  25. # Install zigby-znp to be able to flash
  26. py -m pip install zigpy-znp
  27.  
  28. # download the portfinder
  29. Invoke-WebRequest -uri "https://github.com/JelmerT/cc2538-bsl/files/7504452/uartLog.zip" -outfile uartLog.zip
  30.  
  31. # Unzip the uartlog.zip
  32. Expand-Archive uartlog.zip -destinationpath C:\sonoff
  33.  
  34. # download the flasher
  35. Invoke-WebRequest -uri "https://github.com/JelmerT/cc2538-bsl/blob/feature/ITead_Sonoff_Zigbee-delay/cc2538-bsl.py?raw=true" -outfile "cc2538-bsl.py"
  36.  
  37. # download the HEX-file (Current latest master-branch firmware)
  38. Invoke-WebRequest "https://github.com/Koenkk/Z-Stack-firmware/blob/master/coordinator/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_coordinator_20230507.zip?raw=true" -outfile New_firmware.zip
  39.  
  40. #unpack the Hexfile
  41. Expand-Archive new_firmware.zip -destinationpath C:\sonoff
  42.  
  43. #find the portnumber by running the uartlog.py press CTRL+C to break it. - You down have op open your Sonoff stick when using this method.
  44. # If no portnumber shows up - then you need  a windows driver. Download the driver here:
  45. # https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers
  46. py uartlog.py
  47.  
  48. #flash the file to the Sonoff Zigbee 3.0 Dongle+ - REMEMBER to change the portnumber.
  49. py cc2538-bsl.py -p COM7 -evw --bootloader-sonoff-usb CC1352P2_CC2652P_launchpad_coordinator_20230507.hex
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement