A method and apparatus for compensating for a signal source using multithreading

Through multi-threading technology and temperature compensation algorithm, real-time and accurate compensation of the signal source when the temperature changes is achieved, solving the problems of insufficient response speed and accuracy in the existing technology and improving the stability of the signal source and system performance.

CN120223207BActive Publication Date: 2025-10-17CHENGDU ZHONGKE FOUR POINT ZERO TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing signal source compensation technology is insufficient in response speed and accuracy, and cannot meet the signal stability requirements of high-precision communication systems, especially when the temperature changes drastically and the power cannot be maintained stable.

Method used

A multi-threaded mechanism is used to obtain temperature data, the compensation amount information is calculated through the temperature compensation algorithm, and compensation instructions are generated to adjust the power output of the signal source. Multi-threaded technology is used to achieve parallel processing and resource optimization.

Benefits of technology

The stability of the signal source and the overall performance of the system in different temperature environments are improved, especially in environments with large temperature fluctuations, the stability and response speed of the signal source are significantly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120223207B_ABST
    Figure CN120223207B_ABST
Patent Text Reader

Abstract

The application discloses a method and device for compensating signal sources by using multithreading. The method for compensating signal sources by using multithreading comprises the following steps: acquiring temperature data of environments where different signal sources are located respectively by using a multithreading mechanism; calculating compensation quantity information corresponding to each temperature data respectively by using a temperature compensation algorithm, wherein one compensation quantity information corresponds to the temperature data of the environment where one signal source is located; generating corresponding compensation instructions for each compensation quantity information according to the compensation quantity information; and adjusting the power output of the corresponding signal source according to the generated compensation instructions. The application adopts the multithreading technology, ensures that the system can process in parallel and optimize resource allocation when multiple signal source compensation tasks are performed simultaneously, and improves 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 the working environment with large temperature fluctuations.
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, in particular to a method for compensating signal sources by using multi-thread and a device for compensating signal sources by using multi-thread. BACKGROUND

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

[0003] Generally, a signal source needs to maintain a stable power output when working to ensure the quality of the transmitted signal. However, changes in temperature can 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 compensate through a simple control loop. Although these methods can solve the problem to some extent, they often cannot meet the requirements of high-precision communication systems for signal stability due to slow response speed and limited processing precision.

[0004] Current signal source compensation techniques mainly rely on temperature sensor-based measurement and feedback control, but their shortcomings in terms of compensation speed, compensation accuracy, and adaptation to different environmental changes still constrain the stability of the signal source. Therefore, there is an urgent need for a new compensation method that can accurately respond to environmental changes in real time, especially when the temperature changes dramatically, to maintain the power stability of the signal source. SUMMARY

[0005] The purpose of the present application is to provide a method for compensating signal sources by using multi-thread to at least solve one of the above technical problems.

[0006] In one aspect of the present application, a method for compensating signal sources by using multi-thread is provided, which comprises:

[0007] Obtaining temperature data of the environment where different signal sources are located through a multi-thread mechanism, wherein the temperature data is obtained through a temperature sensor;

[0008] Calculating compensation amount information corresponding to each temperature data through a temperature compensation algorithm, wherein one compensation amount information corresponds to the temperature data of the environment where one signal source is located;

[0009] Generating corresponding compensation instructions for each compensation amount information according to the compensation amount information;

[0010] Adjust the power output of the corresponding signal source according to the generated compensation instruction.

[0011] Optionally, the calculating, by the temperature compensation algorithm, of the compensation amount information corresponding to each temperature data comprises:

[0012] The following calculation is performed for each temperature data:

[0013] Obtaining a reference temperature;

[0014] Obtaining temperature sensor voltage information of the temperature sensor;

[0015] Obtaining the device temperature according to the temperature sensor voltage information;

[0016] Obtaining temperature difference information according to the device temperature and the reference temperature;

[0017] Obtaining a temperature compensation value according to the temperature difference information;

[0018] Obtaining the compensation amount information according to the temperature compensation value.

[0019] Optionally, the obtaining of the temperature compensation value according to the temperature difference information comprises:

[0020] COE = C*T3; wherein,

[0021] COE is the temperature compensation value, C is a temperature coefficient, and T3 is the temperature difference information.

[0022] Optionally, the obtaining of the compensation amount information according to the temperature compensation value comprises:

[0023] Obtaining a frequency offset;

[0024] Obtaining a power offset;

[0025] Obtaining the compensation amount information according to the frequency offset and the power offset.

[0026] Optionally, the obtaining of the frequency offset comprises:

[0027] Obtaining frequency information of a current time point;

[0028] Obtaining previous frequency information of the current frequency information and next frequency information of the current frequency information;

[0029] Obtaining the frequency offset according to the previous frequency information of the current frequency information and the next frequency information of the current frequency information.

[0030] Optionally, the obtaining of the frequency offset according to the previous frequency information of the current frequency information and the next frequency information of the current frequency information comprises:

[0031] F4=F3-F2; wherein,

[0032] F4 is a frequency offset, F2 is previous frequency information of current frequency information, and F3 is next frequency information of current frequency information.

[0033] Optionally, the acquiring the power offset comprises:

[0034] acquiring a set value of power at a current time point;

[0035] acquiring a previous power point at the current time point;

[0036] acquiring a next power point at the current time point;

[0037] acquiring a power offset according to the previous power point at the current time point and the next power point at the current time point.

[0038] Optionally, the acquiring the power offset according to the previous power point at the current time point and the next power point at the current time point comprises:

[0039] A4=A3-A2; wherein,

[0040] A4 is a power offset, A2 is a previous power point at a current time point, and A3 is a next power point at the current time point.

[0041] Optionally, the acquiring the compensation information according to the frequency offset and the power offset comprises:

[0042] D2=A5 / 2*sqrt(2); wherein,

[0043] A5=A1+F4*A4+COE; wherein,

[0044] A5 is a theoretically calculated actual power value, D2 is compensation information, A1 is a set value of power at a current time point, A4 is a power offset, F4 is a frequency offset, and COE is a temperature compensation value.

[0045] The application further provides a device for compensating signal sources by using multiple threads, which comprises:

[0046] a temperature data acquisition module, configured to acquire temperature data of environments where different signal sources are located by using a multiple thread mechanism, wherein the temperature data is acquired by using a temperature sensor;

[0047] a compensation information acquisition module, configured to calculate compensation information corresponding to each temperature data by using a temperature compensation algorithm, wherein one compensation information corresponds to temperature data of an environment where one signal source is located.

[0048] a compensation instruction generation module, configured to generate a corresponding compensation instruction for each compensation quantity information according to the compensation quantity information;

[0049] an adjustment module, configured to adjust the power output of the corresponding signal source according to the generated compensation instruction.

[0050] Advantages:

[0051] The method for compensating signal sources by using multi-threading in the application adopts the multi-threading technology, ensures that the system can handle in parallel and optimize resource allocation when multiple signal source compensation tasks are performed at the same time, and improves 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. BRIEF DESCRIPTION OF DRAWINGS

[0052] Figure 1 is a flowchart of the method for compensating signal sources by using multi-threading in an embodiment of the application. DETAILED DESCRIPTION

[0053] To make the purposes, technical solutions and advantages of the application clearer, the technical solutions in the embodiments of the application will be described in more detail below with reference to the drawings. In the drawings, the same or similar reference signs represent the same or similar elements or elements with the same or similar functions throughout. The described embodiments are some of the embodiments of the application, not all. The embodiments described below with reference to the drawings are exemplary and are intended to explain the application, and cannot be understood as limiting the application. Based on the embodiments in the application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the application. The embodiments of the application will be described in detail below with reference to the drawings.

[0054] As shown in the method for compensating signal sources by using multi-threading, the method comprises: Figure 1

[0055] Obtain temperature data of the environment where each signal source is located through a multi-thread mechanism, wherein the temperature data is obtained through a temperature sensor;

[0056] Calculate the compensation quantity information corresponding to each temperature data through a temperature compensation algorithm, wherein one compensation quantity information corresponds to the temperature data of the environment where one signal source is located;

[0057] Generate a corresponding compensation instruction for each compensation quantity information according to the compensation quantity information;

[0058] ​Adjust the power output of the corresponding signal source according to the generated compensation instruction.

[0059] The multi-threading technology used in the signal source compensation method of the present application ensures that the system can handle and optimize resource allocation in parallel when multiple signal source compensation tasks are performed simultaneously, thereby improving the overall performance of the system. Real-time calculation and control of the compensation algorithm can significantly improve the stability of the signal source in different temperature environments, especially in working environments with large temperature fluctuations.

[0060] In the present embodiment, the compensation amount information corresponding to each temperature data is calculated by a temperature compensation algorithm, including:

[0061] Each temperature data is calculated as follows:

[0062] Obtain the reference temperature T1;

[0063] Obtain the temperature sensor voltage information V1 of the temperature sensor;

[0064] Obtain the device temperature according to the temperature sensor voltage information, by the following formula: T2 = V1 / (65535*24.576-12.288);

[0065] Obtain the temperature difference information according to the device temperature and the reference temperature, by the following formula: T3 = T2-T1;

[0066] Obtain the temperature compensation value according to the temperature difference information;

[0067] Obtain the compensation amount information according to the temperature compensation value.

[0068] In the present embodiment, the temperature compensation value is obtained according to the temperature difference information by the following formula:

[0069] COE = C*T3; wherein,

[0070] COE is the temperature compensation value, C is the temperature coefficient, and T3 is the temperature difference information.

[0071] In the present embodiment, the temperature coefficient (C) is a key parameter that affects the signal source compensation process, which represents the degree of influence of temperature on the performance of the signal source. This coefficient is usually stored in a configuration file, which is measured by experiment in a temperature chamber environment. The specific method for obtaining the temperature coefficient is: 1. Test the power at 0℃ as Power1, and the power at 50℃ as Power2, C = (Power1-Power2) / 50.

[0072] In the present embodiment, the compensation amount information is obtained according to the temperature compensation value, including:

[0073] obtaining a frequency offset;

[0074] obtaining a power offset;

[0075] obtaining compensation information according to the frequency offset and the power offset.

[0076] In the embodiment, the obtaining of the frequency offset comprises:

[0077] obtaining frequency information F1 (signal source output frequency set by the user) of a current time point;

[0078] obtaining previous frequency information F2 of the current frequency information and next frequency information F3 of the current frequency information;

[0079] obtaining the frequency offset according to the previous frequency information of the current frequency information and the next frequency information of the current frequency information.

[0080] In the embodiment, the obtaining of the frequency offset according to the previous frequency information of the current frequency information and the next frequency information of the current frequency information comprises:

[0081] F4=F3-F2; wherein,

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

[0083] In the embodiment, the obtaining of the power offset comprises:

[0084] obtaining a set value A1 (signal source output power set by the user) of power of a current time point;

[0085] obtaining previous power point A2 of the current time point;

[0086] obtaining next power point A3 of the current time point;

[0087] obtaining the power offset according to the previous power point of the current time point and the next power point of the current time point.

[0088] In the embodiment, the obtaining of the power offset according to the previous power point of the current time point and the next power point of the current time point comprises:

[0089] A4=A3-A2; wherein,

[0090] A4 is the power offset, A2 is the previous power point of the current time point, and A3 is the next power point of the current time point.

[0091] In this embodiment, the compensation information is obtained according to the frequency offset and the power offset by the following formula:

[0092] D2 = A5 / 2 * √2; where,

[0093] A5 = A1 + F4 * A4 + COE; where,

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

[0095] In this embodiment, the signal source can be any type of signal generator, and the working frequency band can cover the actual needs of the communication system.

[0096] In this embodiment, by fine adjustment of voltage or current, it ensures that the system can adapt to different load conditions and environmental changes, and realizes efficient and stable power output. The power supply adjustment module is used to realize accurate control of power output by adjusting voltage or current.

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

[0098] In this embodiment, the temperature compensation algorithm is responsible for calculating the compensation value according to the real-time temperature data and generating the control signal, and the specific steps are as follows:

[0099] 1. Real-time temperature data acquisition and processing: The data processing unit first needs to receive real-time temperature data from the temperature sensor. These data can come from various sensors such as thermocouples, RTD (Resistance Temperature Detector), etc., to ensure that the system can monitor temperature changes in real time. The data processing unit will filter and preprocess these data to remove noise and unstable factors, ensuring the accuracy and reliability of temperature information.

[0100] 2. Temperature compensation algorithm embedding: The temperature compensation algorithm is one of the core functions of the data processing unit. It establishes a mathematical model between temperature changes and performance deviations of the system. When the temperature changes, the performance of the system (such as the accuracy of the signal, the response of the device, etc.) may be affected. The compensation algorithm will calculate the compensation value that adapts to the current temperature in real time. For example, the output of some sensors may drift with temperature changes, and 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.

[0101] 3. Dynamic Adjustment and Real-Time Feedback: Based on real-time temperature data and compensation calculation results, the data processing unit continuously adjusts the compensation value to ensure the system's performance is at its best. For example, if the temperature rises, it may cause the device's response speed to change. The data processing unit will update the control signal in real time, so that the device can still operate efficiently under new temperature conditions. In addition, the data processing unit also transmits real-time feedback information to the control system for further optimization of other related operations, such as power adjustment, speed control, etc.

[0102] 4. Generation of Control Signals: The data processing unit not only calculates compensation values, but also generates 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. Control signals need to be accurately output to ensure that they match the compensation results, thereby avoiding system errors caused by temperature fluctuations. The data processing unit usually combines feedback mechanisms to ensure the accuracy and real-time nature of the control signals.

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

[0104] 6. Fault Detection and Exception Handling: The data processing unit also has certain fault detection and exception handling capabilities. If the temperature sensor fails or the compensation algorithm calculation deviates, 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.

[0105] 7. Collaboration with Other Modules: The data processing unit not only operates independently, but also needs to cooperate with other modules, such as the control unit, display module and communication module. It will interact with the control unit based on compensation calculation results and deliver compensation signals to actuators to adjust actual operation output.

[0106] In this embodiment, the multi-threaded control unit is responsible for parallel processing and scheduling of compensation tasks for each signal source, ensuring efficient operation of the system. The specific control method is as follows:

[0107] 1. Task Allocation and Scheduling: The multi-threaded 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 dynamically scheduled based on task priority, dependency and resource availability. This maximizes the utilization efficiency of system resources, avoids resource conflicts and ensures that each task can be completed within the scheduled time.

[0108] 2. Parallel processing and load balancing: Through multi-thread parallel processing, the control unit can execute multiple tasks simultaneously, significantly improving the processing speed of the system. For example, during the compensation process of signal sources, the compensation tasks of multiple signal sources can be run simultaneously in multiple threads without waiting for the previous task to complete. The control unit also monitors the load of each thread and balances the load by dynamically adjusting the allocation of tasks to prevent overloading of a thread, causing delays or low efficiency.

[0109] 3. Resource management and optimization: In order to ensure 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 allocation strategy of resources through resource monitoring algorithms to avoid excessive competition or waste of resources. The control unit can allocate critical resources based on the needs of different signal source compensation tasks to ensure smooth operation of the system under high load.

[0110] 4. Task synchronization and communication: In a multi-threaded environment, different threads may need to share data or results, and the multi-thread control unit manages task synchronization and communication to ensure data consistency and avoid race conditions and deadlocks. For example, some tasks may depend on the results of other threads, and the control unit coordinates the execution order of these threads to ensure the smooth completion of tasks.

[0111] 5. Fault handling and fault tolerance: The multi-thread control unit also needs to have certain fault tolerance when processing parallel tasks. If a thread fails or encounters an exception, the control unit can detect it in time and take appropriate measures such as rescheduling tasks or restarting the thread to ensure the robustness and stability of the system.

[0112] 6. Dynamic adjustment and adaptive ability: According to the current load 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 thread. For example, when the system load is low, the control unit may choose to reduce the number of threads to save resources; when the load is high, it will increase the number of threads to ensure that tasks are completed on time.

[0113] This application uses multi-thread technology and advanced temperature compensation algorithms to propose an innovative signal source compensation device and method, solving the problems of low precision and response delay in traditional compensation methods. This technology not only improves the stability of the signal source, but also greatly improves the reliability of the communication system, and is suitable for various communication equipment with high power accuracy requirements, with wide application prospects.

[0114] The application further provides a device for compensating signal sources by using multi-thread, which comprises a temperature data acquisition module, a compensation quantity information acquisition module, an adjustment module and a compensation instruction generation module.

[0115] The temperature data acquisition module is used for acquiring temperature data of environments where different signal sources are located respectively by using a multi-thread mechanism, and the temperature data is acquired by using a temperature sensor.

[0116] The compensation quantity information acquisition module is used for calculating compensation quantity information corresponding to each temperature data respectively by using a temperature compensation algorithm, wherein one compensation quantity information corresponds to temperature data of an environment where one signal source is located.

[0117] The compensation instruction generation module is used for generating corresponding compensation instructions for each compensation quantity information respectively according to the compensation quantity information.

[0118] The adjustment module is used for adjusting power output of corresponding signal sources according to the generated compensation instructions.

[0119] Although the present application has been described in detail by using general description and specific embodiments, some modifications or improvements can be made on the basis of the present application, which is obvious to those skilled in the art. Therefore, these modifications or improvements made on the basis of not deviating from the spirit of the present application are within the scope of the present application.

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 includes: Acquire temperature data of the environments where different signal sources are located through a multi-threaded mechanism, wherein the temperature data is acquired through a temperature sensor; Calculate the compensation information corresponding to each temperature data by using 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; adjusting the power output of the corresponding signal source according to the generated compensation instruction; 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 the temperature sensor voltage information of the temperature sensor; Get device temperature based on temperature sensor voltage information; Obtain temperature difference information based on device temperature and reference temperature; Obtaining a temperature compensation value based on temperature difference information; Obtain compensation amount information according to the temperature compensation value; The temperature compensation value is obtained according to the temperature difference information using 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; The obtaining of compensation amount information according to the temperature compensation value includes: Get frequency offset; Get power offset; Compensation amount information is obtained according to the frequency offset and the power offset.

2. The method for compensating a signal source using multiple threads according to claim 1, wherein: The acquiring 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.

3. The method for compensating a signal source using multiple threads according to claim 2, wherein: The frequency offset is obtained by the following formula based on 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 frequency information before the current frequency information, and F3 is the frequency information after the current frequency information.

4. The method for compensating a signal source using multiple threads according to claim 3, wherein: 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 based on the previous power point at the current time point and the next power point at the current time point.

5. The method for compensating a signal source using multiple threads according to claim 4, wherein: The power offset is obtained by the following formula based on 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.

6. The method for compensating a signal source using multiple threads according to claim 5, wherein: The compensation information is obtained based on the frequency offset and power offset using the following formula: ;in, A5=A1+F4*A4+COE; where A5 is the previous power point at the current time, D2 is the compensation information, A1 is the power setting value at the current time, A4 is the power offset, F4 is the frequency offset, and COE is the temperature compensation value.

7. A device for compensating a signal source using multithreading, characterized in that: The device for compensating a signal source by using multiple threads includes: A temperature data acquisition module, which 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 using 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, configured to adjust the power output of a corresponding signal source according to the generated compensation instruction; 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 the temperature sensor voltage information of the temperature sensor; Get device temperature based on temperature sensor voltage information; Obtain temperature difference information based on device temperature and reference temperature; Obtaining a temperature compensation value based on temperature difference information; Obtain compensation amount information according to the temperature compensation value; The temperature compensation value is obtained according to the temperature difference information using 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; The obtaining of compensation amount information according to the temperature compensation value includes: Get frequency offset; Get power offset; Compensation amount information is obtained according to the frequency offset and the power offset.

Citation Information

Patent Citations

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

    CN114553330A