Ptal jsem se i jinde, ale treba mi tu bude nekdo umet poradit...
Hi!
I have Synology DS-110j,and Eaton Ellipse1000 connected via USB.
I've got following problem with USB, unfortunatelly I can't find the config.out as I have installed apcupsd via ipkg.
[ 0.000000] Linux version 2.6.32.12 (root@image13) (gcc version 4.2.1) #1354 Sat Oct 23 00:49:24 CST 2010
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Feroceon-KW
[ 0.000000] Using UBoot passing parameters structure
[ 0.000000] Sys Clk = 200000000, Tclk = 166666667
[ 0.000000] Synology Board ID: 21
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat c03c86d8, node_mem_map c0420000
APCUPSD version 3.14.8
UPS - EATON Ellipse 1000 - USB cable
To use with USB port I did
CODE:
ipkg install apcupsd
cd /opt/etc/apcupsd
sed -i 's/UPSCABLE smart/UPSCABLE usb/g' /opt/etc/apcupsd/apcupsd.conf
sed -i 's/UPSTYPE apcsmart/UPSTYPE usb/g' /opt/etc/apcupsd/apcupsd.conf
sed -i 's/\/dev\/ttyS0//g' /opt/etc/apcupsd/apcupsd.conf
mkdir /opt/var/lock
chmod 777 /opt/var/lock
touch /opt/var/log/apcupsd.events
touch /opt/var/log/apcupsd.status
CODE:
cat /proc/bus/usb/devices
T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=06da ProdID=0003 Rev= 4.00
S: Manufacturer=OMRON
S: Product=USB UPS
C:* #Ifs= 1 Cfg#= 1 Atr=a0 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=20ms
CODE:
dmesg | grep hiddev
usbcore: registered new interface driver hiddev
hiddev104: USB HID v1.11 Device [OMRON USB UPS] on usb-ehci_marvell.70059-1.1
All seems good!
When i try it:
CODE:
apctest
2010-08-14 02:49:58 apctest 3.14.8 (16 January 2010) unknown
Checking configuration ...
Attached to driver: usb
sharenet.type = DISABLE
cable.type = USB_CABLE
You are using a USB cable type, so I'm entering USB test mode
mode.type = USB_UPS
Setting up the port ...
apctest FATAL ERROR in linux-usb.c at line 609
Cannot find UPS device --
For a link to detailed USB trouble shooting information,
please see http://www.apcupsd.com/support.html.
apctest error termination completed
In APC's manual
Problem
USB driver linux-usb.c fails to compile, reporting errors about HID_MAX_USAGES undefined. This is due to a defect in the linux kernel hiddev.h header file on 2.6.5 and higher kernels.
Workaround
Upgrade to apcupsd-3.10.14 or higher. These versions contain a workaround for the defect.
BUT i USE apcupsd 3.14.8 :cry:
Any ideas??