There is a Riden RD6024 lab power supply on my desk: up to 60 V and 24 A, bought as a bare board and fed from a separate power supply. Among other things I use it to test my boiler controller board, where it plays the part of a 20 V bus with the current limited to a few dozen milliamps. Most of those tests are run by an AI agent, that is, a program that writes the code, runs the measurements and reads the results on its own. It set the power supply itself too, over a USB cable.
The cable has two drawbacks. It ties the power supply to one computer, and it lets only one program talk to it at a time. Meanwhile, once I opened the unit, it turned out there was a factory Wi-Fi module inside – an ESP-12F – the same one that lets the more expensive RD6024W connect to the manufacturer’s app. We decided to make ours able to do that too.
As usual, an honest word about who did what: the research, the plan, the programs and the documentation were the agent’s work, and I was its hands. I soldered, took readings with the multimeter, took the photos and made the decisions that cannot be undone.

First question: can this module be flashed at all
There is open firmware for these modules: riden-dongle by Peder Toftegaard Olsen, under the MIT licence. It turns the module into a go-between for the network and the power supply. It gives you a web page with a graph, Modbus TCP (a popular industrial protocol, here in its over-the-network version) and SCPI, the command language of lab instruments.
Older modules carry an ESP-12F in a metal can, and those can be reprogrammed. Newer ones carry an ESP8684 with firmware permanently encrypted by the manufacturer, and those cannot be flashed. Sellers are known to ship the new module while showing the old one in the photo, so you have to physically look inside.

Mine, luckily, is an ESP-12F. The agent read the riden-dongle documentation and code: the RD6024 is on the list of supported models. The firmware version of my power supply (1.38) is not among those the author tested, but the code does not check it, so we decided it was worth a try. It worked.
In an opened power supply the main board carries the full input voltage, about 66 V in my case. Before reaching inside, switch off the input supply and wait a moment.
A header nobody had documented online
The module sits in a 2×4 socket and pulls straight up. To program it you need to know which pin is which, and we could not find that in the riden-dongle documentation or anywhere else. The pinout turned out to be printed on the underside of the board.

A label is not a measurement, so I went over the header with the multimeter in continuity mode. The EN, TXD, RXD and GND pins lead straight to the ESP. The pin labelled 3V3 leads nowhere. The module has its own voltage regulator and is powered from 5 V.
That dead pin changes the mod. The new firmware needs the EN input (the one that enables the chip) to be permanently pulled up to 3.3 V through a resistor. Since there is no 3.3 V on the header, the resistor has to be soldered directly to the pads of the ESP-12F itself. The metal can is connected to ground, so the resistor’s legs must not touch it.
The whole mod comes down to three things:
- A 10 kΩ resistor between the EN and VCC pads of the ESP-12F.
- The header’s EN pin, cut off. The power supply drives that pin its own way and, with the new firmware, would keep the module switched off.
- A thin wire to the IO0 pad. Shorting it to ground at the moment power is applied puts the chip into programming mode. Once the job is done you simply desolder it.

A backup before anything disappears
Flashing new firmware erases the old one, so the rule was simple: no backup, no flashing. For programming we used an ordinary USB–UART adapter built around the CP2102 chip, a small board that turns USB into a serial port.
The ESP itself turned out to be fine from start to finish. All the obstacles were around it, and each one is worth knowing about before you start:
- The voltage jumper on the adapter. Many CP2102 boards put out either 3.3 V or 5 V on the power pin, depending on a jumper. At 3.3 V the module’s regulator does not give the chip enough voltage and the ESP stays completely silent. It does not send a single byte, so it looks dead.
- The TX and RX labels. After wiring it up according to the markings, I had to swap two wires, because the labels on the board are the wrong way round.
- Two commands instead of one. In its no-automatic-reset mode, esptool leaves the chip on the faster baud rate after the first command, and the second command can no longer get through to it. Identification and reading have to be done in a single connection.
- The vanishing adapter. Every time the module was powered up, the adapter briefly dropped off the computer, because a module starting up draws quite a lot of current.
The quickest diagnosis comes from the chip itself. On every start-up the ESP8266 prints a short message at the unusual speed of 74,880 baud. It contains “boot mode”: a one means programming mode, a three means a normal start. Total silence means a power problem or swapped wires.
At some point I got tired of asking “well?” after every attempt. So the agent opened a window on the screen of the computer at my desk that showed the module’s boot messages live. As soon as the module entered programming mode, the window made the backup by itself and reported the result. A small thing, but it changed the work: I was looking at the board and at one window, not at a chat.
The backup is the full 4 MB of flash, read twice and compared byte for byte. One read takes a minute and 41 seconds. Inside was firmware built on Espressif’s SDK from July 2016, and 90% of the memory was empty.
Flashing and first start
The flashing itself is the shortest part of the whole story: erasing the memory took 9 seconds, writing took 8 seconds, and at the end the program confirmed that the written data matched. We erased the entire memory, because the old firmware keeps its settings at the end of it and the leftovers could get in the way of the new one.
After start-up the module does not know any network yet, so it puts up its own open setup network. I connected to it with my phone, picked the 2.4 GHz home network (the module does not support any other) and typed in the password. I typed the password myself and it stayed in the module only. It did not pass through the agent or through any file.
From this point on, new firmware versions are uploaded over the network, from a form on the module’s web page. Taking the power supply apart was a one-off. There is one catch: firmware that fails to start or fails to connect to Wi-Fi takes that route away, and then it is back to the adapter. That is why we keep the changes small.
Our own version: a name you can recognise
In the original, the device name is built from the model and the serial number, and only once the module has got through to the power supply. Without the power supply, the setup network is called “ESP_” plus a few characters. I asked for a fixed name that actually tells you something, and the change fitted in a single file:
// Fixed names instead of "<model>-<serial>" / "ESP_xxxxxx", so the setup
// access point and the device on the home network are easy to recognise.
// Override at build time with -D DONGLE_AP_NAME=... / -D DONGLE_HOSTNAME=...
#ifndef DONGLE_AP_NAME
#define DONGLE_AP_NAME "RIDEN_RD6024"
#endif
#ifndef DONGLE_HOSTNAME
#define DONGLE_HOSTNAME "riden-rd6024"
#endif
Source: szmidtpiotr/riden-dongle-rd6024/src/main.cpp, lines 37–45 (commit 523d3e5)
The setup network is now always called RIDEN_RD6024, and the module’s page is reachable on the home network under a fixed name, with no hunting for an IP address. The agent built this version and uploaded it over the network already, without touching the power supply.
The power supply and the module have to talk at the same speed

With the module back in place, the page stubbornly showed one message: no communication with the power supply. There were two causes and both were in the settings.
The first: in the power supply’s menu you choose which way it talks to the outside world. The options are USB, WiFi, TTL and RS485. Intuition says “WiFi”, but that option is for the factory module. The open firmware needs the TTL setting.
The second: the baud rate. The power supply was running at 115,200 baud, because that is how it had been used over USB, while the module starts at 9600 by default. At different speeds the two sides will never understand each other. All it took was setting the module’s configuration to the same speed as the power supply.
There is also a side effect worth knowing about: the power supply talks either over USB or through the module, never both at once. After switching to TTL, the USB port goes silent.
The test: the same numbers over the network
Reading over the network showed exactly what the cable had shown before: the same model, the same firmware version, the same settings. Then came writing, with the output switched off. The agent set 5.00 V and a 0.10 A limit, then 12.34 V and 0.25 A, and read the values back each time. They matched to a hundredth of a volt and of an amp.
While we were at it, the small Python client the agent uses to control the power supply got a network mode and one safety fix: it sets the current limit first and only then the voltage. That way a higher voltage never meets an old, high limit.
What we did not check
- Other Riden models. The original code supports the range from RD6006 to RD6030, but our version has only been run on a single RD6024.
- Going back to the factory firmware after cutting the EN pin. The backup exists, but we do not know whether the original will work with a module modified like this. If it does not, soldering on a new pin should be enough.
Code and instructions
The power supply now lives on the network, and both the agent and my scripts can control it.
Open firmware for the Wi-Fi module of the Riden RD6024 power supply: fixed network names, a Python client, instructions in Polish and English.
View on GitHubUpstream riden-dongle v1.7.0 with fixed names: setup AP RIDEN_RD6024, hostname riden-rd6024 (open http://riden-rd6024.local). For the original Riden Wi-Fi module with an ESP-12F.
First flash over a cable: Backup and flashing (po polsku). Already on riden-dongle: Configure → Firmware Update.
Tested on one RD6024 (PSU firmware 1.38): flashing, Wi-Fi setup, web page, Modbus TCP read/write, OTA update.
Downloads
Full release notes on GitHub



Leave a comment