Skip to main content

Posts

Showing posts with the label USB HID

Docklight Scripting V2.2 – Windows 10, USB HID and user interfaces

Just before going into summer holiday mode, we released free maintenance updates for Docklight and Docklight Scripting . Here is what we improved before the outdoors became too tempting... A lot of attention went into flawless Windows 10 compatibility, especially when accessing  USB HID Custom Class devices or COM device drivers with input data buffer > 4KB. In addition, a Docklight script (.pts file) can now be loaded and started automatically along with the Docklight project (.ptp file). If your project is called "robotest.ptp", simply name your script file "robotest_auto.pts" and make sure it is located in the same folder. This is especially useful for any script that with event-based processing using Sub On_Send() or Sub On_Receive() . The Docklight main screen underwent some fine-tuning. Finally there is mouse wheel support for the Send Sequence and Receive Sequence lists. Send and Receive Sequence lists are now protected against accidental reord...

USB HID and Windows 10

TL;DR; Docklight Scripting V2.1 USB HID support didn't work on Windows 10. Here is an updated version with additional improvements: https://docklight.de/download/Docklight_Scripting.zip The Problem Apparently, Windows 10 has a different behavior concerning HID access than earlier versions. Docklight Scripting uses HIDAPI from Alan Ott / Signal 11, and the problem was recently detected and resolved in the HIPAPI implementation  (see  https://github.com/signal11/hidapi/issues/231 ).  The Solution We updated Docklight Scripting's HIDAPI code, so it can now successfully open a HID connection in Windows 10: We also added two Docklight-specific improvements concerning USB HID access: Added support for variable Output Report IDs You can work now with varying, non-zero Output Report IDs using the :I communication channel option, e.g. USBHID:4D8:F708:I Now the first character of your Send Sequences is used as the Output Report ID (instead of the def...