[Nut-upsuser] suse linux and nut

Marc Collin collinm at laboiteaprog.com
Sat Aug 26 03:58:26 UTC 2006


Le vendredi 25 août 2006 23:34, Peter Selinger a écrit :

>
> As mentioned before, you should not use the "powercom" driver. It is
> for serial.
>
> You should use "newhidups". -- Peter
ok

changed for

[myups]
       driver = newhidups
       port = /dev/hiddev0
       desc = "Ultra ULT31502"

> P.S. please reply to the mailing list, not to me personally. Thanks!

oups sorry

maybe some information that can be usefull

drivers/newhidups -DDD -u root /dev/hiddev0
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0)

debug level is '3'
Checking device (046D/08AD) (002/003)
- VendorID: 046d
- ProductID: 08ad
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0D9F/0001) (002/004)
- VendorID: 0d9f
- ProductID: 0001
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device matches
HID descriptor, method 1: (9 bytes) => 09 21 00 01 00 01 22 af 00
HID descriptor, method 2: (9 bytes) => 09 21 00 01 00 01 22 af 00
HID descriptor retrieved (Reportlen = 175)
Report descriptor retrieved (Reportlen = 175)
Found HID device
Report Descriptor size = 175
Report Descriptor: (175 bytes) => 05 02 09 04 a1 01 05 02 85 07 95 01 75 08
15 00 26 ff 00 09 86 b1 02 85 08 09 87 b1 02 85 01 95 02 09 83 09 85 81 02
09 10 a1 00 85 01 09 36 09 30 15 00 26 ff 00 95 02 75 08 81 02 95 01 75 18
27 ff ff ff 00 09 84 81 02 c0 05 02 09 16 a1 00 09 1a a1 00 26 ff 00 85 03
75 08 95 02 09 32 09 30 81 02 c0 09 1c a1 00 75 08 95 05 09 30 09 35 09 81
09 82 09 32 81 02 c0 85 05 25 06 15 00 75 08 95 01 09 58 b1 02 85 02 25 02
15 01 09 68 b1 02 85 04 26 ff 00 15 00 09 57 b1 02 85 06 95 01 75 18 27 ff
ff 0f 00 15 00 09 56 b1 02 c0 c0
Detected a UPS: unknown/unknown
Using subdriver: PowerCom HID 0.1
Report: (2 bytes) => 07 82
Path: POWERCOM_UPS.POWERCOM_Feature1, Type: Feature, Value: 130.000000
Report: (2 bytes) => 08 ae
Path: POWERCOM_UPS.POWERCOM_Feature2, Type: Feature, Value: 174.000000
Can't find object POWERCOM_UPS.POWERCOM_Input1
Path: POWERCOM_UPS.POWERCOM_Input1, Type: Input
Can't find object POWERCOM_UPS.POWERCOM_Input2
Path: POWERCOM_UPS.POWERCOM_Input2, Type: Input
Can't find object POWERCOM_UPS.POWERCOM_Coll1.POWERCOM_Input3
Path: POWERCOM_UPS.POWERCOM_Coll1.POWERCOM_Input3, Type: Input
Can't find object POWERCOM_UPS.POWERCOM_Coll1.POWERCOM_Input4
Path: POWERCOM_UPS.POWERCOM_Coll1.POWERCOM_Input4, Type: Input
Can't find object POWERCOM_UPS.POWERCOM_Coll1.POWERCOM_Input5
Path: POWERCOM_UPS.POWERCOM_Coll1.POWERCOM_Input5, Type: Input
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub1.POWERCOM_Input6
Path: POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub1.POWERCOM_Input6, Type: Input
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub1.POWERCOM_Input4
Path: POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub1.POWERCOM_Input4, Type: Input
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input4
Path: POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input4, Type: Input
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input7
Path: POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input7, Type: Input
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input8
Path: POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input8, Type: Input
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input10
Path: POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input10, Type: Input
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input6
Path: POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input6, Type: Input
Report: (2 bytes) => 05 01
Path: POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Feature3, Type: Feature, Value: 
1.000000
Report: (2 bytes) => 02 00
Path: POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Feature4, Type: Feature, Value: 
2.000000
Report: (2 bytes) => 04 00
Path: POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Feature5, Type: Feature, Value: 
0.000000
Report: (4 bytes) => 06 00 00 00
Path: POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Feature6, Type: Feature, Value: 
0.000000
Report: (2 bytes) => 07 82
Report: (2 bytes) => 08 ae
Can't find object POWERCOM_UPS.POWERCOM_Input1
Can't find object POWERCOM_UPS.POWERCOM_Input2
Can't find object POWERCOM_UPS.POWERCOM_Coll1.POWERCOM_Input3
Can't find object POWERCOM_UPS.POWERCOM_Coll1.POWERCOM_Input4
Can't find object POWERCOM_UPS.POWERCOM_Coll1.POWERCOM_Input5
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub1.POWERCOM_Input6
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub1.POWERCOM_Input4
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input4
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input7
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input8
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input10
Can't find object POWERCOM_UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input6
Report: (2 bytes) => 05 01
Report: (2 bytes) => 02 00
Report: (2 bytes) => 04 00
Report: (4 bytes) => 06 00 00 00
upsdrv_updateinfo...
Report: (2 bytes) => 07 82
Report: (2 bytes) => 08 ae
Report: (2 bytes) => 05 01
Report: (2 bytes) => 02 00
Report: (2 bytes) => 04 00
Report: (4 bytes) => 06 00 00 00
dstate_init: sock /var/state/ups/newhidups-hiddev0 open on fd 6
upsdrv_updateinfo...
Waiting for notifications...
Notification: (20 bytes) => 03 3c 1e 1e 0f 00 40 3c 01 ff 63 00 61 7a 6e 6a
03 3c 1e 1e
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub1.POWERCOM_Input6 = 60
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub1.POWERCOM_Input4 = 30
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input4 = 30
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input7 = 15
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input8 = 0
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input10 = 64
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input6 = 60
upsdrv_updateinfo...
Waiting for notifications...
Notification: (20 bytes) => 01 ff 63 00 61 7a 6e 6a 03 3c 1e 1e 0f 00 40 3c
01 ff 63 00
Object: UPS.POWERCOM_Input1 = 255
Object: UPS.POWERCOM_Input2 = 99
Object: UPS.POWERCOM_Coll1.POWERCOM_Input3 = 0
Object: UPS.POWERCOM_Coll1.POWERCOM_Input4 = 97
Object: UPS.POWERCOM_Coll1.POWERCOM_Input5 = 6975098
upsdrv_updateinfo...
Waiting for notifications...
Notification: (20 bytes) => 03 3c 1e 1e 0f 00 40 3c 01 ff 63 00 61 7a 6e 6a
03 3c 1e 1e
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub1.POWERCOM_Input6 = 60
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub1.POWERCOM_Input4 = 30
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input4 = 30
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input7 = 15
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input8 = 0
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input10 = 64
Object: UPS.POWERCOM_Coll2.POWERCOM_Sub2.POWERCOM_Input6 = 60
upsdrv_updateinfo...
Waiting for notifications...
Notification: (20 bytes) => 01 ff 63 00 61 7a 6e 6a 03 3c 1e 1e 0f 00 40 3c
01 ff 63 00
Object: UPS.POWERCOM_Input1 = 255
Object: UPS.POWERCOM_Input2 = 99
Object: UPS.POWERCOM_Coll1.POWERCOM_Input3 = 0
Object: UPS.POWERCOM_Coll1.POWERCOM_Input4 = 97
Object: UPS.POWERCOM_Coll1.POWERCOM_Input5 = 6975098
upsdrv_updateinfo...
Waiting for notifications...
Notification: (20 bytes) => 03 3c 1e 1e 0f 00 40 3c 01 ff 63 00 6


when i try to start the driver

/usr/local/ups/bin/upsdrvctl start
Network UPS Tools - UPS driver controller 2.1.0
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0)

No matching HID UPS found
Driver failed to start (exit status=1)



More information about the Nut-upsuser mailing list