WO2013139184A1 - 一种usb设备通信方法、设备及系统 - Google Patents

一种usb设备通信方法、设备及系统 Download PDF

Info

Publication number
WO2013139184A1
WO2013139184A1 PCT/CN2013/070885 CN2013070885W WO2013139184A1 WO 2013139184 A1 WO2013139184 A1 WO 2013139184A1 CN 2013070885 W CN2013070885 W CN 2013070885W WO 2013139184 A1 WO2013139184 A1 WO 2013139184A1
Authority
WO
WIPO (PCT)
Prior art keywords
hid
data
data packet
usb device
mode information
Prior art date
Application number
PCT/CN2013/070885
Other languages
English (en)
French (fr)
Inventor
李树彬
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Priority to EP13764346.6A priority Critical patent/EP2790361B1/en
Publication of WO2013139184A1 publication Critical patent/WO2013139184A1/zh
Priority to US14/331,627 priority patent/US9286249B2/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Definitions

  • the invention relates to a Chinese patent application filed on March 21, 2012 by the Chinese Patent Office, the application number is 201210076403.5, and the invention is entitled "a USB device communication method, device and system". Priority is hereby incorporated by reference in its entirety.
  • the present invention relates to the field of communications, and in particular, to a USB device communication transmission method, device, and system. Background technique
  • USB Universal Serial BUS
  • PC Personal Computer
  • USB transmission function can Data transmission between PC and Personal Computer (PC) through USB transmission function, where PC is the master device and the mobile phone is the slave device. Since the PC can be installed with the USB driver for the specific USB port type, they can Normal data transfer.
  • the HID (Human Interface Device) device is a device that can transmit data to and from the peer device without any driver provided by the peer device. All HID devices are driven by the built-in HID device.
  • the peer device application establishes a connection, and the peer device can access the HID device by calling an application layer interface.
  • a PC uses a keyboard, a mouse, a joystick, and the like.
  • OTG On-The-Go
  • Embodiments of the present invention provide a communication method, apparatus, and system for a USB device, in order to implement communication between a non-HID type USB device and an 0TG device.
  • a communication method of a USB device comprising:
  • the USB device receives the device type query message sent by the peer device, and the HID descriptor and the HID report descriptor are added to the driver of the USB device;
  • the USB device sends a query response message carrying the HID identifier to the peer device according to the HID descriptor and the HID report descriptor, where the HID identifier is used to enable the peer device to identify the USB device as a HID device;
  • the USB device After the USB device encodes and encapsulates the data to be transmitted, generates an HID data packet, and sends the HID data packet to the peer device, or receives the HID data packet from the peer device, and receives the HID data packet.
  • the HID data packet is decapsulated and decoded, and the HID data packet carries data type and data usage mode information.
  • a communication method of a USB device comprising:
  • HID data packet Receiving the HID data packet from the USB device, decapsulating and decoding the received HID data packet, or encoding and encapsulating the data to be transmitted, generating an HID data packet, and generating the HID data packet
  • the packet is sent to the USB device, and the HID data packet carries data type and data usage mode information.
  • a USB device comprising at least a first radio frequency module, a first processor module, wherein the first radio frequency module is connected to the first processor module,
  • the first radio frequency module is configured to receive a device type query message sent by the peer device, where the HID descriptor and the HID report descriptor are added to the driver of the USB device.
  • the first processor module for generating a descriptor according to the HID descriptor and the HID report And sending the query response message carrying the HID identifier to the first radio frequency module, where the HID identifier is used to enable the peer device to identify the USB device as an HID device;
  • the first processor module is configured to encode and encapsulate the data to be sent, generate an HID data packet, send the data to the first radio frequency module, or decapsulate and decode the HID data packet received by the first radio frequency module.
  • An 0TG device includes at least a second radio frequency module, a second radio frequency module, and the second radio frequency module is connected to the second processor module,
  • the second radio frequency module is configured to send a device type query message to the USB device, and the HID descriptor and the HID report descriptor are added to the driver of the USB device.
  • the HID data packet for receiving an HID data packet from the USB device, or transmitting the HID data packet to the USB device, the HID data packet carrying a data type and a data usage mode to the second processor module, And receiving an inquiry response message that is sent by the USB device and carrying the HID identifier, and identifying the USB device as an HID device according to the HID identifier;
  • the second processor module is configured to decapsulate and decode the HID data packet received by the second radio frequency module, or encode and encapsulate the data to be sent, and generate an HID data packet, and send the data to the second radio frequency module.
  • a USB device communication system comprising: the above USB device and 0TG device.
  • the USB device communication transmission method, device and system provided by the embodiment of the invention enable the USB device to be virtualized as a HID device by modifying the USB device driver, and respectively set a data processing program in the USB device and the OTG device.
  • the OTG device communicates with the USB device as a master device, which increases the range of use of the USB device.
  • FIG. 2 is a flow chart of another method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a USB device according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an OTG device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a system according to an embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • the embodiment of the invention provides a communication method of a USB device. As shown in FIG. 1, the method includes the following steps:
  • the USB device receives a device type query message sent by the peer device, and the HID descriptor and the HID report descriptor are added to the driver of the USB device.
  • the method of the embodiment is mainly applied to the communication method of the USB device.
  • the peer device When the USB device performs data transmission with other devices, the peer device is required to have a USB driver, otherwise the connection cannot be performed.
  • the OTG With the development of the transmission device, the OTG is supported.
  • the (On-The-Go) function device appears.
  • OTG is mainly used for connection between various devices or mobile devices for data transmission.
  • the OTG device can be used as the master device to support data transmission with HID type slave devices.
  • HID A device is a device that can transmit data to and from a peer device without providing any driver to the peer device.
  • the USB device is modified into an HID device to implement communication with the OTG device.
  • the peer device may be a PC or an OTG device, and the USB device mainly refers to a device that conforms to the USB protocol, such as a USB interface. Mobile phones, MP4 and other equipment.
  • the communication between the OTG device and the USB device is taken as an example for specific description.
  • the OTG device When the USB device is connected to the OTG device through the data line, the OTG device performs a device type query to query whether the type of the connected peer device is a device type capable of communication. Therefore, the OTG device first sends the device to the peer device. The type query message responds after the USB device receives the device type query message generated by the OTG device.
  • the USB protocol is a set of descriptors of the fixed structure that describe the device functions and attributes defined by the USB device, including standard descriptors. (ie device descriptors), configuration descriptors, interface descriptors, endpoint descriptors, and string descriptors.
  • the USB device reports the various attributes of the device to the USB host through these descriptors, and the host recognizes, configures, and provides the corresponding client driver by accessing the descriptors. Since the HID device supports the descriptor of the USB device, in order to enable the USB device to communicate with the non-HID type device, an HID descriptor and a HID report descriptor are added to the driver of the USB device, so that the USB device protocol is modified to HID.
  • the device protocol where the HID descriptor includes information of the HID version number information, country code, advertisement descriptor, or physical descriptor, including nine basic fields, and the specific structure is as shown in Table 1: Offset field word female description
  • bcdHID is the version number of the HID specification followed by the descriptor. This value is 4 16-bit BCD format characters.
  • bCountryCode is the ID of the country of the hardware device. If not specified, this field is 0.
  • bDescriptorType is the type of descriptor attached to the HID descriptor. Each HID device supports at least one report descriptor.
  • the HID report descriptor is a format describing data exchange between a HID device and a peer device, and the format enables the peer device to decapsulate the HID data packet by following the same rules.
  • the composition of the HID report descriptor is a collection of all data items (Items). The data items are divided into three categories: main items, global items, and area items. The input (output ), output (output ), and feature (feature) of the main project are used to indicate the type of data in the report. These are the main items in the report descriptor. Other items are used to modify this. Three items. In a report descriptor, the input, output, and characteristics indicate the length of the data transmitted by the HID device, the data type, and the like.
  • the input indicates the data mode in which the HID device operates to input to the peer device.
  • Output Indicates the data format that is output by the peer device to the HID device.
  • Feature It is used to describe the configuration information sent by the peer device to the HID device.
  • the peer device can send and receive through SetReport and GetReport.
  • the global project is responsible for describing the data items defined in the report descriptor, indicating some of its characteristics, such as the maximum and minimum values of the data, the size and count of the report.
  • the regional project defines additional characteristics of the data in the report descriptor, which is limited to the current primary data item and will be rendered inoperative when a new primary data item is encountered. Therefore, the peer device, that is, the OTG device, after receiving the HID data packet sent by the USB device, can process the HID data and send the data to the HID device.
  • the USB device sends a query response message carrying the HID identifier to the peer device according to the HID descriptor and the HID report descriptor, where the HID identifier is used to enable the peer device to identify the USB device as an HID device.
  • the HID descriptor and the HID report descriptor are added to the driver of the USB device, so the USB device according to the HID descriptor And the HID report descriptor sends a query response message carrying the HID identifier to the OTG device.
  • the HID identifier may be a code value set in one byte.
  • the class code of the HID device class is 03H, that is, the blnterfaceClass field of the interface descriptor may be set to 03H, specifically, when the USB device is defined as HID.
  • bDeviceClass field of the device descriptor is
  • the value of the bDeviceSubClass field is 0, and the blnterfaceClass field value of the interface descriptor is 03, indicating that the interface of the device is a HID device type.
  • the USB device sends a query response message carrying the HID identifier to the peer device after receiving the device type query message sent by the peer device, where the identifier may be set in the A byte in the message is used to identify that the USB device is a HID device.
  • the OTG device receives the query response message carrying the HID identifier, the OTG device identifies the USB device as an HID device, thereby performing normal data packet transmission. And so on.
  • USB device After the USB device encodes and encapsulates the data to be sent, generates an HID data packet, and sends the HID data packet to the peer device, or receives the HID data packet from the peer device, and The received HID data packet is decapsulated and decoded, and the HID data packet carries data type and data usage mode information.
  • the HID data packet refers to a data packet having a HID transmission data format, and the HID data packet carries data type and data usage mode information.
  • the data transmission is started.
  • the data is transmitted through the data packet.
  • the data transmission may be divided into two modes.
  • the first type may be The OTG device initiates and the USB device receives.
  • the second mode can be initiated by the USB device and received by the OTG device.
  • the first method is initiated by a USB device, and the OTG device is received as an example:
  • the USB device encodes and encapsulates the data to be transmitted
  • the HID data packet is generated, and the HID data packet is sent to the peer device (OTG device).
  • the HID data packet carries data type and data usage mode information.
  • the encoding and encapsulating the data to be sent includes: first, the USB device encodes the data to be sent, and generates a first data packet carrying the data type and the data usage mode information;
  • the USB device encapsulates the first data packet according to the HID report descriptor added in the driver of the USB device, and generates an HID data packet carrying the data type and the data usage mode information.
  • the HID data packet carries the data type and the data usage mode information, so that after receiving the HID data packet, the OTG device decodes the HID data packet, and obtains the carried data type and data usage mode information, and according to the data type.
  • the data usage mode information the data in the HID data packet is stored or applied, and it should be noted that the data in the HID data packet is stored.
  • APK ApplicationPackage, Android installation package
  • the specific application may be the viewing of the image data, the playing of the audio file, etc., but is not limited thereto, and may be set according to actual application requirements.
  • the HID data packet is generated, and the HID data packet is sent to the peer device (OTG device), and the method further includes: to the peer device (OTG device) transmits a data transmission request message, and starts a process of encoding and encapsulating the data to be transmitted.
  • the USB device may send a data transmission request message to the OTG device, and start the waiting
  • the process of encoding and encapsulating the data which can reasonably start the process of data encoding and encapsulation of the USB device, so that the process is not needed In the unactivated state, the power consumption of the USB device is effectively reduced, and the memory of the USB device is effectively saved.
  • the second method is initiated by the OTG device and the USB device is received as an example:
  • the USB device receives the HID data packet from the peer device (OTG device), and decapsulates and decodes the received HID data packet, where the HID data packet carries data type and data usage mode information. .
  • the decapsulating and decoding the received HID data packet includes:
  • the second data packet may be stored or applied according to the data type and the data usage mode information.
  • the HID descriptor and the HID report descriptor are added to the driver of the USB device, so the USB device can decode the acquired HID data packet, obtain the data packet information, and according to the data packet information.
  • the type of the HID data packet and the data usage mode information are stored or applied to the received HID data packet.
  • the specific application may be the viewing of the image data, the playing of the audio file, etc., but is not limited thereto, and may be set according to actual application requirements.
  • the method before receiving the HID data packet from the peer device, and before decapsulating and decoding the received HID data packet, the method further includes: After detecting the data transmission request message sent by the peer device, starting a process of decapsulating and decoding the HID data packet. After the USB device and the OTG device complete the device type query message and send, and before decapsulating and decoding the received HID data packet, the data transmission request message sent by the OTG device may be detected. Thereafter, the process of decapsulating and decoding the HID packet is initiated.
  • the method can reasonably start the process of data decapsulation and decoding of the USB device, so that the process is in an un-started state when not needed, effectively reducing the power consumption of the USB device, and effectively saving the memory of the USB device. .
  • the embodiment of the present invention further provides a communication side of another USB device. As shown in FIG. 2, the method includes the following steps:
  • the method in the embodiment of the present invention is mainly applied to a communication method of a USB device.
  • the USB device performs data transmission with other devices, the peer device is required to have a USB driver, otherwise the connection cannot be performed.
  • OTG-enabled devices appear.
  • OTG is mainly used for connection between various devices or mobile devices for data transmission.
  • OTG devices can be used as master devices to support data transmission with HID-type slave devices.
  • HID devices are not. Any device that needs to provide any driver to the peer device for data transmission with the peer device. All HID devices are connected with the peer device application through the HID device driver. The peer device can call the application layer interface. The HID device is accessed. Therefore, in the embodiment of the present invention, the USB device is modified into an HID device to implement communication with the OTG device.
  • the peer device when communicating with the peer device, the peer device may be a PC or an OTG device, and the USB device mainly refers to a device that conforms to the USB protocol, such as a USB interface. Mobile phones, MP4 and other equipment.
  • the communication between the OTG device and the USB device is taken as an example for specific description.
  • the OTG device When the USB device is connected to the OTG device through the USB data cable, the OTG device performs a device type query to query whether the type of the connected peer device is a device type capable of communication. Therefore, the OTG device first sends the device to the USB device. Type query message.
  • S202 Receive an inquiry response message that is sent by the USB device and carry the HID identifier, and identify the USB device as an HID device according to the HID identifier.
  • the USB device after the USB device is modified into the HID device, the USB device sends a query response message carrying the HID identifier to the peer device after receiving the device type query message sent by the OTG device, where the identifier is sent. It may be a byte that is set in the message, and is used to identify that the USB device is an HID device.
  • the OTG device receives the query response message carrying the HID identifier, the USB device is identified as an HID device.
  • S203 Receive an HID data packet from the USB device, decapsulate and decode the received HID data packet, or encode and encapsulate the data to be sent, generate an HID data packet, and generate the HID data packet. Sending a packet to the USB device, where the HID data packet carries data type and data usage mode information
  • the HID data packet refers to a data packet having a HID transmission data format, and the HID data packet carries data type and data usage mode information.
  • the data transmission is started.
  • the data is transmitted through the data packet.
  • the data transmission may be divided into two modes.
  • the first type may be The OTG device initiates and the USB device receives.
  • the second mode can be initiated by the USB device and received by the OTG device.
  • the first method is initiated by a USB device, and the OTG device is received as an example:
  • the OTG device receives the HID data packet from the USB device, and decapsulates and decodes the received HID data packet.
  • the HID data packet carries data type and data usage mode information. Decapsulating and decoding the received HID data packet includes: First, the OTG device decapsulates the HID data packet to obtain a third data packet carrying data type and data usage mode information.
  • the OTG device decodes the third data packet carrying the data type and the data usage mode information, and obtains the data type and data usage mode information of the third data packet.
  • the method further includes: storing or applying the received HID data packet according to the data type and the data usage mode information.
  • the HID data packet carries data type and data usage mode information, so that after receiving the HID data packet, the OTG device searches for data in the HID data packet according to the data type and data usage mode information in the HID data packet.
  • an exemplary application may be a view of image data, a play of an audio file, or the like, but is not limited thereto, and may be set according to actual application requirements.
  • the method before receiving the HID data packet from the USB device, and before decapsulating and decoding the received HID data packet, the method further includes:
  • the process of decapsulating and decoding the HID data packet is started. After the OTG device and the USB device complete the device type query message and send, and before decapsulating and decoding the received HID data packet, the data transmission request message sent by the USB device may be detected. Thereafter, the process of decapsulating and decoding the HID packet is initiated.
  • the method can reasonably start the process of data decapsulation and decoding of the OTG device, so that the process is in an un-started state when not needed, effectively reducing the power consumption of the OTG device, and effectively saving the memory of the OTG device. .
  • the second method is initiated by a USB device, and the OTG device is received as an example: After the OTG device encodes and encapsulates the transmission data, it generates an HID data packet, and sends the HID data packet to the USB device, where the HID data packet carries data type and data usage mode information.
  • the encoding and encapsulating the data to be sent includes:
  • the OTG device encodes the data packet to be sent, and generates a fourth data packet carrying the data type and the data usage mode information;
  • the OTG device encapsulates the fourth data packet to generate an HID data packet carrying data type and data usage mode information.
  • the OTG device processes the function in the OTG device, and after the fourth data packet is encapsulated, the fourth data packet carries the data type and data usage mode information, and is sent to the USB device to
  • the USB device can decode the acquired HID data packet, obtain the data type and data usage mode information, and store or apply the received HID data packet according to the data type and the data usage mode information. It should be noted that it is done on the standby software, such as the APK program. Specifically, the data in the HID data packet is stored or applied. For example, the specific application may be the viewing of the image data, or the playing of the audio file, but is not limited thereto, and may be based on actual conditions. The app needs to be set up.
  • the HID data packet is generated, and the HID data packet is sent to the USB device, and the method further includes:
  • the OTG device may send a data transmission request message to the USB device, and start the waiting for Sending the encoding and encapsulation process of the data, the method can reasonably start the data encoding and encapsulation process of the OTG device, so that the process is not needed In the un-started state, the power consumption of the OTG device is effectively reduced, and the memory of the OTG device is effectively saved.
  • USB device communication transmission method provided by the embodiment of the present invention, the USB device driver is modified to make the USB device virtual as the HID device, and the data processing program is set in the USB device and the OTG device respectively, and the OTG device is implemented as The communication between the master device and the USB device increases the range of use of the USB device.
  • the embodiment of the present invention further provides a USB device 300, including at least: a first radio frequency module 301, a first processor module 302, the first radio frequency module 301 and the first processor module.
  • the first radio frequency module 301 is configured to receive a device type query message sent by the peer device, where the HID descriptor and the HID report descriptor are added in the driver of the USB device, and the HID data packet is sent.
  • the first processor module 302 is configured to use the HID The descriptor and the HID report descriptor send a query response message carrying the HID identifier to the peer device, where the HID identifier is used to enable the peer device to identify the USB device as an HID device;
  • the module 302 is configured to encode and encapsulate the data to be sent, generate an HID data packet, send the data to the first radio frequency module, or decapsulate and decompose the HID data packet received by the first radio frequency module. code.
  • the first processor module 302 when the data to be transmitted is encoded and encapsulated to generate an HID data packet, the first processor module 302 is specifically configured to encode the data to be sent, and generate information carrying the data type and the data usage mode. First data packet; And encapsulating the first data packet according to an HID report descriptor added in a driver of the USB device, and generating an HID data packet carrying data type and data usage mode information.
  • the first processor module 302 is specifically configured to receive the received HID report descriptor according to the driver of the USB device. Deleting the HID data packet to obtain a second data packet carrying data type and data usage mode information;
  • the first processor module 302 is further configured to store or apply the second data packet according to the data type and data usage mode information.
  • the first processor module 302 is further configured to send a data transmission request message to the peer device, and start a process of encoding and encapsulating the data to be sent;
  • an embodiment of the present invention further provides an OTG device 400, which includes at least a second radio frequency module 401, a second processor module 402, and the second radio frequency module 401 and the second processor module 402. Connected,
  • the second radio frequency module 401 is configured to send a device type query message to the USB device, and the HID descriptor and the HID report descriptor are added to the driver of the USB device.
  • the second processor module 402. The method is configured to receive a query response message that is sent by a USB device and that carries the HID identifier, and identify the USB device as an HID device according to the HID identifier.
  • the second processor module 402 is configured to decapsulate and decode the HID data packet received by the second radio frequency module, or encode and encapsulate the data to be sent, and generate an HID data packet, and then send the data to the second radio frequency Module.
  • the second processor module 402 when the received HID data packet is decapsulated and decoded, the second processor module 402 is specifically configured to decapsulate the HID data packet to obtain a data type carried. And a third data packet of data usage mode information;
  • the second processor module 402 is specifically configured to encode the data packet to be sent, and generate a fourth data packet carrying the data type and the data usage mode information. ;
  • the second processor module is further configured to store or apply the received HID data packet according to the data type and data usage mode information.
  • the second processor module is further configured to: after detecting a data transmission request message sent by the USB device, start a process of decapsulating and decoding the HID data packet;
  • an embodiment of the present invention further provides a USB device communication system, including: a USB device 51 and an OTG device 52, wherein the USB device and device structure and the function and structure of the OTG device and the device on the device The structure is the same and will not be described here.
  • the USB device communication transmission device and system provided by the embodiment of the present invention, by modifying the USB device driver, the USB device is virtualized as a HID device, and respectively in the USB device and The data processing program is set in the OTG device, and the OTG device is used as a communication between the host device and the USB device, thereby increasing the use range of the USB device.
  • a person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
  • a medium that can store program codes such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Systems (AREA)

Abstract

本发明公开了一种USB设备通信传输方法、设备及系统,涉及通讯领域,用于实现USB设备与OTG设备之间通信。其中,一种USB设备的通信方法,包括:USB设备接收对端设备发送的设备类型查询消息,所述USB设备的驱动程序中增设有HID描述符和HID报告描述符;USB设备根据所述HID描述符和HID报告描述符发送携带有HID标识的查询响应消息至对端设备,所述HID标识用于使所述对端设备识别所述USB设备为HID设备;USB设备对待发送数据进行编码和封装后,生成HID数据包,并将所述HID数据包发送到所述对端设备,或者接收来自所述对端设备的所述HID数据包,并对接收到的所述HID数据包进行解封装和解码,所述HID数据包携带有数据类型和数据使用方式信息。

Description

一种 USB设备通信方法、 设备及系统 本申请要求于 2012年 03月 21 日提交中国专利局、 申请号为 201210076403.5、 发明名称为 "一种 USB设备通信方法、 设备及系统" 的中 国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通讯领域, 尤其涉及一种 USB设备通信传输方法、 设 备及系统。 背景技术
目前, 许多数据传输设备都支持 USB ( Universal Serial BUS, 通用串行 总线)传输功能, USB设备与其他设备进行数据传输, 则要求对端设备有 USB驱动, 例如, 支持 USB传输功能的手机, 可以通过 USB传输功能与 PC ( Personal Computer, 个人计算机)之间进行数据传输, 其中, PC为主 设备, 手机为从设备, 由于 PC上能够针对具体 USB端口类型, 安装 USB 驱动, 所以他们之间可以正常数据传输。
HID ( Human Interface Device, 人体学输入设备)设备是一种不需要对 端设备提供任何驱动, 就能与对端设备进行数据传输的设备, 所有的 HID 设备都是通过自带的 HID设备驱动与对端设备应用建立联系, 对端设备可 以通过调用应用层接口访问 HID设备。 例如, PC使用键盘、 鼠标和游戏杆 等。
但是随着传输设备的发展, 开始有支持 OTG ( On-The-Go ) 功能的设 备出现, OTG主要应用于各种不同的设备或移动设备间的联接, 进行数据 传输。其中, 大多数 OTG设备都能够作为主设备支持与 HID类型的从设备 进行数据传输,但是, 现有技术中, 大多 USB设备都是非 HID类型的 USB 从设备, 因此, 无法与 OTG设备直接进行通信。 发明内容
本发明的实施例提供 USB设备的通信方法、 装置及系统, 为了实现非 HID类型的 USB设备与 0TG设备之间通信。
为达到上述目的, 本发明的实施例采用如下技术方案:
一种 USB设备的通信方法, 包括:
USB设备接收对端设备发送的设备类型查询消息,所述 USB设备的驱动 程序中增设有 HID描述符和 HID报告描述符;
USB设备根据所述 HID描述符和 HID报告描述符发送携带有 HID标识的 查询响应消息至对端设备,所述 HID标识用于使所述对端设备识别所述 USB 设备为 HID设备;
USB设备对待发送数据进行编码和封装后, 生成 HID数据包, 并将所述 HID数据包发送到所述对端设备,或者接收来自所述对端设备的所述 HID数 据包, 并对接收到的所述 HID数据包进行解封装和解码, 所述 HID数据包 携带有数据类型和数据使用方式信息。
一种 USB设备的通信方法, 包括:
向 USB设备发送设备类型查询消息, 所述 USB设备的驱动程序中增设 有 HID描述符和 HID 告描述符;
接收 USB设备发送的携带有 HID标识的查询响应消息,并根据所述 HID 标识识别所述 USB设备为 HID设备;
接收来自所述 USB设备的所述 H I D数据包, 并对接收到的所述 H I D数 据包进行解封装和解码, 或者对待发送数据进行编码和封装后, 生成 HID 数据包, 并将所述 H I D数据包发送到所述 USB设备, 所述 H I D数据包携带 有数据类型和数据使用方式信息。
一种 USB设备, 至少包括第一射频模块, 第一处理器模块, 所述第一 射频模块与所述第一处理器模块相连,
所述第一射频模块, 用于接收对端设备发送的设备类型查询消息, 所 述 USB设备的驱动程序中增设有 HID描述符和 HID报告描述符,
以及用于将 HID数据包发送到所述对端设备, 或接收来自所述对端设 备的 HID数据包, 所述 HID数据包携带有数据类型和数据使用方式信息; 所述第一处理器模块, 用于根据所述 HID描述符和 HID报告描述符生 成携带有 HID标识的查询响应消息后发送给所述第一射频模块, 所述 HID 标识用于使所述对端设备识别所述 USB设备为 HID设备;
所述第一处理器模块, 用于对待发送数据进行编码和封装, 并生成 HID 数据包后发送给第一射频模块, 或者对所述第一射频模块接收到的 HID数 据包进行解封装和解码。
一种 0TG设备, 至少包括第二射频模块, 第二处理器模块, 所述第二 射频模块与所述第二处理器模块相连,
所述第二射频模块, 用于向 USB设备发送的设备类型查询消息, 所述 USB设备的驱动程序中增设有 HID描述符和 HID报告描述符,
以及用于接收来自所述 USB设备的 HID数据包, 或将所述 HID数据包 发送到所述 USB设备, 所述 HID数据包携带有数据类型和数据使用方式信 所述第二处理器模块, 用于接收 USB设备发送的携带有 HID标识的查 询响应消息, 并根据所述 HID标识识别所述 USB设备为 HID设备;
所述第二处理器模块, 用于对所述第二射频模块接收到的 HID数据包 进行解封装和解码, 或者对待发送数据进行编码和封装, 并生成 HID数据 包后发送给第二射频模块。
一种 USB设备通信系统, 包括: 上述的 USB设备和 0TG设备。
本发明实施例提供的一种 USB设备通信传输方法、 设备及系统, 通过 对 USB设备驱动程序进行修改, 使 USB设备虚拟为 HID设备, 并分别在 USB设备与 OTG设备中设置数据处理程序, 实现了 OTG设备作为主设备 与 USB设备与之间进行通信, 增大了 USB设备的使用范围。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附 图。 图 1为本发明实施例的一种方法流程图;
图 2为本发明实施例的另一种方法流程图;
图 3为本发明实施例的一种 USB设备结构示意图;
图 4为本发明实施例的一种 OTG设备结构示意图;
图 5为本发明实施例的系统结构示意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。
本发明实施例提供了一种 USB设备的通信方法, 如图 1所示, 该方法包 括以下步骤:
S101、 USB设备接收对端设备发送的设备类型查询消息, 所述 USB设 备的驱动程序中增设有 HID描述符和 HID报告描述符。 本实施例的方法主要应用于 USB设备的通信方法, USB设备在与其他设 备进行数据传输时, 要求对端设备有 USB驱动, 否则无法进行连接, 在随 着传输设备的发展, 开始有支持 OTG ( On-The-Go )功能的设备出现, OTG 主要应用于各种不同的设备或移动设备间的联接, 进行数据传输, OTG设 备能够作为主设备支持与 HID类型的从设备进行数据传输, HID设备是一种 不需要对端设备提供任何驱动, 就能与对端设备进行数据传输的设备, 所 有 HID设备都是通过自带的 HID设备驱动与对端设备应用建立联系, 对端设 备可以通过调用应用层接口访问 HID设备, 因此, 在本发明实施例中, 将 USB设备修改为 HID设备, 实现与 OTG设备之间进行通信。 需要说明的是 USB设备被修改为 HID设备后, 与对端设备进行通信时, 对端设备可以是 PC机, 也可以是 OTG设备, USB设备主要指符合 USB协议 传输的设备, 例如 USB接口的手机, MP4等设备。 在本发明实施例中, 以 OTG设备与 USB设备进行通信为例, 进行具体说明。 当 USB设备与 OTG设备通过数据线进行连接时, OTG设备进行设备类 型的查询, 查询所连接的对端设备的类型是否为能够进行通信的设备类型, 所以, OTG设备先向对端设备发送设备类型查询消息, 在 USB设备接收到 OTG设备发生的设备类型查询消息后, 进行响应。 在本发明实施例中, USB 设备与其他设备进行通信时, 是按照 USB协 议进行的, USB协议为 USB设备定义的一套描述设备功能和属性的有固定结 构的描述符, 包括标准的描述符(即设备描述符) 、 配置描述符、 接口描 述符、端点描述符和字符串描述符等。 USB设备通过这些描述符向 USB主机 汇报设备的各种各样属性, 主机通过对这些描述符的访问对设备进行类型 识别、 配置并为其提供相应的客户端驱动程序。 由于 HID设备支持 USB设备 的描述符, 为了使得 USB设备能够与非 HID类型的设备进行通信, 在所述 USB设备的驱动程序中增设 HID描述符和 HID报告描述符, 使得 USB设备协 议修改为 HID设备协议, 其中, HID描述符包含 HID的版本号信息、 国家代码、 告描述符或物 理描述符的信息, 包括 9个基本字段, 具体结构如表 1所示: 偏移 字段 字 雌 描述
里 节数 类型
0 bLength 1 数字 此描述表的字 节数
1 bDecriptorType 1 常量 描述符的类型 (此处应为 0x21 , 即 HID描述符 )
2 bcdHID 2 BCD HID规范版本 码
4 bCountryCode 1 数字 硬件设备所在 国家的国家代码
5 bNumDescriptors 1 数字 类别描述符数 目 (至少有一个报 表描述符 )
6 bDescriptorType 1 常量 类别描述符的 类型
7 WDescriptorLength 2 数字 报表描述的总 长度 表 1、 HID描述符的结构 其中, bcdHID是描述符所遵循的 HID规范的版本号码, 此数值是 4个 16 位的 BCD格式字符。 bCountryCode是硬件设备的国家的识别码, 如果不说明, 该字段为 0。 bDescriptorType是 HID描述符附属的描述符的类型, 每一个 HID设备都 至少支持一个报表描述符。
HID报告描述符是描述一个 HID设备与对端设备之间进行数据交换的 格式, 该格式使得使对端设备能遵循通相同的规则解封装 HID数据包。 HID 报告描述符的组成, 是所有数据项目 (Item )的集合, 数据项目分成三种类 别: 主项目, 全局项目和区域项目。 主项目中的输入( input ),输出 ( output ),特征( feature )三个卷标用来 表示报告中数据的种类, 这些是报告描述符中最主要的项目, 其他项目都 是用来修饰这三种项目。 在一个报告描述符中, 输入、 输出和特征指明了 HID设备传输数据的长度、 数据类型等信息, 具体的, 输入: 表示 HID设备操作输入到对端设备的数据模式。 输出: 表示由对端设备输出到 HID设备操作的数据格式。 特征: 用于描述对端设备发向 HID设备的配置信息,对端设备可以通过 SetReport和 GetReport来发送和接收。 全局项目负责对报告描述符中定义的数据项进行描述, 指明其一些特 性, 如数据的最大值和最小值、 报告的大小和计数。 区域项目定义了报告描述符中的数据的其他特点, 它的作用仅限于当 前主数据项内, 当遇到新的主数据项时, 它将失去作用。 因此, 对端设备即 OTG设备, 在接收到 USB设备发送的 HID数据包后, 可以对 HID数据进行处理, 以及向 HID设备发送数据。
S102、 USB设备根据所述 HID描述符和 HID报告描述符发送携带有 HID 标识的查询响应消息至对端设备,所述 HID标识用于使所述对端设备识别所 述 USB设备为 HID设备。 在本发明实施例中, 为了使得 USB 设备能够与支持 HID类型的设备进 行通信, 在所述 USB设备的驱动程序中增设 HID描述符和 HID报告描述符, 所以, USB设备根据所述 HID描述符和 HID报告描述符发送携带有 HID标识 的查询响应消息至 OTG设备。 所述 HID标识可以是设置在一个字节中的代码值, 例如, HID的设备类 的类代码为 03H, 即可以将接口描述符的 blnterfaceClass字段设为 03H, 具体 的, 当定义 USB设备为 HID设备时, 其设备描述符中典型字段取值如下: bDeviceClass=0; bDeviceSubClass=0; 接口描述符:
blnterfaceClass =03 H; bInterfaceSubClass=0或 1; 对于一个 HID设备, 设备描述符的 bDeviceClass字段与
bDeviceSubClass字段的值为 0,接口描述符的 blnterfaceClass字段值为 03,表 示该设备的接口是 HID设备类型。 将 USB设备被修改为 HID设备后, USB 设备接收到对端设备发送的 设备类型查询消息后, 向所述对端设备发送携带有 HID标识的查询响应消 息, 所述标识可以是设置于所述消息中的一个字节, 用于标识所述 USB设 备为 HID设备, 当 OTG设备接收到该携带有 HID标识的查询响应消息时, 识 别所述 USB设备为 HID设备, 从而正常进行数据包的发送等过程。
S103、 USB设备对待发送数据进行编码和封装后, 生成 HID数据包, 并 将所述 HID数据包发送到所述对端设备,或者接收来自所述对端设备的所述 HID数据包, 并对接收到的所述 HID数据包进行解封装和解码, 所述 HID数 据包携带有数据类型和数据使用方式信息。
在本发明实施例中, HID数据包是指具有 HID发送数据格式的数据包, 所述 HID数据包携带有数据类型和数据使用方式信息。
当 USB设备与 OTG设备完成识别过程后, 就开始数据的传输, 在本发 明实施例中, 数据是通过数据包进行传输的, 具体的, 数据传输可以分为 两种方式, 第一种可以是 OTG设备发起, USB设备接收, 第二种方式可以 是 USB设备发起, OTG设备接收。
第一种方式, 以 USB设备发起, OTG设备接收为例说明: USB设备对待发送数据进行编码和封装后, 生成 HID数据包, 并将所述 HID数据包发送到所述对端设备(OTG设备)所述 HID数据包携带有数据类 型和数据使用方式信息。 所述对待发送数据进行编码和封装包括: 首先, USB设备对待发送数据进行编码, 生成携带有数据类型和数据 使用方式信息的第一数据包;
然后, USB设备根据所述 USB设备的驱动程序中增设的 HID报告描述符 对所述第一数据包进行封装, 生成携带有数据类型和数据使用方式信息的 HID数据包。 其中, HID数据包携带有数据类型和数据使用方式信息, 以使得 OTG 设备在接收到所述 HID数据包后, 解码 HID数据包后, 获取携带的数据类型 和数据使用方式信息, 并根据数据类型和数据使用方式信息,对 HID数据包 中的数据进行存储或应用, 需要说明的是,对 HID数据包中的数据进行存储
APK(AndroidPackage, 安卓安装包)程序。 示例性的, 具体的应用可以是对 图像数据的查看, 也可以是对音频文件的播放等, 但是不仅限于此, 还可 以根据实际的应用需要进行设置。
优选的, 所述 USB设备对待发送数据进行编码和封装后, 生成 HID数据 包, 并将所述 HID数据包发送到所述对端设备(OTG设备)前, 还包括: 向所述对端设备(OTG设备)发送数据传输请求消息, 并启动所述待 发送数据的编码和封装的进程。 当所述 USB设备与 OTG设备在完成设备类型查询消息与发送后, 且发 送 HID数据到所述 OTG设备前,所述 USB设备可以向所述 OTG设备发送数据 传输请求消息, 并启动所述待发送数据的编码和封装的进程, 该方法可以 合理的启动 USB设备的数据编码和封装的进程, 使得该进程在不需要时处 于未启动状态,有效的降低了 USB设备的功耗,并且有效的节约了所述 USB 设备的内存。
第二种方式, 以 OTG设备发起, USB设备接收为例说明:
USB设备接收来自所述对端设备 ( OTG设备 )的所述 HID数据包, 并对 接收到的所述 HID数据包进行解封装和解码, 所述 HID数据包携带有数据类 型和数据使用方式信息。具体的, 所述对接收到的所述 HID数据包进行解封 装和解码包括:
根据所述 USB设备的驱动程序中增设的 HID报告描述符,对接收到的所 述 HID数据包进行解封装,获得携带有数据类型和数据使用方式信息的第二 数据包;
对所述携带有数据类型和数据使用方式信息的第二数据包进行解码, 获得所述第二数据包的数据类型和数据使用方式信息。
优选的, 当所述获得所述第二数据包的数据类型和数据使用方式信息 后, 还可以根据所述数据类型和数据使用方式信息, 对所述第二数据包进 行存储或应用。
由于所述 USB设备的驱动程序中增设 HID描述符和 HID报告描述符 , 所以, 所述 USB设备可以对获取的 HID数据包进行解码, 获取到所述数据包 信息, 并根据所述数据包信息中的 HID数据包的类型和数据使用方式信息, 对接收到的所述 HID数据包进行存储或应用。 示例性的, 具体的应用可以是 对图像数据的查看, 也可以是对音频文件的播放等, 但是不仅限于此, 还 可以根据实际的应用需要进行设置。
优选的, 所述接收来自所述对端设备的 HID数据包, 并对接收到的所述 HID数据包进行解封装和解码前, 还包括: 检测到所述对端设备发送的所述数据传输请求消息后, 启动所述 HID 数据包的解封装和解码的进程。 当所述 USB设备与 OTG设备在完成设备类型查询消息与发送后, 并且 对接收到的所述 HID数据包进行解封装和解码前,可以检测到所述 OTG设备 发送的所述数据传输请求消息后,启动所述 HID数据包的解封装和解码的进 程。 该方法可以合理的启动 USB设备的数据解封装和解码的进程, 使得该 进程在不需要时处于未启动状态, 有效的降低了 USB设备的功耗, 并且有 效的节约了所述 USB设备的内存。 本发明实施例还提供另一种 USB设备的通信方发, 如图 2所示, 该方法 包括以下步骤:
S201、 向 USB设备发送设备类型查询消息, 所述 USB设备的驱动程序 中增设有 HID描述符和 HID报告描述符。 在本发明实施例的方法主要应用于 USB设备的通信方法, USB设备在 与其他设备进行数据传输时, 要求对端设备有 USB驱动, 否则无法进行连 接, 在随着传输设备的发展, 开始有支持 OTG功能的设备出现, OTG主要 应用于各种不同的设备或移动设备间的联接, 进行数据传输, OTG设备能 够作为主设备支持与 HID类型的从设备进行数据传输, HID设备是一种不需 要对端设备提供任何驱动, 就能与对端设备进行数据传输的设备, 所有的 HID设备都是通过自带的 HID设备驱动与对端设备应用建立联系, 对端设备 可以通过调用应用层接口访问 HID设备, 因此, 在本发明实施例中, 将 USB 设备修改为 HID设备, 实现与 OTG设备之间进行通信。
需要说明的是 USB设备被修改为 HID设备后, 与对端设备进行通信时, 对端设备可以是 PC机, 也可以是 OTG设备, USB设备主要指符合 USB协议 传输的设备, 例如 USB接口的手机, MP4等设备。 在本发明实施例中, 以 OTG设备与 USB设备进行通信为例, 进行具体说明。 当 USB设备与 OTG设备通过 USB数据线进行连接时, OTG设备进行设 备类型的查询, 查询所连接的对端设备的类型是否为能够进行通信的设备 类型, 所以, OTG设备先向 USB设备发送设备类型查询消息。
5202、接收 USB设备发送的携带有 HID标识的查询响应消息, 并根据所 述 HID标识识别所述 USB设备为 HID设备。 在本发明实施例中, 将 USB 设备被修改为 HID设备后, USB 设备接 收到 OTG设备发送的设备类型查询消息后,向所述对端设备发送携带有 HID 标识的查询响应消息, 所述标识可以是设置于所述消息中的一个字节, 用 于标识所述 USB设备为 HID设备, 当 OTG设备接收到该携带有 HID标识的查 询响应消息时, 识别所述 USB设备为 HID设备。
5203、 接收来自所述 USB设备的 HID数据包, 并对接收到的所述 HID数 据包进行解封装和解码, 或者对待发送数据进行编码和封装后, 生成 HID 数据包, 并将所述 HID数据包发送到所述 USB设备, 所述 HID数据包携带有 数据类型和数据使用方式信息
在本发明实施例中, HID数据包是指具有 HID发送数据格式的数据包, 所述 HID数据包携带有数据类型和数据使用方式信息。 当 USB设备与 OTG设备完成识别过程后, 就开始数据的传输, 在本发 明实施例中, 数据是通过数据包进行传输的, 具体的, 数据传输可以分为 两种方式, 第一种可以是 OTG设备发起, USB设备接收, 第二种方式可以 是 USB设备发起, OTG设备接收。 第一种方式, 以 USB设备发起, OTG设备接收为例说明:
OTG设备接收来自所述 USB设备的所述 HID数据包,并对接收到的所述 HID数据包进行解封装和解码所述 HID数据包携带有数据类型和数据使用 方式信息。 所述对接收到的所述 HID数据包进行解封装和解码包括: 首先, OTG设备对所述 HID数据包进行解封装,获得携带有数据类型和 数据使用方式信息的第三数据包。
然后, OTG设备对所述携带有数据类型和数据使用方式信息的第三数 据包进行解码, 获得所述第三数据包的数据类型和数据使用方式信息。
优选的, 所述获得所述第三数据包的数据类型和数据使用方式信息后, 还包括: 根据所述数据类型和数据使用方式信息,对接收到的所述 HID数据包进 行存储或应用。
其中, HID数据包携带有数据类型和数据使用方式信息, 以使得 OTG 设备在接收到所述 HID数据包后, 根据 HID数据包中的数据类型和数据使用 方式信息, 对 HID数据包中的数据进行存储或应用, 示例性的, 具体的应用 可以是对图像数据的查看, 也可以是对音频文件的播放等, 但是不仅限于 此, 还可以根据实际的应用需要进行设置。 优选的, 所述接收来自所述 USB设备的所述 HID数据包, 并对接收到的 所述 HID数据包进行解封装和解码前, 还包括:
检测到所述 USB设备发送的数据传输请求消息后,启动所述 HID数据包 的解封装和解码的进程。 当所述 OTG设备与 USB设备在完成设备类型查询消息与发送后, 并且 对接收到的所述 HID数据包进行解封装和解码前,可以检测到所述 USB设备 发送的所述数据传输请求消息后,启动所述 HID数据包的解封装和解码的进 程。 该方法可以合理的启动 OTG设备的数据解封装和解码的进程, 使得该 进程在不需要时处于未启动状态, 有效的降低了 OTG设备的功耗, 并且有 效的节约了所述 OTG设备的内存。
第二种方式, 以 USB设备发起, OTG设备接收为例说明: OTG设备对待发送数据进行编码和封装后,生成 HID数据包, 并将所述 HID数据包发送到所述 USB设备, 所述 HID数据包携带有数据类型和数据使 用方式信息。 所述对待发送数据进行编码和封装包括:
首先, OTG设备对待发送数据包进行编码, 生成携带有数据类型和数 据使用方式信息的第四数据包;
然后, OTG设备对所述第四数据包进行封装, 生成携带有数据类型和 数据使用方式信息的 HID数据包。
其中, 由于所述 OTG设备中有 OTG平台处理该函数, 在对所述第四数 据包进行封装后, 使得所述第四数据包携带数据类型和数据使用方式信息, 并发送到 USB设备, 以使得 USB设备可以对获取的 HID数据包进行解码, 获 取到所述数据类型和数据使用方式信息, 并根据所述数据类型和数据使用 方式信息, 对接收到的所述 HID数据包进行存储或应用, 需要说明的是, 对 备上的应运软件来完成的, 如 APK程序。 具体的, 对 HID数据包中的数据进 行存储或应用, 示例性的, 具体的应用可以是对图像数据的查看, 也可以 是对音频文件的播放等, 但是不仅限于此, 还可以根据实际的应用需要进 行设置。 优选的, 对待发送数据进行编码和封装后, 生成 HID数据包, 并将所述 HID数据包发送到所述 USB设备前, 还包括:
向所述 USB设备发送所述数据传输请求消息, 并启动所述待发送数据 包的编码和封装的进程。 当所述 OTG设备与 USB设备在完成设备类型查询消息与发送后, 且发 送 HID数据到所述 USB设备前,所述 OTG设备可以向所述 USB设备发送数据 传输请求消息, 并启动所述待发送数据的编码和封装的进程, 该方法可以 合理的启动 OTG设备的数据编码和封装的进程, 使得该进程在不需要时处 于未启动状态,有效的降低了 OTG设备的功耗,并且有效的节约了所述 OTG 设备的内存。 本发明实施例提供的一种 USB设备通信传输方法, 通过对 USB 设备驱 动程序进行修改, 使 USB设备虚拟为 HID设备, 并分别在 USB设备与 OTG设 备中设置数据处理程序, 实现了 OTG设备作为主设备与 USB设备与之间进 行通信, 增大了 USB设备的使用范围。
如图 3所示, 本发明实施例还提供了一种 USB设备 300, 至少包括: 第 一射频模块 301、 第一处理器模块 302, 所述第一射频模块 301与所述第一处 理器模块 302相连其中, 第一射频模块 301 , 用于接收对端设备发送的设备类型查询消息, 所述 USB设备的驱动程序中增设有 HID描述符和 HID报告描述符, 以及用于将 HID数据包发送到所述对端设备,或接收来自所述对端设备 的 HID数据包, 所述 HID数据包携带有数据类型和数据使用方式信息; 所述第一处理器模块 302, 用于根据所述 HID描述符和 HID报告描述符 发送携带有 HID标识的查询响应消息至所述对端设备, 所述 HID标识用于使 所述对端设备识别所述 USB设备为 HID设备; 所述第一处理器模块 302, 用于对待发送数据进行编码和封装, 并生成 HID数据包后发送给第一射频模块, 或者对所述第一射频模块接收到的 HID 数据包进行解封装和解码。 在本发明实施例中, 当对待发送数据进行编码和封装,生成 HID数据包 时, 所述第一处理器模块 302具体用于对待发送数据进行编码, 生成携带有 数据类型和数据使用方式信息的第一数据包; 以及用于根据所述 USB设备的驱动程序中增设的 HID报告描述符对所 述第一数据包进行封装, 生成携带有数据类型和数据使用方式信息的 HID 数据包。
另外, 当对接收到的所述 HID数据包进行解封装和解码时, 所述第一处 理器模块 302具体用于根据所述 USB设备的驱动程序中增设的 HID报告描述 符,对接收到的所述 HID数据包进行解封装, 获得携带有数据类型和数据使 用方式信息的第二数据包;
以及用于对所述携带有数据类型和数据使用方式信息的第二数据包进 行解码, 获得所述第二数据包的数据类型和数据使用方式信息。
优选的, 所述第一处理器模块 302还用于根据所述数据类型和数据使用 方式信息, 对所述第二数据包进行存储或应用。
优选的, 所述第一处理器模块 302还用于向所述对端设备发送数据传输 请求消息, 启动所述待发送数据的编码和封装的进程;
以及用于检测到所述对端设备发送的所述数据传输请求消息后, 启动 所述 HID数据包的解封装和解码的进程。
如图 4所示, 本发明实施例还提供了一种 OTG设备 400, 至少包括第二 射频模块 401 , 第二处理器模块 402, 所述第二射频模块 401与所述第二处理 器模块 402相连,
所述第二射频模块 401 , 用于向 USB设备发送的设备类型查询消息, 所 述 USB设备的驱动程序中增设有 HID描述符和 HID报告描述符,
以及用于接收来自所述 USB设备的 HID数据包, 或将所述 HID数据包发 送到所述 USB设备, 所述 HID数据包携带有数据类型和数据使用方式信息; 所述第二处理器模块 402, 用于接收 USB设备发送的携带有 HID标识的 查询响应消息, 并根据所述 HID标识识别所述 USB设备为 HID设备; 所述第二处理器模块 402, 用于对所述第二射频模块接收到的 HID数据 包进行解封装和解码, 或者对待发送数据进行编码和封装, 并生成 HID数据 包后发送给第二射频模块。
在本发明实施例中, 当对接收到的所述 HID数据包进行解封装和解码 时, 所述第二处理器模块 402具体用于对所述 HID数据包进行解封装, 获得 携带有数据类型和数据使用方式信息的第三数据包;
以及用于对所述携带有数据类型和数据使用方式信息的第三数据包进 行解码, 获得所述第三数据包的数据类型和数据使用方式信息。
另外, 当对待发送数据进行编码和封装, 生成 HID数据包时, 所述第二 处理器模块 402具体用于对待发送数据包进行编码, 生成携带有数据类型和 数据使用方式信息的第四数据包;
以及用于对所述第四数据包进行封装, 生成携带有数据类型和数据使 用方式信息的 HID数据包。 优选的, 所述第二处理器模块还用于根据所述数据类型和数据使用方 式信息, 对接收到的所述 HID数据包进行存储或应用。
优选的 , 所述第二处理器模块还用于检测到所述 USB设备发送的数据 传输请求消息后, 启动所述 HID数据包的解封装和解码的进程;
以及用于向所述 USB设备发送所述数据传输请求消息, 并启动所述待 发送数据包的编码和封装的进程。
如图 5所示,本发明实施例还提供了一种 USB设备通信系统,包括: USB 设备 51和 OTG设备 52, 其中, 所述 USB设备和装置结构与 OTG设备的功能 与结构与上所设备的结构相同, 在此不再赘述。
本发明实施例提供的一种 USB设备通信传输设备和系统, 通过对 USB 设备驱动程序进行修改, 使 USB设备虚拟为 HID设备, 并分别在 USB设备与 OTG设备中设置数据处理程序 , 实现了 OTG设备作为主设备与 USB设备与 之间进行通信, 增大了 USB设备的使用范围。 本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机 可读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序 代码的介质。 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明 的保护范围应以所述权利要求的保护范围为准。

Claims

权利要求
1、 一种 USB设备的通信方法, 其特征在于, 包括:
USB设备接收对端设备发送的设备类型查询消息,所述 USB设备的驱动 程序中增设有 HID描述符和 HID报告描述符;
USB设备根据所述 HID描述符和 HID报告描述符发送携带有 HID标识的 查询响应消息至对端设备,所述 HID标识用于使所述对端设备识别所述 USB 设备为 HID设备;
USB设备对待发送数据进行编码和封装后, 生成 HID数据包, 并将所述 HID数据包发送到所述对端设备, 或者接收来自所述对端设备的所述 HID数 据包, 并对接收到的所述 HID数据包进行解封装和解码, 所述 HID数据包携 带有数据类型和数据使用方式信息。
2、 根据权利要求 1所述的方法, 其特征在于, 所述对待发送数据进行 编码和封装, 生成 HID数据包包括:
对待发送数据进行编码, 生成携带有数据类型和数据使用方式信息的 第一数据包;
根据所述 USB设备的驱动程序中增设的 HID报告描述符对所述第一数 据包进行封装, 生成携带有数据类型和数据使用方式信息的 HID数据包。
3、 根据权利要求 1所述的方法, 其特征在于, 所述对接收到的所述 HID 数据包进行解封装和解码包括:
根据所述 USB设备的驱动程序中增设的 HID报告描述符,对接收到的所 述 HID数据包进行解封装,获得携带有数据类型和数据使用方式信息的第二 数据包;
对所述携带有数据类型和数据使用方式信息的第二数据包进行解码, 获得所述第二数据包的数据类型和数据使用方式信息。
4、 根据权利要求 3所述的方法, 其特征在于, 所述获得所述第二数据 包的数据类型和数据使用方式信息后, 还包括: 根据所述数据类型和数据使用方式信息, 对所述第二数据包进行存储 或应用。
5、 根据权利要求 1所述的方法, 其特征在于, 所述 USB设备对待发送 数据进行编码和封装后, 生成 HID数据包, 并将所述 HID数据包发送到所述 对端设备前, 还包括:
向所述对端设备发送数据传输请求消息, 并启动所述待发送数据的编 码和封装的进程。
6、 根据权利要求 1所述的方法, 其特征在于, 所述接收来自所述对端 设备的 HID数据包, 并对接收到的所述 HID数据包进行解封装和解码前, 还 包括:
检测到所述对端设备发送的所述数据传输请求消息后, 启动所述 HID 数据包的解封装和解码的进程。
7、 一种 USB设备的通信方法, 其特征在于, 包括:
向 USB设备发送设备类型查询消息,所述 USB设备的驱动程序中增设有 HID描述符和 HID报告描述符;
接收 USB设备发送的携带有 HID标识的查询响应消息, 并根据所述 HID 标识识别所述 USB设备为 HID设备;
接收来自所述 USB设备的 HID数据包, 并对接收到的所述 HID数据包进 行解封装和解码, 或者对待发送数据进行编码和封装后, 生成 HID数据包, 并将所述 HID数据包发送到所述 USB设备, 所述 HID数据包携带有数据类型 和数据使用方式信息。
8、 根据权利要求 7所述的方法, 其特征在于, 所述对接收到的所述 HID 数据包进行解封装和解码包括:
对所述 HID数据包进行解封装,获得携带有数据类型和数据使用方式信 息的第三数据包; 对所述携带有数据类型和数据使用方式信息的第三数据包进行解码, 获得所述第三数据包的数据类型和数据使用方式信息。
9、 根据权利要求 7所述的方法, 其特征在于, 所述对待发送数据进行 编码和封装包括:
对待发送数据包进行编码, 生成携带有数据类型和数据使用方式信息 的第四数据包;
对所述第四数据包进行封装, 生成携带有数据类型和数据使用方式信 息的 HID数据包。
10、 根据权利要求 8所述的方法, 其特征在于, 所述获得所述第三数据 包的数据类型和数据使用方式信息后, 还包括:
根据所述数据类型和数据使用方式信息,对接收到的所述 HID数据包进 行存储或应用。
11、 根据权利要求 7所述的方法, 其特征在于, 所述接收来自所述 USB 设备的所述 HID数据包, 并对接收到的所述 HID数据包进行解封装和解码 前, 还包括:
检测到所述 USB设备发送的数据传输请求消息后,启动所述 HID数据包 的解封装和解码的进程。
12、 根据权利要求 7所述的方法, 其特征在于, 对待发送数据进行编码 和封装后, 生成 HID数据包, 并将所述 HID数据包发送到所述 USB设备前, 还包括:
向所述 USB设备发送所述数据传输请求消息, 并启动所述待发送数据 包的编码和封装的进程。
13、 一种 USB设备, 其特征在于, 至少包括第一射频模块, 第一处理 器模块, 所述第一射频模块与所述第一处理器模块相连,
所述第一射频模块, 用于接收对端设备发送的设备类型查询消息, 所 述 USB设备的驱动程序中增设有 HID描述符和 HID报告描述符; 以及用于将 HID数据包发送到所述对端设备,或接收来自所述对端设备 的 HID数据包, 所述 HID数据包携带有数据类型和数据使用方式信息;
所述第一处理器模块, 用于根据所述 HID描述符和 HID报告描述符生成 携带有 HID标识的查询响应消息后发送给所述第一射频模块, 所述 HID标识 用于使所述对端设备识别所述 USB设备为 HID设备;
所述第一处理器模块, 用于对待发送数据进行编码和封装, 并生成 HID 数据包后发送给第一射频模块,或者对所述第一射频模块接收到的 HID数据 包进行解封装和解码。
14、 根据权利要求 13所述的 USB设备, 其特征在于, 当对待发送数据 进行编码和封装, 生成 HID数据包时, 所述第一处理器模块具体用于对待发 送数据进行编码, 生成携带有数据类型和数据使用方式信息的第一数据包; 以及用于根据所述 USB设备的驱动程序中增设的 HID报告描述符对所 述第一数据包进行封装, 生成携带有数据类型和数据使用方式信息的 HID 数据包。
15、 根据权利要求 13所述的 USB设备, 其特征在于, 当对接收到的所 述 HID数据包进行解封装和解码时,所述第一处理器模块具体用于根据所述 USB设备的驱动程序中增设的 HID报告描述符, 对接收到的所述 HID数据包 进行解封装, 获得携带有数据类型和数据使用方式信息的第二数据包; 以及用于对所述携带有数据类型和数据使用方式信息的第二数据包进 行解码, 获得所述第二数据包的数据类型和数据使用方式信息。
16、 根据权利要求 15所述的 USB设备, 其特征在于, 所述第一处理器 模块还用于根据所述数据类型和数据使用方式信息, 对所述第二数据包进 行存储或应用。
17、 根据权利要求 13所述的 USB设备, 其特征在于, 所述第一处理器 模块还用于向所述对端设备发送数据传输请求消息, 启动所述待发送数据 的编码和封装的进程; 以及用于检测到所述对端设备发送的所述数据传输请求消息后, 启动 所述 HID数据包的解封装和解码的进程。
18、 一种 OTG设备, 其特征在于, 至少包括第二射频模块, 第二处理 器模块, 所述第二射频模块与所述第二处理器模块相连,
所述第二射频模块, 用于向 USB设备发送的设备类型查询消息, 所述 USB设备的驱动程序中增设有 HID描述符和 HID报告描述符;
以及用于接收来自所述 USB设备的 HID数据包, 或将所述 HID数据包发 送到所述 USB设备, 所述 HID数据包携带有数据类型和数据使用方式信息; 所述第二处理器模块,用于接收 USB设备发送的携带有 HID标识的查询 响应消息, 并根据所述 HID标识识别所述 USB设备为 HID设备;
所述第二处理器模块,用于对所述第二射频模块接收到的 HID数据包进 行解封装和解码, 或者对待发送数据进行编码和封装, 并生成 HID数据包后 发送给第二射频模块。
19、 根据权利要求 18所述的 OTG设备, 其特征在于, 当对接收到的所 述 HID数据包进行解封装和解码时, 所述第二处理器模块具体用于对所述 HID数据包进行解封装,获得携带有数据类型和数据使用方式信息的第三数 据包;
以及用于对所述携带有数据类型和数据使用方式信息的第三数据包进 行解码, 获得所述第三数据包的数据类型和数据使用方式信息。
20、 根据权利要求 18所述的 OTG设备, 其特征在于当对待发送数据进 行编码和封装, 生成 HID数据包时, 所述第二处理器模块具体用于对待发送 数据进行编码, 生成携带有数据类型和数据使用方式信息的第四数据包; 以及用于对所述第四数据包进行封装, 生成携带有数据类型和数据使 用方式信息的 HID数据包。
21、 根据权利要求 19所述的 OTG设备, 其特征在于, 所述第二处理器 模块还用于根据所述数据类型和数据使用方式信息, 对接收到的所述 HID 数据包进行存储或应用。
22、 根据权利要求 20所述的 OTG设备, 其特征在于, 所述第二处理器 模块还用于检测到所述 USB设备发送的数据传输请求消息后,启动所述 HID 数据包的解封装和解码的进程;
以及用于向所述 USB设备发送所述数据传输请求消息, 并启动所述待 发送数据包的编码和封装的进程。
23、 一种 USB设备通信系统, 其特征在于, 包括如权利要求 13-17任一 项所述的 USB设备和如权利要求 18-22任一项所述的 OTG设备。
PCT/CN2013/070885 2012-03-21 2013-01-23 一种usb设备通信方法、设备及系统 WO2013139184A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP13764346.6A EP2790361B1 (en) 2012-03-21 2013-01-23 Usb device communication method, device and system
US14/331,627 US9286249B2 (en) 2012-03-21 2014-07-15 USB device communication method, device and system wherein a human interface device (HID) descriptor and report are added to a driver of USB device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210076403.5 2012-03-21
CN201210076403.5A CN102638397B (zh) 2012-03-21 2012-03-21 一种usb设备通信传输方法、设备及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/331,627 Continuation US9286249B2 (en) 2012-03-21 2014-07-15 USB device communication method, device and system wherein a human interface device (HID) descriptor and report are added to a driver of USB device

Publications (1)

Publication Number Publication Date
WO2013139184A1 true WO2013139184A1 (zh) 2013-09-26

Family

ID=46622650

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/070885 WO2013139184A1 (zh) 2012-03-21 2013-01-23 一种usb设备通信方法、设备及系统

Country Status (4)

Country Link
US (1) US9286249B2 (zh)
EP (1) EP2790361B1 (zh)
CN (1) CN102638397B (zh)
WO (1) WO2013139184A1 (zh)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638397B (zh) * 2012-03-21 2014-12-10 华为终端有限公司 一种usb设备通信传输方法、设备及系统
US9201833B2 (en) * 2014-02-26 2015-12-01 American Megatrends, Inc. Backplane controller capable of transferring and receiving data through USB interface
US9256569B2 (en) 2014-02-26 2016-02-09 American Megatrends, Inc. Monitoring and managing storage drives and performing backplane controller firmware using a USB interface
US9497717B2 (en) * 2014-05-23 2016-11-15 Ruckus Wireless, Inc. Out-of-band acknowledgement of wireless communication
US9959024B2 (en) 2015-01-27 2018-05-01 I/O Interconnect, Ltd. Method for launching applications of handheld computer through personal computer
US9696825B2 (en) 2015-01-27 2017-07-04 I/O Interconnect, Ltd. Method for making cursor control to handheld touchscreen computer by personal computer
CN104991870A (zh) * 2015-06-10 2015-10-21 四川华拓光通信股份有限公司 基于hid的免驱动光通信仪器接口访问方法
CN105491419B (zh) * 2015-11-30 2019-01-22 青岛海信电器股份有限公司 一种组合电视以及数据共享方法
CN106597663B (zh) * 2016-11-24 2019-02-12 北京小鸟看看科技有限公司 头戴显示设备及其配套设备以及使其兼容不同外部设备的方法
CN108337209B (zh) * 2017-01-19 2021-05-04 深圳兆日科技股份有限公司 安全认证方法、装置以及对应的移动终端
CN111399929A (zh) * 2018-12-17 2020-07-10 深圳市茁壮网络股份有限公司 测试应用启动方法及装置
CN110069288B (zh) * 2019-03-13 2022-03-04 北京淳中科技股份有限公司 Usb设备共享方法、装置及系统
CN110545278B (zh) * 2019-09-05 2022-02-25 中国联合网络通信集团有限公司 工业互联网标识解析方法和系统
CN110688052B (zh) * 2019-09-26 2021-06-08 广州视源电子科技股份有限公司 人机交互设备枚举处理方法、装置及人机交互设备
CN110830168B (zh) * 2019-11-11 2021-11-02 飞天诚信科技股份有限公司 一种usb通讯的实现方法及装置
CN111769999B (zh) * 2020-05-09 2022-03-25 厦门亿联网络技术股份有限公司 一种usb设备软件的调试方法
CN112131162A (zh) * 2020-09-16 2020-12-25 广州大学 基于usb设备的数据传送方法、系统、装置及介质
CN112463690A (zh) * 2020-12-01 2021-03-09 苏州臻迪智能科技有限公司 一种实现数据传输的方法及装置
CN112272096B (zh) * 2020-12-28 2021-04-27 飞天诚信科技股份有限公司 一种基于苹果转换设备的通信方法和系统
CN114253892B (zh) * 2021-12-20 2023-02-07 深圳市拔超科技股份有限公司 一种usb hid信号延长传输方法及系统
CN114936175B (zh) * 2022-07-21 2022-10-04 飞天诚信科技股份有限公司 免插拔实现otg通讯的方法、装置、终端设备和介质
CN116889722B (zh) * 2023-07-26 2024-05-14 深圳果果慧科技有限公司 一种超低延时的游戏系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040199702A1 (en) * 2003-01-06 2004-10-07 Sankyo Seiki Mfg. Co., Ltd. USB communication method and computer system with USB communication line
CN1545022A (zh) * 2003-11-18 2004-11-10 海信集团有限公司 手机大容量移动存储的方法
CN101763324A (zh) * 2009-12-31 2010-06-30 中兴通讯股份有限公司 设备模拟的实现方法和装置
CN102638397A (zh) * 2012-03-21 2012-08-15 华为终端有限公司 一种usb设备通信传输方法、设备及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004097614A1 (en) * 2003-04-28 2004-11-11 Keyghost Limited Communication method and apparatus
CN100409150C (zh) * 2006-09-07 2008-08-06 北京飞天诚信科技有限公司 一种提高hid设备通讯速度的方法
EP2341443A1 (en) * 2009-12-29 2011-07-06 Gemalto SA A token for communicating with a host device, corresponding communication system and method
CN101902238A (zh) * 2010-07-22 2010-12-01 成都九洲迪飞科技有限责任公司 Usb无线扩展系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040199702A1 (en) * 2003-01-06 2004-10-07 Sankyo Seiki Mfg. Co., Ltd. USB communication method and computer system with USB communication line
CN1545022A (zh) * 2003-11-18 2004-11-10 海信集团有限公司 手机大容量移动存储的方法
CN101763324A (zh) * 2009-12-31 2010-06-30 中兴通讯股份有限公司 设备模拟的实现方法和装置
CN102638397A (zh) * 2012-03-21 2012-08-15 华为终端有限公司 一种usb设备通信传输方法、设备及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2790361A4 *

Also Published As

Publication number Publication date
EP2790361B1 (en) 2016-12-28
CN102638397B (zh) 2014-12-10
EP2790361A1 (en) 2014-10-15
US20140330992A1 (en) 2014-11-06
EP2790361A4 (en) 2015-01-21
US9286249B2 (en) 2016-03-15
CN102638397A (zh) 2012-08-15

Similar Documents

Publication Publication Date Title
WO2013139184A1 (zh) 一种usb设备通信方法、设备及系统
JP6855573B2 (ja) ユーザ端末の位置エリアの更新方法、アクセスネットワークエンティティ、ユーザ端末およびコアネットワークエンティティ
WO2014101626A1 (zh) 一种usb设备及其识别主机操作系统的方法
EP3127294B1 (en) Wireless communication system
KR20150036463A (ko) 무선 도켓팅을 위해 도켓팅 호스트에서 무선 주변기기들 및 그들의 상태들을 식별하기 위한 방법 및 장치
US20180359117A1 (en) Virtual channel instantiation over vgi/vgmi
US20150065053A1 (en) Method of controlling short-range wireless communication and apparatus supporting the same
WO2021104114A1 (zh) 一种提供无线保真WiFi网络接入服务的方法及电子设备
TW201242407A (en) Host device suspending communication link to client device based on client device notification
KR20160045845A (ko) 무선 usb 디바이스들에 대해 지속 usb 서비스를 제공하는 방법 및 장치
CN108605373B (zh) 用于提供网络共享服务的方法和电子装置
EP2560337A1 (en) Method and system for realizing wireless usb flash disk
CN110691332A (zh) 基于蓝牙广播的数据处理方法、设备及存储介质
WO2014169823A1 (zh) 定位信息获取方法、终端及移动宽带接口模型mbim设备
JP6665190B2 (ja) ネットワーク共有実施方法及び装置
TWI221224B (en) Method for controlling wireless network access through wired network access interface and associated computer system
WO2016011926A1 (zh) 一种信息传输方法、装置和移动终端、存储介质
CN111245702B (zh) 基于5gs的数据传输方法及装置、转发设备和upf通信设备
WO2016054898A1 (zh) 数据传输方法及终端、计算机存储介质
CN107708183B (zh) 解码算法确定方法、装置、终端及存储介质
US20130044868A1 (en) Dial-up connection method and device of mobile data terminal
TW202105179A (zh) Ic韌體更新方法
US9078282B2 (en) Method and apparatus for implementing network device function of wireless communication terminal
CN106845974B (zh) 一种实现近场通信的点对点通信的方法及装置
KR20160011090A (ko) 사물 인터넷 응용 프로그램 업데이트 장치 및 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13764346

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2013764346

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013764346

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE