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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


