Chris Duffy
2014-Feb-04 14:05 UTC
[Nut-upsdev] Question on support for Upsonic Commercial UPS CXR 2000 - 2000VA/1200W - Rack/Tower on Freebsd 9.1.
Charles, Here is the output: ugen1.3: <USB UPS PPC> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x06da idProduct = 0x0005 bcdDevice = 0x0003 iManufacturer = 0x0003 <PPC> iProduct = 0x0001 <USB UPS> iSerialNumber = 0x0000 <no string> bNumConfigurations = 0x0001 I am running all the ups programs as root, i.e. "ps -aux" shows: root 39901 0.0 0.0 22388 3860 ?? Is 12:57AM 0:00.00 /usr/local/bin/upslog -s UPSonic at localhost -l /var/log/ups.log -i 300 -u root root 39976 0.0 0.0 22392 3804 ?? Is 12:57AM 0:00.00 /usr/local/sbin/upsmon -u root localhost root 39978 0.0 0.0 22392 3900 ?? S 12:57AM 0:00.01 /usr/local/sbin/upsmon -u root localhost The /var/log/ups.log does not have much in it either that makes sense....maybe I need a utility to decode it? Sample lines from the is file are: 20140131 103652 NA NA NA [NA] NA NA 20140131 103914 NA NA NA [NA] NA NA 20140131 103914 NA NA NA [NA] NA NA 20140131 104414 NA NA NA [NA] NA NA 20140131 104914 NA NA NA [NA] NA NA 20140131 105221 NA NA NA [NA] NA NA 20140131 105221 NA NA NA [NA] NA NA 20140131 105721 NA NA NA [NA] NA NA 20140131 110221 NA NA NA [NA] NA NA 20140131 110330 NA NA NA [NA] NA NA 20140131 110330 NA NA NA [NA] NA NA 20140131 110631 NA NA NA [NA] NA NA 20140131 110631 NA NA NA [NA] NA NA 20140131 110923 NA NA NA [NA] NA NA 20140131 110923 NA NA NA [NA] NA NA 20140131 111323 NA NA NA [NA] NA NA 20140204 092035 NA NA NA [NA] NA NA 20140204 092045 NA NA NA [NA] NA NA 20140204 092045 NA NA NA [NA] NA NA 20140204 092545 NA NA NA [NA] NA NA On 2/3/14, 8:39 PM, Charles Lepple wrote:> On Feb 3, 2014, at 9:05 PM, Chris Duffy wrote: > >> Thx for the info Charles. >> >> Here is what I am seeing from >> 'usbconfig list' > [...] >> ugen1.3: <USB UPS PPC> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON >> >> >> The last line I guess is key. > > Unfortunately, it is not very unique: the vendor can pick the string > "USB UPS PPC", but the drivers match on the numeric IDs. > Try 'usbconfig -d ugen1.3 dump_device_desc' > >> I did try all the diff combinations from the chart below >> to no avail..... > > "no avail" is not one of our error messages... I just checked :-) > > What was the error message from blazer_usb? > >> and they are using a USB cable/port..... > > see below. > >> Thx for any leads. >> >> Chris >> >> >> On 1/31/14, 6:17 PM, Charles Lepple wrote: >>> On Jan 31, 2014, at 3:14 PM, Chris Duffy wrote: >>> >>>> The current one I am looking is support for: >>>> >>>> *Upsonic Commercial UPS CXR 2000 - 2000VA/1200W - Rack/Tower* >>>> >>>> What seems to be supported in Freebsd is: >>> >>> Small clarification: the hardware compatibility list isn't broken >>> down by operating system (theoretically, the drivers should work on >>> any POSIX system, with additional dependencies for USB). >>> >>>> >>>> CXR1000 >>>> blazer_ser >>>> LAN Saver 600 >>>> genericups upstype=0 >>>> Power Guardian >>>> genericups upstype=7 >>>> PrOffice 650 >>>> USB blazer_usb >>>> DS-800 >>>> USB blazer_usb >>>> >>>> >>>> >>>> we tried these but not much luck according to my customer. >>>> Has anyone got this one to work on Freebsd and >>>> what is needed for the config? >>> >>> In general, permissions on device nodes aren't set up automatically >>> in FreeBSD. In particular, the USB nodes aren't writable by the >>> default system username for NUT (uucp), so you probably will need to >>> make a change to devd.conf. > > Given the usbconfig output above, you will either need to run the > driver as root ("-u root" on the command line) or change the > permissions ("chown uucp /dev/usb/1.3.*"). The /dev filesystem is > volatile, so this will reset itself on the next boot. > > -- > Charles Lepple > clepple at gmail > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20140204/f4511785/attachment.html>
Charles Lepple
2014-Feb-05 03:05 UTC
[Nut-upsdev] Question on support for Upsonic Commercial UPS CXR 2000 - 2000VA/1200W - Rack/Tower on Freebsd 9.1.
On Feb 4, 2014, at 9:05 AM, Chris Duffy wrote:> ugen1.3: <USB UPS PPC> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON[...]> idVendor = 0x06da > idProduct = 0x0005This VID:PID combination should be handled by blazer_usb. In NUT 2.7.1 and later, this would be covered by nutdrv_qx as well.> I am running all the ups programs as root, i.e. "ps -aux" shows: > > root 39901 0.0 0.0 22388 3860 ?? Is 12:57AM 0:00.00 /usr/local/bin/upslog -s UPSonic at localhost -l /var/log/ups.log -i 300 -u root > root 39976 0.0 0.0 22392 3804 ?? Is 12:57AM 0:00.00 /usr/local/sbin/upsmon -u root localhost > root 39978 0.0 0.0 22392 3900 ?? S 12:57AM 0:00.01 /usr/local/sbin/upsmon -u root localhostThe key program to run with "-u root" is the driver. When I mentioned logs, I was thinking syslog (/var/log/messages, probably). I hadn't considered upslog, but apparently the *BSD ports tree starts a copy by default. For instance: /usr/local/libexec/nut/blazer_usb -a UPSonic -u root -D> The /var/log/ups.log does not have much in it either that > makes sense....maybe I need a utility to decode it? > Sample lines from the is file are: > > 20140131 103652 NA NA NA [NA] NA NAupslog basically condenses the output of upsc into one line per polling interval, but this falls apart if the driver hasn't started. (The error message from upsc is more descriptive, since it isn't trying to force it into a bunch of columns). Once the driver is running, you will see numbers there, corresponding to the default format string: http://www.networkupstools.org/docs/man/upslog.html -- Charles Lepple clepple at gmail
Chris Duffy
2014-Feb-05 15:12 UTC
[Nut-upsdev] Question on support for Upsonic Commercial UPS CXR 2000 - 2000VA/1200W - Rack/Tower on Freebsd 9.1.
Charles, We run everything as "root" :) However, we are using NUT 2.6.5. Are we missing something by running 2.6.5 rather then 2.7.1? If so, I can build/install 2.7.1. Thx chris Would On 2/4/14, 9:05 PM, Charles Lepple wrote:> On Feb 4, 2014, at 9:05 AM, Chris Duffy wrote: > >> ugen1.3: <USB UPS PPC> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > [...] >> idVendor = 0x06da >> idProduct = 0x0005 > This VID:PID combination should be handled by blazer_usb. In NUT 2.7.1 and later, this would be covered by nutdrv_qx as well. > >> I am running all the ups programs as root, i.e. "ps -aux" shows: >> >> root 39901 0.0 0.0 22388 3860 ?? Is 12:57AM 0:00.00 /usr/local/bin/upslog -s UPSonic at localhost -l /var/log/ups.log -i 300 -u root >> root 39976 0.0 0.0 22392 3804 ?? Is 12:57AM 0:00.00 /usr/local/sbin/upsmon -u root localhost >> root 39978 0.0 0.0 22392 3900 ?? S 12:57AM 0:00.01 /usr/local/sbin/upsmon -u root localhost > The key program to run with "-u root" is the driver. > > When I mentioned logs, I was thinking syslog (/var/log/messages, probably). I hadn't considered upslog, but apparently the *BSD ports tree starts a copy by default. > > For instance: /usr/local/libexec/nut/blazer_usb -a UPSonic -u root -D > >> The /var/log/ups.log does not have much in it either that >> makes sense....maybe I need a utility to decode it? >> Sample lines from the is file are: >> >> 20140131 103652 NA NA NA [NA] NA NA > upslog basically condenses the output of upsc into one line per polling interval, but this falls apart if the driver hasn't started. (The error message from upsc is more descriptive, since it isn't trying to force it into a bunch of columns). Once the driver is running, you will see numbers there, corresponding to the default format string: > > http://www.networkupstools.org/docs/man/upslog.html >-- Chris Duffy Product Support Small Tree Communications www.small-tree.com Direct 651-209-6509 X305 Mobil 651-303-9613 Skype:cjdwoodbury Yahoo:chris_duffy6288 AIM/Google:cjdwoodbury at gmail.com
Reasonably Related Threads
- Question on support for Upsonic Commercial UPS CXR 2000 - 2000VA/1200W - Rack/Tower on Freebsd 9.1.
- Question on support for Upsonic Commercial UPS CXR 2000 - 2000VA/1200W - Rack/Tower on Freebsd 9.1.
- Question on support for Upsonic Commercial UPS CXR 2000 - 2000VA/1200W - Rack/Tower on Freebsd 9.1.
- Question on support for Upsonic Commercial UPS CXR 2000 - 2000VA/1200W - Rack/Tower on Freebsd 9.1.
- Question on support for Upsonic Commercial UPS CXR 2000 - 2000VA/1200W - Rack/Tower on Freebsd 9.1.