Demodulation method and device of FSK signal and wireless charging receiver

The proposed demodulation method improves FSK signal accuracy and reduces packet loss in wireless charging by dynamically assessing frequency changes through counter duration differences and threshold channel analysis, addressing the challenges posed by the new protocol.

CN119135493AActive Publication Date: 2024-12-13NUVOLTA TECH (HEFEI) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The accuracy of demodulating FSK signals is compromised by the introduction of a new protocol that reduces carrier frequency cycles per data bit, leading to difficulties in distinguishing between data '1' and '0' due to misalignment of frequency detection and increased jitter, resulting in low demodulation accuracy and packet loss in wireless charging systems.

Method used

A demodulation method that determines a first difference between durations of counter interruptions before and after signal reception, followed by calculating additional differences to assess frequency changes, using multiple threshold channels to refine data determination, thereby improving accuracy and reducing packet loss.

Benefits of technology

Enhances the accuracy of FSK signal demodulation and reduces packet loss rates in wireless charging systems by adaptively adjusting to frequency changes, ensuring precise data detection and efficient energy transfer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135493A_ABST
    Figure CN119135493A_ABST
Patent Text Reader

Abstract

The invention relates to an FSK (Frequency Shift Keying) signal demodulation method. The method comprises the following steps: when a counter is interrupted, judging whether an FSK (Frequency Shift Keying) signal is received or not; if not, determining that the data of the FSK signal is a first numerical value in the first duration; if yes, calculating a first difference value between the second duration and the first duration; when the first difference value is greater than a first preset value, acquiring a second difference value during (n-1) th 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 the second preset value, converting the first numerical value into a second numerical value; if the third difference value is smaller than or equal to the second preset value, the first value is kept. According to the method, by determining the first difference value between the first duration and the second duration and then determining the third difference value between the second difference value and the first difference value during the (n-1) th interruption, it is determined that the data of the FSK signal is converted into the second numerical value or the first numerical value is kept, and then the accuracy of judging the data of the FSK signal is improved.
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 does not use a traditional charging power cord to connect to the terminal device that needs to be charged. It generally uses inductive coupling to achieve energy transmission through the magnetic field generated between coils. The Qi protocol is the first wireless charging standard protocol launched by the Wireless Power Consortium (WPC) in the world. The Qi protocol stipulates that the wireless charging transmitter (TX) uses FSK signals to transmit information to the 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, 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. Data "0" only needs to detect one edge (rising edge or falling edge), and the frequencies of the 512 carriers are 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 the FSK signal is demodulated 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 the first aspect, the embodiment of the present application provides a demodulation method for an FSK signal. The method includes: when the 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 that when the counter is interrupted for the nth time, the counter calculates the duration required for a preset number of signal rising edges, wherein n is greater than 1; when the first difference is greater than the first preset value, obtaining the 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 the 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 as the first value.

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

[0008] Optionally, the second difference is used to indicate an 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 a corresponding duration; wherein the preset interrupt condition is used to indicate that the counter detects that the number of consecutive multiple 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 time required for the preset number of signal rising edges until a preset interruption condition is met to obtain a corresponding time.

[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 of the threshold channels 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; and each of the threshold channels has a first type of threshold channel and a second type of threshold channel.

[0012] Optionally, 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 a value is greater than a first threshold, and the second preset range is used to indicate that a 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 demodulation device of the FSK signal comprises: a judgment module, which is used to judge whether the FSK signal is received when the counter is interrupted; a first determination module, which is used to record a first duration if not, and determine that the data of the FSK signal is a first value during the first duration; a first calculation module, which is used to record a second duration if yes, 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 signal rising edges when the counter is interrupted for the nth time, wherein n is greater than 1; a second calculation module, which is used to obtain a second difference corresponding to the n-1th interruption of the counter when the first difference is greater than the first preset value, and calculate the absolute difference between the first difference and the second difference to obtain a third difference; a conversion module, which is used to convert the data of the FSK signal into a second value if the third difference is greater than the second preset value; wherein the second value is greater than the first value; and a second determination module, which is used 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.

[0015] In a third aspect, an embodiment of the present application provides a wireless charging receiver. The wireless charging receiver includes: a counter and at least one processor; and a memory connected to 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 so that the at least one processor can perform the demodulation method of the FSK signal as described above.

[0016] 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 no FSK signal is 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. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

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

[0019] Figure 2 A schematic diagram of data 1 and data 0 specified in the Qi protocol provided in an embodiment of the present application;

[0020] Figure 3 A schematic diagram showing that the start time of the RX end detecting the frequency is not aligned with the first edge of the frequency change provided in the embodiment of the present application;

[0021] Figure 4 A method flow chart of a demodulation method for an FSK signal provided in an embodiment of the present application;

[0022] Figure 5 A method flow chart of a demodulation method of an FSK signal provided by another embodiment of the present application;

[0023] Figure 6 A functional block diagram of a demodulation device for an FSK signal provided in an embodiment of the present application;

[0024] Figure 7 A functional block diagram of a demodulation device for an 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] In order to facilitate the understanding of the present invention, the present invention is 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 "fixed to" another element, it can be directly on another element or there can be one or more centered elements therebetween. When an element is described as "connected" to another element, it can be directly connected to another 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, 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 a limitation of 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 meaning as those commonly understood by those skilled in the art of the present invention. The terms used in this specification and in the specification 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" used in this specification includes any and all combinations of one or more of the related 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 the present 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 is encoded using differential bidirectional coding, and 512 carrier frequency cycles represent one data. 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 frequencies of the first 256 carriers are different from the frequencies 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 methods for FSK signals are as follows: (1) Start a timer and calculate the total time T1 for capturing n rising edges; (2) At the end of the nth rising edge, interrupt the timer. When starting to count the rising edges in the second round, 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. Steps (1), (2), and (3) are repeatedly executed until the FSK signal ends. Here, Thd is a preset value. By way of example and not limitation, Thd can be 5 or 6. The specific Thd can be set according to the actual application scenario.

[0032] By way of example, assume that the operating frequency at the TX end is: 128 kilohertz (KHz), the FSK modulation depth is 0, the number of cycles is 512, and the difference between two frequency cycles adopts the maximum value within the depth 0 range specified by the Qi protocol: 63.25 ns. The RX end counts once every 64 cycles. Then, the cumulative time difference for 64 cycles is: 4048 ns. The sampling clock of the processor is 8 mega (M), that is, each clock cycle is 125 ns. Therefore, the difference between the two durations is: delta = 4048 / 125 = 32.

[0033] However, since a new protocol has been proposed, this new protocol stipulates that 128 carrier frequency cycles represent one data.

[0034] By way of example, assume that the operating frequency at the TX end is: 128 KHz, the FSK modulation depth is 0, the number of cycles is 128, and the RX end counts once every 32 cycles. Similarly to the above example, the delta value can be obtained to be greater than or equal to 15.

[0035] This new protocol also stipulates that the operating frequency at the TX end is: 360 KHz, which is 2 to 3 times higher than the frequency specified by the Qi protocol.

[0036] By way of example, assume that the operating frequency at the TX end is: 360 KHz, the FSK modulation depth is 0, the number of cycles is 128, and the RX end counts once every 32 cycles. Similarly to the above example, the delta value can be obtained to be less than 15.

[0037] In the above examples, the modulation depth of FSK adopts the specified typical value. Assuming that the TX end adopts the lower limit value within the depth specified by the protocol, the delta value will be less than 8. For example, when the depth specified by the Qi protocol is 0, the lower limit value of the difference between the two frequency cycles is 30.25ns, then 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), however, the starting time of the RX end detecting the frequency is not easy to align with the first edge of the frequency change, 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 gradual 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, and the RX end is usually unable to sample the maximum value 7, but may first sample an intermediate value, and then the maximum value 7, so the maximum value is 7, so the preset value Thd is limited to 7, and the problem that the starting moment of the RX end detecting the frequency and the first edge of the frequency change are not easily aligned, the value before the maximum value 7 is theoretically in the range of 0 to 7, and at the same time, jitter filtering must also be considered, so the accuracy of determining whether the data of the FSK signal is 1 or 0 by a preset value Thd is low.

[0039] Therefore, the embodiment of the present application determines a first difference between a first duration corresponding to a counter interruption when no FSK signal is 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, a 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 a 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 comprises 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 plurality of signals and to calculate the duration corresponding to the consecutive rising edges of a plurality of signals.

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

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

[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 an interval. Therefore, the RX end performs the first counter interrupt in the time period waiting to receive the FSK signal, thereby obtaining the first time length. Since the FSK signal has not been received in this time period, the first value is 0, wherein, as an example but not 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 the 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, and 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. 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, the data of the FSK signal is converted 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 transforming 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, the data of the FSK signal is determined 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] The embodiment of the present application first determines whether the frequency of the FSK signal is likely to change through a first preset value. After determining that the frequency of the FSK signal is likely to change, it determines whether the frequency of the FSK signal has a trend of change through a second preset value, thereby determining whether the data of the FSK signal is transformed into a second value or maintains the first value, thereby avoiding 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 no FSK signal is 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 A method flow chart of a demodulation method of an FSK signal provided by another embodiment of the present application. Figure 5 As shown, the demodulation method of the FSK signal comprises 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 during the first duration, the data of the FSK signal is a first value.

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

[0063] S530: If yes, record the second duration, and calculate the absolute difference between the second duration and the first duration to obtain the first difference.

[0064] 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.

[0065] S540: 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.

[0066] S550: When the first difference is less than or equal to the first preset value, the control counter continues to calculate the duration required for a preset number of signal rising edges until a preset interrupt condition is met to obtain a corresponding duration.

[0067] 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.

[0068] It can be understood that, in step S550, when the first difference is less than or equal to the first preset value, the control counter continues to calculate the duration required for a preset number of signal rising edges until the preset interrupt condition is met and the corresponding duration is obtained, which is equivalent to returning to step S510.

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

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

[0071] S580, controlling the counter to continue to calculate the duration required for a preset number of signal rising edges until a preset interrupt condition is met, thereby obtaining a corresponding duration.

[0072] It can be understood that after the data of the FSK signal is determined to be the first value, step S580, controlling the counter to continue calculating the duration required for a preset number of signal rising edges until the preset interrupt condition is met, and obtaining the corresponding duration is equivalent to returning to step S510.

[0073] S590: Determine a demodulation result of the FSK signal output by each threshold channel based on the first difference and the multiple threshold channels.

[0074] 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 of threshold channel and a second type of threshold channel.

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

[0076] It can be understood that in each threshold channel, either the demodulation result of the FSK signal in the first type of threshold channel is output, or the demodulation result of the FSK signal in the second type of 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 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 also includes: (1) obtaining a target data packet, the target data packet including multiple 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 multiple threshold channels, the demodulation result output by the target data packet in each threshold channel is determined to obtain multiple second demodulation results; (7) verifying the first demodulation result and the 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.

[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, corresponding 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 the embodiment of the present application is: by determining a first difference between a first duration corresponding to a counter interruption when no FSK signal is 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 according to the third difference whether 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 a demodulation device for FSK signals provided in an embodiment of the present application. Figure 6 As shown, the demodulation device 600 of the FSK signal may include:

[0090] A determination module 610, used to determine whether an FSK signal is received when an interrupt occurs in the counter;

[0091] A first determination module 620, for recording a first duration if no, and determining that during the first duration, the data of the FSK signal is a first value;

[0092] A first calculation module 630 is used to record the 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;

[0093] A second calculation module 640 is used 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 the absolute difference between the first difference and the second difference to obtain a third difference;

[0094] A conversion module 650, 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;

[0095] The second determination 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 in the 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 FSK signals provided in another embodiment of the present application. Figure 7 As shown, the demodulation device 600 of the FSK signal may include:

[0098] A determination module 610, used to determine whether an FSK signal is received when an interrupt occurs in the counter;

[0099] A first determination module 620, for recording a first duration if no, and determining that during the first duration, the data of the FSK signal is a first value;

[0100] A first calculation module 630 is used to record the 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;

[0101] A second calculation module 640 is used 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 the absolute difference between the first difference and the second difference to obtain a third difference;

[0102] A conversion module 650, 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;

[0103] The second determination 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 that the wireless charging receiver waits 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 used to control the counter to continue to calculate 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 met to obtain 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 to calculate the time required for a preset number of signal rising edges until a preset interrupt condition is met to obtain a corresponding time.

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

[0113] A third determination module 690 is used 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 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;

[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 in the 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 embodiment of the present application, the functional module named by the function is taken as an example, and the method steps to be implemented by the device provided by the embodiment of the present application are described in detail. It can be clearly understood by those skilled in the art that, for the convenience and simplicity 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. It can be appreciated by those of ordinary skill in the art 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 the above description according to the function. 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 exceed the scope of the present invention.

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

[0125] Figure 8 A schematic diagram of the structure 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] The processor 802, the counter 804, and the memory 806 communicate with each other via a communication bus 808. The counter 804 is used to calculate the time required for a preset number of signal rising edges. The processor 802 is used to execute the program 810, which can specifically execute the relevant steps in the above-mentioned FSK signal demodulation method embodiment.

[0128] Specifically, the program 810 may include a program code, which includes a computer operation instruction, and may be specifically 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 the program 810 and the corresponding data information, such as non-volatile software programs, non-volatile computer executable programs and modules stored in the program storage area.

[0132] The embodiment of 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 the computer program is executed by the processor, one or more steps of the demodulation method of the FSK signal disclosed in the embodiment of the present application are implemented. The complete computer program product is embodied in 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 embodiment of the present application.

[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

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, record the first duration, and determine that during the first duration, the data of the FSK signal is a first value; If yes, record the second duration, and calculate the absolute difference between the second duration and the first duration to obtain the 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; If the third difference is greater than the second preset value, the data of the FSK signal is converted 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 for receiving the FSK signal.

3. The method according to claim 1, characterized in that The second difference is used to indicate an absolute difference between a 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 signal rising edges when the counter is interrupted for the n-1th time.

4. 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 to calculate 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.

5. The method according to claim 1, characterized in that After determining the data of the FSK signal as the first value, the method further includes: The counter is controlled to continue to calculate the duration required for the preset number of signal rising edges until a preset interrupt condition is met to obtain a corresponding duration.

6. The method according to any one of claims 1 to 5, 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: Based on the first difference and a plurality of threshold channels, determining 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 has a first type of threshold channel and a second type of threshold channel.

7. The method according to claim 6, 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.

8. The method according to claim 6, characterized in that The second type of 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.

9. A demodulation device for FSK signal, characterized in that: include: A judging module, used for judging whether the FSK signal is received when the counter is interrupted; A first determining module, for recording a first duration if no, and determining that during the first duration, the data of the FSK signal is a first value; a first calculation module, configured to 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 is used for obtaining a second difference value corresponding to the (n-1)th interruption of the counter when the first difference value is greater than a first preset value, and calculating an absolute difference between the first difference value and the second difference value to obtain a third difference value; 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 determination module is used 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.

10. A wireless charging receiver, characterized in that: The wireless charging receiver includes: a counter and at least one processor; and a memory in communication with 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 so that the at least one processor can execute the FSK signal demodulation method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • FSK signal demodulation method in wireless charging equipment

    CN106487425A

  • FSK demodulator, related equipment and method

    CN110445736A

  • FSK software decoding method based on frequency identification

    CN111800360A

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

    CN113271276A

  • Apparatus for demodulating FSK signals, with updates each half-period

    EP0524590A1