CN-121996592-A - Data transmission method and electronic equipment
Abstract
The application provides a data transmission method and electronic equipment, which are applied to the technical field of electronics and are used for adjusting configuration information of an MI PI interface and ensuring the quality of data transmitted through the MI PI interface. The method is applied to electronic equipment, the electronic equipment comprises a first module and a second module, and the first module transmits data to the second module through a MI PI interface of a mobile industry processor. The method comprises the steps of controlling a first module to adopt first configuration information and transmitting data to a second module through an MI PI interface. And under the condition that the transmission data is abnormal, controlling the first module to adopt the second configuration information, and transmitting the data to the second module through the MI PI interface. The first configuration information and the second configuration information are different configuration information of the MI PI interface, and transmission parameters are different when the different configuration information is adopted to transmit data through the MI PI interface.
Inventors
- SHEN LIANG
Assignees
- 荣耀终端股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241108
Claims (13)
- 1. The data transmission method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a first module and a second module, the first module transmits data to the second module through a mobile industry processor MIPI interface, and the method comprises the following steps: controlling the first module to adopt first configuration information to transmit data to the second module through the MIPI interface; under the condition that transmission data are abnormal, the first module is controlled to adopt second configuration information, and the data are transmitted to the second module through the MIPI interface; The first configuration information and the second configuration information are different configuration information of the MIPI interface, transmission parameters are different when different configuration information is adopted to transmit data through the MIPI interface, and the transmission parameters comprise current and signal quality.
- 2. The method of claim 1, wherein a second current when transmitting data over the MIPI interface using the second configuration information is higher than a first current when transmitting data over the MIPI interface using the first configuration information, and/or wherein a second signal quality when transmitting data over the MIPI interface using the second configuration information is higher than a first signal quality when transmitting data over the MIPI interface using the first configuration information.
- 3. The method of claim 2, wherein the first configuration information is the lowest configuration information among all configuration information; The method further comprises the step of continuing to adjust the configuration information adopted by the first module if the transmission data is abnormal after the first module is controlled to adopt the second configuration information and the data is transmitted to the second module through the MIPI interface.
- 4. A method according to claim 2 or 3, characterized in that, When the abnormal type corresponding to the abnormal condition of the transmission data is the first type, adopting the second configuration information to transmit the second current when the data is transmitted through the MIPI interface, wherein the second current is higher than the first current when the first configuration information is adopted to transmit the data through the MIPI interface; Wherein the first type characterizes a signal driving capability of the MIPI interface as being less than a first threshold.
- 5. The method according to claim 4, wherein the method further comprises: When the abnormal type corresponding to the abnormal condition of the transmission data is a second type, adopting the second configuration information to transmit the second current when the data is transmitted through the MIPI interface, wherein the second current is lower than the first current when the first configuration information is adopted to transmit the data through the MIPI interface; and/or, when the abnormality type corresponding to the abnormality of the transmission data is a second type, adopting the second configuration information to transmit the data through the MIPI interface, wherein the second signal quality is lower than the first signal quality when adopting the first configuration information to transmit the data through the MIPI interface; the second type characterizes that the signal driving capability of the MIPI interface is larger than a second threshold value, and the second threshold value is larger than the first threshold value.
- 6. The method according to any one of claims 1-5, wherein configuration information adopted by the first module to transmit data through the MIPI interface is stored in a register corresponding to the first module; and under the condition that the transmission data is abnormal, controlling the first module to adopt second configuration information, and transmitting the data to the second module through the MIPI interface, wherein the method comprises the following steps: And under the condition that the transmission data is abnormal, modifying the content of a register corresponding to the first module from the first configuration information to the second configuration information.
- 7. The method of claim 6, wherein prior to modifying the contents of the register corresponding to the first module from the first configuration information to the second configuration information, the method further comprises: displaying prompt information under the condition that the transmission data is abnormal, wherein the prompt information is used for inquiring whether to restart or not; The modifying the content of the register corresponding to the first module from the first configuration information to the second configuration information includes: and responding to the triggering operation of restarting received based on the prompt information, modifying the content of the register corresponding to the first module from the first configuration information to the second configuration information, and executing the restarting operation.
- 8. The method of any one of claims 1-7, wherein the first module is a camera module and the second module is a processor; and under the condition that the transmission data is abnormal, controlling the first module to adopt second configuration information, and transmitting the data to the second module through the MIPI interface, wherein the method comprises the following steps: And under the condition that the transmission data is abnormal, controlling the processor to send an adjustment instruction to the camera module, wherein the adjustment instruction is used for indicating the camera module to adopt second configuration information, and transmitting the data to the processor through the MIPI interface.
- 9. The method of claim 8, wherein the controlling the processor to send an adjustment instruction to the camera module comprises: And controlling the processor to send the adjusting instruction to the camera through an inter-integrated circuit IIC channel.
- 10. The method of any one of claims 1-7, wherein the first module is a processor and the second module is a screen.
- 11. An electronic device comprising an MIPI interface, a processor, a memory, and a computer program stored on the memory, the memory coupled to the processor; When the electronic device is running, the processor executes the computer program to implement the method of any one of claims 1-10.
- 12. A computer readable storage medium, characterized in that a computer program is stored, which computer program, when being executed by a processor of an electronic device, implements the method according to any of claims 1-10.
- 13. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-10.
Description
Data transmission method and electronic equipment Technical Field The embodiment of the application relates to the technical field of electronics, in particular to a data transmission method and electronic equipment. Background The mobile industry processor interface (mobile industry processor interface, MIPI interface), which is a standardized hardware interface, is widely used in electronic devices to achieve high-speed data transmission. The signal driving capability requirements of different electronic devices or different devices on the MIPI interface are different. The method is limited by factors such as board level design differences such as board level wiring length and the like, driving capability differences of modules, capability parameter differences of corresponding receiving ends of MIPI interfaces and the like, and signal driving capability differences of MIPI interfaces applied to different electronic equipment occur, so that the quality of data transmitted through the MIPI interfaces is affected. Disclosure of Invention The embodiment of the application provides a data transmission method and electronic equipment, which are used for adjusting configuration information of an MIPI interface and ensuring the quality of data transmitted through the MIPI interface. In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme: In a first aspect, a data transmission method is provided and applied to an electronic device, wherein the electronic device comprises a first module and a second module, and the first module transmits data to the second module through a mobile industry processor MIPI interface. The method comprises the following steps: And controlling the first module to adopt the first configuration information to transmit data to the second module through the MIPI interface. In the case of an abnormality in the transmission data, it means that the first module transmits the data to the second module through the MIPI interface, and it is inappropriate to adopt the first configuration information. In this case, the first module is controlled to transmit data to the second module through the MIPI interface using the second configuration information. Thus, the adjustment of the configuration information of the MIPI interface is realized. The first configuration information and the second configuration information are different configuration information of the MIPI interface, and transmission parameters are different when the different configuration information is adopted to transmit data through the MIPI interface. The transmission parameters include current and signal quality. The MIPI interface configuration information can characterize the signal driving capabilities of the MIPI interface. When different configuration information is adopted, the signal driving capability of the MIPI interface is different. When the signal driving capability of the MIPI interface is different, the current and the signal quality are different when data is transmitted through the MIPI interface. Therefore, through the scheme, the signal driving capability of the MIPI interface is matched with the current data transmission requirement of the electronic equipment, abnormal situations of data transmission are avoided, and therefore the quality of data transmitted through the MIPI interface is improved. In a possible implementation manner of the first aspect, after controlling the first module to use the second configuration information and transmitting data to the second module through the MIPI interface, the electronic device may further monitor whether there is an abnormality in transmitting data to the second module through the MIPI interface by the first module. If the first module adopts the second configuration information and there is still abnormal transmission data in the process of transmitting data to the second module through the MIPI interface, the electronic device can adjust the second configuration information into other configuration information, such as third configuration information. And so on until the configuration information adopted by the first module currently, transmitting data to the second module through the MIPI interface is no longer abnormal. In a possible implementation manner of the first aspect, the second current when the second configuration information is used to transmit data through the MIPI interface is higher than the first current when the first configuration information is used to transmit data through the MIPI interface. That is, the configuration information adopted by the first module is adjusted from the first configuration information to the second configuration information, so that the current when the first module transmits data to the second module is improved, that is, the signal driving capability of the MIPI interface is improved. In the scheme, the configuration information adopted by the electroni