I2C bus communication control method, device and system and readable storage medium

A technology of bus communication and control method, applied in the field of communication, can solve the problems of low management efficiency, occupation of system resources, low efficiency of I2C access standard process and so on

Active Publication Date: 2020-10-02
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the existing I2C controller access scheme, it is proposed to use the polling method when accessing the I2C controller to obtain the bus status to solve the problem of low efficiency of the existing I2C access standard process
However, in this type of scheme, the polling method requires developers to design a polling program specially. Whenever there is a hardware change, the polling program must also change accordingly, and when the bus is busy and congested, the upper layer will frequently obtain the bus Status information, occupying system resources, and extremely low management efficiency
In other words, the problem of low I2C access efficiency is still not well resolved

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
  • I2C bus communication control method, device and system and readable storage medium
  • I2C bus communication control method, device and system and readable storage medium
  • I2C bus communication control method, device and system and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0055] Please refer to figure 1 , figure 1 It is a flowchart of an I2C bus communication control method in an embodiment of the present invention, and the method includes the following steps:

[0056] S101. Receive configuration information of the I2C bus sent by an upper-layer application.

[0057] Wherein, the upper-layer application (APPLY), such as an application running on a mobile phone or a tablet co...

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 bus communication control method, device and system and a readable storage medium. The method comprises the following steps: receiving configuration information of an I2C bus sent by an upper-layer application; analyzing the configuration information to obtain a plurality of polling parameters; writing the plurality of polling parameters into a polling table; and controlling the I2C bus, and executing a corresponding read-write operation according to the polling table. According to the method, the read-write operation executed on the I2C bus is carried out according to the polling table, so that the accurate communication condition of the I2C bus can be obtained directly based on the polling table without polling the access bus state; congestion risks can bereduced, and when a plurality of main devices exist, the access efficiency of a single main device can also be achieved. Management and maintenance are convenient; and if hardware or function change occurs, only the polling table needs to be updated, a program does not need to be modified, and function update or hardware replacement can be quickly adapted.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to an I2C bus communication control method, device, system and readable storage medium. Background technique [0002] The I2C (Inter-Integrated Circuit) bus is a two-wire serial bus used to connect microcontrollers and their peripherals. It is a bus standard widely used in the field of microelectronics communication control. [0003] I2C communicates information between devices connected to the bus through the serial data (SDA) and serial clock (SCL) lines. Each device has a unique address identification, and can be used as a transmitter or receiver (determined by the function of the device). The master is the device that initiates the data transfer on the bus and generates the clock signal that allows the transfer (ie, the master device). Accordingly, any addressed device (slave) is considered a slave. [0004] In the existing I2C controller access scheme, it is p...

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 Applications(China)
IPC IPC(8): G06F13/12G06F13/42
CPCG06F13/126G06F13/4282G06F2213/0016
Inventor 林宁亚童元满
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products