Open ghost opened 5 years ago
from https://networkupstools.org/support.html#_request_help :
/path/to/driver -DD -a <upsname>
If you don’t include the above information in your help request, we will not be able to help you!
Hello. I have a similar unit: Salicru SPS Home 850 VA https://www.salicru.com/en/sps-home-eng.html I got to the point of running the usb hid debug driver exploration.
/lib/nut# ./usbhid-ups -DD -x explore -x vendorid=2e66 -a salicru >& salicru-usbhid-explore.txt
It gets into a loop. I stopped it after a while with ctrl+c. a The info is attached to this post.
I'm running Proxmox 6, a debian buster derivative. uname -a returns:
Linux pve 5.0.21-5-pve #1 SMP PVE 5.0.21-10 (Wed, 13 Nov 2019 08:27:10 +0100) x86_64 GNU/Linux
Nut version is 2.7.4-8, installed via apt-get.
Unfortunately I don't know to proceed further, as the documentation starts talking about implementing new drivers and I wouldn't be able to tackle that... can I help with anything else?
If you don’t include the above information in your help request, we will not be able to help you!
This issue is still tagged as "need more info"... can I help with any more information? Thanks.
Hi, I am trying to run the same unit as @RebelPhoton.
My OS is Raspbian and running uname -a retuns:
Linux pi-hole 4.19.97+ #1294 Thu Jan 30 13:10:54 GMT 2020 armv6l GNU/Linux
I have Nut version 2.7.4-8 installed via apt-get
Package: nut Version: 2.7.4-8 Priority: optional Section: metapackages Maintainer: Arnaud Quette <aquette@debian.org> Installed-Size: 270 kB Depends: nut-client, nut-server Homepage: http://www.networkupstools.org/ Tag: admin::monitoring, hardware::power, hardware::power:ups, interface::daemon, network::server, role::program, scope::utility Download-Size: 245 kB APT-Manual-Installed: yes APT-Sources: http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
I ran the driver explore
/lib/nut/usbhid-ups -DD -x explore -x vendorid=2a66 -a salicru >& salicru-explore.txt
salicru_explore.txt
Hi all! I have this UPS unit and I can't get to work with vendor's supplied software PowerMaster. I think it needs the correct driver but I tried with usbhid-ups and _blazerusb without results. The UPS cannot be detected. In Windows it's OK.
Any clue? Thanks.
Same issue using the following:
SPS 850 HOME, https://www.salicru.com/sps-home.html
OS
# grep NAME /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_CODENAME=bullseye
Kernel:
# uname -a
Linux raspberrypi 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux
NUT version install from package.
# dpkg -l | grep nut-
ii nut-client 2.7.4-13 armhf network UPS tools - clients
ii nut-server 2.7.4-13 armhf network UPS tools - core system
# upsdrvctl -V
Network UPS Tools - UPS driver controller 2.7.4
usb-devices
$ usb-devices
T: Bus=01 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#= 6 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=2e66 ProdID=0300 Rev=02.00
S: Manufacturer=1
S: Product= 850
S: SerialNumber=
C: #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I: If#=0x0 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
lsusb
$ lsusb -v
Bus 001 Device 005: ID 2e66:0300 1 850
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x2e66
idProduct 0x0300
bcdDevice 2.00
iManufacturer 3 1
iProduct 1 850
iSerial 2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0029
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 739
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 20
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 20
usbhid-ups:
# /lib/nut/usbhid-ups -DD -x explore -x vendorid=2a66 -a salicru
Network UPS Tools - Generic HID driver 0.41 (2.7.4)
USB communication driver 0.33
0.000000 debug level is '2'
0.002942 upsdrv_initups...
0.005266 Checking device (2E66/0300) (001/004)
0.006523 - VendorID: 2e66
0.007462 - ProductID: 0300
0.008361 - Manufacturer: unknown
0.009257 - Product: unknown
0.010172 - Serial Number: unknown
0.010977 - Bus: 001
0.011977 - Device release number: 0200
0.012898 Trying to match device
0.013865 Device does not match - skipping
(...)
0.024254 No appropriate HID device found
0.024630 No matching HID UPS found
Created a generic salicru subdriver and now getting additional information, however not sure where to go from there.
$ sudo ./drivers/usbhid-ups -DD -u root -x productid=0300 -a salicru
Network UPS Tools - Generic HID driver 0.43 (2.7.4-3304-g6135bb65)
USB communication driver 0.33
0.000000 [D1] debug level is '2'
0.002536 [D2] Initializing an USB-connected UPS with library (null) (NUT subdriver name='USB communication driver' ver='0.33')
0.002634 [D1] upsdrv_initups (non-SHUT)...
0.004074 [D2] Checking device (2E66/0300) (001/008)
0.006768 [D2] - VendorID: 2e66
0.006847 [D2] - ProductID: 0300
0.006905 [D2] - Manufacturer: 1
0.006964 [D2] - Product: 850
0.007021 [D2] - Serial Number:
0.007079 [D2] - Bus: 001
0.007137 [D2] - Device: 008
0.007192 [D2] - Device release number: 0200
0.007241 [D2] Trying to match device
0.007358 [D2] match_function_subdriver (non-SHUT mode): matching a device...
0.007583 [D2] Device matches
0.007730 [D2] failed to claim USB device: could not claim interface 0: Device or resource busy
0.009234 [D2] detached kernel driver from USB device...
0.010951 [D2] HID descriptor length 739
0.015277 [D2] Report Descriptor size = 739
0.015867 Using subdriver: Salicru HID 0.1
0.015962 [D1] 73 HID objects found
0.016524 [D1] Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1
0.017777 [D1] Path: UPS.PowerSummary.iSerialNumber, Type: Feature, ReportID: 0x02, Offset: 0, Size: 8, Value: 2
0.019025 [D1] Path: UPS.PowerSummary.iOEMInformation, Type: Feature, ReportID: 0x03, Offset: 0, Size: 8, Value: 3
0.020166 [D1] Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x04, Offset: 0, Size: 8, Value: 4
0.021537 [D1] Path: UPS.PowerSummary.Rechargeable, Type: Feature, ReportID: 0x05, Offset: 0, Size: 8, Value: 1
0.022780 [D1] Path: UPS.PowerSummary.CapacityMode, Type: Feature, ReportID: 0x06, Offset: 0, Size: 8, Value: 2
0.023899 [D1] Path: UPS.PowerSummary.DesignCapacity, Type: Feature, ReportID: 0x07, Offset: 0, Size: 8, Value: 100
0.024812 [D1] Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, ReportID: 0x07, Offset: 8, Size: 8, Value: 10
0.025600 [D1] Path: UPS.PowerSummary.CapacityGranularity2, Type: Feature, ReportID: 0x07, Offset: 16, Size: 8, Value: 10
0.026334 [D1] Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, ReportID: 0x07, Offset: 24, Size: 8, Value: 20
0.027068 [D1] Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, ReportID: 0x07, Offset: 32, Size: 8, Value: 100
0.027785 [D1] Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, ReportID: 0x07, Offset: 40, Size: 8, Value: 10
0.028534 [D1] Path: UPS.PowerSummary.RemainingCapacity, Type: Input, ReportID: 0x08, Offset: 0, Size: 8, Value: 100
0.028688 [D1] Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x08, Offset: 0, Size: 8, Value: 100
0.028826 [D1] Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 0x08, Offset: 8, Size: 16, Value: 6000
0.028962 [D1] Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x08, Offset: 8, Size: 16, Value: 6000
0.029350 [D1] Path: UPS.PowerSummary.RemainingTimeLimit, Type: Input, ReportID: 0x08, Offset: 24, Size: 16, Value: 300
0.029486 [D1] Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature, ReportID: 0x08, Offset: 24, Size: 16, Value: 300
0.030087 [D1] Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, ReportID: 0x09, Offset: 0, Size: 16, Value: 12
0.030647 [D1] Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x0a, Offset: 0, Size: 16, Value: 13.5
0.031269 [D1] Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, ReportID: 0x0b, Offset: 0, Size: 1, Value: 1
0.031417 [D1] Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, ReportID: 0x0b, Offset: 1, Size: 1, Value: 1
0.031551 [D1] Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0
0.031687 [D1] Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, ReportID: 0x0b, Offset: 3, Size: 1, Value: 0
0.031820 [D1] Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Input, ReportID: 0x0b, Offset: 4, Size: 1, Value: 1
0.031954 [D1] Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input, ReportID: 0x0b, Offset: 5, Size: 1, Value: 0
0.032351 [D1] Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 1, Value: 1
0.032495 [D1] Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x0b, Offset: 1, Size: 1, Value: 1
0.032628 [D1] Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0
0.032952 [D1] Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x0b, Offset: 3, Size: 1, Value: 0
0.033098 [D1] Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Feature, ReportID: 0x0b, Offset: 4, Size: 1, Value: 1
0.033232 [D1] Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, ReportID: 0x0b, Offset: 5, Size: 1, Value: 0
0.034036 [D1] Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 2
0.034767 [D1] Path: UPS.PowerSummary.iManufacturer, Type: Feature, ReportID: 0x0d, Offset: 0, Size: 8, Value: 3
0.035401 [D1] Path: UPS.Input.ConfigVoltage, Type: Feature, ReportID: 0x0e, Offset: 0, Size: 16, Value: 230
0.035992 ERROR in GetValue: LogMin is greater than LogMax, possibly vendor HID is incorrect on device side; skipping evaluation of these constraints
0.036140 [D1] Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 224.5
0.036632 [D1] Path: UPS.Input.LowVoltageTransfer, Type: Feature, ReportID: 0x10, Offset: 0, Size: 16, Value: 180
0.037134 [D1] Path: UPS.Input.HighVoltageTransfer, Type: Feature, ReportID: 0x11, Offset: 0, Size: 16, Value: 270
0.037634 [D1] Path: UPS.Input.Frequency, Type: Feature, ReportID: 0x1c, Offset: 0, Size: 16, Value: 50
0.038116 ERROR in GetValue: LogMin is greater than LogMax, possibly vendor HID is incorrect on device side; skipping evaluation of these constraints
0.038256 [D1] Path: UPS.Output.Voltage, Type: Feature, ReportID: 0x12, Offset: 0, Size: 16, Value: 224.5
0.038742 ERROR in GetValue: LogMin is greater than LogMax, possibly vendor HID is incorrect on device side; skipping evaluation of these constraints
0.038880 [D1] Path: UPS.Output.PercentLoad, Type: Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 0
0.039382 [D1] Path: UPS.Output.Test, Type: Feature, ReportID: 0x14, Offset: 0, Size: 8, Value: 0
0.039923 [D1] Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: -60
0.040508 [D1] Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID: 0x16, Offset: 0, Size: 16, Value: -60
0.041007 [D1] Path: UPS.Output.Boost, Type: Feature, ReportID: 0x17, Offset: 0, Size: 1, Value: 0
0.041142 [D1] Path: UPS.Output.Overload, Type: Feature, ReportID: 0x17, Offset: 1, Size: 1, Value: 0
0.041274 [D1] Path: UPS.Output.Buck, Type: Feature, ReportID: 0x17, Offset: 2, Size: 1, Value: 0
0.041759 [D1] Path: UPS.Output.ConfigActivePower, Type: Feature, ReportID: 0x18, Offset: 0, Size: 16, Value: 490
0.042256 [D1] Path: UPS.Output.Frequency, Type: Feature, ReportID: 0x1d, Offset: 0, Size: 16, Value: 50
0.042757 [D1] Path: UPS.Output.CommunicationLost, Type: Feature, ReportID: 0x1b, Offset: 0, Size: 8, Value: 0
0.043266 [D1] Path: UPS.ff010004.ff010024.ff0100d0, Type: Feature, ReportID: 0x19, Offset: 0, Size: 8, Value: 0.1
0.043766 [D1] Path: UPS.ff010004.ff010024.ff0100d1, Type: Feature, ReportID: 0x1a, Offset: 0, Size: 8, Value: 0
0.044308 [D1] Path: UPS.ff01001d.ff010019.ff010020, Type: Feature, ReportID: 0x25, Offset: 0, Size: 1, Value: 0
0.044762 [D1] Path: UPS.ff01001d.ff010019.ff010021, Type: Feature, ReportID: 0x2c, Offset: 0, Size: 1, Value: 0
0.044891 [D1] Path: UPS.ff01001d.ff010019.ff010021, Type: Input, ReportID: 0x2c, Offset: 0, Size: 1, Value: 0
0.045386 [D1] Path: UPS.ff01001d.ff01001a.ff010001, Type: Feature, ReportID: 0x26, Offset: 0, Size: 1, Value: 0
0.045888 [D1] Path: UPS.ff01001d.ff01001a.ff010002, Type: Feature, ReportID: 0x27, Offset: 0, Size: 8, Value: 1
0.047553 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.047659 [D1] Can't retrieve Report 28: Value too large for defined data type
0.047796 [D1] Path: UPS.ff01001d.ff01001b.ff010040, Type: Feature, ReportID: 0x28, Offset: 0, Size: 8
0.048272 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.048403 [D1] Can't retrieve Report 28: Value too large for defined data type
0.048537 [D1] Path: UPS.ff01001d.ff01001b.ff010016, Type: Input, ReportID: 0x28, Offset: 0, Size: 8
0.049017 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.049147 [D1] Can't retrieve Report 28: Value too large for defined data type
0.049280 [D1] Path: UPS.ff01001d.ff01001b.ff010018, Type: Feature, ReportID: 0x28, Offset: 8, Size: 8
0.050944 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.051124 [D1] Can't retrieve Report 28: Value too large for defined data type
0.051264 [D1] Path: UPS.ff01001d.ff01001b.ff010018, Type: Input, ReportID: 0x28, Offset: 8, Size: 8
0.052965 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.053137 [D1] Can't retrieve Report 29: Value too large for defined data type
0.053277 [D1] Path: UPS.ff01001d.ff01001b.ff010015, Type: Feature, ReportID: 0x29, Offset: 0, Size: 8
0.053804 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.053954 [D1] Can't retrieve Report 29: Value too large for defined data type
0.054091 [D1] Path: UPS.ff01001d.ff01001b.ff010015, Type: Output, ReportID: 0x29, Offset: 0, Size: 8
0.054530 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.054664 [D1] Can't retrieve Report 29: Value too large for defined data type
0.054799 [D1] Path: UPS.ff01001d.ff01001b.ff010017, Type: Feature, ReportID: 0x29, Offset: 8, Size: 8
0.055285 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.055421 [D1] Can't retrieve Report 29: Value too large for defined data type
0.055557 [D1] Path: UPS.ff01001d.ff01001b.ff010017, Type: Output, ReportID: 0x29, Offset: 8, Size: 8
0.056130 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.056273 [D1] Can't retrieve Report 2d: Value too large for defined data type
0.056409 [D1] Path: UPS.ff01001d.ff01001b.ff010010, Type: Feature, ReportID: 0x2d, Offset: 0, Size: 1
0.056927 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.057074 [D1] Can't retrieve Report 2d: Value too large for defined data type
0.057211 [D1] Path: UPS.ff01001d.ff01001b.ff01001e, Type: Feature, ReportID: 0x2d, Offset: 1, Size: 1
0.057676 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.057825 [D1] Can't retrieve Report 2d: Value too large for defined data type
0.057962 [D1] Path: UPS.ff01001d.ff01001b.ff01001f, Type: Feature, ReportID: 0x2d, Offset: 2, Size: 1
0.058416 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.058551 [D1] Can't retrieve Report 2d: Value too large for defined data type
0.058685 [D1] Path: UPS.ff01001d.ff01001b.ff010010, Type: Input, ReportID: 0x2d, Offset: 0, Size: 1
0.059156 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.059291 [D1] Can't retrieve Report 2d: Value too large for defined data type
0.059426 [D1] Path: UPS.ff01001d.ff01001b.ff01001e, Type: Input, ReportID: 0x2d, Offset: 1, Size: 1
0.059957 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.060112 [D1] Can't retrieve Report 2d: Value too large for defined data type
0.060248 [D1] Path: UPS.ff01001d.ff01001b.ff01001f, Type: Input, ReportID: 0x2d, Offset: 2, Size: 1
0.061944 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.062117 [D1] Can't retrieve Report 2a: Value too large for defined data type
0.062256 [D1] Path: UPS.ff01001d.ff01001b.ff010013, Type: Feature, ReportID: 0x2a, Offset: 0, Size: 1
0.063941 [D2] libusb_get_report: error sending control message: Value too large for defined data type
0.064104 [D1] Can't retrieve Report 2b: Value too large for defined data type
0.064242 [D1] Path: UPS.ff01001d.ff01001b.ff010014, Type: Feature, ReportID: 0x2b, Offset: 0, Size: 1
0.064417 [D2] Report descriptor retrieved (Reportlen = 739)
0.064542 [D2] Found HID device
Just push an initial release of the Salicru driver via #1199 and now getting the following information. Would be great to confirm the output value. @Tnix76 @RebelPhoton @gnomework could you help to compare the data from the official software.
$ ./clients/upsc salicru@localhost
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: 1
battery.runtime: 1440
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage.nominal: 12
device.mfr: 1
device.model: 850
device.serial:
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: no
driver.version: 2.7.4-3304-g6135bb65
driver.version.data: Salicru HID 0.1
driver.version.internal: 0.43
input.frequency: 50.2
input.transfer.high: 270
input.transfer.low: 180
input.voltage: 224.5
input.voltage.nominal: 230
output.frequency: 50.2
output.voltage: 224.5
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 18
ups.mfr: 1
ups.model: 850
ups.productid: 0300
ups.realpower.nominal: 490
ups.serial:
ups.status: OL
ups.timer.shutdown: -60
ups.timer.start: -60
ups.vendorid: 2e66
Cool! Negative timer values look a bit weird though :\
On Tue, Nov 23, 2021, 00:05 xbgmsharp @.***> wrote:
Just push an initial release of the Salicru driver and now getting the following information. Would be great to confirm the output value. @Tnix76 https://github.com/Tnix76 @RebelPhoton https://github.com/RebelPhoton @gnomework https://github.com/gnomework could you help to compare the data from the official software.
$ ./clients/upsc @.*** battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: 1 battery.runtime: 1440 battery.runtime.low: 300 battery.type: PbAcid battery.voltage.nominal: 12 device.mfr: 1 device.model: 850 device.serial: device.type: upsdriver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.parameter.synchronous: no driver.version: 2.7.4-3304-g6135bb65 driver.version.data: Salicru HID 0.1 driver.version.internal: 0.43 input.frequency: 50.2 input.transfer.high: 270 input.transfer.low: 180 input.voltage: 224.5 input.voltage.nominal: 230 output.frequency: 50.2 output.voltage: 224.5 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 18 ups.mfr: 1 ups.model: 850 ups.productid: 0300 ups.realpower.nominal: 490 ups.serial: ups.status: OL ups.timer.shutdown: -60 ups.timer.start: -60 ups.vendorid: 2e66
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/networkupstools/nut/issues/732#issuecomment-975992612, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMPTFFNLBJX2MHQFXZTPODUNLEDPANCNFSM4IZJ27DA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Latest output confirmed with the model I have.
$ sudo ./clients/upsc salicru@localhost
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.runtime: 1440
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 13.50
battery.voltage.nominal: 12
device.mfr: 1
device.model: 850
device.serial:
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: no
driver.version: 2.7.4-3324-g845d808c
driver.version.data: Salicru HID 0.1
driver.version.internal: 0.43
input.frequency: 50.0
input.voltage: 224.5
input.voltage.nominal: 230
output.frequency: 50.0
output.voltage: 224.5
ups.beeper.status: enabled
ups.load: 18
ups.mfr: 1
ups.model: 850
ups.productid: 0300
ups.realpower.nominal: 490
ups.serial:
ups.status: OL
ups.vendorid: 2e66
Cool! Negative timer values look a bit weird though :\
I think that's a HID PDC thing, where the timer values are negative when the timer isn't counting. From an MGE UPS:
ups.timer.shutdown: -1
ups.timer.start: -10
In the report, is the device.mfr
supposed to be 1
? (I see that in usb-devices
and lsusb
listings above as well... looks weird :) )
With the changes mentioned above, merged and tested, the UPS model should not be "incompatible" anymore; so closed the issue.
Hi,
I have the same model, but the 650 VA version instead, and it doesn't work for me. VendorID and ProductID are the same, but it doesn't find a match. Any idea?
System info: uname -a Linux raspberrypi 5.15.84-v7l+ #1613 SMP Thu Jan 5 12:01:26 GMT 2023 armv7l GNU/Linux
dpkg -l | grep nut-server nut-server 2.7.4-13
Installation method: repository => apt get
/lib/nut/usbhid-ups -DD -x explore -x vendorid=2a66 -a salicru Network UPS Tools - Generic HID driver 0.41 (2.7.4) USB communication driver 0.33 0.000000 debug level is '2' 0.002139 upsdrv_initups... (...) 0.176997 Checking device (2E66/0300) (001/006) 0.177164 - VendorID: 2e66 0.177251 - ProductID: 0300 0.177309 - Manufacturer: unknown 0.177365 - Product: unknown 0.177444 - Serial Number: unknown 0.177525 - Bus: 001 0.177582 - Device release number: 0200 0.177664 Trying to match device 0.177750 Device does not match - skipping (...) 0.180710 No appropriate HID device found 0.180770 No matching HID UPS found
You would need to install the package by source, as the drivers is not included yet in Debian release. Please try using NUT v2.8.0. https://github.com/networkupstools/nut/wiki/Links-to-distribution-packaging-recipes-and-repository-sections
You would need to install the package by source, as the drivers is not included yet in Debian release. Please try using NUT v2.8.0. https://github.com/networkupstools/nut/wiki/Links-to-distribution-packaging-recipes-and-repository-sections
Thanks for the answer, @xbgmsharp.
I'm not used to build packages from source, but I think I got it right. I used the parameter "-u root" to check meanwhile, since looks like it's not that easy to set permissions to USB devices. However, seems like I still have the same problem, although at the end it says "libusb1: Could not open any HID devices: insufficient permissions on everything", which I'm not sure if it's related to that. Any idea?
/usr/local/ups/bin/usbhid-ups -DD -x explore -u root -x vendorid=2a66 -a salicru Network UPS Tools - Generic HID driver 0.49 (2.8.0.1) USB communication driver (libusb 1.0) 0.45 0.000001 [D1] Built-in default or configured user for drivers 'nut' was ignored due to 'root' specified on command line 0.000457 [D1] Network UPS Tools version 2.8.0.1 (release/snapshot of 2.8.0.1) built with gcc (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110 and configured with flags: --with-user=nut --with-group=nut --with-usb 0.000499 [D1] debug level is '2' 0.001858 [D1] Succeeded to become_user(root): now UID=0 GID=0 0.001957 [D2] Initializing an USB-connected UPS with library libusb-1.0.24 (API: 0x1000108) (NUT subdriver name='USB communication driver (libusb 1.0)' ver='0.45') 0.001999 [D1] upsdrv_initups (non-SHUT)... (...) 0.056719 [D2] Checking device 2 of 5 (2E66/0300) 0.062236 [D2] - VendorID: 2e66 0.062289 [D2] - ProductID: 0300 0.062336 [D2] - Manufacturer: 1 0.062379 [D2] - Product: 650 0.062422 [D2] - Serial Number: 0.062466 [D2] - Bus: 001 0.062510 [D2] - Device: 006 0.062557 [D2] - Device release number: 0200 0.062600 [D2] Trying to match device 0.062647 [D2] match_function_subdriver (non-SHUT mode): matching a device... 0.062762 [D2] match_function_regex: failed match of VendorID: 2e66 0.062808 [D2] Device does not match - skipping (...) 0.072133 [D2] libusb1: No appropriate HID device found 0.072202 libusb1: Could not open any HID devices: insufficient permissions on everything 0.072304 No matching HID UPS found
In the command you ask for 2a66 but the device is 2e66
In the command you ask for 2a66 but the device is 2e66
Oh my!! My dyslexia... [facepalm]
Looks like now it's detecting it. I'll do some more checks.
BTW, is it also possible to compile it for a Synology NAS? The issue was solved a year and a half ago and it still doesn't have this version :(
Thanks for the help!
I am not sure, probably it would be best to first bring it up with them as a customer, so it would be a "proper" release. Otherwise, they are obliged under GPL terms to provide at least recipes of how to build your own binary similar to theirs...
I do not know how Synology is built and provided (images? packages?), or on what OS under the hood, so can't help more...
Hello, I think I have the same problem, with a UPS 650 home, I can't get it to work, but a ONE 700 is working without any problem NUT
Could someone help me get it up and running on my RPI 3b+?
THANK YOU!
What NUT version do you run? (2.8.1 is finally out) What messages do you see with elevated debug verbosity - why your driver build thinks it does not recognize the device?
What NUT version do you run? (2.8.1 is finally out) What messages do you see with elevated debug verbosity - why your driver build thinks it does not recognize the device?
Hello, thanks for the response, I'm a bit of a newbie, I've seen that this version is finally available, but I don't know how to install it on my Raspberry Pi, maybe that's the solution, I'm currently Running an older version. Could you help me install that final version, maybe it will be the solution to my problem
Once again thanks for the help!!
Currently not on PC to type much. Check the wiki, e.g. on "in-place" builds.
Currently not on PC to type much. Check the wiki, e.g. on "in-place" builds.
Ok, thanks!
Hi I used nut, to monitor other sais, but I recently bought a salicru sps home, and I am not able to make it work with any driver, could someone help me?