https://github.com/lukaskirner/ota-security
Secure Over-the-air (OTA) firmware updates for ESP32 - Seminararbeit (Hauptseminar SS21)
https://github.com/lukaskirner/ota-security
esp-idf esp32 ota ota-update paper
Last synced: 9 months ago
JSON representation
Secure Over-the-air (OTA) firmware updates for ESP32 - Seminararbeit (Hauptseminar SS21)
- Host: GitHub
- URL: https://github.com/lukaskirner/ota-security
- Owner: lukaskirner
- Created: 2021-03-29T12:35:45.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-14T14:31:22.000Z (almost 5 years ago)
- Last Synced: 2025-04-13T15:35:30.804Z (about 1 year ago)
- Topics: esp-idf, esp32, ota, ota-update, paper
- Language: TeX
- Homepage:
- Size: 616 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Secure Over-the-air (OTA) firmware updates for microcontrollers like ESP32 - Seminararbeit
This is a paper that was written by me at the Munich University of Applied Sciences in the course of the main seminar in the summer semester 2021. This repository incldues the paper (`./latex`) and the implementation code (`./demo`).
## Testing
### Requirements
1. AWS Account
2. Domain hosted in AWS Route53
3. ESP32 (hardware)
4. Python3.8+
5. OpenSSL
6. aws-cli
7. terraform
8. VS Code
9. [esp-idf extension for VS Code](https://marketplace.visualstudio.com/items?itemName=espressif.esp-idf-extension)
### Four step setup (Unix systems)
1. Install the required tools
- aws-cli (also configure it with your credentials)
- terraform
- esp-idf extension for VS Code (install esp-idf with this extension)
2. Open shell inside the `demo` folder and execute `setup.sh`
3. Build & flash firmware to your ESP32
- create `./main/secrets.h` with your WiFi settings:
```
#define WIFI_SSID
#define WIFI_PASSPHARSE
```
- build firmware
- flash firmware to ESP32
4. Build & upload new firmware
- change version string inside `version.txt`
- build new firmware but clean build folder before
- upload to firmware S3 bucket
Now if you start monitoring your ESP32 with the old firmware you will see the ESP32 trying to connect to your configured WiFi network. After successfully connecting to the WiFi it tries to get the new firmware. If you have done everythin right you will see your device reboot wiht the new firmware.
### Four step setup (Windows systems)
1. Use WSL: [link](https://docs.microsoft.com/en-us/windows/wsl/install-win10)