Send and Receive Data

Once you have opened a device, the control group labelled “Step 2a:” and “Step 2b:” will become enabled. This will allow you to exercise the device by setting values to variables and sending data to and from the PC.

USB HID devices pack their data into groups called Reports. Each Report contains a fixed group of data items (variables), which was defined when the device was designed. There are 3 types of Reports, based on the direction that data can go:

Reading an Input or Feature Report, if your HID Peripheral device has one, is easy. Just select an Input Report from the list of available Reports, and click the button marked “Read this Report.” AnyHID will display the data in the Results box.

Sending an Output or Feature Report means that you ought to set values for the variables in the Report before you send it out. First, select an Output Report (if your device has one) from the list of available Reports. When you select an Output Report, the ComboBox control under the “Step 2b:” label will enable itself, and show a list of all the variables contained in the Output Report you selected, each showing its current value.

To set a variable’s value, select the variable from the list. Enter an integer numeric value (either in decimal, or hex with a 0x prefix) in the text box under the label “New value to set”. Then, update the variable’s value by clicking the button labelled “Change Var to this”. Repeat these steps for other variables you want to change.

When you have set the values of all the variables, click the button marked “Send this Report”. AnyHID will send this Report to your device, and report the results of this operation in the Results box.

 

Order Now!