The following instructions will show vendors how to install the ESPHome firmware on the ESP32 microcontroller using a PC or laptop running Linux. They will be required for the first time during product testing when the test firmware is installed on the prototype.
You can use one of two tools to install the firmware on the microcontroller: Python or Docker.
sudo apt update
After this, install the package manager:
sudo apt-get -y install python3-pip
/dev/ttyUSB0
Please note that you may be utilizing the ttyUSB1 port rather than the ttyUSB0 port, for example. Bear this in mind as you proceed through the current and next steps.
sudo chown $USER:$USER /dev/ttyUSB0
pip3 install -r requirements.txt
./2smart.sh --device /dev/ttyUSB0 erase_flash
If the memory cleaning stops at the “Connecting ….___….___” step, press the Boot button on the DevKit board:
./2smart.sh --device /dev/ttyUSB0 write
If the flashing stops at the “Connecting ….___….___” step, press the Boot button on the DevKit board.
We’re empower your business with our technology expertise
docker -v
You can also install Docker from the ubuntu repository with the following command:
sudo apt install docker.io
/dev/ttyUSB0
This step is required to verify that the microcontroller is connected to the USB port.
Please note that you may be utilizing the ttyUSB1 port rather than the ttyUSB0 port, for example. Bear this in mind as you proceed through the current and next steps.
sudo chown $USER:$USER /dev/ttyUSB0
sudo usermod -aG docker $USER
After adding the user to the Docker group, log out and log back in for the changes to take effect.
./2smart_docker.sh --device /dev/ttyUSB0 erase_flash
If the memory cleaning stops at the “Connecting ….___….___” step, press the Boot button on the DevKit board:
./2smart_docker.sh --device /dev/ttyUSB0 write
If flashing stops at the “Connecting ….___….___” step, press the Boot button on the DevKit board.
When getting confirmation that your connection to the prototype platform with test firmware was successful, you can continue working on your product. A similar approach is used to install the production firmware on finished devices.
Share with us your business idea and expectations about custom software development for the internet of things.