Hi Guys, I'd like to submit a patch to enable NUT to communicate with APC 5G UPSs. The current usbhid-ups driver recognises APC UPSs by the Vendor ID and Product ID of 0x051D and 0x0002. This needs to be amended with the new Product ID of 0x0003. (See attached file: apc-hid.patch) Secondly, when Nut polls the UPS via the interrupt channel, these will time out, resulting in frequent lost comms. The USB Interrupt channel is being reserved in 5G UPSs for a proprietary protocol. In order to enable Nut to communicate with the UPS, a poll only configuration is required. The details of my ups.conf file are as follows: [apc] driver = usbhid-ups port = auto pollonly = 1 Thanks, -Chris Collins Chris Collins | APC by Schneider Electric | Senior Software Engineer Phone: +353-91-702000 x2661 | Mobile: +353-87-4189477 Email: chris.collins at apcc.com | Address: City East Business Park, Ballybrit, Galway, IRELAND *** Please consider the environment before printing this e-mail -------------- next part -------------- A non-text attachment was scrubbed... Name: apc-hid.patch Type: application/octet-stream Size: 606 bytes Desc: not available URL: <lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20100625/2caa56ed/attachment.obj>
Citeren Chris.Collins op apcc.com:> I'd like to submit a patch to enable NUT to communicate with APC 5G UPSs. > The current usbhid-ups driver recognises APC UPSs by the Vendor ID and > Product ID of 0x051D and 0x0002. This needs to be amended with the new > Product ID of 0x0003. > > (See attached file: apc-hid.patch)Thanks for the patch.> Secondly, when Nut polls the UPS via the interrupt channel, these will time > out, resulting in frequent lost comms. The USB Interrupt channel is being > reserved in 5G UPSs for a proprietary protocol. In order to enable Nut to > communicate with the UPS, a poll only configuration is required. The > details of my ups.conf file are as follows: > > [apc] > driver = usbhid-ups > port = auto > pollonly = 1The 'pollonly' is a flag, so just listing 'pollonly' here would be enough (the '= 1' part is not used). Assuming this is important for this device, we should probably automatically disable the interrupt pipe, so this is what the revised patch will do upon detecting a 5G UPS. Best regards, Arjen -- Please keep list traffic on the list