[Nut-upsdev] some megatec-usb issues

Alexander I. Gordeev lasaine at lvk.cs.msu.su
Wed Feb 7 22:38:39 CET 2007


Hi Peter,

Peter wrote:
> I don't like the idea of returning a different value from the matcher,
> because it has nothing to do with matching. A better idea would be to
> pass an additional boolean parameter to libusb_open, to determine
> whether to read the report descriptor or not.

Ok, I see. There is such a parameter - "mode". It would work if it
doesn't affect other megatec-usb subdrivers. I think, they don't use
HID descriptors as well. I'll check it.

>> I also have a solution for the problem of the "UPS No Ack" answers.

> This is a driver-internal problem, as it does not require any other
> NUT files to be modified. You should implement the solution that works
> best for your device, and does not harm to any other devices. I think
> it would be reasonable to retry a failed request, say, up to N times,
> where N is some preset value (perhaps even user configurable). (You
> should not retry it an infinite number of times, because that could
> cause the driver to hang.

Thanks for your opinion.

-- 
 Alexander                          mailto:lasaine at lvk.cs.msu.su




More information about the Nut-upsdev mailing list