LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   nut and belkin F6C550-AVR (https://www.linuxquestions.org/questions/linux-hardware-18/nut-and-belkin-f6c550-avr-580434/)

arobinson74 08-28-2007 10:44 AM

nut and belkin F6C550-AVR
 
I just purchased a Belkin F6C550-AVR UPS with USB. I am trying to get it to work on my debian box running the stock 2.6.22-1-k7 kernel

I first tried to install the Belkin software that it came with and that didn't work. The software didn't pick up the UPS and it didn't provide any information why. Deciding against using the proprietary code, I un-installed the Belkin software in installed the nut 2.2.0-1 package from debian testing/unstable.

According to the documentation at:
http://www.networkupstools.org/compat/stable.html

The "Office Series F6C550-AVR USB" is supported by the usbhid-ups driver. So I setup my /etc/nut/ups.conf to use it:
Code:

[belkin]
driver = usbhid-ups
port = auto

When I ran "sudo /lib/nut/usbhid-ups -DDDDDDDDDDDDDD -u nut -a belkin"

I got the following output:
Code:

debug level is '14'
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0665/5161) (001/005)
- VendorID: 0665
- ProductID: 5161
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
Checking device (045E/0008) (001/004)
- VendorID: 045e
- ProductID: 0008
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (001/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
No appropriate HID device found
No matching HID UPS found

Now the 2nd one should work. This is the USB device that gets recognized when I plug-in the UPS:

- VendorID: 0665
- ProductID: 5161

However as you see, it says it does not match.

The output from /proc/bus/usb/devices:
Code:

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0665 ProdID=5161 Rev= 0.02
S:  Manufacturer=Cypress Semiconductor
S:  Product=USB to Serial
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=  8 Ivl=32ms

Last night I tried the nut-hal-drivers package from debian, but I don't think it was working, and furthermore it doesn't provide the ups monitor or other programs and I am not sure to to configure it.

Any ideas?

arobinson74 08-28-2007 02:22 PM

Got it to work, but needed some tweaking.

Steps:
* install nut-dev and its dependencies
* apt-get source nut
* modify the debian/rules file and add:
Code:

--with-udev-dir=/etc/udev
to the list of configuration options
* Install the new package
* Configure the UPS in /etc/nut/ups.conf:
Code:

[belkin]
driver = megatec_usb
port = auto

Yes, the http://eu1.networkupstools.org/compat/stable.html page is inaccurate, you need the megatec_usb driver for this UPS, not the usbhid-ups
* restart udev and hal
* unplug and plug-in the USB

Now it is working

Lord C 11-24-2007 06:03 PM

I tried the above, but I get

Quote:

Network UPS Tools - UPS driver controller 2.0.5
Network UPS Tools - Megatec protocol driver 1.5 (2.0.5)
Carlos Rodrigues (c) 2003-2006


Unable to open auto: No such file or directory
I wouldn't know what to put instead of auto, for e.g. /dev/usb

arobinson74 11-24-2007 09:00 PM

I am using this:

[belkin]
driver = megatec_usb
port = auto
lowbatt = 30
mfr = Belkin
model = F6C550-AVR

Make sure you have nut 2.2 or higher

Lord C 11-25-2007 08:24 AM

Lol I was using an old nut source, how silly.

I am much farther now!

Quote:

$ sudo /usr/local/ups/bin/upsdrvctl -u root start
Network UPS Tools - UPS driver controller 2.2.0
Network UPS Tools 2.2.0 - Megatec protocol driver 1.5.4 [megatec_usb]
Carlos Rodrigues (c) 2003-2007

Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]

Megatec protocol UPS detected.
Now then, seems to be working. I have checked in gnome's power management, nothing there. How do I get this baby operational?

Wow this really needs more integration. Such a horrible setup.
I'm going to try configuring --with-hal because I heard this is how I get Gnome integration via the Power Management applet.

[Edit]
Tried to follow this; http://www.crn.com/white-box/199000818?pgno=1
Why the hell is setting up UPS so hard?
[/Edit]


All times are GMT -5. The time now is 08:10 PM.