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


