Demodulation method and device of FSK signal and wireless charging receiver

By combining counter interruption duration difference analysis with multi-threshold channels, the problem of insufficient FSK signal demodulation accuracy is solved, data judgment accuracy is improved, packet loss rate is reduced, and wireless charging efficiency is improved.

CN119135493BActive Publication Date: 2025-10-10NUVOLTA TECH (HEFEI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410426040.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-09
Publication Date
2025-10-10
Estimated Expiration
2044-04-09

AI Technical Summary

Technical Problem

The demodulation method of the FSK signal in the prior art has low accuracy under the new protocol, resulting in insufficient accuracy in determining data '1' and data '0'.

Method used

By analyzing the difference of the counter interruption duration and combining multiple threshold channels, it is determined whether the data of the FSK signal is transformed into the second value or maintained at the first value, thereby improving the judgment accuracy.

Benefits of technology

The accuracy of FSK signal data judgment is improved, the packet loss rate is reduced, and the charging efficiency of wireless charging is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135493B_ABST
    Figure CN119135493B_ABST
Patent Text Reader

Abstract

The application relates to a demodulation method of an FSK signal. The method comprises the following steps: when a counter is interrupted, judging whether the FSK signal is received; if not, determining that the data of the FSK signal is a first value in a first time length; if yes, calculating a first difference value between a second time length and the first time length; when the first difference value is greater than a first preset value, obtaining a second difference value at the n-1th interruption, and calculating a third difference value between the first difference value and the second difference value; if the third difference value is greater than a second preset value, the first value is transformed into a second value; if the third difference value is less than or equal to the second preset value, the first value is kept. The method determines the first difference value between the first time length and the second time length, and then determines the third difference value between the second difference value at the n-1th interruption and the first difference value, so as to determine that the data of the FSK signal is transformed into the second value or kept as the first value, thereby improving the accuracy of determining the data of the FSK signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless charging technology, and in particular to a demodulation method and device for an FSK signal and a wireless charging receiver. Background Art

[0002] Wireless charging refers to a charging technology that doesn't require a traditional power cord to connect to the device being charged. It typically uses inductive coupling to transfer energy through the magnetic field generated between coils. The Qi protocol, launched globally by the Wireless Power Consortium (WPC), is the first wireless charging standard. The Qi protocol specifies that a wireless charging transmitter (TX) uses FSK signals to transmit information to a wireless charging receiver (RX).

[0003] In wireless charging, each bit in the FSK signal uses differential bidirectional encoding, and 512 carrier frequency cycles represent one data. Among them, the data "1" requires the RX end to detect two edges (rising edge and falling edge). The frequency of the first 256 carriers is different from the frequency of the last 256 carriers. The data "0" only needs to detect one edge (rising edge or falling edge), and the frequency of 512 carriers is the same.

[0004] However, a new protocol has been proposed, which stipulates that 128 carrier frequency cycles represent one data, resulting in low accuracy in determining data "1" and data "0" when demodulating the FSK signal according to the new protocol. Summary of the Invention

[0005] The FSK signal demodulation method, device, and wireless charging receiver provided in the embodiments of the present application can solve at least some of the defects in the prior art.

[0006] In a first aspect, an embodiment of the present application provides a demodulation method for an FSK signal. The method includes: when a counter is interrupted, determining whether the FSK signal is received; if not, recording a first duration and determining that the data of the FSK signal is a first value during the first duration; if so, recording a second duration and calculating the absolute difference between the second duration and the first duration to obtain a first difference; wherein the second duration is used to indicate the duration required for the counter to calculate a preset number of signal rising edges when the counter is interrupted for the nth time, wherein n is greater than 1; when the first difference is greater than a first preset value, obtaining a second difference corresponding to the n-1th interruption of the counter, and calculating the absolute difference between the first difference and the second difference to obtain a third difference; if the third difference is greater than a second preset value, converting the data of the FSK signal into a second value; wherein the second value is greater than the first value; if the third difference is less than or equal to the second preset value, determining the data of the FSK signal to be the first value.

[0007] Optionally, the first duration is less than or equal to the duration that the wireless charging receiver waits for receiving the FSK signal.

[0008] Optionally, the second difference is used to indicate the absolute difference between a third duration and the first duration; wherein the third duration is used to indicate the duration required for the counter to calculate the preset number of signal rising edges when the counter is interrupted for the n-1th time.

[0009] Optionally, after calculating the absolute difference between the second duration and the first duration to obtain the first difference, it also includes: when the first difference is less than or equal to the first preset value, controlling the counter to continue calculating the duration required for the preset number of signal rising edges until a preset interrupt condition is met to obtain the corresponding duration; wherein, the preset interrupt condition is used to indicate that the counter detects that the number of consecutive signal rising edges is the preset number.

[0010] Optionally, after determining the data of the FSK signal as the first value, the method further includes: controlling the counter to continue calculating the duration required for the preset number of signal rising edges until a preset interruption condition is met to obtain a corresponding duration.

[0011] Optionally, after calculating the absolute difference between the second time length and the first time length to obtain the first difference, it also includes: determining the demodulation result of the FSK signal output by each threshold channel based on the first difference and multiple threshold channels; wherein the demodulation result of the FSK signal indicates that the data of the FSK signal is the second value or the first value; each threshold channel has a first type threshold channel and a second type threshold channel.

[0012] Optionally, the first type threshold channel has a first preset range and a second preset range, the first preset range is used to indicate that the value is greater than the first threshold, and the second preset range is used to indicate that the value is less than or equal to the first threshold; the demodulation result corresponding to the first preset range indicates that the data of the FSK signal is the second value; the demodulation result corresponding to the second preset range indicates that the data of the FSK signal is the first value.

[0013] Optionally, the second type threshold channel has a third preset range and a fourth preset range, the third preset range is used to indicate that the value is greater than the second threshold, and the fourth preset range is used to indicate that the value is less than or equal to the second threshold; the demodulation result corresponding to the third preset range indicates that the data of the FSK signal is the second value; the demodulation result corresponding to the fourth preset range indicates that the data of the FSK signal is the first value.

[0014] In a second aspect, an embodiment of the present application provides a demodulation device for an FSK signal. The FSK signal demodulation device includes: a judgment module, configured to judge whether the FSK signal is received when a counter is interrupted; a first determination module, configured to record a first duration if the FSK signal is not received, and determine that the data of the FSK signal is a first value during the first duration; a first calculation module, configured to record a second duration if the FSK signal is received, and calculate the absolute difference between the second duration and the first duration to obtain a first difference; wherein the second duration indicates the duration required for the counter to calculate a preset number of rising edges of the signal when the counter is interrupted for the nth time, wherein n is greater than 1; a second calculation module, configured to obtain a second difference corresponding to the (n-1)th interruption of the counter when the first difference is greater than a first preset value, and calculate the absolute difference between the first difference and the second difference to obtain a third difference; a conversion module, configured to convert the data of the FSK signal into a second value if the third difference is greater than a second preset value; wherein the second value is greater than the first value; and a second determination module, configured to determine the data of the FSK signal to be the first value if the third difference is less than or equal to the second preset value.

[0015] In a third aspect, an embodiment of the present application provides a wireless charging receiver. The wireless charging receiver comprises a counter and at least one processor, and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the demodulation method of the FSK signal as described above.

[0016] At least one advantageous aspect of the demodulation method of the FSK signal provided by the embodiment of the present application is that: by determining a first difference value between a first duration corresponding to a time when the counter is interrupted and a second duration corresponding to a time when the counter is interrupted for the n-th time after the FSK signal is received, when the first difference value is greater than a first preset value, determining a third difference value between a second difference value corresponding to a time when the counter is interrupted for the (n-1)-th time and the first difference value, and determining the data of the FSK signal to be transformed into a second value or remain a first value according to the third difference value, thereby improving the accuracy of determining the data of the FSK signal. BRIEF DESCRIPTION OF DRAWINGS

[0017] One or more embodiments are illustrated by way of example in the drawings in which like reference numerals indicate like elements, and in which: the drawings are not necessarily to scale as proportions of certain parts have been exaggerated, set not to falsely represent the performance of the embodiments.

[0018] Figure 1 a schematic diagram of an application scenario provided by the embodiment of the present application;

[0019] Figure 2 a schematic diagram of data 1 and data 0 defined by the Qi protocol provided by the embodiment of the present application;

[0020] Figure 3 a schematic diagram in which the starting time of frequency detection at the RX end is not aligned with the first edge of frequency change provided by the embodiment of the present application;

[0021] Figure 4 a method flowchart of the demodulation method of the FSK signal provided by the embodiment of the present application;

[0022] Figure 5 a method flowchart of the demodulation method of the FSK signal provided by another embodiment of the present application;

[0023] Figure 6 a functional block diagram of the demodulation apparatus of the FSK signal provided by the embodiment of the present application;

[0024] Figure 7 a functional block diagram of the demodulation apparatus of the FSK signal provided by another embodiment of the present application;

[0025] Figure 8 A schematic diagram of a wireless charging receiver provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] For ease of understanding of the present invention, the present invention will be described in more detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that when an element is described as being "fixed to" another element, it can be directly on the other element, or there can be one or more centered elements therebetween. When an element is described as being "connected to" another element, it can be directly connected to the other element, or there can be one or more centered elements therebetween. The orientation or positional relationship indicated by the terms "upper", "lower", "inner", "outer", "bottom" etc. used in this specification is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0027] Unless otherwise defined, all technical and scientific terms used in this specification have the same meanings as those commonly understood by those skilled in the art to which this invention belongs. The terms used in this specification and in the description of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" as used in this specification includes any and all combinations of one or more of the relevant listed items.

[0028] In addition, the technical features involved in different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0029] Figure 1 Schematic diagram of the application scenario provided by the embodiment of this application. Figure 1 As shown, in a wireless charging scenario, a wireless charging transmitter (TX) performs wireless charging for a smartphone, wherein a wireless charging receiver (RX) is built into the smartphone.

[0030] In wireless charging, each bit in the FSK signal uses differential bidirectional encoding, and 512 carrier frequency cycles represent one data, such as Figure 2 As shown, Figure 2 A schematic diagram of data 1 and data 0 specified in the Qi protocol provided in an embodiment of the present application, wherein data "1" requires the RX end to detect two edges (rising edge and falling edge), and the frequency of the first 256 carriers is different from the frequency of the last 256 carriers, while data "0" only needs to detect one edge (rising edge or falling edge), and the frequencies of the 512 carriers are the same.

[0031] The existing demodulation method of the FSK signal is as follows: (1) start a timer to calculate the total time T1 of capturing n rising edges; (2) at the end of the nth rising edge, interrupt the timer, and at the beginning of the second round of rising edges, the timer starts timing to obtain T2; (3) by judging the difference between T1 and T2, it is determined whether the data of the FSK signal is 1 or 0, that is, when T2>T1+Thd, it is determined that the data of the FSK signal is 1; when T2<T1+Thd, it is determined that the data of the FSK signal is 0. Repeat steps (1), (2) and (3) until the FSK signal ends, wherein Thd is a preset value, which is 5 as an example but not limitation, and Thd can also be 6, and the specific Thd can be set according to the actual application scenario.

[0032] For example, it is assumed that the working frequency of the TX end is 128 kilohertz (KHz), the FSK modulation depth is 0, the number of cycles is 512, and the difference between the two frequency periods is the maximum value within the depth 0 range specified by the Qi protocol: 63.25 ns. The RX end uses a number every 64 cycles, and the cumulative time difference of 64 cycles is 4048 ns. The sampling clock of the processor is 8 megahertz (M), that is, each clock period is 125 ns, and thus the difference between the two time lengths is delta=4048 / 125=32.

[0033] However, a new protocol has been proposed, which specifies that 128 carrier frequency periods represent one data.

[0034] For example, it is assumed that the working frequency of the TX end is 128 KHz, the FSK modulation depth is 0, the number of cycles is 128, and the RX end uses a number every 32 cycles. As in the above example, the delta value is greater than or equal to 15.

[0035] The new protocol also specifies that the working frequency of the TX end is 360 KHz, which is 2 to 3 times higher than the frequency specified by the Qi protocol.

[0036] For example, it is assumed that the working frequency of the TX end is 360 KHz, the FSK modulation depth is 0, the number of cycles is 128, and the RX end uses a number every 32 cycles. As in the above example, the delta value is less than 15.

[0037] In the above examples, the FSK modulation depth uses the specified typical values. Assuming the TX uses the lower limit of the protocol-specified depth, the delta value will be less than 8. For example, when the Qi protocol specifies a depth of 0, the lower limit of the difference between two frequency periods is 30.25ns, so delta = (30.25*64) / 125 = 7.7.

[0038] And because the RX end detects the frequency one by one according to the edge (rising edge or falling edge), the starting time of the RX end detecting the frequency and the first edge of the frequency change are not easily aligned, such as Figure 3 As shown, Figure 3 The schematic diagram provided for the embodiment of the present application shows that the starting moment of the RX end detecting the frequency is not aligned with the first edge of the frequency change, resulting in a gradually changing delta value, wherein t0 is less than t1, and t1 is less than t2. For example, assuming that the maximum value of the delta value is 7, the RX end is usually unable to sample the maximum value of 7, but may first sample an intermediate value, and then the maximum value of 7, so the maximum value is 7. Therefore, the preset value Thd is limited to 7. In addition, the starting moment of the RX end detecting the frequency is easily misaligned with the first edge of the frequency change. The value before the maximum value 7 is theoretically in the range of 0 to 7. At the same time, jitter filtering must also be taken into account. Therefore, the accuracy of determining whether the data of the FSK signal is 1 or 0 by using a preset value Thd is low.

[0039] Therefore, the embodiment of the present application determines the first difference between the first duration corresponding to the counter interruption when the FSK signal is not received and the second duration corresponding to the nth interruption of the counter after the FSK signal is received. When the first difference is greater than the first preset value, the third difference between the second difference corresponding to the n-1th interruption of the counter and the first difference is determined, thereby determining whether the data of the FSK signal is transformed into the second value or maintained at the first value based on the third difference, thereby improving the accuracy of determining the data of the FSK signal.

[0040] Figure 4 The method flow chart of the demodulation method of the FSK signal provided in the embodiment of the present application. Figure 4 As shown, the demodulation method of the FSK signal includes the following steps:

[0041] S410: When the counter is interrupted, determine whether an FSK signal is received.

[0042] It should be noted that the counter is used to count the number of consecutive rising edges of a signal and to calculate the duration corresponding to the consecutive rising edges of a signal.

[0043] The condition for the counter to be interrupted is that the counter detects that the number of consecutive rising edges of the signal is a preset number, where the preset number is 32 or 64.

[0044] S420: If not, record the first duration, and determine that the data of the FSK signal is a first value during the first duration.

[0045] It should be noted that after the RX end transmits the ASK signal to the TX end, when the TX end completes demodulation of the ASK signal, the TX end transmits the FSK signal to the RX end after a time period. Therefore, the RX end performs the first counter interrupt during the time period waiting to receive the FSK signal, thereby obtaining the first time length. Since the FSK signal has not been received during this time period, the first value is 0. As an example but not a limitation, the time period can be 3 milliseconds.

[0046] S430: If yes, record the second duration, and calculate the absolute difference between the second duration and the first duration to obtain a first difference.

[0047] The second duration is used to indicate the duration required for the counter to calculate a preset number of rising edges of the signal when the counter is interrupted for the nth time, where n is greater than 1.

[0048] S440: When the first difference is greater than the first preset value, obtain the second difference corresponding to the (n-1)th interruption of the counter, and calculate the absolute difference between the first difference and the second difference to obtain a third difference.

[0049] It should be noted that the first preset value is 2.

[0050] It should be noted that the second difference is used to indicate the absolute difference between the third duration and the first duration, wherein the third duration is used to indicate the duration required for the counter to calculate a preset number of signal rising edges when the counter is interrupted for the n-1th time.

[0051] For example, assuming that the first time length is T0, the second time length is the time length required for the counter to calculate a preset number of signal rising edges when the counter is interrupted for the third time, assuming that the second time length is T1, the third time length is used to indicate that when the counter is interrupted for the second time, the counter calculates the preset number of signal rising edges required, assuming that the third time length is T2, therefore, the first difference between the second time length and the first time length is: │T1-T0│, the second difference between the third time length and the first time length is: │T2-T0│, therefore, the third difference between the first difference and the second difference is: │(│T1-T0│-│T2-T0│)│.

[0052] S450: If the third difference is greater than the second preset value, convert the data of the FSK signal into a second value.

[0053] It should be noted that the second preset value is 1.

[0054] It can be understood that when the third difference is greater than 1, the frequency of the FSK signal has a changing trend, thereby converting the data of the FSK signal from a first value to a second value.

[0055] S460: If the third difference is less than or equal to the second preset value, determine the data of the FSK signal as the first value.

[0056] It should be noted that when the third difference is less than or equal to the second preset value, the frequency of the FSK signal does not have a changing trend, and thus the data of the FSK signal is still the first value.

[0057] In the embodiment of the present application, a first preset value is first used to determine whether the frequency of the FSK signal is likely to change. After determining that the frequency of the FSK signal is likely to change, a second preset value is used to determine whether the frequency of the FSK signal has a trend of change, thereby determining whether the data of the FSK signal is transformed into the second value or maintained at the first value. This avoids the problem in the prior art of using a preset value as a separate judgment condition to determine whether the data of the FSK signal is 1 or 0, thereby improving the accuracy of determining the data of the FSK signal.

[0058] At least one advantageous aspect of the FSK signal demodulation method provided in an embodiment of the present application is: by determining a first difference between a first duration corresponding to a counter interruption when the FSK signal is not received and a second duration corresponding to the nth interruption of the counter after the FSK signal is received, when the first difference is greater than a first preset value, determining a third difference between a second difference corresponding to the n-1th interruption of the counter and the first difference, thereby determining, based on the third difference, whether the data of the FSK signal is transformed into a second value or maintained at the first value, thereby improving the accuracy of determining the data of the FSK signal.

[0059] Figure 5 This is a flow chart of a method for demodulating an FSK signal provided by another embodiment of the present application. Figure 5 As shown, the demodulation method of the FSK signal includes the following steps:

[0060] S510: When the counter is interrupted, determine whether an FSK signal is received.

[0061] S520: If not, record the first duration, and determine that the data of the FSK signal is a first value during the first duration.

[0062] It should be noted that the first time duration is less than or equal to the time duration during which the wireless charging receiver waits for receiving the FSK signal.

[0063] S530, if yes, record the second time length, and calculate an absolute difference value between the second time length and the first time length, to obtain a first difference value.

[0064] The second time length is used to indicate a time length required by the counter to count a preset number of signal rising edges when the counter is interrupted for the nth time, where n is greater than 1.

[0065] S540, when the first difference value is greater than a first preset value, obtaining a second difference value corresponding to the counter being interrupted for the (n-1)th time, and calculating an absolute difference value between the first difference value and the second difference value, to obtain a third difference value.

[0066] S550, when the first difference value is less than or equal to the first preset value, controlling the counter to continue to calculate the time length required by the preset number of signal rising edges until a preset interruption condition is met, to obtain a corresponding time length.

[0067] The preset interruption condition is used to indicate that the counter detects that the number of continuous signal rising edges is the preset number.

[0068] It can be understood that, when the first difference value is less than or equal to the first preset value, the step S550 of controlling the counter to continue to calculate the time length required by the preset number of signal rising edges until the preset interruption condition is met to obtain the corresponding time length is equivalent to returning to the step S510.

[0069] S560, if the third difference value is greater than a second preset value, transforming the data of the FSK signal into a second value.

[0070] S570, if the third difference value is less than or equal to the second preset value, determining the data of the FSK signal as a first value.

[0071] S580, controlling the counter to continue to calculate the time length required by the preset number of signal rising edges until the preset interruption condition is met, to obtain a corresponding time length.

[0072] It can be understood that, after the data of the FSK signal is determined as the first value, the step S580 of controlling the counter to continue to calculate the time length required by the preset number of signal rising edges until the preset interruption condition is met to obtain the corresponding time length is equivalent to returning to the step S510.

[0073] S590, determining demodulation results of the FSK signal output by each threshold channel based on the first difference value and the plurality of threshold channels.

[0074] The demodulation results of the FSK signal indicate that the data of the FSK signal is the second value or the first value; and each threshold channel has a first type of threshold channel and a second type of threshold channel.

[0075] In one embodiment, the first type threshold channel corresponds to one protocol, and the second type threshold channel corresponds to another protocol. For example, the operating frequency of the TX end corresponding to the first type threshold channel is 128KHz, and the operating frequency of the TX end corresponding to the second type threshold channel is 360KHz.

[0076] It is understandable that in each threshold channel, either the demodulation result of the FSK signal in the first threshold channel or the demodulation result of the FSK signal in the second threshold channel is output, that is, when using one protocol, only the corresponding threshold channel performs demodulation.

[0077] In some embodiments, the first type of threshold channel has a first preset range and a second preset range, the first preset range is used to indicate that the value is greater than the first threshold, and the second preset range is used to indicate that the value is less than or equal to the first threshold; the demodulation result corresponding to the first preset range indicates that the data of the FSK signal is the second value; the demodulation result corresponding to the second preset range indicates that the data of the FSK signal is the first value.

[0078] As an example but not a limitation, the first threshold may be 8, 10, or 12, as long as it is within the range of 8 to 15.

[0079] For example, when the first difference is greater than the first threshold, the demodulation result corresponding to the first preset range indicates that the data of the FSK signal is a second value.

[0080] In some embodiments, the second type threshold channel has a third preset range and a fourth preset range, the third preset range is used to indicate that the value is greater than the second threshold, and the fourth preset range is used to indicate that the value is less than or equal to the second threshold; the demodulation result corresponding to the third preset range indicates that the data of the FSK signal is the second value; the demodulation result corresponding to the fourth preset range indicates that the data of the FSK signal is the first value.

[0081] As an example but not a limitation, the second threshold may be 2, 3, or 4, as long as it is within the range of 2 to 7.

[0082] In some embodiments, the demodulation method of the FSK signal further includes: (1) obtaining a target data packet, the target data packet including a plurality of FSK signals to be processed; (2) determining a first difference corresponding to each FSK signal to be processed; (3) when the first difference of any FSK signal to be processed is greater than a first preset value, obtaining a third difference corresponding to any FSK signal to be processed; (4) determining a demodulation result of any FSK signal to be processed based on the third difference and the second preset value of any FSK signal to be processed; (5) until the demodulation results of all FSK signals to be processed are determined, a first demodulation result of the target data packet is obtained; (6) based on the first difference corresponding to each FSK signal to be processed and a plurality of threshold channels, determining the demodulation result output by the target data packet in each threshold channel, and obtaining a plurality of second demodulation results; (7) verifying the first demodulation result and the plurality of second demodulation results, and determining the demodulation result that passes the verification and takes the shortest time to complete the verification as the target demodulation result.

[0083] It should be noted that step (2) determines the first difference corresponding to each FSK signal to be processed; step (3) obtains the third difference corresponding to any FSK signal to be processed when the first difference of any FSK signal to be processed is greater than the first preset value; step (4) determines the demodulation result of any FSK signal to be processed based on the third difference and the second preset value of any FSK signal to be processed; step (5) is performed until the demodulation results of all FSK signals to be processed are determined, and the first demodulation result of the target data packet is obtained, which corresponds to a virtual software channel for relative threshold comparison.

[0084] It should be noted that each threshold channel corresponds to a virtual software channel for fixed threshold comparison.

[0085] Since the virtual software channel requires a corresponding software state machine to implement the corresponding execution steps, in some embodiments, after (7) verifying the first demodulation result and multiple second demodulation results, and determining the demodulation result that passes the verification and takes the shortest time to complete the verification as the target demodulation result, it also includes: resetting the virtual software channels corresponding to other demodulation results, wherein the other demodulation results are demodulation results other than the target demodulation result.

[0086] Therefore, resetting the virtual software channels corresponding to other demodulation results refers to resetting the software state machines corresponding to other demodulation results.

[0087] The FSK signal demodulation method provided in the embodiment of the present application can effectively reduce the packet loss rate of the FSK signal and improve the charging efficiency of wireless charging.

[0088] At least one advantageous aspect of the FSK signal demodulation method provided in an embodiment of the present application is: by determining a first difference between a first duration corresponding to a counter interruption when the FSK signal is not received and a second duration corresponding to the nth interruption of the counter after the FSK signal is received, when the first difference is greater than a first preset value, determining a third difference between a second difference corresponding to the n-1th interruption of the counter and the first difference, thereby determining, based on the third difference, that the data of the FSK signal is transformed into a second value or maintained at the first value, and simultaneously using multiple threshold channels for determination, determining the demodulation result of the FSK signal output by each threshold channel based on the first difference and the multiple threshold channels, thereby improving the accuracy of determining the data of the FSK signal and reducing the packet loss rate of the FSK signal.

[0089] Figure 6 This is a functional block diagram of the FSK signal demodulation device provided in the embodiment of the present application. Figure 6 As shown, the FSK signal demodulation device 600 may include:

[0090] The judging module 610 is configured to judge whether an FSK signal is received when an interrupt occurs in the counter;

[0091] A first determining module 620 is configured to, if not, record a first duration and determine that the data of the FSK signal is a first value during the first duration;

[0092] A first calculation module 630 is configured to, if yes, record a second duration and calculate an absolute difference between the second duration and the first duration to obtain a first difference; wherein the second duration indicates the duration required for the counter to calculate a preset number of rising edges of the signal when the counter is interrupted for the nth time, where n is greater than 1;

[0093] A second calculation module 640 is configured to obtain a second difference corresponding to the (n-1)th interruption of the counter when the first difference is greater than the first preset value, and calculate an absolute difference between the first difference and the second difference to obtain a third difference;

[0094] a conversion module 650 for converting the data of the FSK signal into a second value if the third difference is greater than a second preset value; wherein the second value is greater than the first value;

[0095] The second determining module 660 is configured to determine the data of the FSK signal as a first value if the third difference is less than or equal to a second preset value.

[0096] At least one advantageous aspect of the FSK signal demodulation device provided by an embodiment of the present application is: by determining a first difference between a first duration corresponding to a counter interruption when the FSK signal is not received and a second duration corresponding to the nth interruption of the counter after the FSK signal is received, when the first difference is greater than a first preset value, determining a third difference between a second difference corresponding to the n-1th interruption of the counter and the first difference, thereby determining, based on the third difference, whether the data of the FSK signal is transformed into a second value or maintained at the first value, thereby improving the accuracy of determining the data of the FSK signal.

[0097] Figure 7 This is a functional block diagram of a demodulation device for an FSK signal provided by another embodiment of the present application. Figure 7 As shown, the FSK signal demodulation device 600 may include:

[0098] The judging module 610 is configured to judge whether an FSK signal is received when an interrupt occurs in the counter;

[0099] A first determining module 620 is configured to, if not, record a first duration and determine that the data of the FSK signal is a first value during the first duration;

[0100] A first calculation module 630 is configured to, if yes, record a second duration and calculate an absolute difference between the second duration and the first duration to obtain a first difference; wherein the second duration indicates the duration required for the counter to calculate a preset number of rising edges of the signal when the counter is interrupted for the nth time, where n is greater than 1;

[0101] A second calculation module 640 is configured to obtain a second difference corresponding to the (n-1)th interruption of the counter when the first difference is greater than the first preset value, and calculate an absolute difference between the first difference and the second difference to obtain a third difference;

[0102] a conversion module 650 for converting the data of the FSK signal into a second value if the third difference is greater than a second preset value; wherein the second value is greater than the first value;

[0103] The second determining module 660 is configured to determine the data of the FSK signal as a first value if the third difference is less than or equal to a second preset value.

[0104] Optionally, the first time duration is less than or equal to the time duration for the wireless charging receiver to wait for receiving the FSK signal.

[0105] Optionally, the second difference is used to indicate an absolute difference between the third duration and the first duration;

[0106] The third time duration is used to indicate the time duration required for the counter to calculate a preset number of rising edges of the signal when the counter is interrupted for the n-1th time.

[0107] Optionally, the FSK signal demodulation device 600 further includes:

[0108] The first control module 670 is configured to control the counter to continue counting the duration required for a preset number of signal rising edges when the first difference is less than or equal to a first preset value, until a preset interrupt condition is satisfied, thereby obtaining a corresponding duration;

[0109] The preset interrupt condition is used to indicate that the counter detects that the number of consecutive rising edges of the signal is a preset number.

[0110] Optionally, the FSK signal demodulation device 600 further includes:

[0111] The second control module 680 is used to control the counter to continue counting the duration required for a preset number of signal rising edges until a preset interrupt condition is met, thereby obtaining a corresponding duration.

[0112] Optionally, the FSK signal demodulation device 600 further includes:

[0113] A third determining module 690 is configured to determine a demodulation result of the FSK signal output by each threshold channel based on the first difference and the multiple threshold channels;

[0114] Wherein, the demodulation result of the FSK signal indicates that the data of the FSK signal is the second value or the first value;

[0115] Each threshold channel has a first type threshold channel and a second type threshold channel.

[0116] Optionally, the first type threshold channel has a first preset range and a second preset range, the first preset range is used to indicate that the value is greater than the first threshold, and the second preset range is used to indicate that the value is less than or equal to the first threshold;

[0117] The demodulation result corresponding to the first preset range indicates that the data of the FSK signal is a second value;

[0118] The demodulation result corresponding to the second preset range indicates that the data of the FSK signal is a first value.

[0119] Optionally, the second type threshold channel has a third preset range and a fourth preset range, the third preset range is used to indicate that the value is greater than the second threshold, and the fourth preset range is used to indicate that the value is less than or equal to the second threshold;

[0120] The demodulation result corresponding to the third preset range indicates that the data of the FSK signal is a second value;

[0121] The demodulation result corresponding to the fourth preset range indicates that the data of the FSK signal is a first value.

[0122] At least one advantageous aspect of the FSK signal demodulation device provided by an embodiment of the present application is: by determining a first difference between a first duration corresponding to a counter interruption when the FSK signal is not received and a second duration corresponding to the nth interruption of the counter after the FSK signal is received, when the first difference is greater than a first preset value, determining a third difference between a second difference corresponding to the n-1th interruption of the counter and the first difference, thereby determining, based on the third difference, whether the data of the FSK signal is transformed into a second value or maintained at the first value, thereby improving the accuracy of determining the data of the FSK signal.

[0123] It should be noted that, in the embodiments of the present application, the functional modules named by functionality are used as an example to describe in detail the method steps to be implemented by the device provided by the embodiments of the present application. Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working process of the device and module described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0124] Those skilled in the art may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application. The computer software may be stored in a computer-readable storage medium, and when executed, the program may include the processes of the embodiments of the above methods. The storage medium may be a magnetic disk, an optical disk, a read-only memory, or a random access memory.

[0125] Figure 8 A schematic structural diagram of a wireless charging receiver according to an embodiment of the present application is shown. The embodiment of the present application does not limit the specific implementation of the wireless charging receiver.

[0126] like Figure 8 As shown, the wireless charging receiver may include a processor 802 , a counter 804 , a memory 806 , and a communication bus 808 .

[0127] Processor 802, counter 804, and memory 806 communicate with each other via communication bus 808. Counter 804 is configured to calculate the duration required for a predetermined number of signal rising edges. Processor 802 is configured to execute program 810, which may specifically perform the steps described in the above-described embodiment of the FSK signal demodulation method.

[0128] Specifically, the program 810 may include program codes, which include computer operating instructions, and may be used to enable the processor 802 to execute the FSK signal demodulation method in any of the above method embodiments.

[0129] In the embodiment of the present application, depending on the type of hardware used, the processor 802 can be a central processing unit (CPU), and the processor 802 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 gate or transistor logic devices, discrete hardware components, etc.

[0130] The memory 806 is used to store the program 810. The memory 806 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory, a flash memory device, or other non-volatile solid-state memory device.

[0131] It has a program storage area and a data storage area, which are respectively used to store programs 810 and corresponding data information, such as non-volatile software programs, non-volatile computer executable programs and modules stored in the program storage area.

[0132] The present application also provides a computer-readable storage medium. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program.

[0133] When executed by a processor, the computer program implements one or more steps of the FSK signal demodulation method disclosed in the embodiments of the present application. The complete computer program product is embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing the computer program disclosed in the embodiments of the present application.

[0134] Finally, it should be noted that: the above examples are only used to illustrate the technical solutions of the present application, but not limited to them; under the idea of the present application, the technical features of the above examples or different examples can also be combined, the steps can be implemented in any order, and there are many other changes of different aspects of the present application as described above, which are not provided in details for simplicity; although the present application has been described in detail with reference to the foregoing examples, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing examples, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A demodulation method for an FSK signal, characterized in that: include: When the counter is interrupted, determining whether the FSK signal is received; If not, recording a first duration, and determining that during the first duration, the data of the FSK signal is a first value; If yes, record a second duration, and calculate the absolute difference between the second duration and the first duration to obtain a first difference; wherein the second duration is used to indicate the duration required for the counter to calculate a preset number of rising edges of the signal when the counter is interrupted for the nth time, wherein n is greater than 1; When the first difference is greater than a first preset value, obtaining a second difference corresponding to the (n-1)th interruption of the counter, and calculating an absolute difference between the first difference and the second difference to obtain a third difference; The second difference is used to indicate the absolute difference between the third duration and the first duration; the third duration is used to indicate the duration required for the counter to calculate the preset number of rising edges of the signal when the counter is interrupted for the n-1th time; If the third difference is greater than a second preset value, converting the data of the FSK signal into a second value; If the third difference is less than or equal to the second preset value, the data of the FSK signal is determined to be the first value.

2. The method according to claim 1, characterized in that The first duration is less than or equal to the duration that the wireless charging receiver waits to receive the FSK signal.

3. The method according to claim 1, characterized in that After calculating the absolute difference between the second duration and the first duration to obtain the first difference, the method further includes: When the first difference is less than or equal to the first preset value, controlling the counter to continue counting the duration required for the preset number of signal rising edges until a preset interrupt condition is met to obtain a corresponding duration; The preset interrupt condition is used to indicate that the counter detects that the number of consecutive rising edges of the signal is the preset number.

4. The method according to claim 1, wherein After determining the data of the FSK signal as the first value, the method further includes: The counter is controlled to continue counting the duration required for the preset number of signal rising edges until a preset interrupt condition is met, thereby obtaining a corresponding duration.

5. The method according to any one of claims 1 to 4, characterized in that After calculating the absolute difference between the second duration and the first duration to obtain the first difference, the method further includes: Determine, based on the first difference and a plurality of threshold channels, a demodulation result of the FSK signal output by each of the threshold channels; The demodulation result of the FSK signal indicates that the data of the FSK signal is the second value or the first value; Each of the threshold channels includes a first type of threshold channel and a second type of threshold channel.

6. The method according to claim 5, characterized in that The first type of threshold channel has a first preset range and a second preset range, the first preset range is used to indicate that the value is greater than the first threshold, and the second preset range is used to indicate that the value is less than or equal to the first threshold; The demodulation result corresponding to the first preset range indicates that the data of the FSK signal is the second value; The demodulation result corresponding to the second preset range indicates that the data of the FSK signal is the first value.

7. The method according to claim 5, characterized in that The second-type threshold channel has a third preset range and a fourth preset range, the third preset range is used to indicate that the value is greater than the second threshold, and the fourth preset range is used to indicate that the value is less than or equal to the second threshold; The demodulation result corresponding to the third preset range indicates that the data of the FSK signal is the second value; The demodulation result corresponding to the fourth preset range indicates that the data of the FSK signal is the first value.

8. A demodulation device for FSK signal, characterized in that: include: A judging module, configured to judge whether the FSK signal is received when an interrupt occurs in the counter; a first determining module, configured to, if not, record a first duration, and determine that during the first duration, the data of the FSK signal is a first value; a first calculation module, configured to, if yes, record a second duration, and calculate an absolute difference between the second duration and the first duration to obtain a first difference; wherein the second duration is used to indicate the duration required for the counter to calculate a preset number of rising edges of the signal when the counter is interrupted for the nth time, wherein n is greater than 1; a second calculation module, configured to, when the first difference is greater than a first preset value, obtain a second difference corresponding to the (n-1)th interruption of the counter, and calculate an absolute difference between the first difference and the second difference to obtain a third difference; wherein the second difference is used to indicate an absolute difference between a third duration and the first duration; and the third duration is used to indicate a duration required for the counter to calculate the preset number of rising edges of the signal when the counter is interrupted for the (n-1)th time; a conversion module, configured to convert the data of the FSK signal into a second value if the third difference is greater than a second preset value; wherein the second value is greater than the first value; The second determining module is configured to determine the data of the FSK signal as the first value if the third difference is less than or equal to the second preset value.

9. A wireless charging receiver, characterized in that: The wireless charging receiver includes: a counter and at least one processor; and a memory communicatively connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the FSK signal demodulation method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • FSK signal demodulation method in wireless charging equipment

    CN106487425A

  • Signal demodulation and decoding method and device and computer readable storage medium

    CN113271276A