Re: [Nut-upsuser] TrippLite SMART1000LCD

2010-09-24 Thread Rafael Montante




 Hi,

Arjen de Korte wrote:

  Citeren Greg Oliver oliver.g...@gmail.com:

  
  
These patches allow this device to function in nut..

diff --git a/trunk/drivers/tripplite-hid.c b/new/drivers/tripplite-hid.c
index c36da98..13c 100644
--- a/trunk/drivers/tripplite-hid.c
+++ b/new/drivers/tripplite-hid.c
@@ -71,6 +71,8 @@ static usb_device_id_t tripplite_usb_device_table[] = {
   { USB_DEVICE(TRIPPLITE_VENDORID, 0x2005), battery_scale_0dot1 },
   /* e.g. TrippLite OMNI900LCD */
   { USB_DEVICE(TRIPPLITE_VENDORID, 0x2007), battery_scale_0dot1 },
+   /* e.g. TrippLite Smart1000LCD */
+   { USB_DEVICE(TRIPPLITE_VENDORID, 0x2009), battery_scale_0dot1 },
   /* e.g. TrippLite smart2200RMXL2U */
   { USB_DEVICE(TRIPPLITE_VENDORID, 0x3012), battery_scale_1dot0 },
   /* e.g. ? */

  
  
Thanks for the patch. I've included it in the development version.

  

To support the Tripplite OmniVS1000, I think the following should be
added too:

  /* e.g. TrippLite OMNIVS1000 */
 { USB_DEVICE(TRIPPLITE_VENDORID, 0x1009), battery_scale_0dot1 },


battery.charge: 100
battery.runtime: 5760
battery.type: PbAc
battery.voltage.nominal: 12.0
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.4.1
driver.version.data: TrippLite HID 0.4
driver.version.internal: 0.34
input.voltage.nominal: 120
output.frequency.nominal: 60
output.voltage.nominal: 120
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.mfr: Tripp Lite 
ups.model: TRIPP LITE UPS 
ups.power.nominal: 1000
ups.productid: 1009
ups.serial: FW-2473 A 
ups.status: OL
ups.timer.shutdown: 65535
ups.vendorid: 09ae
ups.watchdog.status: 0



  
  
diff --git a/src/nut/nut-2.4.3/scripts/udev/52-nut-usbups.rules
b/etc/udev/rules.d/52-nut-usbups.rules
index c8f0437..fbb03df 100644
--- a/src/nut/nut-2.4.3/scripts/udev/52-nut-usbups.rules
+++ b/etc/udev/rules.d/52-nut-usbups.rules
@@ -92,6 +92,8 @@ ATTR{idVendor}=="09ae", ATTR{idProduct}=="1008",
MODE="664", GROUP="nut"
 ATTR{idVendor}=="09ae", ATTR{idProduct}=="2005", MODE="664", GROUP="nut"
 #  e.g. TrippLite OMNI900LCD  - usbhid-ups
 ATTR{idVendor}=="09ae", ATTR{idProduct}=="2007", MODE="664", GROUP="nut"
+#  e.g. TrippLite SMART1000LCD  - usbhid-ups
+ATTR{idVendor}=="09ae", ATTR{idProduct}=="2009", MODE="664", GROUP="nut"
 #  e.g. TrippLite smart2200RMXL2U  - usbhid-ups
 ATTR{idVendor}=="09ae", ATTR{idProduct}=="3012", MODE="664", GROUP="nut"
 #  e.g. ?  - usbhid-ups

  
  
This is not needed. These rules are generated automatically by 'make  
dist' once we release a new version.

  
  
Everything *works*, but the only  thing is it thinks there is no
battery installed even though it can get the values from it..  Maybe
the battery_scale is different for this one.  I'll play with it more
later..

  
  
This is probably due to an incorrect mapping in the tripplite-hid  
subdriver. I have my doubts about this, so for the moment I have  
commented it out. Most likely the UPS is just wanting to tell you that  
the inverter is not being used, instead of a missing battery.

Best regards, Arjen
  


Best regards,
Rafael



___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

[Nut-upsuser] Problem w/ Belkin UPS on FreeBSD

2010-09-24 Thread Bryce Edwards
I'm sure I'm missing something, but I can't seem to get NUT working on FreeBSD.

br...@tahiti[/usr/local/etc/nut]cat ups.conf
[belkin]
driver = usbhid-ups
port = auto
vendorid = 050d
#productid = 0751

br...@tahiti[/usr/local/etc/nut]s /usr/local/libexec/nut/usbhid-ups
-D -a belkin
Network UPS Tools - Generic HID driver 0.34 (2.4.1)
USB communication driver 0.31
send_to_all: SETINFO driver.parameter.port auto
send_to_all: SETINFO driver.parameter.vendorid 050d
debug level is '5'
upsdrv_initups...
No appropriate HID device found
No matching HID UPS found


br...@tahiti[/usr/ports/sysutils/openupsd]s usbconfig
ugen1.2: Belkin UPS Belkin at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON

br...@tahiti[/usr/ports/sysutils/openupsd]dmesg | grep -i belkin
ugen1.2: Belkin at usbus1
uhid0: Belkin Belkin UPS, class 0/0, rev 1.10/0.01, addr 2 on usbus1

Please advise, thanks!

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser