I need to send (or receive) a Feature Report to/from a HID device. How can I achieve this in Docklight Scripting?

I need to send (or receive) a Feature Report to/from a HID device. How can I achieve this in Docklight Scripting?

Applies to: Docklight Scripting (V2.4 and higher), Article ID: dl_prb065

The standard Docklight Scripting V2.4 release does not support Feature reports, but it will be included in the upcoming free V2.5 update.

We have already created a Customer Support Version that supportes Feature Reports, including a related sample application. The added feature extends the existing “:I” HID option that uses the first byte of a Send Sequence as a report ID or control byte. Using Docklight Scripting V2.4.20 or higher, the following extensions are available:

Extended “:I” mode for send/get feature control via first and second byte of Send Sequence:
FE | (outID) | .. | .. – hid_send_feature_report / Windows HidD_SetFeature
FD | (outID) – use hid_get_feature_report / Windows DeviceIoControl
FC | (outID) | .. | .. – use hid_send_output_report / Windows HidD_SetOutputReport

See also the new HID example project hid_demo_CO2_monitor.ptp. It uses a feature report for starting the measurement data acquisition.

NOTE: The feature and output report control via Send Sequence is a new addition and not yet officially supported/documented. Implementation and usage details may still change until the release of V2.5. Any feedback on this feature is highly appreciated!

Download Docklight Scripting V2.4.x Customer Support Version

Docklight Scripting Example – hid_demo_CO2_monitor.ptp Demo

Docklight FAQ – Test and debug HID devices