[Nut-upsdev] [Nut-upsuser] Sweex 1000VA UPS (was: powermust usb)

Peter van Valderen p.v.valderen at probu.nl
Tue Jun 5 18:01:37 UTC 2007


Hello Alexander,

On 6/4/07, Alexander I. Gordeev <lasaine at lvk.cs.msu.su> wrote:
> No, this is even worse! Please, use libusb.c/libhid.c interface. It has
> significant advantages. It is simplier. It supports much more flexible
> device claiming: you can create your own "matchers" or use existing and
> combine them into chains. You should give more control to the user in the
> future by exporting some driver variables and using "regex" matcher. This
> will allow users to test your driver on their devices without recompilation.
> So please don't use nut_usb.c. Use libusb.c/libhid.c instead.

I see. The reason I did it this way was because it only took me two
hours or so to create a standalone driver from what I had before.
However you are obviously right about libusb being more flexible.

However, here's the bad news, I'm afraid I won't be able to do any
more work on it any time soon due to circumstances. When I am, I will
rewrite it as you proposed, however, this will probably be at least
months.

If the driver in its current state is unusable for nut, I'd say just
throw it out for now and include it when I (or someone else that needs
it) makes a version using libusb.

It does the job for me for now which was the most important thing,
it's just that for now I lack the time to do a rewrite to make it
conform to the specifications.

I'm sorry!

> Please take a look at this post explaining device matching in USB drivers:
> http://lists.alioth.debian.org/pipermail/nut-upsdev/2007-February/001795.html

Thanks for all your help!

Regards,

Peter van Valderen



More information about the Nut-upsdev mailing list