This guide will go over the update of your ZB-Shield and forms an expanded guide to ZB-Shield user guide.
Warning: Firmware update of the ZB-Shield is at your own risk. Failure to properly firmware update your ZB-Shield will result in loss of warranty. We assume no liability for any loss of data due to damage of the ZB-Shield during or by the update. Please use only the firmware file provided on this solutions page if you proceed with its firmware update.
Requirements:
- POPP ZB-Shield
- Raspberry Pi 3 or 4
- Operating system Raspian Buster
- Putty or similar software for SSH access
Preparation of the Raspberry Pi
- For an existing system with current usage.
- Disable the connection between your software (e.g. Home Assistant) and the ZB-Shield.
- When using a newly installed Raspberry Pi
- Disable Bluetooth as described below
Disable Bluetooth
- Log in to your Raspberry Pi via SSH.
- Enter the following command to edit the configuration.
sudo nano/boot/config.txt - Scroll down with the arrow keys and enter the script below the last text.
- Raspberry Pi 4
#Diasble Bluetooth
dtoverlay=disable-bt
enable_uart=1
- Save with CTRL+X
- Confirm with Y
- Confirm with Return
- Raspberry Pi 3
#Diasble Bluetooth
dtoverlay=pi3-disable-bt
enable_uart=1
- Save with CTRL+X
- Confirm with Y
- Confirm with Return
- Raspberry Pi 4
- Scroll down with the arrow keys and enter the script below the last text.
- Deactivate the shell mode on the serial interface. Enter the following command.
sudo raspi-config - Choose Interface Option
- Choose P6 Serial Port
- Choose NO
- Choose YES
- Close the menu
- Restart the Raspberry Pi to activate the changes. Enter the following command.
sudo reboot - Wait a few minutes for your Raspberry Pi to reboot.
Installation of Python 3
- Log in to your Raspberry Pi via SSH.
- Update your system to the current state with the following command
sudo apt update - Now start the installation of Python 3 with the following command
sudo apt install python3 idle3 - Confirm with 'Y' when prompted
Installation of Update Tool
- Use the following command to download the latest tool and firmware to your Raspberry PI
git clone https://github.com/Elelabs/elelabs-zigbee-ezsp-utility.git - Change to the directory
cd elelabs-zigbee-ezsp-utility - Install the additional required tools with the following command
sudo pip3 install -r requirements.txt - Download the firmware with the following command
sudo wget https://z-wave.freshdesk.com/helpdesk/attachments/80067968923 -O fw.gbl
- Change to the directory
- Test the connection to the ZB-Shield with the following command
python3 Elelabs_EzspFwUtility.py probe -p /dev/ttyAMA0
Note: If an error is displayed, please check if all programs connected to ZB-Shield have been closed. Disable Bluetooth and check your interface settings.
Perform Update over ZB-Shield
- Start the update with the following command.
python3 Elelabs_EzspFwUtility.py flash -f fw.gbl -p /dev/ttyAMA0 - Check if the update was successful. Enter the following command.
sudo python3 Elelabs_EzspFwUtility.py probe -p /dev/ttyAMA0