[Nut-upsuser] Copeland Engineering Dockmaster

Drew from Zhrodague
2017-02-23T19:55:30Z

Thank you - I have included the capture, and attached it here. USB is
new to me. I am a good sysadmin, but terrible programmer.

	I was able to use the usbhid-dump utility using -e stream, the last
octet will report the state of the detected power (1/2 for ignition on,
3 for ignition off, 0 for powered-off). 4th one seems to be voltage, and
the 5th and 6th I believe are timers:

003:002:000:STREAM             1487878974.229138
  80 11 03 51 FF FF A3 00

003:003:000:STREAM             1487879404.657687
  00 11 00 55 FF FF A3 01

003:003:000:STREAM             1487879404.665683
  00 11 00 51 FF FF A3 02



On 2/22/17 11:19 PM, Charles Lepple wrote:
> On Feb 21, 2017, at 10:21 AM, Drew from Zhrodague <drewzhrodague at
zhrodague.net> wrote:
>>
>>
>> 	Hello! I have a Dockmaster from Copeland Engineering. This is a
battery saver used for a laptop docking station in a police car, which has a USB
port for relaying its internal timers and state.
>>
>> hid-generic 0003:04D8:0500.0001: hiddev0,hidraw0: USB HID v1.10 Device
[Copeland Engineering, LLC Dock Master] on usb-0000:00:10.4-3.3/input0
>>
>> 	I'm able to configure usbhid-ups, but it doesn't seem to
detect the state of the power (between ignition-on and ignition-off). I do have
access to the Windows-based configuration utility.
>>
>> 	I'm not quite sure how to tell usbhid-ups how the data is
formatted. How can I get this device working with nut?
>
> I won't have a chance to look at the data for a few days, but can you
grab some logs from "explore mode"?
>
>
http://new.networkupstools.org/docs/developer-guide.chunked/ar01s04.html#hid-subdrivers
>
> In case that link is broken, a slightly older version:
>
>
http://networkupstools.org/docs/developer-guide.chunked/ar01s04.html#hid-subdrivers
>
> Please gzip the logs before posting, and use reply-all to include the rest
of the list.
>
> Thanks!
>


--

Drew from Zhrodague
drew at zhrodague.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dockmaster-explore.log.gz
Type: application/x-gzip
Size: 1170 bytes
Desc: not available
URL:
<http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20170223/9f4e2126/attachment.bin>