Timo Lindfors
2007-Nov-24 21:58 UTC
[Nut-upsdev] support for newer mustek powermust model 06da:0003
A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 188 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20071124/3ceb35d2/attachment.pgp
Arjen de Korte
2007-Nov-25 10:04 UTC
[Nut-upsdev] support for newer mustek powermust model 06da:0003
> I have several "Mustek Powermust" UPS devices at work. The older ones > have product:vendor of 0665:5161 and work with > > [myups] > driver = megatec_usb > port = auto > > The newer models have product:vendor 06da:0003 and don't seem to work > with this driver.[...]> How should this be done "properly" without forking any drivers and > duplicating code?The 'megatec_usb' subdriver has been modified in the trunk. It now will correctly read 6 or 8 reports (or any other number). Hardcoding this was a mistake, since this will be handled automatically if you leave it up to the 'libusb' interfacing library (which we do now). Regarding masking out the 'C\r' and 'I\r' command, could you just try this out again with the development version from the trunk, with debugging enabled? <path>/megatec_usb -DDDDD -x vendorid=06da -x productid=0003 -x subdriver=agiler -a <upsname> I will add the 'vendorid' and 'productid' to the subdriver later today, since it seems that we're close to making this work. The remaining problems appear to be minor. Best regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
Timo Lindfors
2007-Nov-26 15:50 UTC
[Nut-upsdev] support for newer mustek powermust model 06da:0003
Hi, "Arjen de Korte" <nut+devel at de-korte.org> writes:>> trying again to claim USB device... >> failed to claim USB device, trying 0 more time(s)... >> detaching kernel driver from USB device... >> failed to detach kernel driver from USB device... > > This is most likely a problem with the permissions.Ah yes, udev trouble. However, even after a temporary chmod 777 /dev/bus/usb/*/* it fails: $ sudo /lib/nut/megatec_usb -a myups -DDDDD Network UPS Tools 2.3.0-1163M - Megatec protocol driver 1.5.8 [megatec_usb] Carlos Rodrigues (c) 2003-2007 Serial-over-USB transport layer for Megatec protocol driver [megatec_usb] Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) 2007 debug level is '5' Checking device (0665/5161) (001/002) - VendorID: 0665 - ProductID: 5161 - Manufacturer: Cypress Semiconductor - Product: USB to Serial - Serial Number: unknown - Bus: 001 Trying to match device Device matches failed to claim USB device, trying 2 more time(s)... detaching kernel driver from USB device... trying again to claim USB device... Starting UPS detection process... Asking for UPS status [Q1]... Q1 => FAILED [timeout] Asking for UPS status [Q1]... Q1 => FAILED [timeout] Asking for UPS status [Q1]... Q1 => FAILED [timeout] Asking for UPS status [Q1]... Q1 => FAILED [timeout] Asking for UPS status [Q1]... Q1 => FAILED [timeout] 0 out of 5 detection attempts succeeded (minimum required 3) Megatec protocol UPS not detected. best regards, Timo Lindfors