[Nut-upsuser] Copeland Engineering Dockmaster

Charles Lepple
2017-03-02T15:02:05Z

On Feb 23, 2017, at 2:55 PM, Drew from Zhrodague <drewzhrodague at
zhrodague.net> wrote:
>
> 	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
>

Can you provide a pointer to details on the usbhid-dump tool? Not familiar with
that one.

Depending on how much of the Power Device Class (PDC) HID spec they have
implemented (rather than doing non-PDC HID as a cheap USB-to-serial
replacement), this might require a separate driver, or it might be easy to
extend usbhid-ups. The "explore mode" mentioned in the link below will
provide the output to guide that decision.

Could you please also provide the output of "lsusb -vvv -d 04d8:0500"
run as root?

>
> 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
> <dockmaster-explore.log.gz>