Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A kind of abnormal recovery method and serial bus transmission device

A technology of a serial bus and a transmission device is applied in the field of a method, a serial bus transmission device, and abnormal recovery, and can solve the problems of hanging, failure of bus data transmission, and SDA pull-up.

Inactive Publication Date: 2016-06-15
HUAWEI TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the process of implementing the above-mentioned serial bus abnormal self-recovery method, when SDA is pulled low by the slave device, the master device cannot pull SDA high to generate a rising edge, that is, the stop signal cannot be sent, and the bus is suspended by the slave device. The data transfer of the

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A kind of abnormal recovery method and serial bus transmission device
  • A kind of abnormal recovery method and serial bus transmission device
  • A kind of abnormal recovery method and serial bus transmission device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] The abnormality recovery method provided by the embodiment of the present invention is applied to a serial bus transmission device, and the serial bus transmission device includes at least one master device, at least one slave device, and is used for the master device and the slave device A serial bus for communication between devices, the serial bus includes a serial clock bus SCL and a serial data bus SDA. When communicating between devices, the master device plays a main control role and is the initiator of the communication, and the slave device is the destination of the communication process. In addition, the master device can preferentially obtain the control right of the bus.

[0047] The embodiment of the present invention provides a method for abnormal recovery, which is applied to serial bus transmission devices, such as figure 1 As shown, the method includes the following steps:

[0048] 101. The master device and the slave device respectively detect whethe...

Embodiment 2

[0063] The embodiment of the present invention provides a method for abnormal recovery, which is applied to serial bus transmission devices, such as figure 2 As shown, the method includes the following steps:

[0064] 201. The master device and the slave device respectively detect whether the SCL is in an abnormal state.

[0065] In the process of data transmission between the master device and the slave device, both the master device and the slave device can perform real-time detection on the SCL to detect whether the SCL is in an abnormal state. In practical applications, the bus abnormalities that may occur include: The master device is required to lose the bus control right in the bus arbitration, but still thinks that it holds the bus control right, and pulls the SCL low for a long time, that is, the SCL is in the low level state for a long time; or the SCL is blocked The master device or the slave device is pulled low for a long time; or the SCL is in a high state for ...

Embodiment 3

[0076] The embodiment of the present invention provides a method for abnormal recovery, which is applied to serial bus transmission devices, such as Figure 4 As shown, the method includes the following steps:

[0077] 401. The master device and the slave device respectively detect whether the SCL is in an abnormal state.

[0078]In the embodiment of the present invention, both the master device and the slave device can detect the SCL in real time to detect whether the SCL is in an abnormal state. It is required to lose the bus control right, but still thinks that it holds the bus control right, and pulls the SCL low for a long time, that is, the SCL is in a low level state for a long time; or the SCL is controlled by the master device or the slave The device is pulled low for a long time; or the SCL is in a high state for a long time. Therefore, when the master device and the slave device detect whether the SCL is in an abnormal state, they need to detect whether the state ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the present invention provide a method for recovering from abnormality and a serial bus transmission device, which relate to the communication field, and can generate a stop signal when SDA is pulled low by a slave device, so that data transmission can proceed normally. The method includes: when the master device and the slave device detect that the SCL is in an abnormal state, releasing the SCL and SDA; when the master device detects that both the SCL and the SDA are released, generating a stop signal on the serial bus.

Description

technical field [0001] The invention relates to the communication field, in particular to a method for abnormal recovery and a serial bus transmission device. Background technique [0002] I2C (InterIntegraredCircuit, integrated circuit interconnection bus) protocol, SMBUS (SystemManagementBus, system management bus) agreement, PMBUS (InterIntegraredCircuit, integrated circuit interconnection bus) protocol includes SCL (SerialClockLine, serial clock bus) and SDA (SerialDataLine, serial data bus) is a two-wire serial bus-type protocol, usually used to connect multiple master devices and multiple slave devices. The data transmission between the master device and the slave device starts with a start signal and ends with a stop signal. The I2C protocol also requires a strict pairing of the start signal (SCL is high, SDA is the falling edge) and the stop signal (SCL is high, SDA is the rising edge), that is, when data transmission is performed on the I2C bus, a signal needs to b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/16G06F13/38
Inventor 刘圹彬王渝
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products