WO2012075655A1 - Electronic device which can automatically resume interrupted transmission and method thereof - Google Patents

Electronic device which can automatically resume interrupted transmission and method thereof Download PDF

Info

Publication number
WO2012075655A1
WO2012075655A1 PCT/CN2010/079984 CN2010079984W WO2012075655A1 WO 2012075655 A1 WO2012075655 A1 WO 2012075655A1 CN 2010079984 W CN2010079984 W CN 2010079984W WO 2012075655 A1 WO2012075655 A1 WO 2012075655A1
Authority
WO
WIPO (PCT)
Prior art keywords
transmission
module
usb
usb module
host
Prior art date
Application number
PCT/CN2010/079984
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 WO2012075655A1 publication Critical patent/WO2012075655A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1443Transmit or communication errors

Definitions

  • the present invention relates to an electronic device and a method thereof, and more particularly to an electronic device and a method thereof for automatically recovering from a transmission interruption.
  • USB Universal Serial Bus
  • Its biggest feature is support for hot plugging and plug and play. Due to its versatility, convenience and bidirectional transmission, the USB interface has become an external device and computer.
  • the standard interface for communication is
  • the USB data cable may be interrupted due to poor contact of the USB data cable or due to static interference. In the event of an interruption, the user must re-establish the USB communication connection by re-plugging the USB device. Data transfer, which will cause a lot of trouble for the user.
  • the external circuit mode changes the USB data transmission line (D+, D-) potential when the transmission is interrupted, so that its potential is zero. For the host side, it is equivalent to unplugging the USB device.
  • this method requires an external circuit on the USB device to destroy its structure, and there is still room for improvement.
  • the present invention has been made to solve the above-mentioned technical problems existing in the background art, and proposes an electronic device and a method thereof that can automatically recover from a transmission interruption.
  • the technical solution of the present invention is an electronic device capable of automatically recovering from a transmission interruption, which is special in that: the device comprises: a USB module for connecting to a host terminal; a storage module connected to the USB module; Stored in the storage module, drive the USB module to transmit when the USB module is connected to the host; the monitoring program is stored in the storage module to monitor the transmission process between the USB module and the host, and initialize the driver when the transmission process is interrupted.
  • USB module version is selected from USBl.x, USB2.0 and USB3.0.
  • the above USB module is selected from standard USB, mini USB and micro USB.
  • the transmission process of the above USB module and the host terminal is interrupted by command transmission (CBW), data transmission, state transmission (CSW) and ACK packet timeout (Time out) between the USB module and the host.
  • the above monitoring program includes: a detecting module for detecting whether the transmission process of the USB module and the host end is interrupted; a recovery module for initializing the driver, and reconnecting the USB module and the host end.
  • a method for automatically recovering a transmission interruption which is special in that: The method includes the following steps:
  • the above steps 3) include: Checking whether the command transfer (CBW), data transfer, and status transfer (CSW) processes between the USB module and the host are complete.
  • CBW command transfer
  • CSW status transfer
  • the above steps 3) include: Confirming whether the ACK packet sent by the USB module and the host is normal.
  • the transmission process of the above USB module and the host terminal is interrupted by command transmission (CBW), data transmission, state transmission (CSW) and ACK packet timeout (Time out) between the USB module and the host.
  • CBW command transmission
  • CSW state transmission
  • ACK packet timeout Time out
  • the above steps 4) include: Re-establishing the transfer between the USB module and the host.
  • the invention monitors whether the transmission is interrupted during the USB transmission process, and initializes the USB driver of the electronic device during the interruption, and re-establishes the transmission with the host end, thereby automatically recovering the transmission when the transmission is interrupted, without manual operation by the user. Plug and unplug the electronic device to enhance the convenience of use.
  • FIG. 1 is a block diagram of a hardware block of the present invention
  • FIG. 2 is a block diagram of a software block of the present invention
  • Figure 3 is a flow chart of the steps of the present invention.
  • 10-transmission interrupt can automatically recover the electronic device, 12-USB module, 14-storage module, 20-driver, 22-monitor, 222-detection module, 224-recovery module, 30-host end; the way
  • a USB flash drive may be, for example, a personal digital assistant, a media player (such as an MP3 player), a personal navigation device (PND), Mobile phone or other suitable form of electronic device.
  • the electronic device 10 capable of automatically recovering the transmission interruption of the present invention comprises: a USB module 12, a storage module 14, a driver 20, and a monitoring program 22.
  • the USB module 12 is used to connect to the host terminal 30, and the host terminal 30 has a connection module corresponding to the USB module 12.
  • the storage module 14 is connected to the USB module 12 for storing the driver 20 and the monitoring program 22.
  • the driver 20 is automatically started to drive the transmission between the USB module 12 and the host terminal 30.
  • the monitoring process is monitored by the monitoring program 22, and the driver is initialized when the transmission process is interrupted. Program 20, to achieve automatic recovery of the transmission.
  • the USB module 12 can be a USB1.x, USB2.0 or USB3.0 version, and the aspect thereof can be a standard USB, mini USB or micro USB.
  • the version and the aspect of the USB module 12 in the foregoing description are only examples. The invention is not limited thereto.
  • the storage module 14 can be a flash memory, a read only memory, or a random access memory.
  • the monitoring program 22 can be composed of a detecting module 222 and a recovery module 224, wherein the detecting module 222 is configured to detect whether the transmission is interrupted; the recovery module 224 is used to initialize the driver 20 and reconnect the USB. Module 12 and host side 30.
  • the transmission process is interrupted by command transmission (CBW), data transmission, status transmission (CSW) and ACK packet timeout between the USB module and the host.
  • CBW command transmission
  • CSW status transmission
  • the detection module 222 in the monitoring program 22 detects its transmission process, which can be divided into three transmission stages: command transmission (CBW), data transmission, and status transmission (CSW). Therefore, the detecting module 222 can check whether the command transmission (CBW) process, the data transmission process and the state transfer (CSW) process between the USB module 12 and the host terminal 30 are complete, to determine whether the transmission process is interrupted.
  • the data receiver transmits an ACK packet to the data transmitter to confirm whether the transmission is completed. Therefore, the detecting module 222 can also check whether the ACK packet sent by the USB module 12 and the host terminal 30 is normal to determine whether the transmission process is interrupted.
  • the recovery module 224 initializes the driver 20 and re-establishes the transmission between the USB module 12 and the host terminal 30 to implement automatic transmission recovery of the transmission interruption.
  • the steps of the present invention comprise the following steps:
  • the USB module 12 connected to the storage module 14 is connected to the host end 30.
  • the host terminal 30 has a connection module corresponding to the USB module 12.
  • the USB module 12 can be a USB1.x, USB2.0 or USB3.0 version, and the aspect thereof can be a standard USB, mini USB or micro USB.
  • the version and the aspect of the USB module 12 in the foregoing description are merely examples, and the present invention does not Limited to this.
  • the storage module 14 can be a flash memory, a read only memory, or a random access memory.
  • the USB module 12 is driven by the driver 20 stored in the storage module 14 for transmission.
  • the driver 20 is automatically started to drive the USB module 12 and the host terminal 30 for transmission.
  • S30 Monitor whether the transmission process of the USB module 12 and the host terminal 30 is interrupted by the monitoring program 22 stored in the storage module 14.
  • the transmission process is interrupted by command transmission (CBW), data transmission, state transmission (CSW), and ACK packet timeout between the USB module and the host.
  • CBW command transmission
  • CSW state transmission
  • ACK packet timeout between the USB module and the host.
  • USB transmission can be divided into three transmission stages: command transmission (CBW), data transmission and status transmission (CSW). Therefore, the step of monitoring whether the USB module transmission is interrupted during the transmission may be to check whether the command transmission (CBW) process, the data transmission process and the state transfer (CSW) process between the USB module 12 and the host terminal 30 are complete, to determine the transmission process. Whether it is interrupted.
  • the data receiver transmits an ACK packet to the data transmitter to confirm whether the transmission is completed. Therefore, the step of monitoring whether the transmission of the USB module 12 is interrupted during the transmission may also be to confirm whether the ACK packet sent by the USB module 12 and the host terminal 30 is normal, to determine whether the transmission process is interrupted.
  • S40 The driver 20 is initialized by the monitoring program 22 when the transmission process is interrupted.
  • the recovery module 222 when the detecting module 222 detects the transmission interruption in step S30, the recovery module
  • the 224 initializes the driver 20, and re-establishes the transmission between the USB module 12 and the host terminal 30, realizing the transmission of the interrupt automatic recovery transmission.

Abstract

An electronic device, which can automatically resume an interrupted transmission, and the method thereof are provided. The device includes a USB module, a storage module, a driver program and a monitor program. The USB module is connected with a host side. The storage module is connected with the USB module. The driver program and the monitor program are all stored in the storage module. When the USB module is connected with the host side, the USB module is driven by the driver program to transmit. The monitor program is connected with the driver program, and is used to monitor the transmission procedure of the USB module, and to initialize the driver program when the transmission procedure is interrupted.

Description

传输中断可自动恢复的电子装置及其方法 技术领域  Electronic device capable of automatically recovering transmission interruption and method thereof
本发明涉及一种电子装置及其方法, 尤其是一种传输中断可自动恢复的 电子装置及其方法。  The present invention relates to an electronic device and a method thereof, and more particularly to an electronic device and a method thereof for automatically recovering from a transmission interruption.
背景技术 Background technique
USB全名为 Universal Serial Bus (通用序列总线), 其最大的特点是支持 热插拔和随插即用, 由于其通用性、 便利性与双向传输特性, USB接口已成 为外部设备与计算机之间通讯的标准接口。  The full name of USB is Universal Serial Bus. Its biggest feature is support for hot plugging and plug and play. Due to its versatility, convenience and bidirectional transmission, the USB interface has become an external device and computer. The standard interface for communication.
在 USB传输中, 因为 USB数据线接触不良或由于静电干扰等原因,有可 能造成 USB传输中断,一旦发生中断,使用者就必须通过重新拔插 USB装置 的方式, 重新建立 USB通讯连接, 续进行数据传输, 这会为使用者带来很大 的麻烦。  In the USB transmission, the USB data cable may be interrupted due to poor contact of the USB data cable or due to static interference. In the event of an interruption, the user must re-establish the USB communication connection by re-plugging the USB device. Data transfer, which will cause a lot of trouble for the user.
另有以外加电路方式, 当传输中断时改变 USB数据传输线(D+、 D-) 电 位, 使其电位为零, 对于主机端而言相当于将 USB装置拔除效果。 然而此方 法需在 USB装置外加电路, 破坏其结构, 仍有待改善之处。  In addition, the external circuit mode changes the USB data transmission line (D+, D-) potential when the transmission is interrupted, so that its potential is zero. For the host side, it is equivalent to unplugging the USB device. However, this method requires an external circuit on the USB device to destroy its structure, and there is still room for improvement.
发明内容 Summary of the invention
本发明为解决背景技术中存在的上述技术问题, 而提出传输中断可自动 恢复的电子装置及其方法。  SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned technical problems existing in the background art, and proposes an electronic device and a method thereof that can automatically recover from a transmission interruption.
本发明的技术解决方案是本发明为一种传输中断可自动恢复的电子装 置, 其特殊之处在于: 该装置包含: USB模块, 用来连接主机端; 储存模块, 连接于 USB模块; 驱动程序, 储存于储存模块, 在 USB模块连接主机端时驱 动 USB模块进行传输; 监控程序, 储存于储存模块, 用来监控 USB模块与主 机端的传输过程, 在传输过程中断时初始化驱动程序。  The technical solution of the present invention is an electronic device capable of automatically recovering from a transmission interruption, which is special in that: the device comprises: a USB module for connecting to a host terminal; a storage module connected to the USB module; Stored in the storage module, drive the USB module to transmit when the USB module is connected to the host; the monitoring program is stored in the storage module to monitor the transmission process between the USB module and the host, and initialize the driver when the transmission process is interrupted.
上述 USB模块版本选自 USBl.x、 USB2.0与 USB3.0。  The above USB module version is selected from USBl.x, USB2.0 and USB3.0.
上述 USB模块态样选自标准 USB、 mini USB与 micro USB。  The above USB module is selected from standard USB, mini USB and micro USB.
上述 USB模块与主机端的传输过程中断为 USB模块与主机端间的命令传 输 (CBW)、 数据传输、 状态传输 (CSW) 与 ACK封包超时 (Time out)。 上述监控程序包含: 检测模块, 用来检测 USB模块与主机端的传输过程 是否中断; 恢复模块,用来初始化驱动程序, 并重新连接 USB模块与主机端。 The transmission process of the above USB module and the host terminal is interrupted by command transmission (CBW), data transmission, state transmission (CSW) and ACK packet timeout (Time out) between the USB module and the host. The above monitoring program includes: a detecting module for detecting whether the transmission process of the USB module and the host end is interrupted; a recovery module for initializing the driver, and reconnecting the USB module and the host end.
一种传输中断可自动恢复的方法, 其特殊之处在于: 该方法包含以下步 骤:  A method for automatically recovering a transmission interruption, which is special in that: The method includes the following steps:
1 ) 提供与储存模块连接的 USB模块连接主机端;  1) providing a USB module connected to the storage module to connect to the host end;
2) 以储存在储存模块的驱动程序驱动 USB模块进行传输;  2) drive the USB module for transmission by the driver stored in the storage module;
3 ) 以储存在储存模块的监控程序监控 USB模块与主机端的传输过程是 否中断;  3) monitoring whether the transmission process of the USB module and the host terminal is interrupted by the monitoring program stored in the storage module;
4) 在传输过程中断时, 以监控程序初始化驱动程序。  4) Initialize the driver with the monitor program when the transfer process is interrupted.
上述步骤 3 ) 包含: 检查 USB模块与主机端间的命令传输 (CBW)、 数 据传输、 状态传输 (CSW) 过程是否完整。  The above steps 3) include: Checking whether the command transfer (CBW), data transfer, and status transfer (CSW) processes between the USB module and the host are complete.
上述步骤 3 ) 包含: 确认 USB模块与主机端发出的 ACK封包是否正常。 上述 USB模块与主机端的传输过程中断为 USB模块与主机端间的命令传 输 (CBW)、 数据传输、 状态传输 (CSW) 与 ACK封包超时 (Time out)。  The above steps 3) include: Confirming whether the ACK packet sent by the USB module and the host is normal. The transmission process of the above USB module and the host terminal is interrupted by command transmission (CBW), data transmission, state transmission (CSW) and ACK packet timeout (Time out) between the USB module and the host.
上述步骤 4) 包含: 重新建立 USB模块与主机端间的传输。  The above steps 4) include: Re-establishing the transfer between the USB module and the host.
本发明在 USB传输过程中监控传输是否中断, 并在中断时初始化电子装 置的 USB驱动程序, 并重新建立与主机端间的传输, 从而实现传输中断时自 动恢复传输, 而不需通过使用者手动插拔电子装置, 强化使用的便利性。 附图说明  The invention monitors whether the transmission is interrupted during the USB transmission process, and initializes the USB driver of the electronic device during the interruption, and re-establishes the transmission with the host end, thereby automatically recovering the transmission when the transmission is interrupted, without manual operation by the user. Plug and unplug the electronic device to enhance the convenience of use. DRAWINGS
图 1为本发明硬件方块示意图;  1 is a block diagram of a hardware block of the present invention;
图 2为本发明软件方块示意图;  2 is a block diagram of a software block of the present invention;
图 3为本发明步骤流程图。  Figure 3 is a flow chart of the steps of the present invention.
其中, 10-传输中断可自动恢复的电子装置, 12-USB模块, 14-储存模块, 20-驱动程序, 22-监控程序, 222-检测模块, 224-恢复模块, 30-主机端; 具体实施方式  Among them, 10-transmission interrupt can automatically recover the electronic device, 12-USB module, 14-storage module, 20-driver, 22-monitor, 222-detection module, 224-recovery module, 30-host end; the way
参见图 1, 本例中为 USB随身碟, 但是不限于此, 而可为例如个人数字 助理器、媒体播放器(media player,例如 MP3 player)、个人用导航装置(PND)、 手机或其它适当形式的电子装置。 本发明传输中断可自动恢复的电子装置 10 包含: USB模块 12、 储存模块 14、 驱动程序 20和监控程序 22。 Referring to FIG. 1, in this example, a USB flash drive, but not limited thereto, may be, for example, a personal digital assistant, a media player (such as an MP3 player), a personal navigation device (PND), Mobile phone or other suitable form of electronic device. The electronic device 10 capable of automatically recovering the transmission interruption of the present invention comprises: a USB module 12, a storage module 14, a driver 20, and a monitoring program 22.
USB模块 12用来连接主机端 30, 且主机端 30具有与 USB模块 12相对 应的连接模块。 储存模块 14与 USB模块 12连接, 用来储存驱动程序 20与 监控程序 22。 当 USB模块 12连接主机端 30时, 自动启动驱动程序 20, 驱 动 USB模块 12与主机端 30间进行传输; 在传输过程中, 以监控程序 22监 控其传输过程, 并在传输过程中断时初始化驱动程序 20, 以实现传输的自动 恢复。 在此, USB模块 12可为 USBl.x、 USB2.0或 USB3.0版本, 其态样可 为标准 USB、 mini USB或 micro USB, 前述说明中关于 USB模块 12的版本 及态样仅为举例, 本发明不限于此。 储存模块 14可为闪存、 只读存储器或随 机存取内存。  The USB module 12 is used to connect to the host terminal 30, and the host terminal 30 has a connection module corresponding to the USB module 12. The storage module 14 is connected to the USB module 12 for storing the driver 20 and the monitoring program 22. When the USB module 12 is connected to the host terminal 30, the driver 20 is automatically started to drive the transmission between the USB module 12 and the host terminal 30. During the transmission process, the monitoring process is monitored by the monitoring program 22, and the driver is initialized when the transmission process is interrupted. Program 20, to achieve automatic recovery of the transmission. Here, the USB module 12 can be a USB1.x, USB2.0 or USB3.0 version, and the aspect thereof can be a standard USB, mini USB or micro USB. The version and the aspect of the USB module 12 in the foregoing description are only examples. The invention is not limited thereto. The storage module 14 can be a flash memory, a read only memory, or a random access memory.
参见图 2,在本实施例中,监控程序 22可由检测模块 222与恢复模块 224 所组成, 其中, 检测模块 222用来检测传输是否中断; 恢复模块 224用来初 始化驱动程序 20, 并重新连接 USB模块 12与主机端 30。  Referring to FIG. 2, in this embodiment, the monitoring program 22 can be composed of a detecting module 222 and a recovery module 224, wherein the detecting module 222 is configured to detect whether the transmission is interrupted; the recovery module 224 is used to initialize the driver 20 and reconnect the USB. Module 12 and host side 30.
传输过程中断为 USB模块与主机端间的命令传输 (CBW)、 数据传输、 状态传输 (CSW) 与 ACK封包超时 (Time out) 的情形。 当进行传输时, 监 控程序 22 中的检测模块 222 检测其传输过程, 传输过程可分为命令传输 (CBW)、 数据传输与状态传输(CSW)三个传输阶段。 因此, 检测模块 222 可检查 USB模块 12与主机端 30间的命令传输(CBW)过程、 数据传输过程 与状态传输(CSW)过程是否完整, 以判断传输过程是否中断。此外, 因 USB 传输过程中, 数据接收端会传送 ACK封包至数据发送端, 以确认传输是否完 成。 因此检测模块 222也可检查 USB模块 12与主机端 30发出的 ACK封包 是否正常, 以判断传输过程是否中断。  The transmission process is interrupted by command transmission (CBW), data transmission, status transmission (CSW) and ACK packet timeout between the USB module and the host. When transmitting, the detection module 222 in the monitoring program 22 detects its transmission process, which can be divided into three transmission stages: command transmission (CBW), data transmission, and status transmission (CSW). Therefore, the detecting module 222 can check whether the command transmission (CBW) process, the data transmission process and the state transfer (CSW) process between the USB module 12 and the host terminal 30 are complete, to determine whether the transmission process is interrupted. In addition, during the USB transmission, the data receiver transmits an ACK packet to the data transmitter to confirm whether the transmission is completed. Therefore, the detecting module 222 can also check whether the ACK packet sent by the USB module 12 and the host terminal 30 is normal to determine whether the transmission process is interrupted.
当检测模块 222检测到传输中断的情形时, 恢复模块 224初始化驱动程 序 20, 并重新建立 USB模块 12与主机端 30间的传输, 实现传输中断自动恢 复传输。  When the detection module 222 detects a transmission interruption, the recovery module 224 initializes the driver 20 and re-establishes the transmission between the USB module 12 and the host terminal 30 to implement automatic transmission recovery of the transmission interruption.
参见图 3, 本发明步骤包含下列步骤:  Referring to Figure 3, the steps of the present invention comprise the following steps:
S10: 提供与储存模块 14连接的 USB模块 12连接主机端 30。 在此, 主机端 30具有与 USB模块 12相对应的连接模块。 USB模块 12 可为 USBl.x、 USB2.0或 USB3.0版本, 其态样可为标准 USB、 mini USB或 micro USB 前述说明中关于 USB模块 12的版本及态样仅为举例, 本发明不 限于此。 储存模块 14可为闪存、 只读存储器或随机存取内存。 S10: The USB module 12 connected to the storage module 14 is connected to the host end 30. Here, the host terminal 30 has a connection module corresponding to the USB module 12. The USB module 12 can be a USB1.x, USB2.0 or USB3.0 version, and the aspect thereof can be a standard USB, mini USB or micro USB. The version and the aspect of the USB module 12 in the foregoing description are merely examples, and the present invention does not Limited to this. The storage module 14 can be a flash memory, a read only memory, or a random access memory.
S20: 以储存在储存模块 14的驱动程序 20驱动 USB模块 12进行传输。 在此, USB模块 12连接主机端 30时, 自动启动驱动程序 20, 驱动 USB 模块 12与主机端 30间进行传输。  S20: The USB module 12 is driven by the driver 20 stored in the storage module 14 for transmission. Here, when the USB module 12 is connected to the host terminal 30, the driver 20 is automatically started to drive the USB module 12 and the host terminal 30 for transmission.
S30:以储存在储存模块 14的监控程序 22监控 USB模块 12与主机端 30 的传输过程是否中断。  S30: Monitor whether the transmission process of the USB module 12 and the host terminal 30 is interrupted by the monitoring program 22 stored in the storage module 14.
在此, 传输过程中断为 USB模块与主机端间的命令传输 (CBW)、 数据 传输、 状态传输 (CSW) 与 ACK封包超时 (Time out) 的情形。  Here, the transmission process is interrupted by command transmission (CBW), data transmission, state transmission (CSW), and ACK packet timeout between the USB module and the host.
由于 USB传输可分为命令传输 (CBW)、 数据传输与状态传输 (CSW) 三个传输阶段。 因此, 在传输过程中监控 USB模块传输是否中断的步骤可为 检查 USB模块 12与主机端 30间的命令传输(CBW)过程、 数据传输过程与 状态传输 (CSW) 过程是否完整, 以判断传输过程是否中断。 因 USB传输过 程中, 数据接收端会传送 ACK封包至数据发送端, 以确认传输是否完成。 因 此在传输过程中监控 USB模块 12传输是否中断的步骤也可为确认 USB模块 12与主机端 30发出的 ACK封包是否正常, 以判断传输过程是否中断。  Since USB transmission can be divided into three transmission stages: command transmission (CBW), data transmission and status transmission (CSW). Therefore, the step of monitoring whether the USB module transmission is interrupted during the transmission may be to check whether the command transmission (CBW) process, the data transmission process and the state transfer (CSW) process between the USB module 12 and the host terminal 30 are complete, to determine the transmission process. Whether it is interrupted. During the USB transmission process, the data receiver transmits an ACK packet to the data transmitter to confirm whether the transmission is completed. Therefore, the step of monitoring whether the transmission of the USB module 12 is interrupted during the transmission may also be to confirm whether the ACK packet sent by the USB module 12 and the host terminal 30 is normal, to determine whether the transmission process is interrupted.
S40: 在传输过程中断时, 以监控程序 22初始化驱动程序 20。  S40: The driver 20 is initialized by the monitoring program 22 when the transmission process is interrupted.
在此, 当检测模块 222依步骤 S30检测到传输中断的情形时, 恢复模块 Here, when the detecting module 222 detects the transmission interruption in step S30, the recovery module
224初始化驱动程序 20, 并重新建立 USB模块 12与主机端 30间的传输, 实 现传输异中断自动恢复传输。 The 224 initializes the driver 20, and re-establishes the transmission between the USB module 12 and the host terminal 30, realizing the transmission of the interrupt automatic recovery transmission.

Claims

权 利 要 求 书 Claim
1、一种传输中断可自动恢复的电子装置,其特征在于:该装置包含: USB 模块, 用来连接主机端; 储存模块, 连接于 USB模块; 驱动程序, 储存于储 存模块, 在 USB模块连接主机端时驱动 USB模块进行传输; 监控程序, 储存 于储存模块, 用来监控 USB模块与主机端的传输过程, 在传输过程中断时初 始化驱动程序。  1. An electronic device capable of automatically recovering transmission interruption, characterized in that: the device comprises: a USB module for connecting to a host terminal; a storage module connected to the USB module; a driver stored in the storage module, connected in the USB module The host module drives the USB module for transmission; the monitoring program is stored in the storage module to monitor the transmission process between the USB module and the host terminal, and initializes the driver when the transmission process is interrupted.
2、 根据权利要求 1所述的一种传输中断可自动恢复的电子装置, 其特征 在于: 所述 USB模块版本选自 USBl.x、 USB2.0与 USB3.0。  2. The electronic device capable of automatically recovering transmission interruption according to claim 1, wherein: the USB module version is selected from the group consisting of USBl.x, USB2.0 and USB3.0.
3、 根据权利要求 1所述的一种传输中断可自动恢复的电子装置, 其特征 在于: 所述 USB模块态样选自标准 USB、 mini USB与 micro USB。  3. The electronic device capable of automatically recovering transmission interruption according to claim 1, wherein: the USB module mode is selected from the group consisting of standard USB, mini USB and micro USB.
4、 根据权利要求 1所述的一种传输中断可自动恢复的电子装置, 其特征 在于:所述 USB模块与主机端的传输过程中断为 USB模块与主机端间的命令 传输 (CBW)、 数据传输、 状态传输 (CSW) 与 ACK封包超时 (Time out)。  4 . The electronic device capable of automatically recovering transmission interruption according to claim 1 , wherein: the transmission process of the USB module and the host end is interrupted by a command transmission (CBW) and data transmission between the USB module and the host end. , Status Transfer (CSW) and ACK packet timeout (Time out).
5、 根据权利要求 1所述的一种传输中断可自动恢复的电子装置, 其特征 在于: 所述监控程序包含: 检测模块, 用来检测 USB模块与主机端的传输过 程是否中断; 恢复模块, 用来初始化驱动程序, 并重新连接 USB模块与主机 5 . The electronic device of claim 1 , wherein the monitoring program comprises: a detecting module, configured to detect whether a transmission process between the USB module and the host end is interrupted; To initialize the driver and reconnect the USB module to the host
^山 ^Mountain
¾。  3⁄4.
6、一种传输中断可自动恢复的方法, 其特征在于: 该方法包含以下步骤: 6. A method for automatically recovering a transmission interruption, characterized in that: the method comprises the following steps:
1 ) 提供与储存模块连接的 USB模块连接主机端; 1) providing a USB module connected to the storage module to connect to the host end;
2) 以储存在储存模块的驱动程序驱动 USB模块进行传输;  2) drive the USB module for transmission by the driver stored in the storage module;
3 ) 以储存在储存模块的监控程序监控 USB模块与主机端的传输过程是 否中断;  3) monitoring whether the transmission process of the USB module and the host terminal is interrupted by the monitoring program stored in the storage module;
4) 在传输过程中断时, 以监控程序初始化驱动程序。  4) Initialize the driver with the monitor program when the transfer process is interrupted.
7、根据权利要求 6所述的一种传输中断可自动恢复的方法,其特征在于: 所述步骤 3 ) 包含: 检查 USB模块与主机端间的命令传输 (CBW)、 数据传 输、 状态传输 (CSW) 过程是否完整。  7. A method for automatically recovering a transmission interruption according to claim 6, wherein: said step 3) comprises: checking a command transmission (CBW), data transmission, and status transmission between the USB module and the host terminal ( CSW) The process is complete.
8、根据权利要求 6所述的一种传输中断可自动恢复的方法,其特征在于: 所述步骤 3 ) 包含: 确认 USB模块与主机端发出的 ACK封包是否正常。 8. A method for automatically recovering a transmission interruption according to claim 6, wherein: The step 3) includes: confirming whether the ACK packet sent by the USB module and the host end is normal.
9、根据权利要求 6所述的一种传输中断可自动恢复的方法,其特征在于: 所述 USB模块与主机端的传输过程中断为 USB模块与主机端间的命令传输 The method for automatically recovering a transmission interruption according to claim 6, wherein: the transmission process of the USB module and the host end is interrupted by a command transmission between the USB module and the host end.
(CBW)、 数据传输、 状态传输 (CSW) 与 ACK封包超时 (Time out)。 (CBW), Data Transfer, Status Transfer (CSW) and ACK Packet Timeout.
10、 根据权利要求 6所述的一种传输中断可自动恢复的方法, 其特征在 于: 所述步骤 4) 包含: 重新建立 USB模块与主机端间的传输。  10. A method for automatically recovering a transmission interrupt according to claim 6, wherein: the step 4) comprises: re-establishing a transmission between the USB module and the host.
PCT/CN2010/079984 2010-12-06 2010-12-20 Electronic device which can automatically resume interrupted transmission and method thereof WO2012075655A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010105753606A CN102012888A (en) 2010-12-06 2010-12-06 Electronic device capable of automatically restoring in transmission interruption and method thereof
CN201010575360.6 2010-12-06

Publications (1)

Publication Number Publication Date
WO2012075655A1 true WO2012075655A1 (en) 2012-06-14

Family

ID=43843061

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079984 WO2012075655A1 (en) 2010-12-06 2010-12-20 Electronic device which can automatically resume interrupted transmission and method thereof

Country Status (2)

Country Link
CN (1) CN102012888A (en)
WO (1) WO2012075655A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013159205A1 (en) * 2012-04-26 2013-10-31 Icron Technologies Corporation Usb 3.0 link layer timer adjustment to extend distance

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108241588A (en) * 2016-12-27 2018-07-03 乐视汽车(北京)有限公司 The method and apparatus of data transmission

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549094A (en) * 2003-05-15 2004-11-24 凌阳科技股份有限公司 USB interface mobile storage
CN101369238A (en) * 2008-09-02 2009-02-18 苏州大学 Exception monitoring and reset processing method for USB equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100362488C (en) * 2003-11-28 2008-01-16 神达电脑股份有限公司 Method for monitoring USB device on computer main unit end
CN101650702B (en) * 2009-07-10 2015-04-01 北京巨数数字技术开发有限公司 On-line USB communication maintenance device and method
CN101989248A (en) * 2009-07-31 2011-03-23 比亚迪股份有限公司 Universal serial bus (USB) equipment and method for restarting USB equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549094A (en) * 2003-05-15 2004-11-24 凌阳科技股份有限公司 USB interface mobile storage
CN101369238A (en) * 2008-09-02 2009-02-18 苏州大学 Exception monitoring and reset processing method for USB equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WU, YIMING: "A Design for Self-recovering from Abnormal USB Communication.", COMPUTER APPLICATIONS AND SOFTWARE., vol. 26, no. 11, November 2009 (2009-11-01), pages 202 - 203 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013159205A1 (en) * 2012-04-26 2013-10-31 Icron Technologies Corporation Usb 3.0 link layer timer adjustment to extend distance
US9129064B2 (en) 2012-04-26 2015-09-08 Icron Technologies Corporation USB 3.0 link layer timer adjustment to extend distance

Also Published As

Publication number Publication date
CN102012888A (en) 2011-04-13

Similar Documents

Publication Publication Date Title
TWI393009B (en) Data sharing and transfer systems and methods
US8843664B2 (en) Re-enumeration of USB 3.0 compatible devices
JP5153822B2 (en) Peripheral device and method for connecting host device and peripheral device
TWI338222B (en) Method and system for allowing a media player to transfer digital audio to an accessory
US8370555B2 (en) Method and system for allowing a media player to determine if it supports the capabilities of an accessory
US9864607B2 (en) Methods and physical computer-readable storage media for initiating re-enumeration of USB 3.0 compatible devices
US20110191503A1 (en) Motherboard Compatible with Multiple Versions of Universal Serial Bus (USB) and Related Method
US10324891B2 (en) Methods and apparatus for reducing power consumption within embedded systems
US20120054400A1 (en) System for Communicating Between Two Electrical Devices and Method Therefore
US8533380B2 (en) Apparatus for peer-to-peer communication over a universal serial bus link
CN101520767B (en) Data transmission speed self-adapting method and device
CN102694722B (en) Bridger and its method of operation
WO2012075655A1 (en) Electronic device which can automatically resume interrupted transmission and method thereof
JP5477456B2 (en) Peripheral device and method for connecting host device and peripheral device
WO2008071113A1 (en) Method and apparatus prevent a cf card away from being damaged
JP2013047994A5 (en)
JP5492844B2 (en) Interface connection method and computer
TW201122834A (en) Device and method of automatic restoration while the communication is fault
WO2017182001A1 (en) Method and device for interface configuration, and computer storage medium
EP3413205A1 (en) Re-enumeration of usb 3.0 compatible devices
JP4907900B2 (en) Connection apparatus and connection method
TW202335404A (en) Contactless connection interface of portable device and operating method thereof
WO2017041461A1 (en) Efficient universal serial bus utilization method and universal serial bus device
CN107291645A (en) The data transmission method of dual controller
CN101232381A (en) Transmission line and data transmission system using the same

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

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

Country of ref document: EP

Kind code of ref document: A1