I am looking at the newhid driver for this Pulsar EXtreme here but it gives odd results, for example there is no status variable :) eg debug level is '2' Checking device (0463/FFFF) (/dev/usb0//dev/ugen0) - VendorID: 0463 - ProductID: ffff - Manufacturer: unknown - Product: unknown - Serial Number: unknown - Bus: /dev/usb0 Trying to match device Device matches HID descriptor retrieved (Reportlen = 1535) Report descriptor retrieved (Reportlen = 1535) Found HID device Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.3) Report Descriptor size = 1535 Detected a UPS: unknown/unknown Using subdriver: MGE HID 0.8 Path: UPS.PowerSummary.PowerSummaryID, Type: Feature, Value: 1.000000 Path: UPS.PowerSummary.FlowID, Type: Feature, Value: 4.000000 Can't retrieve Report 52 (-5/5): Input/output error Path: UPS.PowerSummary.RemainingCapacityLimitSetting, Type: Feature Path: UPS.PowerSummary.Rechargeable, Type: Feature, Value: 1.000000 Path: UPS.PowerSummary.CapacityMode, Type: Feature, Value: 2.000000 ... I get quite a number of IO errors - it seems these come from libusb but I am not sure under what circumstances it returns it. This is a 6.0 machine running NUT 2.0.3 - has anyone been able to connect to a USB UPS with FreeBSD? Thanks. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20060522/40523179/attachment.pgp
Hi, I was wondering as a fellow FreeBSD user, where did you do the "upsdrvctl shutdown" command? For the others, there was mention of "rc.early", but it seems that it is not run during shutdown. Thanks, Tuc
On Monday 22 May 2006 17:43, Daniel O'Connor wrote:> I am looking at the newhid driver for this Pulsar EXtreme here but it gives > odd results, for example there is no status variable :)Hmm well updating to a later libusb fixed that.. Interestingly I still can't set the outlets! :) eg I run.. upsrw -s outlet.2.delay.start=1 -u admin -p password hid@localhost And I see.. ... entering setvar(outlet.2.delay.start, 1) entering string_to_path() Looking up UPS Looking up OutletSystem Looking up Outlet Looking up [3] Looking up DelayBeforeStartup Report : (8 bytes) => 3D FF FF FF 00 00 00 00 =>> SET: Before set: -10.00 (1) =>> SET: after exp: 0/0.10 (exp = 0.10) PhyMax = 0, PhyMin = 0, LogMax = 65535, LogMin = -1 =>> SET: after PL: 0 ==> Report after setvalue: (8 bytes) => 3D 00 00 00 00 00 00 00 Set report failed FAILED or.. upsrw -s outlet.2.switch=1 -u admin -p password hid@localhost ... entering setvar(outlet.2.switch, 1) entering string_to_path() Looking up UPS Looking up OutletSystem Looking up Outlet Looking up [3] Looking up PresentStatus Looking up SwitchOn/Off Report : (8 bytes) => 13 00 00 00 0B 00 00 00 =>> SET: Before set: 0.00 (1) =>> SET: after exp: 1/1.00 (exp = 1.00) PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0 =>> SET: after PL: 1 ==> Report after setvalue: (8 bytes) => 13 01 00 00 0B 00 00 00 Set report failed FAILED -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20060523/1ad212e1/attachment.pgp
Hello, for me the USB works on FreeBSD 6.0 with custom kernell. Please find notes on http://wiki.botka.homeunix.org/bin/view/Main/NetworkUpsToolsUsb There has been a thread about this issue recently. I wonder that your USB attaches to /dev/ugen0 on FreeBSD 6.0. I had to disable uhid driver to get ugen. All these problems are solved on 6.1 with libusb 0.1.12 has been reported. Cheers, -vlado D0000000000000000000000000000000 On Mon, 22 May 2006, Daniel O'Connor wrote:> I am looking at the newhid driver for this Pulsar EXtreme here but it gives > odd results, for example there is no status variable :) > > eg > debug level is '2' > Checking device (0463/FFFF) (/dev/usb0//dev/ugen0) > - VendorID: 0463 > - ProductID: ffff > - Manufacturer: unknown > - Product: unknown > - Serial Number: unknown > - Bus: /dev/usb0 > Trying to match device > Device matches > HID descriptor retrieved (Reportlen = 1535) > Report descriptor retrieved (Reportlen = 1535) > Found HID device > Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.3) > > Report Descriptor size = 1535 > Detected a UPS: unknown/unknown > Using subdriver: MGE HID 0.8 > Path: UPS.PowerSummary.PowerSummaryID, Type: Feature, Value: 1.000000 > Path: UPS.PowerSummary.FlowID, Type: Feature, Value: 4.000000 > Can't retrieve Report 52 (-5/5): Input/output error > Path: UPS.PowerSummary.RemainingCapacityLimitSetting, Type: Feature > Path: UPS.PowerSummary.Rechargeable, Type: Feature, Value: 1.000000 > Path: UPS.PowerSummary.CapacityMode, Type: Feature, Value: 2.000000 > ... > > I get quite a number of IO errors - it seems these come from libusb but I am > not sure under what circumstances it returns it. > > This is a 6.0 machine running NUT 2.0.3 - has anyone been able to connect to a > USB UPS with FreeBSD? > > Thanks. > > -- > Daniel O'Connor software and network engineer > for Genesis Software - http://www.gsoft.com.au > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C >