> On Sep 11, 2016, at 3:37 PM, Jeff Bowman <[email protected]> wrote:
> >
> >    Using subdriver: APC HID 0.95
> >
> > ...and then hangs for 45 seconds before returning to a command prompt. No
> UPS hardware information is printed.
> 
> It can take about that long to read the descriptors. The non-Windows NUT
> drivers will print that message, then return to the command line when they go
> into the background (seems similar to your case, if I understand that you ran
> the PowerShell process list command after that 45-second wait).

Yes, that's correct--I ran the PowerShell command after the wait. When I run it 
after issuing 'upsdrvctl stop' no processes are listed (as expected).

> Speaking of which, what version of NUT is this?

NUT 2.6.5

> I think you have that first link working (assuming usbhid-ups is still
> running). If the server is not running, you can try starting it manually with
> one or more "-D" flags to see what is going wrong.

Not much here:

---------------
C:\Users\Admin>upsdrvctl -DD start
Network UPS Tools - UPS driver controller Windows-v2.6.5-5-7-g72f380c
   0.000000
If you're not a NUT core developer, chances are that you're told to enable 
debugging
to see why a driver isn't working for you. We're sorry for the confusion, but 
this is
the 'upsdrvctl' wrapper, not the driver you're interested in.

Below you'll find one or more lines starting with 'exec:' followed by an 
absolute
path to the driver binary and some command line option. This is what the driver
starts and you need to copy and paste that line and append the debug flags to 
that
line (less the 'exec:' prefix).

   0.080003     Starting UPS: ups
   0.080003     exec:  C:\Program Files (x86)\NUT\bin/usbhid-ups.exe -a ups
Network UPS Tools - Generic HID driver 0.38 (Windows-v2.6.5-5-7-g72f380c)
USB communication driver 0.32
interrupt pipe disabled (add 'pollonly' flag to 'ups.conf' to get rid of this 
message)
Using subdriver: APC HID 0.95
---------------

> On the other hand, if the driver is only running for that 45 second interval,
> you can also run the driver manually with "-D". ("upsdrvctl start" is
> primarily a shortcut for systems that stash the drivers out of $PATH, and
> also to start multiple drivers in sequence.)

This looks better. Could it be related to the missing libusb.dll?

---------------
C:\Users\Admin>usbhid-ups.exe -a ups -D
Network UPS Tools - Generic HID driver 0.38 (Windows-v2.6.5-5-7-g72f380c)
USB communication driver 0.32

   0.000000     debug level is '1'
   0.000000     upsdrv_initups...
   0.015634     interrupt pipe disabled (add 'pollonly' flag to 'ups.conf' to 
get rid of this message)
   0.076421     Using subdriver: APC HID 0.95
   0.076421     Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x01, 
Offset: 0, Size: 8, Value: 2
   0.076421     Path: UPS.PowerSummary.iSerialNumber, Type: Feature, ReportID: 
0x02, Offset: 0, Size: 8, Value: 3
   0.076421     Path: UPS.PowerSummary.iManufacturer, Type: Feature, ReportID: 
0x03, Offset: 0, Size: 8, Value: 1
   0.076421     Path: UPS.PowerSummary.iOEMInformation, Type: Feature, 
ReportID: 0x04, Offset: 0, Size: 8, Value: 1
   0.076421     Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, 
ReportID: 0x05, Offset: 0, Size: 8, Value: 4
   0.076421     Path: UPS.PowerSummary.Rechargeable, Type: Feature, ReportID: 
0x06, Offset: 0, Size: 8, Value: 1
   0.076421     Path: UPS.PowerSummary.CapacityMode, Type: Feature, ReportID: 
0x06, Offset: 8, Size: 8, Value: 2
   0.076421     Path: UPS.PowerSummary.DesignCapacity, Type: Feature, ReportID: 
0x0e, Offset: 0, Size: 8, Value: 100
   0.076421     Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, 
ReportID: 0x0e, Offset: 8, Size: 8, Value: 100
   0.076421     Path: UPS.PowerSummary.RemainingCapacity, Type: Input, 
ReportID: 0x0c, Offset: 0, Size: 8, Value: 100
   0.076421     Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, 
ReportID: 0x0c, Offset: 0, Size: 8, Value: 100
   0.076421     Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, 
ReportID: 0x10, Offset: 0, Size: 8, Value: 1
   0.076421     Path: UPS.PowerSummary.CapacityGranularity2, Type: Feature, 
ReportID: 0x10, Offset: 8, Size: 8, Value: 1
   0.076421     Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, 
ReportID: 0x0f, Offset: 0, Size: 8, Value: 50
   0.076421     Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, 
ReportID: 0x11, Offset: 0, Size: 8, Value: 10
   0.076421     Path: UPS.PowerSummary.ManufacturerDate, Type: Feature, 
ReportID: 0x09, Offset: 0, Size: 16, Value: 18094
   0.076421     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 
0x0d, Offset: 0, Size: 16, Value: 4320
   0.076421     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 
0x0d, Offset: 0, Size: 16, Value: 4320
   0.076421     Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, 
ReportID: 0x12, Offset: 0, Size: 16, Value: -1
   0.076421     Path: UPS.PowerSummary.DelayBeforeReboot, Type: Feature, 
ReportID: 0x13, Offset: 0, Size: 24, Value: -1
   0.076421     Path: UPS.PowerSummary.RemainingTimeLimit, Type: Input, 
ReportID: 0x08, Offset: 0, Size: 16, Value: 120
   0.076421     Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature, 
ReportID: 0x08, Offset: 0, Size: 16, Value: 120
   0.076421     Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, ReportID: 
0x0a, Offset: 0, Size: 16, Value: 24
   0.076421     Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x0b, 
Offset: 0, Size: 16, Value: 27
   0.076421     Path: UPS.PowerSummary.AudibleAlarmControl, Type: Input, 
ReportID: 0x14, Offset: 0, Size: 8, Value: 1
   0.076421     Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, 
ReportID: 0x14, Offset: 0, Size: 8, Value: 1
   0.076421     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, 
ReportID: 0x07, Offset: 0, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, 
ReportID: 0x07, Offset: 0, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, 
ReportID: 0x07, Offset: 1, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: 
Feature, ReportID: 0x07, Offset: 1, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, 
ReportID: 0x07, Offset: 2, Size: 1, Value: 1
   0.076421     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, 
ReportID: 0x07, Offset: 2, Size: 1, Value: 1
   0.076421     Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: 
Input, ReportID: 0x07, Offset: 3, Size: 1, Value: 1
   0.076421     Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: 
Feature, ReportID: 0x07, Offset: 3, Size: 1, Value: 1
   0.076421     Path: 
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, 
ReportID: 0x07, Offset: 4, Size: 1, Value: 0
   0.076421     Path: 
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, 
ReportID: 0x07, Offset: 4, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: 
Input, ReportID: 0x07, Offset: 5, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: 
Feature, ReportID: 0x07, Offset: 5, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: 
Input, ReportID: 0x07, Offset: 6, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: 
Feature, ReportID: 0x07, Offset: 6, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, 
Type: Input, ReportID: 0x07, Offset: 7, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, 
Type: Feature, ReportID: 0x07, Offset: 7, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: 
Input, ReportID: 0x07, Offset: 8, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: 
Feature, ReportID: 0x07, Offset: 8, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: 
Input, ReportID: 0x07, Offset: 9, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: 
Feature, ReportID: 0x07, Offset: 9, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.Overload, Type: Input, 
ReportID: 0x07, Offset: 10, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, 
ReportID: 0x07, Offset: 10, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: 
Input, ReportID: 0x07, Offset: 11, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: 
Feature, ReportID: 0x07, Offset: 11, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Input, 
ReportID: 0x07, Offset: 12, Size: 1, Value: 0
   0.076421     Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Feature, 
ReportID: 0x07, Offset: 12, Size: 1, Value: 0
   0.076421     libusb_get_report: libusb0-dll:err [control_msg] sending 
control message failed, win error: A device attached to the system is not 
functioning.



   0.076421     Can't retrieve Report 89: Input/output error [A device attached 
to the system is not functioning. ]
   0.076421     Path: UPS.ff8600fd, Type: Input, ReportID: 0x89, Offset: 0, 
Size: 8
   0.076421     libusb_get_report: libusb0-dll:err [control_msg] sending 
control message failed, win error: A device attached to the system is not 
functioning.



   0.076421     Can't retrieve Report 90: Input/output error [A device attached 
to the system is not functioning. ]
   0.076421     Path: UPS.ff8600fc, Type: Output, ReportID: 0x90, Offset: 0, 
Size: 8
   0.076421     Path: UPS.ff8600f1, Type: Feature, ReportID: 0x96, Offset: 0, 
Size: 8, Value: 0
   0.076421     Path: UPS.ff8600f7, Type: Feature, ReportID: 0x8d, Offset: 0, 
Size: 8, Value: 0
   0.076421     Path: UPS.ff8600f6, Type: Feature, ReportID: 0x8e, Offset: 0, 
Size: 8, Value: 0
   0.076421     Path: UPS.ff8600f3, Type: Feature, ReportID: 0x93, Offset: 0, 
Size: 8, Value: 1
   0.076421     Path: UPS.ff8600f2, Type: Feature, ReportID: 0x94, Offset: 0, 
Size: 8, Value: 1
   0.076421     Path: UPS.ff8600f4, Type: Feature, ReportID: 0x92, Offset: 0, 
Size: 8, Value: 3
   0.076421     Detected a UPS: American Power Conversion /Smart-UPS C 1000 
FW:UPS 10.0 / ID=1005
   0.076421     upsdrv_initinfo...
   0.076421     upsdrv_updateinfo...
   0.076421     Not using interrupt pipe...
   0.076421     Quick update...
   0.076421     upsdrv_updateinfo...
   0.076421     Not using interrupt pipe...
   0.076421     Quick update...
   2.080525     upsdrv_updateinfo...
   2.080525     Not using interrupt pipe...
   2.080525     Quick update...
   4.084411     upsdrv_updateinfo...
   4.084411     Not using interrupt pipe...
   4.084411     Quick update...
   6.085311     upsdrv_updateinfo...
   6.085311     Not using interrupt pipe...
   6.085311     Quick update...
   8.085513     upsdrv_updateinfo...
   8.085513     Not using interrupt pipe...
   8.085513     Quick update...
  10.085726     upsdrv_updateinfo...
  10.085726     Not using interrupt pipe...
  10.085726     Quick update...
  12.085875     upsdrv_updateinfo...
  12.085875     Not using interrupt pipe...
  12.085875     Quick update...
  14.099848     upsdrv_updateinfo...
  14.099848     Not using interrupt pipe...
  14.099848     Quick update...
  16.104959     upsdrv_updateinfo...
  16.104959     Not using interrupt pipe...
  16.104959     Quick update...
  18.113727     upsdrv_updateinfo...
  18.113727     Not using interrupt pipe...
  18.113727     Quick update...
  20.113867     upsdrv_updateinfo...
  20.113867     Not using interrupt pipe...
  20.113867     Quick update...
  20.858772     upsdrv_cleanup...
^C
---------------


_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to