[Nut-upsuser] Belkin unk ups
Charles Lepple
clepple at gmail.com
Wed Oct 15 00:23:46 UTC 2014
On Oct 14, 2014, at 9:07 AM, Gene Heskett <gheskett at wdtv.com> wrote:
> On Tuesday 14 October 2014 08:19:02 Charles Lepple did opine
> And Gene did reply:
>> usbhid-ups
I apologize, I should have just mentioned the whole ups.conf:
[myups]
driver = usbhid-ups
port = auto
The usbhid-ups driver (as with the others based on libusb) don't actually use the "port =" line, but the NUT internals still need a placeholder.
There is a whole complicated set of filters that let you match on the USB Vendor or ProductID, but if you only have one UPS plugged in at a time, you can ignore them. They default to matching anything that "looks like an UPS".
> I haven't checked cabling, but AFAIK its still plugged in, but not sure if
> its usb or serial cabling. I'll check that once I get both eyes open
> simultaneously and report back.
>
> Found the cable, a D type usb, unplugged it and replugged it, and it
> appears now to be /dev/usb/hiddev3. dmesg, ever so helpful, and lsusb
> equally helpful, do not tell what the /dev/usbdevice is assigned to the
> newly discovered plugin. dmesg just reports:
>
> [136319.530160] usb 1-10: USB disconnect, device number 2
> [136322.641716] usb 1-10: new low-speed USB device number 3 using ohci-pci
I think we take the first digit after " usb " (1) and the "device number 3", pad them with zeroes, and check here:
ls -l /dev/bus/usb/001/003
(Note that the NUT driver doesn't care about this path directly, but we still need to check permissions.)
> [136322.929480] usb 1-10: New USB device found, idVendor=050d,
> idProduct=0751
> [136322.929486] usb 1-10: New USB device strings: Mfr=4, Product=20,
> SerialNumber=0
> [136322.929489] usb 1-10: Product: Belkin UPS
> [136322.929491] usb 1-10: Manufacturer: Belkin
> [136323.695058] hid-generic 0003:050D:0751.0008: hiddev0,hidraw6: USB HID
> v1.11 Device [Belkin Belkin UPS] on usb-0000:00:02.0-10/input0
>
> So is this usb-0000:00:02.0-10/input0 a valid way to give nut a path to
> it, and if so, what file do I add that too?
Nope, see previous comments about "port = auto"
> I also note that in the original bootup discovery it was hiddev0/hidraw6,
> the same as the latest plug in report, so that also appears stable.
Actually, if things work right, the hiddev*/hidraw* devices should disappear when usbhid-ups starts, leaving only the /dev/bus/usb/*/* device.
--
Charles Lepple
clepple at gmail
More information about the Nut-upsuser
mailing list