[Nut-upsuser] How can I setup Ubuntu 7.04 feisty + Udev + Nut + Unitek Ups (megatec) + Usb ????

Sébastien CRAMATTE s.cramatte at wanadoo.fr
Fri Sep 21 20:28:01 UTC 2007


Hello

I've got an Unitek UPS (650ipE) that use megatec driver ...
I'm running Ubuntu 7.04  with a 2.6.20 kernel  and   nut 2.0.5-1 package

Ubuntu by default use Udev and "hid", "usbhid", "evdev" kernel modules
are loaded automatically

The UPS is detected on system level but "upsdrvctl"  can't access  to
the device ...

Does anyone could give me an hand ?
I'm very frustraded because the device is detected :( ....

Regards
                                 
----
#ls -lh /dev/input
...
crw-rw---- 1 root root 13, 67 2007-09-21 19:28 /dev/input/event3
...

#ls -lh /dev/input/by-id/

lrwxrwxrwx 1 root root 9 2007-09-21 19:28
usb-Ver_1.0_USB_To_RS232_Interface__V1.0__BaudRate_2400bps-event-mouse
-> ../event3

-----
#cat /proc/bus/usb/devices
...

T:  Bus=06 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0f03 ProdID=0001 Rev= 0.01
S:  Manufacturer=Ver 1.0
S:  Product=USB To RS232 Interface ( V1.0) BaudRate 2400bpsC:* #Ifs= 1
Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
...
----

---- /etc/nut/ups.conf ---

[unitek]
driver =  megatec
port = /dev/input/event3
desc = "Server"


root at elsa:/dev/input# upsdrvctl -u root start
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

tcgetattr(/dev/input/event3): Inappropriate ioctl for device
Driver failed to start (exit status=1)

----------
root at elsa:/dev/input# upsdrvctl -u root start
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

tcgetattr(/dev/input/event3): Inappropriate ioctl for device
Driver failed to start (exit status=1)




More information about the Nut-upsuser mailing list