Skip to content

FNIRSI DPS-150: From Specifications to Serial Control ​

FNIRSI DPS-150 official product photo

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 specificationValue
Output range0–30V / 0–5A / 0–150W, limited by the input supply
InputDC 5.0–32V / 100mA–5A, with PD / QC support
Display2.8 inches, 320×240
Setting resolution10mV voltage, 1mA current
Setting accuracyVoltage ≤0.1%±5mV; current ≤0.1%±3mA
Readback accuracyInput voltage ≤0.2%±5mV; output voltage ≤0.1%±10mV
Load regulation0.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:

FieldHeaderCommandRegisterLengthDataChecksum
Bytes1111N1
ContentRequest F1, reply F0Read, write, etc.Target addressPayload lengthEncoded for the register typeFormula 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.

CommandPurposeCommon registerData
0xA1Read register0xFF full state139 bytes
0xB1Write register0xC1 voltage, 0xC2 currentfloat32
0xB1Write register0xDB output enableuint8, 0/1
0xC1Connect / disconnect session—Session control
0xB0Set baud rate—Communication settings
0xC0Enter 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.

ReadbackRecorded value
Model / firmware / hardwareDPS-150P / V1.6 / V1.0
Input / temperature20.08V / 30.5°C
Settled output5.000V, 0A with no load, CV mode
Full state139 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.

SymptomWhat helped
Full-state read returns only 12 bytesFilter replies by target register, not arrival order
Individual maximum-capability reads at 0xE2/0xE3 return zeroRead maximum V/I at full-state offsets 0x6F/0x73 instead
Cannot set 30VCheck input voltage and buck-converter limits rather than repeatedly writing the setting
Only a fraction of a volt after enablingAllow for soft start, then check protection status
Panel buttons stop respondingDisconnect the serial session normally to unlock; an abnormal disconnect may require reconnecting the device
Insufficient input, LVP activeUndervoltage 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

Front panel from the official manual

Main screen from the official manual

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.

StatusMeaning
OKNormal
OVP / OCP / OPPOvervoltage / overcurrent / overpower
OTP / REP / LVPOvertemperature / 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.

Settings menu from the official manual

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.

Basic desktop controls from the official manual

Advanced desktop controls from the official manual

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.

Firmware update screen from the official manual

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.

Something unclear here, or want to talk about similar work?Message me →