UGREEN US3000-UPS sub-driver problem
Hello everyone. I got my hands on this UPS - UGREEN US3000-UPS.
On the seller's page, one of the users posted the settings for the NAT server, which allowed him to receive information from this UPS. I tried to install the server in the Proxmox environment, but I get messages that the device driver does not support this subdriver parameter. Please tell me what I'm doing wrong? Perhaps someone has encountered such a UPS and knows how to connect it to a server.
Are the instruction screenshots from that site? Did you follow them, specifically to build a modern NUT version?
The subdriver option for usbhid-ups is a recent addition, so if you are using distro packages - that code may be not there yet (packages tend to lag years behind actual projects).
Are the instruction screenshots from that site? Did you follow them, specifically to build a modern NUT version?
The
subdriveroption forusbhid-upsis a recent addition, so if you are using distro packages - that code may be not there yet (packages tend to lag years behind actual projects).
Thank you for your reply. No, I installed NAT with a regular command "apt install nut"and then applied the settings shown in the screenshot. But I'm not very good at Linux, so I may have missed something that's why the driver doesn't see the subdriver. The screenshot was provided by one of the buyers. Apparently, he managed to set up the server and showed how he did it.
Did you follow them, specifically to build a modern NUT version?
You were right. Indeed, if to compile the version as shown on the screen, everything will work. Thanks for pointing in the right direction. Now everything works!!
These are the parameters that the UPS transmits. Not much, but enough for information, at least the battery charge level.
Hi @Railnolds could you share a link to those instructions. I am happy to see this device has been added to the kanban, but I don't know how long it will take.
Thank you!
The mentioned instructions are in text screenshot of first post.
Generally see https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests
Hi @Railnolds could you share a link to those instructions. I am happy to see this device has been added to the kanban, but I don't know how long it will take.
Thank you!
Hi, Jim. I posted the instructions in the form of screenshots in the first post, I had no other information. But I made a detailed instruction for myself, which contains step-by-step installation in Proxmox. It is in Russian, but I think if you understand Linux, you will be able to understand what needs to be done. Try it. I believe you can do it!
It is also possible that Arduino subdrivers have already been added to the latest version of NUT, so there is no need to compile the server manually, as I did. But this information has not been verified by me personally.
Anyone been able to extract the firmware update for the UGREEN US3000 from the NAS firmware updates? Any tips appreciated.
I've updated my UPS3000 firmware to version 3.3_1.2 via the original UGREEN-UI prior to formatting the system and switching to Proxmox.
After installing and configurating nut, i see no battery charge. UGREEN probably patched the ability to read the values with the latest driver?
[root@ /etc/nut]# upsc ups@localhost Init SSL without certificate database device.mfr: UGREEN device.model: US3000 device.serial: DC600 device.type: ups driver.debug: 0 driver.flag.allow_killpower: 0 driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.parameter.productid: ffff driver.parameter.subdriver: Arduino driver.parameter.synchronous: auto driver.parameter.vendorid: 2b89 driver.state: quiet driver.version: 2.8.1 driver.version.data: Arduino HID 0.2 driver.version.internal: 0.52 driver.version.usb: libusb-1.0.28 (API: 0x100010a) ups.delay.shutdown: 20 ups.delay.start: 30 ups.mfr: UGREEN ups.model: US3000 ups.productid: ffff ups.serial: DC600 ups.status: OB ups.timer.reboot: 0 ups.timer.shutdown: 0 ups.timer.start: 0 ups.vendorid: 2b89
Update: Probably because i've used the distributor packaged nut version of Debian Trixie which is
[root@]# apt-cache show nut Package: nut Version: 2.8.1-5
I'll revalidate with a newer version. Sorry for not checking prior...
@uniquoo : yes, the version seems to make a difference - battery.* were added to drivers/arduino-hid.c after v2.8.1 release.
For a custom build, see e.g. https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests
Confirmed, running 2.8.4 works as expected. But i went another route:
Update (last one):
Compiling 2.8.4 on Proxmox 9 worked just fine but the configuration including systemd setup was extremely fiddly and i really dont like overhead on my Hypervisor (gcc, build utils etc). So instead i created a LXC container, setup Debian Testing (Forky) which comes with nut 2.8.4 and passed through the UPS USB device into the LXC container.
Now its not the primary system anymore and i have to readjust some timings, but actually its just reversing the order of importance in my configs.
Works flawless, just took me a few hours to come up with that and set everything up :-)
@uniquoo : personally, I take NUT monitoring in VMs and containers with a grain of salt, regarding how well or not they can drive server shutdowns and later UPS power off/cycle (here via systemd shutdown hooks). A container that was put down as part of OS shutdown is not of much use to launch the driver and talk to UPS in the last seconds of metal uptime.
Probably can be done, and/or can depend on properly behaving hardware - e.g. if the UPS does honour a requested delay before shutdown, and that container is timed via dependencies to go down last, then it might tell the UPS to power off/cycle and then the server completes its shutdown safely. IMHO that becomes a bit too fragile, too many things have to go right during the outage :)
Also this loses out on power-race avoidance (reboot the server if the power came back while it was shutting down, so some UPS models refuse to power-cycle as the wall power is okay now).
Finally, generally a container can not tell its hypervisor to go down at all (or needs SSH keys without a passphrase, etc.) and even then it is a chicken-and-egg problem about who downs whom as a long-running system() call, even disregarding the last-moment talks to the UPS... Probably running the upsd and "upsmon primary" in the container, and "upsmon secondary" in the hypervisor can be the way to go (something similar was recommended for VMWare integration IIRC), but then probably the "upsmon primary" gets killed (as part of VM/container) before it gets to its endgame with the powerdown flag (which happens after all the secondaries went down), so see the problems above.
@jimklimov Thanks for the explenations and indepth take on that matter. I do understand that my route of setting that stuff up has lots of downsides. But its not a mission critical system in all honesty. The LXC where NUT runs in is beeing backed up and can be hard shutdown, crash, break / whatever during an emergency/power outage.
My most important criteria was that in case of my UPS having less then 50% of power left, unnecessary VMs/LXC gets shut down (Mediaserver, Torrent, Bouncers etc.) and if it reaches 20% my whole Hypervisor and all VMs gets gracefully shutdown.
I do not need any SSH keys. NUT triggers the Proxmox API with shutdown calls for VMs within a certain group of importance "low" or "medium" @ 50%. At 20% every VM gets gracefully shutdown and then the host (Proxmox) aswell.
Once i start the shutdown of the host, the NUT-LXC-Container gets shutdown by Proxmox itself, i dont trigger that one seperatly. So once all VMs are shutdown, the only thing happening is the proxmox hypervisor/host shutdown which takes down the NUT-LXC-Container with it.
If power comes back, i actually dont need anything else to trigger anything, I can start all devices via WoL via my Mikrotik Router (which does not gracefully shutdown but instead returns to last state when power comes back).
I have been able to successfully upgrade the Ugreen US3000 firmware to 3.3-1.2 found via https://nas.ugreen.com/pages/downloads on a system running Ubuntu 24.04 (amd64)
- unzip the
unzip ugreen_ups_firmware_V3.3.binto get fileups_firmware_20250630162136/US3000_TB_V3.3.bin - binwalk -e latest UGOS firmware to get file eg:
_release_20251224-firmware_image-1.12.1.2-intel_amd64_6.12.30+.img.extracted/_rootfs-base.squashfs.extracted/squashfs-root/usr/sbin/us3000_tb_ota - Stop NUT and NUT Driver.
sudo systemctl stop [email protected]andsudo systemctl stop nut-server.service sudo ./us3000_tb_ota ~/path/ups_firmware_20250630162136/US3000_TB_V3.3.bin
Example output:
filename: TP-0004-DCM00001
Read 32 bytes:
g_unBinLen = 64640
Requst OTA Sent 40 bytes to the device on .
Requst OTA Received 0 bytes from the device on
RequstOTA unReqNum:1 BackCmd:2 ReqFlg:2 Error receiving data from USB device
Requst OTA Received 0 bytes from the device on
OTA Runing unPackNum:1244 unRem:4
······OTA Runing ······
OTA End Sent 8 bytes to the device on.
OTA End Received 0 bytes from the device on:
OTA --------------------------OK:
Run END --------------------------OK:
My case: systemctl stop [email protected] systemctl stop nut-monitor.service ./us3000_tb_ota US3000_TB_V3.3.bin
Read 32 bytes:
g_unBinLen = 64640
sh: 1: lsof: not found
Requst OTA Sent 40 bytes to the device on .
Requst OTA Received 0 bytes from the device on
RequstOTA unReqNum:1 BackCmd:2 ReqFlg:2 Error receiving data from USB device
Requst OTA Received 0 bytes from the device on
OTA Runing unPackNum:1244 unRem:4
······OTA Runing ······
OTA End Sent 8 bytes to the device on.
OTA End Received 0 bytes from the device on:
OTA --------------------------OK:
Run END --------------------------OK:
upsc ups@localhost
battery.charge: 100
battery.charge.low: 20
battery.runtime: 65535
battery.type:
device.mfr: UGREEN
device.model: US3000
device.serial: DC600
device.type: ups
driver.debug: 0
driver.flag.allow_killpower: 0
driver.name: usbhid-ups
driver.parameter.interrupt_pipe_no_events_tolerance: -1
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: ffff
driver.parameter.subdriver: Arduino
driver.parameter.synchronous: auto
driver.parameter.vendorid: 2b89
driver.state: quiet
driver.version: 2.8.3
driver.version.data: Arduino HID 0.21
driver.version.internal: 0.62
driver.version.usb: libusb-1.0.26 (API: 0x01000109)
ups.delay.shutdown: 20
ups.delay.start: 30
ups.mfr: UGREEN
ups.model: US3000
ups.productid: ffff
ups.serial: DC600
ups.status: OL DISCHRG
ups.timer.reboot: 0
ups.timer.shutdown: -1
ups.timer.start: 0
ups.vendorid: 2b89```
Hi, I'm trying to update the UPS outside UGOS (With Truenas Scale or Ubuntu) but I'm having this error all the time
./us3000_tb_ota` US3000_TB_V3.3.bin
filename: TP-0004-DCM00001
Read 32 bytes:
g_unBinLen = 64640
Cannot claim interface: LIBUSB_ERROR_BUSY
Hi, I'm trying to update the UPS outside UGOS (With Truenas Scale or Ubuntu) but I'm having this error all the time
`./us3000_tb_ota US3000_TB_V3.3.bin
filename: TP-0004-DCM00001
Read 32 bytes:
g_unBinLen = 64640
Cannot claim interface: LIBUSB_ERROR_BUSY`
Yeah I had that too, make sure the NUT driver is stopped and try from a fresh reboot.
I have been able to successfully upgrade the Ugreen US3000 firmware to 3.3-1.2 found via https://nas.ugreen.com/pages/downloads on a system running Ubuntu 24.04 (amd64)
Thanks for the walkthrough. Had the same output. UPS showed a red light, I disconnected all cables and pushed the power button until it turned off. Turning it back on again it glowed white. But I'm wondering: is there a way to confirm the firmware is actually updated? Is there any command I can run that will show the current firmware version or a date? Thanks in advance.
@Firefishy I have a DXP4800GT.
Downloaded the latest US3000UPS firmware US3000_TB_V3.7_US3000_JQH_V3.7_20260907.bin.
It has 2 firmware files: US3000_JQH_V3.7.bin US3000_TB_V3.7.bin.
Downloaded latest DXP4800GT firmware, and after extracting the contained fw.squashfs, has a
squashfs-root/usr/sbin/us3000_jqh_ota and .../us3000_jqh_ota.bin. The non-bin is a script stopping servicess, run us3000_jqh_ota.bin, and start services.
Not the ...tb... file.
Running Truenas.
Any advice? Which firmware file should I upload? The difference between tb-jqh, or whether I would brick my UPS? ...?
Thanx!
@Firefishy I have a DXP4800GT. Downloaded the latest US3000UPS firmware
US3000_TB_V3.7_US3000_JQH_V3.7_20260907.bin. It has 2 firmware files:US3000_JQH_V3.7.binUS3000_TB_V3.7.bin. Downloaded latest DXP4800GT firmware, and after extracting the contained fw.squashfs, has asquashfs-root/usr/sbin/us3000_jqh_otaand.../us3000_jqh_ota.bin. The non-bin is a script stopping servicess, run us3000_jqh_ota.bin, and start services. Not the...tb...file. Running Truenas. Any advice? Which firmware file should I upload? The difference between tb-jqh, or whether I would brick my UPS? ...? Thanx!
us3000_tb_ota, can be found in the previous release pack of the firmware.
I used : US3000_TB_V3.7.bin
From there you can update the US3000 to the lastest firmware.
After the update, the US3000 is now able show more stats with NUT 2.85+ in docker (Nut-server and Peanut) with Truenas but is still not working with default behavior unless you override the default settings of UPS.conf with the same parameters.
This is an example:
ignorelb
override.battery.charge.low = 20
override.battery.runtime.low = 240
Without it the US3000 won't shutdown below 20% (the default parameters and behavior)
@daibaron Thank you for your reply, but looks like for the DXP4800GT it is different.
I downloaded 2 recent and the oldest as available on the https://ai.ugreen.com/pages/downloads site for the nas DXP4800GT.
I extracted each of them and their fw.squashfs file. They all contain the us3000_jqh_ota.bin, and no the us3000_tb_ota file.
Does one upload the tb-firmware using the jqh executable, or the jqh-firmware?
-rwxr-xr-x 1 root root 18808 Nov 2 11:39 _release_goversion_20261027-firmware_image-1.21.1.16-intel_release_amd64_6.18_nasync.img.extracted/_fw.squashfs.extracted/squashfs-root/usr/sbin/us3000_jqh_ota.bin -rwxr-xr-x 1 root root 18808 Oct 27 12:00 _release_20261027-firmware_image-1.21.0.190-intel_release_amd64_6.18_nasync.img.extracted/_fw.squashfs.extracted/squashfs-root/usr/sbin/us3000_jqh_ota.bin -rwxr-xr-x 1 root root 18808 Sep 17 09:08 _release_20260921-firmware_image-1.20.0.142-intel_release_amd64_6.18_nasync.img.extracted/_fw.squashfs.extracted/squashfs-root/usr/sbin/us3000_jqh_ota.bin -rwxr-xr-x 1 root root 18808 May 7 2026 _release_gt-firmware_image-1.15.20.4-intel_release_amd64_6.18.img.extracted/_fw.squashfs.extracted/squashfs-root/usr/sbin/us3000_jqh_ota.bin