Peripheral Station Firmware

Introduction

Currently PlatformIO is the default development environment for Peripheral Stations.

If you do not know which Platform IO firmware to use, then ESPHome is recommended as a general purpose firmware with good integration to the Device Node in your Private Cyberspace.

Other supported firmwares are listed here:

ESPHome

ESPHome was designed with Home Assistant (Device Node) in mind, so it has better integration than other firmwares with it.

1. Source Code

2. Exploits

ESPHome Alternatives

Tasmota, ESPeasy, ESP-Link and ESPurna are great firmwares and are SUPPORTED, so there is generally NO NEED to migrate to ESPHome.

Depending on your application, they all have some advantages and disadvantages over ESPHome and each other.

However, for those who wants to move to ESPHome when their application allows, we have also included some information on migration from them to ESPHome.

1. Tasmota

Great for web cam.

2. ESPeasy

Great for web based control.

3. ESPurna

Great for remote on-off switch control.

4. ESPLink

Great for serial terminal access.

ESPHome ESP-Now

ESP-Now is a protocol defined by Espressif.

Tasmota

https://tasmota.github.io

1. Templates

1.1. Firmware Upload

The simplest way is to flash using Tasmota Web Installer and select tasmota32-webcam from the drop down menu.

2. Webcam

There are Tasmota templates for many common webcam devices, for example:

  1. Ai-Thinker Camera (ESP32-CAM) Configuration for Tasmota
  2. Freenove ESP32-WROVER.DEV Camera (FNK0060) Configuration for Tasmota

We will be focusing on the ESP32-CAM here:

esp32cam

which normally comes with a OV2640 image sensor capable of 2 megapixels (1600x1200):

  • 1600×1200 @15fps
  • 800x600 @30fps
  • 352x288 @60fps

There are many lens available, normally it is bundled with a len with 66 degree field of view. Different angle lens are available 24, 30, 120, 160, 200 etc.

lens

References for ESP32-CAM usage:

2.1. Image URL

http://DEVICE_IP/snapshot.jpg
Example: http://172.27.105.237/snapshot.jpg

2.2. RTSP URL

Navigate to the ESP32-cam webUI and then go to the Console and enable the RTSP server by entering the following command:

WcRtsp 1

Now, the video stream should be accessible via using the following addresses:

rtsp://DEVICE_IP:8554/mjpeg/1

Example: rtsp://172.27.105.237:8554/mjpeg/1

2.3. LED Patch

Navigate to the ESP32-cam webUI and then go to the Configuration -> Configure Other -> in the TEMPLATE field, copy and paste the following

{"NAME":"AITHINKER CAM inc LEDs","GPIO":[4992,1,1,1,416,5088,1,1,1,1,1,1,1,1,5089,5090,0,5091,5184,5152,0,5120,5024,5056,0,0,0,0,4928,320,5094,5095,5092,0,0,5093],"FLAG":0,"BASE":2}

Click on the Save button and the board will be rebooted.

If successful, the Toggle button and the slider to determine the brightness of the LED will be displayed.

led_toggle

2.4. Antenna Types

When purchasing ESP32-CAM be careful that there are TWO different boards with support for on-board antenna OR for external antenna.

esp32cam_antenna

3. iBeacon

The collect ibeacon markers