MoleNet/tools/MoleWarden/testApp_6.2
2025-06-17 22:53:13 +02:00
..
src Minimalistic test app 2025-06-16 15:56:52 +02:00
.gitignore Minimalistic test app 2025-06-16 15:56:52 +02:00
README.md Nits 2025-06-16 16:06:45 +02:00
runall.sh Fix the test script 2025-06-17 22:53:13 +02:00

MoleNet Test: Micropython

Quick and dirty test for main functionality of new boards.

Jens Dede jd@comnets.uni-bremen.de

We are assuming that the MoleNet board is connected to the serial port /dev/ttyACM0. Please adapt this according to your system / configuration.

Prerequisites

Setup Environment

  • Create virtual environment: python3 -m venv venv
  • Activate virtual environment: . ./venv/bin/activate
  • Install esptool: pip install esptool

Test Board

  • Set the board to boot mode (boot button + reset)
  • Erase board: esptool.py --port /dev/ttyACM0 erase_flash
  • Install VM: esptool.py --port /dev/ttyACM0 --baud 460800 write_flash 0 ESP32_GENERIC_S3-20250415-v1.25.0.bin
  • Reset board (reset button)
  • Upload example code: ./pyboard.py -d /dev/ttyACM0 -f cp src/main.py :main.py
  • Create lib dir: ./pyboard.py -d /dev/ttyACM0 -f mkdir lib
  • Upload BME280 lib: ./pyboard.py -d /dev/ttyACM0 -f cp src/lib/BME280.py :lib/BME280.py
  • Connect to the serial port screen /dev/ttyACM0 to check the output and restart the device using ctrl-d
  • Test the next device

Example output

*** Testing board with ID aabbccddeeff ***
## Step 1: Test LED
## Step 1: Done
## Step 2: Test BME280
Temperature: 25.57C
Humidity   : 40.44%
Pressure   : 1024.80hPa
## Step 2: Done
## Step 3: Test WiFi
WiFis: Uni-Bremen, eduroam
## Step 3: Done

FAQ

How to kill screen?

  • CTRL-A, k, y

Further readings