host_hid_generic
Overview
This Host HID example only supports the HID generic device that runs the device HID generic example.
This application implements a simple HID interrupt in-and-out endpoint bi-directional communication.
The application sends one test string to the device. The device receives and sends back the string. The application receives the string and prints it.
System Requirement
Hardware requirements
Mini/micro USB cable
USB A to micro AB cable
Hardware (Tower module/base board, and so on) for a specific device
Personal Computer (PC)
Software requirements
The project path is:
<MCUXpresso_SDK_Install>/boards//usb_examples/usb_host_hid_generic/ / .
The
is Bare Metal or FreeRTOS OS.
Getting Started
Hardware Settings
Set the hardware jumpers (Tower system/base module) to default settings.
Prepare the example
Download the program to the target board.
Power off the target board and power on again.
Make sure to use a USB HUB or an adapter with OTG functionality firstly. Connect devices to the board.
For detailed instructions, see the appropriate board User’s Guide. this example could be tested with the “usb_device_hid_generic” example in pairs.
Run the example
Connect the board UART to the PC and open the COM port in a terminal tool.
Plug in the HUB or HID generic device to the board. The attached information prints out in the terminal.
The following string prints in the terminal.
Test string: This is a USB host HID generic demo. It only supports pid=0x00a2 and vid=0x1fc9 HID device. The host sends this test string to the device. The device echoes the data to the host and the host prints the data.
The following figure is an example for attaching one HID generic device.
Supported Boards
MIMXRT1170-EVKB
EVK-MIMXRT1064
MIMXRT685-AUD-EVK
MIMXRT1060-EVKB
EVK-MIMXRT1010
MIMXRT1040-EVK
FRDM-MCXN947
MIMXRT1024-EVK
LPCXpresso55S36
MIMXRT1060-EVKC
MIMXRT1160-EVK
MIMXRT1180-EVK
EVK-MIMXRT1020
MIMXRT700-EVK
EVK-MIMXRT595
EVK-MIMXRT685
EVKB-IMXRT1050
RD-RW612-BGA
EVK-MIMXRT1015
FRDM-MCXN236
FRDM-RW612