Invention Grant
- Patent Title: Debugging method for USB device and USB device
-
Application No.: US16835554Application Date: 2020-03-31
-
Publication No.: US11573871B2Publication Date: 2023-02-07
- Inventor: Hu Jiang , Yun Liao , Huirong Zhang , Zhizhong Ouyang
- Applicant: YEALINK (XIAMEN) NETWORK TECHNOLOGY CO., LTD.
- Applicant Address: CN Fujian
- Assignee: YEALINK (XIAMEN) NETWORK TECHNOLOGY CO., LTD.
- Current Assignee: YEALINK (XIAMEN) NETWORK TECHNOLOGY CO., LTD.
- Current Assignee Address: CN Fujian
- Priority: CN201910381978.X 20190508
- Main IPC: G06F11/22
- IPC: G06F11/22 ; G06F13/42

Abstract:
A debugging method for a Universal Serial Bus (USB) device includes: receiving input information of a terminal through a Human Interface Device (HID) device; when report ID of the input information is a serial port ID, transmitting the input information to a buffer of a virtual serial port Teletype (TTY) device; and extracting the input information of the terminal from the buffer of the virtual serial port TTY device, executing a shell command on the input information, and returning execution result to the terminal through an original path. The method uses a USB interface to implement a HID device, thereby realizing drive-free execution. In addition, use of the endpoint of the HID device can save endpoints needed for additional debugging and driving.
Information query