Appearance
FNIRSI DPS-150: From Specifications to Serial Control

When debugging a board, I want a script to set the voltage, switch power and read back the status without reaching for the front panel. The official DPS-150 desktop application supports Windows only, but the community has documented its USB serial protocol. Python and pyserial can control it from a Mac too.
These measurements used a DPS-150P with firmware V1.6 and hardware V1.0. The protocol comes from nasheed-x/dps150_api; I did not reverse-engineer it from scratch. Specifications and interface images come from the official manual.
Separate power from data
Use either DC or Type-C power, never both at once. Communication uses the Micro-USB data port and requires a data cable, not a charge-only cable.
Before connecting a load, turn the output off and check polarity, voltage and current limit. A 30V rating does not mean any charger can supply a 30V output: this is a buck converter, so input voltage must exceed output voltage. With 20.08V at the input, this unit reported a maximum output of just 19.88V.
| Official specification | Value |
|---|---|
| Output range | 0–30V / 0–5A / 0–150W, limited by the input supply |
| Input | DC 5.0–32V / 100mA–5A, with PD / QC support |
| Display | 2.8 inches, 320×240 |
| Setting resolution | 10mV voltage, 1mA current |
| Setting accuracy | Voltage ≤0.1%±5mV; current ≤0.1%±3mA |
| Readback accuracy | Input voltage ≤0.2%±5mV; output voltage ≤0.1%±10mV |
| Load regulation | 0.49% |
These are manual specifications, not accuracy measurements made for this article. Check your own unit's documented input limits; do not blindly raise its supply voltage to reach a desired output.
What does the script send?
The device enumerates as AT32 Virtual Com Port, USB VID:PID 2E3C:5740. It uses USB CDC with 115200 baud, 8N1 and RTS asserted.
bash
system_profiler SPUSBDataType | grep -A6 "AT32 Virtual Com Port"
ls /dev/cu.usbmodem*Rather than text commands such as VOLT 5, it uses binary frames:
| Field | Header | Command | Register | Length | Data | Checksum |
|---|---|---|---|---|---|---|
| Bytes | 1 | 1 | 1 | 1 | N | 1 |
| Content | Request F1, reply F0 | Read, write, etc. | Target address | Payload length | Encoded for the register type | Formula below |
The checksum is (Reg + Len + sum(Data)) & 0xFF, excluding the header and command. Floating-point values such as voltage and current use little-endian IEEE754 float32; switches and status fields are not floats.
| Command | Purpose | Common register | Data |
|---|---|---|---|
0xA1 | Read register | 0xFF full state | 139 bytes |
0xB1 | Write register | 0xC1 voltage, 0xC2 current | float32 |
0xB1 | Write register | 0xDB output enable | uint8, 0/1 |
0xC1 | Connect / disconnect session | — | Session control |
0xB0 | Set baud rate | — | Communication settings |
0xC0 | Enter DFU update mode | — | Do not send during normal control |
The same byte means different things in different fields: command 0xC0 enters DFU, while register 0xC0 holds input voltage. Reading input voltage is not the same as sending an update command.
Output voltage does not change instantly
I wrote 5.000V / 0.500A, confirmed the setpoints by readback, then enabled the output without a load. The first reading was only 0.763V: the setting had not failed, soft start was still in progress. Switching off also leaves time for the output capacitor to discharge.
The chart contains only the four recorded samples, with no interpolated curve. In this no-load experiment, the output reached its setpoint in about 1.5s and discharged to zero in about 1.2s. Those times should not be assumed for other loads.
| Readback | Recorded value |
|---|---|
| Model / firmware / hardware | DPS-150P / V1.6 / V1.0 |
| Input / temperature | 20.08V / 30.5°C |
| Settled output | 5.000V, 0A with no load, CV mode |
| Full state | 139 bytes covering settings, telemetry, protection, presets and accumulated quantities |
A sensible script sequence is: output off → set voltage and current limit → confirm by readback → enable → wait and check measured values → disable and check residual voltage. A delay provides waiting time, not confirmation or a guarantee of load safety.
The hardest bug was mistaking telemetry for a reply
The device pushes telemetry unsolicited. After a full-state request, a 12-byte output telemetry frame may arrive before the expected 139-byte state packet. Treating the first frame as the response scrambles the parsed fields.
| Symptom | What helped |
|---|---|
| Full-state read returns only 12 bytes | Filter replies by target register, not arrival order |
Individual maximum-capability reads at 0xE2/0xE3 return zero | Read maximum V/I at full-state offsets 0x6F/0x73 instead |
| Cannot set 30V | Check input voltage and buck-converter limits rather than repeatedly writing the setting |
| Only a fraction of a volt after enabling | Allow for soft start, then check protection status |
| Panel buttons stop responding | Disconnect the serial session normally to unlock; an abnormal disconnect may require reconnecting the device |
| Insufficient input, LVP active | Undervoltage blocks output; fix the supply first |
Do not use command 0xC0 as a soft reset. In testing, it removed USB CDC and entered DFU, requiring a physical reconnect to recover. There is no usable soft-reset command. That distinction matters particularly during remote debugging.
Manual appendix: panel, presets, protection and updates


The main screen shows input voltage, temperature, operating status, output V/A/W, accumulated Wh/Ah, setpoints, presets, panel lock and CV/CC mode. Six buttons and a wheel handle settings: select a digit, adjust it with the wheel, switch between voltage and current, then save.
The six M1–M6 presets each store voltage and constant-current settings. Select, edit and save digits on the preset page to prepare settings for different devices; still check the load before switching.
| Status | Meaning |
|---|---|
OK | Normal |
OVP / OCP / OPP | Overvoltage / overcurrent / overpower |
OTP / REP / LVP | Overtemperature / reverse polarity / undervoltage |
According to the manual, a protection event disables the output and sounds the buzzer. Menus provide protection thresholds, language, interface style, backlight, volume and metering settings.

Additional readback registers: 0xC0 is input voltage; 0xC3 contains three float32 output V/A/W values; 0xDC is protection status; 0xDD is mode (0=CC, 1=CV).
The official Windows application can record, zoom, save and delete voltage/current traces. Sequence output supports an index range, loops, single steps and pauses. Current sweeps hold voltage constant, while voltage sweeps hold current constant; both use configured steps and delays.


There are two update entry points: hold the update button while connecting the data cable, or choose Firmware Update → BOOT/Restart in the desktop application. A USB drive then appears for copying the matching firmware. This is a dedicated update procedure, not a normal control step.

Where to continue
My local script wraps identification, full-state reads, settings and output switching using pyserial. This article does not provide a public download of that script. To reproduce the protocol work, start with the community's dps150_api and PROTOCOL.md, read status first, then try a low-voltage test without a load.
Specifications and all seven images come from the FNIRSI product page and the archived official manual. Community protocol documentation and these local measurements have separate limits; one V1.6 unit does not guarantee behavior across all firmware versions.