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
On Feb 23, 2014, at 1:39 PM, Josu Lazkano wrote:> The big problem is that OpenWRT doesn't recognize the UPS, nothing > with "dmesg" and "lsusb".Are any other USB devices recognized when you plug them in? If not, it is probably a compatibility issue between your hardware and kernel. Does OpenWRT support alternate kernel versions? Or is the USB host controller support in a kernel module which might not be loaded? -- Charles Lepple clepple at gmail
[CC'ing the list] On Feb 23, 2014, at 3:06 PM, Tim Dawson wrote:> I don't think USB support is a given in OpwnWRT - some builds have it, some don't, and some are just a bit wonky. > Most USB builds support USB disk - the USB serial driver is a different beast, and even if one is there does not imply the other. > > I'd be interested in the output of 'lsmod', if your router has it . . . > > - Tim > > On February 23, 2014 1:57:25 PM CST, Charles Lepple <clepple at gmail.com> wrote: > On Feb 23, 2014, at 1:39 PM, Josu Lazkano wrote: > > The big problem is that OpenWRT doesn't recognize the UPS, nothing > with "dmesg" and "lsusb". > > Are any other USB devices recognized when you plug them in? > > If not, it is probably a compatibility issue between your hardware and kernel. Does OpenWRT support alternate kernel versions? > > Or is the USB host controller support in a kernel module which might not be loaded? > > > --- > Tim Dawson > Lewisville, TX > > "Gaff tape can't fix "Stupid", but it can muffle the sound . . ." > Sent via Android-- Charles Lepple A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140223/8bd4c3ef/attachment.html>
Thanks again. This is the lsmod output: # lsmod aead 4256 0 arc4 1312 2 b43 324014 0 bcma 28621 1 b43, button_hotplug 2800 0 cfg80211 172273 2 b43,mac80211, cifs 190077 0 compat 651 3 b43,mac80211,cfg80211, crc16 1015 1 ext4, crc_ccitt 1019 1 ppp_async, crypto_blkcipher 10343 2 ecb,arc4, crypto_hash 9546 7 cifs,sha256_generic,md5,md4,hmac,ext4,jbd2, des_generic 19817 0 ecb 1328 0 ehci_hcd 38172 1 ehci_platform, ehci_platform 1872 0 ext4 311657 0 gpio_keys_polled 2256 0 hmac 2288 0 input_core 24713 4 gpio_keys_polled,button_hotplug,input_polldev, input_polldev 1923 1 gpio_keys_polled, ip6_tables 8977 3 ip6table_raw,ip6table_mangle,ip6table_filter, ip6t_REJECT 2368 2 ip6t_ah 816 0 ip6t_eui64 704 0 ip6t_frag 880 0 ip6t_hbh 1296 0 ip6t_ipv6header 1072 0 ip6t_mh 704 0 ip6t_rt 1520 0 ip6table_filter 608 1 ip6table_mangle 1040 1 ip6table_raw 576 1 ip_tables 9181 4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter, ipt_MASQUERADE 1088 1 ipt_REJECT 1808 2 iptable_filter 672 1 iptable_mangle 912 1 iptable_nat 1680 1 iptable_raw 640 1 ipv6 237119 28 ip6t_REJECT,ip6table_mangle,nf_conntrack_ipv6,nf_defrag_ipv6, jbd2 46700 1 ext4, mac80211 313896 1 b43, mbcache 3949 1 ext4, md4 3552 0 md5 1664 0 nf_conntrack 44251 13 nf_conntrack_ipv6,nf_nat_irc,nf_nat_ftp,nf_conntrack_irc,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat_ipv4,nf_nat,xt_conntrack,xt_CT,xt_state,nf_conntrack_ipv4, nf_conntrack_ftp 5104 1 nf_nat_ftp, nf_conntrack_ipv4 4676 4 nf_conntrack_ipv6 5488 3 nf_conntrack_irc 2800 1 nf_nat_irc, nf_defrag_ipv4 742 1 nf_conntrack_ipv4, nf_defrag_ipv6 8865 1 nf_conntrack_ipv6, nf_nat 9823 7 nf_nat_irc,nf_nat_ftp,xt_REDIRECT,ipt_MASQUERADE,iptable_nat,xt_nat,nf_nat_ipv4, nf_nat_ftp 1216 0 nf_nat_ipv4 2462 1 iptable_nat, nf_nat_irc 928 0 nls_base 5038 2 cifs,usbcore, ppp_async 6144 0 ppp_generic 19698 3 pppoe,pppox,ppp_async, pppoe 7536 0 pppox 1322 1 pppoe, scsi_mod 77218 3 ums_cypress,usb_storage,sd_mod, sd_mod 25264 0 sha256_generic 12229 0 slhc 4203 1 ppp_generic, ums_alauda 8320 0 ums_cypress 2256 0 ums_datafab 4672 0 ums_freecom 2032 0 ums_isd200 5056 0 ums_jumpshot 3648 0 ums_karma 1536 0 ums_sddr09 8864 0 ums_sddr55 4848 0 ums_usbat 7440 0 usb_common 1160 1 usbcore, usb_storage 36328 10 ums_usbat,ums_sddr55,ums_sddr09,ums_karma,ums_jumpshot,ums_isd200,ums_freecom,ums_datafab,ums_cypress,ums_alauda, usbcore 111521 14 ums_usbat,ums_sddr55,ums_sddr09,ums_karma,ums_jumpshot,ums_isd200,ums_freecom,ums_datafab,ums_cypress,ums_alauda,usblp,usb_storage,ehci_platform,ehci_hcd, usblp 8528 0 x_tables 11093 32 ip6t_REJECT,ip6t_rt,ip6t_hbh,ip6t_mh,ip6t_ipv6header,ip6t_frag,ip6t_eui64,ip6t_ah,ip6table_raw,ip6table_mangle,ip6table_filter,ip6_tables,xt_REDIRECT,ipt_MASQUERADE,xt_nat,xt_conntrack,xt_CT,iptable_raw,xt_state,xt_mark,xt_time,ipt_REJECT,xt_TCPMSS,xt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,iptable_mangle,iptable_filter,ip_tables,xt_tcpudp, xt_CT 2288 0 xt_LOG 9392 0 xt_REDIRECT 1040 0 xt_TCPMSS 2688 2 xt_comment 480 64 xt_conntrack 2144 6 xt_limit 1008 20 xt_mac 608 0 xt_mark 672 0 xt_multiport 1184 0 xt_nat 1088 9 xt_state 688 0 xt_tcpudp 1696 23 xt_time 1664 0 Regards. -- Josu Lazkano
On Sun, 23 Feb 2014 19:39:02 +0100, Josu Lazkano <josu.lazkano at gmail.com> wrote:> > # dmesg > ... > [181041.636190] usb 4-4: new low-speed USB device number 2 using ohci_hcd >I recently read about openwrt (for one of the routers I own). And there was a comment that particular router does not support low-speed USB devices (USB1). Could that be the issue? The one I read about was TL MR3220. There is suggestion, that using external USB hub would resolve the issue. -- Virgo P?rna virgo.parna at mail.ee
2014-02-25 10:12 GMT+01:00 Virgo P?rna <virgo.parna at mail.ee>:> On Sun, 23 Feb 2014 19:39:02 +0100, Josu Lazkano <josu.lazkano at gmail.com> wrote: >> >> # dmesg >> ... >> [181041.636190] usb 4-4: new low-speed USB device number 2 using ohci_hcd >> > > I recently read about openwrt (for one of the routers I own). And there was a > comment that particular router does not support low-speed USB devices (USB1). Could that > be the issue? The one I read about was TL MR3220. There is suggestion, that using > external USB hub would resolve the issue. > > -- > Virgo P?rna > virgo.parna at mail.eeHello again, thanks for your reply. I plug a USB Hub in OpenWRT but there is nothing in "lsusb" and "dmesg". In a Debian server I have this: # lsusb ... Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 006: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub # dmesg ... [440927.420129] usb 1-3: new high-speed USB device number 6 using ehci_hcd [440927.552917] usb 1-3: New USB device found, idVendor=1a40, idProduct=0201 [440927.552929] usb 1-3: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [440927.552937] usb 1-3: Product: USB 2.0 Hub [MTT] [440927.553508] hub 1-3:1.0: USB hub found [440927.553644] hub 1-3:1.0: 7 ports detected Thank you very much for your assistant. Regards. -- Josu Lazkano