Advertisement
PalleA

Flash Sonoff Zigbee 3.0 Dongle plus

Jan 20th, 2022 (edited)
739
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. #If you get an error:
  11. # Set-ExecutionPolicy -ExecutionPolicy Unrestricted
  12.  
  13. # go to the folder
  14. cd c:\sonoff
  15.  
  16. # Upgrade PIP as so it is the latest release
  17. py -m pip install --upgrade pip
  18.  
  19. # Install the module for Import Serial
  20. py -m pip install pyserial
  21.  
  22. # Install the Module for flashing HEX-files
  23. py -m pip install intelhex
  24.  
  25. # Install the module gevent for the flash py file.
  26. py -m pip install gevent
  27.  
  28. # Install zigby-znp to be able to flash
  29. py -m pip install zigpy-znp
  30.  
  31. # download the portfinder
  32. Invoke-WebRequest -uri "https://github.com/JelmerT/cc2538-bsl/files/7504452/uartLog.zip" -outfile uartLog.zip
  33.  
  34. # Unzip the uartlog.zip
  35. Expand-Archive uartlog.zip -destinationpath C:\sonoff
  36.  
  37. # download the flasher
  38. Invoke-WebRequest -uri "https://github.com/JelmerT/cc2538-bsl/blob/feature/ITead_Sonoff_Zigbee-delay/cc2538-bsl.py?raw=true" -outfile "cc2538-bsl.py"
  39.  
  40. # download the HEX-file (Current latest master-branch firmware)
  41. #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
  42. Invoke-WebRequest "https://github.com/Koenkk/Z-Stack-firmware/releases/download/Z-Stack_3.x.0_coordinator_20240710/CC1352P2_CC2652P_launchpad_coordinator_20240710.zip?raw=true" -outfile New_firmware.zip
  43.  
  44. #unpack the Hexfile
  45. Expand-Archive new_firmware.zip -destinationpath C:\sonoff
  46.  
  47. #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.
  48. # If no portnumber shows up - then you need  a windows driver. Download the driver here:
  49. # https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers
  50. py uartlog.py
  51.  
  52. #flash the file to the Sonoff Zigbee 3.0 Dongle+ - REMEMBER to change the portnumber.
  53. #py cc2538-bsl.py -p COM7 -evw --bootloader-sonoff-usb CC1352P2_CC2652P_launchpad_coordinator_20230507.hex
  54. py cc2538-bsl.py -p COM7 -evw --bootloader-sonoff-usb CC1352P2_CC2652P_launchpad_coordinator_20240710.hex
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement