Control signal adjustment method for external device to be controlled

By obtaining the configuration files of external devices to generate test signals and building a control model, the software adaptation problem caused by hardware equipment differences is solved, and the cost reduction and efficiency improvement of software development for each device is achieved.

CN120353218BActive Publication Date: 2025-08-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510865043.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-25
Publication Date
2025-08-29
Estimated Expiration
2045-06-25

AI Technical Summary

Technical Problem

The prior art requires the development of dedicated driver or configuration parameters for each hardware device, resulting in low development efficiency and high maintenance costs, making it difficult to cope with dynamic changes in hardware devices.

Method used

By detecting the external device to be controlled, obtaining its corresponding configuration file, generating a test signal and sending it to the device, receiving and constructing a control model, generating a first control signal to adjust the response signal of the device, so as to achieve no need to develop software for each hardware device.

Benefits of technology

It reduces the cost of software development, improves the adaptation efficiency of hardware equipment, and can cope with dynamic changes in equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120353218B_ABST
    Figure CN120353218B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a control signal adjustment method for an external device to be controlled, which relates to the field of embedded system technology. When the external device to be controlled is detected, the method obtains a configuration file corresponding to the external device to be controlled, and then generates a test signal based on the configuration file, and sends the test signal to the external device to be controlled. A first response signal sent by the external device to be controlled in response to the test signal is received, a control model is constructed based on the first response signal and the test signal, and a first control signal is generated based on the control model, and the first control signal is sent to the external device to be controlled. The use of this technical solution can eliminate the need to develop software for each hardware device, thereby reducing costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of embedded systems, and in particular to a method for adjusting a control signal of an external device to be controlled. Background Art

[0002] Currently, hardware designs vary between different hardware devices, even for devices with the same function. For example, different hardware devices can be cooling fans, motors, LED lights, and so on. Hardware devices with the same function can also be cooling fans from different manufacturers. These design differences between manufacturers can lead to differences in the underlying control logic between different hardware devices, even for devices with the same function. For example, these differences can arise from differences in signal logic or drive methods.

[0003] The current solution is to modify the software. However, software modification usually requires writing dedicated drivers or configuration parameters for each hardware device, resulting in low development efficiency, high maintenance costs, and difficulty in coping with dynamic changes in hardware devices.

[0004] Therefore, there is an urgent need for a control signal adjustment method for an external device to be controlled, which can eliminate the need to develop software for each hardware device, thereby reducing costs. Summary of the Invention

[0005] The present application provides a control signal adjustment method for an external device to be controlled, which eliminates the need to develop software for each hardware device, thereby reducing costs.

[0006] The present application provides a method for adjusting a control signal of an external device to be controlled, the method comprising:

[0007] If an external device to be controlled is detected, obtaining a configuration file corresponding to the external device to be controlled;

[0008] generating a test signal according to the configuration file, and sending the test signal to the external device to be controlled;

[0009] receiving a first response signal sent by the external device to be controlled in response to the test signal, and constructing a control model according to the first response signal and the test signal;

[0010] A first control signal is generated based on the control model, and the first control signal is sent to the external device to be controlled; the first control signal is used to instruct the external device to be controlled to adjust the first response signal of the test signal.

[0011] The present application also provides a control signal adjustment device for an external device to be controlled, the device comprising:

[0012] A first acquisition module is configured to acquire a configuration file corresponding to the external device to be controlled if an external device to be controlled is detected;

[0013] A first generating module, configured to generate a test signal according to the configuration file, and send the test signal to the external device to be controlled;

[0014] a receiving module, configured to receive a first response signal sent by the external device to be controlled in response to the test signal, and construct a control model according to the first response signal and the test signal;

[0015] The second generating module is used to generate a first control signal based on the control model and send the first control signal to the external device to be controlled; the first control signal is used to instruct the external device to be controlled to adjust the first response signal of the test signal.

[0016] The present application also provides a control device, comprising: a memory for storing a computer program; and a processor for implementing any of the steps of the above-mentioned control signal adjustment method for an external device to be controlled when executing the computer program.

[0017] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the above-mentioned control signal adjustment methods for an external device to be controlled are implemented.

[0018] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned control signal adjustment methods for an external device to be controlled.

[0019] Through this application, when an external device to be controlled is detected, a configuration file corresponding to the external device to be controlled is obtained, and then a test signal is generated based on the configuration file, and the test signal is sent to the external device to be controlled. A first response signal sent by the external device to be controlled in response to the test signal is received, a control model is constructed based on the first response signal and the test signal, and a first control signal is generated based on the control model, and the first control signal is sent to the external device to be controlled. Using this technical solution, there is no need to develop software for each hardware device, thereby reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0021] Figure 1 A schematic diagram of a hardware architecture provided in an embodiment of the present application;

[0022] Figure 2 1 is a flow chart of a method for adjusting a control signal of an external device to be controlled, provided in an embodiment of the present application;

[0023] Figure 3 1 is a flow chart of a method for adjusting a control signal of an external device to be controlled, provided in an embodiment of the present application;

[0024] Figure 4 1 is a structural diagram of a control signal adjustment device for an external device to be controlled, provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0026] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.

[0027] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0028] In conjunction with a specific hardware architecture on which the execution of a control signal adjustment method for an external device to be controlled depends, the specific hardware architecture is described here. Figure 1 A schematic diagram of a hardware architecture is shown. Figure 1 It includes the external device to be controlled and the control device.

[0029] Figure 2 This is a flow chart of a control signal adjustment method for an external device to be controlled provided by an embodiment of the present application. The method can be executed by a control device. The control device can be exemplarily understood as a device such as a mobile phone, tablet computer, laptop computer, desktop computer, smart TV, etc. Figure 2 As shown, the method provided in this embodiment includes the following steps:

[0030] S201: If an external device to be controlled is detected, a configuration file corresponding to the external device to be controlled is obtained.

[0031] In one example, the external device to be controlled can be a cooling fan, a motor, an LED light, or the like. The control device and the external device to be controlled can communicate via a preset protocol. Different external devices to be controlled correspond to different configuration files. The configuration file includes at least one of the following parameters: the device type, interface type, and test signal range of the external device to be controlled.

[0032] In one example, the device type of the external device to be controlled can be a cooling fan, a motor, or an LED light. The interface type can be pulse width modulation (PWM), inter-integrated circuit communication (I2C), and general purpose input / output (GPIO). The test signal range can be a PWM signal range, specifically, 0-100%; it can also be a voltage value range, specifically, 0-12V. For example, if the device type of the external device to be controlled is a cooling fan, the configuration file is as follows:

[0033] Device type of the external device to be controlled: device_type=fan;

[0034] Interface type: frequency_range=100Hz-10kHz; duty_cycle_resolution=0.1%, set the duty cycle adjustment accuracy to ensure fine control;

[0035] Test signal range: pwm_range = 0-100%; this parameter is used to define the PWM signal duty cycle range to ensure that the cooling fan speed is adjusted within the tolerable range of the external device to be controlled;

[0036] voltage_range=0-24V; This parameter is used to limit the power supply voltage of the cooling fan to prevent overvoltage from damaging the motor winding or control circuit.

[0037] For example, if the device type of the external device to be controlled is an LED light, the configuration file is as follows:

[0038] Device type of the external device to be controlled: device_type=led;

[0039] Interface type: address_range = 0x00-0xFF; this parameter is used for the I2C slave device address range to avoid address conflicts;

[0040] data_rate=100kbps-400kbps; This parameter is used to define the data transmission rate to match the communication speed of different I2C devices;

[0041] Test signal range:

[0042] If it is voltage controlled: voltage_range=0-12V; this parameter is used to prevent the LED lamp chip from being burned due to excessive voltage;

[0043] If it is a current control type: current_range=0-50mA; this parameter is used to prevent excessive current from causing accelerated LED light decay or damage.

[0044] S202: Generate a test signal according to the configuration file, and send the test signal to the external device to be controlled.

[0045] In one example, after obtaining the configuration file, a test signal is generated according to the parameters in the configuration file, and then the test signal is sent to the external device to be controlled. For example, the test signal may be a voltage of 2V.

[0046] S203: Receive a first response signal sent by the external device to be controlled in response to the test signal, and construct a control model according to the first response signal and the test signal.

[0047] In one example, after receiving a test signal, the external device to be controlled responds to the test signal, thereby generating a first response signal. The external device to be controlled then sends the first response signal to the control device. The control device then constructs a control model based on the first response signal and the test signal. There is a one-to-one correspondence between the control model and the external device to be controlled. For example, if the external device to be controlled is a cooling fan, the control model may be control model A.

[0048] S204 , generating a first control signal based on the control model, and sending the first control signal to the external device to be controlled; the first control signal is used to instruct the external device to be controlled to adjust a first response signal of the test signal.

[0049] In one example, the signal type of the first control signal is consistent with the signal type of the test signal. For example, the test signal may be a PWM signal for a cooling fan, and the first response signal may be the speed of the cooling fan. In this case, the first control signal is also a PWM signal for the cooling fan, but the first control signal is different from the test signal. The first control signal is generated using a control model, and then sent to the external device to be controlled. The first control signal instructs the external device to adjust the first response signal so that the adjusted response signal meets the requirements.

[0050] An embodiment of the present application provides a control signal adjustment method for an external device to be controlled. Upon detecting an external device to be controlled, a configuration file corresponding to the external device to be controlled is obtained. A test signal is then generated based on the configuration file and sent to the external device to be controlled. A first response signal sent by the external device to be controlled in response to the test signal is received. A control model is constructed based on the first response signal and the test signal. A first control signal is generated based on the control model and sent to the external device to be controlled. This technical solution eliminates the need to develop software for each hardware device, thereby reducing costs.

[0051] Figure 3 This is a flow chart of a control signal adjustment method for an external device to be controlled provided by an embodiment of the present application. The method can be executed by a control device. The control device can be exemplarily understood as a device such as a mobile phone, tablet computer, laptop computer, desktop computer, smart TV, etc. Figure 3 As shown, the method provided in this embodiment includes the following steps:

[0052] S301: If an external device to be controlled is detected, a configuration file corresponding to the external device to be controlled is obtained.

[0053] In one example, before obtaining a configuration file corresponding to the external device to be controlled, the method includes:

[0054] Obtain identification information corresponding to the external device to be controlled;

[0055] Determine whether a control model corresponding to the external device to be controlled already exists based on the identification information;

[0056] If not, the first interface of the external device to be controlled is retrieved to obtain a configuration file corresponding to the external device to be controlled.

[0057] In one example, the identification information corresponding to the external device to be controlled may be field replaceable unit (FRU) information. This identification information is unique. In this embodiment, a search is performed on the control device using the identification information. If the control model corresponding to the identification information is found to be non-existent, the first interface of the external device to be controlled is accessed, and a configuration file corresponding to the external device to be controlled is obtained through the first interface.

[0058] In one example, after determining whether a control model corresponding to the external device to be controlled already exists, the method includes:

[0059] If so, a second control signal is generated based on the control model and sent to the external device to be controlled; the second control signal is used to instruct the external device to be controlled to adjust the first response signal.

[0060] In one example, if a control model already exists in the control device, a second control signal is directly generated based on the control model, and then the second control signal is sent to the external device to be controlled, wherein the second control signal is used to instruct the external device to be controlled to adjust the first response signal.

[0061] S302: Obtain a test signal range of the external device to be controlled according to the configuration file.

[0062] In one example, a test signal range in a configuration file is obtained.

[0063] S303: Generate a test signal according to the test signal range, and send the test signal to the external device to be controlled.

[0064] In one example, generating a test signal according to a test signal range includes:

[0065] Select a test value in the test signal range and generate a test signal based on the test value.

[0066] In one example, the test value may be an empirical value, and the test signal is then generated according to the empirical value.

[0067] In one example, generating a test signal according to a test value includes:

[0068] Taking the test value as the reference point, increase or decrease the test value according to the preset change amount to obtain the test signal.

[0069] In an example, the preset variation may be 5%-10%, and the test value may be increased or decreased by 5%-10% of the test value to obtain a test signal.

[0070] S304: Receive a first response signal sent by the external device to be controlled in response to the test signal, and construct a control model according to the first response signal and the test signal.

[0071] In one example, building a control model based on the first response signal and the test signal includes:

[0072] A change trend of the first response signal and / or a change direction of the first response signal are obtained, and a control model is constructed according to the change trend of the first response signal and / or the change direction of the first response signal and the test signal.

[0073] In one example, the changing trend of the first response signal includes an increase or decrease. The changing direction of the first response signal includes a positive correlation or a negative correlation. A control model is then constructed based on the changing trend of the first response signal and / or the changing direction of the first response signal and the test signal. Specifically, a mapping relationship between the test signal and the first response signal is established, and then the mapping relationship is determined as the control model.

[0074] S305 : Generate a first control signal based on the control model, send the first control signal to the second interface, and standardize the first control signal based on the second interface to obtain a standard control signal.

[0075] In one example, the standard control signal is used to instruct the external device to be controlled to adjust the first response signal of the test signal.

[0076] In one example, the second interface is used to generate a standard control signal. The advantage of this setting is that the types of first control signals generated by different hardware devices are different. In order to more conveniently control the external device to be controlled, the first control signal needs to be standardized.

[0077] S306: Send the standard control signal to the external device to be controlled.

[0078] In one example, the method further includes:

[0079] Generate a disturbance signal according to a preset frequency, and send the disturbance signal to the external device to be controlled; the disturbance signal is used to instruct the external device to be controlled to generate a second response signal;

[0080] A standard response signal corresponding to the disturbance signal is obtained from a preset mapping table, and the external device to be controlled is calibrated according to the standard response signal and the second response signal.

[0081] In one example, the preset frequency may be every hour. The disturbance signal may be a ±2% disturbance of the PWM signal. For example, when the current PWM signal is 50%, disturbance signals of 48% and 52% of the PWM signal are sent. The disturbance signal is sent to the external device to be controlled, and then the external device to be controlled generates a second response signal according to the disturbance signal. The standard response signal corresponding to the disturbance signal is obtained in the preset mapping table. The standard response signal is a signal theoretically generated by the external device to be controlled according to the disturbance signal, and then the external device to be controlled is calibrated according to the standard response signal and the second response signal. The advantage of such a setting is that the aging problem of the external device to be controlled can be discovered in a timely manner and solved in a timely manner.

[0082] In one example, calibrating the external device to be controlled according to the standard response signal and the second response signal includes:

[0083] If the difference between the second response signal and the standard response signal is greater than the first threshold, and the number of times the difference is greater than the first threshold is greater than the second threshold, the external device to be controlled is calibrated.

[0084] In one example, the first threshold may be 5%, and the second threshold may be three times. In this embodiment, the external device to be controlled is calibrated only when the difference between the second response signal and the standard response signal is greater than the first threshold, and the number of times the difference is greater than the first threshold is greater than the second threshold.

[0085] The benefit of this setting is to avoid the influence of accidental factors and ensure that the recalibration operation is not initiated until the characteristics of the external device to be controlled do drift significantly. This ensures that the control device has a certain degree of fault tolerance and can respond to real characteristic changes in a timely manner, maintaining the accuracy and stability of the control of the external device to be controlled.

[0086] In one example, the method further includes:

[0087] The number of the external devices to be controlled is at least one; if the number of the external devices to be controlled is multiple, the control signal for the external devices to be controlled is dynamically adjusted based on the existing control model.

[0088] In one example, if there are multiple external devices to be controlled, namely, external device A, external device B, and external device C, external device A corresponds to control model A, external device B corresponds to control model B, and external device C corresponds to control model C. If control model B already exists in the control device, but neither control model A nor control model C exists, the control signal for external device B can be adjusted first. This setting has the advantage of enabling dynamic resource allocation.

[0089] An embodiment of the present application provides a control signal adjustment method for an external device to be controlled. According to a configuration file, a test signal range of the external device to be controlled is obtained, a test signal is generated according to the test signal range, and the test signal is sent to the external device to be controlled. A first response signal sent by the external device to be controlled in response to the test signal is received, and a control model is constructed based on the first response signal and the test signal. A first control signal is generated based on the control model, the first control signal is sent to a second interface, and the first control signal is standardized based on the second interface to obtain a standard control signal. The standard control signal is sent to the external device to be controlled. The adoption of this technical solution can solve the problem of software adaptation caused by differences in signal logic and directionality of the external device to be controlled.

[0090] Figure 4 This is a schematic diagram of the structure of a control signal adjustment device for an external device to be controlled provided by an embodiment of the present disclosure. The control signal adjustment device for an external device to be controlled can be understood as the above-mentioned control device or a part of the functional modules in the above-mentioned control device. Figure 4 As shown, the control signal adjustment device 40 for the external device to be controlled includes:

[0091] The first acquisition module 401 is configured to acquire a configuration file corresponding to the external device to be controlled if the external device to be controlled is detected;

[0092] A first generating module 402 is configured to generate a test signal according to a configuration file and send the test signal to an external device to be controlled;

[0093] A receiving module 403 is configured to receive a first response signal sent by the external device to be controlled in response to the test signal, and to construct a control model according to the first response signal and the test signal;

[0094] The second generating module 404 is configured to generate a first control signal based on the control model and send the first control signal to the external device to be controlled; the first control signal is configured to instruct the external device to be controlled to adjust a first response signal of the test signal.

[0095] In one example, before obtaining a configuration file corresponding to the external device to be controlled, the apparatus 40 includes:

[0096] The second acquisition module 405 is used to obtain identification information corresponding to the external device to be controlled;

[0097] Determining module 406, for determining whether a control model corresponding to the external device to be controlled already exists based on the identification information;

[0098] The calling module 407 is configured to call the first interface of the external device to be controlled to obtain a configuration file corresponding to the external device to be controlled if no.

[0099] In one example, after determining whether a control model corresponding to the external device to be controlled already exists, the apparatus 40 includes:

[0100] The third generating module 408 is configured to generate a second control signal based on the control model and send the second control signal to the external device to be controlled; the second control signal is used to instruct the external device to be controlled to adjust the first response signal.

[0101] In one example, the first generating module 402 is specifically configured to:

[0102] According to the configuration file, obtain the test signal range of the external device to be controlled;

[0103] Generate a test signal based on the test signal range.

[0104] In one example, the first generating module 402 is specifically configured to:

[0105] Select a test value in the test signal range and generate a test signal based on the test value.

[0106] In one example, the first generating module 402 is specifically configured to:

[0107] Taking the test value as the reference point, increase or decrease the test value according to the preset change amount to obtain the test signal.

[0108] In one example, the receiving module 403 is specifically configured to:

[0109] A change trend of the first response signal and / or a change direction of the first response signal are obtained, and a control model is constructed according to the change trend of the first response signal and / or the change direction of the first response signal and the test signal.

[0110] In one example, the apparatus 40 further includes:

[0111] The sending module 409 is configured to generate a disturbance signal at a preset frequency and send the disturbance signal to the external device to be controlled; the disturbance signal is used to instruct the external device to be controlled to generate a second response signal;

[0112] The calibration module 410 is configured to obtain a standard response signal corresponding to the disturbance signal from a preset mapping table, and calibrate the external device to be controlled according to the standard response signal and the second response signal.

[0113] In one example, the calibration module 410 is specifically configured to:

[0114] If the difference between the second response signal and the standard response signal is greater than the first threshold, and the number of times the difference is greater than the first threshold is greater than the second threshold, the external device to be controlled is calibrated.

[0115] In one example, the second generating module 404 is specifically configured to:

[0116] Sending the first control signal to the second interface, and performing standardization processing on the first control signal based on the second interface to obtain a standard control signal;

[0117] Send standard control signals to the external device to be controlled.

[0118] In one example, the configuration file includes at least one of the following parameters:

[0119] Device type, interface type, and test signal range of the external device to be controlled.

[0120] For the description of the features in the embodiment corresponding to a control signal adjustment device for an external device to be controlled, reference can be made to the relevant description of the embodiment corresponding to a control signal adjustment method for an external device to be controlled, which will not be repeated here.

[0121] An embodiment of the present application also provides a control device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps of any of the above-mentioned control signal adjustment method embodiments for an external device to be controlled.

[0122] An embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps of any of the above-mentioned control signal adjustment method embodiments for an external device to be controlled when running.

[0123] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0124] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of any one of the above-mentioned control signal adjustment method embodiments for an external device to be controlled are implemented.

[0125] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of any of the above-mentioned control signal adjustment method embodiments for the external device to be controlled.

[0126] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0127] The above is a detailed introduction to a control signal adjustment method for an external device to be controlled provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core ideas. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A control signal adjustment method for an external device to be controlled, characterized in that: The method comprises: If an external device to be controlled is detected, obtaining identification information corresponding to the external device to be controlled; Determining, based on the identification information, whether a control model corresponding to the external device to be controlled already exists; If so, generating a second control signal based on the control model, and sending the second control signal to the external device to be controlled; the second control signal is used to instruct the external device to be controlled to adjust the first response signal; If not, calling the first interface of the external device to be controlled to obtain a configuration file corresponding to the external device to be controlled; the number of the external device to be controlled is at least one; generating a test signal according to the configuration file, and sending the test signal to the external device to be controlled; receiving a first response signal sent by the external device to be controlled in response to the test signal, and constructing the control model according to the first response signal and the test signal; The constructing the control model according to the first response signal and the test signal includes: Acquire a change trend of the first response signal and / or a change direction of the first response signal, and construct the control model according to the change trend of the first response signal and / or the change direction of the first response signal and the test signal; generating a first control signal based on the control model, and sending the first control signal to the external device to be controlled; the first control signal is used to instruct the external device to be controlled to adjust the first response signal of the test signal; If there are multiple external devices to be controlled, the control signals for the external devices to be controlled are dynamically adjusted based on the existing control model.

2. The method according to claim 1, characterized in that Generating a test signal according to the configuration file includes: According to the configuration file, obtaining a test signal range of the external device to be controlled; The test signal is generated according to the test signal range.

3. The method according to claim 2, characterized in that Generating the test signal according to the test signal range includes: A test value is selected in the test signal range, and the test signal is generated according to the test value.

4. The method according to claim 3, characterized in that Generating the test signal according to the test value includes: Taking the test value as a reference point, the test value is increased or decreased according to a preset change amount to obtain the test signal.

5. The method according to claim 1, wherein The method further comprises: generating a disturbance signal at a preset frequency, and sending the disturbance signal to the external device to be controlled; wherein the disturbance signal is used to instruct the external device to be controlled to generate a second response signal; A standard response signal corresponding to the disturbance signal is obtained from a preset mapping table, and the external device to be controlled is calibrated according to the standard response signal and the second response signal.

6. The method according to claim 5, characterized in that The step of calibrating the external device to be controlled according to the standard response signal and the second response signal includes: If the difference between the second response signal and the standard response signal is greater than a first threshold, and the number of times the difference is greater than the first threshold is greater than a second threshold, then calibrating the external device to be controlled.

7. The method according to claim 1, characterized in that The step of sending the first control signal to the external device to be controlled includes: Sending the first control signal to a second interface, and performing standardized processing on the first control signal based on the second interface to obtain a standard control signal; The standard control signal is sent to the external device to be controlled.

8. The method according to claim 1, characterized in that The configuration file includes at least one of the following parameters: The device type, interface type, and test signal range of the external device to be controlled.

9. A control signal adjustment device for an external device to be controlled, characterized in that: The device comprises: A first acquisition module is configured to acquire a configuration file corresponding to an external device to be controlled if an external device to be controlled is detected; the number of the external device to be controlled is at least one; A second acquisition module is used to obtain identification information corresponding to the external device to be controlled; A determination module, configured to determine whether a control model corresponding to the external device to be controlled already exists based on the identification information; a third generating module, configured to, if yes, generate a second control signal based on the control model, and send the second control signal to the external device to be controlled; the second control signal is used to instruct the external device to be controlled to adjust the first response signal; a calling module, configured to call the first interface of the external device to be controlled to obtain a configuration file corresponding to the external device to be controlled if no; A first generating module, configured to generate a test signal according to the configuration file, and send the test signal to the external device to be controlled; a receiving module, configured to receive a first response signal sent by the external device to be controlled in response to the test signal, and construct the control model according to the first response signal and the test signal; The receiving module is specifically configured to: Acquire a change trend of the first response signal and / or a change direction of the first response signal, and construct the control model according to the change trend of the first response signal and / or the change direction of the first response signal and the test signal; A second generating module is configured to generate a first control signal based on the control model and send the first control signal to the external device to be controlled; the first control signal is configured to instruct the external device to be controlled to adjust the first response signal to the test signal; If there are multiple external devices to be controlled, the control signals for the external devices to be controlled are dynamically adjusted based on the existing control model.

10. A control device, characterized in that: include: memory for storing computer programs; A processor is configured to implement the steps of the control signal adjustment method for an external device to be controlled as claimed in any one of claims 1 to 8 when executing the computer program.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the control signal adjustment method for the external device to be controlled according to any one of claims 1 to 8 are implemented.

12. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the control signal adjustment method for an external device to be controlled as claimed in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Test signal generation method and device

    CN109521754A

  • System design method and system supporting automatic testing of multiple radio frequency parameters

    CN119544098A

  • Test method, device and equipment

    CN120065988A