[Nut-upsuser] suse linux and nut

Marc Collin collinm at laboiteaprog.com
Sun Aug 27 04:18:43 UTC 2006


Le samedi 26 août 2006 19:45, Peter Selinger a écrit :
> Marc Collin wrote:
> > linux64:/home/collinm/Download/trunk # /usr/local/ups/bin/upsc
> > myups at localhost driver.name: newhidups
> > driver.parameter.port: /dev/hiddev0
> > driver.version: 2.1.0
> > driver.version.data: PowerCom HID 0.1
> > driver.version.internal: 0.30
> > powercom.coll2.feature3: 1
> > powercom.coll2.feature4: 2
> > powercom.coll2.feature5: 0
> > powercom.coll2.feature6: 0
> > powercom.feature1: 130
> > powercom.feature2: 54
> > ups.mfr: PowerCom
>
> Good, this is what I wanted to see. The next step: please experiment
> to see which of the powercom.* values change in response to events
> (loss of power, on battery, low battery, battery charging, battery
> full, etc). The point is that we will have to guess how to compute
> "ups.status" from the values. The "low battery" condition is
> especially important, as it is used by upsmon.
>
> My guesses so far:
>
> powercom.coll2.feature3: 1    -- don't know; perhaps a status flag
> powercom.coll2.feature4: 2    -- don't know; perhaps a status flag
> powercom.coll2.feature5: 0    -- don't know; perhaps a status flag
> powercom.coll2.feature6: 0    -- don't know; perhaps a status flag
> powercom.feature1: 130        -- perhaps a line voltage? (depends on
> country) powercom.feature2: 54         -- perhaps a battery voltage or
> charge level?
>
> -- Peter
i live in canada

don't know if it's usefull but i runned a windows program for the ups in 
vmware.... i used usbsnoop

the log file is available at: 

http://www.laboiteaprog.com/usbsnoop.log

i see with the gui program
I/P VOLTAGE: 120
O/P VOLTAGE: 120
LOAD LEVEL: 15
I/P FREQUENCY 60
O/P FREQUENCY 60
BATTERY LEVEL 97

i checkedy also on the usb device 

cat /dev/hiddev0 return


2<005 at 2<c60aznj2<005 at 2<c60aznj2<005 at 2<c60aznj2<005 at 2<c60aznj2<005 at 2<c60aznj2<005 at 2<c60aznj2<005 at 2<c60aznj2<005 at 2<c60aznj2<005 at 2<c60aznj2                 
<005 at 2<c60aznj2<005 at 2<c60aznj2<005 at 2<c60Tznj2005A2<c60Dznj2005A2<c60Bznj2005A2<c60;znj2005A2<c60Dznj2005A2<c60?znj2005A2<c60Dznj2005A2<                 
c60;znj2<005A2<c60Dznj2<005 at 2<c60Fznj2<005 at 2<c60Fznj2<005 at 2<c60Hznj2<005 at 2<c60Kznj2<005 at 2<c60Kznj2<005 at 2<c60Mznj2<005 at 2<c60Mznj2<005 at 2<c60Mznj2<005 at 2<c60Oznj2<005 at 2<c60Oznj2<005 at 2<c60Oznj2<005 at 2<c60Qznj2<005 at 2<c60Qznj2<005 at 2<c60Qznj2<005 at 2<c60Tznj2<005 at 2<c60Tznj2<005 at 2<c60Tznj2<005 at 2<c60Tznj

in the middle, AC fail (removed the plug), we can see the string changed... 
c60Tznj2005A2<c60Dznj2005A2<c60Bznj2005A2<c60;znj2005A2<c60Dznj2005A2


when i unplug the ups  data don't changed

linux64:/home/collinm/Download/trunk # /usr/local/ups/bin/upsc myups at localhost
driver.name: newhidups
driver.parameter.port: /dev/hiddev0
driver.version: 2.1.0
driver.version.data: PowerCom HID 0.1
driver.version.internal: 0.30
powercom.coll2.feature3: 1
powercom.coll2.feature4: 2
powercom.coll2.feature5: 0
powercom.coll2.feature6: 0
powercom.feature1: 130
powercom.feature2: 170
ups.mfr: PowerCom
 

linux64:/home/collinm # /usr/local/ups/sbin/upsmon -DDD -u root
Network UPS Tools upsmon 2.1.0
UPS: myups at localhost (master) (power value 1)
Using power down flag file /etc/killpower

Trying to connect to UPS [myups at localhost]
Logged into UPS myups at localhost
polling ups: myups at localhost
get_var: myups at localhost / status
Poll UPS [myups at localhost] failed - Variable not supported by UPS
do_notify: ntype 0x0005 (COMMBAD)
Communications with UPS myups at localhost lost


will continue to test to see some value will change

thanks



More information about the Nut-upsuser mailing list