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

I2C equipment compatibility method and device based on Android system, equipment and medium

A technology compatible with Android system and equipment, applied in instruments, electronic digital data processing, etc., can solve problems such as large-scale price increases and shortages, and achieve the effect of saving time and making products adapt to the market conveniently

Pending Publication Date: 2022-05-13
深圳市智微智能科技股份有限公司
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] For example, an audio IC designed in Taiwan, China is out of stock and has a large-scale price increase due to production problems, so that subsequent products have to be replaced by other brands. However, the software must guarantee the functions of the previous product and the new product after the replacement. Integrity, it is very necessary to do software compatibility, compatible with the IC of each external chip, and use a set of software to solve all new product driver problems

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 equipment compatibility method and device based on Android system, equipment and medium
  • I2C equipment compatibility method and device based on Android system, equipment and medium
  • I2C equipment compatibility method and device based on Android system, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] A kind of I2C device compatibility method based on the Android system of the preferred embodiment of the present invention, such as Figure 1-2 As shown, it is applied to the Android system, and the compatible methods include:

[0037] S00: Write the I2C address of the compatible external chip into the dts file.

[0038] S10: After the Android system is turned on, the I2C driver in the uboot system obtains the I2C address of the external chip from the dts file;

[0039] S20: The CPU sends the original dts-configured I2C address to the I2C bus during the uboot stage; performs I2C detection according to the I2C address;

[0040] S30: The uboot I2C driver will enumerate the external chips one by one and send the I2C signal, and add the judgment condition A of whether the external chip has a reply after the I2C signal is sent out in the I2C driver of each external chip;

[0041] S40: Add judgment condition B in rockchip_hdmi_analog.c in Android system kernel driver, be u...

Embodiment 2

[0058] Such as image 3 A schematic structural diagram of an Android-based I2C device-compatible device provided by an embodiment of the present invention is shown. For ease of description, only parts related to the embodiment of the present invention are shown, wherein the device includes:

[0059] Obtaining module 101, used for obtaining the I2C address of a plurality of external chips from the dts file, and sending the I2C address to the I2C bus;

[0060] Determining module 102, for determining the use state of the external chip according to the reply signal sent back by the I2C address;

[0061] The driver module 103 is used to load and drive the external chip to work.

[0062] In the embodiment of the present invention, each module of the I2C device compatible device based on the Android system can be realized by corresponding hardware or software modules, and each module can be an independent software and hardware module, or can be integrated into a software and hardwar...

Embodiment 3

[0064] Such as Figure 4 A schematic structural diagram of an Android-based I2C device-compatible device provided by an embodiment of the present invention is shown. For ease of description, only parts related to the embodiment of the present invention are shown, including:

[0065] In an embodiment of the present invention, a device is provided, including a memory 201, a processor 202, and a computer program 203 stored in the memory and operable on the processor, wherein, when the computer program is executed by the processor, the above-mentioned The steps of the I2C device compatibility method based on the Android system; for example figure 1 Steps S10 to S50 are shown. Alternatively, when the processor 202 executes the computer program 203, the functions of the units in the above-mentioned device embodiments are realized, for example image 3 The functions of modules 101 to 103 are shown.

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 relates to an I2C device compatibility method and device based on an Android system, equipment and a medium, and is applied to the Android system, the compatibility method comprises the steps that after the Android system is started, an I2C driver in a uboot system obtains an I2C address of an external chip; the cpu sends the original I2C address configured by the dts to an I2C bus in the uboot stage, and I2C detection is carried out according to the I2C address; the uboot I2C driver carries out enumeration operation on the external chips one by one and sends I2C signals, and a judgment condition A for judging whether the external chips reply or not after the I2C signals are sent is added to the I2C driver of each external chip; the method comprises the following steps: adding a judgment condition B in a rockchipdmianalog. C in an Android system kernel driver, wherein the judgment condition B is used for selecting any external chip and driving the external chip to work; after the uboot stage is finished, reading the modified dts configuration by the cpu, and loading a corresponding I2C drive; according to the method, the I2C equipment is greatly compatible, when the I2C equipment is frequently replaced, time is saved for software research and development, and great convenience is brought to products to adapt to the market.

Description

technical field [0001] The present invention relates to the technical field of I2C equipment, and more specifically, relates to an I2C equipment compatibility method, device, equipment and medium based on an Android system. Background technique [0002] Affected by the epidemic in today's world, leading to large-scale chip shortages, major manufacturers are looking for alternative materials to replace, resulting in a peripheral IC chip with multiple models for compatible design, thus ensuring that due to chip shortages resulting in unproductive problems. [0003] For example, an audio IC designed in Taiwan, China is out of stock and has a large-scale price increase due to production problems, so that subsequent products have to be replaced by other brands. However, the software must guarantee the functions of the previous product and the new product after the replacement. Integrity, it is very necessary to do software compatibility, compatible with the IC of each external c...

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/38G06F13/42
CPCG06F13/385G06F13/4282
Inventor 马镭
Owner 深圳市智微智能科技股份有限公司