Every day, weather services around the world launch hundreds of balloons, each carrying a small radiosonde. Many of them are Vaisala RS41s. They measure temperature, humidity and position on the way up, the balloon bursts somewhere around 30 km (100,000 ft), and the sonde comes down on a parachute. Nobody from the weather service goes looking for it. Radio amateurs do, and a recovered RS41 is a remarkably nice piece of hardware: a GPS receiver, a 400 MHz transmitter, a microcontroller and a battery holder, all on one board, for free.
I have a few of them lying around, and I fly model rockets. A rocket that lands out of sight in a field of maize is a rocket you may never see again, so a GPS tracker is useful. Reprogramming an RS41 as a tracker is nothing new: firmware like RS41ng and RS41-NFW turns a sonde into a beacon that sends APRS, Horus Binary or CW. But to receive those you need a laptop with an SDR, or a handheld with the right software.
What I already have is a MySondyGo : a small TTGO receiver with an Android app, made for chasing radiosondes. It shows the sonde on a map with distance and bearing, which is exactly what you want when you are walking through a field looking for a rocket. The catch: it only understands real radiosonde transmissions. So the idea became simple to describe: make the reprogrammed sonde speak its own native RS41 language again, on a frequency of my choice, so an unmodified MySondyGo tracks it like any other sonde.
Rules first#
Before writing any code I set some rules, because a transmitter that imitates a radiosonde can cause real trouble if it is careless.
- Never in the meteorological band. Radiosondes fly between 400 and 406 MHz. My tracker is not allowed there, ever: the firmware refuses to build with such a frequency.
- License-free by default. In Europe, the 434.040 to 434.790 MHz sub-band (ERC Recommendation 70-03, Annex 1) allows 10 mW ERP with a 100 % duty cycle for signals up to 25 kHz wide. That suits a tracker that sends a frame every second. The firmware has an ISM profile that enforces this window and the power limit, and a separate HAM profile for licensed amateurs, which requires a callsign and sends a CW identification.
- Stay off the public maps. Receivers like auto_rx, rdzTTGOsonde and MySondyGo can upload what they hear to SondeHub and radiosondy.info. A rocket tracker has no business there, so every receiver that listens to it has its uploads switched off, and the IDs I use (ROCKET01 and so on) look nothing like a Vaisala serial number.
Testing the receiver first#
The riskiest assumption was that MySondyGo would accept a frame that is not quite a real RS41 frame. A real sonde sends its factory calibration data, sensor readings and raw GPS measurements; I can fake some of that and have to leave the rest empty. So before touching a sonde, I tested the receiver.
I turned a LilyGO T3 (an ESP32 with an SX1278 radio) into a bench transmitter that sends RS41 frames built by the same encoder code the firmware would use. Every test frame carried a fake position near Point Nemo, the most remote spot in the Pacific, so a stray frame would never point to a real place. Then I went through a list of questions, one variant at a time, watching what MySondyGo made of it.
The answers were reassuring:
- IDs of 1 to 8 characters work, including dashes and callsigns.
- The calibration data, the sensor block and the raw GPS block can all be empty or synthetic. The receiver does not care.
- Without a GPS fix, sending the last known position (or no position) works; the app keeps showing the last position.
- Plain FSK works as well as GFSK.
- The receiver locks onto a signal up to about 7.5 kHz off frequency, and keeps tracking it further out once locked.
- Long intervals work too: a frame every 5 minutes still decodes. That matters for a tracker that has to last days on the ground.
MySondyGo also turned out to print every decoded frame on its USB serial port, with signal level and frequency error. From then on I could read the results directly instead of squinting at the phone.
The firmware#
I built the tracker as a fork of RS41ng, which already supports both the old RS41 boards (STM32F100 microcontroller, u-blox 6 GPS) and the new ones (STM32L412, u-blox M10). The new code adds a native RS41 mode:
- a frame encoder: 320-byte frames with two interleaved Reed-Solomon codes, CRC-16 per block, the RS41 whitening mask and position and velocity in ECEF coordinates;
- the radio side: 4800 baud FSK with about 2.4 kHz deviation, a 40-byte preamble, 600 ms on air per frame;
- the band profiles and their build-time checks, also in RS41ng’s web configurator;
- host tests, including a check that the output decodes with the open source
rs41moddecoder.
Rockets also need something balloons do not: a sensible plan after landing. RS41ng already had a landed mode, designed for balloons that come down after hours. I extended it so it works for a flight of a few minutes:
- it arms 50 m above the launch pad instead of at a fixed altitude;
- it detects the landing when the altitude stays within ±10 m for two minutes, which also works when the rocket comes down on a hill;
- if the GPS loses its fix after landing (in a ditch, under the rocket), a timeout after apogee still switches to landed mode;
- after landing it follows a schedule: a frame every second for an hour, every 5 s for the next hour, every 10 s for four hours, and then every minute with the GPS asleep in between. Plenty of time to find it, without flattening the batteries in a day.
Hardware day#
Then the real sondes. An RS41 is programmed through a small connector on the board with an ST-Link V2. The Vaisala firmware is read-protected, so the first step removes that protection, which erases the chip. After that, RS41ng’s own instructions work.
The first board, an RSM425 (the newest revision), fought back in a few interesting ways.
A sonde that would not stay on#
After the unlock, the sonde only stayed on while I held the power button. Release it, and it switched off. I first suspected that this board revision needs the firmware to hold the power on, and went through the power circuit description in the RS41-NFW documentation. The real cause was more mundane: the sonde’s own ADC read the battery at about 0.7 V. The two AA cells were flat. With fresh batteries it stayed on.
The ID came through, the position did not#
With fresh batteries, MySondyGo beeped and showed ROCKET01. Success, almost: it never showed a position, even when the sonde had a GPS fix.
To see what was really on air I used two tools: the T3 board as a receiver that dumps the raw demodulated bits, and an RTL-SDR recording raw IQ samples, which I demodulated in Python. That showed three problems in the radio code:
- The first 64 bytes of every frame, the preamble and the header, never went out. The firmware filled the radio’s FIFO while the chip was in a standby state where those writes are lost.
- The refill loop wrote faster than the radio could send, so the 64-byte FIFO overflowed and more bytes were dropped.
- After fixing those two, the transmission still stopped after exactly 104 bytes. The Si4032’s packet length register is 8 bits wide, and the code wrote the frame length into it: 360 & 0xFF = 104. A full RS41 frame simply does not fit through the FIFO.
The first 104 bytes happen to contain the header and the status block with the ID, but not the GPS block. That explained the beeping without a position.
The fix was to stop using the FIFO for RS41 frames. The Si4032 also has a direct mode, in which it transmits whatever level it sees on its data pin. A timer interrupt now clocks the 2880 bits of each frame out on that pin at exactly 4800 baud. After that, every frame in the SDR recording came through complete, with all six block CRCs correct. I put the sonde outside for a minute, it got a GPS fix, and MySondyGo showed it on the map.
Testing a landing without throwing the sonde#
Landed mode is hard to test on a desk: you need a flight, a landing, a lost fix and ideally someone carrying the tracker away. So I faked the GPS instead. A test build replaces the position the GPS reports with a scripted flight: it sits on the pad, climbs to 210 m, comes down, lands, loses its fix, and is then picked up and moved 300 m. Everything else is real: the radio, the GPS being put to sleep and woken up, the timing. The sonde went through every stage as planned, including sending its last position when there was no fix, and going back to tracking mode once it was carried outside the 100 m geofence around the landing spot.
Four boards#
I have four sondes from two generations: an RSM425 and RSM424 (STM32L412 and u-blox M10) and an RSM412 and RSM421 (STM32F100 and u-blox 6). Each had its own small surprise:
- The old boards’ GPS keeps the configuration the Vaisala firmware gave it until it loses power. Resetting only the microcontroller after flashing is not enough: switch the sonde off and on once.
- The new boards need two power cycles during the unlock, and after the very first flash they may keep running ST’s built-in bootloader until they are switched off and on.
- On the old boards, the GPS reports a few satellites before it has a fix. The firmware sent those along with an empty position, and MySondyGo took that as a real position at 0° N, 0° E, somewhere in the Gulf of Guinea. Now the satellite count is sent as 0 until there is a position, and the receiver ignores it.
All four now pass the same check: complete frames every second, every CRC correct, decoded by MySondyGo. My radiosonde_auto_rx receiver also detected and decoded the first one as an ordinary RS41, once I set its SDR to a fixed gain.
Four trackers on four frequencies#
For use at the field, each sonde got its own ID and its own frequency, 50 kHz apart inside the license-free window, so they can all fly on the same day. An RS41 signal is only about 10 kHz wide, so they do not get in each other’s way.
| Board | ID | Frequency |
|---|---|---|
| RSM425 | ROCKET01 | 434.400 MHz |
| RSM424 | ROCKET02 | 434.450 MHz |
| RSM412 | ROCKET03 | 434.500 MHz |
| RSM421 | ROCKET04 | 434.550 MHz |
The label on the back makes sure I tune the receiver to the right one.
Working with Claude Code#
As with my other recent hardware projects , I did this together with Claude Code. Claude wrote the encoder, the RS41ng changes and the tests, and did most of the debugging: it drove the ST-Link and the receivers from the command line, read registers over SWD, and wrote the scripts that analysed the SDR recordings. I handled the hardware, made the decisions and kept it honest about what had and had not been tested on a real board. Some of the best moments were finds that a quick test would have missed, like the 104-byte limit and the position at 0° N 0° E. It also caught a rule I had overlooked: landed mode’s beacon transmits on a different frequency, outside the license-free window, and is on by default. The ISM profile now refuses to build with that combination.
Upstream#
All of this is offered back to RS41ng as pull request #139 : the native RS41 mode, the landed mode extensions and the radio fixes. The FIFO fixes also benefit RS41ng’s other modes that use the FIFO.
What is left is a field test: walking away from the receiver to see how far 10 mW reaches, and a real landing. That is for the next launch day.
Resources#
- RS41ng , the firmware this is built on, and my pull request #139
- My RS41ng fork
(branch
feature/rs41-native-mode) - MySondyGo
- RS41-NFW , with excellent documentation of the newer RS41 boards
- radiosonde_auto_rx and the rs1729 RS decoders
- From Code to Copper: What AI Can Do for Hardware Makers



