摘要 |
The present invention relates to the field of communications, and discloses a USB device communication and transmission method, device and system, which are used to implement communication between a USB device and an OTG device. A USB device communication method includes: receiving, by a USB device, a device type query message sent by a peer device, where a HID descriptor and a HID report descriptor are added to a driver of the USB device; sending, by the USB device according to the HID descriptor and HID report descriptor, a query response message that carries a HID identifier to the peer device, where the HID identifier is used to enable the peer device to identify the USB device as a HID device; and encoding and encapsulating, by the USB device, data to be sent to generate a HID packet, and sending the HID packet to the peer device, or receiving a HID packet from the peer device, and decapsulating and decoding the received HID packet, where the HID packet carries a data type and data usage manner information. |