I recently bought a Belkin F6H375 UPS. It connects to the computer via USB. Searching the Internet led me to believe that the megatec_usb driver in nut supports this UPS, however I've been unable to get it to work. I have this in ups.conf: [belkinusb] driver = megatec_usb port = auto desc = "Belkin USB" Here's what happens when I try to use it: ~ # /usr/local/ups/bin/megatec_usb -DDDDDD -a belkinusb -u root Network UPS Tools 2.2.1 - Megatec protocol driver 1.5.9 [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 '6' Checking device (0665/5161) (002/002) - VendorID: 0665 - ProductID: 5161 - Manufacturer: Cypress Semiconductor - Product: USB to Serial - Serial Number: unknown - Bus: 002 Trying to match device Device matches none (-110) Starting UPS detection process... Asking for UPS status [Q1]... none (-110) Q1 => FAILED [timeout] Asking for UPS status [Q1]... none (-110) Q1 => FAILED [timeout] Asking for UPS status [Q1]... none (-110) Q1 => FAILED [timeout] Asking for UPS status [Q1]... none (-110) Q1 => FAILED [timeout] Asking for UPS status [Q1]... none (-110) Q1 => FAILED [timeout] 5 out of 5 detection attempts failed (minimum failures: 2). Megatec protocol UPS not detected. One thing I noticed is that immediately after booting the machine, /dev/usb/hiddev0 exists. As soon as I run the megatec_usb command, that entry disappears. Since /dev/usb/hiddev0 seems to be related to the UPS somehow, I also tried using the usbhid-ups driver with the following settings: [belkinhid] driver = usbhid-ups port = /dev/usb/hiddev0 desc = "Belkin USB" but it didn't detect the UPS either: ~ # /usr/local/ups/bin/usbhid-ups -DDDDDD -a belkinhid -u root Network UPS Tools: 0.29 USB communication driver - core 0.32 (2.2.1) debug level is '6' upsdrv_initups... Checking device (0665/5161) (002/002) - VendorID: 0665 - ProductID: 5161 - Manufacturer: Cypress Semiconductor - Product: USB to Serial - Serial Number: unknown - Bus: 002 Trying to match device Device does not match - skipping Checking device (0000/0000) (002/001) - VendorID: 0000 - ProductID: 0000 - Manufacturer: Linux 2.6.17-gentoo-r4 ohci_hcd - Product: OHCI Host Controller - Serial Number: 0000:00:02.0 - Bus: 002 Trying to match device Device does not match - skipping Checking device (0000/0000) (001/001) - VendorID: 0000 - ProductID: 0000 - Manufacturer: Linux 2.6.17-gentoo-r4 ehci_hcd - Product: EHCI Host Controller - Serial Number: 0000:00:02.1 - Bus: 001 Trying to match device Device does not match - skipping No appropriate HID device found No matching HID UPS found -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20080112/50e4d684/attachment.htm
Alexander I. Gordeev
2008-Jan-12 22:11 UTC
[Nut-upsuser] Belkin F6H375 not seen by nut 2.2.1
On Sun, 13 Jan 2008 00:57:19 +0300, Marco Nelissen <marco.nelissen at gmail.com> wrote:> I recently bought a Belkin F6H375 UPS. It connects to the computer via > USB. > Searching the Internet led me to believe that the megatec_usb driver in > nut > supports this UPS, however I've been unable to get it to work. > > I have this in ups.conf: > [belkinusb] > driver = megatec_usb > port = auto > desc = "Belkin USB" >[skip] Please try the latest trunk. I think this issue is fixed there. -- Alexander
The permissions seem right to me: [root at www drivers]# ll /dev/bus/usb/001 total 0 crw-r--r-- 1 root root 189, 0 2008-01-08 14:16 001 crw-rw-r-- 1 root uucp 189, 1 2008-01-13 21:22 002 The device in question is 002 and these same exact permissions work fine sometimes. I had the above permission setup following my original thread and they worked fine till the last power cut (4 days ago). uucp is the right group since nut is a member of uucp (some Fedora quirk). Thanks for your help. Joe On Jan 13, 2008 8:21 PM, Charles Lepple <clepple at gmail.com> wrote:> On Jan 13, 2008 2:11 PM, Joseph Borg <juu.borg at gmail.com> wrote: > > exec: /sbin/megatec_usb -a unial1200 > > Network UPS Tools 2.3 > .0-1222M - Megatec protocol driver 1.5.11 [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 > > > > ser_get_line: Device detached? (error -110: error sending control > message: > > Operation not permitted) > > "Operation not permitted" for a USB device means that you need to make > sure that the hotplug or udev rules are installed - they set up > permissions so that the driver can access the USB device. > > Check scripts/udev/README for more information, and let us know if the > manual installation instructions are not correct for Fedora. > > -- > - Charles Lepple >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20080113/9a47fb05/attachment-0001.htm
Apologies for the number of emails; I just tried starting as user root and the error message changes but the outcome is the same: --------------- [root at www drivers]# /sbin/upsdrvctl -u root -DDDDD start Network UPS Tools - UPS driver controller 2.2.0- Starting UPS: unial1200 exec: /sbin/megatec_usb -a unial1200 Network UPS Tools 2.3.0-1222M - Megatec protocol driver 1.5.11 [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 ser_get_line: Device detached? (error -110: No error) Successfully reconnected ser_get_line: Device detached? (error -110: No error) Successfully reconnected ser_get_line: Device detached? (error -110: No error) Successfully reconnected ser_get_line: Device detached? (error -110: No error) Successfully reconnected ser_get_line: Device detached? (error -110: No error) Successfully reconnected Megatec protocol UPS not detected. ------------------- Thought that maybe shed some light... Cheers, Joe On Jan 13, 2008 9:01 PM, Joseph Borg <juu.borg at gmail.com> wrote:> The permissions seem right to me: > [root at www drivers]# ll /dev/bus/usb/001 > total 0 > crw-r--r-- 1 root root 189, 0 2008-01-08 14:16 001 > crw-rw-r-- 1 root uucp 189, 1 2008-01-13 21:22 002 > > The device in question is 002 and these same exact permissions work fine > sometimes. I had the above permission setup following my original thread and > they worked fine till the last power cut (4 days ago). uucp is the right > group since nut is a member of uucp (some Fedora quirk). > > Thanks for your help. > Joe > > > On Jan 13, 2008 8:21 PM, Charles Lepple <clepple at gmail.com> wrote: > > > On Jan 13, 2008 2:11 PM, Joseph Borg <juu.borg at gmail.com> wrote: > > > exec: /sbin/megatec_usb -a unial1200 > > > Network UPS Tools 2.3 > > .0-1222M - Megatec protocol driver 1.5.11 [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 > > > > > > ser_get_line: Device detached? (error -110: error sending control > > message: > > > Operation not permitted) > > > > "Operation not permitted" for a USB device means that you need to make > > sure that the hotplug or udev rules are installed - they set up > > permissions so that the driver can access the USB device. > > > > Check scripts/udev/README for more information, and let us know if the > > manual installation instructions are not correct for Fedora. > > > > -- > > - Charles Lepple > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20080113/3053b22a/attachment.htm
Alexander I. Gordeev
2008-Jan-14 07:38 UTC
[Nut-upsuser] Belkin F6H375 not seen by nut 2.2.1
On Mon, 14 Jan 2008 00:10:38 +0300, Joseph Borg <juu.borg at gmail.com> wrote:> Apologies for the number of emails; I just tried starting as user root and > the error message changes but the outcome is the same: > > --------------- > [root at www drivers]# /sbin/upsdrvctl -u root -DDDDD start > Network UPS Tools - UPS driver controller 2.2.0- > Starting UPS: unial1200 > exec: /sbin/megatec_usb -a unial1200 > Network UPS Tools 2.3.0-1222M - Megatec protocol driver 1.5.11 [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 > > ser_get_line: Device detached? (error -110: No error) > Successfully reconnected > ser_get_line: Device detached? (error -110: No error) > Successfully reconnected > ser_get_line: Device detached? (error -110: No error) > Successfully reconnected > ser_get_line: Device detached? (error -110: No error) > Successfully reconnected > ser_get_line: Device detached? (error -110: No error) > Successfully reconnected > Megatec protocol UPS not detected. > -------------------Please could you provide the output of the actual driver like you did in your last e-mail in previous thread. It is much better to figure out the problem!> > Thought that maybe shed some light... > > Cheers, > Joe >-- Alexander