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

A kind of i2c driving method and device

A driving method and device driving technology, applied in the computer field, can solve the problems such as the inability of the I2C driver subsystem to run and the inability to adapt to the I2C slave device.

Active Publication Date: 2021-07-06
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the purpose of the embodiment of the present invention is to propose an I2C driving method and device, which can solve the problems that the existing I2C driving subsystem cannot run on various operating systems and cannot be adapted to various I2C slave devices.

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 driving method and device
  • A kind of i2c driving method and device
  • A kind of i2c driving method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0028] Based on the above purpose, the first aspect of the embodiments of the present invention proposes an embodiment of an I2C driving method. figure 1 Shown is a schematic flow chart of the method.

[0029] Such as figure 1 As shown in, the I2C driving method may include the following steps:

[0030] Step S101, creating a JSON script file for describing I2C information, wherein the I2C information includes I2C adapter information and associated I2C slave device information;

[0031] Step S102, read the I2C information described in the JSON script file, and determine whether the I2C information matches the loaded specific I2C adapter driver and the specific I2C slave device driver;

[0032] Step S1...

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 driving method and device. The method comprises the following steps: creating a JSON script file for describing I2C information; reading the I2C information described in the JSON script file, and judging the I2C information and the loaded specific I2C Whether the adapter driver matches the specific I2C slave device driver; and in response to a match, the I2C slave device mounted on the I2C bus controlled by the specific I2C adapter driver and driven by the specific I2C slave device driver passes through the I2C bus Send and receive data. The present invention only needs a small amount of configuration of I2C and writing of driving codes for specific I2C slave devices to make various I2C slave devices work normally, and the present invention has cross-platform characteristics and can run on various operating systems.

Description

technical field [0001] The present invention relates to the field of computer technology, and more specifically, to an I2C driving method and device. Background technique [0002] I2C (Inter-Integrated Circuit) bus (also known as IIC or I2C) is a two-wire serial bus developed by PHILIPS, used to connect microcontrollers and their peripherals, and is widely used in the field of microelectronics communication control bus standard. It is a special form of synchronous communication, which has the advantages of less interface lines, simple control methods, small device packaging, and high communication speed. The I2C bus has the following characteristics: (1) two bus lines, namely: a serial data line SDA and a serial clock line SCL; (2) each device connected to the bus can contact the host through a unique address, At the same time, the host can act as a host transmitter or a host receiver; (3) The I2C bus is a real multi-master bus. If two or more hosts are initialized at the ...

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): G06F13/42
CPCG06F13/4282G06F2213/0016
Inventor 刘茂栋
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD