Data transmission method and apparatus, electronic device, and storage medium
By acquiring and adjusting the clock signal frequency of the mobile industry processor interface, the problem of long mode switching time was solved, and data transmission efficiency was improved.
Patent Information
- Application Number
- CN202110926669.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-12
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2041-08-12
AI Technical Summary
Mobile processor interfaces take a long time to switch between high-speed data transmission mode and low-power mode, which affects data transmission efficiency.
By obtaining the current frequency of the first clock signal corresponding to the high-speed data transmission mode of the mobile industry processor interface, the target frequency of the second clock signal corresponding to the low-power mode is determined, and data transmission is controlled according to the first clock signal and the second clock signal at the target frequency, thereby shortening the mode switching time.
It effectively reduces mode switching time and improves data transmission efficiency.
Smart Images

Figure CN115878527B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a data transmission method and device, electronic equipment and storage medium. BACKGROUND
[0002] Mobile Industry Processor Interface (MIPI) is a high-speed differential serial transmission interface, which is widely used in data transmission of various electronic devices such as smart phones and tablet computers, such as transmitting image data collected by a camera to an application processor for processing. In the related art, the Mobile Industry Processor Interface switches between high-speed data transmission mode and low-power mode during data transmission, which takes a certain amount of time, thereby reducing the data transmission efficiency of the Mobile Industry Processor Interface. SUMMARY
[0003] The present application provides a data transmission method, device, electronic equipment and storage medium, which can save the time spent by the Mobile Industry Processor Interface when switching between high-speed data transmission mode and low-power mode, thereby achieving the purpose of improving data transmission efficiency.
[0004] The data transmission method provided by the present application comprises:
[0005] obtaining the current frequency of the first clock signal corresponding to the high-speed data transmission mode of the Mobile Industry Processor Interface;
[0006] determining the target frequency of the second clock signal corresponding to the low-power mode of the Mobile Industry Processor Interface according to the current frequency, the target frequency being greater than the default frequency of the second clock signal;
[0007] controlling the Mobile Industry Processor Interface to perform data transmission according to the first clock signal and the second clock signal with the target frequency.
[0008] The data transmission device provided by the present application comprises:
[0009] an obtaining module configured to obtain the current frequency of the first clock signal corresponding to the high-speed data transmission mode of the Mobile Industry Processor Interface;
[0010] a determining module configured to determine the target frequency of the second clock signal corresponding to the low-power mode of the Mobile Industry Processor Interface according to the current frequency, the target frequency being greater than the default frequency of the second clock signal;
[0011] a control module configured to control the Mobile Industry Processor Interface to perform data transmission according to the first clock signal and the second clock signal with the target frequency.
[0012] The electronic device provided in the application comprises a processor and a memory, the memory stores a computer program capable of running on the processor, and the processor executes the steps in the data transmission method provided in the application when running the computer program.
[0013] The storage medium provided in the application stores a computer program, and the computer program is run by a processor to execute the steps in the data transmission method provided in the application.
[0014] In the application, the target frequency division number of the high-speed data transmission clock signal corresponding to the mobile industry processor interface is acquired, the low-power mode transmission clock signal of the mobile industry processor interface is determined according to the high-speed data transmission clock signal and the target frequency division number, the working frequency of the low-power mode transmission clock signal is greater than the default frequency of the low-power mode transmission clock signal, and the mobile industry processor interface is controlled to perform data transmission according to the high-speed data transmission clock signal and the low-power mode transmission clock signal. In this way, the mobile industry processor interface can switch between the high-speed data transmission mode and the low-power mode according to the low-power mode transmission clock signal with a higher working frequency than the default frequency during data transmission, the time spent on mode switching is saved, and the data transmission efficiency is improved. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the application, the drawings needed in the embodiment description will be briefly introduced.
[0016] Figure 1 The flowchart of the data processing method provided in the embodiments of the application.
[0017] Figure 2 The beat comparison example diagram of the second clock signal before and after frequency conversion in the embodiments of the application.
[0018] Figure 3 The example diagram of the second clock signal obtained by frequency division of the first clock signal in the embodiments of the application.
[0019] Figure 4 The example diagram of the second clock signal generated by the preset clock in the embodiments of the application.
[0020] Figure 5 The structural schematic diagram of the data transmission device provided in the embodiments of the application.
[0021] Figure 6 The structural schematic diagram of the electronic device provided in the embodiments of the application. DETAILED DESCRIPTION
[0022] It is to be understood that the principles of the application are illustrated with respect to embodiments implemented in a suitable operating environment. The following description is based on the illustrated embodiments of the application, which should not be construed as limiting the other embodiments of the application not detailed herein. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor under the premise that the scope of protection of the present application.
[0023] The relationship terms such as first and second involved in the embodiments of the present application are only used to distinguish one object or operation from another object or operation, and are not used to limit the actual sequence relationship between the objects or operations. In the description of the embodiments of the present application, the meaning of "a plurality of" is two or more than two, unless otherwise explicitly specified.
[0024] The present application provides a data transmission method, a data transmission device, an electronic device and a storage medium. Wherein, the data transmission method can be executed by the data transmission device, or by the electronic device integrated with the data transmission device. Wherein, the physical form of the electronic device can be a mobile electronic device such as a smart phone, a tablet computer, a palm computer, a notebook computer, etc., or a fixed electronic device such as a television, a desktop computer, an advertising machine, etc.
[0025] Please refer to Figure 1 , Figure 1 The flowchart of the data transmission method provided by the embodiments of the present application is shown in Figure 1 The flow of the data transmission method can be as follows:
[0026] In step 110, the current frequency of the first clock signal corresponding to the high-speed data transmission mode of the mobile industry processor interface is obtained.
[0027] The mobile industry processor interface supports two working modes of high-speed data transmission mode and low-power mode. The mobile industry processor interface adopts low-voltage differential signal in high-speed data transmission mode, which has large power consumption but can achieve high data transmission rate. The mobile industry processor interface adopts single-ended signal in low-power mode, which has low data transmission rate but also has low power consumption. Through switching between high-speed data transmission mode and low-power mode, it is ensured that the mobile industry processor interface can transmit data at high speed when a large amount of data (such as image data) needs to be transmitted, and the power consumption can be reduced when a large amount of data does not need to be transmitted.
[0028] Correspondingly, the mobile industry processor interface needs to switch between the high-speed data transmission mode and the low-power consumption mode in the data transmission process, and transmits data in the structure of "data packet - packet conversion overhead - data packet". The packet conversion overhead is the time spent in switching the working mode of the mobile industry processor interface. Therefore, how to reduce the time spent in switching the mobile industry processor interface between the high-speed data transmission mode and the low-power consumption mode, so as to improve the data transmission efficiency of the mobile industry processor interface, becomes crucial.
[0029] It should be noted that the normal operation of each device in the electronic device cannot be separated from the clock signal, and the mobile industry processor interface is no exception. In the embodiment, the clock signal used to control the data transmission of the mobile industry processor interface in the high-speed data transmission mode is referred to as the first clock signal, and the clock signal used to control the data transmission of the mobile industry processor interface in the low-power consumption mode is referred to as the second clock signal.
[0030] When the mobile industry processor interface switches between the high-speed data transmission mode and the low-power consumption mode, there are some additional delays in addition to the necessary delay specified by the mobile industry processor interface protocol. Among them, the real transmission start and end positions are determined by the data channel request signal (TxRequestHS) and the end state signal (stop state), because only after receiving the end state signal, the next data channel request signal can be initiated to switch to the high-speed data transmission mode again. The data channel request signal and the end state signal will additionally bring two parts of delay.
[0031] Firstly, since the data channel request signal comes from the high-speed clock domain, and the opening of the low-power consumption signal comes from the low-power consumption clock domain, the data channel request signal needs to be transferred across the domains from the high-speed clock domain to the low-power consumption clock domain, including:
[0032] low-power consumption synchronization, which costs 2 beats of the second clock signal;
[0033] synchronization signal transmission to the low-power consumption state machine, which costs 1 beat of the second clock signal;
[0034] low-power consumption state machine transmission to the low-power consumption signal switch, which costs 1 beat of the second clock signal;
[0035] Among them, subject to the default frequency specified by the mobile industry processor interface protocol, each beat of the second clock signal is 50 ns, and a total of 4 beats are wasted here, with a delay of 4x50 ns = 200 ns.
[0036] Secondly, since the end state signal comes from the low-power consumption clock domain, for the same reason, when the high-speed data transmission ends, the signal needs to be transferred across the domains from the high-speed clock domain to the low-power consumption clock domain, including:
[0037] The low-power synchronization takes 2 clock cycles of the second clock signal;
[0038] The synchronization signal takes 1 clock cycle of the second clock signal to reach the low-power state machine;
[0039] The low-power state machine takes 1 clock cycle of the second clock signal to reach the low-power signal switch;
[0040] As described above, four clock cycles are wasted here, and the time delay is 4x50ns=200ns.
[0041] As described above, four clock cycles are wasted here, and the time delay is 4x50ns=200ns.
[0042] In the embodiment, the current frequency of the first clock signal corresponding to the high-speed data transmission mode of the MIPI is acquired first.
[0043] In the step 120, the target frequency of the second clock signal corresponding to the low-power mode of the MIPI is determined according to the current frequency of the first clock signal, and the target frequency is greater than the default frequency of the second clock signal.
[0044] In the embodiment, after the current frequency of the first clock signal is acquired, the target frequency of the second clock signal corresponding to the low-power mode of the MIPI is further determined according to the current frequency of the first clock signal, and the target frequency of the second clock signal is greater than the default frequency of the second clock signal.
[0045] In an optional embodiment, the target frequency dividing number corresponding to the first clock signal is acquired, and the target frequency of the second clock signal is determined according to the quotient of the current frequency of the first clock signal and the target frequency dividing number.
[0046] For example, the quotient of the current frequency of the first clock signal and the target frequency dividing number can be directly used as the target frequency of the second clock signal, or the quotient of the current frequency of the first clock signal and the target frequency dividing number can be rounded and the rounded quotient can be used as the target frequency of the second clock signal.
[0047] Wherein, a constraint is that a quotient of an operating frequency of the first clock signal and a target frequency division number is greater than a default frequency of the second clock signal, the target frequency division number can be pre-configured as a fixed value or dynamically determined according to a data transmission requirement of the mobile industry processor interface, for example, the greater the amount of data to be transmitted by the mobile industry processor interface, the smaller the determined target frequency division number.
[0048] For example, the default frequency of the second clock signal specified by the mobile industry processor interface protocol is 20Mhz, assuming that the determined target frequency division number is 3 and the current frequency of the first clock signal is 643Mhz, then 214Mhz, which is 3 divided by the current frequency (643Mhz), can be used as the target frequency of the second clock signal.
[0049] In step 130, the mobile industry processor interface is controlled to perform data transmission according to the first clock signal and the second clock signal with the target frequency.
[0050] In this embodiment, after the frequency of the second clock signal is increased, the mobile industry processor interface can be controlled to perform data transmission according to the first clock signal and the second clock signal with the target frequency. In this way, the mobile industry processor interface can switch between the high-speed data transmission mode and the low-power consumption mode according to the second clock signal with a higher operating frequency than the default frequency, thereby saving the time spent on mode switching.
[0051] For example, assuming that the frequency of the second clock signal is increased from the default frequency of 20Mhz to a target frequency of 200Mhz, then one beat of the second clock signal will be reduced from 50ns to 5ns, as shown in the following table. Figure 2 The above additional delay will be reduced to 4x5ns+4x5ns=40ns, which is significantly less than the previous 400ns, thereby significantly reducing the time spent on mode switching.
[0052] As can be seen from the above, in this application, the current frequency of the first clock signal corresponding to the high-speed data transmission mode of the mobile industry processor interface is obtained, and the target frequency of the second clock signal corresponding to the low-power consumption mode of the mobile industry processor interface is determined according to the current frequency of the first clock signal, the target frequency of the second clock signal is greater than the default frequency of the second clock signal, and the mobile industry processor interface is controlled to perform data transmission according to the first clock signal and the second clock signal with the target frequency. The above method enables the mobile industry processor interface to switch between the high-speed data transmission mode and the low-power consumption mode according to the second clock signal with a higher frequency than the default frequency during data transmission, thereby saving the time spent on mode switching and achieving the purpose of improving data transmission efficiency.
[0053] In an alternative embodiment, the second clock signal of the target frequency is obtained by dividing the first clock signal, or the second clock signal of the target frequency is generated by a preset clock according to the target frequency.
[0054] As an alternative embodiment, refer to Figure 3 The division number of the preset clock divider is configured as the target division number, the first clock signal is input into the clock divider for division processing, and the divided signal is directly taken as the second clock signal.
[0055] For example, assuming that the current frequency of the first clock signal is 643Mhz, if the obtained target division number is 3, the first clock signal is divided by 3 by the clock divider to obtain a divided signal of 214Mhz, and the divided signal of 214Mhz is taken as the second clock signal; if the obtained target division number is 4, the first clock signal is divided by 4 by the clock divider to obtain a divided signal of 160Mhz, and the divided signal of 160Mhz is taken as the second clock signal.
[0056] As another alternative embodiment, the second clock signal can be provided by another clock different from the clock for providing the first clock signal. The working frequency of the preset clock is configured as the target frequency, and the clock signal output by the preset clock according to the target frequency is taken as the second clock signal, as shown in Figure 4 .
[0057] For example, assuming that the current frequency of the first clock signal is 643Mhz, if the obtained target division number is 3, the target frequency can be determined as |643 / 3|=214(Mhz), the working frequency of the preset clock is configured as 214Mhz, and the second clock signal of 214Mhz is generated by the preset clock; if the obtained target division number is 4, the target frequency can be determined as |643 / 4|=160(Mhz), the working frequency of the preset clock is configured as 160Mhz, and the second clock signal of 160Mhz is generated by the preset clock.
[0058] In an alternative embodiment, the data transmission method provided by the application is applied to a sending end in an electronic device, and the electronic device further includes a receiving end. When there is a preset data sending demand in the sending end, the current frequency of the first clock signal of the high-speed data transmission mode corresponding to the mobile industry processor interface is obtained; and according to the first clock signal and the second clock signal of the target frequency, the mobile industry processor interface is controlled to send the to-be-sent data of the sending end to the receiving end.
[0059] It should be noted that the sending end and the receiving end can be components in an electronic device that can transmit data through the MIPI interface. For example, the sending end can be an image sensor that converts captured light source signals into RAW image data of digital signals, and the receiving end can be an image signal processor that performs specified image processing (including but not limited to black level compensation, lens correction, bad pixel correction, color interpolation, Bayer noise removal, white balance correction, color correction, gamma correction, color space conversion, etc.) on the RAW image data collected and transmitted by the image sensor to obtain YUV (or RGB) image data; the sending end can be an image signal processor, and the receiving end can be an application processor. The image signal processor can transmit the processed YUV (or RGB) image data to the application processor, and the application processor can perform further subsequent optimization processing (including but not limited to blurring processing, high dynamic range synthesis processing, beautification processing, super-resolution processing, noise reduction processing, etc.) to obtain further processed YUV (or RGB) image data; the sending end can be an application processor, and the receiving end can be a screen. The application processor can transmit the processed YUV (or RGB) image data to the screen for display.
[0060] It should be noted that the preset data transmission requirement includes but is not limited to a preset type data transmission requirement and a preset unit data volume transmission requirement, etc. The preset type data and the preset unit data volume can be configured by those skilled in the art according to actual needs, which are not limited here. For example, the preset data transmission requirement can include an image data transmission requirement.
[0061] In this embodiment, when there is a preset data transmission requirement at the sending end, the current frequency of the first clock signal corresponding to the high-speed data transmission mode of the MIPI is obtained, and the target frequency of the second clock signal corresponding to the low-power mode of the MIPI is determined according to the current frequency. For details, please refer to the related description in the above embodiments, which will not be repeated here.
[0062] Correspondingly, after the frequency of the second clock signal is completed, that is, the target frequency of the second clock signal is determined according to the current frequency of the first clock signal, the first clock signal and the second clock signal with the target frequency are used to control the MIPI to transmit the to-be-transmitted data of the sending end to the receiving end.
[0063] For example, the sending end is an image sensor, and the receiving end is an image signal processor. When there is a sending demand of image data at the sending end, a current frequency of a first clock signal corresponding to a mobile industry processor interface is acquired, a target frequency of a second clock signal is determined according to the current frequency, and the mobile industry processor interface is controlled to send the image data of the image sensor to the image signal processor for designated image processing according to the first clock signal and the second clock signal with the target frequency.
[0064] In an optional embodiment, the mobile industry processor interface is controlled to switch between the high-speed data transmission mode and the low-power consumption mode according to the second clock signal with the target frequency; and in the high-speed data transmission mode, the mobile industry processor interface is controlled to send the to-be-sent data of the sending end to the receiving end according to the first clock signal.
[0065] It should be noted that in the embodiment, the mobile industry processor interface can be a C (or C-PHY, CPHY, etc.) type mobile industry processor interface, or a D (or D-PHY, DPHY, etc.) type mobile industry processor interface.
[0066] The D type mobile industry processor interface generally includes one, two or four data transmission channels (referred to as Lane), each Lane walks a differential line pair, and is current-driven.
[0067] The C type mobile industry processor interface generally includes one, two or three data transmission channels (referred to as Trio), each Trio walks three lines, and is voltage-driven.
[0068] Correspondingly, due to the difference in physical layer wiring between the C type mobile industry processor interface and the D type mobile industry processor interface, the C type mobile industry processor interface and the D type mobile industry processor interface also have differences when switching between the high-speed data transmission mode and the low-power consumption mode.
[0069] For the D type mobile industry processor interface, in the low-power consumption mode, the sending end is controlled to send a first LP code sequence to the receiving end through the D type mobile industry processor interface according to the second clock signal with the target frequency, so as to switch the D type mobile industry processor interface to the high-speed data transmission mode, and the first LP code sequence includes an LP11 code, an LP01 code and an LP00 code.
[0070] For example, the sending end is controlled to provide high voltage to the differential P terminal line in the D-class mobile industry processor interface and high voltage to the differential N terminal line in the D-class mobile industry processor interface to realize the sending of the LP11 code; the sending end is controlled to provide low voltage to the differential P terminal line in the D-class mobile industry processor interface and high voltage to the differential N terminal line in the D-class mobile industry processor interface to realize the sending of the LP01 code; and the sending end is controlled to provide low voltage to the differential P terminal line in the D-class mobile industry processor interface and low voltage to the differential N terminal line in the D-class mobile industry processor interface to realize the sending of the LP00 code.
[0071] For the C-class mobile industry processor interface, in the low-power mode, the sending end is controlled to send a second LP code sequence to the receiving end through the C-class mobile industry processor interface according to a second clock signal of a target frequency, to switch the C-class mobile industry processor interface to the high-speed data transmission mode, and the second LP code sequence includes an LP111 code, an LP001 code and an LP000 code.
[0072] For example, the sending end is controlled to provide high voltage to the A terminal line, the B terminal line and the C terminal line in the C-class mobile industry processor interface to realize the sending of the LP111 code; the sending end is controlled to provide low voltage to the A terminal line and the B terminal line in the C-class mobile industry processor interface and high voltage to the C terminal line in the C-class mobile industry processor interface to realize the sending of the LP001 code; and the sending end is controlled to provide low voltage to the A terminal line, the B terminal line and the C terminal line in the C-class mobile industry processor interface to realize the sending of the LP000 code.
[0073] It should be noted that the mobile industry processor interface protocol stipulates that the minimum duration of the LP001 code is 50 ns, and therefore, when the sending end sends the LP001 code in the second LP code sequence to the receiving end through the C-class mobile industry processor interface, the second clock signal of the target frequency is counted; when the count reaches a preset beat number, the sending end sends the LP000 code in the second LP code sequence to the receiving end through the C-class mobile industry processor interface.
[0074] The preset beat number depends on the target frequency of the determined second clock signal, and is greater than 50f, where f represents the target frequency of the second clock signal, and can be configured by those skilled in the art according to actual needs.
[0075] It should be noted that when the internal components of the electronic device perform data transmission through the mobile industry processor interface, the working frequency of the first clock signal of the mobile industry processor interface partially overlaps with the radio frequency of the electronic device, which easily causes interference to the radio frequency communication of the electronic device. To avoid the interference caused by the data transmission of the mobile industry processor interface to the radio frequency communication, in the embodiment, before the current frequency of the first clock signal corresponding to the high-speed data transmission mode of the mobile industry processor interface is acquired, the second target frequency of the first clock signal is determined according to the radio frequency band, and the working frequency of the first clock signal is configured as the second target frequency. The second target frequency will not cause interference to the radio frequency band. It can be understood that there is no absolute sense of no interference in the actual radio frequency communication process, and the second target frequency will not cause interference to the radio frequency band can be understood as that the second target frequency will not affect the normal radio frequency communication.
[0076] In an optional embodiment, when the mobile industry processor interface is in an idle state, the working frequency of the first clock signal is configured as the second target frequency.
[0077] In an optional embodiment, according to the interference degree of different working frequencies of the first clock signal to the radio frequency band, the working frequency with the smallest interference degree to the radio frequency band is determined as the second target frequency of the first clock signal.
[0078] The interference degree of different working frequencies of the first clock signal to the radio frequency band can be obtained through experiments in advance, which is not described herein.
[0079] In an optional embodiment, according to the interference degree of different working frequencies of the first clock signal to the radio frequency band, the second target frequency of the first clock signal is determined from the working frequencies with an interference degree less than a preset threshold to the radio frequency band.
[0080] As described above, there is no absolute sense of no interference in the actual radio frequency communication process, and the constraint that the second target frequency will not affect the normal radio frequency communication can be an empirical value according to actual needs of those skilled in the art.
[0081] In addition, when the second target frequency of the first clock signal is determined from the working frequencies with an interference degree less than a preset threshold to the radio frequency band, the working frequency closest to the current working frequency of the first clock signal can be selected as the second target frequency. If there is a working frequency identical to the current working frequency of the first clock signal, the working frequency is not adjusted.
[0082] In order to better implement the data transmission method in the embodiments of the present application, on the basis of the data transmission method, the present application further provides a data transmission device, such as Figure 5As shown, a structural schematic diagram of a data transmission apparatus provided by the present application is shown, the data transmission apparatus 200 comprises:
[0083] The acquisition module 210 is configured to acquire a current frequency of a first clock signal corresponding to a high-speed data transmission mode of a mobile industry processor interface;
[0084] The determination module 220 is configured to determine a target frequency of a second clock signal corresponding to a low-power mode of the mobile industry processor interface according to the current frequency of the first clock signal, the target frequency of the second clock signal being greater than a default frequency of the second clock signal;
[0085] The control module 230 is configured to control the mobile industry processor interface to perform data transmission according to the first clock signal and the second clock signal with the target frequency.
[0086] In an optional embodiment, the determination module 220 is configured to:
[0087] acquire a target frequency division number corresponding to the first clock signal;
[0088] determine the target frequency of the second clock signal according to a quotient of the current frequency of the first clock signal and the target frequency division number.
[0089] In an optional embodiment, the second clock signal with the target frequency is obtained by frequency division of the first clock signal, or the second clock signal with the target frequency is generated by a preset clock according to the target frequency.
[0090] In an optional embodiment, the data transmission apparatus provided by the present application is applied to a sending end in an electronic device, the electronic device further comprises a receiving end, the acquisition module 210 acquires the current frequency of the first clock signal when there is a preset data sending demand in the sending end, and the control module 230 is configured to control the mobile industry processor interface to send the to-be-sent data of the sending end to the receiving end according to the first clock signal and the second clock signal with the target frequency.
[0091] In an optional embodiment, the control module 230 is configured to:
[0092] control the mobile industry processor interface to switch between the high-speed data transmission mode and the low-power mode according to the second clock signal with the target frequency;
[0093] wherein, in the high-speed data transmission mode, the mobile industry processor interface is controlled to send the to-be-sent data of the sending end to the receiving end according to the first clock signal.
[0094] In an optional embodiment, the mobile industry processor interface comprises a class-C mobile industry processor interface or a class-D mobile industry processor interface.
[0095] In an optional embodiment, when the mobile industry processor interface is a D-class mobile industry processor interface, the control module 230 is configured to:
[0096] In the low-power mode, according to the second clock signal of the target frequency, the control module 230 controls the sending end to send a first LP code sequence to the receiving end through the D-class mobile industry processor interface, so as to switch the D-class mobile industry processor interface to the high-speed data transmission mode.
[0097] The first LP code sequence includes an LP11 code, an LP01 code, and an LP00 code.
[0098] In an optional embodiment, when the mobile industry processor interface is a C-class mobile industry processor interface, the control module 230 is configured to:
[0099] In the low-power mode, according to the second clock signal of the target frequency, the control module 230 controls the sending end to send a second LP code sequence to the receiving end through the C-class mobile industry processor interface, so as to switch the C-class mobile industry processor interface to the high-speed data transmission mode.
[0100] The second LP code sequence includes an LP111 code, an LP001 code, and an LP000 code.
[0101] In an optional embodiment, when the control module 230 controls the sending end to send the LP001 code in the second LP code sequence to the receiving end through the C-class mobile industry processor interface, the control module 230 is configured to count the second clock signal of the target frequency; and when the counting reaches a preset beat number, the control module 230 controls the sending end to send the LP000 code in the second LP code sequence to the receiving end through the C-class mobile industry processor interface.
[0102] It should be noted that, in specific implementation, the above modules can be implemented as independent entities, or can be combined as the same or several entities, and the specific implementation of the above modules can be referred to the method embodiments above, which will not be described here.
[0103] Since the data transmission apparatus can perform the steps in the data transmission method in any embodiment of the present application, the beneficial effects of the data transmission method in any embodiment of the present application can be achieved, which are described in detail above, and will not be described here.
[0104] In addition, in order to better implement the data transmission method in the embodiments of the present application, based on the data transmission method, the present application further provides an electronic device, which is described below. Figure 6 , Figure 6 Fig. 1 shows a structural schematic diagram of an electronic device 300 provided by the present application, which is described below. Figure 6As shown, the electronic device 300 provided in the present application includes a processor 310 and a memory 320.
[0105] The processor 310 can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor and the like. The processor is the control center of the electronic device 300, and connects all parts of the electronic device 300 through various interfaces and lines.
[0106] The memory 320 can be used to store computer programs and / or modules. The processor 310 realizes various functions of the computer device by running or executing the computer programs and / or modules stored in the memory 320, and calling data stored in the memory 320. The memory 320 can mainly include a program storage area and a data storage area. The program storage area can store operating systems, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), and the like. The data storage area can store data created according to the use of the electronic device 300 (such as audio data, video data, etc.), and the like. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, for example, a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory devices.
[0107] For example, the computer program can be divided into one or more modules / units (one or more modules / units can be a series of computer program instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program in the computer device). One or more modules / units are stored in the memory 320 and executed by the processor 310 to complete the embodiments of the present application, such as:
[0108] obtaining a current frequency of a first clock signal corresponding to a high-speed data transmission mode of a mobile industry processor interface;
[0109] According to the current frequency of the first clock signal, a target frequency of a second clock signal corresponding to a low power mode of the mobile industry processor interface is determined, and the target frequency of the second clock signal is greater than a default frequency of the second clock signal.
[0110] According to the first clock signal and the second clock signal with the target frequency, the mobile industry processor interface is controlled to perform data transmission.
[0111] In an optional embodiment, the processor 310 is configured to perform:
[0112] Obtain a target frequency division number corresponding to the first clock signal;
[0113] According to a quotient of the current frequency of the first clock signal and the target frequency division number, a target frequency of a second clock signal is determined.
[0114] In an optional embodiment, the second clock signal with the target frequency is obtained by frequency division of the first clock signal, or the second clock signal with the target frequency is generated by a preset clock according to the target frequency.
[0115] In an optional embodiment, when there is a preset data sending requirement of a sending end in the electronic device, the processor 310 obtains a target frequency division number corresponding to the first clock signal of the mobile industry processor interface; and according to the first clock signal and the second clock signal with the target frequency, the processor 310 controls the mobile industry processor interface to send the to-be-sent data of the sending end to a receiving end.
[0116] In an optional embodiment, the processor 310 is configured to perform:
[0117] According to the second clock signal with the target frequency, the processor 310 controls the mobile industry processor interface to switch between a high-speed data transmission mode and a low power mode;
[0118] In the high-speed data transmission mode, according to the first clock signal, the processor 310 controls the mobile industry processor interface to send the to-be-sent data of the sending end to the receiving end.
[0119] In an optional embodiment, the mobile industry processor interface includes a class C mobile industry processor interface or a class D mobile industry processor interface.
[0120] In an optional embodiment, when the mobile industry processor interface is a class D mobile industry processor interface, the processor 310 is configured to perform:
[0121] In the low power mode, according to the second clock signal with the target frequency, the processor 310 controls the sending end to send a first LP code sequence to the receiving end through the class D mobile industry processor interface, so as to switch the class D mobile industry processor interface to the high-speed data transmission mode.
[0122] The first LP code sequence includes an LP11 code, an LP01 code, and an LP00 code.
[0123] In an optional embodiment, when the mobile industry processor interface is a class C mobile industry processor interface, the processor 310 is configured to perform:
[0124] In the low power consumption mode, the sending end is controlled to send a second LP code sequence to the receiving end through the class C mobile industry processor interface according to the second clock signal of the target frequency, so as to switch the class C mobile industry processor interface to the high speed data transmission mode.
[0125] The second LP code sequence includes an LP111 code, an LP001 code, and an LP000 code.
[0126] In an optional embodiment, the processor 310 is configured to perform:
[0127] When the sending end is controlled to send the LP001 code in the second LP code sequence to the receiving end through the class C mobile industry processor interface, the second clock signal of the target frequency is counted, and when the count reaches a preset beat number, the sending end is controlled to send the LP000 code in the second LP code sequence to the receiving end through the class C mobile industry processor interface.
[0128] It should be noted that the electronic device 300 can include, but is not limited to, the processor 310 and the memory 320. Those skilled in the art can understand that the electronic device 300 is only an example and does not limit the electronic device 300, and can include more or fewer components than the example, or combine certain components, or different components, for example, the electronic device 300 can also include an input / output device, a network access device, a bus, etc., and the processor 310, the memory 320, the input / output device, and the network access device are connected through the bus.
[0129] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the electronic device 300 and the corresponding units described above can refer to the description of the data transmission method in the above embodiments, and will not be described here.
[0130] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by instructions controlling related hardware, which can be stored in a computer readable storage medium and loaded and executed by a processor.
[0131] To this end, an embodiment of the present application provides a computer readable storage medium, wherein a plurality of instructions are stored, the instructions can be loaded by a processor to execute steps in the data transmission method in the above embodiments of the present application, such as:
[0132] obtaining a current frequency of a first clock signal corresponding to a high-speed data transmission mode of the MIPI;
[0133] determining a target frequency of a second clock signal corresponding to a low-power mode of the MIPI according to the current frequency of the first clock signal, the target frequency of the second clock signal being greater than a default frequency of the second clock signal;
[0134] controlling the MIPI to perform data transmission according to the first clock signal and the second clock signal with the target frequency.
[0135] The computer readable storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0136] Since the instructions stored in the computer readable storage medium can execute the steps in the data transmission method in the above embodiments of the present application, the beneficial effects of the data transmission method in the above embodiments of the present application can be achieved, which are described in detail above and will not be repeated here.
[0137] The above provides a data transmission method, device, electronic equipment and storage medium, specific examples are applied to explain the principles and implementation modes of the present application, the above embodiment is only used to help understand the method and core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, the specific implementation mode and application range will be changed, and the above description should not be understood as the limitation of the present application.
Claims
1. A data transmission method, characterized by, The method comprises the following steps: According to the radio frequency band, the second target frequency of the first clock signal is determined, and the working frequency of the first clock signal is configured as the second target frequency, wherein the interference degree of the second target frequency to the radio frequency band is less than a preset threshold; The current frequency of the first clock signal corresponding to the high-speed data transmission mode of the mobile industry processor interface is obtained; According to the current frequency, the target frequency of the second clock signal corresponding to the low-power mode of the mobile industry processor interface is determined, and the target frequency is greater than the default frequency of the second clock signal, so that the mobile industry processor interface can switch between the high-speed data transmission mode and the low-power mode according to the second clock signal of the target frequency; According to the first clock signal and the second clock signal of the target frequency, the data transmission of the mobile industry processor interface is controlled.
2. The data transmission method of claim 1, wherein, The method comprises the following steps: The target frequency of the second clock signal corresponding to the low-power mode of the mobile industry processor interface is determined according to the current frequency and the quotient of the target frequency and the target frequency. The target frequency of the second clock signal is obtained by dividing the first clock signal, or the target frequency of the second clock signal is generated by a preset clock according to the target frequency.
3. The data transmission method of claim 1, wherein, The method comprises the following steps:
4. The data transmission method according to any one of claims 1-3, applied to a sending end in an electronic device, the electronic device further comprising a receiving end, characterized in that, When there is a preset data transmission demand in the sending end, the current frequency is obtained; The method comprises the following steps: According to the first clock signal and the second clock signal of the target frequency, the mobile industry processor interface is controlled to send the to-be-sent data of the sending end to the receiving end. The method comprises the following steps:
5. The data transmission method of claim 4, wherein, According to the second clock signal of the target frequency, the mobile industry processor interface is controlled to switch between the high-speed data transmission mode and the low-power mode; In the high-speed data transmission mode, the mobile industry processor interface is controlled to send the to-be-sent data of the sending end to the receiving end according to the first clock signal. The mobile industry processor interface comprises a class C mobile industry processor interface or a class D mobile industry processor interface.
6. The data transmission method of claim 5, wherein, When the mobile industry processor interface is the class D mobile industry processor interface, the method comprises the following steps:
7. The data transmission method of claim 6, wherein, In the low power consumption mode, the sending end is controlled to send a first LP code sequence to the receiving end through the D-class mobile industry processor interface according to a second clock signal of the target frequency, so as to switch the D-class mobile industry processor interface to the high speed data transmission mode. The first LP code sequence comprises an LP11 code, an LP01 code and an LP00 code.
8. The data transmission method of claim 6, wherein, When the mobile industry processor interface is the C-class mobile industry processor interface, the step of controlling the mobile industry processor interface to switch between the high speed data transmission mode and the low power consumption mode according to the second clock signal of the target frequency comprises: In the low power consumption mode, the sending end is controlled to send a second LP code sequence to the receiving end through the C-class mobile industry processor interface according to a second clock signal of the target frequency, so as to switch the C-class mobile industry processor interface to the high speed data transmission mode. The second LP code sequence comprises an LP111 code, an LP001 code and an LP000 code.
9. The data transmission method of claim 8, wherein, The step of controlling the sending end to send the second LP code sequence to the receiving end through the C-class mobile industry processor interface according to the second clock signal of the target frequency comprises: When the sending end is controlled to send the LP001 code in the second LP code sequence to the receiving end through the C-class mobile industry processor interface, the second clock signal of the target frequency is counted. When the counting reaches a preset number of beats, the sending end is controlled to send the LP000 code in the second LP code sequence to the receiving end through the C-class mobile industry processor interface.
10. A data transmission apparatus, characterized by comprising: The method comprises: an acquisition module configured to determine a second target frequency of a first clock signal according to a radio frequency band, and configure a working frequency of the first clock signal as the second target frequency, wherein the second target frequency has an interference degree on the radio frequency band less than a preset threshold, and acquire a current frequency of a first clock signal corresponding to a high speed data transmission mode of a mobile industry processor interface; a determination module configured to determine a target frequency of a second clock signal corresponding to a low power consumption mode of the mobile industry processor interface according to the current frequency, wherein the target frequency is greater than a default frequency of the second clock signal, so that the mobile industry processor interface can switch between the high speed data transmission mode and the low power consumption mode according to the second clock signal of the target frequency; a control module configured to control the mobile industry processor interface to perform data transmission according to the first clock signal and the second clock signal of the target frequency.
11. An electronic device comprising a processor and a memory, characterized in that The memory stores a computer program capable of running on the processor, and the processor runs the computer program to perform the steps in the data transmission method of any one of claims 1 to 9.
12. A storage medium having stored thereon a computer program, characterized in that The computer program is run by the processor to perform the steps in the data transmission method of any one of claims 1 to 9.
Citation Information
Patent Citations
System and method for dynamically adjusting host low power clock frequency
EP3073349A1
Transmission device and communication system
US20200373952A1