UD18 01 en
UD18 01 en
applications
UD18 hardware
This low price device (13.88 €) is more than just a digital USB tester. See ATORCH UD18 here:
• Aliexpress: https://it.aliexpress.com/item/4000001021645.html
• Banggood: https://www.banggood.com/UD18-USB3_0DCType-C-18-in-1-USB-Tester-
APP-DC-Digital-Voltmeter-Ammeter-HD-Color-Screen-6-Bit-High-Precision-Display-
UD18-Bluetooth-Digital-Meter-p-1564949.html
The tester has 4 inputs (USB M, DC 5.5mm M, USB-typeC M, USB-tytpeC F) to be connected to a
generator, and 3 outputs (USB F, DC 5.5mm F, USB-tytpeC F) to connect to a load.
There are two buttons ([-] and [+]) and two LEDs: red (power) and blue (Bluetooth).
The measures that UD18 can carry out (6 digit precision !) are:
• Tension: 3.6…32 V
• Current: 0...5.1 A
• Power: 0...163.99 W
• Equivalent resistance: 0…999.99 Ω
Furthermore:
• Time: 0...999 ore
• Capacity: 0...99999 mAh (cumulative)
• Charge: 0...999.99 Wh (cumulative)
• USB-data+: 0...2,99 V
• USB-data-: 0...2.99 V
Numerous accessories are also available: NTC for temperature
measurements, constant current loads, triggers for PD and QC
Fig. 1: UD18 power supplies, etc ...
In addition, UD18 can function as a charge/discharge controller (FCOP: Full Cut Off Power),
disconnecting the load when one of the following events occurs (the values indicated are user-
configurable):
• Power < minW (1...9W) for XX (01...99 min.)
• Time > T-C (countdown hh:mm, 0...24h)
• Current > Over-C (0...9A)
• Tension > Over-V (0...36V)
• Tension < Low-V (0...29V)
If FCOP is ON and intervenes, an ad hoc view identifies the reason.
Using the application on PC, and using the excellent "Serial port monitor"
(https://www.eltima.com/products/serial-port-monitor/) as sniffer, I managed to capture and
partially decode the messages exchanged via Bluetooth. For tests and verification I also used
'Termite', a serial hexadecimal terminal (https://www.compuphase.com/software_termite.htm).
The current state of knowledge about the protocol is in the UD18-protocol.txt file.
Contributions are obviously appreciated.
Some notes:
• I have not discovered the CRC8 algorithm used. It is therefore possible to use only the 8
commands captured.
• Measurements are sent by UD18 at 1 second intervals. Voltage and current are transmitted
with only 2 decimal places, instead of all 6 digits available on the display.
UD18 custom applications
It is now possible to develop custom applications in any language, but the fastest and most versatile
solution is to use node-red (https://nodered.org/). Node-red is available on many platforms
(Windows, Linux, Raspberry, etc) and has an impressive collection of modules for IOT, MQTT,
also for communications with databases and for creating UI: perfect for quick experimental
realizations or for extensive IOT integrations.
The attached flow
(UD18flow.json) is very simple:
Note
I developed this application in Windows 10, node-red 1.0.3. If you encounter significant differences
in other environments, please let me know, to add useful information for all node-red users.