WO2016054898A1 - Data transmission method, terminal and computer storage medium - Google Patents

Data transmission method, terminal and computer storage medium Download PDF

Info

Publication number
WO2016054898A1
WO2016054898A1 PCT/CN2015/075667 CN2015075667W WO2016054898A1 WO 2016054898 A1 WO2016054898 A1 WO 2016054898A1 CN 2015075667 W CN2015075667 W CN 2015075667W WO 2016054898 A1 WO2016054898 A1 WO 2016054898A1
Authority
WO
WIPO (PCT)
Prior art keywords
usb device
usb
data transmission
enumeration
address
Prior art date
Application number
PCT/CN2015/075667
Other languages
French (fr)
Chinese (zh)
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 深圳市中兴微电子技术有限公司
Publication of WO2016054898A1 publication Critical patent/WO2016054898A1/en

Links

Images

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/38Information transfer, e.g. on bus

Definitions

  • the present invention relates to a universal serial bus (USB) data transmission technology in the field of communication technology, and in particular, to a method and terminal for data transmission based on USB, and a computer storage medium.
  • USB universal serial bus
  • USB has the advantage of high speed and becomes the internal chip system interconnection of terminals.
  • the main communication interface is widely used.
  • USB is a master-slave mode communication protocol, which is divided into a host (Host) end and a USB device (Device) end; when the host detects that the USB device is inserted, the host initiates an enumeration process and is in the enumeration process.
  • the USB device allocates an address and obtains enumeration information of the USB device, for example, a device descriptor, a configuration descriptor, an interface descriptor, an endpoint descriptor, etc., and then the host can establish a communication connection with the USB device and Data transfer.
  • the host In the process of data transmission based on USB, when the host detects that the USB device is inserted, the host initiates an enumeration process and allocates an address for the USB device in the enumeration process and acquires enumeration information of the USB device, which is required by the user. Transmitting data, performing data transmission with the USB device according to the address allocated by the USB device and the obtained enumerated information; if the user does not need to transmit data, the USB suspend state is entered, and then, the user needs to transmit data again.
  • the host re-initiates the enumeration process and re-acquires the enumeration information of the USB device during the enumeration process, and performs data transmission with the USB device according to the address allocated by the USB device and the re-acquired enumeration information. This requires a long preparation time before USB data transmission, which affects the user experience.
  • Embodiments of the present invention contemplate a method for data transmission based on USB, a terminal, and a computer storage medium, which can reduce the preparation time before USB data transmission, thereby improving the user experience of the terminal user.
  • the embodiment of the invention provides a method for data transmission based on USB, including:
  • the method also includes:
  • the data transmission is performed by the USB device according to the address and enumeration information of the recorded USB device, including:
  • the method further includes:
  • USB suspend state is entered.
  • the method further includes:
  • USB Connect to the USB device through one of the following interfaces: standard USB interface, Mini USB interface or Micro USB interface.
  • the enumeration information includes a device descriptor, a configuration descriptor, an interface descriptor, and an endpoint descriptor.
  • the embodiment of the invention further provides a terminal, where the terminal comprises: a recording module and a control module Block; among them,
  • the recording module is configured to record an address and enumeration information of the USB device
  • the control module is configured to, when detecting the insertion of the USB device, initiate an enumeration process and allocate an address for the USB device in the enumeration process and obtain enumeration information of the USB device; and receive the USB data transmission At the time of instruction, data transmission is performed with the USB device according to the recorded address and enumeration information of the USB device.
  • control module is further configured to:
  • control module is further configured to enter a USB suspend state upon receiving a USB data transfer exit instruction.
  • control module is connected to the USB device through one of the following interfaces: a standard USB interface, a Mini USB interface or a Micro USB interface.
  • the enumeration information includes a device descriptor, a configuration descriptor, an interface descriptor, and an endpoint descriptor.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores executable instructions, and the executable instructions are used to execute the data transmission method described above.
  • the method for transmitting data based on USB and the terminal and the computer storage medium provided by the embodiment of the present invention when detecting the insertion of the universal serial bus USB device, initiate an enumeration process and assign an address to the USB device during the enumeration process.
  • the embodiment of the present invention when receiving the USB data transmission instruction, is in a USB suspended state, regardless of whether After entering the USB data transmission state, data can be transmitted to the USB device according to the recorded address and enumeration information of the USB device, without re-initiating the enumeration process, so that in the process of data transmission based on USB It can reduce the preparation time before USB data transmission, thus improving the end user experience.
  • FIG. 1 is a schematic flowchart of a method for implementing data transmission based on USB;
  • FIG. 2 is a schematic flowchart of a method for implementing data transmission based on USB according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a terminal structure according to an embodiment of the present invention.
  • the enumeration process needs to be re-initiated and the enumeration information of the USB device is re-acquired in the re-initiated enumeration process, and according to the address assigned by the USB device and re Obtaining the enumerated information and performing data transmission with the USB device, so that if the terminal frequently enters the USB suspend state, when the USB suspend state is transferred to the USB data transmission state, the enumeration process needs to be frequently initiated, because The enumeration process takes a long time, so existing solutions based on USB for data transmission will greatly affect the end user experience.
  • the process of data transmission based on USB includes the following steps:
  • Step S100 When the terminal detects that the USB device is inserted, the terminal initiates an enumeration process and allocates an address for the USB device in the enumeration process and acquires enumeration information of the USB device.
  • Step S101 When receiving the USB data transmission instruction, the terminal enters a USB data transmission state, and performs data transmission with the USB device according to the address allocated by the USB device and the obtained enumerated information;
  • Step S102 When the terminal receives the USB data transmission exit instruction, the terminal enters the USB connection.
  • Step S103 When the terminal receives the USB data transmission instruction, the terminal transits to the USB data transmission state by the USB suspend state, and re-initiates the enumeration process and reacquires the enumeration of the USB device in the re-initiated enumeration process. And transmitting data to the USB device according to the address allocated by the USB device and the re-acquired enumeration information.
  • the enumeration process needs to be re-initiated and the enumeration information of the USB device is re-acquired in the re-initiated enumeration process. And performing data transmission with the USB device according to the address allocated by the USB device and the re-acquired enumeration information, so that if the terminal frequently enters the USB suspend state, the USB data transmission is transferred from the USB suspend state. In the state, the enumeration process needs to be initiated frequently. Since the enumeration process takes a long time, the existing data transmission scheme based on USB greatly affects the experience of the end user.
  • the terminal when the terminal detects that the USB device is inserted, the terminal initiates an enumeration process and allocates an address for the USB device in the enumeration process and acquires enumeration information of the USB device, and records the The address and enumeration information of the USB device; when receiving the USB data transfer command, regardless of whether it is in the USB suspend state before, after entering the USB data transfer state, the address and enumeration information of the USB device recorded according to the record may be The USB device performs data transmission without re-initiating the enumeration process. Thus, in the process of data transmission based on USB, the long and long process of enumeration process is omitted, and the preparation before USB data transmission can be reduced. Time to enhance the end user experience.
  • the terminal may be a terminal device that supports a USB data transmission function, such as a mobile phone, a tablet (PC), a computer (PC), a smart TV, and the like.
  • the embodiment of the invention provides a method for data transmission based on USB. As shown in FIG. 2, the method includes:
  • Step S200 When the terminal detects that the USB device is inserted, the terminal initiates an enumeration process and allocates an address for the USB device in the enumeration process, and obtains enumeration information of the USB device, and records the address and enumeration information of the USB device. .
  • the enumeration is that when the terminal (host side) detects that the USB device (Device side) is inserted, the enumeration information is read from the USB device, and the enumeration information includes a device descriptor, a configuration descriptor, an interface descriptor, An endpoint descriptor or the like, according to the enumeration information, determining, according to the enumeration information, a type of the USB device, and a communication manner of performing data transmission with the USB device, so that the terminal may be according to the type of the USB device And communication mode to load a suitable driver to establish a communication connection with the USB device and perform data transmission.
  • the terminal is usually connected to the USB device through a standard USB interface, a mini (USB) USB interface or a micro (USB) USB interface.
  • Step S201 When receiving the USB data transmission instruction, the terminal performs data transmission with the USB device according to the recorded address and enumeration information of the USB device.
  • the terminal when it is determined that the terminal user needs to transmit data, the terminal internally transmits a USB data transmission instruction; when the terminal receives the USB data transmission instruction, enters the USB data transmission state, and starts data transmission with the USB device, how to record according to the following
  • the address and enumeration information of the USB device are transmitted with the USB device for detailed description:
  • the terminal when the terminal receives the USB data transmission exit instruction, it enters the USB suspend state to Reduce the power consumption of the terminal.
  • the USB suspend state is a low power consumption state; the terminal enters the USB After the suspend state, the address of the USB device is kept unchanged.
  • the trigger terminal when determining that the terminal user needs to retransmit data, the trigger terminal internally sends a USB data transmission instruction: the terminal receives the USB data transmission instruction, and the USB suspension state is transferred to the USB data transmission state. Data transmission is performed with the USB device according to the recorded address and enumeration information of the USB device.
  • the terminal when the terminal detects that the USB device is unplugged, it ends the process of processing; and when it detects that the USB device is inserted again, re-initiates the enumeration process and is in the re-initiated enumeration process.
  • the USB device allocates an address and acquires enumeration information of the USB device, and updates the recorded address and enumeration information of the USB device.
  • the USB device when receiving the USB data transmission instruction, regardless of whether the USB suspension state is previously, after entering the USB data transmission state, the USB device may be recorded according to the address and the enumeration information of the USB device. Data transmission without re-initiating the enumeration process, thus omitting the time-consuming part of the enumeration process in the process of data transmission based on USB, and reducing the preparation time before USB data transmission, thereby Improve the end user experience.
  • the embodiment of the present invention further provides a terminal.
  • the principle and method for solving the problem are similar. Therefore, the implementation process and implementation principles of the terminal can be described in the implementation process and the implementation principle of the foregoing method. It will not be repeated here.
  • the terminal provided by the embodiment of the present invention includes: a recording module 300 and a control module 301;
  • the recording module 300 is configured to record the USB after the control module 301 allocates an address to the USB device and obtains enumeration information of the USB device in an enumeration process.
  • the control module 301 is configured to, when detecting the insertion of the universal serial bus USB device, initiate an enumeration process and allocate an address for the USB device in the enumeration process and obtain enumeration information of the USB device; Upon receiving the USB data transfer instruction, data transmission is performed with the USB device according to the recorded address and enumeration information of the USB device.
  • the control module is connected to the USB device through one of the following interfaces: a standard USB interface, a Mini USB interface, or a Micro USB interface.
  • the enumeration information includes a device descriptor, a configuration descriptor, an interface descriptor, and an endpoint descriptor.
  • the various parts of the wireless access node described above are separately described by functions into various modules or units.
  • the division of the above functional units or modules is only a preferred implementation manner of the embodiments of the present invention, and the division manner of the functional units or modules does not constitute a limitation of the present invention.
  • control module 301 is configured to:
  • control module 301 is further configured to enter a USB suspend state when receiving a USB data transmission exit instruction.
  • the recording module 200 and the control module 201 may be implemented by a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA) located at the terminal. )achieve.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the embodiment of the invention further describes a computer storage medium, wherein the computer storage medium stores executable instructions, and the executable instructions are used to execute the data transmission method described above.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing storage medium includes: a mobile storage device, a random access memory (RAM), a read-only memory (ROM), a magnetic disk, or an optical disk.
  • RAM random access memory
  • ROM read-only memory
  • magnetic disk or an optical disk.
  • optical disk A medium that can store program code.
  • the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for making
  • a computer device which may be a personal computer, server, or network device, etc.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a RAM, a ROM, a magnetic disk, or an optical disk.

Abstract

Disclosed is a data transmission method. The method comprises: detecting insertion of a USB device, initiating an enumeration process, allocating an address to the USB device and acquiring enumeration information of the USB device during the enumeration process, and recording the address and the enumeration information of the USB device; and receiving a USB data transmission instruction, and performing data transmission with the USB device according to the address and the enumeration information of the USB device that are recorded. Also disclosed are a terminal and a computer storage medium.

Description

数据传输方法及终端、计算机存储介质Data transmission method and terminal, computer storage medium 技术领域Technical field
本发明涉及通信技术领域中的通用串行总线(USB,Universal Serial Bus)数据传输技术,尤其涉及一种基于USB进行数据传输的方法及终端、计算机存储介质。The present invention relates to a universal serial bus (USB) data transmission technology in the field of communication technology, and in particular, to a method and terminal for data transmission based on USB, and a computer storage medium.
背景技术Background technique
目前,随着用户对移动互联网的依赖,适用于各种应用的终端也越来越多样化,无线网络的速率也越来越高,USB以具有高速率的优势,成为了终端内部芯片系统互联的主要通信接口,应用非常广泛。At present, with the reliance of users on the mobile Internet, terminals suitable for various applications are more and more diversified, and the speed of wireless networks is also getting higher and higher. USB has the advantage of high speed and becomes the internal chip system interconnection of terminals. The main communication interface is widely used.
USB是一种主从模式的通信协议,分为主机(Host)端和USB设备(Device)端;所述主机检测到所述USB设备插入时,发起枚举过程并在枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息,例如,设备描述符、配置描述符、接口描述符、端点描述符等,然后,所述主机才能与所述USB设备建立通信连接并进行数据传输。USB is a master-slave mode communication protocol, which is divided into a host (Host) end and a USB device (Device) end; when the host detects that the USB device is inserted, the host initiates an enumeration process and is in the enumeration process. The USB device allocates an address and obtains enumeration information of the USB device, for example, a device descriptor, a configuration descriptor, an interface descriptor, an endpoint descriptor, etc., and then the host can establish a communication connection with the USB device and Data transfer.
现有基于USB进行数据传输的过程中,主机检测到USB设备插入时,发起枚举过程并在枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息,在用户需要传输数据时,根据所述USB设备分配的地址及获取的枚举信息与所述USB设备进行数据传输;如果用户不需要传输数据,则会进入USB挂起状态,然后,在用户再次需要传输数据时,主机会重新发起枚举过程并在枚举过程中重新获取所述USB设备的枚举信息,根据所述USB设备分配的地址及重新获取的枚举信息与所述USB设备进行数据传输,这就使USB数据传输之前需要很长的准备时间,影响了用户使用体验。 In the process of data transmission based on USB, when the host detects that the USB device is inserted, the host initiates an enumeration process and allocates an address for the USB device in the enumeration process and acquires enumeration information of the USB device, which is required by the user. Transmitting data, performing data transmission with the USB device according to the address allocated by the USB device and the obtained enumerated information; if the user does not need to transmit data, the USB suspend state is entered, and then, the user needs to transmit data again. The host re-initiates the enumeration process and re-acquires the enumeration information of the USB device during the enumeration process, and performs data transmission with the USB device according to the address allocated by the USB device and the re-acquired enumeration information. This requires a long preparation time before USB data transmission, which affects the user experience.
发明内容Summary of the invention
本发明实施例期望一种基于USB进行数据传输的方法及终端及计算机存储介质,能够缩减USB数据传输之前的准备时间,从而提升终端用户的使用体验。Embodiments of the present invention contemplate a method for data transmission based on USB, a terminal, and a computer storage medium, which can reduce the preparation time before USB data transmission, thereby improving the user experience of the terminal user.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供了一种基于USB进行数据传输的方法,包括:The embodiment of the invention provides a method for data transmission based on USB, including:
检测通用串行总线USB设备插入,发起枚举过程并在枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息,记录所述USB设备的地址及枚举信息;所述方法还包括:Detecting a universal serial bus USB device insertion, initiating an enumeration process, and assigning an address to the USB device in the enumeration process, acquiring an enumeration information of the USB device, and recording an address and enumeration information of the USB device; The method also includes:
接收USB数据传输指令,根据记录的USB设备的地址及枚举信息与所述USB设备进行数据传输。Receiving a USB data transmission instruction, and performing data transmission with the USB device according to the recorded address and enumeration information of the USB device.
较佳地,所述根据记录的USB设备的地址及枚举信息与所述USB设备进行数据传输,包括:Preferably, the data transmission is performed by the USB device according to the address and enumeration information of the recorded USB device, including:
根据记录的所述USB设备的枚举信息,确定所述USB设备的类型以及与所述USB设备进行数据传输的通信方式;Determining, according to the enumerated information of the USB device, a type of the USB device and a communication mode for performing data transmission with the USB device;
根据所述USB设备的类型、所述通信方式、记录的所述USB设备的地址与所述USB设备建立通信连接并进行数据传输。And establishing a communication connection with the USB device according to the type of the USB device, the communication manner, and the recorded address of the USB device, and performing data transmission.
较佳地,所述方法还包括:Preferably, the method further includes:
接收到USB数据传输退出指令时,进入USB挂起状态。When the USB data transfer exit command is received, the USB suspend state is entered.
较佳地,所述方法还包括:Preferably, the method further includes:
通过以下接口中的一种与所述USB设备连接:标准USB接口、Mini USB接口或Micro USB接口。Connect to the USB device through one of the following interfaces: standard USB interface, Mini USB interface or Micro USB interface.
较佳地,所述枚举信息包括设备描述符、配置描述符、接口描述符、端点描述符。Preferably, the enumeration information includes a device descriptor, a configuration descriptor, an interface descriptor, and an endpoint descriptor.
本发明实施例又提供了一种终端,所述终端包括:记录模块、控制模 块;其中,The embodiment of the invention further provides a terminal, where the terminal comprises: a recording module and a control module Block; among them,
所述记录模块,配置为记录所述USB设备的地址及枚举信息;The recording module is configured to record an address and enumeration information of the USB device;
所述控制模块,配置为在检测到USB设备插入时,发起枚举过程并在枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息;并在接收到USB数据传输指令时,根据记录的USB设备的地址及枚举信息与所述USB设备进行数据传输。The control module is configured to, when detecting the insertion of the USB device, initiate an enumeration process and allocate an address for the USB device in the enumeration process and obtain enumeration information of the USB device; and receive the USB data transmission At the time of instruction, data transmission is performed with the USB device according to the recorded address and enumeration information of the USB device.
较佳地,所述控制模块还配置为:Preferably, the control module is further configured to:
根据记录的所述USB设备的枚举信息,确定所述USB设备的类型以及与所述USB设备进行数据传输的通信方式;Determining, according to the enumerated information of the USB device, a type of the USB device and a communication mode for performing data transmission with the USB device;
根据所述USB设备的类型、所述通信方式、记录的所述USB设备的地址与所述USB设备建立通信连接并进行数据传输。And establishing a communication connection with the USB device according to the type of the USB device, the communication manner, and the recorded address of the USB device, and performing data transmission.
较佳地,所述控制模块,还配置为在接收到USB数据传输退出指令时,进入USB挂起状态。Preferably, the control module is further configured to enter a USB suspend state upon receiving a USB data transfer exit instruction.
较佳地,所述控制模块通过以下接口中的一种与所述USB设备连接:标准USB接口、Mini USB接口或Micro USB接口。Preferably, the control module is connected to the USB device through one of the following interfaces: a standard USB interface, a Mini USB interface or a Micro USB interface.
较佳地,所述枚举信息包括设备描述符、配置描述符、接口描述符、端点描述符。Preferably, the enumeration information includes a device descriptor, a configuration descriptor, an interface descriptor, and an endpoint descriptor.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有可执行指令,所述可执行指令用于执行上述的数据传输方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores executable instructions, and the executable instructions are used to execute the data transmission method described above.
本发明实施例所提供的基于USB进行数据传输的方法及终端、计算机存储介质,检测到通用串行总线USB设备插入时,发起枚举过程并在枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息,记录所述USB设备的地址及枚举信息;接收到USB数据传输指令时,根据记录的USB设备的地址及枚举信息与所述USB设备进行数据传输。如此,本发明实施例接收到USB数据传输指令时,无论之前是否处于USB挂起状态,在 进入USB数据传输状态后均可以根据记录的所述USB设备的地址及枚举信息与所述USB设备进行数据传输,而不需要重新发起枚举过程,这样,在基于USB进行数据传输的过程中,能够缩减USB数据传输之前的准备时间,从而提升终端用户的使用体验。The method for transmitting data based on USB and the terminal and the computer storage medium provided by the embodiment of the present invention, when detecting the insertion of the universal serial bus USB device, initiate an enumeration process and assign an address to the USB device during the enumeration process. Obtaining enumeration information of the USB device, recording an address and enumeration information of the USB device; and receiving a USB data transmission instruction, performing data transmission with the USB device according to the recorded address and enumeration information of the USB device. As such, when receiving the USB data transmission instruction, the embodiment of the present invention is in a USB suspended state, regardless of whether After entering the USB data transmission state, data can be transmitted to the USB device according to the recorded address and enumeration information of the USB device, without re-initiating the enumeration process, so that in the process of data transmission based on USB It can reduce the preparation time before USB data transmission, thus improving the end user experience.
附图说明DRAWINGS
图1为现有基于USB进行数据传输的方法实现流程示意图;FIG. 1 is a schematic flowchart of a method for implementing data transmission based on USB;
图2为本发明实施例基于USB进行数据传输的方法实现流程示意图;2 is a schematic flowchart of a method for implementing data transmission based on USB according to an embodiment of the present invention;
图3为本发明实施例终端的组成结构示意图。FIG. 3 is a schematic structural diagram of a terminal structure according to an embodiment of the present invention.
具体实施方式detailed description
发明人在实现本发明的过程中,发现现有的基于USB进行数据传输的方案中,至少存在以下缺陷:In the process of implementing the present invention, the inventors found that at least the following schemes for data transmission based on USB have the following drawbacks:
由USB挂起状态转入USB数据传输状态时,需要重新发起枚举过程并在重新发起的枚举过程中重新获取所述USB设备的枚举信息,并根据所述USB设备分配的地址及重新获取的枚举信息与所述USB设备进行数据传输,这样,如果所述终端频繁进入USB挂起状态,在由USB挂起状态转入USB数据传输状态时,也需要频繁发起枚举过程,由于枚举过程耗时较长,因此,现有基于USB进行数据传输的方案会极大地影响终端用户的体验。When the USB suspend state is transferred to the USB data transmission state, the enumeration process needs to be re-initiated and the enumeration information of the USB device is re-acquired in the re-initiated enumeration process, and according to the address assigned by the USB device and re Obtaining the enumerated information and performing data transmission with the USB device, so that if the terminal frequently enters the USB suspend state, when the USB suspend state is transferred to the USB data transmission state, the enumeration process needs to be frequently initiated, because The enumeration process takes a long time, so existing solutions based on USB for data transmission will greatly affect the end user experience.
目前,基于USB进行数据传输的流程,如图1所示,包括如下步骤:Currently, the process of data transmission based on USB, as shown in FIG. 1, includes the following steps:
步骤S100:终端检测到USB设备插入时,发起枚举过程并在枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息;Step S100: When the terminal detects that the USB device is inserted, the terminal initiates an enumeration process and allocates an address for the USB device in the enumeration process and acquires enumeration information of the USB device.
步骤S101:所述终端接收到USB数据传输指令时,进入USB数据传输状态,并根据所述USB设备分配的地址及获取的枚举信息与所述USB设备进行数据传输;Step S101: When receiving the USB data transmission instruction, the terminal enters a USB data transmission state, and performs data transmission with the USB device according to the address allocated by the USB device and the obtained enumerated information;
步骤S102:所述终端接收到USB数据传输退出指令时,进入USB挂 起状态;Step S102: When the terminal receives the USB data transmission exit instruction, the terminal enters the USB connection. State
步骤S103:所述终端接收到USB数据传输指令时,由USB挂起状态转入USB数据传输状态,并重新发起枚举过程并在重新发起的枚举过程中重新获取所述USB设备的枚举信息,并根据所述USB设备分配的地址及重新获取的枚举信息与所述USB设备进行数据传输。Step S103: When the terminal receives the USB data transmission instruction, the terminal transits to the USB data transmission state by the USB suspend state, and re-initiates the enumeration process and reacquires the enumeration of the USB device in the re-initiated enumeration process. And transmitting data to the USB device according to the address allocated by the USB device and the re-acquired enumeration information.
但是,上述基于USB进行数据传输的流程中,由USB挂起状态转入USB数据传输状态时,需要重新发起枚举过程并在重新发起的枚举过程中重新获取所述USB设备的枚举信息,并根据所述USB设备分配的地址及重新获取的枚举信息与所述USB设备进行数据传输,这样,如果所述终端频繁进入USB挂起状态,在由USB挂起状态转入USB数据传输状态时,也需要频繁发起枚举过程,由于枚举过程耗时较长,因此,现有基于USB进行数据传输的方案会极大地影响终端用户的体验。基于上述原因,在本发明实施例中,终端检测到USB设备插入时,发起枚举过程并在枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息,记录所述USB设备的地址及枚举信息;接收到USB数据传输指令时,无论之前是否处于USB挂起状态,在进入USB数据传输状态后均可以根据记录的所述USB设备的地址及枚举信息与所述USB设备进行数据传输,而不需要重新发起枚举过程,这样,在基于USB进行数据传输的过程中,省略了枚举过程这一耗时较长的环节,能够缩减USB数据传输之前的准备时间,从而提升终端用户的使用体验。However, in the above process of data transmission based on USB, when the USB suspend state is transferred to the USB data transmission state, the enumeration process needs to be re-initiated and the enumeration information of the USB device is re-acquired in the re-initiated enumeration process. And performing data transmission with the USB device according to the address allocated by the USB device and the re-acquired enumeration information, so that if the terminal frequently enters the USB suspend state, the USB data transmission is transferred from the USB suspend state. In the state, the enumeration process needs to be initiated frequently. Since the enumeration process takes a long time, the existing data transmission scheme based on USB greatly affects the experience of the end user. For the above reasons, in the embodiment of the present invention, when the terminal detects that the USB device is inserted, the terminal initiates an enumeration process and allocates an address for the USB device in the enumeration process and acquires enumeration information of the USB device, and records the The address and enumeration information of the USB device; when receiving the USB data transfer command, regardless of whether it is in the USB suspend state before, after entering the USB data transfer state, the address and enumeration information of the USB device recorded according to the record may be The USB device performs data transmission without re-initiating the enumeration process. Thus, in the process of data transmission based on USB, the long and long process of enumeration process is omitted, and the preparation before USB data transmission can be reduced. Time to enhance the end user experience.
本发明实施例中,所述终端可以是支持USB数据传输功能的终端设备,例如:手机、平板电脑(pad)、电脑(PC)、智能电视等终端设备。In the embodiment of the present invention, the terminal may be a terminal device that supports a USB data transmission function, such as a mobile phone, a tablet (PC), a computer (PC), a smart TV, and the like.
下面结合附图对本发明具体实施方式作进一步说明。The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings.
本发明实施例提出了一种基于USB进行数据传输的方法,如图2所示,该方法包括: The embodiment of the invention provides a method for data transmission based on USB. As shown in FIG. 2, the method includes:
步骤S200:终端检测到USB设备插入时,发起枚举过程并在枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息,记录所述USB设备的地址及枚举信息。Step S200: When the terminal detects that the USB device is inserted, the terminal initiates an enumeration process and allocates an address for the USB device in the enumeration process, and obtains enumeration information of the USB device, and records the address and enumeration information of the USB device. .
这里,枚举就是终端(Host端)检测到USB设备(Device端)插入时,从所述USB设备读取枚举信息,所述枚举信息包括设备描述符、配置描述符、接口描述符、端点描述符等,根据枚举信息,根据所述枚举信息确定所述USB设备的类型,以及与所述USB设备进行数据传输的通信方式,这样,所述终端可以根据所述USB设备的类型及通信方式,来加载合适的驱动程序与所述USB设备建立通信连接并进行数据传输。Here, the enumeration is that when the terminal (host side) detects that the USB device (Device side) is inserted, the enumeration information is read from the USB device, and the enumeration information includes a device descriptor, a configuration descriptor, an interface descriptor, An endpoint descriptor or the like, according to the enumeration information, determining, according to the enumeration information, a type of the USB device, and a communication manner of performing data transmission with the USB device, so that the terminal may be according to the type of the USB device And communication mode to load a suitable driver to establish a communication connection with the USB device and perform data transmission.
这里,所述终端如何发起枚举过程并在枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息,属于已有USB技术规范范畴,这里不再赘述。Here, how the terminal initiates the enumeration process and allocates an address for the USB device in the enumeration process and obtains the enumeration information of the USB device belongs to the existing USB technical specification category, and details are not described herein again.
这里,所述终端通常是通过标准USB接口、迷你(Mini)USB接口或微型(Micro)USB接口与所述USB设备连接。Here, the terminal is usually connected to the USB device through a standard USB interface, a mini (USB) USB interface or a micro (USB) USB interface.
步骤S201:终端接收到USB数据传输指令时,根据记录的所述USB设备的地址及枚举信息与所述USB设备进行数据传输。Step S201: When receiving the USB data transmission instruction, the terminal performs data transmission with the USB device according to the recorded address and enumeration information of the USB device.
这里,确定终端用户需要传输数据时,触发终端内部发送USB数据传输指令;终端接收到USB数据传输指令时,进入USB数据传输状态,开始与所述USB设备进行数据传输,下面对如何根据记录的所述USB设备的地址及枚举信息与所述USB设备进行数据传输,进行详细说明:Here, when it is determined that the terminal user needs to transmit data, the terminal internally transmits a USB data transmission instruction; when the terminal receives the USB data transmission instruction, enters the USB data transmission state, and starts data transmission with the USB device, how to record according to the following The address and enumeration information of the USB device are transmitted with the USB device for detailed description:
首先,根据记录的所述USB设备的枚举信息,确定所述USB设备的类型以及与所述USB设备进行数据传输的通信方式;First, determining, according to the recorded enumeration information of the USB device, a type of the USB device and a communication manner for performing data transmission with the USB device;
然后,根据所述USB设备的类型、所述通信方式、记录的所述USB设备的地址与所述USB设备建立通信连接并进行数据传输。Then, a communication connection is established with the USB device according to the type of the USB device, the communication mode, and the recorded address of the USB device, and data transmission is performed.
例如,终端接收到USB数据传输退出指令时,进入USB挂起状态,以 降低所述终端的功耗。For example, when the terminal receives the USB data transmission exit instruction, it enters the USB suspend state to Reduce the power consumption of the terminal.
这里,终端接收到USB数据传输退出指令时,即:此时不需要与所述USB设备进行数据传输,进入USB挂起状态,所述USB挂起状态为低功耗状态;所述终端进入USB挂起状态后,保持所述USB设备的地址不变。Here, when the terminal receives the USB data transmission exit instruction, that is, the data transmission with the USB device does not need to be performed at this time, and the USB suspend state is entered, the USB suspend state is a low power consumption state; the terminal enters the USB After the suspend state, the address of the USB device is kept unchanged.
这里,所述终端处于USB挂起状态后,确定终端用户需要重新传输数据时,触发终端内部发送USB数据传输指令:终端接收到USB数据传输指令,由USB挂起状态转入USB数据传输状态,根据记录的所述USB设备的地址及枚举信息与所述USB设备进行数据传输。Here, after the terminal is in the USB suspend state, when determining that the terminal user needs to retransmit data, the trigger terminal internally sends a USB data transmission instruction: the terminal receives the USB data transmission instruction, and the USB suspension state is transferred to the USB data transmission state. Data transmission is performed with the USB device according to the recorded address and enumeration information of the USB device.
例如,所述终端检测出所述USB设备拔出时,结束处理本次流程;并在再次检测到所述USB设备插入时,重新发起枚举过程并在重新发起的枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息,更新记录的所述USB设备的地址及枚举信息。For example, when the terminal detects that the USB device is unplugged, it ends the process of processing; and when it detects that the USB device is inserted again, re-initiates the enumeration process and is in the re-initiated enumeration process. The USB device allocates an address and acquires enumeration information of the USB device, and updates the recorded address and enumeration information of the USB device.
本发明实施例中,接收到USB数据传输指令时,无论之前是否处于USB挂起状态,在进入USB数据传输状态后均可以根据记录的所述USB设备的地址及枚举信息与所述USB设备进行数据传输,而不需要重新发起枚举过程,这样,在基于USB进行数据传输的过程中,省略了枚举过程这一耗时较长的环节,能够缩减USB数据传输之前的准备时间,从而提升终端用户的使用体验。In the embodiment of the present invention, when receiving the USB data transmission instruction, regardless of whether the USB suspension state is previously, after entering the USB data transmission state, the USB device may be recorded according to the address and the enumeration information of the USB device. Data transmission without re-initiating the enumeration process, thus omitting the time-consuming part of the enumeration process in the process of data transmission based on USB, and reducing the preparation time before USB data transmission, thereby Improve the end user experience.
为实现上述方法,本发明实施例还提供了一种终端,由于该终端解决问题的原理与方法相似,因此,终端的实施过程及实施原理均可以参见前述方法的实施过程及实施原理描述,重复之处不再赘述。In order to implement the foregoing method, the embodiment of the present invention further provides a terminal. The principle and method for solving the problem are similar. Therefore, the implementation process and implementation principles of the terminal can be described in the implementation process and the implementation principle of the foregoing method. It will not be repeated here.
如图3所示,本发明实施例提供的终端,该终端包括:记录模块300、控制模块301;其中,As shown in FIG. 3, the terminal provided by the embodiment of the present invention includes: a recording module 300 and a control module 301;
所述记录模块300,配置为在所述控制模块301在枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息之后,记录所述USB 设备的地址及枚举信息;The recording module 300 is configured to record the USB after the control module 301 allocates an address to the USB device and obtains enumeration information of the USB device in an enumeration process. The address and enumeration information of the device;
所述控制模块301,配置为在检测到通用串行总线USB设备插入时,发起枚举过程并在枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息;并在接收到USB数据传输指令时,根据记录的USB设备的地址及枚举信息与所述USB设备进行数据传输。The control module 301 is configured to, when detecting the insertion of the universal serial bus USB device, initiate an enumeration process and allocate an address for the USB device in the enumeration process and obtain enumeration information of the USB device; Upon receiving the USB data transfer instruction, data transmission is performed with the USB device according to the recorded address and enumeration information of the USB device.
其中,所述控制模块通过以下接口中的一种与所述USB设备连接:标准USB接口、Mini USB接口或Micro USB接口。The control module is connected to the USB device through one of the following interfaces: a standard USB interface, a Mini USB interface, or a Micro USB interface.
其中,所述枚举信息包括设备描述符、配置描述符、接口描述符、端点描述符。The enumeration information includes a device descriptor, a configuration descriptor, an interface descriptor, and an endpoint descriptor.
为了描述的方便,以上所述无线访问节点的各部分以功能分为各种模块或单元分别描述。以上功能单元或模块的划分方式仅为本发明实施例给出的一种优选实现方式,功能单元或模块的划分方式不构成对本发明的限制。For convenience of description, the various parts of the wireless access node described above are separately described by functions into various modules or units. The division of the above functional units or modules is only a preferred implementation manner of the embodiments of the present invention, and the division manner of the functional units or modules does not constitute a limitation of the present invention.
具体实施中,所述控制模块301配置为:In a specific implementation, the control module 301 is configured to:
根据记录的所述USB设备的枚举信息,确定所述USB设备的类型以及与所述USB设备进行数据传输的通信方式;Determining, according to the enumerated information of the USB device, a type of the USB device and a communication mode for performing data transmission with the USB device;
根据所述USB设备的类型、所述通信方式、记录的所述USB设备的地址与所述USB设备建立通信连接并进行数据传输。And establishing a communication connection with the USB device according to the type of the USB device, the communication manner, and the recorded address of the USB device, and performing data transmission.
具体实施中,所述控制模块301,还配置为在接收到USB数据传输退出指令时,进入USB挂起状态。In a specific implementation, the control module 301 is further configured to enter a USB suspend state when receiving a USB data transmission exit instruction.
在实际应用中,所述记录模块200、所述控制模块201可由位于终端的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)实现。In practical applications, the recording module 200 and the control module 201 may be implemented by a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA) located at the terminal. )achieve.
本发明实施例还记载了一种计算机存储介质,所述计算机存储介质中存储有可执行指令,所述可执行指令用于执行上述的数据传输方法。 The embodiment of the invention further describes a computer storage medium, wherein the computer storage medium stores executable instructions, and the executable instructions are used to execute the data transmission method described above.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、随机存取存储器(RAM,Random Access Memory)、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。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 the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage medium includes: a mobile storage device, a random access memory (RAM), a read-only memory (ROM), a magnetic disk, or an optical disk. A medium that can store program code.
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、RAM、ROM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for making A computer device (which may be a personal computer, server, or network device, etc.) performs all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a RAM, a ROM, a magnetic disk, or an optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (11)

  1. 一种数据传输方法,包括:A data transmission method includes:
    检测到通用串行总线USB设备插入,发起枚举过程并在枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息,记录所述USB设备的地址及枚举信息;Detecting a universal serial bus USB device insertion, initiating an enumeration process, and assigning an address to the USB device in an enumeration process and acquiring enumeration information of the USB device, recording an address and enumeration information of the USB device;
    接收USB数据传输指令,根据记录的USB设备的地址及枚举信息与所述USB设备进行数据传输。Receiving a USB data transmission instruction, and performing data transmission with the USB device according to the recorded address and enumeration information of the USB device.
  2. 根据权利要求1所述的方法,其中,所述根据记录的USB设备的地址及枚举信息与所述USB设备进行数据传输,包括:The method of claim 1, wherein the data transmission with the USB device according to the recorded address and enumeration information of the USB device comprises:
    根据记录的所述USB设备的枚举信息,确定所述USB设备的类型以及与所述USB设备进行数据传输的通信方式;Determining, according to the enumerated information of the USB device, a type of the USB device and a communication mode for performing data transmission with the USB device;
    根据所述USB设备的类型、所述通信方式、记录的所述USB设备的地址与所述USB设备建立通信连接并进行数据传输。And establishing a communication connection with the USB device according to the type of the USB device, the communication manner, and the recorded address of the USB device, and performing data transmission.
  3. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    接收到USB数据传输退出指令时,进入USB挂起状态。When the USB data transfer exit command is received, the USB suspend state is entered.
  4. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    通过以下接口中的一种与所述USB设备连接:标准USB接口、Mini USB接口或Micro USB接口。Connect to the USB device through one of the following interfaces: standard USB interface, Mini USB interface or Micro USB interface.
  5. 根据权利要求1至4任一项所述的方法,其中,所述枚举信息包括设备描述符、配置描述符、接口描述符、端点描述符。The method according to any one of claims 1 to 4, wherein the enumeration information comprises a device descriptor, a configuration descriptor, an interface descriptor, an endpoint descriptor.
  6. 一种终端,所述终端包括:记录模块、控制模块;其中,A terminal, the terminal includes: a recording module and a control module; wherein
    所述记录模块,配置为记录所述USB设备的地址及枚举信息;The recording module is configured to record an address and enumeration information of the USB device;
    所述控制模块,配置为在检测到USB设备插入时,发起枚举过程并在枚举过程中为所述USB设备分配地址并获取所述USB设备的枚举信息;并在接收到USB数据传输指令时,根据记录的USB设备的地址及枚举信息与 所述USB设备进行数据传输。The control module is configured to, when detecting the insertion of the USB device, initiate an enumeration process and allocate an address for the USB device in the enumeration process and obtain enumeration information of the USB device; and receive the USB data transmission When commanding, based on the recorded USB device address and enumeration information The USB device performs data transmission.
  7. 根据权利要求6所述的终端,其中,所述控制模块还配置为:The terminal of claim 6, wherein the control module is further configured to:
    根据记录的所述USB设备的枚举信息,确定所述USB设备的类型以及与所述USB设备进行数据传输的通信方式;Determining, according to the enumerated information of the USB device, a type of the USB device and a communication mode for performing data transmission with the USB device;
    根据所述USB设备的类型、所述通信方式、记录的所述USB设备的地址与所述USB设备建立通信连接并进行数据传输。And establishing a communication connection with the USB device according to the type of the USB device, the communication manner, and the recorded address of the USB device, and performing data transmission.
  8. 根据权利要求6所述的终端,其中,所述控制模块,还配置为在接收到USB数据传输退出指令时,进入USB挂起状态。The terminal of claim 6, wherein the control module is further configured to enter a USB suspend state upon receiving a USB data transfer exit instruction.
  9. 根据权利要求6所述的终端,其中,所述控制模块通过以下接口中的一种与所述USB设备连接:标准USB接口、Mini USB接口或Micro USB接口。The terminal according to claim 6, wherein the control module is connected to the USB device through one of the following interfaces: a standard USB interface, a Mini USB interface, or a Micro USB interface.
  10. 根据权利要求6至9任一项所述的终端,其中,所述枚举信息包括设备描述符、配置描述符、接口描述符、端点描述符。The terminal according to any one of claims 6 to 9, wherein the enumeration information includes a device descriptor, a configuration descriptor, an interface descriptor, and an endpoint descriptor.
  11. 一种计算机存储介质,所述计算机存储介质中存储有可执行指令,所述可执行指令用于执行权利要求1至5任一项所述的数据传输方法。 A computer storage medium having stored therein executable instructions for performing the data transmission method of any one of claims 1 to 5.
PCT/CN2015/075667 2014-10-10 2015-04-01 Data transmission method, terminal and computer storage medium WO2016054898A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410529934.4A CN105573939A (en) 2014-10-10 2014-10-10 Method for carrying out data transmission on the basis of universal serial bus, and terminal
CN201410529934.4 2014-10-10

Publications (1)

Publication Number Publication Date
WO2016054898A1 true WO2016054898A1 (en) 2016-04-14

Family

ID=55652534

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/075667 WO2016054898A1 (en) 2014-10-10 2015-04-01 Data transmission method, terminal and computer storage medium

Country Status (2)

Country Link
CN (1) CN105573939A (en)
WO (1) WO2016054898A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132899A (en) * 2016-12-01 2018-06-08 中兴通讯股份有限公司 A kind of transmission mode configuration method, apparatus and system
CN111176854B (en) * 2019-11-22 2023-12-29 惠州市德赛西威智能交通技术研究院有限公司 Method and system for synchronizing exit of Carplay
CN114372017B (en) * 2022-01-04 2023-12-12 中国大恒(集团)有限公司北京图像视觉技术分公司 Enumeration method without affecting normal operation of CXP equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120054402A1 (en) * 2010-08-27 2012-03-01 Dhinesh Sasidaran Communicatively coupling, at least in part, serial bus controller to at least one serial bus device
US20120066361A1 (en) * 2010-09-14 2012-03-15 Samsung Electronics Co., Ltd. Server device connecting with usb device and device sharing method
US8176216B1 (en) * 2008-03-31 2012-05-08 Total Phase, Inc. Methods for analyzing USB data traffic using a single USB host controller
CN102890662A (en) * 2012-10-19 2013-01-23 无锡海森诺科技有限公司 Method for identifying host operating system by executing enumeration twice on USB (Universal Serial Bus) HID (Human Interface Device)
CN103559149A (en) * 2013-10-30 2014-02-05 上海斐讯数据通信技术有限公司 Method and system for working mode switchover of universal serial bus on-the-go (USB OTG) dual-role devices

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253904A (en) * 2011-06-08 2011-11-23 广州视睿电子科技有限公司 Method and device for identifying computer operating system by utilizing USB equipment
CN103577231A (en) * 2013-10-31 2014-02-12 南京熊猫电子股份有限公司 Method for judging host operating system through USB embedded device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8176216B1 (en) * 2008-03-31 2012-05-08 Total Phase, Inc. Methods for analyzing USB data traffic using a single USB host controller
US20120054402A1 (en) * 2010-08-27 2012-03-01 Dhinesh Sasidaran Communicatively coupling, at least in part, serial bus controller to at least one serial bus device
US20120066361A1 (en) * 2010-09-14 2012-03-15 Samsung Electronics Co., Ltd. Server device connecting with usb device and device sharing method
CN102890662A (en) * 2012-10-19 2013-01-23 无锡海森诺科技有限公司 Method for identifying host operating system by executing enumeration twice on USB (Universal Serial Bus) HID (Human Interface Device)
CN103559149A (en) * 2013-10-30 2014-02-05 上海斐讯数据通信技术有限公司 Method and system for working mode switchover of universal serial bus on-the-go (USB OTG) dual-role devices

Also Published As

Publication number Publication date
CN105573939A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
WO2017084400A1 (en) Nvme networked storage implementation method, terminal, server, and system
US7895385B2 (en) Establishing communication over serial buses in a slave device
US10721309B2 (en) System and method for supporting data communication in a heterogeneous environment
WO2013139184A1 (en) Usb device communication method, device and system
WO2015070640A1 (en) Remote accessing method for device, thin client, and virtual machine
TWI630486B (en) Charging method, mobile terminal, and charging device
WO2014101626A1 (en) Usb device and method thereof for recognizing host operating system
KR20160013174A (en) A method, apparatus and system for performing management component transport protocol (mctp) communications with a universal serial bus (usb) device
US10789180B2 (en) SPI-based data transmission method and device
US20150065053A1 (en) Method of controlling short-range wireless communication and apparatus supporting the same
CN113545164A (en) Electronic device for transmitting response message in bluetooth network environment and method thereof
WO2016054898A1 (en) Data transmission method, terminal and computer storage medium
WO2017185680A1 (en) Terminal interaction control method and apparatus
KR20190036165A (en) Method for communicating multi devices using usb type c interface and electronic device for the same
US20190013962A1 (en) Modular communication framework
US20160077986A1 (en) Electronic apparatus providing real-time switching and sharing of usb electronic devices among hosts
WO2020258782A1 (en) Data transmission method applicable to bluetooth card reader, and electronic apparatus
CN112817899B (en) PCIE-based data transmission method and device, storage medium and electronic equipment
US11144305B2 (en) Method for updating IC firmware
US20150350014A1 (en) Networking implementation using a converged high speed input/output fabric technology
WO2022126398A1 (en) Message notification method and apparatus
CN104899164B (en) Address addressing method for integrated circuit bus, integrated circuit bus device and system
CN110990313B (en) Method, equipment and storage medium for processing clock stretching of I3C bus
WO2019104989A1 (en) Terminal and communication method
CN115328827B (en) Storage system and method based on PCIE and electronic equipment

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: 15848894

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15848894

Country of ref document: EP

Kind code of ref document: A1