Hi, Thanks for your guidance. I use Rad Hat. The explore-CPS.txt is attached. Thx. 2017-08-01 21:37 GMT+08:00 Charles Lepple <clepple at gmail.com>:> On Aug 1, 2017, at 5:47 AM, Andy Jan <andy1635qq at gmail.com> wrote: > > > > But I want to see the frequency in NUT by connecting CPS UPS. I have > traced the NUT source code and find that the CPS HID table doesn't build > the frequency. > > > > Due to I know less about Linux and NUT. Could you help to revise the NUT > CPS HID table? My UPS model is PR750ELCD. > > > Can you please send a log from "explore" mode? > > http://networkupstools.org/docs/man/usbhid-ups.html > > Not sure which distribution you are using, but on Debian/Ubuntu it will > look something like this: > > /lib/nut/usbhid-ups -DD -x explore -a name-of-ups 2>&1 | tee > /tmp/explore-CPS.txt > > It will loop continuously if it finds the UPS, so you can press Control-C > after ~ 30 seconds. Please gzip the log before emailing it to the list.-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20170802/aa785c04/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: explore-CPS.txt.gz Type: application/x-gzip Size: 2840 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20170802/aa785c04/attachment.bin>
Charles Lepple
2017-Aug-02 11:31 UTC
[Nut-upsuser] I have a question in use CyberPower UPS.
On Aug 2, 2017, at 3:12 AM, Andy Jan <andy1635qq at gmail.com> wrote:> > Hi, > > Thanks for your guidance. > I use Rad Hat. The explore-CPS.txt is attached. > Thx.Looks like it should be easy to fix. The attached patch should work against 2.6.5. Assuming that you are using EPEL, you can grab the SRPM from here: http://www.rpmfind.net/linux/RPM/epel/6/x86_64/nut-2.6.5-2.el6.x86_64.html Let us know if you have questions - there are many people on the list who know RedHat better than I do. -------------- next part -------------- A non-text attachment was scrubbed... Name: cps-frequency.patch Type: application/octet-stream Size: 1603 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20170802/7b1c225d/attachment.obj>
Hi Charles, Thanks. Is the modification will be released? What is the released rule? 2017-08-02 19:31 GMT+08:00, Charles Lepple <clepple at gmail.com>:> On Aug 2, 2017, at 3:12 AM, Andy Jan <andy1635qq at gmail.com> wrote: >> >> Hi, >> >> Thanks for your guidance. >> I use Rad Hat. The explore-CPS.txt is attached. >> Thx. > > Looks like it should be easy to fix. The attached patch should work against > 2.6.5. Assuming that you are using EPEL, you can grab the SRPM from here: > > http://www.rpmfind.net/linux/RPM/epel/6/x86_64/nut-2.6.5-2.el6.x86_64.html > > Let us know if you have questions - there are many people on the list who > know RedHat better than I do. > >