[Nut-upsuser] nut in openwrt
Josu Lazkano
josu.lazkano at gmail.com
Sun Feb 23 18:39:02 UTC 2014
2014-02-23 17:57 GMT+01:00 Charles Lepple <clepple at gmail.com>:
> On Feb 22, 2014, at 9:51 AM, Josu Lazkano wrote:
>
>> The problem is that I don't know where to configure it.
>>
>> Anyone with a UPS connect to a OpenWRT device?
>
> What version of OpenWRT?
>
> I haven't tried this myself, but it looks like recent versions of OpenWRT use UCI, which seems to generate configuration files (including those for NUT) from a unified configuration syntax.
>
> http://wiki.openwrt.org/inbox/software.nut
>
> This script seems to generate the NUT configuration files:
>
> https://dev.openwrt.org/browser/packages/utils/nut/files/ups.init
>
> --
> Charles Lepple
> clepple at gmail
>
>
>
Thanks for the reply.
My OpenWRT version is Barrier Breaker with 3.10.4 kernel.
The big problem is that OpenWRT doesn't recognize the UPS, nothing
with "dmesg" and "lsusb". In a Debian server I got this:
# lsusb
...
Bus 004 Device 002: ID 0665:5161 Cypress Semiconductor USB to Serial
# dmesg
...
[181041.636190] usb 4-4: new low-speed USB device number 2 using ohci_hcd
[181041.805327] usb 4-4: New USB device found, idVendor=0665, idProduct=5161
[181041.805340] usb 4-4: New USB device strings: Mfr=1, Product=2,
SerialNumber=0
[181041.805348] usb 4-4: Product: USB to Serial
[181041.805353] usb 4-4: Manufacturer: INNO TECH
[181041.939647] generic-usb 0003:0665:5161.0001: hiddev0,hidraw0: USB
HID v1.00 Device [INNO TECH USB to Serial] on
usb-0000:00:12.0-4/input0
[181041.939698] usbcore: registered new interface driver usbhid
[181041.939704] usbhid: USB HID core driver
USB drives works well in OpenWRT, it recognize well.
Thanks for your help.
Regards.
--
Josu Lazkano
More information about the Nut-upsuser
mailing list