[Nut-upsuser] blazer_usb MEC0002 problem Fry's Electronics (Turbo-X)

Vassilis Virvilis vasvir at iit.demokritos.gr
Thu Sep 8 12:14:48 UTC 2016


Hi again,

Thanks for the prompt reply.

Just for the record i am running debian unstable/sid with nut 2.7.4-3

# dpkg -l 'nut*' | grep ^ii
ii  nut                       2.7.4-3      all          network UPS tools
- metapackage
ii  nut-client                2.7.4-3      amd64        network UPS tools
- clients
ii  nut-server                2.7.4-3      amd64        network UPS tools
- core system

[snip]
> What happens if you run the driver in "explore" mode? Something like the
> following:
[snip]
> $ /path/to/usbhid-ups -x explore -a turbox1500 -DDD
>
[snip]

I added in /etc/nut/ups.conf

[turbo-x]
 driver = usbhid-ups
 port = auto
 vendorid = 0001
 productid = 0000
 desc = "TURBO-X UPS-1500SD"

and run
# /lib/nut/usbhid-ups -DDD -x explore -a turbo-x 2>&1 | tee > delme

Here is the output (stderr and stdout concatenated)

   0.000000	debug level is '3'
   0.000550	upsdrv_initups...
   0.333611	Checking device (067B/2305) (008/006)
   0.333663	- VendorID: 067b
   0.333671	- ProductID: 2305
   0.333675	- Manufacturer: unknown
   0.333678	- Product: unknown
   0.333681	- Serial Number: unknown
   0.333684	- Bus: 008
   0.333686	- Device release number: 0202
   0.333689	Trying to match device
   0.333710	Device does not match - skipping
   0.333721	Checking device (0001/0000) (008/002)
   0.356723	- VendorID: 0001
   0.356734	- ProductID: 0000
   0.356737	- Manufacturer: MEC
   0.356740	- Product: MEC0002
   0.356743	- Serial Number: unknown
   0.356745	- Bus: 008
   0.356748	- Device release number: 0100
   0.356751	Trying to match device
   0.356781	Device matches
   0.356811	nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 0)
   0.361726	HID descriptor, method 1: (9 bytes) => 09 21 00 01 00 01 22 70 02
   0.361735	HID descriptor length (method 1) 624
   0.361741	HID descriptor, method 2: (9 bytes) => 09 21 00 01 00 01 22 70 02
   0.361744	HID descriptor length (method 2) 624
   0.361747	HID descriptor length 624
   0.442733	Report Descriptor size = 624
   0.442747	Report Descriptor: (624 bytes) => 05 86 09 04 a1 01 05 84 09
1e a1 00 85 01
   0.442757	 09 1f 65 00 75 04 95 01 15 00 25 0f 65 00 b1 02 75 04 95 01
b1 03 09 40 75
   0.442769	 10 95 01 67 21 d1 f0 00 55 07 15 00 26 fa 00 b1 02 09 42 75
10 95 01 66 01
   0.442780	 f0 55 00 15 00 25 3c b1 02 09 53 75 10 95 01 67 21 d1 f0 00
55 07 15 00 26
   0.442791	 fa 00 b1 02 09 54 75 10 95 01 67 21 d1 f0 00 55 07 15 00 26
fa 00 b1 02 09
   0.442803	 fd 09 fe 09 ff 75 08 95 03 26 ff 00 65 00 b1 00 c0 05 84 09
1e a1 00 85 02
   0.442814	 09 1f 65 00 75 04 95 01 15 00 25 0f 65 00 b1 02 95 01 75 04
b1 03 09 40 75
   0.442825	 10 95 01 67 21 d1 f0 00 55 07 15 00 26 fa 00 b1 02 09 42 75
10 95 01 66 01
   0.442837	 f0 55 00 15 00 25 3c b1 02 09 43 75 10 95 01 66 21 d1 55 07
15 00 27 fe ff
   0.442848	 00 00 b1 02 09 44 95 01 75 10 66 21 d1 55 07 15 00 27 fe ff
00 00 b1 02 09
   0.442859	 56 75 18 95 01 66 01 10 55 00 15 00 27 fe ff 00 00 b1 02 09
57 75 18 95 01
   0.442871	 66 01 10 55 00 15 00 27 fe ff 00 00 b1 02 c0 05 84 09 10 a1
00 85 03 09 11
   0.442882	 65 00 75 04 95 01 15 00 25 0f 65 00 b1 02 75 04 95 01 b1 03
09 02 a1 02 09
   0.442893	 6d 09 61 75 01 95 02 15 00 25 01 b1 02 75 06 95 01 b1 03 c0
09 30 75 18 95
   0.442904	 01 67 21 d1 f0 00 55 05 27 fe ff 00 00 b1 02 09 36 75 10 95
01 67 01 00 01
   0.442915	 00 27 fe ff 00 00 b1 02 09 58 75 01 95 06 15 00 25 01 81 02
75 02 95 01 81
   0.442927	 03 09 58 75 01 95 04 15 00 25 01 b1 02 75 04 95 01 b1 03 c0
05 84 09 16 a1
   0.442938	 00 85 04 09 17 75 04 95 01 15 00 25 0f 65 00 81 02 75 04 95
01 81 03 09 1a
   0.442949	 a1 00 09 1b 09 1f 75 04 95 02 15 00 25 0f 65 00 81 02 09 02
a1 02 09 61 75
   0.442960	 01 95 01 15 00 25 01 81 02 75 07 95 01 81 03 c0 09 30 75 10
95 01 67 21 d1
   0.442971	 f0 00 55 05 27 fe ff 00 00 81 02 09 32 75 10 95 01 66 01 f0
55 05 27 fe ff
   0.442983	 00 00 81 02 c0 09 1c a1 00 85 05 09 1d 09 1f 75 04 95 02 15
00 25 0f 65 00
   0.442994	 81 02 09 30 75 10 95 01 67 21 d1 f0 00 55 05 27 fe ff 00 00
81 02 09 32 75
   0.443005	 10 95 01 66 01 f0 55 05 27 fe ff 00 00 81 02 09 35 75 10 95
01 15 00 26 ff
   0.443017	 00 81 02 09 02 a1 02 09 65 09 6e 09 6f 75 01 95 03 15 00 25
01 65 00 81 02
   0.443024	 75 05 95 01 81 03 c0 c0 c0 c0
   0.443079	Using subdriver: EXPLORE HID 0.1
   0.443087	36 HID objects found
   0.447725	refresh_report_buffer: expected 13 bytes, but got 8 instead
   0.447736	Report[err]: (8 bytes) => 08 03 4d 00 45 00 43 00
   0.447745	Path: 00860004.Flow.FlowID, Type: Feature, ReportID: 0x01,
Offset: 0, Size: 4, Value: 3
   0.447755	Report[buf]: (13 bytes) => 08 03 4d 00 45 00 43 00 00 00 00 00 00
   0.447767	Path: 00860004.Flow.ConfigVoltage, Type: Feature, ReportID:
0x01, Offset: 8, Size: 16, Value: 77
   0.447776	Report[buf]: (13 bytes) => 08 03 4d 00 45 00 43 00 00 00 00 00 00
   0.447786	Path: 00860004.Flow.ConfigFrequency, Type: Feature, ReportID:
0x01, Offset: 24, Size: 16, Value: 5
   0.447793	Report[buf]: (13 bytes) => 08 03 4d 00 45 00 43 00 00 00 00 00 00
   0.447800	Path: 00860004.Flow.LowVoltageTransfer, Type: Feature,
ReportID: 0x01, Offset: 40, Size: 16, Value: 67
   0.447807	Report[buf]: (13 bytes) => 08 03 4d 00 45 00 43 00 00 00 00 00 00
   0.447812	Path: 00860004.Flow.HighVoltageTransfer, Type: Feature,
ReportID: 0x01, Offset: 56, Size: 16, Value: 0
   0.447819	Report[buf]: (13 bytes) => 08 03 4d 00 45 00 43 00 00 00 00 00 00
   0.447825	Path: 00860004.Flow.iManufacturer, Type: Feature, ReportID:
0x01, Offset: 72, Size: 8, Value: 0
   0.447832	Report[buf]: (13 bytes) => 08 03 4d 00 45 00 43 00 00 00 00 00 00
   0.447838	Path: 00860004.Flow.iProduct, Type: Feature, ReportID: 0x01,
Offset: 80, Size: 8, Value: 0
   0.447844	Report[buf]: (13 bytes) => 08 03 4d 00 45 00 43 00 00 00 00 00 00
   0.447856	Path: 00860004.Flow.iSerialNumber, Type: Feature, ReportID:
0x01, Offset: 88, Size: 8, Value: 0
   0.452728	Report[get]: (16 bytes) => 10 03 4d 00 45 00 43 00 30 00 30 00
30 00 32 00
   0.452741	Path: 00860004.Flow.FlowID, Type: Feature, ReportID: 0x02,
Offset: 0, Size: 4, Value: 3e+07
   0.452749	Report[buf]: (16 bytes) => 10 03 4d 00 45 00 43 00 30 00 30 00
30 00 32 00
   0.452758	Path: 00860004.Flow.ConfigVoltage, Type: Feature, ReportID:
0x02, Offset: 8, Size: 16, Value: 77
   0.452766	Report[buf]: (16 bytes) => 10 03 4d 00 45 00 43 00 30 00 30 00
30 00 32 00
   0.452776	Path: 00860004.Flow.ConfigFrequency, Type: Feature, ReportID:
0x02, Offset: 24, Size: 16, Value: 5
   0.452783	Report[buf]: (16 bytes) => 10 03 4d 00 45 00 43 00 30 00 30 00
30 00 32 00
   0.452793	Path: 00860004.Flow.ConfigApparentPower, Type: Feature,
ReportID: 0x02, Offset: 40, Size: 16, Value: 67
   0.452800	Report[buf]: (16 bytes) => 10 03 4d 00 45 00 43 00 30 00 30 00
30 00 32 00
   0.452811	Path: 00860004.Flow.ConfigActivePower, Type: Feature,
ReportID: 0x02, Offset: 56, Size: 16, Value: 48
   0.452822	Report[buf]: (16 bytes) => 10 03 4d 00 45 00 43 00 30 00 30 00
30 00 32 00
   0.452832	Path: 00860004.Flow.DelayBeforeStartup, Type: Feature,
ReportID: 0x02, Offset: 72, Size: 24, Value: 48
   0.452839	Report[buf]: (16 bytes) => 10 03 4d 00 45 00 43 00 30 00 30 00
30 00 32 00
   0.452849	Path: 00860004.Flow.DelayBeforeShutdown, Type: Feature,
ReportID: 0x02, Offset: 96, Size: 24, Value: 12800
   0.623733	Report[get]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.623747	Path: 00860004.BatterySystem.BatterySystemID, Type: Feature,
ReportID: 0x03, Offset: 0, Size: 4, Value: 3
   0.623753	Report[buf]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.623760	Path: 00860004.BatterySystem.PresentStatus.Used, Type:
Feature, ReportID: 0x03, Offset: 8, Size: 1, Value: 1
   0.623766	Report[buf]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.623772	Path: 00860004.BatterySystem.PresentStatus.Good, Type:
Feature, ReportID: 0x03, Offset: 9, Size: 1, Value: 0
   0.623781	Report[buf]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.623789	Path: 00860004.BatterySystem.Voltage, Type: Feature, ReportID:
0x03, Offset: 16, Size: 24, Value: 204.8
   0.623797	Report[buf]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.623805	Path: 00860004.BatterySystem.Temperature, Type: Feature,
ReportID: 0x03, Offset: 40, Size: 16, Value: 8.3e+06
   0.623814	Report[buf]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.623821	Path: 00860004.BatterySystem.Test, Type: Input, ReportID:
0x03, Offset: 0, Size: 1, Value: 100000
   0.623826	Report[buf]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.623832	Path: 00860004.BatterySystem.Test, Type: Feature, ReportID:
0x03, Offset: 56, Size: 1, Value: 0
   0.635732	Report[get]: (8 bytes) => 16 03 55 00 50 00 53 00
   0.635745	Path: 00860004.PowerConverter.PowerConverterID, Type: Input,
ReportID: 0x04, Offset: 0, Size: 4, Value: 300000
   0.635751	Report[buf]: (8 bytes) => 16 03 55 00 50 00 53 00
   0.635757	Path: 00860004.PowerConverter.Input.InputID, Type: Input,
ReportID: 0x04, Offset: 8, Size: 4, Value: 500000
   0.635765	Report[buf]: (8 bytes) => 16 03 55 00 50 00 53 00
   0.635773	Path: 00860004.PowerConverter.Input.FlowID, Type: Input,
ReportID: 0x04, Offset: 12, Size: 4, Value: 500000
   0.635780	Report[buf]: (8 bytes) => 16 03 55 00 50 00 53 00
   0.635787	Path: 00860004.PowerConverter.Input.PresentStatus.Good, Type:
Input, ReportID: 0x04, Offset: 16, Size: 1, Value: 0
   0.635793	Report[buf]: (8 bytes) => 16 03 55 00 50 00 53 00
   0.635800	Path: 00860004.PowerConverter.Input.Voltage, Type: Input,
ReportID: 0x04, Offset: 24, Size: 16, Value: 0.8
   0.635809	Report[buf]: (8 bytes) => 16 03 55 00 50 00 53 00
   0.635817	Path: 00860004.PowerConverter.Input.Frequency, Type: Input,
ReportID: 0x04, Offset: 40, Size: 16, Value: 8.3e+06
   0.653732	Report[get]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.653746	Path: 00860004.PowerConverter.Output.OutputID, Type: Input,
ReportID: 0x05, Offset: 0, Size: 4, Value: 300000
   0.653752	Report[buf]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.653762	Path: 00860004.PowerConverter.Output.FlowID, Type: Input,
ReportID: 0x05, Offset: 4, Size: 4, Value: 0
   0.653768	Report[buf]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.653775	Path: 00860004.PowerConverter.Output.Voltage, Type: Input,
ReportID: 0x05, Offset: 8, Size: 16, Value: 0.85
   0.653783	Report[buf]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.653791	Path: 00860004.PowerConverter.Output.Frequency, Type: Input,
ReportID: 0x05, Offset: 24, Size: 16, Value: 8e+06
   0.653800	Report[buf]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.653808	Path: 00860004.PowerConverter.Output.PercentLoad, Type: Input,
ReportID: 0x05, Offset: 40, Size: 16, Value: 8.3e+06
   0.653818	Report[buf]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.653826	Path: 00860004.PowerConverter.Output.PresentStatus.Overload,
Type: Input, ReportID: 0x05, Offset: 56, Size: 1, Value: 0
   0.653836	Report[buf]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.653844	Path: 00860004.PowerConverter.Output.PresentStatus.Boost,
Type: Input, ReportID: 0x05, Offset: 57, Size: 1, Value: 0
   0.653849	Report[buf]: (9 bytes) => 16 03 55 00 50 00 53 00 20
   0.653856	Path: 00860004.PowerConverter.Output.PresentStatus.Buck, Type:
Input, ReportID: 0x05, Offset: 58, Size: 1, Value: 0
Network UPS Tools - Generic HID driver 0.41 (2.7.4)
USB communication driver 0.33
   0.653874	Report descriptor retrieved (Reportlen = 624)
   0.653880	Found HID device
   0.653885	Detected a UPS: MEC/MEC0002
   0.653890	find_nut_info: unknown info type: load.off.delay
   0.653893	find_nut_info: unknown info type: load.on.delay
   0.653896	find_nut_info: unknown info type: load.off.delay
   0.653906	upsdrv_initinfo...
   0.653916	upsdrv_updateinfo...
   0.905741	libusb_get_interrupt: Connection timed out
   0.905754	Got 0 HID objects...
   0.905759	Quick update...
   0.905820	dstate_init: sock /var/run/nut/usbhid-ups-turbo-x open on fd 5
   0.905843	upsdrv_updateinfo...
   1.157747	libusb_get_interrupt: Connection timed out
   1.157762	Got 0 HID objects...
   1.157767	Quick update...
   2.907610	upsdrv_updateinfo...
   3.159789	libusb_get_interrupt: Connection timed out
   3.159804	Got 0 HID objects...
   3.159810	Quick update...
   4.909369	upsdrv_updateinfo...
   5.160823	libusb_get_interrupt: Connection timed out
   5.160835	Got 0 HID objects...
   5.160841	Quick update...
   6.911129	upsdrv_updateinfo...
   7.162862	libusb_get_interrupt: Connection timed out
   7.162875	Got 0 HID objects...
   7.162881	Quick update...
   8.912889	upsdrv_updateinfo...
   9.164899	libusb_get_interrupt: Connection timed out
   9.164914	Got 0 HID objects...
   9.164920	Quick update...
  10.914653	upsdrv_updateinfo...
  11.166940	libusb_get_interrupt: Connection timed out
  11.166957	Got 0 HID objects...
  11.166963	Quick update...
  12.916415	upsdrv_updateinfo...
  13.167972	libusb_get_interrupt: Connection timed out
  13.167986	Got 0 HID objects...
  13.167992	Quick update...
  14.918153	upsdrv_updateinfo...
  15.170013	libusb_get_interrupt: Connection timed out
  15.170027	Got 0 HID objects...
  15.170033	Quick update...
  16.919913	upsdrv_updateinfo...
  17.172049	libusb_get_interrupt: Connection timed out
  17.172063	Got 0 HID objects...
  17.172069	Quick update...
  18.921675	upsdrv_updateinfo...
  19.173087	libusb_get_interrupt: Connection timed out
  19.173101	Got 0 HID objects...
  19.173108	Quick update...
  20.923437	upsdrv_updateinfo...
  21.175126	libusb_get_interrupt: Connection timed out
  21.175141	Got 0 HID objects...
  21.175147	Quick update...
  22.925201	upsdrv_updateinfo...
  23.177162	libusb_get_interrupt: Connection timed out
  23.177176	Got 0 HID objects...
  23.177182	Quick update...
  24.926964	upsdrv_updateinfo...
  25.179200	libusb_get_interrupt: Connection timed out
  25.179215	Got 0 HID objects...
  25.179221	Quick update...
  26.928723	upsdrv_updateinfo...
  27.180234	libusb_get_interrupt: Connection timed out
  27.180250	Got 0 HID objects...
  27.180256	Quick update...
  28.930488	upsdrv_updateinfo...
  29.182271	libusb_get_interrupt: Connection timed out
  29.182285	Got 0 HID objects...
  29.182291	Quick update...
  30.932253	upsdrv_updateinfo...
  31.184310	libusb_get_interrupt: Connection timed out
  31.184328	Got 0 HID objects...
  31.184335	Quick update...
  32.934014	upsdrv_updateinfo...
  33.186351	libusb_get_interrupt: Connection timed out
  33.186366	Got 0 HID objects...
  33.186372	Full update...
  34.935777	upsdrv_updateinfo...
  35.187385	libusb_get_interrupt: Connection timed out
  35.187400	Got 0 HID objects...
  35.187406	Quick update...
  36.937537	upsdrv_updateinfo...
  37.189428	libusb_get_interrupt: Connection timed out
  37.189442	Got 0 HID objects...
  37.189447	Quick update...
  38.939298	upsdrv_updateinfo...
  39.191461	libusb_get_interrupt: Connection timed out
  39.191474	Got 0 HID objects...
  39.191480	Quick update...
  40.941057	upsdrv_updateinfo...
  41.192500	libusb_get_interrupt: Connection timed out
  41.192514	Got 0 HID objects...
  41.192520	Quick update...
  42.942818	upsdrv_updateinfo...
  43.194537	libusb_get_interrupt: Connection timed out
  43.194551	Got 0 HID objects...
  43.194557	Quick update...
  44.944578	upsdrv_updateinfo...
  45.196572	libusb_get_interrupt: Connection timed out
  45.196585	Got 0 HID objects...
  45.196591	Quick update...

Regards

     Vassilis Virvilis




More information about the Nut-upsuser mailing list