Unlock instant, AI-driven research and patent intelligence for your innovation.

A kind of i2c link switching method, terminal and storage medium

A link switching and link technology, applied in the direction of data exchange, data exchange network, bus network, etc. through path configuration, can solve problems such as CPU lock, equipment downtime, I2C bus system crash, etc., to improve signal quality , the effect of improving stability and security

Active Publication Date: 2022-02-18
GENEW TECH
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] As we all know, the I2C bus technology is a set of I2C interfaces led out from the CPU. In theory, the I2C interface can mount up to 128 I2C slave devices; and when the number of I2C slave devices continues to increase, the stability of the I2C bus will also become more stable. Very fragile; for example, when the system of an I2C slave device crashes, it may pull down the SDA (serial data line) or SCL (serial clock signal) on the I2C bus, thus causing the device to be mounted on the I2C bus All devices are down; even the CPU may be locked, resulting in the collapse of the I2C bus system and reducing the security of the I2C bus system

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 i2c link switching method, terminal and storage medium
  • A kind of i2c link switching method, terminal and storage medium
  • A kind of i2c link switching method, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] See Figure 1 to Figure 5 .

[0049] Such as figure 2 As shown, in the existing I2C bus link, the SDA (serial data line) of the CPU and the SDA of all I2C slave devices are mounted on the same link, and the SCL (serial clock signal) of the CPU and the The SCL of all I2C slave devices is also mounted on the same link; when the number of I2C slave devices continues to increase, the stability of the I2C bus becomes very fragile; for example, when the system of an I2C slave device crashes , the SDA or SCL on the I2C bus may be pulled low, which will cause all devices mounted on the I2C bus to go down; even the CPU may be locked, which will cause the I2C bus system to crash and reduce the I2C bus system. System security.

[0050] In order to improve the stability and security of the entire I2C bus system, the present invention provides an I2C link switching method, by independently setting the interfaces of all I2C slave devices, so that the topology of the I2C bus becom...

Embodiment 2

[0107] See Figure 6 , Figure 6 It is a functional schematic diagram of a terminal in a preferred embodiment of the present invention.

[0108] Such as Figure 6 As shown, this embodiment provides a terminal, which includes a processor 10, an editable logic 30, and a memory 20, and the editable logic 30 and the memory 20 are respectively connected to the processor 10;

[0109] The processor 10 is used to send a signal to the programmable logic device 30, and to control the programmable logic device 30 to switch links;

[0110] The programmable logic unit 30 is used to connect the processor 10 and multiple I2C slave devices, and is used to transmit the signal sent by the processor 10 to the corresponding I2C slave devices;

[0111] The memory 20 stores an I2C link switching program, and when the I2C link switching program is executed by the processor 10, it is used to implement the I2C link switching method as described in Embodiment 1; the details are as described above. ...

Embodiment 3

[0113] This embodiment provides a storage medium, wherein the storage medium stores an I2C link switching program, and when the I2C link switching program is executed by a processor, it is used to implement the I2C link switching method as described in Embodiment 1 ; specifically as described above.

[0114] In summary, the present invention connects the CPU and all I2C slave devices through an editable logic device, so that the interfaces of all I2C slave devices are independently set, so that the topology of the I2C bus becomes a star topology; and between the CPU and When the I2C slave device communicates, unused links are closed to improve the signal quality of the I2C bus, thereby improving the stability and security of the entire I2C bus system.

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

The invention discloses an I2C link switching method, a terminal and a storage medium. The I2C link switching method includes: sending a start signal to each I2C slave device through an editable logic device, and sending a start signal to each I2C slave device The device sends address data; when receiving the confirmation character fed back by the visited I2C slave device, obtain the link information of the visited I2C slave device; determine the unused link in the editable logic according to the link information and close the unused link; send a read command to the visited I2C slave device through the remaining link, and read the data in the visited I2C slave device according to the read command; The invention connects the CPU and all I2C slave devices through the editable logic device, so that the interfaces of all the I2C slave devices are set independently, and unused links are closed, thereby improving the stability and safety of the entire I2C bus system.

Description

technical field [0001] The invention relates to the field of terminal applications, in particular to an I2C link switching method, a terminal and a storage medium. Background technique [0002] As we all know, the I2C bus technology is a set of I2C interfaces led out of the CPU. In theory, the I2C interface can mount up to 128 I2C slave devices; and when the number of I2C slave devices continues to increase, the stability of the I2C bus will also increase. Very fragile; for example, when the system of an I2C slave device crashes, it may pull down the SDA (serial data line) or SCL (serial clock signal) on the I2C bus, causing the I2C bus to be mounted All devices are down; even the CPU may be locked, which will lead to the collapse of the I2C bus system and reduce the security of the I2C bus system. [0003] Therefore, the prior art still needs to be improved and developed. Contents of the invention [0004] The technical problem to be solved by the present invention is t...

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): H04L12/40H04L12/44
CPCH04L12/44H04L12/40006
Inventor 戴瑜吴闽华孟庆晓秦金昆梁栋
Owner GENEW TECH