CN106663079B - Management device for managing errors on universal serial bus - Google Patents
Management device for managing errors on universal serial bus Download PDFInfo
- Publication number
- CN106663079B CN106663079B CN201580037860.5A CN201580037860A CN106663079B CN 106663079 B CN106663079 B CN 106663079B CN 201580037860 A CN201580037860 A CN 201580037860A CN 106663079 B CN106663079 B CN 106663079B
- Authority
- CN
- China
- Prior art keywords
- peripheral
- state
- host
- communication
- degraded
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
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
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
- G06F13/4295—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using an embedded synchronisation
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)
- Small-Scale Networks (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention relates to an electronic equipment comprising a host controller capable of controlling at least one universal serial communication port capable of being connected to a plurality of peripheral devices, characterized in that each of the peripheral devices connected to said port is associated with a peripheral monitor (27), said peripheral monitor (27) being capable of determining and indicating a communication failure between said port and the peripheral device associated with said peripheral monitor, and in that said host controller comprises means for reinitializing said communication port when all the peripheral monitors indicate a communication failure.
Description
Technical Field
The present invention relates to data transmission over a serial bus, and more particularly to error management during transmission.
Background
The Universal Serial Bus (or USB for short in english "Universal Serial Bus") is a Serial transmission information Bus for connecting a peripheral information device (also referred to as "USB devices" in english) to a computer (also referred to as a host or "USB host" in english).
USB evolves into multiple versions, each of which is capable of communicating in multiple modes.
The first version of the USB bus communicates in two modes: slow mode (or "Low Speed", flow 1.5Mbit/s) or Full Speed mode (or "Full Speed", flow 12 Mbit/s):
the second version of the USB bus also includes a third mode (referred to as "High Speed" with traffic of 480 Mbit/s).
The USB bus operates based on a Token Ring (or "Token Ring") by which each network node is arranged in turn on the bus.
Bandwidth is shared in time among all connected peripherals. During the time that multiple transmissions can occur, the time is subdivided into multiple frames or micro-frames.
Communication between the host and the peripheral device is performed according to a protocol based on the sequential interrogation of each peripheral device by the host. When a host wishes to communicate with a peripheral device, the host sends a token (a data packet containing the address of the peripheral device, the address being encoded with seven bits) representing the peripheral device. If the peripheral device identifies the address of the peripheral device in the token, the peripheral device sends a data packet in return.
USB defines different types of transmission: control transfers (for enumeration and configuration of peripheral devices), interrupt transfers (for providing small amounts of information with small reaction times), isochronous transfers, and bulk transfers (for transferring large amounts of information).
Communications between the host and the peripheral device can be structured into multiple logical channels (pipes and endpoints) to simplify control of the peripheral device to the USB port.
USB does not define a means to easily manage transmission errors. For example, for a U disk where there is a music library connected to the player, if a brief physical malfunction (vibration, shock, or other) occurs on the wiring harness, the player is no longer able to play subsequent music, which is paused.
The user is thus forced to disconnect the usb-disk and reconnect the usb-disk to reinitialize the communication, or to restart the music player.
A method and a system for controlling a USB coupling are known from document US 2006/0236003. However, this solution is not able to overcome transmission errors.
Disclosure of Invention
It is therefore an object of the present invention to overcome the above problems. To this end, the invention proposes more precisely an electronic equipment comprising a host able to control at least one universal serial communication port able to be connected to a plurality of peripheral devices, characterized in that each of the peripheral devices connected to the communication port is associated with a peripheral monitor able to determine and indicate a communication failure between the communication port and the peripheral device associated with the peripheral monitor, and in that the host comprises means to reinitialize the communication port when all the peripheral monitors indicate a communication failure.
In the event of a communication failure with all peripheral devices, the present invention can disable the USB port to obtain a savings in power consumption.
Advantageously, the means for re-initializing the communication port is a finite state automaton.
Advantageously, the finite state automaton comprises at least three states:
an initialization state corresponding to an initialization of a communication between the host and the peripheral device,
-a nominal state corresponding to a communication with nominal traffic between the host and the peripheral device.
-a peripheral error state, the peripheral error state corresponding to a communication failure between the host and the peripheral.
Advantageously, the finite state automaton further comprises a degraded state corresponding to a communication having degraded traffic between the host and the peripheral, the degraded traffic being less than the nominal traffic.
By setting the degraded state, the present invention is able to establish degraded mode communication when a failure occurs, rather than losing communication.
Advantageously, the finite state automaton further comprises an error state, the error state corresponding to a communication failure between the host and all peripheral devices connected to the host.
This feature enables easy implementation of the disabling of the USB port in case of communication failure with all peripheral devices.
Advantageously, the finite state automaton switches from the nominal state to the degraded state after detecting a communication failure between the host and the peripheral device.
Advantageously, the finite state automaton switches from the degraded state to the peripheral error state after detecting a communication failure between the host and the peripheral.
Advantageously, the finite state automaton switches from the degraded state to the nominal state after the first predetermined condition is fulfilled.
This enables, for example, a communication with degraded traffic to be re-established with nominal traffic after a predetermined time in degraded mode.
Advantageously, the finite state automaton switches from the peripheral error state to the degraded state after the second predetermined condition is fulfilled.
This enables, for example, reestablishing the interrupted communication with degraded traffic after a predetermined time after the interruption of the communication, without requiring intervention by the user.
The invention also relates to a vehicle comprising an arrangement according to the invention.
Drawings
Other features and advantages of the present invention will become more apparent upon reading the following detailed description and the accompanying drawings, in which:
figure 1 shows a schematic diagram of a network;
fig. 2 shows a schematic diagram of an automaton, which illustrates the operation of the monitor according to the invention.
Detailed Description
The drawings may not only serve to supplement the invention but also to help define it, if necessary.
Fig. 1 shows a schematic diagram of a network. The network couples the host 11 with the first peripheral device 12 and with the second peripheral device 13 by means of USB couplings.
In this example, the number of peripheral devices is limited to two. But the number of peripheral devices of the network may vary without departing from the scope of the invention.
In the following, as a non-limiting example, the host 11 is considered to be a computer of a motor vehicle. The invention is not limited to this embodiment. Indeed, the present invention relates to any computer that includes a USB connector and a USB host controller.
In the following, as a non-limiting example, the first peripheral device 12 is considered to be also a computer of a motor vehicle. The invention is not limited to this embodiment. In fact, the present invention relates to any computer that includes a USB connector and a USB peripheral device controller.
The second peripheral device 13 is for example a peripheral storage device (of the hard disk type).
Referring to fig. 2, the monitor 20 is a robot that includes the following states:
"sleep" 21, USB low-level is not initialized;
- "initialize" 22: the USB lower layer is initialized and waits for the connection of the peripheral device 12;
- "nominal": functional USB communication of high-speed traffic between host 11 and peripheral 12;
- "degradation": functional USB communication of full speed traffic between host 11 and peripheral 12;
- "error _ x": communication with peripheral device 12 is disabled;
- "error": and all peripheral devices 12, 13 connected to the USB port of the host 11 are disabled. The USB port is disabled.
Note that seven layers are typically distinguished in the communication model ("physical", "data link", "network", "transport", "session", "presentation" and "application"). The first three layers are referred to as hardware layers or lower layers, while the last four layers are referred to as upper layers or upper layers.
The "sleep" state 21 corresponds to a non-functional USB network. After the host 11 is powered on, the monitor 20 of the USB network is in a "sleep" state 21.
When the upper software layer needs to use the USB network, the monitor 20 transitions to the "initialize" state 22. This state corresponds to the initialization of the lower layers of the USB network.
Therefore, the monitor 20 is set to wait for the connection of the USB peripheral device 12.
When the USB peripheral device 12 is detected, the monitor 20 transitions to a "nominal" state 23.
Upon entering the "nominal" state 23, the supervisor 20 initializes communications with the USB peripheral device 12 to have nominal traffic.
In the event of a failure, monitor 20 transitions to a "degraded" state.
Conversely, if the communication is properly established with nominal flow, the monitor 20 remains in the "nominal" state 23.
If a network failure (e.g., a loss of communication) occurs while the host 11 is in the "nominal" state 23, the network monitor 20 transitions to the "degraded" state 24.
In the "degraded" state 24, the monitor 20 initializes communications with the peripheral device 12 to have degraded traffic.
In the event of a failure, the monitor transitions to the "ERROR _ X" state 25.
If the communication is properly established with degraded traffic, peripheral device 12 remains in a "degraded" state 25.
If a network failure (e.g., a communication loss) occurs while the host 11 is in the degraded state 24, the network monitor 20 transitions to the ERROR _ X state 25.
In the "error _ x" state 25, the connection to the peripheral device 12 is disabled and no communication between the host 11 and the peripheral device 12 is possible.
The "initialization", "nominal", "downgrade" and "error x" states are combined in a "sub automaton" 27, which is referred to as a peripheral monitor that only involves a single peripheral.
The network monitor 20 needs to implement the status of as many peripheral monitors 27 as there are peripheral devices connected to the USB port.
When all peripherals are declared to be in the "error _ x" state (in other words, when all peripheral monitors 27 are in the "error _ x" state 25), the monitor 20 transitions to the "error" state 26. In this state, the host 11 disables the USB port.
In a variant embodiment of the invention, when the monitor 20 transitions to the "error" state 26, this "error" state causes the USB lower layer to reinitialize and then to transition to the "initialization" state 22.
When the upper software layer no longer needs to use the USB network, the monitor 20 transitions to the "sleep" state 21 regardless of the connection state between the host and the peripheral devices 12, 13.
According to an embodiment variant of the invention, the network monitor 20 transitions to the "nominal" state 23 when the host 11 is in the "degraded" state 24 and after the conditions are fulfilled (for example after a predetermined time has elapsed).
According to an embodiment variant of the invention, the network monitor 20 transitions to the "degraded" state 24 when the host 11 is in the "error _ x" state and after the condition is fulfilled (for example after a predetermined time has elapsed).
Claims (10)
1. An electronic equipment comprising a host (11) capable of controlling at least one universal serial communication port connectable to a plurality of peripheral devices (12, 13), characterized in that each of the peripheral devices (12, 13) connected to the communication port is associated with a respective peripheral monitor (27), the peripheral monitor (27) being capable of determining and indicating a communication failure between the communication port and a single peripheral device associated with the peripheral monitor, the communication failure being a loss of communication, and in that the host (11) comprises means for re-initializing the communication port when all peripheral monitors indicate a communication failure.
2. Electronic equipment according to claim 1, characterized in that the means to reinitialize the communication port is a finite state automaton (20).
3. Electronic equipment according to claim 2, characterized in that the finite state automaton (20) comprises at least three states:
an initialization state (22) corresponding to the initialization of a communication between the host (11) and the peripheral device (12),
-a nominal state (23) corresponding to a communication with a nominal traffic between the host (11) and the peripheral device (12),
-a peripheral error state (25) corresponding to a communication failure between the host (11) and the peripheral (12).
4. The electronic equipment of claim 3, wherein the finite state automaton further comprises a degraded state (24) corresponding to a communication having a degraded traffic between the host (11) and the peripheral device (12), the degraded traffic being less than a nominal traffic.
5. Electronic equipment according to any of claims 2 to 4, characterized in that the finite state automaton (20) further comprises an error state (26) corresponding to a communication failure between the host (11) and all peripheral devices (12, 13) connected to the host (11).
6. Electronic equipment according to claim 4, characterized in that the finite state automaton (20) switches from the nominal state (23) to the degraded state (24) after detection of a communication failure between the host (11) and the peripheral device.
7. Electronic equipment according to claim 4, characterized in that the finite state automaton (20) switches from the degraded state (24) to the peripheral error state (25) after detection of a communication failure between the host (11) and the peripheral.
8. Electronic equipment according to claim 4, characterized in that the finite state automaton (20) switches from the degraded state (24) to the nominal state (23) after the first predetermined condition is fulfilled.
9. Electronic equipment according to claim 4, characterized in that the finite state automaton (20) switches from the peripheral error state (25) to the degraded state (24) after the second predetermined condition is fulfilled.
10. A vehicle comprising the electronic equipment of any one of claims 1-9.
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
FR1456750 | 2014-07-11 | ||
FR1456750A FR3023633B1 (en) | 2014-07-11 | 2014-07-11 | DEVICE FOR MANAGING ERRORS ON A SERIAL UNIVERSAL BUS |
PCT/FR2015/051831 WO2016005683A1 (en) | 2014-07-11 | 2015-07-02 | Device for managing errors on a serial universal bus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106663079A CN106663079A (en) | 2017-05-10 |
CN106663079B true CN106663079B (en) | 2020-11-06 |
Family
ID=51519084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201580037860.5A Active CN106663079B (en) | 2014-07-11 | 2015-07-02 | Management device for managing errors on universal serial bus |
Country Status (4)
Country | Link |
---|---|
EP (1) | EP3167379B1 (en) |
CN (1) | CN106663079B (en) |
FR (1) | FR3023633B1 (en) |
WO (1) | WO2016005683A1 (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1499396A (en) * | 2002-10-24 | 2004-05-26 | �Ҵ���˾ | Method and device for maintaining internet field names data |
JP2005182380A (en) * | 2003-12-18 | 2005-07-07 | Canon Inc | Recording device, electronic device |
CN1645348A (en) * | 2005-01-31 | 2005-07-27 | 彭荷芬 | Fabric floral information transmitting method based on movable flashing memory card |
CN1831801A (en) * | 2005-03-10 | 2006-09-13 | 华为技术有限公司 | Method for recovering communication of I2C main device and I2C slave device |
CN1838102A (en) * | 2005-03-23 | 2006-09-27 | 精工爱普生株式会社 | Data transfer control device and electronic instrument |
JP2007172160A (en) * | 2005-12-20 | 2007-07-05 | Seiko Epson Corp | Usb communication device, and method for switching communication speed |
CN101520767A (en) * | 2009-04-07 | 2009-09-02 | 炬力集成电路设计有限公司 | Data transmission speed self-adapting method and device |
CN202257553U (en) * | 2011-04-08 | 2012-05-30 | 昆明华奥航星电气有限公司 | Protocol converter for converting universal serial port to MODBUS |
TWI379203B (en) * | 2009-01-23 | 2012-12-11 | Via Tech Inc | Usb cryptographic device and method for error correction |
CN103703451A (en) * | 2011-05-25 | 2014-04-02 | 斯兰纳私人集团有限公司 | Usb isolator integrated circuit with usb 2.0 high speed mode and automatic speed detection |
CN103770775A (en) * | 2012-10-23 | 2014-05-07 | 广州汽车集团股份有限公司 | Equipment protecting device for hybrid power vehicle and working method thereof |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7103684B2 (en) * | 2003-12-02 | 2006-09-05 | Super Talent Electronics, Inc. | Single-chip USB controller reading power-on boot code from integrated flash memory for user storage |
KR100421050B1 (en) * | 2001-10-12 | 2004-03-04 | 삼성전자주식회사 | Universal serial bus device having logical circuit for conversive and immediate USB Host reset operation |
JP2003281088A (en) * | 2002-03-20 | 2003-10-03 | Seiko Epson Corp | Method for evaluating recorder mounted with usb interface and usb interface control program for evaluating recorder |
CN100362488C (en) * | 2003-11-28 | 2008-01-16 | 神达电脑股份有限公司 | Method for monitoring USB device on computer main unit end |
US20050289257A1 (en) * | 2004-06-24 | 2005-12-29 | Fink Thomas M | Self-powered USB device with USB power line reset and related USB host and USB system |
US7610416B2 (en) | 2005-04-13 | 2009-10-27 | Microsoft Corporation | Systems and methods for controlling rise and fall times of USB signals |
US8078768B2 (en) * | 2008-08-21 | 2011-12-13 | Qualcomm Incorporated | Universal Serial Bus (USB) remote wakeup |
CN101989248A (en) * | 2009-07-31 | 2011-03-23 | 比亚迪股份有限公司 | Universal serial bus (USB) equipment and method for restarting USB equipment |
JP5700514B2 (en) * | 2010-10-27 | 2015-04-15 | アルパイン株式会社 | Communication speed control device and communication speed control method |
-
2014
- 2014-07-11 FR FR1456750A patent/FR3023633B1/en not_active Expired - Fee Related
-
2015
- 2015-07-02 EP EP15753720.0A patent/EP3167379B1/en active Active
- 2015-07-02 WO PCT/FR2015/051831 patent/WO2016005683A1/en active Application Filing
- 2015-07-02 CN CN201580037860.5A patent/CN106663079B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1499396A (en) * | 2002-10-24 | 2004-05-26 | �Ҵ���˾ | Method and device for maintaining internet field names data |
JP2005182380A (en) * | 2003-12-18 | 2005-07-07 | Canon Inc | Recording device, electronic device |
CN1645348A (en) * | 2005-01-31 | 2005-07-27 | 彭荷芬 | Fabric floral information transmitting method based on movable flashing memory card |
CN1831801A (en) * | 2005-03-10 | 2006-09-13 | 华为技术有限公司 | Method for recovering communication of I2C main device and I2C slave device |
CN1838102A (en) * | 2005-03-23 | 2006-09-27 | 精工爱普生株式会社 | Data transfer control device and electronic instrument |
JP2007172160A (en) * | 2005-12-20 | 2007-07-05 | Seiko Epson Corp | Usb communication device, and method for switching communication speed |
TWI379203B (en) * | 2009-01-23 | 2012-12-11 | Via Tech Inc | Usb cryptographic device and method for error correction |
CN101520767A (en) * | 2009-04-07 | 2009-09-02 | 炬力集成电路设计有限公司 | Data transmission speed self-adapting method and device |
CN202257553U (en) * | 2011-04-08 | 2012-05-30 | 昆明华奥航星电气有限公司 | Protocol converter for converting universal serial port to MODBUS |
CN103703451A (en) * | 2011-05-25 | 2014-04-02 | 斯兰纳私人集团有限公司 | Usb isolator integrated circuit with usb 2.0 high speed mode and automatic speed detection |
CN103770775A (en) * | 2012-10-23 | 2014-05-07 | 广州汽车集团股份有限公司 | Equipment protecting device for hybrid power vehicle and working method thereof |
Also Published As
Publication number | Publication date |
---|---|
EP3167379B1 (en) | 2018-11-28 |
FR3023633A1 (en) | 2016-01-15 |
EP3167379A1 (en) | 2017-05-17 |
FR3023633B1 (en) | 2016-07-29 |
WO2016005683A1 (en) | 2016-01-14 |
CN106663079A (en) | 2017-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6407934B2 (en) | Asymmetric universal serial bus communication | |
KR100968641B1 (en) | Point-to-point link negotiation method and apparatus | |
JP6400714B2 (en) | Flexible mobile device connectivity with automotive systems with USB hubs | |
US9747237B2 (en) | Methods and apparatus for reliable detection and enumeration of devices | |
US8127059B1 (en) | Apparatus for interconnecting hosts with storage devices | |
US9396152B2 (en) | Device, system and method for communication with heterogenous physical layers | |
US20100180051A1 (en) | System, apparatus, and method for fast startup of usb devices | |
US10698856B1 (en) | Alternative protocol selection | |
KR100687923B1 (en) | Master device, control method thereof and electronic apparatus having master device | |
CN101557379B (en) | Link reconfiguration method for PCIE interface and device thereof | |
TWI778063B (en) | Usb host-to-host auto-switching | |
CN104410510A (en) | Method, device and system for processing failure in controller where information is transmitted through interface card | |
TWI576702B (en) | Communication device | |
WO2017041069A1 (en) | Override subsystems for rapid recovery from serial-link errors | |
GB2497015A (en) | Determining operating state of a remote device and corresponding host system | |
JP3599048B2 (en) | Data transfer control system, electronic device, program, and data transfer control method | |
WO2008085240A1 (en) | Universal serial bus host controller | |
CN106663079B (en) | Management device for managing errors on universal serial bus | |
JP2008146651A (en) | Apparatus for disconnecting a peripheral device non-disruptively | |
CN115733729B (en) | Communication fault processing method, system and equipment | |
CN112688843A (en) | System, apparatus and method for peer-to-peer communication over a multipoint interconnect | |
JP2014532236A (en) | Connection method | |
CN106663080A (en) | Device for managing errors on a universal serial bus | |
EP4435618A1 (en) | Device for controlling state machine and method of operating the same | |
JP2006171868A (en) | Printing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |