decoder for radiosonde RS41, RS92, DFM06/09/17, M10/M20, and MP3H based on a TTGO LoRa ESP32 board.
 
 
 
 
 
 
Go to file
Hansi, dl9rdz b45edaabd6 include for mqtt corrected 2024-03-17 10:06:04 +01:00
.github/ISSUE_TEMPLATE Squashed commit of the following: 2021-10-07 21:52:34 +02:00
.travis Squashed commit of the following: 2021-10-07 21:52:34 +02:00
Licenses Squashed commit of the following: 2024-01-07 12:43:38 +00:00
RX_FSK include for mqtt corrected 2024-03-17 10:06:04 +01:00
docs Squashed commit of the following: 2021-10-07 21:52:34 +02:00
notes-on-bugs Enhanced WiFi setup 2024-01-07 22:31:03 +00:00
scripts Enhanced WiFi setup 2024-01-07 22:31:03 +00:00
.gitignore Squashed commit of the following: 2021-10-07 21:52:34 +02:00
.travis.yml Squashed commit of the following: 2024-01-07 12:43:38 +00:00
README.md Squashed commit of the following: 2022-01-23 23:33:36 +00:00
_config.yml Set theme jekyll-theme-minimal 2019-04-28 15:05:13 +02:00
fontconverter Squashed commit of the following: 2021-10-07 21:52:34 +02:00
fontlink.ld Squashed commit of the following: 2021-10-07 21:52:34 +02:00
partitions-esp32v2.csv Squashed commit of the following: 2024-01-07 12:43:38 +00:00
platformio.ini pio back to 3.3.2 - later version introduce different partitioning scheme, need to update in sync with Arduino 2024-02-02 22:36:01 +00:00

README.md

rdzTTGOsonde

This a decoder for radiosonde RS41, RS92, DFM06/09/17, M10/M20, and MP3H based on a TTGO LoRa ESP32 board.

It supports OLED displays (SSD1306, SH1106) and TFT displays (ILI9225, ILI9341/9342).

It also supports feeding data to external applications using WiFi (NOT bluetooth):

  • Android app by dl9rdz (see https://github.com/dl9rdz/rdzwx-go for apk download)
  • AXUDP (for aprsmap application by oe5dxl, among others)
  • KISS TNC (aprs format, mainly useful for APRSdroid app)
  • MQTT
  • SondeHub tracker
  • Chasemapper UDP (experimental)

Please consult the Wiki at https://github.com/dl9rdz/rdz_ttgo_sonde/wiki/Supported-boards for details on supported boards, and additional setup instructions.

Radiosonde Support Matrix

Manufacturer Model Position Temperature Humidity Pressure
Vaisala RS92-SGP ✔️ ✔️
Vaisala RS41-SG/SGP/SGM ✔️ ✔️ ✔️ ✔️ (for -SGP)
Graw DFM06/09/17 ✔️ ✔️
Meteomodem M10 ✔️ ✔️ ✔️ Not Sent
Meteomodem M20 ✔️ Not Sent
Meteo-Radiy MP3-H1 (MRZ-H1) ✔️

SondeHub integration has mainly been tested with RS41 and DFM.

Support for other radiosondes that use AFSK modulation is not feasible with the TTGO hardware. In particular, decoding iMet-1/iMet-4 radiosondes is not practical (iMet-5x seems to use FSK, so should be feasible to implement).

Adding support for LMS6 (see issue #48) and ims100 (see branch ims100) could be feasible, but currently I don't have plans to do add this myself. Well-tested pull requests will of course be considered for inclusion :-).

Installation

You can download the latest binary automated build for the development and testing branches here, the binary includes everything including configuration files so any existing settings will be reset.

To update an existing installation to the latest development or master version you can use the OTA update feature.

The downloaded .bin file can be flashed to your ESP32 board using esptool or ESP32 Download Tool

esptool

You can run the following command replacing <filename.bin> with the path to the downloaded .bin file.

If you encounter errors with the device COM not automatically being detected replace /dev/cu.SLAB_USBtoUART with COM<X>.

esptool --chip esp32 --port /dev/cu.SLAB_USBtoUART --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 <filename.bin>

ESP32 Download Tool

The binary file can also be installed using the GUI application with the following settings.

Button commands

You can use the button on the board (not the reset button, the second one) to issue some commands. The software distinguishes between several inputs:

  • SHORT Short button press (<1.5 seconds)
  • DOUBLE Short button press, followed by another button press within 0.5 seconds
  • MID Medium-length button press (2-4 seconds)
  • LONG Long button press (>5 seconds)

You can optionally use a second button, which you have to add manually to your board. See https://github.com/dl9rdz/rdz_ttgo_sonde/wiki/Hardware-configuration for details.

Wireless configuration

On startup, as well as after a LONG button press, the WiFI configuration will be started. The board will scan available WiFi networks, if the scan results contains a WiFi network configured with ID and Password in networks.txt, it will connect to that network in station mode. If no known network is found, or the connection does not suceed after 5 seconds, it instead starts in access point mode. In both cases, the ESP32's IP address will be shown in tiny letters in the bottom line. Then the board will switch to scanning mode.

Scanning mode

In the scanning mode, the board will iterate over all channels configured in channels.txt, trying to decode a radio sonde on each channel for about 1 second. If a valid signal is found, the board switches to receiving mode on that channel. A SHORT buttong press will also switch to receiving mode.

Receiving mode

In receiving mode, a single frequency will be decoded, and sonde info (ID, GPS coordinates, RSSI) will be displayed. The bar above the IP address indicates, for the last 18 frames, if reception was successfull (|) or failed (.), or had some errors (E), e.g., CRC check failed.

A DOUBLE press will switch to scanning mode.

A SHORT press will switch to the next channel in channels.txt

A SHORT press on the second button will switch to a different display screen.

Spectrum mode

A medium press will active scan the whole band (400..406 MHz) and display a spectrum diagram (each line == 50 kHz) For TTGO boards without configurable button there are some new parameter in config.txt:

  • spectrum=10 // 0=off / 1-99 number of seconds to show spectrum after restart
  • timer=1 // 0=off / 1= show spectrum countdown timer in spectrum display
  • marker=1 // 0=off / 1= show channel edge freq in spectrum display

Setup

see Setup.md