WO2017049973A1 - Data transmission control method, host device, usb device and system - Google Patents
Data transmission control method, host device, usb device and system Download PDFInfo
- Publication number
- WO2017049973A1 WO2017049973A1 PCT/CN2016/086763 CN2016086763W WO2017049973A1 WO 2017049973 A1 WO2017049973 A1 WO 2017049973A1 CN 2016086763 W CN2016086763 W CN 2016086763W WO 2017049973 A1 WO2017049973 A1 WO 2017049973A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- usb device
- switching instruction
- data transmission
- mode
- mode switching
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
Definitions
- This document relates to but not limited to the field of USB (Universal Serial Bus) data transmission, and relates to a data transmission control method, a host device, a USB device and a system.
- USB Universal Serial Bus
- USB 3.0 products can greatly improve the bandwidth, achieve better power management, and enable the host to provide more power for the device, enabling the host to recognize the device faster.
- the new protocol makes the data processing more efficient, but in the process of use, the RF interference of USB 3.0 is relatively large, and the driver of the USB 3.0 host controller of some computer manufacturers is not perfect enough.
- the USB 3.0 host controller driver is formed. A standard is more difficult, and the data terminal products should be adapted to the USB 3.0 host controller drivers of various manufacturers, and there will be some problems. Data terminal products have abnormalities during use and cannot operate normally. Users can continue to use them by plugging or unplugging or restarting the terminal products, but this does not completely solve this problem.
- USB host controller hub of USB3.0
- data interruption may occur, and the network card driver may have a series of problems such as a yellow exclamation mark.
- the user only has to re-plug, restart the terminal data product or change the USB 2.0.
- the hub can be used normally. These operations are relatively time consuming, and re-plugging or restarting the terminal product cannot completely solve the problem.
- the embodiment of the invention provides a data transmission control method, a host device, a USB device and a system, which realize automatic switching of the speed mode, and does not need to re-plug the device.
- the embodiment of the invention provides a data transmission control method, which is applied to a host device, and the method includes: detecting whether an abnormality of data transmission between the universal serial bus USB device and the universal serial bus;
- a mode switching instruction is sent to the USB device, and the mode switching instruction is used to instruct the USB device to switch the transmission mode.
- the mode switching instruction carries a transmission rate parameter, where the mode switching instruction is used to instruct the USB device to switch to a corresponding transmission mode according to the transmission rate parameter.
- the sending the mode switching instruction to the USB device includes:
- the mode switching instruction is transmitted by means of a USB request command, a small computer system interface SCSI command, or a hypertext transfer protocol HTTP request.
- the method further includes: the host device and the USB device perform data transmission according to the switched transmission mode.
- the embodiment of the invention further provides a data transmission control method, which is applied to a USB device, and the method includes:
- the transmission mode is switched according to the mode switching instruction.
- the mode switching instruction carries a transmission rate parameter
- the switching the transmission mode according to the mode switching instruction includes:
- modifying the rate parameter supported by the USB device to the transmission rate parameter comprises: modifying a rate parameter supported by the USB device by creating a device node or changing a USB device tree.
- the switching the transmission mode according to the mode switching instruction includes:
- the USB device selects an alternate transmission rate and reports it to the host device
- the embodiment of the invention further provides a host device, where the host device includes:
- a detection module configured to detect whether the data transmission of the universal serial bus USB device is abnormal
- the control module is configured to send a mode switching instruction to the USB device when the detecting module detects the abnormality of the data transmission, where the mode switching instruction is used to instruct the USB device to switch the transmission mode.
- the mode switching instruction carries a transmission rate parameter.
- the device further includes: a switching module, configured to switch according to the USB device The subsequent transmission mode performs data transmission.
- a switching module configured to switch according to the USB device The subsequent transmission mode performs data transmission.
- the embodiment of the invention further provides a USB device, the device comprising:
- a receiving module configured to receive a mode switching instruction of the host device
- the switching module is configured to switch the transmission mode according to the mode switching instruction.
- the mode switching instruction carries a transmission rate parameter
- the switching module is configured to modify a rate parameter supported by the USB device to the transmission rate parameter.
- An embodiment of the present invention further provides a data transmission control system, where the system includes a host device and a USB device, where
- the host device includes:
- the detection module is configured to detect whether the data transmission of the USB device is abnormal
- control module configured to send a mode switching instruction to the USB device when the detecting module detects the data transmission abnormality, where the mode switching instruction is used to instruct the USB device to switch a transmission mode
- the USB device includes:
- a receiving module configured to receive a mode switching instruction of the host device
- the switching module is configured to switch to the transmission mode according to the mode switching instruction.
- the embodiment of the present invention provides a data transmission control method, a host device, a USB device, and a system.
- the host device sends a mode switching instruction to the USB device, where the mode is The switching instruction instructs the USB device to switch the transmission mode, and solves a series of problems such as data interruption during the long-term use of the hub and yellowing of the network card driver, and the user only re-plugs, restarts the terminal data product or changes the USB.
- the problem that the 2.0 hub can be used normally.
- the embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, implements a data transmission control method on the host device side.
- An embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, the USB device is implemented.
- FIG. 1 is a flowchart of a data transmission control method according to Embodiment 1 of the present invention.
- FIG. 2 is another flowchart of a data transmission control method according to Embodiment 1 of the present invention.
- FIG. 3 is a flowchart of initializing a data transmission control system according to Embodiment 1 of the present invention.
- FIG. 5 is a schematic structural diagram of a data transmission control system according to Embodiment 2 of the present invention.
- FIG. 1 is a flowchart of a data transmission control method according to Embodiment 1 of the present invention.
- the data transmission control method shown in FIG. 1 is applied to a host device, and the method includes:
- Step S11 detecting whether the data transmission of the USB device is abnormal
- Step S12 When detecting that the data transmission with the USB device is abnormal, send a mode switching instruction to the USB device, where the mode switching instruction is used to instruct the USB device to switch the transmission mode.
- the mode switching instruction carries a transmission rate parameter, and the mode switching instruction is used to instruct the USB device to switch to a corresponding transmission mode according to the transmission rate parameter.
- FIG. 2 is a flowchart of a data transmission control method according to Embodiment 1 of the present invention.
- the data transmission control method shown in FIG. 2 is applied to a USB device, and the method includes:
- Step S21 The USB device receives a mode switching instruction of the host device.
- Step S22 The USB device switches the transmission mode according to the mode switching instruction.
- switching the transmission mode according to the mode switching instruction includes:
- modifying the USB device support rate parameter to the transmission rate parameter includes: modifying the USB device support rate parameter by creating a device node mode or changing a USB device tree, where each support rate parameter corresponds to one Transfer mode.
- the host device and the USB device perform data transmission according to the switched transmission mode.
- FIG. 3 is a flowchart of initializing a data transmission control system according to an embodiment of the present invention, and the method shown in FIG. 3 includes:
- the host device and the USB device are respectively initialized, and the USB device is configured according to the transmission mode supported by the host device, and finally adapted to a transmission mode to establish communication for data transmission.
- each transmission mode corresponds to a maximum supported transmission rate.
- the commonly used transmission modes are USB3.0 mode, USB2.0 mode, and USB1.0 mode.
- the initialization of the host device and the USB device is relatively common in the prior art and is described excessively herein.
- FIG. 4 is a flowchart of a data transmission control method according to an embodiment of the present invention, and the data transmission control method shown in FIG. 4 includes:
- Step 401 The host device establishes a connection with the USB device, and performs data transmission according to the initial transmission mode.
- the host device After the USB device is inserted into the target host device, the host device is initialized in a short time, and the host device is connected to the initial transmission mode established by the USB device.
- the host device and the USB device establish a communication connection and perform normal data interaction.
- Step 402 When the host device detects that the data transmission is abnormal, the host device sends a mode switching instruction to the USB device.
- the detection data transmission is abnormal, that is, the data cannot be normally transmitted, such as data interruption, network card driving abnormality, and the like.
- the mode switching instruction is used to instruct the USB device to switch a transmission mode.
- the mode switching instruction may carry a transmission rate parameter, and if the transmission rate parameter is carried, the USB device performs the switching of the transmission mode according to the transmission rate parameter.
- the host device sends a mode switching instruction to notify the host device to switch, and may further include a transmission rate corresponding to the data transmission mode to be switched, and the mode switching instruction may be through a USB request instruction, a small computer system interface (Small Computer System Interface, SCSI) instructions or Hypertext Transfer Protocol (HTTP) request instructions are implemented.
- a mode switching instruction may be through a USB request instruction, a small computer system interface (Small Computer System Interface, SCSI) instructions or Hypertext Transfer Protocol (HTTP) request instructions are implemented.
- SCSI Small Computer System Interface
- HTTP Hypertext Transfer Protocol
- Step 403 The USB device receives a mode switching instruction of the host device.
- the USB device After receiving the mode switching instruction sent by the host device, the USB device parses the mode switching instruction, and if the mode switching instruction carries the transmission rate, directly switches according to the agreed principle, and skips to step 408; The mode switching instruction does not carry the transmission rate, and the process proceeds to step 404.
- Step 404 The USB device selects an alternate transmission rate and reports the host device to the host device.
- Step 405 the host device determines whether the backup transmission rate is supported, if yes, skip to step 406; if not, skip to step 407, or repeat step 404;
- Step 406 the host device notifies the USB device and switches according to the transmission rate configuration, and jumps to step 408;
- Step 407 Notify the USB device to maintain the current transmission mode or perform step 404 again.
- Step 408 The USB device switches to the corresponding transmission mode according to the transmission rate of the switching mode instruction or the standby rate supported by the host device.
- the host device After the host device receives the transmission mode switched by the USB device, the host device performs ACK confirmation, and the USB device establishes a connection according to the speed mode.
- the mode switching instruction carries a transmission rate parameter.
- the USB device switches the transmission mode according to the received command, and the USB data card type terminal device completes the speed mode configuration adapted to the target host device, thereby establishing the Interfaces (Interrupt Bulk IN/OUT Pipe connection) communication of the speed mode, such that The USB data card type terminal device operates normally according to the speed mode.
- Interfaces Interrupt Bulk IN/OUT Pipe connection
- the acquisition of the transmission rate parameter can be implemented by the following methods: as long as the host device and the USB device agree on which technical solution to adopt, the transmission mode can be switched:
- USB2.0 rate parameters in the terminal such as USB2.0 and USB1.0 Mode switching, preset the rate parameter of USB1.0 in the terminal;
- Switching the transmission mode can be implemented in various ways. The following is an example of modifying the speed parameter by creating a device node or changing the USB device tree.
- Create device node Set a global variable that can read and write permissions on the USB device.
- the USB device writes the variable according to the resolution rate parsed in the mode switching instruction. This variable can be used to modify the USB maximum transmission speed parameter value. Switch the transmission mode.
- the USB device tree is composed of a plurality of branches, such as a transmission rate parameter and other parameters of the configuration device.
- the USB kernel layer submodule receives the switching instruction speed parameter, and configures the transmission rate to be parsed by the switching instruction.
- the transmission mode is switched on one of the branches of the transmission idea.
- FIG. 5 is a schematic structural diagram of a data transmission control system according to Embodiment 2 of the present invention.
- the data transmission control system shown in FIG. 5 includes a host device 51 and a USB device 52.
- the host device 51 and the USB device 52 are connected by a USB cable.
- the host device 51 includes a detection module 511 and a control module 512.
- the detection module 511 is configured to detect whether the data transmission is abnormal.
- the control module 512 is configured to send a mode switch to the USB device when the detection module 511 detects the abnormality of the data transmission.
- the instruction, the mode switching instruction is used to instruct the USB device to switch a transmission mode.
- the USB device 52 includes a receiving module 521 and a switching module 522, and the receiving module 521 is configured to receive a mode switching instruction of the host device; the switching module 522 is configured to switch the transmission mode according to the mode switching instruction.
- the host device 51 and the USB device 52 perform data transmission through the switched transmission mode.
- the technical solution provided by the embodiment of the invention realizes automatic adaptation of the USB speed mode, and further solves The problem of re-plugging in case of high-speed transmission abnormality.
- the embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, implements a data transmission control method on the host device side.
- the embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, implements a data transmission control method on the USB device side.
- each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
- This application is not limited to any specific combination of hardware and software.
- the above technical solution realizes the automatic adaptation of the USB speed mode, and solves the problem that the high-speed transmission abnormality needs to be re-plugged.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
Abstract
A data transmission control method, a host device, a USB device and a system. The data transmission control method comprises: detecting whether the data transmission with a universal serial bus (USB) device is abnormal; when it is detected that the data transmission with the USB device is abnormal, sending a mode switching instruction to the USB device, wherein the mode switching instruction is used for instructing the USB device to switch transmission mode. The above-mentioned technical solution solves a series of problems in data transmission caused by data interruption and yellow exclamation marks occurring in network card driving, and the problem of needing to plug in again.
Description
本文涉及但不限于USB(Universal Serial Bus,通用串行总线)数据传输领域,涉及一种数据传输控制方法、主机设备、USB设备及系统。This document relates to but not limited to the field of USB (Universal Serial Bus) data transmission, and relates to a data transmission control method, a host device, a USB device and a system.
现在USB 3.0的产品越来越多,USB3.0的产品能够极大提高了带宽,实现了更好的电源管理,也能够使主机为器件提供更多的功率,能够使主机更快地识别器件,新的协议使得数据处理的效率更高,但是在使用过程由于USB 3.0的射频干扰比较大、部分电脑厂商的USB 3.0的主机控制器的驱动做的不够完善,目前USB 3.0主机控制器驱动形成一个标准是比较困难的,数据类终端产品要适配各个厂商的USB 3.0主机控制器驱动,也就会存在一些问题。数据类终端产品在使用过程中存在异常,不能正常运行,用户可以通过插拔或者重启终端产品来继续使用,但这并不能完全解决此问题。Nowadays, more and more USB 3.0 products, USB3.0 products can greatly improve the bandwidth, achieve better power management, and enable the host to provide more power for the device, enabling the host to recognize the device faster. The new protocol makes the data processing more efficient, but in the process of use, the RF interference of USB 3.0 is relatively large, and the driver of the USB 3.0 host controller of some computer manufacturers is not perfect enough. Currently, the USB 3.0 host controller driver is formed. A standard is more difficult, and the data terminal products should be adapted to the USB 3.0 host controller drivers of various manufacturers, and there will be some problems. Data terminal products have abnormalities during use and cannot operate normally. Users can continue to use them by plugging or unplugging or restarting the terminal products, but this does not completely solve this problem.
在USB3.0的USB主机控制器(hub)长时间使用过程中可能会出现数据中断、网卡驱动出现黄叹号等一系列问题时,用户只有重新插拔、重新启动终端数据产品或者换个USB 2.0的hub才能正常使用,这些操作相对比较耗时,且重新插拔或重启终端产品都不能彻底解决此问题。When the USB host controller (hub) of USB3.0 is used for a long time, data interruption may occur, and the network card driver may have a series of problems such as a yellow exclamation mark. The user only has to re-plug, restart the terminal data product or change the USB 2.0. The hub can be used normally. These operations are relatively time consuming, and re-plugging or restarting the terminal product cannot completely solve the problem.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种数据传输控制方法、主机设备、USB设备及系统,实现了速度模式自动切换,不需要重新插拔设备。The embodiment of the invention provides a data transmission control method, a host device, a USB device and a system, which realize automatic switching of the speed mode, and does not need to re-plug the device.
本发明实施例提供了一种数据传输控制方法,应用于主机设备,所述方法包括:检测和通用串行总线USB设备的数据传输是否异常;The embodiment of the invention provides a data transmission control method, which is applied to a host device, and the method includes: detecting whether an abnormality of data transmission between the universal serial bus USB device and the universal serial bus;
在检测到和USB设备的数据传输异常时,向所述USB设备发送模式切换指令,所述模式切换指令用于指示所述USB设备切换传输模式。
When it is detected that the data transmission with the USB device is abnormal, a mode switching instruction is sent to the USB device, and the mode switching instruction is used to instruct the USB device to switch the transmission mode.
可选地,所述模式切换指令携带有传输速率参数,所述模式切换指令用于根据所述传输速率参数指示所述USB设备切换到对应的传输模式。Optionally, the mode switching instruction carries a transmission rate parameter, where the mode switching instruction is used to instruct the USB device to switch to a corresponding transmission mode according to the transmission rate parameter.
可选地,所述向所述USB设备发送模式切换指令包括:Optionally, the sending the mode switching instruction to the USB device includes:
通过USB请求指令、小型计算机系统接口SCSI指令或者超文本传输协议HTTP请求的方式发送所述模式切换指令。The mode switching instruction is transmitted by means of a USB request command, a small computer system interface SCSI command, or a hypertext transfer protocol HTTP request.
可选地,所述方法还包括:所述主机设备与所述USB设备按照切换后的传输模式进行数据传输。Optionally, the method further includes: the host device and the USB device perform data transmission according to the switched transmission mode.
本发明实施例还提供一种数据传输控制方法,应用于USB设备,所述方法包括:The embodiment of the invention further provides a data transmission control method, which is applied to a USB device, and the method includes:
接收主机设备的模式切换指令;Receiving a mode switching instruction of the host device;
根据所述模式切换指令切换传输模式。The transmission mode is switched according to the mode switching instruction.
可选地,所述模式切换指令携带有传输速率参数;Optionally, the mode switching instruction carries a transmission rate parameter;
所述根据所述模式切换指令切换传输模式包括:The switching the transmission mode according to the mode switching instruction includes:
将所述USB设备支持的速率参数修改为所述传输速率参数。Modifying the rate parameter supported by the USB device to the transmission rate parameter.
可选地,将所述USB设备支持的速率参数修改为所述传输速率参数包括:通过创建设备节点或更改USB设备树修改所述USB设备支持的速率参数。Optionally, modifying the rate parameter supported by the USB device to the transmission rate parameter comprises: modifying a rate parameter supported by the USB device by creating a device node or changing a USB device tree.
可选地,所述根据所述模式切换指令切换传输模式包括:Optionally, the switching the transmission mode according to the mode switching instruction includes:
USB设备选择一备用传输速率并上报主机设备;The USB device selects an alternate transmission rate and reports it to the host device;
当接收到所述主机设备的应答通知后,切换到所述备用传输速率对应的传输模式。After receiving the response notification from the host device, switching to the transmission mode corresponding to the alternate transmission rate.
本发明实施例还提供一种主机设备,所述主机设备包括:The embodiment of the invention further provides a host device, where the host device includes:
检测模块,设置为检测和通用串行总线USB设备的数据传输是否异常;a detection module configured to detect whether the data transmission of the universal serial bus USB device is abnormal;
控制模块,设置为在所述检测模块检测到所述数据传输异常时,向所述USB设备发送模式切换指令,所述模式切换指令用于指示所述USB设备切换传输模式。The control module is configured to send a mode switching instruction to the USB device when the detecting module detects the abnormality of the data transmission, where the mode switching instruction is used to instruct the USB device to switch the transmission mode.
可选地,所述模式切换指令携带有传输速率参数。Optionally, the mode switching instruction carries a transmission rate parameter.
可选地,所述设备还包括:切换模块,设置为与所述USB设备按照切换
后的传输模式进行数据传输。Optionally, the device further includes: a switching module, configured to switch according to the USB device
The subsequent transmission mode performs data transmission.
本发明实施例还提供一种USB设备,所述设备包括:The embodiment of the invention further provides a USB device, the device comprising:
接收模块,设置为接收主机设备的模式切换指令;a receiving module, configured to receive a mode switching instruction of the host device;
切换模块,设置为根据所述模式切换指令切换传输模式。The switching module is configured to switch the transmission mode according to the mode switching instruction.
可选地,所述模式切换指令携带有传输速率参数;Optionally, the mode switching instruction carries a transmission rate parameter;
所述切换模块是设置为将所述USB设备支持的速率参数修改为所述传输速率参数。The switching module is configured to modify a rate parameter supported by the USB device to the transmission rate parameter.
本发明实施例还提供一种数据传输控制系统,所述系统包括主机设备和USB设备,其中,An embodiment of the present invention further provides a data transmission control system, where the system includes a host device and a USB device, where
所述主机设备包括:The host device includes:
检测模块,设置为检测和USB设备的数据传输是否异常;The detection module is configured to detect whether the data transmission of the USB device is abnormal;
控制模块,设置为在所述检测模块检测到所述数据传输异常时,向所述USB设备发送模式切换指令,所述模式切换指令用于指示所述USB设备切换传输模式;a control module, configured to send a mode switching instruction to the USB device when the detecting module detects the data transmission abnormality, where the mode switching instruction is used to instruct the USB device to switch a transmission mode;
所述USB设备包括:The USB device includes:
接收模块,设置为接收主机设备的模式切换指令;a receiving module, configured to receive a mode switching instruction of the host device;
切换模块,设置为根据所述模式切换指令切换为传输模式。The switching module is configured to switch to the transmission mode according to the mode switching instruction.
本发明实施例提供了一种数据传输控制方法、主机设备、USB设备及系统,本发明实施例提供的实施例通过检测到数据传输异常时,主机设备向USB设备发送模式切换指令,所述模式切换指令指示所述USB设备切换传输模式,解决了hub长时间使用过程中可能会出现数据中断、网卡驱动出现黄叹号等一系列问题时,用户只有重新插拔、重新启动终端数据产品或者换个USB 2.0的hub才能正常使用的问题。本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现主机设备侧的数据传输控制方法。The embodiment of the present invention provides a data transmission control method, a host device, a USB device, and a system. When the embodiment of the present invention detects that the data transmission is abnormal, the host device sends a mode switching instruction to the USB device, where the mode is The switching instruction instructs the USB device to switch the transmission mode, and solves a series of problems such as data interruption during the long-term use of the hub and yellowing of the network card driver, and the user only re-plugs, restarts the terminal data product or changes the USB. The problem that the 2.0 hub can be used normally. The embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, implements a data transmission control method on the host device side.
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现USB设
备侧的数据传输控制方法。An embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, the USB device is implemented.
The data transmission control method on the standby side.
在阅读并理解了附图和详细描述后,可以明白其它方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
图1是本发明实施例一的数据传输控制方法的流程图;1 is a flowchart of a data transmission control method according to Embodiment 1 of the present invention;
图2是本发明实施例一的数据传输控制方法的另一流程图;2 is another flowchart of a data transmission control method according to Embodiment 1 of the present invention;
图3是本发明实施例一的数据传输控制系统的初始化流程图;3 is a flowchart of initializing a data transmission control system according to Embodiment 1 of the present invention;
图4是本发明实施例一的数据传输控制方法的另一流程图;4 is another flowchart of a data transmission control method according to Embodiment 1 of the present invention;
图5是本发明实施例二的数据传输控制系统结构示意图。FIG. 5 is a schematic structural diagram of a data transmission control system according to Embodiment 2 of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
实施例一Embodiment 1
图1是本发明实施例一的数据传输控制方法的流程图,如图1所示的数据传输控制方法,应用于主机设备,所述方法包括:1 is a flowchart of a data transmission control method according to Embodiment 1 of the present invention. The data transmission control method shown in FIG. 1 is applied to a host device, and the method includes:
步骤S11:检测和USB设备的数据传输是否异常;Step S11: detecting whether the data transmission of the USB device is abnormal;
步骤S12:检测到和USB设备的数据传输异常时,向USB设备发送模式切换指令,所述模式切换指令用于指示所述USB设备切换传输模式。Step S12: When detecting that the data transmission with the USB device is abnormal, send a mode switching instruction to the USB device, where the mode switching instruction is used to instruct the USB device to switch the transmission mode.
本实施例中,所述模式切换指令携带有传输速率参数,所述模式切换指令根据所述传输速率参数用于指示所述USB设备切换到对应的传输模式。In this embodiment, the mode switching instruction carries a transmission rate parameter, and the mode switching instruction is used to instruct the USB device to switch to a corresponding transmission mode according to the transmission rate parameter.
图2是本发明实施例一的数据传输控制方法的流程图,如图2所示的数据传输控制方法,应用于USB设备,所述方法包括:2 is a flowchart of a data transmission control method according to Embodiment 1 of the present invention. The data transmission control method shown in FIG. 2 is applied to a USB device, and the method includes:
步骤S21:USB设备接收主机设备的模式切换指令;Step S21: The USB device receives a mode switching instruction of the host device.
步骤S22:USB设备根据所述模式切换指令切换传输模式。Step S22: The USB device switches the transmission mode according to the mode switching instruction.
可选地,在本实施例中,根据所述模式切换指令切换传输模式包括:
Optionally, in this embodiment, switching the transmission mode according to the mode switching instruction includes:
将所述USB设备支持速率参数修改为所述传输速率参数。Modifying the USB device support rate parameter to the transmission rate parameter.
本实施例中,将所述USB设备支持速率参数修改为所述传输速率参数包括:通过创建设备节点方式或者更改USB设备树修改所述USB设备支持速率参数,其中,每一个支持速率参数对应一传输模式。In this embodiment, modifying the USB device support rate parameter to the transmission rate parameter includes: modifying the USB device support rate parameter by creating a device node mode or changing a USB device tree, where each support rate parameter corresponds to one Transfer mode.
所述主机设备和所述USB设备按照切换后的传输模式进行数据传输。The host device and the USB device perform data transmission according to the switched transmission mode.
图3是本发明实施例的数据传输控制系统的初始化流程图,如图3所示的方法包括:3 is a flowchart of initializing a data transmission control system according to an embodiment of the present invention, and the method shown in FIG. 3 includes:
USB设备插入主机设备后,主机设备和USB设备分别完成初始化,USB设备根据主机设备所支持的传输模式进行配置完成,最终适配一种传输模式建立通信进行数据传输。一般USB设备中,每一种传输模式都对应一个最大支持传输速率,常用的传输模式有USB3.0模式,USB2.0模式,还可以包括USB1.0模式。主机设备和USB设备的初始化工作在现有技术中比较常用,在此过多描述。After the USB device is inserted into the host device, the host device and the USB device are respectively initialized, and the USB device is configured according to the transmission mode supported by the host device, and finally adapted to a transmission mode to establish communication for data transmission. In a typical USB device, each transmission mode corresponds to a maximum supported transmission rate. The commonly used transmission modes are USB3.0 mode, USB2.0 mode, and USB1.0 mode. The initialization of the host device and the USB device is relatively common in the prior art and is described excessively herein.
图4是本发明实施例的数据传输控制方法的流程图,如图4所示的数据传输控制方法,包括:4 is a flowchart of a data transmission control method according to an embodiment of the present invention, and the data transmission control method shown in FIG. 4 includes:
步骤401、主机设备与USB设备建立连接,并按照初始传输模式进行数据传输;Step 401: The host device establishes a connection with the USB device, and performs data transmission according to the initial transmission mode.
待USB设备插入到目标主机设备,主机设备在短时间内初始化完成,主机设备同USB设备建立的初始传输模式连接。主机设备和USB设备建立通信连接后进行正常的数据交互。After the USB device is inserted into the target host device, the host device is initialized in a short time, and the host device is connected to the initial transmission mode established by the USB device. The host device and the USB device establish a communication connection and perform normal data interaction.
步骤402、在主机设备检测到数据传输异常时,主机设备向USB设备发送模式切换指令;Step 402: When the host device detects that the data transmission is abnormal, the host device sends a mode switching instruction to the USB device.
本实施例中,检测数据传输异常,即数据不能进行正常传输,例如出现数据中断、网卡驱动异常等。In this embodiment, the detection data transmission is abnormal, that is, the data cannot be normally transmitted, such as data interruption, network card driving abnormality, and the like.
所述模式切换指令用于指示所述USB设备切换传输模式。本实施例中,所述模式切换指令可以携带有传输速率参数,携带有传输速率参数的情况下,USB设备则要根据该传输速率参数进行传输模式的切换。
The mode switching instruction is used to instruct the USB device to switch a transmission mode. In this embodiment, the mode switching instruction may carry a transmission rate parameter, and if the transmission rate parameter is carried, the USB device performs the switching of the transmission mode according to the transmission rate parameter.
本实施例中,主机设备发送模式切换指令通知主机设备要切换,还可以包括要切换的数据传输模式对应的传输速率,模式切换指令可以通过USB请求指令、小型计算机系统接口(Small Computer System Interface,SCSI)指令或者超文本传输协议(Hyper Text Transfer Protocol,HTTP)请求指令实现。In this embodiment, the host device sends a mode switching instruction to notify the host device to switch, and may further include a transmission rate corresponding to the data transmission mode to be switched, and the mode switching instruction may be through a USB request instruction, a small computer system interface (Small Computer System Interface, SCSI) instructions or Hypertext Transfer Protocol (HTTP) request instructions are implemented.
步骤403、USB设备接收主机设备的模式切换指令;Step 403: The USB device receives a mode switching instruction of the host device.
USB设备收到主机设备发送的模式切换指令后,将对所述模式切换指令进行解析,如果所述模式切换指令中携带有传输速率,则直接根据约定的原则进行切换,跳至步骤408;如果模式切换指令中未携带有传输速率,跳至步骤404。After receiving the mode switching instruction sent by the host device, the USB device parses the mode switching instruction, and if the mode switching instruction carries the transmission rate, directly switches according to the agreed principle, and skips to step 408; The mode switching instruction does not carry the transmission rate, and the process proceeds to step 404.
步骤404、USB设备选择一备用传输速率并上报主机设备;Step 404: The USB device selects an alternate transmission rate and reports the host device to the host device.
步骤405、主机设备判断是否支持所述备用传输速率,如果支持,跳至步骤406;如果不支持,跳至步骤407,或者重复执行步骤404; Step 405, the host device determines whether the backup transmission rate is supported, if yes, skip to step 406; if not, skip to step 407, or repeat step 404;
步骤406、主机设备通知USB设备并按传输速率配置进行切换,并跳至步骤408; Step 406, the host device notifies the USB device and switches according to the transmission rate configuration, and jumps to step 408;
步骤407、通知USB设备维持当前的传输模式或重新执行步骤404。Step 407: Notify the USB device to maintain the current transmission mode or perform step 404 again.
步骤408、USB设备按照切换模式指令解析的传输速率或主机设备通知支持的备用速率切换到对应的传输模式。Step 408: The USB device switches to the corresponding transmission mode according to the transmission rate of the switching mode instruction or the standby rate supported by the host device.
主机设备收到USB设备所切换的传输模式后,主机设备进行ACK确认,USB设备依据该速度模式建立连接。After the host device receives the transmission mode switched by the USB device, the host device performs ACK confirmation, and the USB device establishes a connection according to the speed mode.
在该实施例中,所述模式切换指令携带有传输速率参数。USB设备根据收到的指令对传输模式进行切换,USB数据卡类终端设备完成与目标主机设备适配的速度模式配置,进而建立该速度模式的Interfaces(Interrupt Bulk IN/OUT Pipe连接)通信,这样USB数据卡类终端设备根据该速度模式正常工作。In this embodiment, the mode switching instruction carries a transmission rate parameter. The USB device switches the transmission mode according to the received command, and the USB data card type terminal device completes the speed mode configuration adapted to the target host device, thereby establishing the Interfaces (Interrupt Bulk IN/OUT Pipe connection) communication of the speed mode, such that The USB data card type terminal device operates normally according to the speed mode.
传输速率参数的获取可以通过以下方法实现,只要主机设备和USB设备约定好采用哪种技术方案,均可以实现传输模式的切换:The acquisition of the transmission rate parameter can be implemented by the following methods: as long as the host device and the USB device agree on which technical solution to adopt, the transmission mode can be switched:
1、预设在终端中,适用于传输模式固定的场景中,比如USB3.0和USB2.0的模式切换,预设在终端中USB2.0的速率参数;比如USB2.0和USB1.0的
模式切换,预设在终端中USB1.0的速率参数;1. Preset in the terminal, suitable for scenes with fixed transmission mode, such as USB3.0 and USB2.0 mode switching, preset USB2.0 rate parameters in the terminal; such as USB2.0 and USB1.0
Mode switching, preset the rate parameter of USB1.0 in the terminal;
2、根据实际情况动态获取,适用于更灵活的场合。检测主机端口工作在USB3.0时,将所述速率参数设置为USB2.0的速率参数,检测主机端口工作在USB2.0时,将所述速率参数设置为USB1.0的速率参数,USB设备解析后直接根据所述传输速率参数进行模式切换,更加灵活。2, according to the actual situation of dynamic acquisition, suitable for more flexible occasions. When detecting that the host port works in USB3.0, set the rate parameter to a rate parameter of USB2.0, and when detecting that the host port works in USB2.0, set the rate parameter to a rate parameter of USB1.0, and the USB device. After parsing, the mode switching is directly performed according to the transmission rate parameter, which is more flexible.
切换传输模式可通过多种方式实现,下面以通过创建设备节点方式或者更改USB设备树修改速度参数为例进行说明。Switching the transmission mode can be implemented in various ways. The following is an example of modifying the speed parameter by creating a device node or changing the USB device tree.
创建设备节点:在USB设备设置一个可读可写权限的全局变量,USB设备根据模式切换指令中解析出的传输速率写入到该变量,该变量可以用来修改USB最大传输速度参数值,进一步实现传输模式的切换。Create device node: Set a global variable that can read and write permissions on the USB device. The USB device writes the variable according to the resolution rate parsed in the mode switching instruction. This variable can be used to modify the USB maximum transmission speed parameter value. Switch the transmission mode.
更改USB设备树:USB设备树是带有配置设备的传输速率参数和其他参数等多个枝组成的,USB内核层子模块收到切换指令速度参数,将传输速率配置到具有该切换指令解析出的传输思路的一个数枝上,实现传输模式的切换。Changing the USB device tree: The USB device tree is composed of a plurality of branches, such as a transmission rate parameter and other parameters of the configuration device. The USB kernel layer submodule receives the switching instruction speed parameter, and configures the transmission rate to be parsed by the switching instruction. The transmission mode is switched on one of the branches of the transmission idea.
实施例二Embodiment 2
图5是本发明实施例二的数据传输控制系统结构示意图,如图5所示的数据传输控制系统包括主机设备51和USB设备52,主机设备51和USB设备52通过USB线连接。5 is a schematic structural diagram of a data transmission control system according to Embodiment 2 of the present invention. The data transmission control system shown in FIG. 5 includes a host device 51 and a USB device 52. The host device 51 and the USB device 52 are connected by a USB cable.
主机设备51包括检测模块511和控制模块512,检测模块511设置为检测到数据传输是否异常,控制模块512设置为在所述检测模块511检测到所述数据传输异常时,向USB设备发送模式切换指令,所述模式切换指令用于指示所述USB设备切换传输模式。The host device 51 includes a detection module 511 and a control module 512. The detection module 511 is configured to detect whether the data transmission is abnormal. The control module 512 is configured to send a mode switch to the USB device when the detection module 511 detects the abnormality of the data transmission. The instruction, the mode switching instruction is used to instruct the USB device to switch a transmission mode.
USB设备52包括接收模块521和切换模块522,接收模块521设置为接收主机设备的模式切换指令;切换模块522设置为根据所述模式切换指令切换传输模式。The USB device 52 includes a receiving module 521 and a switching module 522, and the receiving module 521 is configured to receive a mode switching instruction of the host device; the switching module 522 is configured to switch the transmission mode according to the mode switching instruction.
在本实施例中,主机设备51和USB设备52通过切换后的传输模式进行数据传输。In the present embodiment, the host device 51 and the USB device 52 perform data transmission through the switched transmission mode.
本发明实施例提供的技术方案,实现了USB速度模式自动适配,更解决
了在高速传输异常的情况下需要重新插拔的问题。The technical solution provided by the embodiment of the invention realizes automatic adaptation of the USB speed mode, and further solves
The problem of re-plugging in case of high-speed transmission abnormality.
通过本发明实施例,提高了用户体验,具体的技术效果如下:Through the embodiment of the invention, the user experience is improved, and the specific technical effects are as follows:
实现了速度模式自动切换,不需要重新插拔设备,节省了用户的时间;在目标主机上只需将主机安装一次,可以和USB设备交互进行适配数据卡产品的速度模式配置;USB设备速度模式切换,不需要插拔USB设备更换USB接口,提高了产品的实用性;提升了设备的兼容性和稳定性。Automatically switch the speed mode, no need to re-plug the device, saving the user's time; only need to install the host once on the target host, can interact with the USB device to adapt the speed mode configuration of the data card product; USB device speed Mode switching, no need to plug and unplug the USB device to replace the USB interface, which improves the practicability of the product; improves the compatibility and stability of the device.
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现主机设备侧的数据传输控制方法。The embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, implements a data transmission control method on the host device side.
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现USB设备侧的数据传输控制方法。The embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, implements a data transmission control method on the USB device side.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或者等同替换,而不脱离本申请技术方案的精神和范围,均应涵盖在本申请的权利要求范围当中。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. This application is not limited to any specific combination of hardware and software. A person skilled in the art should understand that the technical solutions of the present application can be modified or equivalent, without departing from the spirit and scope of the technical solutions of the present application, and should be included in the scope of the claims of the present application.
上述技术方案实现了USB速度模式自动适配,解决了在高速传输异常的情况下需要重新插拔的问题。
The above technical solution realizes the automatic adaptation of the USB speed mode, and solves the problem that the high-speed transmission abnormality needs to be re-plugged.
Claims (14)
- 一种数据传输控制方法,应用于主机设备,所述方法包括:A data transmission control method is applied to a host device, and the method includes:检测和通用串行总线USB设备的数据传输是否异常;Detecting whether the data transmission of the Universal Serial Bus USB device is abnormal;在检测到和USB设备的数据传输异常时,向所述USB设备发送模式切换指令,所述模式切换指令用于指示所述USB设备切换传输模式。When it is detected that the data transmission with the USB device is abnormal, a mode switching instruction is sent to the USB device, and the mode switching instruction is used to instruct the USB device to switch the transmission mode.
- 根据权利要求1所述的数据传输控制方法,其中,所述模式切换指令携带有传输速率参数,所述模式切换指令用于根据所述传输速率参数指示所述USB设备切换到对应的传输模式。The data transmission control method according to claim 1, wherein the mode switching instruction carries a transmission rate parameter, and the mode switching instruction is used to instruct the USB device to switch to a corresponding transmission mode according to the transmission rate parameter.
- 根据权利要求1或2所述的数据传输控制方法,其中,所述向所述USB设备发送模式切换指令包括:The data transmission control method according to claim 1 or 2, wherein the transmitting the mode switching instruction to the USB device comprises:通过USB请求指令、小型计算机系统接口SCSI指令或者超文本传输协议HTTP请求的方式发送所述模式切换指令。The mode switching instruction is transmitted by means of a USB request command, a small computer system interface SCSI command, or a hypertext transfer protocol HTTP request.
- 根据权利要求1或2所述的数据传输控制方法,所述方法还包括:所述主机设备与所述USB设备按照切换后的传输模式进行数据传输。The data transmission control method according to claim 1 or 2, further comprising: the host device and the USB device performing data transmission according to the switched transmission mode.
- 一种数据传输控制方法,应用于USB设备,所述方法包括:A data transmission control method is applied to a USB device, and the method includes:接收主机设备的模式切换指令;Receiving a mode switching instruction of the host device;根据所述模式切换指令切换传输模式。The transmission mode is switched according to the mode switching instruction.
- 根据权利要5所述的数据传输控制方法,其中,所述模式切换指令携带有传输速率参数;The data transmission control method according to claim 5, wherein the mode switching instruction carries a transmission rate parameter;所述根据所述模式切换指令切换传输模式包括:The switching the transmission mode according to the mode switching instruction includes:将所述USB设备支持的速率参数修改为所述传输速率参数。Modifying the rate parameter supported by the USB device to the transmission rate parameter.
- 根据权利要5或6所述的数据传输控制方法,其中,将所述USB设备支持的速率参数修改为所述传输速率参数包括:通过创建设备节点或更改USB设备树修改所述USB设备支持的速率参数。The data transmission control method according to claim 5 or 6, wherein modifying the rate parameter supported by the USB device to the transmission rate parameter comprises: modifying the USB device support by creating a device node or changing a USB device tree Rate parameter.
- 根据权利要5所述的数据传输控制方法,其中,所述根据所述模式切换指令切换传输模式包括:The data transmission control method according to claim 5, wherein the switching the transmission mode according to the mode switching instruction comprises:USB设备选择一备用传输速率并上报主机设备; The USB device selects an alternate transmission rate and reports it to the host device;当接收到所述主机设备的应答通知后,切换到所述备用传输速率对应的传输模式。After receiving the response notification from the host device, switching to the transmission mode corresponding to the alternate transmission rate.
- 一种主机设备,所述主机设备包括:A host device, the host device comprising:检测模块,设置为检测和通用串行总线USB设备的数据传输是否异常;a detection module configured to detect whether the data transmission of the universal serial bus USB device is abnormal;控制模块,设置为在所述检测模块检测到所述数据传输异常时,向所述USB设备发送模式切换指令,所述模式切换指令用于指示所述USB设备切换传输模式。The control module is configured to send a mode switching instruction to the USB device when the detecting module detects the abnormality of the data transmission, where the mode switching instruction is used to instruct the USB device to switch the transmission mode.
- 根据权利要求9所述的主机设备,其中,所述模式切换指令携带有传输速率参数。The host device of claim 9, wherein the mode switching instruction carries a transmission rate parameter.
- 根据权利要求9或10所述的主机设备,所述设备还包括:切换模块,设置为与所述USB设备按照切换后的传输模式进行数据传输。The host device according to claim 9 or 10, further comprising: a switching module configured to perform data transmission with the USB device according to the switched transmission mode.
- 一种USB设备,所述设备包括:A USB device, the device comprising:接收模块,设置为接收主机设备的模式切换指令;a receiving module, configured to receive a mode switching instruction of the host device;切换模块,设置为根据所述模式切换指令切换传输模式。The switching module is configured to switch the transmission mode according to the mode switching instruction.
- 根据权利要12所述的USB设备,其中,所述模式切换指令携带有传输速率参数;The USB device of claim 12, wherein the mode switching instruction carries a transmission rate parameter;所述切换模块是设置为将所述USB设备支持的速率参数修改为所述传输速率参数。The switching module is configured to modify a rate parameter supported by the USB device to the transmission rate parameter.
- 一种数据传输控制系统,所述系统包括主机设备和USB设备,其中,A data transmission control system, the system comprising a host device and a USB device, wherein所述主机设备包括:The host device includes:检测模块,设置为检测和USB设备的数据传输是否异常;The detection module is configured to detect whether the data transmission of the USB device is abnormal;控制模块,设置为在所述检测模块检测到所述数据传输异常时,向所述USB设备发送模式切换指令,所述模式切换指令用于指示所述USB设备切换传输模式;a control module, configured to send a mode switching instruction to the USB device when the detecting module detects the data transmission abnormality, where the mode switching instruction is used to instruct the USB device to switch a transmission mode;所述USB设备包括:The USB device includes:接收模块,设置为接收主机设备的模式切换指令;a receiving module, configured to receive a mode switching instruction of the host device;切换模块,设置为根据所述模式切换指令切换为传输模式。 The switching module is configured to switch to the transmission mode according to the mode switching instruction.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510624559.6 | 2015-09-25 | ||
CN201510624559.6A CN106557377A (en) | 2015-09-25 | 2015-09-25 | Data transfer control method, main process equipment, USB device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017049973A1 true WO2017049973A1 (en) | 2017-03-30 |
Family
ID=58385802
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/086763 WO2017049973A1 (en) | 2015-09-25 | 2016-06-22 | Data transmission control method, host device, usb device and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106557377A (en) |
WO (1) | WO2017049973A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109426644A (en) * | 2017-08-31 | 2019-03-05 | 西安中兴新软件有限责任公司 | A kind of rate adjusting method and device, equipment of USB data transmission |
CN108881208A (en) * | 2018-06-11 | 2018-11-23 | 深圳市沃特沃德股份有限公司 | Usb protocol switching method and device based on onboard system |
CN111045632B (en) * | 2018-10-11 | 2024-01-30 | 瑞昱半导体股份有限公司 | Audio playing device and operation method thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002176460A (en) * | 2000-12-06 | 2002-06-21 | Sanyo Electric Co Ltd | Transmitter and communication system |
JP2007172160A (en) * | 2005-12-20 | 2007-07-05 | Seiko Epson Corp | Usb communication device, and method for switching communication speed |
CN101634886A (en) * | 2009-08-25 | 2010-01-27 | 上海宏力半导体制造有限公司 | Electronic device |
JP2010114939A (en) * | 2010-01-26 | 2010-05-20 | Fujifilm Corp | Device apparatus and mode-switching method thereof |
CN102665244A (en) * | 2012-04-19 | 2012-09-12 | 华为技术有限公司 | Method and device for switching data transmission modes |
CN103955414A (en) * | 2014-04-24 | 2014-07-30 | 深圳市道通科技有限公司 | Self-restoration method and device of USB (universal serial bus) Host fault |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100412760C (en) * | 2006-02-16 | 2008-08-20 | 中芯国际集成电路制造(上海)有限公司 | Power-saving system and method used for equipment based on universal series bus |
US8443222B1 (en) * | 2010-10-21 | 2013-05-14 | Total Phase, Inc. | VBUS event based USB analysis |
CN102103555A (en) * | 2011-01-30 | 2011-06-22 | 中兴通讯股份有限公司 | Method and system for switching ports of USB (universal serial bus) device |
CN102902518B (en) * | 2012-08-17 | 2017-06-06 | 中兴通讯股份有限公司 | A kind of changing method of active USB device and its mode of operation |
-
2015
- 2015-09-25 CN CN201510624559.6A patent/CN106557377A/en active Pending
-
2016
- 2016-06-22 WO PCT/CN2016/086763 patent/WO2017049973A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002176460A (en) * | 2000-12-06 | 2002-06-21 | Sanyo Electric Co Ltd | Transmitter and communication system |
JP2007172160A (en) * | 2005-12-20 | 2007-07-05 | Seiko Epson Corp | Usb communication device, and method for switching communication speed |
CN101634886A (en) * | 2009-08-25 | 2010-01-27 | 上海宏力半导体制造有限公司 | Electronic device |
JP2010114939A (en) * | 2010-01-26 | 2010-05-20 | Fujifilm Corp | Device apparatus and mode-switching method thereof |
CN102665244A (en) * | 2012-04-19 | 2012-09-12 | 华为技术有限公司 | Method and device for switching data transmission modes |
CN103955414A (en) * | 2014-04-24 | 2014-07-30 | 深圳市道通科技有限公司 | Self-restoration method and device of USB (universal serial bus) Host fault |
Also Published As
Publication number | Publication date |
---|---|
CN106557377A (en) | 2017-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8499104B2 (en) | Method for switching working mode, USB device, and host device | |
JP5936498B2 (en) | USB3.0 device and control method | |
EP3223152B1 (en) | Method and server for presenting initialization degree of hardware in server | |
US10585832B2 (en) | Apparatus and methods for dynamic role switching among USB hosts and devices | |
JP4556220B2 (en) | Data transmission bridge device, control chip thereof, and data transmission bridge method | |
US10042800B2 (en) | Active USB device and switching method for operating mode thereof | |
TWI778063B (en) | Usb host-to-host auto-switching | |
TW201409238A (en) | Mode switch method of electronic device and associated electronic device | |
US10275373B2 (en) | Hot swappable device and method | |
WO2017049973A1 (en) | Data transmission control method, host device, usb device and system | |
US20140122752A1 (en) | USB 3.0 Link Layer Timer Adjustment to Extend Distance | |
WO2020034908A1 (en) | Method for communication between remote control and mobile terminal, device, and remote control | |
EP4129143A1 (en) | Cleaning robot control method and device, storage medium and cleaning robot | |
US9418033B2 (en) | Using USB signaling to trigger a device to enter a mode of operation | |
WO2017041069A1 (en) | Override subsystems for rapid recovery from serial-link errors | |
WO2019042421A1 (en) | Method, apparatus and device for rate adjustment of usb data transmission, and storage medium | |
US20150378851A1 (en) | Monitoring method, monitoring device, and information processing system | |
CN112433973A (en) | Link negotiation method, device, equipment and storage medium for JBOF (Java virtual machine) of solid state disk cluster | |
US9824046B2 (en) | Using USB signaling to trigger a device to enter a mode of operation | |
US9390041B2 (en) | Method for processing device connection, combination device and host device | |
EP3433702B1 (en) | Computing devices with hot swapping prediction circuits | |
EP2693341A1 (en) | Information processing device, subsystem, information processing method, and information processing program | |
US20150089288A1 (en) | Technique for establishing an audio socket debug connection | |
JP2018156326A (en) | Information processor, information processing system, and method for controlling information processing system |
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: 16847855 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: 16847855 Country of ref document: EP Kind code of ref document: A1 |