Control method, system and device and storage medium

By obtaining the set of environmental parameters and determining the execution weight and order of external device control instructions based on them, the problem of low control accuracy of external devices when environmental parameters change is solved, real-time response and efficient control of the device are achieved.

CN119861591APending Publication Date: 2025-04-22SHENZHEN KESD TECH CO LTD

Patent Information

Application Number
CN202510346242.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-24
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

When environmental parameters change, the operating state control accuracy of external equipment in the prior art is low, resulting in the equipment being unable to respond to environmental changes in time.

Method used

By obtaining the environment parameter set of the environment in which they are located, the execution weight of the control instructions of each external device is determined, and the execution order information of the control instructions is determined based on these weights, thereby dynamically adjusting the execution order of the control instructions.

Benefits of technology

Real-time response and flexible adjustment to the working status of external equipment are realized, and the control accuracy of the working status of equipment is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119861591A_ABST
    Figure CN119861591A_ABST
Patent Text Reader

Abstract

The invention discloses a control method, system and device and a storage medium, and relates to the technical field of the Internet, and the method comprises the steps: obtaining an environment parameter set of an environment; determining an execution weight of a control instruction of each external device according to the environment parameter set; determining execution sequence information of the control instructions according to the execution weights; and sending the control instructions to the corresponding external devices based on the execution sequence information. According to the method, the execution weight of each control instruction is determined through the environment parameter set, and then the execution sequence information of each control instruction is determined based on the determined execution weight, so that compared with the prior art that the execution sequence of each control instruction is fixed, the working state of the external equipment is easily influenced by the environment; according to the method, the environment parameter set participates in determination of the execution sequence information of the control instructions, the environment change can be responded in real time, the execution sequence of the control instructions can be flexibly adjusted, and the control precision of the working state of the external equipment is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a control method, system, device and storage medium. Background Art

[0002] In industrial environments that include external devices such as fans, ion rods, and sensors, a control system is usually installed. The control system is connected to each external device and is used to obtain various device data of each external device in real time, so as to remotely monitor the working status of each external device, provide fault warnings, and perform remote control operations, thereby improving the management efficiency of each external device.

[0003] At present, the execution order of control instructions issued by the system to each external device is usually fixed after being set by the user. However, when environmental parameters such as temperature, humidity, and air pressure change, if the execution order of control instructions is fixed, it will affect the working state of the device, resulting in low control accuracy of the working state of the external device. For example, when the temperature rises, if the control instruction priority of the fan is low, the working state of the fan cannot be controlled to ensure timely heat dissipation. Summary of the invention

[0004] The main purpose of the present application is to provide a control method, system, device and storage medium, aiming to solve the technical problem of low control accuracy of the working state of the external device when the environmental parameters are sent to change in the prior art.

[0005] To achieve the above object, the present application provides a control method, which includes: Get the environment parameter set of the environment; Determining the execution weight of the control instructions of each external device according to the environmental parameter set; Determining execution order information of each of the control instructions according to each of the execution weights; Each of the control instructions is sent to a corresponding external device based on the execution sequence information.

[0006] In one embodiment, the step of determining the execution weight of the control instructions of each external device according to the environmental parameter set includes: Get device data of each external device; Generate control instructions for each of the external devices according to the device data; Determining an influence coefficient of each environmental parameter in the environmental parameter set; Performing normalization processing on each of the environmental parameters to obtain a normalized value of each of the environmental parameters; The execution weight of each control instruction is calculated by a preset weight formula, and the preset weight formula is:

[0007] In the formula, is the execution weight of the control instruction of the external device j, N is the number of environmental parameters, is the normalized value of environmental parameter i, is the influence coefficient of environmental parameter i on external device j.

[0008] In one embodiment, the step of determining the influence coefficient of each environmental parameter in the environmental parameter set includes: Obtaining an initial influence coefficient pre-configured for each environmental parameter in the environmental parameter set; Predicting the change trend of each of the environmental parameters by using a preset environmental change prediction model to obtain change trend information; The initial influence coefficients are adjusted based on the change trend information to obtain the influence coefficients of the environmental parameters.

[0009] In one embodiment, the step of determining the execution order information of each of the control instructions according to each of the execution weights includes: Determining resource occupancy information of each of the control instructions; Determining a resource consumption ratio according to the execution weight of each of the control instructions and the corresponding resource occupancy information; The control instructions are sorted according to the resource consumption ratios to obtain execution sequence information of the control instructions.

[0010] In one embodiment, the step of sending each of the control instructions to the corresponding external device based on the execution order information includes: Detecting whether each of the external devices is abnormal according to the device data of each of the external devices; When an abnormal target external device is detected, the target control instruction of the target external device is removed from the execution sequence information to obtain an updated execution sequence; The target control instruction is sent to the target external device, and other control instructions other than the target control instruction are sent to the corresponding external device based on the updated execution order.

[0011] In one embodiment, the step of detecting whether each of the external devices is abnormal according to the device data of each of the external devices includes: Obtaining a preset reference value associated with each of the device data; Updating the preset reference value according to the environmental parameter set to obtain an updated reference value; Comparing each of the device data with the corresponding updated reference value to obtain a comparison result; It is determined whether each of the external devices is abnormal according to the comparison result.

[0012] In one embodiment, the step of sending the target control instruction to the target external device includes: When at least two abnormal target external devices are detected, extracting target device data of each of the target external devices; Determine a target updated reference value associated with each target device data, and determine a deviation between each target device data and the corresponding target updated reference value; Determining the priority of the target control instructions of each target external device according to each of the deviations; Each of the target control instructions is sent to a corresponding target external device according to each of the priorities.

[0013] In addition, to achieve the above objectives, the present application also proposes a control system, the system comprising: A data acquisition module is used to obtain a set of environmental parameters of the environment; A weight determination module, used to determine the execution weight of the control instructions of each external device according to the environmental parameter set; A sequence determination module, used to determine the execution sequence information of each of the control instructions according to each of the execution weights; The device control module is used to send each of the control instructions to the corresponding external device based on the execution sequence information.

[0014] In addition, to achieve the above objectives, the present application also proposes a control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the control method described above.

[0015] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the control method described above are implemented.

[0016] One or more technical solutions proposed in this application have at least the following technical effects: The present application obtains the environmental parameter set of the environment; determines the execution weight of the control instructions of each external device according to the environmental parameter set; determines the execution order information of each control instruction according to each execution weight; and sends each control instruction to the corresponding external device based on the execution order information. Since the present application determines the execution weight of each control instruction through the environmental parameter set, and then determines the execution order information of each control instruction based on the determined execution weight, compared with the prior art in which the execution order of each control instruction is fixed and the working state of the external device is easily affected by the environment, the present application participates in the determination of the execution order information of each control instruction through the environmental parameter set, can respond to environmental changes in real time, flexibly adjust the execution order of each control instruction, and effectively improves the control accuracy of the working state of the external device. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 This is a flow chart of the first embodiment of the control method of the present application; Figure 2 This is a flow chart of the second embodiment of the control method of the present application; Figure 3 This is a flow chart of the third embodiment of the control method of the present application; Figure 4 This is a schematic diagram of the module structure of the control system of this application; Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the control method in the embodiment of the present application.

[0020] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0021] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0022] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0023] The main solution of the embodiment of the present application is: obtain the environmental parameter set of the environment; determine the execution weight of the control instructions of each external device according to the environmental parameter set; determine the execution order information of each control instruction according to each execution weight; and send each control instruction to the corresponding external device based on the execution order information.

[0024] Since the execution order of the control instructions in the prior art is fixed, when the environmental parameters are changed, the environmental parameters will affect the working state of the device, resulting in low control accuracy of the working state of the external device.

[0025] The present application provides a solution, which determines the execution weight of each control instruction through an environmental parameter set, and then determines the execution order information of each control instruction based on the determined execution weight. Therefore, compared with the prior art in which the execution order of each control instruction is fixed and the working state of the external device is easily affected by the environment, the present application participates in the determination of the execution order information of each control instruction through the environmental parameter set, can respond to environmental changes in real time, flexibly adjust the execution order of each control instruction, and effectively improves the control accuracy of the working state of the external device.

[0026] Based on this, the present application embodiment provides a control method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the control method of the present application.

[0027] In this embodiment, the control method includes steps S10 to S40: Step S10, obtaining an environmental parameter set of the environment.

[0028] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a control device, etc. that can realize the above functions. The following takes the control device as an example to illustrate this embodiment and the following embodiments.

[0029] It is understandable that the above-mentioned environmental parameter set may be a set consisting of multiple environmental parameters, and the environmental parameters may be physical quantities, chemical quantities or biological quantities that describe environmental conditions, such as temperature, humidity, air pressure, etc.

[0030] In a specific implementation, the control device can be connected to external devices such as fans, ion rods, sensors, etc. to communicate with each external device. Among them, the external device at least includes sensors for sensing environmental parameters, such as temperature sensors, humidity sensors, air pressure sensors, etc. The control device can obtain various environmental parameters of the current environment through such sensors, and then add each environmental parameter to the same set to obtain an environmental parameter set.

[0031] Step S20: determining the execution weight of the control instruction of each external device according to the environmental parameter set.

[0032] It should be noted that the ascending execution weight may be a weight describing the execution priority of the control instruction, that is, the higher the execution weight of a control instruction is, the higher the priority of its execution is.

[0033] In a specific implementation, the control device can obtain the device data of each external device. For any device data, it can detect whether it is greater than the set threshold value, and generate corresponding control instructions according to the detection results. For example, if the fan temperature is greater than 80°C, a control instruction to reduce the fan speed to 70% is generated. If the ion rod discharge efficiency is less than 60%, a control instruction to switch the ion rod to high power mode is generated. In addition, the working state of the external device can be dynamically adjusted through the proportional-integral-differential algorithm, such as generating corresponding control instructions to adjust the fan speed according to the real-time temperature error.

[0034] It should be understood that the rising device data can be various parameters and information generated by the external device during operation, such as fan speed, ion rod voltage, temperature and humidity, etc.

[0035] Among them, taking the fan, ion rod and sensor as an example, the types of control instructions for the fan include but are not limited to start and stop, speed adjustment, and steering control; the types of control instructions for the ion rod include but are not limited to voltage adjustment, current adjustment, and discharge mode switching; the types of control instructions for the sensor include but are not limited to data acquisition frequency adjustment and self-test instructions.

[0036] Furthermore, the initial execution weight of each control instruction can be set to a fixed initial value, such as 0, and an environmental mapping relationship between different environmental parameters and weight update values ​​can be pre-built. For example, if the temperature is greater than 35°C, the execution weight of the control instruction for the fan can be increased by +0.2. After generating the control instructions for each external device, the above-mentioned control device can traverse each environmental parameter in the environmental parameter set, and then determine the weight update value corresponding to each environmental parameter from the environmental mapping relationship, and add the weight update value to the initial execution weight of the corresponding control instruction to update each execution weight and obtain the execution weight of each control instruction.

[0037] Step S30: determining the execution order information of each of the control instructions according to each of the execution weights.

[0038] It should be noted that the above execution order information may be information describing the execution order of each execution instruction.

[0039] In a specific implementation, the control device may sort the control instructions in descending order of execution weight to obtain execution order information of the control instructions, that is, control instructions with high execution weight are executed before control instructions with low execution weight.

[0040] Step S40: sending each of the control instructions to a corresponding external device based on the execution sequence information.

[0041] In a specific implementation, the control device may send each control instruction to the corresponding external device in sequence according to the execution order information, that is, the control instruction with a high execution weight is sent first. In addition, to improve the data transmission efficiency, the control device may add each control instruction to the instruction queue according to the order corresponding to the execution order information, and then send each control instruction to the corresponding external device in sequence according to the instruction queue, thereby improving the data transmission efficiency.

[0042] This embodiment obtains the environmental parameter set of the environment; determines the execution weight of the control instructions of each external device according to the environmental parameter set; determines the execution order information of each control instruction according to each execution weight; and sends each control instruction to the corresponding external device based on the execution order information. Since this embodiment determines the execution weight of each control instruction through the environmental parameter set, and then determines the execution order information of each control instruction based on the determined execution weight, compared with the prior art in which the execution order of each control instruction is fixed and the working state of the external device is easily affected by the environment, this embodiment participates in the determination of the execution order information of each control instruction through the environmental parameter set, can respond to environmental changes in real time, flexibly adjust the execution order of each control instruction, and effectively improves the control accuracy of the working state of the external device.

[0043] Based on the first embodiment of the present application, the second embodiment of the present application is proposed. In the second embodiment of the present application, the same or similar contents as those of the first embodiment can be referred to the above introduction, and will not be repeated later. Figure 2 , Figure 2 This is a flow chart of the second embodiment of the control method of the present application.

[0044] In this embodiment, step S20 may include steps S201 to S205: Step S201, obtaining device data of each external device.

[0045] Step S202, generating control instructions for each of the external devices according to each of the device data.

[0046] In a specific implementation, the control device can obtain device data of each external device, detect whether any device data is greater than a set threshold, and generate a corresponding control instruction according to the detection result.

[0047] Step S203: determining the influence coefficient of each environmental parameter in the environmental parameter set.

[0048] It should be noted that the above-mentioned influence coefficient may be a coefficient that describes the influence of environmental parameters on external devices.

[0049] In a specific implementation, a corresponding influence coefficient can be set in advance for each environmental parameter, and the set influence coefficient can be associated with the corresponding environmental parameter. For example, the influence coefficient of temperature on the fan can be set to 0.8, and the influence coefficient of humidity on the ion rod can be set to 0.6. After generating the control instructions for each external device, the above control device can obtain the influence coefficient associated with each environmental parameter.

[0050] In order to make the influence coefficient more accurately reflect the impact of environmental changes on the device, another feasible implementation is proposed. In this implementation, step S203 may include steps S2031 to S2033: Step S2031, obtaining an initial influence coefficient pre-configured for each environmental parameter in the environmental parameter set.

[0051] It should be noted that the above initial influence coefficient may be a preset initial value.

[0052] In a specific implementation, the influence coefficient pre-set for each environmental parameter can be saved locally as the initial influence coefficient. After generating the control instruction, the control device can read the initial influence coefficient associated with each environmental parameter from the local.

[0053] Step S2032: predicting the change trend of each of the environmental parameters by using a preset environmental change prediction model to obtain change trend information.

[0054] It should be noted that the above-mentioned preset environmental change prediction model can be a pre-set neural network model for predicting the changing trend of environmental parameters.

[0055] In a specific implementation, multiple historical environmental parameters (such as temperature, humidity, air pressure, wind speed, etc.) in the past period (such as the previous day, the previous month, etc.) can be collected, and the historical environmental parameters can be arranged in chronological order to obtain time series data. Then the time series data is divided into an input sequence (such as data from t-5 to t minutes) and a target sequence (such as data from t+1 to t+5 minutes) to obtain a structured data set, wherein the target sequence can be used to simulate the change trend of environmental parameters in the future time. Preprocessing operations such as cleaning, normalization or standardization are performed on the structured data set, and the structured data set after the preprocessing operation is divided into a training set and a test set. The Long Short-Term Memory (LSTM) model is trained through the training set and the test set to obtain a preset environmental change prediction model. The above-mentioned control device can input each environmental parameter into the preset environmental change prediction model, and predict it through the preset environmental change prediction model to obtain change trend information, such as predicting the temperature trend in the next 5 minutes.

[0056] Step S2033: adjusting each of the initial influence coefficients based on the change trend information to obtain an influence coefficient of each of the environmental parameters.

[0057] In a specific implementation, the control device can determine the change rate of each environmental parameter in the future time according to the change trend information, and then multiply the change rate by the set coefficient to obtain the compensation coefficient, and add each compensation coefficient to the initial influence coefficient corresponding to each environmental parameter to adjust the initial influence coefficient and obtain the environmental parameter influence coefficient. For example, if the set coefficient is 0.1 and the temperature is predicted to rise by 0.5°C per minute, the corresponding compensation coefficient is 0.05, and the influence coefficient of the temperature can be obtained by adding it to the initial influence coefficient corresponding to the temperature.

[0058] It should be understood that compared with directly using the initial influence coefficient as the final influence coefficient, dynamically adjusting the initial influence coefficient through the changing trend of environmental parameters can make the final influence coefficient reflect the changing trend of the environment, effectively improving the accuracy of the influence coefficient.

[0059] Step S204, normalizing each of the environmental parameters to obtain a normalized value of each of the environmental parameters.

[0060] In a specific implementation, the safety threshold of each environmental parameter may be preset, and then the percentage of each environmental parameter relative to the corresponding safety threshold may be calculated to normalize each environmental parameter to obtain a normalized value of each environmental parameter.

[0061] Step S205, calculating the execution weight of each of the control instructions using a preset weight formula.

[0062] The preset weight formula is:

[0063] In the formula, is the execution weight of the control instruction of the external device j, N is the number of environmental parameters, is the normalized value of environmental parameter i, is the influence coefficient of environmental parameter i on external device j.

[0064] In a specific implementation, the control device may substitute each environmental parameter and its corresponding influence coefficient into the preset weight formula to obtain the execution weight of the control instruction of each external device.

[0065] For example, assuming that the environmental parameter obtained is temperature, and the influence coefficient of temperature on the fan is determined to be 0.8, and the influence coefficient of temperature on the ion rod is 0.3. When the temperature rises (E 温度 =1.2), the fan control command weight W 风机 =1.2×0.8=0.96, ion rod control instruction weight W 离子棒 =1.2×0.3=0.36.

[0066] It should be understood that each time a new environmental parameter is received, the weights of all instructions may be recalculated according to the above-mentioned preset weight formula.

[0067] It should be understood that, compared to determining the execution weight of each control instruction by means of an environmental mapping relationship between environmental parameters and weight update values, this embodiment determines the influence coefficient of each environmental parameter in the environmental parameter set, normalizes each environmental parameter, obtains the normalized value of each environmental parameter, and calculates the execution weight of each control instruction by means of a preset weight formula, so that the influence coefficient of the environmental parameter is combined in the process of determining the execution weight, and the execution weight can be adjusted in real time according to the new environmental parameters received through the preset weight formula, thereby effectively improving the determination accuracy of the execution weight of the control instruction.

[0068] Further, in this embodiment, when multiple control instructions compete for the same resource, there will be a resource conflict, so this implementation is proposed. In this implementation, step S30 may include steps S301 to S303: Step S301, determining resource occupancy information of each of the control instructions.

[0069] It should be noted that the above resource occupancy information may be information describing the resources consumed when the control instructions are executed. For example, if the total power is 1000W, 200W is consumed when the control instruction A is executed, and 300W is consumed when the control instruction B is executed.

[0070] Step S302: determining a resource consumption ratio according to the execution weight of each of the control instructions and the corresponding resource occupancy information.

[0071] In a specific implementation, the control device may calculate the ratio of the execution weight of each control instruction to its resource occupancy information to obtain a resource consumption ratio.

[0072] Step S303: sorting the control instructions according to the resource consumption ratios to obtain execution sequence information of the control instructions.

[0073] In a specific implementation, the control device may sort the control instructions in descending order according to the resource consumption ratio to obtain the execution order information of the control instructions.

[0074] It should be understood that in this implementation, the order of each control instruction is adjusted by the resource consumption ratio of each control instruction, which can improve resource utilization efficiency when resources are limited, compared with directly using execution weights for sorting. For example, the execution weight of control instruction A is 80, and it consumes 200W of resources, and its resource consumption ratio is 80 / 200=0.4; the priority weight of control instruction B is 90, and it consumes 300W of resources, and its resource consumption ratio is 90 / 300=0.3. It can be seen that although the execution weight of control instruction B is higher than that of control instruction A, the resource consumption ratio of control instruction A is higher. Therefore, control instruction A can be executed first, so that when multiple control instructions compete for the same resource, the execution order is determined in combination with the execution weight to avoid resource conflicts and effectively improve resource utilization efficiency.

[0075] Based on the first and second embodiments of the present application, the third embodiment of the present application is proposed. In the third embodiment of the present application, the same or similar contents as those of the first and second embodiments can be referred to the above introduction and will not be repeated later. Figure 3 , Figure 3 This is a flow chart of the third embodiment of the control method of the present application.

[0076] In this embodiment, step S40 may include steps S401 to S403: Step S401 , detecting whether each of the external devices has an abnormality according to the device data of each of the external devices.

[0077] In a specific implementation, the control device may compare the device data of each external device with a preset threshold value. When the device data of any external device exceeds the set threshold value, the control device may determine that the external device is abnormal and trigger an abnormal alarm of the external device. For example, if the speed of the fan exceeds the set threshold value, the control device may determine that the speed is too high, which may cause the fan to be overloaded, and then determine that the fan is abnormal and trigger an abnormal alarm of the fan.

[0078] In a feasible implementation, in order to improve the accuracy of anomaly detection, step S401 may include steps S4011 to S4014: Step S4011, obtaining a preset reference value associated with each of the device data.

[0079] It should be noted that the above-mentioned preset reference value may be a fixed threshold value set in advance and used to determine whether there is an abnormality in the external device.

[0080] In a specific implementation, different types of device data may be associated with corresponding preset reference values. For example, the rotation speed may be associated with a rotation speed threshold, and the voltage may be associated with a voltage threshold.

[0081] Step S4012: updating the preset reference value according to the environmental parameter set to obtain an updated reference value.

[0082] In a specific implementation, historical device data of multiple external devices and multiple historical environmental parameters can be collected, and then each historical device data and historical environmental data can be fitted to determine the linear relationship between the environmental parameters and the device data when the external device is operating normally, that is, to determine the linear regression equation. After determining the above environmental parameter set, the above control device can substitute the environmental parameters in the environmental parameter set into the linear relationship to obtain an updated reference value, and then replace the preset reference value with the updated reference value to update the preset reference value.

[0083] For example, assuming that the environmental parameter is temperature, the linear relationship between the temperature of the external device during normal operation and the device data is obtained through historical device data and historical environmental data: reference value = a × temperature + b. When the real-time temperature is T, the updated reference value can be calculated by substituting it into the above formula.

[0084] Step S4013, comparing each of the device data with the corresponding updated reference value to obtain a comparison result.

[0085] Step S4014: determining whether each of the external devices has an abnormality according to the comparison result.

[0086] In a specific implementation, the control device may compare the device data with the corresponding updated reference value, and the comparison result obtained includes that the device data is greater than or equal to the updated reference value, and the device data is less than the updated reference value. When it is detected that the device data of any external device is greater than or equal to the updated reference value, it is determined that the external device is abnormal; when it is detected that the device data of any external device is less than the updated reference value, it is determined that the external device is not abnormal.

[0087] It should be understood that in this implementation, by obtaining the preset reference value associated with each device data, the preset reference value is updated according to the environmental parameter set to obtain the updated reference value, and each device data is compared with the corresponding updated reference value to obtain a comparison result, and whether each external device has an abnormality is determined according to the comparison result. Since the preset reference value is updated by the environmental parameter set in this implementation, the updated reference value can reflect environmental changes, effectively improving the accuracy of device abnormality detection.

[0088] Step S402: when it is detected that there is an abnormal target external device, the target control instruction of the target external device is removed from the execution sequence information to obtain an updated execution sequence.

[0089] In a specific implementation, when the above-mentioned control device detects the presence of an abnormal target external device, the target control instruction generated for the target device may be an instruction to stop the operation of the external device. At this time, the target control instruction may be removed from the execution sequence information to distinguish the control instructions of the abnormal external device from the control instructions of the normal external device, so that the obtained updated execution sequence is the control instructions of the normal external device.

[0090] Step S403: sending the target control instruction to the target external device, and sending other control instructions except the target control instruction to the corresponding external device based on the updated execution order.

[0091] In a specific implementation, the above-mentioned control device may first send the target control instructions of the target external device to the target external device in priority, and then send other control instructions other than the target control instructions, that is, the control instructions of the normal external device to the corresponding external device based on the updated execution order, so as to implement the priority execution of the control instructions of the abnormal external device to reduce the risk of damage to the target external device.

[0092] In a feasible implementation manner, the step of sending the target control instruction to the target external device includes steps S4031 to S4034: Step S4031 , when at least two abnormal target external devices are detected, extracting target device data of each of the target external devices.

[0093] Step S4032, determining a target updated reference value associated with each target device data, and determining a deviation between each target device data and the corresponding target updated reference value.

[0094] In a specific implementation, when the above-mentioned control device detects at least two target external devices with abnormalities, it can extract the target device data of each target external device again, and then obtain the updated benchmark value used to determine whether each target external device has an abnormality as the target updated benchmark value, and calculate the absolute value of the difference between each target device data and the corresponding target updated benchmark value to obtain the deviation between each target device data and the corresponding target updated benchmark value.

[0095] Step S4033: determining the priority of the target control instructions of each target external device according to each of the deviations.

[0096] In a specific implementation, the above-mentioned control device can compare the deviation between each target device data and the corresponding target updated baseline value, and assign priority to each target control instruction in order of deviation from large to small, wherein a target external device with a large deviation can be determined to have a higher risk factor and can be assigned a higher priority, and a target external device with a small deviation can be determined to have a lower risk factor and can be assigned a lower priority.

[0097] Step S4034: sending each of the target control instructions to a corresponding target external device according to each of the priorities.

[0098] In a specific implementation, the above-mentioned control device can send each target control instruction to the corresponding target external device in order of priority from high to low, so that the external device with a higher risk factor can execute the target control instruction first to reduce the risk of damage, and then send other control instructions other than the target control instruction to the corresponding external device based on the updated execution order.

[0099] When an abnormal target external device is detected, this embodiment removes the target control instruction of the target external device from the execution order information to obtain an updated execution order, and then sends the target control instruction to the target external device. Then, based on the updated execution order, other control instructions other than the target control instruction are sent to the corresponding external device, thereby reducing the risk of damage to the target external device and improving safety performance.

[0100] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the control method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0101] This application also provides a control system, please refer to Figure 4 , Figure 4 This is a schematic diagram of the module structure of the control system of this application, and the system includes: The data acquisition module 10 is used to acquire a set of environmental parameters of the environment.

[0102] The weight determination module 20 is used to determine the execution weight of the control instructions of each external device according to the environmental parameter set.

[0103] The sequence determination module 30 is used to determine the execution sequence information of each of the control instructions according to each of the execution weights.

[0104] The device control module 40 is used to send each of the control instructions to a corresponding external device based on the execution sequence information.

[0105] The control system provided by the present application adopts the control method in the above embodiment, which can solve the technical problem of low control accuracy of the working state of the external device when the environmental parameter transmission changes. Compared with the prior art, the beneficial effects of the control system provided by the present application are the same as the beneficial effects of the control method provided by the above embodiment, and other technical features in the control system are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0106] The present application provides a control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method in the above-mentioned embodiment one.

[0107] Reference below Figure 5 , Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the control method in the embodiment of the present application. It shows a schematic diagram of the structure of the control device suitable for implementing the embodiment of the present application. The control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The control device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0108] like Figure 5As shown, the control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which may perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 to a random access memory 1004. In the random access memory 1004, various programs and data required for the operation of the control device are also stored. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other via a bus 1005. An input / output interface 1006 is also connected to the bus. Generally, the following systems may be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the control device to communicate with other devices wirelessly or by wire to exchange data. Although the control device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.

[0109] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0110] The control device provided by the present application adopts the control method in the above embodiment, which can solve the technical problem of low control accuracy of the working state of the external device when the environmental parameter transmission changes. Compared with the prior art, the beneficial effects of the control device provided by the present application are the same as the beneficial effects of the control method provided by the above embodiment, and other technical features in the control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0111] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0112] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0113] The present application provides a storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the control method in the above-mentioned embodiment.

[0114] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0115] The computer-readable storage medium may be included in the control device; or may exist independently without being assembled into the control device.

[0116] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the control device, the control device: obtains the environmental parameter set of the environment in which it is located; determines the execution weight of the control instructions of each external device according to the environmental parameter set; determines the execution order information of each control instruction according to each execution weight; and sends each control instruction to the corresponding external device based on the execution order information.

[0117] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0118] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0119] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0120] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above control method, and can solve the technical problem of low control accuracy of the working state of the external device when the environmental parameter transmission changes. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the control method provided by the above embodiment, and will not be repeated here.

[0121] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A control method, characterized in that: The method comprises: Get the environment parameter set of the environment; Determining the execution weight of the control instructions of each external device according to the environmental parameter set; Determining execution order information of each of the control instructions according to each of the execution weights; Each of the control instructions is sent to a corresponding external device based on the execution sequence information.

2. The control method according to claim 1, characterized in that: The step of determining the execution weight of the control instructions of each external device according to the environmental parameter set includes: Get device data of each external device; Generate control instructions for each of the external devices according to the device data; Determining an influence coefficient of each environmental parameter in the environmental parameter set; Performing normalization processing on each of the environmental parameters to obtain a normalized value of each of the environmental parameters; The execution weight of each control instruction is calculated by a preset weight formula, and the preset weight formula is: In the formula, is the execution weight of the control instruction of the external device j, N is the number of environmental parameters, is the normalized value of environmental parameter i, is the influence coefficient of environmental parameter i on external device j.

3. The control method according to claim 2, characterized in that: The step of determining the influence coefficient of each environmental parameter in the environmental parameter set includes: Obtaining an initial influence coefficient pre-configured for each environmental parameter in the environmental parameter set; Predicting the change trend of each of the environmental parameters by using a preset environmental change prediction model to obtain change trend information; The initial influence coefficients are adjusted based on the change trend information to obtain the influence coefficients of the environmental parameters.

4. The control method according to claim 1, characterized in that: The step of determining the execution order information of each of the control instructions according to each of the execution weights comprises: Determining resource occupancy information of each of the control instructions; Determining a resource consumption ratio according to the execution weight of each of the control instructions and the corresponding resource occupancy information; The control instructions are sorted according to the resource consumption ratios to obtain execution sequence information of the control instructions.

5. The control method according to claim 1, characterized in that: The step of sending each of the control instructions to the corresponding external device based on the execution order information includes: Detecting whether each of the external devices is abnormal according to the device data of each of the external devices; When an abnormal target external device is detected, the target control instruction of the target external device is removed from the execution sequence information to obtain an updated execution sequence; The target control instruction is sent to the target external device, and other control instructions other than the target control instruction are sent to the corresponding external device based on the updated execution order.

6. The control method according to claim 5, characterized in that: The step of detecting whether each of the external devices has an abnormality according to the device data of each of the external devices comprises: Obtaining a preset reference value associated with each of the device data; Updating the preset reference value according to the environmental parameter set to obtain an updated reference value; Comparing each of the device data with the corresponding updated reference value to obtain a comparison result; It is determined whether each of the external devices is abnormal according to the comparison result.

7. The control method according to claim 6, characterized in that: The step of sending the target control instruction to the target external device includes: When at least two abnormal target external devices are detected, extracting target device data of each of the target external devices; Determine a target updated reference value associated with each target device data, and determine a deviation between each target device data and the corresponding target updated reference value; Determining the priority of the target control instructions of each target external device according to each of the deviations; Each of the target control instructions is sent to a corresponding target external device according to each of the priorities.

8. A control system, characterized in that: The system comprises: A data acquisition module is used to obtain a set of environmental parameters of the environment; A weight determination module, used to determine the execution weight of the control instructions of each external device according to the environmental parameter set; A sequence determination module, used to determine the execution sequence information of each of the control instructions according to each of the execution weights; The device control module is used to send each of the control instructions to the corresponding external device based on the execution sequence information.

9. A control device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the control method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the control method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Equipment control method and device, storage medium and electronic device

    CN115343984A

  • Task scheduling method and device, storage medium, system and program product

    CN118981360A

  • Intelligent ecological environment optimization method and system based on machine learning

    CN119063187A

  • Machine room intelligent environment monitoring and automatic adjusting method, equipment and medium

    CN119087872A

  • Self-adaptive test execution method and device, electronic equipment and storage medium

    CN119226151A

Cited By

  • Frequency conversion system switching control method and system, electronic equipment and storage medium

    CN120049899A

  • Scene execution method and device, electronic equipment and storage medium

    CN120979857A