Method and device for compensating signal source by using multiple threads

Through multi-threading technology and temperature compensation algorithm, the power output of the signal source is calculated and adjusted in real time, which solves the problem of insufficient stability of the signal source when temperature changes in the prior art, and improves the reliability and overall performance of the communication system.

CN120223207AActive Publication Date: 2025-06-27CHENGDU ZHONGKE FOUR POINT ZERO TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510415884.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-03
Publication Date
2025-06-27
Estimated Expiration
2045-04-03

AI Technical Summary

Technical Problem

The existing signal source compensation technology has shortcomings in response speed and accuracy, and cannot meet the requirements of high-precision communication systems for signal stability, especially when temperature changes drastically.

Method used

Multi-threading technology and temperature compensation algorithm are used to obtain temperature data of different signal sources through a multi-threading mechanism, calculate compensation amount information, and generate compensation instructions based on this information to adjust the power output of the signal source.

Benefits of technology

The stability of the signal source under different temperature environments is significantly improved, especially in environments with large temperature fluctuations, and the overall performance of the system and the reliability of the communication system are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120223207A_ABST
    Figure CN120223207A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for compensating a signal source by utilizing multiple threads. The method for compensating the signal sources by using multiple threads comprises the following steps: respectively acquiring temperature data of environments where different signal sources are located through a multi-thread mechanism; compensation amount information corresponding to each piece of temperature data is calculated through a temperature compensation algorithm, and one piece of compensation amount information corresponds to the temperature data of the environment where one signal source is located; generating a corresponding compensation instruction for each piece of compensation amount information according to the compensation amount information; and adjusting the power output of the corresponding signal source according to the generated compensation instruction. The multi-thread technology is adopted, it is ensured that when multiple signal source compensation tasks are carried out at the same time, the system can carry out parallel processing and optimize resource allocation, and the overall performance of the system is improved. The real-time calculation and control of the compensation algorithm can significantly improve the stability of the signal source in different temperature environments, especially in a working environment with large temperature fluctuation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of signal source compensation, and particularly relates to a method for compensating a signal source using multi-threading and a device for compensating a signal source using multi-threading. Background Art

[0002] In a communication system, a signal source is one of the core components for providing a stable signal, and the performance of the signal source directly affects the quality of the entire communication system. Especially in the fields of wireless communication, radar systems, broadcast transmission, etc., the stability of the signal source is crucial. However, during the long-term operation of existing signal sources, their output power fluctuates due to various factors, and the influence of temperature change is more significant.

[0003] Generally, a signal source needs to maintain a stable power output during operation to ensure the quality of the transmitted signal. However, temperature changes may cause changes in the performance of electronic components, thereby affecting the power output of the signal source. Traditional compensation methods usually measure the ambient temperature of the signal source through a temperature sensor and then perform compensation through a simple control loop. Although these methods can solve the problem to a certain extent, due to slow response speed and limited processing accuracy, they often cannot meet the requirements of high-precision communication systems for signal stability.

[0004] Current signal source compensation technologies mainly rely on measurements and feedback controls based on temperature sensors, but their deficiencies in terms of compensation speed, compensation accuracy, and adaptation to different environmental changes still restrict the stability of signal sources. Therefore, there is an urgent need for a new compensation method that can accurately respond to environmental changes in real time, especially to maintain the power stability of the signal source when the temperature changes drastically. Summary of the Invention

[0005] The object of the present invention is to provide a method for compensating a signal source using multi-threading to at least solve one of the above technical problems.

[0006] In one aspect of the present invention, there is provided a method for compensating a signal source using multi-threading, the method for compensating a signal source using multi-threading comprising: Obtaining temperature data of the environments where different signal sources are located respectively through a multi-threading mechanism, the temperature data being obtained through a temperature sensor; Calculating compensation amount information corresponding to each temperature data respectively through a temperature compensation algorithm, wherein one compensation amount information corresponds to the temperature data of the environment where one signal source is located; Generating corresponding compensation instructions for each compensation amount information respectively according to the compensation amount information; Adjusting the power output of the corresponding signal source according to the generated compensation instructions.

[0007] Optionally, the calculation of the compensation amount information corresponding to each temperature data by the temperature compensation algorithm includes: Perform the following calculations for each temperature data respectively: Obtain the reference temperature; Obtain the temperature sensor voltage information of the temperature sensor; Obtain the device temperature according to the temperature sensor voltage information; Obtain the temperature difference information according to the device temperature and the reference temperature; Obtain the temperature compensation value according to the temperature difference information; Obtain the compensation amount information according to the temperature compensation value.

[0008] Optionally, obtaining the temperature compensation value according to the temperature difference information through the following formula includes: COE = C * T3; where, COE is the temperature compensation value, C is the temperature coefficient, and T3 is the temperature difference information.

[0009] Optionally, the obtaining of the compensation amount information according to the temperature compensation value includes: Obtain the frequency offset; Obtain the power offset; Obtain the compensation amount information according to the frequency offset and the power offset.

[0010] Optionally, the obtaining of the frequency offset includes: Obtain the frequency information at the current time point; Obtain the previous frequency information and the next frequency information of the current frequency information; Obtain the frequency offset according to the previous frequency information and the next frequency information of the current frequency information.

[0011] Optionally, obtaining the frequency offset according to the previous frequency information and the next frequency information of the current frequency information through the following formula includes: F4 = F3 - F2; where, F4 is the frequency offset, F2 is the previous frequency information of the current frequency information, and F3 is the next frequency information of the current frequency information.

[0012] Optionally, the obtaining of the power offset includes: Obtain the set value of the power at the current time point; Obtain the previous power point at the current time point; Obtain the next power point at the current time point; Obtain the power offset according to the previous power point and the next power point at the current time point.

[0013] Optionally, obtaining a power offset according to the previous power point at the current time point and the next power point at the current time point through the following formula includes: A4 = A3 - A2; where A4 is the power offset, A2 is the previous power point at the current time point, and A3 is the next power point at the current time point.

[0014] Optionally, obtaining compensation information according to the frequency offset and the power offset through the following formula includes: D2 = A5 / 2 * √2; where A5 = A1 + F4 * A4 + COE; where A5 is the actual power value calculated theoretically, D2 is the compensation information, A1 is the set value of the power at the current time point, A4 is the power offset, F4 is the frequency offset, and COE is the temperature compensation value.

[0015] The present application also provides a device for compensating a signal source using multi-threading. The device for compensating a signal source using multi-threading includes: A temperature data acquisition module, which is used to acquire the temperature data of the environments where different signal sources are located respectively through a multi-threading mechanism, and the temperature data is acquired through a temperature sensor; A compensation information acquisition module, which is used to calculate the compensation information corresponding to each temperature data respectively through a temperature compensation algorithm, where one compensation information corresponds to the temperature data of the environment where one signal source is located; A compensation instruction generation module, which is used to generate corresponding compensation instructions for each compensation information according to the compensation information; An adjustment module, which is used to adjust the power output of the corresponding signal source according to the generated compensation instructions.

[0016] Beneficial effects: The method for compensating a signal source using multi-threading in the present application adopts multi-threading technology, ensuring that when multiple signal source compensation tasks are carried out simultaneously, the system can process in parallel and optimize resource allocation, improving the overall performance of the system. The real-time calculation and control of the compensation algorithm can significantly improve the stability of the signal source in different temperature environments, especially in a working environment with large temperature fluctuations. Description of the Drawings

[0017] Figure 1 is a schematic flowchart of a method for compensating a signal source using multi-threading according to an embodiment of the present application. Detailed Embodiments

[0018] To make the objectives, technical solutions, and advantages of the present application more clear, the following will describe the technical solutions in the embodiments of the present application in more detail with reference to the accompanying drawings in the embodiments of the present application. In the drawings, the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions from beginning to end. The described embodiments are some, but not all, of the embodiments of the present application. The embodiments described below by referring to the drawings are exemplary and are intended to explain the present application and should not be construed as a limitation to the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application. The following will explain the embodiments of the present application in detail with reference to the drawings.

[0019] As Figure 1 shown, the method for compensating a signal source using multi-threading includes: Obtaining temperature data of the environments where different signal sources are located respectively through a multi-threading mechanism, and the temperature data is obtained through a temperature sensor; Calculating compensation amount information corresponding to each temperature data respectively through a temperature compensation algorithm, where one compensation amount information corresponds to the temperature data of the environment where a signal source is located; Generating corresponding compensation instructions for each compensation amount information respectively according to the compensation amount information; Adjusting the power output of the corresponding signal source according to the generated compensation instructions.

[0020] The multi-threading technology adopted by the method for compensating a signal source using multi-threading in the present application ensures that when multiple signal source compensation tasks are carried out simultaneously, the system can process in parallel and optimize resource allocation, improving the overall performance of the system. The real-time calculation and control of the compensation algorithm can significantly improve the stability of the signal source in different temperature environments, especially in a working environment with large temperature fluctuations.

[0021] In this embodiment, the calculating compensation amount information corresponding to each temperature data respectively through a temperature compensation algorithm includes: Performing the following calculations for each temperature data respectively: Obtaining a reference temperature T1; Obtaining temperature sensor voltage information V1 of the temperature sensor; Obtaining the device temperature according to the temperature sensor voltage information through the following formula: T2 = V1 / (65535 * 24.576 - 12.288); Obtaining temperature difference information according to the device temperature and the reference temperature through the following formula: T3 = T2 - T1; Obtaining a temperature compensation value according to the temperature difference information; Obtaining compensation amount information according to the temperature compensation value.

[0022] In this embodiment, obtaining the temperature compensation value according to the temperature difference information through the following formula includes: COE = C * T3; where COE is the temperature compensation value, C is the temperature coefficient, and T3 is the temperature difference information.

[0023] In this embodiment, the temperature coefficient (C) is a key parameter affecting the signal source compensation process, which represents the influence degree of temperature on the signal source performance. This coefficient is usually stored in a configuration file, which is measured through experiments in a temperature chamber environment. The specific method for obtaining the temperature coefficient is as follows: 1. The power at a test temperature of 0°C is Power1, and the power at a test temperature of 50°C is Power2. C = (Power1 - Power2) / 50.

[0024] In this embodiment, obtaining the compensation amount information according to the temperature compensation value includes: Obtaining the frequency offset; Obtaining the power offset; Obtaining the compensation amount information according to the frequency offset and the power offset.

[0025] In this embodiment, obtaining the frequency offset includes: Obtaining the frequency information F1 at the current time point (the signal source output frequency set by the user); Obtaining the previous frequency information F2 and the next frequency information F3 of the current frequency information; Obtaining the frequency offset according to the previous frequency information and the next frequency information of the current frequency information.

[0026] In this embodiment, obtaining the frequency offset according to the previous frequency information and the next frequency information of the current frequency information through the following formula includes: F4 = F3 - F2; where F4 is the frequency offset, F2 is the previous frequency information of the current frequency information, and F3 is the next frequency information of the current frequency information.

[0027] In this embodiment, obtaining the power offset includes: Obtaining the set value A1 of the power at the current time point (the signal source output power set by the user); Obtaining the previous power point A2 at the current time point; Obtaining the next power point A3 at the current time point; Obtaining the power offset according to the previous power point and the next power point at the current time point.

[0028] In this embodiment, obtaining the power offset according to the previous power point at the current time point and the next power point at the current time point through the following formula includes: A4 = A3 - A2; where A4 is the power offset, A2 is the previous power point at the current time point, and A3 is the next power point at the current time point.

[0029] In this embodiment, obtaining the compensation information according to the frequency offset and the power offset through the following formula includes: D2 = A5 / 2 * √2; where A5 = A1 + F4 * A4 + COE; where A5 is the actual power value calculated theoretically, D2 is the compensation information, A1 is the set value of the power at the current time point, A4 is the power offset, F4 is the frequency offset, and COE is the temperature compensation value.

[0030] In this embodiment, the signal source can be any type of signal generator, and the operating frequency band can cover the actual requirements of the communication system.

[0031] In this embodiment, by finely adjusting the voltage or current, a power supply adjustment module is adopted to ensure that the system can adapt to different load conditions and environmental changes, and achieve efficient and stable power output by precisely controlling the power output by adjusting the voltage or current.

[0032] In this embodiment, the temperature sensor can accurately measure the ambient temperature and transmit the real-time data to the data processing unit.

[0033] In this embodiment, the temperature compensation algorithm is responsible for calculating the compensation value according to the real-time temperature data and generating a control signal. The specific steps are as follows: 1. Real-time temperature data acquisition and processing: The data processing unit first needs to receive the real-time temperature data from the temperature sensor. These data can be from a variety of sensors, such as thermocouples, RTDs (resistance temperature detectors), etc., to ensure that the system can monitor the temperature change in real time. The data processing unit will filter and preprocess these data to remove noise and unstable factors to ensure the accuracy and reliability of the temperature information.

[0034] 2. Embedding of Temperature Compensation Algorithm: The temperature compensation algorithm is one of the core functions of the data processing unit. It establishes the relationship between temperature changes and the performance deviation of the system through a mathematical model. When the temperature changes, the performance of the system (such as signal accuracy, device response, etc.) may be affected. The compensation algorithm will calculate the compensation value suitable for the current temperature in real time. For example, the output of some sensors may drift with temperature changes. The temperature compensation algorithm will adjust the compensation value according to the relationship between temperature and sensor output to ensure the accuracy and stability of the measurement results.

[0035] 3. Dynamic Regulation and Real - time Feedback: Based on real - time temperature data and compensation calculation results, the data processing unit will continuously adjust the compensation value to ensure that the system performance is in an optimal state. For example, an increase in temperature may cause a change in the response speed of the device. The data processing unit will immediately update the control signal so that the device can still operate efficiently under the new temperature conditions. In addition, the data processing unit will also transmit real - time feedback information to the control system for further optimizing other related operations, such as power regulation, speed control, etc.

[0036] 4. Generation of Control Signals: The data processing unit not only needs to calculate the compensation value but also generate control signals based on these calculation results. These signals may be used to adjust different parts of the system, such as adjusting current, voltage, frequency, or other physical parameters. The control signals need to be output accurately to ensure they match the compensation results, thus avoiding system errors caused by temperature fluctuations. The data processing unit usually combines a feedback mechanism to ensure the accuracy and real - time nature of the control signals.

[0037] 5. Data Storage and Logging: To analyze and optimize the long - term performance of the system, the data processing unit usually also records historical information of temperature data, compensation values, and control signals. These data can be used for subsequent fault troubleshooting, performance evaluation, and algorithm optimization, and can also be used by other modules for data analysis, trend prediction, or alarm processing.

[0038] 6. Fault Detection and Exception Handling: The data processing unit also has certain capabilities for fault detection and exception handling. If the temperature sensor fails or there is a deviation in the compensation algorithm calculation, the data processing unit will automatically detect and take appropriate measures, such as switching to a backup sensor, resetting the compensation value, or sending an alarm signal, to ensure the normal operation of the system is not affected.

[0039] 7. Collaboration with Other Modules: The data processing unit not only operates independently but also needs to collaborate with other modules, such as the control unit, display module, and communication module, etc. It will interact with the control unit according to the compensation calculation results, transmit the compensation signal to the actuator, and adjust the actual operation output.

[0040] In this embodiment, the multi-thread control unit is responsible for parallel processing and scheduling of the compensation tasks for each signal source to ensure the efficient operation of the system. The specific control method is as follows: 1. Task Allocation and Scheduling: The multi-thread control unit is responsible for allocating different signal source compensation tasks to multiple processing threads. It ensures that each task is correctly assigned to the most suitable processing unit and performs dynamic scheduling based on the task's priority, dependencies, and resource availability. This can maximize the utilization efficiency of system resources, avoid resource conflicts, and ensure that each task can be completed within the scheduled time.

[0041] 2. Parallel Processing and Load Balancing: Through multi-thread parallel processing, the control unit can execute multiple tasks simultaneously, significantly improving the system's processing speed. For example, during the compensation process of signal sources, the compensation tasks of multiple signal sources can run simultaneously in multiple threads without waiting for the previous task to complete. The control unit also monitors the load conditions of each thread and achieves load balancing by dynamically adjusting the task allocation to prevent a certain thread from being overloaded, resulting in delays or low efficiency.

[0042] 3. Resource Management and Optimization: To ensure the efficient operation of the system, the multi-thread control unit needs to effectively manage the allocation of processor, memory, and other hardware resources. It dynamically adjusts the resource allocation strategy through resource monitoring algorithms to avoid excessive resource competition or idle waste. The control unit can preferentially allocate key resources according to the requirements of different signal source compensation tasks to ensure the stable operation of the system under high load.

[0043] 4. Task Synchronization and Communication: In a multi-thread environment, different threads may need to share data or results. At this time, the multi-thread control unit manages task synchronization and communication to ensure data consistency and avoid problems such as race conditions and deadlocks. For example, some tasks may depend on the results completed by other threads, and the control unit will coordinate the execution order of these threads to ensure the smooth completion of tasks.

[0044] 5. Fault Handling and Fault Tolerance: When processing parallel tasks, the multi-thread control unit also needs to have a certain degree of fault tolerance. If a certain thread fails or has an exception, the control unit can detect it in time and take corresponding measures, such as rescheduling tasks or restarting the thread, to ensure the robustness and stability of the system.

[0045] 6. Dynamic Adjustment and Adaptive Ability: According to the current load condition of the system or changes in the external environment, the multi-thread control unit can dynamically adjust the task scheduling strategy and the working mode of the threads. For example, when the system load is low, the control unit may choose to reduce the number of threads to save resources; while when the load is high, it will increase the number of threads to ensure that tasks are completed on time.

[0046] By adopting multi-thread technology and advanced temperature compensation algorithms, this application proposes an innovative signal source compensation device and method, which solves the problems of low accuracy and response delay existing in traditional compensation methods. While improving the stability of the signal source, this technology also greatly enhances the reliability of the communication system. It is applicable to various communication devices with high requirements for power accuracy and has broad application prospects.

[0047] This application also provides a device for compensating a signal source using multi-threads. The device for compensating a signal source using multi-threads includes a temperature data acquisition module, a compensation amount information acquisition module, an adjustment module, and a compensation instruction generation module. Among them, The temperature data acquisition module is used to respectively acquire the temperature data of the environments where different signal sources are located through a multi-thread mechanism, and the temperature data is acquired through temperature sensors. The compensation amount information acquisition module is used to respectively calculate the compensation amount information corresponding to each temperature data through a temperature compensation algorithm. Among them, one compensation amount information corresponds to the temperature data of the environment where a signal source is located. The compensation instruction generation module is used to respectively generate corresponding compensation instructions for each compensation amount information according to the compensation amount information. The adjustment module is used to adjust the power output of the corresponding signal source according to the generated compensation instructions.

[0048] Although the present invention has been described in detail above with general descriptions and specific implementation examples, based on the present invention, some modifications or improvements can be made, which are obvious to those skilled in the art. Therefore, these modifications or improvements made without departing from the spirit of the present invention all fall within the scope of protection required by the present invention.

Claims

1. A method for compensating a signal source using multithreading, characterized in that: The method for compensating a signal source by using multiple threads comprises: The temperature data of the environments where different signal sources are located are respectively obtained through a multi-thread mechanism, and the temperature data is obtained through a temperature sensor; The compensation information corresponding to each temperature data is calculated by a temperature compensation algorithm, wherein one compensation information corresponds to the temperature data of the environment where the signal source is located; Generate corresponding compensation instructions for each compensation amount information according to the compensation amount information; The power output of the corresponding signal source is adjusted according to the generated compensation instruction.

2. The method for compensating a signal source using multiple threads as claimed in claim 1, characterized in that: The method of calculating the compensation amount information corresponding to each temperature data by using the temperature compensation algorithm includes: The following calculations are performed for each temperature data: Get the base temperature; Get temperature sensor voltage information of the temperature sensor; Obtain device temperature based on temperature sensor voltage information; Obtain temperature difference information based on device temperature and reference temperature; Obtaining a temperature compensation value according to the temperature difference information; Obtain compensation amount information based on the temperature compensation value.

3. The method for compensating a signal source using multiple threads as claimed in claim 2, characterized in that: The temperature compensation value is obtained according to the temperature difference information through the following formula: COE=C*T3; where COE is the temperature compensation value, C is the temperature coefficient, and T3 is the temperature difference information.

4. The method for compensating a signal source using multiple threads as claimed in claim 3, characterized in that: The obtaining of compensation amount information according to the temperature compensation value comprises: Get frequency offset; Get power offset; Compensation amount information is obtained according to the frequency offset and the power offset.

5. The method for compensating a signal source using multiple threads as claimed in claim 4, characterized in that: The obtaining of the frequency offset comprises: Get the frequency information of the current time point; get the previous frequency information of the current frequency information and the next frequency information of the current frequency information; The frequency offset is obtained according to the previous frequency information of the current frequency information and the next frequency information of the current frequency information.

6. The method for compensating a signal source using multiple threads as claimed in claim 5, characterized in that: The frequency offset is obtained by using the following formula according to the previous frequency information of the current frequency information and the next frequency information of the current frequency information: F4=F3-F2; among them, F4 is the frequency offset, F2 is the previous frequency information of the current frequency information, and F3 is the next frequency information of the current frequency information.

7. The method for compensating a signal source using multiple threads as claimed in claim 6, characterized in that: The obtaining of the power offset comprises: Get the power setting value at the current time point; Get the previous power point at the current time point; Get the next power point at the current time point; The power offset is obtained according to the previous power point at the current time point and the next power point at the current time point.

8. The method for compensating a signal source using multiple threads as claimed in claim 7, characterized in that: The power offset is obtained by the following formula according to the previous power point at the current time point and the next power point at the current time point: A4=A3-A2; among them, A4 is the power offset, A2 is the previous power point at the current time point, and A3 is the next power point at the current time point.

9. The method for compensating a signal source using multiple threads as claimed in claim 8, characterized in that: The compensation information is obtained according to the frequency offset and power offset by the following formula: D2=A5 / 2*√2; where A5=A1+F4*A4+COE; wherein A5 is the previous power point at the current time point, D2 is the compensation amount information, A1 is the power setting value at the current time point, A4 is the power offset, F4 is the frequency offset, and COE is the temperature compensation value.

10. A device for compensating a signal source using multithreading, characterized in that: The device for compensating a signal source by using multiple threads comprises: A temperature data acquisition module, wherein the temperature data acquisition module is used to respectively acquire temperature data of environments where different signal sources are located through a multi-threaded mechanism, wherein the temperature data is acquired through a temperature sensor; A compensation information acquisition module, the compensation information acquisition module is used to calculate the compensation information corresponding to each temperature data by a temperature compensation algorithm, wherein one compensation information corresponds to the temperature data of the environment where the signal source is located; A compensation instruction generation module, the compensation instruction generation module is used to generate corresponding compensation instructions for each compensation amount information according to the compensation amount information; An adjustment module, wherein the adjustment module is used to adjust the power output of the corresponding signal source according to the generated compensation instruction.

Citation Information

Patent Citations

  • Power detection device and radar system

    CN109188072A

  • Scrambling of environmental influences on transmit parameters

    CN111224682A

  • Crystal oscillator temperature compensation method and device, electronic equipment and storage medium

    CN112422084A

  • Compensation processing method and device for improving influence of environment temperature on radio frequency output aiming at signal source, processor and storage medium

    CN114553330A

  • Frequency temperature offset compensation

    US20140247095A1