An adaptive FPGA resource scheduling method and apparatus based on front-end processing

By using an adaptive scheduling method, the FPGA resource status is dynamically adjusted based on the results of the previous stage processing, which solves the problem of resource waste in multi-mode communication systems and achieves more efficient hardware resource utilization and reduced power consumption.

CN123123469APending Publication Date: 2026-11-17CANXIN SEMICON (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611619639.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-20
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In existing wireless communication processing systems, the results of the front-end processing are not fully utilized, leading to wasted resources and unnecessary dynamic power consumption in the subsequent processing modules. In particular, multi-mode communication systems lack fine-grained resource scheduling mechanisms.

Method used

By using an adaptive scheduling method, the working state of the subsequent processing modules is dynamically adjusted based on the results of the preceding processing, including energy detection, correlation detection, and carrier frequency offset estimation, thereby achieving fine-grained control of FPGA resources and reducing unnecessary processing and resource usage.

Benefits of technology

It reduces system dynamic power consumption, improves hardware resource utilization, and enables refined and adaptive control of processing resources, making it suitable for multi-mode communication systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123123469A_ABST
    Figure CN123123469A_ABST
Patent Text Reader

Abstract

This invention discloses an adaptive FPGA resource scheduling method and apparatus based on pre-processing, belonging to the field of wireless communication technology. The method includes: a pre-processing step, performing pre-processing on the received signal to obtain pre-processing results characterizing the current signal and subsequent processing requirements; and an adaptive control step, determining subsequent processing requirements based on the pre-processing results, and dynamically scheduling dedicated processing resources and / or shared processing resources corresponding to the BLE and Zigbee protocols in the FPGA, at least based on the subsequent processing requirements, to enable or disable the operating clocks of the corresponding processing resources. This invention can adaptively schedule hardware resources based on real-time pre-processing results, reducing invalid resource overhead, lowering dynamic power consumption, and improving hardware resource utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of wireless communication technology, specifically relating to an FPGA resource scheduling method and apparatus based on adaptive front-end processing. Background Technology

[0002] Existing wireless communication processing systems, especially communication baseband processing systems implemented based on FPGAs (Field Programmable Gate Arrays), typically enable, disable, or put into sleep mode for each processing module according to preset communication states, protocol flows, or fixed timing sequences. When the system enters the receiving processing state, each processing module usually operates sequentially or continuously according to the preset processing flow.

[0003] However, in actual communication processing, the front-end processing stage can usually obtain certain signal characteristics or processing results in advance. This information can actually reflect the necessity and processing requirements of subsequent processing. Existing technologies often fail to fully utilize the aforementioned front-end processing results to dynamically adjust the working state of subsequent processing modules. This results in some subsequent logic resources continuing to operate even when the front-end processing module has determined that there is no valid signal or that the subsequent processing requirements are low, thus generating unnecessary dynamic power consumption.

[0004] Furthermore, in multi-mode communication systems that simultaneously support BLE (Bluetooth Low Energy) and Zigbee (a low-rate wireless personal area network protocol based on IEEE 802.15.4), different protocols can share some digital signal processing resources. Existing technologies typically control protocol-specific and shared resources holistically based on the current protocol mode or preset communication state, lacking a mechanism for joint, fine-grained scheduling of BLE, Zigbee, and shared resources based on the results generated during real-time processing. Therefore, during protocol identification, communication phase transitions, and shared resource reuse, some resources may remain operational even when not requiring processing, or unnecessary resource switching may occur. Summary of the Invention

[0005] The purpose of this invention is to provide an adaptive FPGA resource scheduling method and apparatus based on pre-processing. The purpose is to adaptively determine the subsequent processing requirements based on the pre-processing results generated in real time during the communication process, and dynamically schedule dedicated processing resources and shared processing resources for different communication protocols accordingly. While ensuring communication processing performance, it reduces invalid processing and unnecessary resource work, thereby reducing dynamic power consumption and improving hardware resource utilization.

[0006] To achieve the above objectives, according to one aspect of the present invention, an FPGA resource scheduling method based on adaptive pre-processing is provided, the method comprising: The pre-processing step performs pre-processing on the received signal and obtains the pre-processing results to characterize the current signal and subsequent processing requirements. The adaptive control step determines the subsequent processing requirements based on the previous processing results, and at least according to the subsequent processing requirements, dynamically schedules the dedicated processing resources and / or shared processing resources corresponding to the BLE protocol and Zigbee protocol in the FPGA, so as to turn on or off the working clock of the corresponding processing resources through the gating unit. The pre-processing results include at least one of the following: energy detection results, correlation detection results, carrier frequency offset estimation, packet length information, and error message information.

[0007] Preferably, the dedicated processing resources include correlator modules and MAC processing units corresponding to the BLE protocol and Zigbee protocol, respectively; the shared processing resources include a carrier frequency offset estimation and compensation module, a demodulation module, and a shared buffer module shared by the BLE protocol and Zigbee protocol.

[0008] Preferably, the dynamic scheduling includes at least one of the following: When the energy detection result in the pre-processing result is lower than the initial threshold, only the energy detection module used to obtain the energy detection result is kept working, and the working clocks of other downstream modules are turned off. When the energy detection result in the pre-processing result is greater than the initial threshold, the working clock of the correlator module is turned on, and the BLE protocol and Zigbee protocol are enabled to perform their respective preamble and synchronization word detection. When the BLE or Zigbee protocol type corresponding to the current signal is determined based on the relevant detection results, the working clock of the correlator module is turned off, and the working clock of the carrier frequency offset estimation and compensation module is turned on. When the estimated carrier frequency offset is lower than the preset frequency offset threshold, the working clock of the demodulation module and the MAC processing unit of the corresponding communication protocol is turned on. When the estimated carrier frequency offset is higher than the preset frequency offset threshold, the working clock of the carrier frequency offset estimation and compensation module, demodulation module and MAC processing unit that are currently in operation is turned off, and the operation status of energy detection only is returned. When a data packet reception is completed or an error is detected, the operating clock of the currently operating downstream module is turned off.

[0009] Preferably, determining the BLE or Zigbee protocol type corresponding to the current signal based on relevant detection results specifically includes: Compare the BLE protocol-related detection values ​​with the BLE protocol threshold, and compare the Zigbee protocol-related detection values ​​with the Zigbee protocol threshold; If only the BLE protocol-related detection value reaches the BLE protocol threshold, then the current signal is determined to be a BLE protocol signal; If only the Zigbee protocol-related detection value reaches the Zigbee protocol threshold, then the current signal is determined to be a Zigbee protocol signal; If neither the BLE protocol-related detection value nor the Zigbee protocol-related detection value reaches its respective protocol threshold, the system maintains a low-power state and shuts down the correlator module's operating clock. If both the BLE protocol-related detection value and the Zigbee protocol-related detection value reach their respective protocol thresholds, then the magnitudes of the two related detection values ​​are compared, and the protocol type corresponding to the larger related detection value is determined as the current signal type.

[0010] Preferably, the method further includes a channel state switching determination step: During the operation of the carrier frequency offset estimation and compensation module, the current signal energy value is continuously monitored; When the signal energy value is greater than the switching threshold, the correlator module's working clock is restarted to determine the BLE or Zigbee protocol type. If the MAC processing unit has not yet started working, the current data packet reception is abandoned, and the process returns to the stage of re-determining the protocol type and then starting the carrier frequency offset estimation and compensation module. If the MAC processing unit has started working and no error message has been received, then if the length of the received data reaches or exceeds half of the pre-received packet length, the current data packet reception will continue without switching; if the received data is less than half of the pre-received packet length, the current data packet reception will be abandoned and the process will return to the stage of re-determining the protocol type and then starting the carrier frequency offset estimation and compensation module. If the MAC processing unit has received an error message, it will abandon the reception of the current data packet and return to the stage of re-determining the protocol type and then starting the carrier frequency offset estimation and compensation module, regardless of whether the length of the currently received data has reached or exceeded half of the pre-received packet length.

[0011] Preferably, the method further includes: During the operation of the demodulation module and MAC processing unit, the error messages and reception progress information reported by the MAC processing unit are monitored in real time. When an error message is received, the operating clocks of the correlator module, carrier frequency offset estimation and compensation module, demodulation module and MAC processing unit are turned off, and the operation status of energy detection only is returned. When the length of received data reaches the pre-received packet length, the operating clocks of the correlator module, carrier frequency offset estimation and compensation module, demodulation module and MAC processing unit are turned off, and the system returns to the energy detection-only operating state.

[0012] Preferably, the error message includes at least one of the following: packet length error, packet type error, synchronization error, and verification error.

[0013] According to a second aspect of the present invention, the present invention proposes an FPGA resource scheduling device based on front-end processing adaptive scheduling, comprising: The pre-processing module is used to perform pre-processing on the received signal and obtain the pre-processing results to characterize the current signal and subsequent processing requirements. An adaptive control module is used to determine subsequent processing requirements based on the results of the preceding processing, and at least based on the subsequent processing requirements, to dynamically schedule the dedicated processing resources and / or shared processing resources corresponding to the BLE protocol and Zigbee protocol in the FPGA, so as to turn on or off the working clock of the corresponding processing resources through the gating unit. The pre-processing results include at least one of the following: energy detection results, correlation detection results, carrier frequency offset estimation, packet length information, and error message information.

[0014] Preferably, the adaptive control module includes: The protocol type determination unit is used to determine the protocol type corresponding to the current signal based on the comparison results between the relevant detection values ​​of the BLE protocol and the Zigbee protocol and the corresponding protocol thresholds. The state switching control unit is used to generate switching control signals for each gate control unit based on the decision result of the protocol type decision unit and the current processing stage. The monitoring and processing unit is used to receive error message information and reception progress information from the MAC processing unit, and generate corresponding control signals based on the error message information and reception progress information.

[0015] Compared with the prior art, the beneficial effects of the present invention are: This invention utilizes the real-time processing results generated in the preceding stages of the process to dynamically evaluate subsequent processing requirements. Based on the evaluation results, it adaptively schedules dedicated and shared processing resources for different communication protocols, enabling processing resources to match actual needs and reducing unnecessary resource overhead. It also features a dynamic adjustment mechanism that can improve the utilization rate of hardware resources in multi-mode communication systems such as BLE and Zigbee protocols, and reduce system dynamic power consumption and resource switching overhead.

[0016] This invention enables refined and adaptive control of processing resources, moving from traditional overall control to module-level, function-level, and even processing stage-level control. It is particularly suitable for multi-mode communication processing systems implemented based on reconfigurable hardware such as FPGAs. Attached Figure Description

[0017] Figure 1 A block diagram of the overall structure of the FPGA resource scheduling device based on adaptive front-end processing provided in an embodiment of the present invention; Figure 2 A block diagram illustrating the specific implementation structure of the adaptive FPGA resource scheduling device based on pre-processing in a BLE and Zigbee dual-mode communication system, as provided in this embodiment of the invention. Figure 3 A flowchart of an adaptive FPGA resource scheduling method based on pre-processing provided in an embodiment of the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0019] In the description of this invention, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. The term "a plurality of" means two or more. The term "connection" should be interpreted broadly, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or a signal connection; it can be a direct connection or an indirect connection through an intermediate medium. Those skilled in the art will understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0020] This invention uses a dual-mode communication system that simultaneously supports BLE and Zigbee protocols as an example. In this system, BLE and Zigbee protocols can share some digital signal processing resources, such as shared buffer modules, demodulation modules, and carrier frequency offset estimation and compensation modules. They also each have their own dedicated processing resources. For example, in the correlator module, each has its own dedicated preamble detection submodule and synchronization word detection submodule; in the MAC processing unit (MAC baseband processor), there are BLE MAC subunits and Zigbee MAC subunits, respectively.

[0021] like Figure 1 and Figure 2 As shown, the FPGA resource scheduling device based on front-end processing adaptive scheduling provided in this embodiment of the invention mainly includes: The energy detection module is used to detect the energy of the received signal and output the energy detection result; The correlator module is used to perform correlation detection on the preamble and synchronization word (access address field for BLE, sfd field for Zigbee) of the BLE and Zigbee protocols respectively. The carrier frequency offset estimation and compensation module is used to estimate the carrier frequency offset of the received signal and perform frequency offset compensation on the signal. The demodulation module is used to demodulate the frequency offset compensated signal and output a bit stream; The BLE MAC processing unit (BLE baseband processor) and the Zigbee MAC processing unit (Zigbee baseband processor) are used to perform baseband processing and unpacking operations of the corresponding protocols on the demodulated bitstream, respectively. A shared cache module is used to store the unpacked data; Clock Gating Cells are located at the clock inputs of the correlator module, carrier frequency offset estimation and compensation module, demodulation module, and each MAC processing unit (MAC baseband processor), and are controlled by the adaptive control module to turn the operating clock of the corresponding processing module on or off. The adaptive control module, as the core control unit, receives various pre-processing results and feedback information from the energy detection module, correlator module, carrier frequency offset estimation and compensation module, and MAC processing unit (MAC baseband processor), and generates switching control signals for each gating unit according to preset judgment logic.

[0022] Specifically, the adaptive control module includes: The protocol type determination unit is used to determine the protocol type corresponding to the current signal based on the comparison results between the relevant detection values ​​of the BLE protocol and the Zigbee protocol and the corresponding thresholds. The state switching control unit is used to generate switching control signals for each gate control unit based on the decision result of the protocol type decision unit and the current processing stage. The monitoring and processing unit is used to receive error messages (including packet length error lenerr, packet type error typeerr, synchronization error syncerr, checksum error crcerr, etc.) and reception progress information (including received bit count counter and expected packet length) from the MAC processing unit (MAC baseband processor), and generate corresponding control signals based on the error messages and reception progress information.

[0023] like Figure 3As shown, the FPGA resource scheduling method with pre-stage processing adaptivity according to an embodiment of the present invention specifically includes the following steps: In the first step, after power-on, the system is in the default working state, where only the energy detection module operates, all the post-stage modules are in a low power consumption state, and the working clock of each module is turned off by the gating unit. When the signal energy is greater than the initial threshold 1 (the first threshold), the process proceeds to the second step; In the second step, the gating unit before the correlator is turned on, and the correlator module starts to work. The BLE protocol and the Zigbee protocol respectively detect the preamble and the synchronization word (the BLE synchronization word is the accessaddress field, and the Zigbee synchronization word is the sfd field), and obtain respective correlation values. The BLE correlation value is compared with the BLE threshold, and the Zigbee correlation value is compared with the Zigbee threshold. When the comparison results are obtained, the process proceeds to the third step; In the third step, if the BLE correlation value ≧ the BLE threshold and the Zigbee correlation value < the Zigbee threshold, it indicates that the system is in the BLE receiving state at this time, and the process proceeds to the fourth step; if the BLE correlation value < the BLE threshold and the Zigbee correlation value ≧ the Zigbee threshold, it indicates that the system is in the Zigbee receiving state at this time, and the process proceeds to the fourth step; if the BLE correlation value < the BLE threshold and the Zigbee correlation value < the Zigbee threshold, it indicates that there are no signals complying with the BLE and Zigbee standards in the channel at this time, the post-stage modules continue to maintain the low power consumption state, and the adaptive control module turns off the gating unit before the correlator module and jumps back to the first step; if the BLE correlation value ≧ the BLE threshold and the Zigbee correlation value ≧ the Zigbee threshold, it indicates that signals of both the BLE and Zigbee standards exist in the channel at the same time, the BLE correlation value is compared with the Zigbee correlation value. If the BLE correlation value ≧ the Zigbee correlation value, the system enters the BLE receiving state; if the BLE correlation value < the Zigbee correlation value, the system enters the Zigbee receiving state, and the process proceeds to the fourth step; In the fourth step, it means that the system has currently determined which standard of signal to receive. The adaptive control module first turns off the gating unit before the correlator module, and turns on the gating unit before the carrier frequency offset estimation and compensation module to make the module start working, and the process proceeds to the fifth step. Starting from the fourth step, the adaptive control module simultaneously continuously acquires information from the energy detection module to detect whether the current signal energy is greater than the switching threshold 2. If the signal energy < the switching threshold 2, the current system state is maintained; if the signal energy ≧ the switching threshold 2, it indicates that a signal with stronger energy exists in the current channel, and it is necessary to judge whether to switch the receiving state. At this time, the adaptive control module reopens the gating unit before the correlator module, refers to the correlation value judgment operation in the third step, and after determining that a new signal exists, a comprehensive judgment needs to be made in combination with the current working state of the system: 1. If the MAC processing unit has not yet started working, then abandon the current data packet reception operation and restart from step four, shutting down all levels of gating units after carrier frequency offset estimation and compensation.

[0024] 2. If the MAC processing unit has started working and the adaptive control module has not received error messages such as lenerr (packet length error), typeerr (packet type error), syncerr (synchronization error), or crcerr (checksum error) from the MAC processing unit, the adaptive module needs to make a judgment based on the packet length (pre-received packet length) and counter (counting information, indicating the number of bits currently received) provided by the MAC processing unit. If the counter value has reached half of the packet length, the adaptive control module chooses to complete the reception of the current data packet, abandon new signals appearing in the channel, and maintain the current system state. If the adaptive control module receives error messages, or the counter count value is less than half of the packet length, the adaptive control module chooses to abandon the reception of the current data packet and restarts from step four, shutting down all gating units after the carrier frequency offset estimation and compensation module.

[0025] In step five, the carrier frequency offset compensation and estimation module continuously estimates the carrier frequency offset of the received signal and compensates for it. Simultaneously, the module reports the comparison result of the frequency offset value with 300kHz to the adaptive control module in real time. If the frequency offset value is <300kHz, the adaptive control module opens the gating unit before the demodulation module and proceeds to step six. If the frequency offset value is >300kHz, it indicates that the current signal frequency offset is too large. After filtering by the RF circuit, most of the useful frequency band of the signal has been filtered out, and the probability of successful demodulation is extremely low. The adaptive control module chooses to abandon the reception of the current signal, closes the gating unit before the carrier frequency offset estimation and compensation, demodulation, and MAC processing units, and returns to step one. In steps five and subsequent steps, the carrier frequency offset estimation and compensation module continues to work and continuously reports the comparison result of the frequency offset value with 300kHz to the adaptive control module. Step 6: The demodulation module starts working and outputs a bitstream to the MAC processing unit. Depending on whether the received signal is BLE or Zigbee, it selects to enable BLE MAC or Zigbee MAC. The MAC processing unit performs unpacking and stores the unpacked data in a shared buffer. At the same time, it reports the lenerr, typeerr, syncerr, crcerr, counter, and packet length information to the adaptive control module in real time, and then proceeds to step 7. Step 7: If the adaptive control module receives any of the following error messages: lenerr, typeerr, syncerr, or crcerr, it will abandon the reception of the current signal, shut down all gating units before the correlator, carrier frequency offset estimation and compensation, demodulation, and MAC processing units, and return to step 1. If the adaptive module does not receive any error messages, it will observe whether the counter value has reached the packet length. When the counter value reaches the packet length, it will immediately shut down all gating units before the correlator, carrier frequency offset estimation and compensation, demodulation, and MAC processing units, and return to step 1.

[0026] This invention utilizes the real-time processing results generated in the preceding stages of the process to dynamically evaluate subsequent processing requirements. Based on the evaluation results, it adaptively schedules dedicated and shared processing resources for different communication protocols, enabling processing resources to match actual needs and reducing unnecessary resource overhead. It also features a dynamic adjustment mechanism that can improve the utilization rate of hardware resources in multi-mode communication systems such as BLE and Zigbee protocols, and reduce system dynamic power consumption and resource switching overhead.

[0027] This invention enables refined and adaptive control of processing resources, moving from traditional overall control to module-level, function-level, and even processing stage-level control. It is particularly suitable for multi-mode communication processing systems implemented based on reconfigurable hardware such as FPGAs.

[0028] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.

[0029] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A method for FPGA resource scheduling based on adaptive pre-processing, characterized in that, include: The pre-processing step performs pre-processing on the received signal and obtains the pre-processing results to characterize the current signal and subsequent processing requirements. The adaptive control step determines the subsequent processing requirements based on the previous processing results, and at least according to the subsequent processing requirements, dynamically schedules the dedicated processing resources and / or shared processing resources corresponding to the BLE protocol and Zigbee protocol in the FPGA, so as to turn on or off the working clock of the corresponding processing resources through the gating unit. The pre-processing results include at least one of the following: energy detection results, correlation detection results, carrier frequency offset estimation, packet length information, and error message information.

2. The FPGA resource scheduling method based on adaptive pre-processing according to claim 1, characterized in that, The dedicated processing resources include correlator modules and MAC processing units corresponding to the BLE and Zigbee protocols, respectively; the shared processing resources include a carrier frequency offset estimation and compensation module, a demodulation module, and a shared buffer module shared by the BLE and Zigbee protocols.

3. The FPGA resource scheduling method based on adaptive pre-processing according to claim 2, characterized in that, The dynamic scheduling includes at least one of the following: When the energy detection result in the pre-processing result is lower than the initial threshold, only the energy detection module used to obtain the energy detection result is kept working, and the working clocks of other downstream modules are turned off. When the energy detection result in the preprocessing result is greater than the initial threshold, the working clock of the correlator module is turned on, and the BLE protocol and Zigbee protocol are enabled to perform their respective preamble and synchronization word detection. When the BLE or Zigbee protocol type corresponding to the current signal is determined based on the relevant detection results, the working clock of the correlator module is turned off, and the working clock of the carrier frequency offset estimation and compensation module is turned on. When the estimated carrier frequency offset is lower than the preset frequency offset threshold, the working clock of the demodulation module and the MAC processing unit of the corresponding communication protocol is turned on. When the estimated carrier frequency offset is higher than the preset frequency offset threshold, the working clock of the carrier frequency offset estimation and compensation module, demodulation module and MAC processing unit that are currently in operation is turned off, and the operation status of energy detection only is returned. When a data packet reception is completed or an error is detected, the operating clock of the currently operating downstream module is turned off.

4. The FPGA resource scheduling method based on adaptive pre-processing according to claim 3, characterized in that, The step of determining the BLE or Zigbee protocol type corresponding to the current signal based on relevant detection results specifically includes: Compare the BLE protocol-related detection values ​​with the BLE protocol threshold, and compare the Zigbee protocol-related detection values ​​with the Zigbee protocol threshold; If only the BLE protocol-related detection value reaches the BLE protocol threshold, then the current signal is determined to be a BLE protocol signal; If only the Zigbee protocol-related detection value reaches the Zigbee protocol threshold, then the current signal is determined to be a Zigbee protocol signal; If neither the BLE protocol-related detection value nor the Zigbee protocol-related detection value reaches its respective protocol threshold, the system maintains a low-power state and shuts down the correlator module's operating clock. If both the BLE protocol-related detection value and the Zigbee protocol-related detection value reach their respective protocol thresholds, then the magnitudes of the two related detection values ​​are compared, and the protocol type corresponding to the larger related detection value is determined as the current signal type.

5. The FPGA resource scheduling method based on adaptive pre-processing according to claim 3, characterized in that, The method also includes a channel state switching determination step: During the operation of the carrier frequency offset estimation and compensation module, the current signal energy value is continuously monitored; When the signal energy value is greater than the switching threshold, the correlator module's working clock is restarted to determine the BLE or Zigbee protocol type. If the MAC processing unit has not yet started working, the current data packet reception is abandoned, and the process returns to the stage of re-determining the protocol type and then starting the carrier frequency offset estimation and compensation module. If the MAC processing unit has started working and no error message has been received, then if the length of the received data reaches or exceeds half of the pre-received packet length, the current data packet reception will continue without switching; if the received data is less than half of the pre-received packet length, the current data packet reception will be abandoned and the process will return to the stage of re-determining the protocol type and then starting the carrier frequency offset estimation and compensation module. If the MAC processing unit has received an error message, it will abandon the reception of the current data packet and return to the stage of re-determining the protocol type and then starting the carrier frequency offset estimation and compensation module, regardless of whether the length of the currently received data has reached or exceeded half of the pre-received packet length.

6. The FPGA resource scheduling method based on adaptive pre-processing according to claim 3, characterized in that, The method also includes: During the operation of the demodulation module and MAC processing unit, the error messages and reception progress information reported by the MAC processing unit are monitored in real time. When an error message is received, the operating clocks of the correlator module, carrier frequency offset estimation and compensation module, demodulation module and MAC processing unit are turned off, and the operation status of energy detection only is returned. When the length of received data reaches the pre-received packet length, the operating clocks of the correlator module, carrier frequency offset estimation and compensation module, demodulation module and MAC processing unit are turned off, and the system returns to the energy detection-only operating state.

7. A method for adaptive FPGA resource scheduling based on pre-processing according to claim 5 or 6, characterized in that, The error message includes at least one of the following: packet length error, packet type error, synchronization error, and verification error.

8. A front-end processing-based adaptive FPGA resource scheduling device, characterized in that, include: The pre-processing module is used to perform pre-processing on the received signal and obtain the pre-processing results to characterize the current signal and subsequent processing requirements. An adaptive control module is used to determine subsequent processing requirements based on the results of the preceding processing, and at least based on the subsequent processing requirements, to dynamically schedule the dedicated processing resources and / or shared processing resources corresponding to the BLE protocol and Zigbee protocol in the FPGA, so as to turn on or off the working clock of the corresponding processing resources through the gating unit. The pre-processing results include at least one of the following: energy detection results, correlation detection results, carrier frequency offset estimation, packet length information, and error message information.

9. The apparatus according to claim 8, characterized in that, The adaptive control module includes: The protocol type determination unit is used to determine the protocol type corresponding to the current signal based on the comparison results between the relevant detection values ​​of the BLE protocol and the Zigbee protocol and the corresponding protocol thresholds. The state switching control unit is used to generate switching control signals for each gate control unit based on the decision result of the protocol type decision unit and the current processing stage. The monitoring and processing unit is used to receive error message information and reception progress information from the MAC processing unit, and generate corresponding control signals based on the error message information and reception progress information.