Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Install Python for windows download right here and install it.
- # Make sure you enable everything when installing
- # it might be necessary to reboot computer
- https://www.python.org/downloads/
- make a folder C:\sonoff
- run cmd as administrator
- type powershell and press enter
- Type each command below - step by step
- # go to the folder
- cd c:\sonoff
- # Upgrade PIP as so it is the latest release
- py -m pip install --upgrade pip
- # Install the module for Import Serial
- py -m pip install pyserial
- # Install the Module for flashing HEX-files
- py -m pip install intelhex
- # Install the module gevent for the flash py file.
- py -m pip install gevent
- # Install zigby-znp to be able to flash
- py -m pip install zigpy-znp
- # download the portfinder
- Invoke-WebRequest -uri "https://github.com/JelmerT/cc2538-bsl/files/7504452/uartLog.zip" -outfile uartLog.zip
- # Unzip the uartlog.zip
- Expand-Archive uartlog.zip -destinationpath C:\sonoff
- # download the flasher
- Invoke-WebRequest -uri "https://github.com/JelmerT/cc2538-bsl/blob/feature/ITead_Sonoff_Zigbee-delay/cc2538-bsl.py?raw=true" -outfile "cc2538-bsl.py"
- # download the HEX-file (Current latest master-branch firmware)
- 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
- #unpack the Hexfile
- Expand-Archive new_firmware.zip -destinationpath C:\sonoff
- #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.
- # If no portnumber shows up - then you need a windows driver. Download the driver here:
- # https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers
- py uartlog.py
- #flash the file to the Sonoff Zigbee 3.0 Dongle+ - REMEMBER to change the portnumber.
- 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