[Nut-upsdev] megatec_usb and "fry's" UPS

Craig Falconer suppliers at totalteam.co.nz
Tue Oct 20 20:28:40 UTC 2009


Gidday all - I've got a 1700VA dynamix UPS which is USB.

The previous model (with a serial port) worked wonderfully with megatec,
but this new one with USB is not working.

It feels like the kernel is not handing the USB device properly.
The web has not yeilded any useful info.

What can I do from here?

===========================================
[root at hera ups]# lsusb
Bus 006 Device 002: ID 0001:0000 Fry's Electronics


[root at hera ups]# megatec_usb -DD -a ups
Network UPS Tools - Megatec protocol driver 1.6 (2.4.1)
Serial-over-USB transport layer 0.10
debug level is '2'
Checking device (0001/0000) (006/002)
- VendorID: 0001
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 006
Trying to match device
Device matches
failed to claim USB device: could not claim interface 0: Operation not
permitted
failed to detach kernel driver from USB device: could not detach kernel
driver from interface 0: Operation not permitted
failed to claim USB device: could not claim interface 0: Operation not
permitted
failed to detach kernel driver from USB device: could not detach kernel
driver from interface 0: Operation not permitted
failed to claim USB device: could not claim interface 0: Operation not
permitted
failed to detach kernel driver from USB device: could not detach kernel
driver from interface 0: Operation not permitted
failed to claim USB device: could not claim interface 0: Operation not
permitted
failed to detach kernel driver from USB device: could not detach kernel
driver from interface 0: Operation not permitted
Can't claim USB device [0001:0000]: could not detach kernel driver from
interface 0: Operation not permitted


----------- ups.conf
[ups]
         driver = megatec_usb
#       vendor="Fry's Electronics"
#       vendorid = 1
#       productid = 0
         desc = "UPS"
         port = auto


------------- dmesg snippets
grep -i usb /var/log/messages

Sep 15 15:00:35 hera kernel: usbcore: registered new driver usbfs
Sep 15 15:00:35 hera kernel: usbcore: registered new driver hub
Sep 15 15:00:35 hera kernel: usbcore: registered new driver hiddev
Sep 15 15:00:35 hera kernel: usbcore: registered new driver usbhid
Sep 15 15:00:35 hera kernel: drivers/usb/input/hid-core.c: v2.6:USB HID
core driver
Sep 15 15:00:35 hera kernel: ehci_hcd 0000:00:1a.7: new USB bus
registered, assigned bus number 1
Sep 15 15:00:35 hera kernel: ehci_hcd 0000:00:1a.7: USB 2.0 started,
EHCI 1.00, driver 10 Dec 2004
Sep 15 15:00:35 hera kernel: usb usb1: configuration #1 chosen from 1 choice
Sep 15 15:00:35 hera kernel: hub 1-0:1.0: USB hub found
Sep 15 15:00:35 hera kernel: ehci_hcd 0000:00:1d.7: new USB bus
registered, assigned bus number 2
Sep 15 15:00:35 hera kernel: ehci_hcd 0000:00:1d.7: USB 2.0 started,
EHCI 1.00, driver 10 Dec 2004
Sep 15 15:00:35 hera kernel: usb usb2: configuration #1 chosen from 1 choice
Sep 15 15:00:35 hera kernel: hub 2-0:1.0: USB hub found
Sep 15 15:00:35 hera kernel: USB Universal Host Controller Interface
driver v3.0
Sep 15 15:00:35 hera kernel: uhci_hcd 0000:00:1a.0: new USB bus
registered, assigned bus number 3
Sep 15 15:00:35 hera kernel: usb usb3: configuration #1 chosen from 1 choice
Sep 15 15:00:35 hera kernel: hub 3-0:1.0: USB hub found
Sep 15 15:00:35 hera kernel: uhci_hcd 0000:00:1a.1: new USB bus
registered, assigned bus number 4
Sep 15 15:00:35 hera kernel: usb usb4: configuration #1 chosen from 1 choice
Sep 15 15:00:35 hera kernel: hub 4-0:1.0: USB hub found
Sep 15 15:00:35 hera kernel: uhci_hcd 0000:00:1a.2: new USB bus
registered, assigned bus number 5
Sep 15 15:00:35 hera kernel: usb usb5: configuration #1 chosen from 1 choice
Sep 15 15:00:35 hera kernel: hub 5-0:1.0: USB hub found
Sep 15 15:00:35 hera kernel: uhci_hcd 0000:00:1d.0: new USB bus
registered, assigned bus number 6
Sep 15 15:00:35 hera kernel: usb usb6: configuration #1 chosen from 1 choice
Sep 15 15:00:35 hera kernel: hub 6-0:1.0: USB hub found
Sep 15 15:00:35 hera kernel: uhci_hcd 0000:00:1d.1: new USB bus
registered, assigned bus number 7
Sep 15 15:00:35 hera kernel: usb usb7: configuration #1 chosen from 1 choice
Sep 15 15:00:35 hera kernel: hub 7-0:1.0: USB hub found
Sep 15 15:00:35 hera kernel: uhci_hcd 0000:00:1d.2: new USB bus
registered, assigned bus number 8
Sep 15 15:00:35 hera kernel: usb usb8: configuration #1 chosen from 1 choice
Sep 15 15:00:35 hera kernel: hub 8-0:1.0: USB hub found
Sep 15 15:00:36 hera kernel: Initializing USB Mass Storage driver...
Sep 15 15:00:36 hera kernel: usbcore: registered new driver usb-storage
Sep 15 15:00:36 hera kernel: USB Mass Storage support registered.
Sep 15 15:01:48 hera kernel: usb 2-1: new high speed USB device using
ehci_hcd and address 2
Sep 15 15:01:48 hera kernel: usb 2-1: configuration #1 chosen from 1 choice
Sep 15 15:01:48 hera kernel: hub 2-1:1.0: USB hub found
Sep 15 15:01:48 hera kernel: usb 2-1.2: new low speed USB device using
ehci_hcd and address 3
Sep 15 15:01:48 hera kernel: usb 2-1.2: configuration #1 chosen from 1
choice

Sep 15 15:11:06 hera kernel: usb 6-1: new low speed USB device using
uhci_hcd and address 2
Sep 15 15:11:07 hera kernel: usb 6-1: string descriptor 0 read error: -32
Sep 15 15:11:07 hera kernel: usb 6-1: string descriptor 0 read error: -32
Sep 15 15:11:07 hera kernel: usb 6-1: configuration #1 chosen from 1 choice
Sep 15 15:11:07 hera kernel: hiddev96: USB HID v1.00 Device [HID
0001:0000] on usb-0000:00:1d.0-1


The server is an IBM x3200 tower server running centos 5.3
Linux hera 2.6.18-92.1.22.el5.centos.plus #1 SMP Wed Dec 17 10:50:49 EST
2008 i686 i686 i386 GNU/Linux




-- 
Craig Falconer
   The Total Team - Managed Systems
   Office: 0800 888 326 / +643 974 9128
   Email: workorder at totalteam.co.nz
   Web: http://www.totalteam.co.nz/






More information about the Nut-upsdev mailing list