[Nut-upsdev] support for newer mustek powermust model 06da:0003
Arjen de Korte
nut+devel at de-korte.org
Sun Nov 25 19:05:07 UTC 2007
Timo Lindfors wrote:
> $ sudo /lib/nut/megatec_usb -a myups -DDDDD -x vendorid=06da -x productid=0003 -x subdriver=agiler
> Network UPS Tools 2.3.0-1156M - Megatec protocol driver 1.5.8 [megatec_usb]
> Carlos Rodrigues (c) 2003-2007
You can leave out the vendorid, productid and subdriver here. I added
these in the 'megatec_usb.c' file, so it will be recognized automatically.
> (Patched) strace shows that now nut does
>
> 31282 ioctl(4, USBDEVFS_CONTROL, {requesttype=33, request=9, value=768, index=0, length=3, timeout=4000, data="Q1\r"}) = 3
>
> instead of
>
> 16867 ioctl(4, USBDEVFS_CONTROL, {requesttype=33, request=9, value=768, index=0, length=8, timeout=4000, data="Q1\r\0\0\0\0\0"}) = 8
>
> Mustek probably insists on 8-byte reads padded with zeroes?
I doubt it, but just in case I padded the commands to 8 bytes and
removed flushing the buffer. Could you try again with version 1157 from
the trunk?
Best regards, Arjen
More information about the Nut-upsdev
mailing list