Phase calibration method, demodulation device, charger, electronic device, and storage medium

By using the flip-time count value to separate the data stream in wireless charging demodulation and dynamically updating the phase calibration value, the problem of carrier frequency and phase matching is solved, the demodulation quality and efficiency are improved, and phase drift overflow is avoided.

CN120785702BActive Publication Date: 2025-12-12ZHEJIANG GEOFORCECHIP TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511293465.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-11
Publication Date
2025-12-12
Estimated Expiration
2045-09-11

AI Technical Summary

Technical Problem

In coherent demodulation of wireless charging, the carrier frequency and phase are difficult to match precisely, which leads to phase drift and demodulation quality degradation. In particular, the initial value of the demodulation angle information is random under high resolution conditions, which affects the demodulation quality.

Method used

By setting a flip time count value, the target data in the data stream is divided into phase calibration data and data to be calibrated. The phase calibration value is updated using the phase calibration data, and the phase of the data to be calibrated is calibrated to achieve dynamic phase calibration and reduce phase deviation.

Benefits of technology

It effectively reduces phase deviation during data transmission, improves the accuracy and demodulation quality of the data to be calibrated, enhances demodulation efficiency, and avoids overflow problems caused by phase drift.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120785702B_ABST
    Figure CN120785702B_ABST
Patent Text Reader

Abstract

The application relates to the field of demodulation, and discloses a phase calibration method, a demodulation device, a charger, electronic equipment and a storage medium. The method comprises the following steps: according to a flip time count value, target data in a received data stream is divided into phase calibration data or to-be-calibrated data; in the case that the target data is the phase calibration data, a phase calibration value is updated according to the phase calibration data; in the case that the target data is the to-be-calibrated data, the phase of the to-be-calibrated data is calibrated according to the phase calibration value, and to-be-analyzed data is obtained; and the to-be-analyzed data is analyzed. The target data obtained from the idle stage is used as the phase calibration data, which is used for calibrating the to-be-calibrated data in a data packet, so that the to-be-calibrated data in the data packet can be calibrated in time. The phase calibration value is updated by using the phase calibration data, so that the phase deviation generated with time in the data transmission process can be reduced, the accuracy of the to-be-calibrated data after calibration is improved, and the demodulation quality is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of demodulation, and in particular to a phase calibration method, a demodulation device, a charger, an electronic device and a storage medium. BACKGROUND

[0002] In the existing demodulation scheme of wireless charging, the demodulation performance of different demodulation methods is quite different. Since coherent demodulation has the advantage of good analytical performance, this demodulation method is also widely used. The coherent demodulation method relies on carrier phase synchronization, so it is required to accurately recover the frequency and phase of the carrier of the sending end at the receiving end to correctly demodulate the signal. However, since the starting time of the demodulation end and the carrier sending cannot be controlled, it is difficult to perfectly match the frequency deviation. Especially in high-resolution coherent demodulation, this will cause the "initial value" in the angle information obtained by "coherent demodulation" to be random, so that the accurate phase of the carrier cannot be obtained, affecting the demodulation quality.

[0003] In view of the above, it is necessary to provide a phase calibration method, a demodulation device, a charger, an electronic device and a storage medium capable of improving the demodulation quality. SUMMARY

[0004] The present application provides a phase calibration method, a demodulation device, a charger, an electronic device and a storage medium, which can improve the demodulation quality.

[0005] In a first aspect, the present application provides a phase calibration method, which comprises:

[0006] According to the flip time count value, the target data in the received data stream is divided into phase calibration data or to-be-calibrated data;

[0007] In the case that the target data is the phase calibration data, the phase calibration value is updated according to the phase calibration data;

[0008] In the case that the target data is the to-be-calibrated data, the phase of the to-be-calibrated data is calibrated according to the phase calibration value to obtain to-be-analyzed data;

[0009] The to-be-analyzed data is analyzed.

[0010] Optionally, the step of dividing the target data in the received data stream into phase calibration data or to-be-calibrated data according to the flip time count value comprises:

[0011] Determining the target data from the received data stream;

[0012] In the case that the flip time count value is less than or equal to a preset threshold value, it is judged whether the target data is flipped;

[0013] if the target data is not flipped, the target data is classified as the phase calibration data;

[0014] if the target data is flipped, the target data is classified as the data to be calibrated.

[0015] Optionally, the updating of the phase calibration value according to the phase calibration data in the case that the target data is the phase calibration data comprises:

[0016] acquiring a phase value of the phase calibration data in the case that the target data is the phase calibration data;

[0017] storing the phase value;

[0018] updating the phase calibration value according to the stored phase value.

[0019] Optionally, after the storing of the phase value, the method further comprises:

[0020] clearing the flip time count value;

[0021] parsing the phase calibration data.

[0022] Optionally, the calibrating of the phase of the data to be calibrated according to the phase calibration value to obtain data to be parsed in the case that the target data is the data to be calibrated comprises:

[0023] acquiring a phase value of the phase calibration value in the case that the target data is the data to be calibrated;

[0024] determining the data to be parsed according to a difference between the phase value of the data to be calibrated and the phase value of the phase calibration value.

[0025] Optionally, before the determining of the data to be parsed according to the difference between the phase value of the data to be calibrated and the phase value of the phase calibration value, the method further comprises:

[0026] in the case that the phase value of the phase calibration value is not obtained, taking the phase value of the data to be calibrated as the phase value of the phase calibration data.

[0027] Optionally, after the parsing of the data to be parsed, the method further comprises:

[0028] updating the flip time count value in the case that the parsing of the data stream is not completed;

[0029] continuing to perform the step of classifying the target data in the received data stream as the phase calibration data or the data to be calibrated according to the flip time count value.

[0030] Optionally, after the parsing of the data to be parsed, the method further comprises:

[0031] In case the parsing of the data stream is completed, output the parsed data content;

[0032] updating the rollover time count value;

[0033] continuing the step of classifying the target data in the received data stream into phase calibration data or calibration-to-be data according to the rollover time count value.

[0034] In a second aspect, the present application provides a demodulation device, comprising a demodulation circuit, and the phase calibration method according to any one of the first aspect is applied to the data stream output by the demodulation circuit.

[0035] In a third aspect, the present application provides a wireless charger, comprising the demodulation device according to the second aspect.

[0036] In a fourth aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the phase calibration method according to any one of the first aspect.

[0037] In a fifth aspect, the present application provides a storage medium, having computer readable instructions stored thereon, and the computer readable instructions are executable by a processor to implement the phase calibration method according to any one of the first aspect.

[0038] The present application has the advantages that: by setting the rollover time count value, the data packet phase and the idle phase can be determined from the data stream, the target data obtained from the data packet segment is taken as the calibration-to-be data, and the target data obtained from the idle phase is taken as the phase calibration data, which is used to calibrate the calibration-to-be data in the data packet, so that the calibration-to-be data in the data packet can be calibrated in time; and by updating the phase calibration value using the phase calibration data, the phase deviation generated over time in the data transmission process can be reduced, the accuracy of the calibration-to-be data after calibration can be improved, and the demodulation quality can be improved. BRIEF DESCRIPTION OF DRAWINGS

[0039] Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The accompanying drawings are included to provide a description of preferred embodiments, and are not intended to limit the scope of the present application. Moreover, like reference numerals designate similar parts throughout the several views in the drawings. In the drawings:

[0040] Figure 1 is a schematic diagram of an energy transmitting end of an existing wireless charger system;

[0041] Figure 2is a schematic diagram of an existing wireless charging demodulation;

[0042] Figure 3 is a schematic diagram of an existing abnormal waveform and overflow point;

[0043] Figure 4 is a schematic diagram of a step of a phase calibration method provided by the present application;

[0044] Figure 5 is a schematic diagram of signal drift overflow due to frequency deviation of a phase calibration method provided by the present application;

[0045] Figure 6A is a schematic diagram of a frequency drift original state data signal of a phase calibration method provided by the present application;

[0046] Figure 6B is a schematic diagram of a frequency offset quantized data signal of a phase calibration method provided by the present application;

[0047] Figure 6C is a schematic diagram of an offset state quantized calibrated data signal of a phase calibration method provided by the present application;

[0048] Figure 7 is a schematic diagram of a calibration stage of a phase calibration method provided by the present application;

[0049] Figure 8 is a schematic diagram of a flow of a phase calibration method provided by the present application;

[0050] Figure 9 is a schematic diagram of data flip time of a phase calibration method provided by the present application;

[0051] Figure 10 is a schematic diagram of a state machine data jump process of a phase calibration method provided by the present application. DETAILED DESCRIPTION

[0052] Exemplary embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings; however, these embodiments are not intended to limit the scope of the present disclosure, but rather, the present disclosure can be implemented in various forms. Rather, these embodiments are provided in order to enable those skilled in the art to more thoroughly understand the present disclosure and to enable the complete disclosure of the present disclosure to be conveyed to the person skilled in the art. It should be noted that the technical terms or scientific terms used in the present application should be understood as the usual meanings understood by those skilled in the art unless otherwise specified.

[0053] An existing wireless charger system is as shown in Figure 1As shown, the energy transmitting end generally includes: a power input module, a direct current-direct current power supply (DC-DC) module, a system on chip (SOC), an H bridge (composed of MOS tubes M1, M2, M3 and M4), a transmitting end coil Tx Coil, an ASK demodulation and protection circuit. Figure 1 At the time of charging, an alternating current signal is generated on the H bridge, and energy is sent out through the transmitting end coil Tx Coil. When the energy receiving end receives the energy, an ASK modulated signal is generated on the carrier through a modulation capacitor or a load. The wireless charger demodulates the modulated signal through a detection module to realize data interaction between the energy transmitter and the receiver.

[0054] As shown, Figure 2 The demodulation of wireless charging mainly includes the following steps: differential operational amplifier scaling signal, analog-to-digital conversion sampling (ADC sampling), signal filtering, coherent demodulation, and envelope analysis, and finally the ASK data packet is demodulated. Coherent demodulation is a demodulation method in which a locally generated carrier signal is multiplied by an original carrier signal used for modulation at the transmitting end, and then a low-pass filter is used to recover the phase of the carrier. It has good analysis performance. However, since the coherent demodulation method depends on the carrier phase synchronization, it is required to accurately recover the frequency and phase of the carrier at the transmitting end at the receiving end to correctly demodulate the signal. However, the starting time of the demodulation end and the carrier transmission cannot be controlled, and the frequency deviation is difficult to perfectly match, so the angle information obtained by "coherent demodulation" will have "initial value" randomness and "phase" drift, etc., thereby generating an abnormal waveform or overflow point as shown in Figure 3 To solve the above problems, the embodiment of the present application provides a phase calibration method, a demodulation device, a charger, an electronic device and a storage medium.

[0055] Embodiment one

[0056] The embodiment provides a phase calibration method, as shown in Figure 4 The method comprises the following steps:

[0057] S101, according to the flip time count value, the target data in the received data stream is divided into phase calibration data or to-be-calibrated data;

[0058] S102, in the case that the target data is phase calibration data, updating the phase calibration value according to the phase calibration data;

[0059] S103, in the case that the target data is to-be-calibrated data, calibrating the phase of the to-be-calibrated data according to the phase calibration value to obtain to-be-analyzed data;

[0060] S104, analyzing the to-be-analyzed data.

[0061] As shown in Figure 2As shown, the signal is sampled by a high-speed ADC on the TX coil (modulated by a capacitor connected in parallel to the RX terminal), and after gain adjustment, filtering, and coherent demodulation, it forms two continuous data streams of 16 bits each with a frequency of 62.5 kHz. One stream is the amplitude envelope data stream, and the other is the angle envelope data stream. After parsing, including extremum detection, edge detection, bit parsing, byte parsing, and checksum detection, byte packets are formed.

[0062] like Figure 5 The diagram illustrates signal drift overflow caused by frequency deviation. When the external carrier (received signal) frequency is faster than the internal reference, the phase data drifts downwards; conversely, when the external carrier frequency is slower than the internal reference, the phase data drifts upwards. Therefore, without obtaining frequency and phase information from the carrier transmitter, such as when the internal reference is 360kHz but the received signal is 324kHz (e.g....), the signal will drift out of control. Figure 5 As shown in the diagram, due to frequency and phase differences, the phase of the received signal will gradually drift upwards until it reaches 180°, causing phase overflow. Therefore, even after calibration and zeroing, phase drift and overflow will inevitably occur as long as the frequency of the received signal is different from the frequency of the internal reference.

[0063] like Figure 6A As shown, the data signal obtained after sampling by a high-speed ADC exhibits the original state of frequency drift; Figure 6B As shown, this is the data signal with overflow point after frequency offset quantization obtained through coherent demodulation. Coherent demodulation quantizes the data signal obtained after high-speed ADC sampling to the range of -π / 2 to π / 2, and then outputs it. However, because the demodulation end and carrier transmission start time are uncontrollable, and the frequency deviation is difficult to perfectly match, the angle information obtained by coherent demodulation will have random "initial value" and "phase" drift, resulting in... Figure 6B The data signal shown has an overflow point; such as Figure 6C As shown, this is the offset state quantized calibration data signal (data to be parsed) obtained by calibrating the phase value of the data to be calibrated according to the embodiment of this application after coherent demodulation. The embodiment of this application is applied to the data stream calibration stage between the angle envelope data stream and the extremum discrimination. By calibrating the angle envelope data stream, the quality of extremum discrimination and data parsing is improved.

[0064] like Figure 7The diagram illustrates the calibration phase, which includes an idle phase and a data packet phase. In this application, the target data in the received data stream is divided into phase calibration data or data to be calibrated based on the flip-time count. Phase calibration data is the target data in the idle phase, and data to be calibrated is the target data in the data packet phase. This allows phase calibration data to be acquired in the idle phase, and the data to be calibrated to be calibrated to be calibrated in the data packet phase based on the phase calibration data. This results in high-quality phase-calibrated data to be used as the data to be parsed, improving demodulation quality. Since the data to be calibrated can be calibrated directly based on the phase calibration data in the data packet phase, no additional preparation time is required, thus improving demodulation efficiency. This application's implementation solves the phase drift overflow problem caused by carrier frequency offset by dynamically utilizing the idle phase signal to calibrate the data packet phase (phase calibration data), overcoming the dependence of traditional coherent demodulation on initial phase synchronization.

[0065] like Figure 8 The diagram shown is a schematic representation of the process of an embodiment of this application. Based on the flip time count value, the target data in the received data stream is divided into phase calibration data or data to be calibrated, including:

[0066] The target data is determined from the received data stream; if the flip time count is less than or equal to a preset count threshold, it is determined whether the target data has flipped; if the target data has not flipped, it is classified as phase calibration data; if the target data has flipped, it is classified as data to be calibrated.

[0067] like Figure 9As shown, since the shortest (Min) period of data flipping during data transmission in the QI protocol communication process is 250 us and the longest (Max) period is 500 us, it can be determined whether data is being transmitted by detecting the flipping time of the signal. Since the number of target data received from the data stream per millisecond is fixed, the determination time can be determined according to the number of data reception times corresponding to the longest period of data flipping 500 us, and whether the signal flips within the number of data reception times determines whether data is being transmitted. In the embodiments of the present application, the target data is classified by the flipping time count value and its preset threshold value. According to the longest period of data flipping 500 us, the number of target data received from the data stream every 500 us is N, and a preset number threshold is set. The maximum preset number threshold can be set according to multiples of the longest period of data flipping, such as 1.5 times, 2 times, 2.5 times or 3 times of the longest period of data flipping, and the preset number threshold of the flipping time count value can be set to 1.5N, 2N, 2.5N or 3N. Alternatively, it can also be set to any value greater than or equal to N and less than or equal to the corresponding value (1.5N, 2N, 2.5N or 3N) of 1.5 times, 2 times, 2.5 times or 3 times of the longest period of data flipping. If the preset number threshold is set to 1.5 times of the longest period of data flipping, the corresponding period is 750 us, and the preset number threshold is 1.5N times. Each time a target data is received, the flipping time count value is incremented by 1, and if the cumulative value of the received target data is equal to the set preset number threshold, as long as there is a target data flipping within the set preset number threshold, it is considered that the current stage is in the data transmission stage of the data packet stage, and therefore this target data is considered as the to-be-calibrated data to be calibrated and analyzed. When there is no target data flipping within the set preset number threshold, i.e. it meets the characteristic of "exceeding the maximum flipping period without edge transition", it is considered that this time is in the idle stage and not in the data signal transmission stage, and therefore this target data is considered as the phase calibration data for calibrating the to-be-calibrated data.

[0068] According to whether the target data flips within the flipping time count value and its preset number threshold, the target data can be conveniently and accurately determined as phase calibration data or to-be-calibrated data.

[0069] As shown in Figure 8 In the case of target data being phase calibration data, the phase calibration value is updated according to the phase calibration data, including: in the case of target data being phase calibration data, acquiring the phase of the phase calibration data; storing the phase value; and updating the phase calibration value according to the stored phase value.

[0070] The updated phase calibration value is used for calibration of the to-be-calibrated data acquired thereafter, and if a new phase calibration value is continuously acquired thereafter, the previous phase calibration value is updated with the new phase calibration value. By recording (storing) the phase received at this moment of the phase calibration data and used for updating the recorded phase calibration value, such as the angle value or the angle difference value of the phase, the phase calibration value can be updated in real time and dynamically, and the calibration accuracy of the to-be-calibrated data is improved.

[0071] Each time a target data is processed, the flip time count value is incremented by 1. If the extreme value flip condition is not met, i.e., no edge jump occurs (which can be achieved according to the Schmitt trigger filtering principle), it is determined whether the flip time count value exceeds a preset threshold value. The preset threshold value can be set in a range of twice the maximum duration of the protocol extreme value, i.e., 1 ms. If the flip time count value exceeds the preset threshold value, the timeout condition is met, the target data input at this time is taken as the phase calibration data, and is stored in the calibration value (base calibration value), and the flip time count value is reset to zero, thereby implementing a number calibration process. The flip time count value is reset to zero after the to-be-calibrated data is acquired, exceeds the preset threshold value, or the phase value of the phase calibration data is stored. The number calibration process is repeatedly triggered in the stage without protocol triggering, and is not triggered in the protocol interaction stage, thereby solving the angle difference value overflow problem caused by the accumulation error of the frequency offset.

[0072] As shown in FIG. 8, after the phase value of the phase calibration data is stored, the flip time count value is reset to zero, and the phase calibration data is parsed. Figure 8

[0073] After the phase value of the phase calibration data is stored, the flip time count value is quickly reset to zero, so that whether the next target data is the phase calibration data or the to-be-calibrated data can be conveniently determined. Although the phase calibration data is the target data in the idle stage, it is still parsed according to the protocol. However, since the target data in the idle stage is not the to-be-parsed data in the data packet stage, calibration is not required, and the target data can be directly parsed, thereby improving the processing speed of the embodiments of the present application.

[0074] In the case where the target data is the to-be-calibrated data, the phase value of the to-be-calibrated data is calibrated according to the phase calibration value, and the to-be-parsed data is obtained, including: in the case where the target data is the to-be-calibrated data, the phase value of the phase calibration value is acquired; and the to-be-parsed data is determined according to the difference between the phase value of the to-be-calibrated data and the phase value of the phase calibration value.

[0075] ​The phase of the to-be-calibrated data is calibrated according to the phase calibration value by subtracting the phase calibration value from the angle value or the angle difference value of the phase of the subsequently received to-be-calibrated data, to obtain calibrated to-be-analyzed data, so that the "angle cumulative deviation" of the phase can be zeroed to avoid the overflow of the angle difference value of the phase caused by the cumulative error of the frequency deviation in the formal communication process as much as possible.

[0076] Before determining the to-be-analyzed data according to the difference between the phase value of the to-be-calibrated data and the phase value of the phase calibration value, the phase value of the first to-be-calibrated data is taken as the phase value of the phase calibration data in the case where the phase value of the phase calibration value is not obtained.

[0077] The case where the phase value of the phase calibration value is not obtained includes that the phase calibration value is never updated, the phase calibration value is empty, and the case after the analysis is completed. These cases usually occur when the to-be-calibrated data is obtained from the data stream at the beginning, instead of the phase calibration data, so that there is no phase calibration data that can be used for calibration. Taking the case after the analysis is completed as an example, the calibration data is reset and emptied after the analysis is completed, so that the previously stored phase calibration data is emptied. In this case, when the to-be-calibrated data is obtained from the data stream, there is no stored phase calibration value that can be used for phase calibration. Therefore, the phase value of the first to-be-calibrated data is taken as the phase value of the phase calibration data. The phase value of the first to-be-calibrated data is the phase value of the first to-be-calibrated data received in the case where the phase value of the phase calibration value is not obtained.

[0078] Since there is usually no large phase deviation accumulated in this case, in the case where the phase value of the phase calibration value is not obtained, the phase value of the to-be-calibrated data is taken as the phase value of the phase calibration data, so that the to-be-calibrated data is directly taken as the to-be-analyzed data in the case where the phase value deviation is small, and the phase calibration data is quickly obtained in the subsequent stage to realize phase calibration. Therefore, it can avoid the problem that the calibration time is too long to affect the efficiency of calibration and analysis, and since the cumulative deviation is small in this case, the calibration speed is improved while the influence on the calibration accuracy is reduced, and the efficiency of the calibration process is improved.

[0079] As shown in FIG. Figure 8 After analyzing the to-be-analyzed data, the flip time count value is updated in the case where the analysis of the data stream is not completed, and the step of dividing the target data in the received data stream into phase calibration data or to-be-calibrated data according to the flip time count value is continued.

[0080] Since the target data needs to be obtained from the data stream all the time for analysis or calibration, the flip time count value needs to be quickly updated to zero, so that the classification of the target data can be continued to improve the efficiency of the calibration.

[0081] As Figure 8 shown, after the to-be-parsed data is parsed, further comprising: in the case of completing the parsing of the data stream, outputting the parsed data content; updating the flip time count value; continuing to perform the step of dividing the target data in the received data stream into phase calibration data or to-be-calibrated data according to the flip time count value.

[0082] After completing the parsing of the data stream, since the carrier may still be continuously received, new data streams are acquired, and therefore the target data still needs to be acquired from the data stream for parsing or calibration, and therefore the flip time count value needs to be quickly updated to quickly return to zero, so as to continue to classify the target data and improve the calibration efficiency.

[0083] As Figure 10 shown, the entire data jump process state machine of the embodiments of the present application is implemented by four states: idle, calibration, protocol parsing, and calibration change.

[0084] Among them, idle is jumped from the protocol parsing state (Decode) to the idle state (idle) after the target data processing is completed; and from the calibration change state (cali_chage) state to the idle state (idle) and remain after the calibration change is completed (store the phase value of the phase calibration data). When the 16-bit phase envelope data valid flag is detected in the idle state (idle), or the target data is acquired, the calibration state (cali) is entered.

[0085] Calibration (cali) is, when the input data is valid, such as when the phase calibration data or to-be-calibrated data is acquired, it is entered from the idle state (idle) to the calibration state (cali). When entering the calibration state (cali), the to-be-calibrated data and the phase value of the phase calibration value are subtracted, and at the same time, the maintenance time judgment of the extreme value (that is, the flip time count value is continuously counted) is performed. When the maintenance time meets the condition, the change calibration flag is set to 1. When the change flag setting is completed, the protocol parsing state (decode) is entered.

[0086] Protocol parsing (decode) is, when the change flag setting is completed, the protocol parsing state (decode) is entered and remains. When entering the protocol parsing state (decode), the to-be-parsed data or the phase calibration data will go through multiple links such as extreme value discrimination, edge judgment, bit parsing, byte parsing, etc. Finally, according to the state of the change calibration flag jump to different states. When the change flag is equal to 0, it is directly jumped to the idle state (idle) to complete the processing of the target data this time. When the change flag is equal to 1, it will enter the calibration change state (cali_chage).

[0087] The calibration change state (cali_chage) is entered and maintained when the protocol decoding of the protocol decoding state (decode) is completed, and the change flag is equal to 1. In the calibration change state (cali_chage), the extracted phase calibration data (un-calibrated) is stored as calibration reference data, i.e., as phase calibration data or a phase calibration value. When the calibration reference data change is completed, the idle state (idle) is jumped to, and the processing of the target data is completed.

[0088] The change flag in the process state machine is that the flip time count value is greater than the pre-designed threshold, and the input target data is stored to indicate that the "calibration value (base)" is changed after the protocol decoding is completed. The calibration is the input target data when the flip time count value is greater than the pre-designed threshold, which is used as the minuend in the calibration process. The actual input is the to-be-decoded data after calibration (the phase of the to-be-calibrated data minus the phase value of the phase calibration value), which is output data for the "calibration process" and input data for the "protocol decoding process". The data valid flag is the handshake process of the actual coherent demodulation data.

[0089] The embodiments of the present application can be applied to the field of wireless charging. For the case of energy transmission and signal transmission through electromagnetic coupling between two conjugate coils, the signal transmission part is divided into modulation and demodulation parts. The embodiments of the present application only involve the demodulation part, and solve the problem of analysis failure caused by data overflow due to accumulated deviation in the phase demodulation process through phase deviation calibration. Through high sampling rate 4mhz and high resolution 12bit, a resolution of up to 1‰ can be achieved, and a signal with a modulation depth of 2% can be analyzed. By analyzing the modulation signal through the phase-frequency characteristics of the modulation signal, the problem of envelope distortion and subsequent analysis failure caused by phase demodulation (across Π / 2, -Π / 2 point) overflow due to the uncertainty of the start time using the traditional coherent demodulation method is solved. By calibrating the to-be-calibrated data with the phase calibration value obtained at the moment closest to the data packet transmission (i.e., by triggering the flip time count value greater than the pre-designed threshold for the last time before the data packet stage), the "angle deviation is zero", which avoids the problem of envelope detection error caused by phase deviation leading to phase overflow. The embodiments of the present application can correct the phase in the case of phase drift, avoid analysis failure caused by accumulated frequency deviation in the communication process. Moreover, the phase information is not processed in the protocol interaction stage, and the influence of "angle deviation zero" on the protocol is minimized, which can also avoid affecting the analysis process of the qi protocol.

[0090] Embodiment two

[0091] The embodiment of the present application provides a demodulation device, comprising a demodulation circuit, and a phase deviation calibration method according to any one of the embodiment one is applied to the data stream output by the demodulation circuit.

[0092] The demodulation device provided by the embodiment is based on the same concept as the phase calibration method, and therefore can at least achieve the beneficial effects of the phase calibration method, which will not be repeated here.

[0093] Embodiment three

[0094] The embodiment further provides a wireless charger comprising the demodulation device according to the second aspect.

[0095] The wireless charger provided by the embodiment is also based on the same concept as the phase calibration method, and therefore can at least achieve the beneficial effects of the phase calibration method, which will not be repeated here.

[0096] Embodiment four

[0097] The embodiment further provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the phase calibration method according to any one of the embodiment one.

[0098] The electronic device provided by the embodiment is also based on the same concept as the phase calibration method, and therefore can at least achieve the beneficial effects of the phase calibration method, which will not be repeated here.

[0099] Embodiment five

[0100] The embodiment further provides a computer readable storage medium, and computer readable instructions are stored on the computer readable storage medium, and the computer readable instructions can be executed by a processor to implement the phase calibration method according to any one of the embodiment one.

[0101] The computer readable storage medium provided by the embodiment is also based on the same concept as the phase calibration method, and therefore can at least achieve the beneficial effects of the phase calibration method, which will not be repeated here.

[0102] It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and that one skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. Although the present application has been described in detail with reference to the foregoing embodiments, the application should not be construed as being limited thereto. Those skilled in the art having the benefit of the present disclosure should appreciate that many alternative designs will be contemplated as falling within the scope of the present application as defined by the appended claims. Particularly, those skilled in the art will recognize that the various technical features disclosed in the above embodiments can be combined in any suitable manner without departing from the scope of the present application. In other words, the above-mentioned technical features can be combined in any suitable manner without departing from the scope of the present application.

[0103] In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word comprising should not be construed as meaning consisting only of. The word comprising does not exclude the presence of elements other than those recited in a claim. The word a or an preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of both hardware and software, and any combination thereof. In a unit claim, several devices can be listed with a conjunction and. None of the device or unit claims herein is to be construed as a disclaimer of a combination of those items listed in the claim. The mere fact that different features are recited in mutually different dependent claims does not indicate that a combination of these features cannot be used to advantage. The features of the different embodiments can be combined with each other as long as the combination is not clearly contradicted by the disclosure.

[0104] The above merely illustrates the preferred embodiments of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions easily conceived by those skilled in the art within the technical scope disclosed by the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A phase calibration method, characterized in that, include: Based on the flip time count value, the target data in the received data stream is divided into phase calibration data or data to be calibrated. If the target data is the phase calibration data, the phase calibration value is updated according to the phase calibration data; When the target data is the data to be calibrated, the phase of the data to be calibrated is calibrated according to the phase calibration value to obtain the data to be parsed; Parse the data to be parsed; The step of dividing the target data in the received data stream into phase calibration data or data to be calibrated based on the flip time count value includes: Determine the target data from the received data stream; If the flip time count value is less than or equal to a preset count threshold, it is determined whether the target data has been flipped. If the target data is not flipped, then the target data is divided into the phase calibration data; If the target data is flipped, then the target data is divided into the data to be calibrated.

2. The phase calibration method according to claim 1, characterized in that, When the target data is the phase calibration data, updating the phase calibration value according to the phase calibration data includes: When the target data is the phase calibration data, the phase value of the phase calibration data is obtained; Store the phase value; The phase calibration value is updated based on the stored phase value.

3. The phase calibration method according to claim 2, characterized in that, After storing the phase value, the method further includes: Clear the flip time count value; Analyze the phase calibration data.

4. The phase calibration method according to claim 1, characterized in that, When the target data is the data to be calibrated, the phase of the data to be calibrated is calibrated according to the phase calibration value to obtain the data to be parsed, including: When the target data is the data to be calibrated, the phase value of the phase calibration value is obtained; The data to be parsed is determined based on the difference between the phase value of the data to be calibrated and the phase value of the phase calibration value.

5. The phase calibration method according to claim 4, characterized in that, Before determining the data to be parsed based on the difference between the phase value of the data to be calibrated and the phase value of the phase calibration value, the method further includes: If the phase value of the phase calibration value is not obtained, the phase value of the data to be calibrated is used as the phase value of the phase calibration data.

6. The phase calibration method according to claim 1, characterized in that, After parsing the data to be parsed, the method further includes: Update the flip time count value before the data stream is fully parsed; Continue executing the step of dividing the target data in the received data stream into phase calibration data or data to be calibrated based on the flip time count value.

7. The phase calibration method according to claim 1, characterized in that, After parsing the data to be parsed, the method further includes: Once the data stream has been parsed, the parsed data content is output. Update the flip time count value; Continue executing the step of dividing the target data in the received data stream into phase calibration data or data to be calibrated based on the flip time count value.

8. A demodulation device, comprising a demodulation circuit, characterized in that, The phase deviation of the data stream output by the demodulation circuit is calibrated using the phase calibration method according to any one of claims 1 to 7.

9. A wireless charger, characterized in that, Includes the demodulation device as described in claim 8.

10. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor runs the computer program, it performs an execution to implement the phase calibration method as described in any one of claims 1-7.

11. A computer-readable storage medium, characterized in that, It stores computer-readable instructions that can be executed by a processor to implement the phase calibration method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Methods and device for calibrating frequencies

    CN104702278A

  • Method of virtual writing electrical-level calibration response of DDR (Double Data Rate) SDRAM

    CN108009372A