Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Salicru SPS SOHO+ 500 VA supported by usbhid-ups #803

Open
tiagofreire-pt opened this issue Jul 10, 2020 · 14 comments
Open

Salicru SPS SOHO+ 500 VA supported by usbhid-ups #803

tiagofreire-pt opened this issue Jul 10, 2020 · 14 comments
Labels
HCL Phoenixtec (USB 0x06DA/0xFFFF) This USB chip VID/PID is used in many devices, some with different protocols - detection may be hard Salicru Salicru devices USB

Comments

@tiagofreire-pt
Copy link

tiagofreire-pt commented Jul 10, 2020

This one: https://www.salicru.com/en-uk/sps-500-soho-.html

Connected by USB type-B port only, as this model doesn't have any serial port.

Logs:

# upsc salicru@localhost
Init SSL without certificate database
battery.charge: 65
battery.runtime: 3427
battery.type: PbAc
battery.voltage: 13
device.mfr: PPC
device.model: Offline UPS
device.serial: 000000000   
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
driver.version.data: Phoenixtec/Liebert HID 0.3
driver.version.internal: 0.41
ups.load: 6
ups.mfr: PPC
ups.model: Offline UPS
ups.productid: ffff
ups.serial: 000000000   
ups.status: OL CHRG
ups.vendorid: 06da
# upsrw salicru@localhost

# upscmd -l salicru@localhost
Instant commands supported on UPS [salicru]:

Tutorial for this UPS with NUT, on Proxmox VE (Debian 10): https://github.com/tiagofreire-pt/Home_Assistant_Salicru_SOHO_UPS

@clepple clepple added the HCL label Jul 11, 2020
@clepple
Copy link
Member

clepple commented Jul 11, 2020

Thanks for the information. One note of caution: it doesn't look like we support a shutdown command for this UPS.

@tiagofreire-pt
Copy link
Author

More info:

# /lib/nut/usbhid-ups -DD -u root -x explore -x vendorid=06da -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.002286     upsdrv_initups...
(...)
   0.119393     Checking device (06DA/FFFF) (001/006)
   0.124645     - VendorID: 06da
   0.124700     - ProductID: ffff
   0.124705     - Manufacturer: unknown
   0.124710     - Product: Offline UPS
   0.124715     - Serial Number: 000000000   
   0.124720     - Bus: 001
   0.124724     - Device release number: 0003
   0.124729     Trying to match device
   0.124774     Device matches
   0.125573     HID descriptor length 495
   0.143600     Report Descriptor size = 495
   0.143996     Using subdriver: EXPLORE HID 0.1
   0.144050     45 HID objects found
   0.144523     Path: UPS.BatterySystem.Battery.Test, Type: Feature, ReportID: 0x24, Offset: 0, Size: 8, Value: 6
   0.145147     Path: UPS.Flow.[4].ConfigApparentPower, Type: Feature, ReportID: 0x74, Offset: 0, Size: 16, Value: 2
   0.145599     Path: UPS.Flow.[4].ConfigFrequency, Type: Feature, ReportID: 0x36, Offset: 0, Size: 8, Value: 50
   0.146083     Path: UPS.Flow.[4].ConfigVoltage, Type: Feature, ReportID: 0x72, Offset: 0, Size: 8, Value: 230
   0.146541     Path: UPS.PowerConverter.ffff0041, Type: Feature, ReportID: 0x4a, Offset: 0, Size: 8, Value: 1
   0.147125     Path: UPS.PowerConverter.Input.[1].Voltage, Type: Feature, ReportID: 0x31, Offset: 0, Size: 16, Value: 231
   0.147600     Path: UPS.PowerConverter.Input.[1].PresentStatus.Boost, Type: Feature, ReportID: 0x2d, Offset: 0, Size: 8, Value: 0
   0.147629     Path: UPS.PowerConverter.Input.[1].PresentStatus.Boost, Type: Input, ReportID: 0x2d, Offset: 0, Size: 8, Value: 0
   0.147639     Path: UPS.PowerConverter.Input.[1].PresentStatus.Buck, Type: Feature, ReportID: 0x2d, Offset: 8, Size: 8, Value: 0
   0.147649     Path: UPS.PowerConverter.Input.[1].PresentStatus.Buck, Type: Input, ReportID: 0x2d, Offset: 8, Size: 8, Value: 0
   0.148125     Path: UPS.PowerConverter.Output.Frequency, Type: Feature, ReportID: 0x42, Offset: 0, Size: 16, Value: 50.3
   0.148156     Path: UPS.PowerConverter.Output.Voltage, Type: Feature, ReportID: 0x42, Offset: 16, Size: 16, Value: 231
   0.148565     Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 2
   0.149118     Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 0x09, Offset: 0, Size: 32, Value: 0
   0.149580     Path: UPS.PowerSummary.DelayBeforeStartup, Type: Feature, ReportID: 0x0a, Offset: 0, Size: 32, Value: 0
   0.150290     Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x10, Offset: 0, Size: 8, Value: 5
   0.150327     Path: UPS.PowerSummary.iManufacturer, Type: Feature, ReportID: 0x10, Offset: 8, Size: 8, Value: 1
   0.150337     Path: UPS.PowerSummary.ffff00f0, Type: Feature, ReportID: 0x10, Offset: 16, Size: 8, Value: 3
   0.150347     Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x10, Offset: 24, Size: 8, Value: 2
   0.150399     Path: UPS.PowerSummary.iSerialNumber, Type: Feature, ReportID: 0x10, Offset: 32, Size: 8, Value: 4
   0.150890     Path: UPS.PowerSummary.ffff00e2, Type: Feature, ReportID: 0xe2, Offset: 0, Size: 8, Value: 4
   0.151352     Path: UPS.PowerSummary.PercentLoad, Type: Feature, ReportID: 0x07, Offset: 0, Size: 8, Value: 5
   0.151931     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1
   0.151975     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, ReportID: 0x01, Offset: 0, Size: 8, Value: 1
   0.151986     Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x01, Offset: 8, Size: 8, Value: 0
   0.151997     Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, ReportID: 0x01, Offset: 8, Size: 8, Value: 0
   0.152008     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x01, Offset: 16, Size: 8, Value: 1
   0.152018     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, ReportID: 0x01, Offset: 16, Size: 8, Value: 1
   0.152028     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x01, Offset: 24, Size: 8, Value: 0
   0.152055     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, ReportID: 0x01, Offset: 24, Size: 8, Value: 0
   0.152067     Path: UPS.PowerSummary.PresentStatus.Good, Type: Feature, ReportID: 0x01, Offset: 32, Size: 8, Value: 1
   0.152091     Path: UPS.PowerSummary.PresentStatus.Good, Type: Input, ReportID: 0x01, Offset: 32, Size: 8, Value: 1
   0.152101     Path: UPS.PowerSummary.PresentStatus.InternalFailure, Type: Feature, ReportID: 0x01, Offset: 40, Size: 8, Value: 0
   0.152111     Path: UPS.PowerSummary.PresentStatus.InternalFailure, Type: Input, ReportID: 0x01, Offset: 40, Size: 8, Value: 0
   0.152121     Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, ReportID: 0x01, Offset: 48, Size: 8, Value: 0
   0.152131     Path: UPS.PowerSummary.PresentStatus.Overload, Type: Input, ReportID: 0x01, Offset: 48, Size: 8, Value: 0
   0.152785     Path: UPS.PowerSummary.DesignCapacity, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 8, Value: 100
   0.152827     Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, ReportID: 0x0b, Offset: 8, Size: 8, Value: 1
   0.152838     Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, ReportID: 0x0b, Offset: 16, Size: 8, Value: 100
   0.152848     Path: UPS.PowerSummary.CapacityMode, Type: Feature, ReportID: 0x0b, Offset: 24, Size: 8, Value: 2
   0.153457     Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x06, Offset: 0, Size: 8, Value: 100
   0.153496     Path: UPS.PowerSummary.RemainingCapacity, Type: Input, ReportID: 0x06, Offset: 0, Size: 8, Value: 100
   0.153507     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x06, Offset: 8, Size: 16, Value: 5273
   0.153517     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 0x06, Offset: 8, Size: 16, Value: 5273
   0.153527     Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x07, Offset: 8, Size: 16, Value: 13.6
   0.153547     Report descriptor retrieved (Reportlen = 495)
   0.153553     Found HID device
   0.153572     Detected a UPS: unknown/Offline UPS
   0.153583     find_nut_info: unknown info type: load.off.delay
   0.153588     find_nut_info: unknown info type: load.on.delay
   0.153593     find_nut_info: unknown info type: load.off.delay
   0.153606     upsdrv_initinfo...
   0.153616     upsdrv_updateinfo...
   0.404685     libusb_get_interrupt: Connection timed out
   0.404724     Got 0 HID objects...
   0.404737     Quick update...
   0.404907     dstate_init: sock /var/run/nut/usbhid-ups-salicru open on fd 5
   0.404942     upsdrv_updateinfo...
   0.656071     libusb_get_interrupt: Connection timed out
   0.656113     Got 0 HID objects...
   0.656122     Quick update...
   2.406257     upsdrv_updateinfo...
   2.656377     libusb_get_interrupt: Connection timed out
   2.656418     Got 0 HID objects...
   2.656430     Quick update...
   4.408040     upsdrv_updateinfo...
   4.658397     libusb_get_interrupt: Connection timed out
   4.658438     Got 0 HID objects...
   4.658446     Quick update...
   6.408740     upsdrv_updateinfo...
   6.659393     libusb_get_interrupt: Connection timed out
   6.659436     Got 0 HID objects...
   6.659444     Quick update...
   8.410247     upsdrv_updateinfo...
   8.660544     libusb_get_interrupt: Connection timed out
   8.660588     Got 0 HID objects...
   8.660601     Quick update...
  10.411098     upsdrv_updateinfo...
  10.661683     libusb_get_interrupt: Connection timed out
  10.661750     Got 0 HID objects...
  10.661759     Quick update...
  12.412875     upsdrv_updateinfo...
  12.663302     libusb_get_interrupt: Connection timed out
  12.663337     Got 0 HID objects...
  12.663352     Quick update...
  14.414359     upsdrv_updateinfo...
  14.664963     libusb_get_interrupt: Connection timed out
  14.664999     Got 0 HID objects...
  14.665007     Quick update...
  16.415343     upsdrv_updateinfo...
  16.666492     libusb_get_interrupt: Connection timed out
  16.666528     Got 0 HID objects...
  16.666536     Quick update...
  18.417188     upsdrv_updateinfo...
  18.667657     libusb_get_interrupt: Connection timed out
  18.667696     Got 0 HID objects...
  18.667704     Quick update...
  20.418689     upsdrv_updateinfo...
  20.669313     libusb_get_interrupt: Connection timed out
  20.669350     Got 0 HID objects...
  20.669359     Quick update...
  22.418873     upsdrv_updateinfo...
  22.669384     libusb_get_interrupt: Connection timed out
  22.669421     Got 0 HID objects...
  22.669429     Quick update...
  24.419831     upsdrv_updateinfo...
  24.670480     libusb_get_interrupt: Connection timed out
  24.670525     Got 0 HID objects...
  24.670534     Quick update...
  26.420283     upsdrv_updateinfo...
  26.671625     libusb_get_interrupt: Connection timed out
  26.671662     Got 0 HID objects...
  26.671671     Quick update...
  28.420951     upsdrv_updateinfo...
  28.671426     libusb_get_interrupt: Connection timed out
  28.671473     Got 0 HID objects...
  28.671482     Quick update...
  30.422287     upsdrv_updateinfo...
  30.672513     libusb_get_interrupt: Connection timed out
  30.672554     Got 0 HID objects...
  30.672563     Quick update...
  32.423875     upsdrv_updateinfo...
  32.674588     libusb_get_interrupt: Connection timed out
  32.674626     Got 0 HID objects...
  32.674634     Full update...
  34.425146     upsdrv_updateinfo...
  34.676313     libusb_get_interrupt: Connection timed out
  34.676359     Got 0 HID objects...
  34.676368     Quick update...
  36.427087     upsdrv_updateinfo...
  36.678007     libusb_get_interrupt: Connection timed out
  36.678046     Got 0 HID objects...
  36.678054     Quick update...
  38.427720     upsdrv_updateinfo...
  38.678708     libusb_get_interrupt: Connection timed out
  38.678749     Got 0 HID objects...
  38.678762     Quick update...
  40.428451     upsdrv_updateinfo...
  40.679697     libusb_get_interrupt: Connection timed out
  40.679739     Got 0 HID objects...
  40.679748     Quick update...
  42.430301     upsdrv_updateinfo...
  42.681057     libusb_get_interrupt: Connection timed out
  42.681097     Got 0 HID objects...
  42.681105     Quick update...

@clepple
Copy link
Member

clepple commented Jul 12, 2020 via email

@tiagofreire-pt
Copy link
Author

Additional info:

# /lib/nut/usbhid-ups -a salicru -DDD
Network UPS Tools - Generic HID driver 0.41 (2.7.4)
USB communication driver 0.33
   0.000000     debug level is '3'
   0.002327     upsdrv_initups...
(...)
   0.135006     Checking device (06DA/FFFF) (001/043)
   0.138725     - VendorID: 06da
   0.138762     - ProductID: ffff
   0.138768     - Manufacturer: PPC
   0.138772     - Product: Offline UPS
   0.138776     - Serial Number: unknown
   0.138781     - Bus: 001
   0.138785     - Device release number: 0003
   0.138790     Trying to match device
   0.138801     Device matches
   0.138840     nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 0)
   0.139498     HID descriptor, method 1: (9 bytes) => 09 21 00 01 00 01 22 ef 01
   0.139529     HID descriptor length (method 1) 495
   0.139543     HID descriptor, method 2: (9 bytes) => 09 21 00 01 00 01 22 ef 01
   0.139551     HID descriptor length (method 2) 495
   0.139556     HID descriptor length 495
   0.157434     Report Descriptor size = 495
   0.157474     Report Descriptor: (495 bytes) => 05 84 09 04 a1 01 09 10 a1 00 09 12 a1 00
   0.157485      05 84 09 58 85 24 75 08 95 01 65 00 15 00 26 ff 00 55 00 b1 82 c0 c0 09 1e
   0.157501      a1 84 09 43 85 74 75 10 95 01 15 00 27 ff ff 00 00 66 21 d1 55 07 b1 83 09
   0.157514      42 85 36 75 08 26 ff 00 66 01 f0 55 00 b1 82 09 40 85 72 67 21 d1 f0 00 55
   0.157524      07 b1 82 c0 09 16 a1 00 06 ff ff 09 41 85 4a 65 00 55 00 b1 03 05 84 09 1a
   0.157533      a1 81 05 84 09 30 85 31 75 10 27 ff ff 00 00 67 21 d1 f0 00 55 07 b1 83 09
   0.157543      02 a1 02 09 6e 85 2d 75 08 26 ff 00 65 00 55 00 b1 83 09 6e 81 83 09 6f b1
   0.157552      83 09 6f 81 83 c0 c0 05 84 09 1c a1 00 05 84 09 32 85 42 75 10 27 ff ff 00
   0.157562      00 66 01 f0 55 0f b1 83 05 84 09 30 85 42 75 10 27 ff ff 00 00 67 21 d1 f0
   0.157571      00 55 07 b1 83 c0 c0 09 24 a1 00 09 5a 85 13 75 08 15 00 26 ff 00 65 00 55
   0.157582      00 b1 82 05 84 09 57 85 09 75 20 15 ff 27 ff ff ff 7f 66 01 10 b1 82 09 56
   0.157592      85 0a b1 82 05 85 09 89 85 10 75 08 15 00 26 ff 00 65 00 b1 03 05 84 09 fd
   0.157602      b1 03 06 ff ff 09 f0 b1 03 05 84 09 fe b1 03 05 84 09 ff b1 03 06 ff ff 09
   0.157619      e2 85 e2 b1 83 05 84 09 35 85 07 15 00 26 ff 00 65 00 b1 83 05 84 09 02 a1
   0.157630      02 05 85 09 d0 85 01 75 08 b1 83 09 d0 81 83 09 42 b1 83 09 42 81 83 09 44
   0.157639      b1 83 09 44 81 83 05 85 09 45 b1 83 09 45 81 83 05 84 09 61 b1 83 09 61 81
   0.157649      83 09 62 b1 83 09 62 81 83 05 84 09 65 b1 83 09 65 81 83 c0 05 85 85 0b 75
   0.157659      08 95 01 15 00 25 64 09 83 b1 03 09 8d b1 03 09 67 65 00 b1 03 09 2c 65 00
   0.157668      b1 03 09 66 85 06 65 00 b1 83 09 66 81 83 05 85 09 68 85 06 75 10 26 ff 7f
   0.157678      66 01 10 b1 83 09 68 81 83 05 84 09 30 85 07 75 10 26 ff 7f 67 21 d1 f0 00
   0.157684      55 06 b1 83 c0 c0
   0.157813     Using subdriver: Phoenixtec/Liebert HID 0.3
   0.157828     45 HID objects found
   0.158263     Report[get]: (2 bytes) => 24 06
   0.158366     Path: UPS.BatterySystem.Battery.Test, Type: Feature, ReportID: 0x24, Offset: 0, Size: 8, Value: 6
   0.158796     Report[get]: (3 bytes) => 74 02 00
   0.158819     Path: UPS.Flow.[4].ConfigApparentPower, Type: Feature, ReportID: 0x74, Offset: 0, Size: 16, Value: 2
   0.159220     Report[get]: (2 bytes) => 36 32
   0.159241     Path: UPS.Flow.[4].ConfigFrequency, Type: Feature, ReportID: 0x36, Offset: 0, Size: 8, Value: 50
   0.159700     Report[get]: (2 bytes) => 72 e6
   0.159729     Path: UPS.Flow.[4].ConfigVoltage, Type: Feature, ReportID: 0x72, Offset: 0, Size: 8, Value: 230
   0.160138     Report[get]: (2 bytes) => 4a 01
   0.160164     Path: UPS.PowerConverter.ffff0041, Type: Feature, ReportID: 0x4a, Offset: 0, Size: 8, Value: 1
   0.160720     Report[get]: (3 bytes) => 31 e4 00
   0.160762     Path: UPS.PowerConverter.Input.[1].Voltage, Type: Feature, ReportID: 0x31, Offset: 0, Size: 16, Value: 228
   0.161196     Report[get]: (3 bytes) => 2d 00 00
   0.161223     Path: UPS.PowerConverter.Input.[1].PresentStatus.Boost, Type: Feature, ReportID: 0x2d, Offset: 0, Size: 8, Value: 0
   0.161230     Report[buf]: (3 bytes) => 2d 00 00
   0.161238     Path: UPS.PowerConverter.Input.[1].PresentStatus.Boost, Type: Input, ReportID: 0x2d, Offset: 0, Size: 8, Value: 0
   0.161244     Report[buf]: (3 bytes) => 2d 00 00
   0.161252     Path: UPS.PowerConverter.Input.[1].PresentStatus.Buck, Type: Feature, ReportID: 0x2d, Offset: 8, Size: 8, Value: 0
   0.161259     Report[buf]: (3 bytes) => 2d 00 00
   0.161267     Path: UPS.PowerConverter.Input.[1].PresentStatus.Buck, Type: Input, ReportID: 0x2d, Offset: 8, Size: 8, Value: 0
   0.161723     Report[get]: (5 bytes) => 42 f7 01 e3 00
   0.161752     Path: UPS.PowerConverter.Output.Frequency, Type: Feature, ReportID: 0x42, Offset: 0, Size: 16, Value: 50.3
   0.161759     Report[buf]: (5 bytes) => 42 f7 01 e3 00
   0.161768     Path: UPS.PowerConverter.Output.Voltage, Type: Feature, ReportID: 0x42, Offset: 16, Size: 16, Value: 227
   0.162183     Report[get]: (2 bytes) => 13 02
   0.162214     Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 2
   0.162757     Report[get]: (5 bytes) => 09 ff ff ff ff
   0.162793     Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 0x09, Offset: 0, Size: 32, Value: 0
   0.163478     Report[get]: (5 bytes) => 0a ff ff ff ff
   0.163518     Path: UPS.PowerSummary.DelayBeforeStartup, Type: Feature, ReportID: 0x0a, Offset: 0, Size: 32, Value: 0
   0.164085     Report[get]: (6 bytes) => 10 05 01 03 02 04
   0.164124     Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x10, Offset: 0, Size: 8, Value: 5
   0.164132     Report[buf]: (6 bytes) => 10 05 01 03 02 04
   0.164139     Path: UPS.PowerSummary.iManufacturer, Type: Feature, ReportID: 0x10, Offset: 8, Size: 8, Value: 1
   0.164146     Report[buf]: (6 bytes) => 10 05 01 03 02 04
   0.164153     Path: UPS.PowerSummary.ffff00f0, Type: Feature, ReportID: 0x10, Offset: 16, Size: 8, Value: 3
   0.164160     Report[buf]: (6 bytes) => 10 05 01 03 02 04
   0.164167     Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x10, Offset: 24, Size: 8, Value: 2
   0.164173     Report[buf]: (6 bytes) => 10 05 01 03 02 04
   0.164179     Path: UPS.PowerSummary.iSerialNumber, Type: Feature, ReportID: 0x10, Offset: 32, Size: 8, Value: 4
   0.164845     Report[get]: (2 bytes) => e2 04
   0.164889     Path: UPS.PowerSummary.ffff00e2, Type: Feature, ReportID: 0xe2, Offset: 0, Size: 8, Value: 4
   0.165570     Report[get]: (4 bytes) => 07 05 88 00
   0.165613     Path: UPS.PowerSummary.PercentLoad, Type: Feature, ReportID: 0x07, Offset: 0, Size: 8, Value: 5
   0.166432     Report[get]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166473     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1
   0.166481     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166489     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, ReportID: 0x01, Offset: 0, Size: 8, Value: 1
   0.166496     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166503     Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x01, Offset: 8, Size: 8, Value: 0
   0.166510     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166517     Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, ReportID: 0x01, Offset: 8, Size: 8, Value: 0
   0.166524     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166532     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x01, Offset: 16, Size: 8, Value: 1
   0.166538     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166545     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, ReportID: 0x01, Offset: 16, Size: 8, Value: 1
   0.166552     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166559     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x01, Offset: 24, Size: 8, Value: 0
   0.166566     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166573     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, ReportID: 0x01, Offset: 24, Size: 8, Value: 0
   0.166580     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166587     Path: UPS.PowerSummary.PresentStatus.Good, Type: Feature, ReportID: 0x01, Offset: 32, Size: 8, Value: 1
   0.166594     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166601     Path: UPS.PowerSummary.PresentStatus.Good, Type: Input, ReportID: 0x01, Offset: 32, Size: 8, Value: 1
   0.166608     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166615     Path: UPS.PowerSummary.PresentStatus.InternalFailure, Type: Feature, ReportID: 0x01, Offset: 40, Size: 8, Value: 0
   0.166621     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166628     Path: UPS.PowerSummary.PresentStatus.InternalFailure, Type: Input, ReportID: 0x01, Offset: 40, Size: 8, Value: 0
   0.166635     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166642     Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, ReportID: 0x01, Offset: 48, Size: 8, Value: 0
   0.166649     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.166656     Path: UPS.PowerSummary.PresentStatus.Overload, Type: Input, ReportID: 0x01, Offset: 48, Size: 8, Value: 0
   0.167352     Report[get]: (5 bytes) => 0b 64 01 64 02
   0.167395     Path: UPS.PowerSummary.DesignCapacity, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 8, Value: 100
   0.167403     Report[buf]: (5 bytes) => 0b 64 01 64 02
   0.167411     Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, ReportID: 0x0b, Offset: 8, Size: 8, Value: 1
   0.167417     Report[buf]: (5 bytes) => 0b 64 01 64 02
   0.167425     Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, ReportID: 0x0b, Offset: 16, Size: 8, Value: 100
   0.167432     Report[buf]: (5 bytes) => 0b 64 01 64 02
   0.167439     Path: UPS.PowerSummary.CapacityMode, Type: Feature, ReportID: 0x0b, Offset: 24, Size: 8, Value: 2
   0.167881     Report[get]: (4 bytes) => 06 64 99 14
   0.167916     Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x06, Offset: 0, Size: 8, Value: 100
   0.167923     Report[buf]: (4 bytes) => 06 64 99 14
   0.167931     Path: UPS.PowerSummary.RemainingCapacity, Type: Input, ReportID: 0x06, Offset: 0, Size: 8, Value: 100
   0.167937     Report[buf]: (4 bytes) => 06 64 99 14
   0.167945     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x06, Offset: 8, Size: 16, Value: 5273
   0.167951     Report[buf]: (4 bytes) => 06 64 99 14
   0.167958     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 0x06, Offset: 8, Size: 16, Value: 5273
   0.167965     Report[buf]: (4 bytes) => 07 05 88 00
   0.167972     Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x07, Offset: 8, Size: 16, Value: 13.6
   0.167992     Report descriptor retrieved (Reportlen = 495)
   0.167998     Found HID device
   0.168004     Detected a UPS: PPC/Offline UPS
   0.168040     Report[buf]: (4 bytes) => 07 05 88 00
   0.168050     Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x07, Offset: 8, Size: 16, Value: 13.6
   0.168070     Report[buf]: (4 bytes) => 06 64 99 14
   0.168078     Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x06, Offset: 0, Size: 8, Value: 100
   0.168094     Report[buf]: (4 bytes) => 06 64 99 14
   0.168101     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x06, Offset: 8, Size: 16, Value: 5273
   0.168117     Report[buf]: (6 bytes) => 10 05 01 03 02 04
   0.168124     Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x10, Offset: 0, Size: 8, Value: 5
   0.169562     Report[buf]: (4 bytes) => 07 05 88 00
   0.169600     Path: UPS.PowerSummary.PercentLoad, Type: Feature, ReportID: 0x07, Offset: 0, Size: 8, Value: 5
   0.169620     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.169627     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1
   0.169640     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.169647     Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x01, Offset: 8, Size: 8, Value: 0
   0.169660     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.169667     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x01, Offset: 16, Size: 8, Value: 1
   0.169679     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.169686     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x01, Offset: 24, Size: 8, Value: 0
   0.169698     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.169704     Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, ReportID: 0x01, Offset: 48, Size: 8, Value: 0
   0.169715     find_nut_info: unknown info type: load.off.delay
   0.169722     find_nut_info: unknown info type: load.on.delay
   0.169727     find_nut_info: unknown info type: load.off.delay
   0.169739     upsdrv_initinfo...
   0.169749     upsdrv_updateinfo...
   0.421034     libusb_get_interrupt: Connection timed out
   0.421072     Got 0 HID objects...
   0.421081     Quick update...
   0.421091     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.421119     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1
   0.421142     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.421152     Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x01, Offset: 8, Size: 8, Value: 0
   0.421163     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.421172     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x01, Offset: 16, Size: 8, Value: 1
   0.421183     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.421191     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x01, Offset: 24, Size: 8, Value: 0
   0.421303     dstate_init: sock /var/run/nut/usbhid-ups-salicru open on fd 5
   0.421336     upsdrv_updateinfo...
   0.671965     libusb_get_interrupt: Connection timed out
   0.672005     Got 0 HID objects...
   0.672013     Quick update...
   0.672023     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.672031     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1
   0.672039     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.672045     Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x01, Offset: 8, Size: 8, Value: 0
   0.672053     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.672059     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x01, Offset: 16, Size: 8, Value: 1
   0.672067     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
   0.672072     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x01, Offset: 24, Size: 8, Value: 0
  15.437084     upsdrv_updateinfo...
  15.688786     libusb_get_interrupt: Connection timed out
  15.688825     Got 0 HID objects...
  15.688833     Quick update...
  15.689407     Report[get]: (8 bytes) => 01 01 00 01 00 01 00 00
  15.689574     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1
  15.689590     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
  15.689598     Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x01, Offset: 8, Size: 8, Value: 0
  15.689606     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
  15.689613     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x01, Offset: 16, Size: 8, Value: 1
  15.689632     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
  15.689644     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x01, Offset: 24, Size: 8, Value: 0
  30.452060     upsdrv_updateinfo...
  30.702489     libusb_get_interrupt: Connection timed out
  30.702527     Got 0 HID objects...
  30.702536     Full update...
  30.703058     Report[get]: (4 bytes) => 07 05 88 00
  30.703105     Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x07, Offset: 8, Size: 16, Value: 13.6
  30.703650     Report[get]: (4 bytes) => 06 64 99 14
  30.703691     Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x06, Offset: 0, Size: 8, Value: 100
  30.703702     Report[buf]: (4 bytes) => 06 64 99 14
  30.703709     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x06, Offset: 8, Size: 16, Value: 5273
  30.704269     Report[get]: (6 bytes) => 10 05 01 03 02 04
  30.704326     Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x10, Offset: 0, Size: 8, Value: 5
  30.705890     Report[buf]: (4 bytes) => 07 05 88 00
  30.705930     Path: UPS.PowerSummary.PercentLoad, Type: Feature, ReportID: 0x07, Offset: 0, Size: 8, Value: 5
  30.706434     Report[get]: (8 bytes) => 01 01 00 01 00 01 00 00
  30.706456     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1
  30.706473     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
  30.706480     Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x01, Offset: 8, Size: 8, Value: 0
  30.706489     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
  30.706495     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x01, Offset: 16, Size: 8, Value: 1
  30.706503     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
  30.706509     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x01, Offset: 24, Size: 8, Value: 0
  30.706517     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
  30.706523     Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, ReportID: 0x01, Offset: 48, Size: 8, Value: 0
  45.466364     upsdrv_updateinfo...
  45.716670     libusb_get_interrupt: Connection timed out
  45.716724     Got 0 HID objects...
  45.716733     Quick update...
  45.717312     Report[get]: (8 bytes) => 01 01 00 01 00 01 00 00
  45.717347     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1
  45.717357     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
  45.717364     Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x01, Offset: 8, Size: 8, Value: 0
  45.717372     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
  45.717379     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x01, Offset: 16, Size: 8, Value: 1
  45.717387     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
  45.717393     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x01, Offset: 24, Size: 8, Value: 0
  60.478381     upsdrv_updateinfo...
  60.728732     libusb_get_interrupt: Connection timed out
  60.728773     Got 0 HID objects...
  60.728781     Quick update...
  60.729455     Report[get]: (8 bytes) => 01 01 00 01 00 01 00 00
  60.729491     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1
  60.729501     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
  60.729508     Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x01, Offset: 8, Size: 8, Value: 0
  60.729517     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
  60.729523     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x01, Offset: 16, Size: 8, Value: 1
  60.729531     Report[buf]: (8 bytes) => 01 01 00 01 00 01 00 00
  60.729537     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x01, Offset: 24, Size: 8, Value: 0

@Arcnor
Copy link

Arcnor commented Jul 15, 2020

I have the 2200 model and the output of those commands is different, starting with the first one:

Init SSL without certificate database
battery.charge: 28
battery.runtime: 804
battery.type: PbAc
device.mfr: PPC
device.model: Offline UPS HID UPS
device.serial: 000000000
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
driver.version.data: MGE HID 1.40
driver.version.internal: 0.41
input.voltage: 236.0
outlet.1.status: on
output.frequency: 50.0
output.frequency.nominal: 50
output.voltage: 236.0
output.voltage.nominal: 230
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 9
ups.mfr: PPC
ups.model: Offline UPS HID UPS
ups.power.nominal: 9
ups.productid: ffff
ups.serial: 000000000
ups.status: OL
ups.test.result: No test initiated
ups.timer.shutdown: 0
ups.timer.start: 0
ups.type: offline / line interactive
ups.vendorid: 06da

It looks like there is support for ups commands and other stuff, I can provide the full output rundown if there is value on doing so.

@forast3r
Copy link

forast3r commented Oct 6, 2020

Looks like the same vendorid (06da) starts different subdrivers (MGE and Phoenixtec/Liebert). By the way the MGE-HID gives more sensor information.

How can we force an specific subdriver?

@forast3r
Copy link

forast3r commented Oct 7, 2020

I have the 2200 model and the output of those commands is different, starting with the first one:

Init SSL without certificate database
battery.charge: 28
battery.runtime: 804
battery.type: PbAc
device.mfr: PPC
device.model: Offline UPS HID UPS
device.serial: 000000000
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
driver.version.data: MGE HID 1.40
driver.version.internal: 0.41
input.voltage: 236.0
outlet.1.status: on
output.frequency: 50.0
output.frequency.nominal: 50
output.voltage: 236.0
output.voltage.nominal: 230
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 9
ups.mfr: PPC
ups.model: Offline UPS HID UPS
ups.power.nominal: 9
ups.productid: ffff
ups.serial: 000000000
ups.status: OL
ups.test.result: No test initiated
ups.timer.shutdown: 0
ups.timer.start: 0
ups.type: offline / line interactive
ups.vendorid: 06da

It looks like there is support for ups commands and other stuff, I can provide the full output rundown if there is value on doing so.

Could you post your ups.conf contents? Thanks in advance!

@jimklimov
Copy link
Member

Note: PR #775 referenced above, which may be relevant to this issue, was now merged.

@forast3r
Copy link

Note: PR #775 referenced above, which may be relevant to this issue, was now merged.

Will this PR evolve into a new stable version?

@jimklimov
Copy link
Member

jimklimov commented Nov 11, 2020 via email

@forast3r
Copy link

Thanks, understood! Will try to build NUT myself

@forast3r
Copy link

I confirm that after compiling and installing the PR #775 adds support for almost every sensor in the Salicru SPS SOHO+

@jimklimov
Copy link
Member

jimklimov commented Nov 12, 2020 via email

@jimklimov
Copy link
Member

Heads-up: with PR #1199 merged into NUT master branch, there should now be a new subdriver for Salicru devices "out of the box". Can you please check if it also works for your model?

@jimklimov jimklimov added Phoenixtec (USB 0x06DA/0xFFFF) This USB chip VID/PID is used in many devices, some with different protocols - detection may be hard Salicru Salicru devices USB labels Dec 1, 2021
@jimklimov jimklimov moved this to Todo in NUT HCL/DDL May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HCL Phoenixtec (USB 0x06DA/0xFFFF) This USB chip VID/PID is used in many devices, some with different protocols - detection may be hard Salicru Salicru devices USB
Projects
Status: Todo
Development

No branches or pull requests

5 participants