CN114039852A - Method, system and device for regularly executing plan by equipment - Google Patents

Method, system and device for regularly executing plan by equipment Download PDF

Info

Publication number
CN114039852A
CN114039852A CN202111249545.2A CN202111249545A CN114039852A CN 114039852 A CN114039852 A CN 114039852A CN 202111249545 A CN202111249545 A CN 202111249545A CN 114039852 A CN114039852 A CN 114039852A
Authority
CN
China
Prior art keywords
equipment
plan
task file
file
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111249545.2A
Other languages
Chinese (zh)
Inventor
罗彩虹
王志双
罗道关
冯鸣
王芷云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Yuanyuan Technology Co ltd
Zhejiang Aoge Intelligent Technology Co ltd
Shenzhen Yixin Semiconductor Co ltd
Original Assignee
Guangdong Yuanyuan Technology Co ltd
Zhejiang Aoge Intelligent Technology Co ltd
Shenzhen Yixin Semiconductor Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Yuanyuan Technology Co ltd, Zhejiang Aoge Intelligent Technology Co ltd, Shenzhen Yixin Semiconductor Co ltd filed Critical Guangdong Yuanyuan Technology Co ltd
Priority to CN202111249545.2A priority Critical patent/CN114039852A/en
Publication of CN114039852A publication Critical patent/CN114039852A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements

Abstract

The invention discloses a method, a system and a device for executing a plan at regular time by equipment, wherein the method comprises the following steps: generating a planning task file in response to the operation of a user on a configuration interface; issuing a plan task file to an equipment end and carrying out integrity verification; analyzing the rule of the planning task file; judging that the current state parameters of the equipment conform to rules, and controlling the equipment to execute corresponding actions; and writing the operation log and uploading the operation log. The system comprises: the device comprises a task configuration module, a file issuing module, a rule matching module, an equipment action module and a log processing module. The device comprises a memory and a processor for executing the device timing execution planning method. By using the method and the device, the working mechanism of the equipment of the Internet of things is optimized, the dependence of the equipment on the network stability is reduced in an application scene containing repetitive operation, and the usability of the equipment is improved. The invention can be widely applied to the field of equipment control.

Description

Method, system and device for regularly executing plan by equipment
Technical Field
The present invention relates to the field of device control, and in particular, to a method, a system, and an apparatus for executing a plan at regular time by a device.
Background
The rapid development of the internet of things industry promotes the rapid development of various industries such as smart home and smart data, and the base station communication based on the mobile device has the advantages of being free from region limitation, simple in deployment, independent in equipment, mutually influenced through the cloud, and high in competitiveness in the market. However, the following problems are that equipment with higher real-time requirements depends on the stability of the network to a greater extent, but some areas have the problems of unstable network, weak signals and the like; and the access base stations of a large number of internet of things devices have great influence on the real-time performance of the interactive data transmission of the devices. How to ensure the normal operation of the equipment in the environment with poor network becomes a big problem faced by the current internet of things equipment; meanwhile, the difficulty of background management and maintenance is gradually increased due to excessive equipment access at the user side, and the problem that how to reduce the pressure on background data processing at the equipment side by adjusting a working mechanism is also taken into consideration as the equipment of the internet of things in the aspect of large-scale equipment of the internet of things; for remote control equipment, although real-time remote control is supported, for some special application scenes, some repeated operations on the equipment exist, and the problem can be solved in a targeted manner by a timing task without complicated management and control and resource concentration; the automatic management is really realized according to the user requirements, and the user attention and the control complexity are reduced at high frequency in the process of reaching the expectation.
Disclosure of Invention
The invention aims to provide a method, a system and a device for executing a plan at regular time by equipment, which are used for optimizing the working mechanism of equipment of the Internet of things, reducing the dependence of the equipment on the network stability and improving the equipment availability in an application scene containing repetitive operation.
The first technical scheme adopted by the invention is as follows: a method for a device to execute a plan regularly comprises the following steps:
generating a planning task file in response to the operation of a user on a configuration interface;
issuing a plan task file to an equipment end and carrying out integrity verification;
judging whether the integrity verification is passed, analyzing the rule of the planned task file, and judging whether the current state parameter of the equipment conforms to the rule;
judging that the current state parameters of the equipment conform to rules, and controlling the equipment to execute corresponding actions;
and writing the operation log and uploading the operation log.
Further, the step of generating a planning task file in response to the operation of the user on the configuration interface specifically includes:
providing a configuration interface by a server, and setting the configuration interface by a user according to needs;
the setting comprises that the timing control equipment executes a certain action and executes another action after keeping a preset time after executing the certain action at a fixed time;
and generating a planned task file according to the setting of the user.
Further, the step of issuing the plan task file to the device side and performing integrity verification specifically includes:
the server side issues a plan task file to the equipment side;
the equipment side downloads the planned task file and carries out hash value calculation on the planned task file;
and comparing the hash value obtained by calculation with the hash value of the server side, and verifying the integrity of the planned task file.
Further, still include:
and judging that the integrity verification fails, and re-downloading the planned task file.
Further, the step of judging that the integrity verification is passed, analyzing the rule of the planned task file, and judging whether the current state parameter of the device meets the rule specifically includes:
judging that the integrity verification is passed, reading and analyzing the plan task file to obtain a rule file;
putting the rule file into a memory;
calculating the number of minutes of the current time of the equipment, and starting a timer;
the timer accumulates the current equipment operation minutes per minute, and when the minutes change, the current equipment operation minutes can be matched with the rule file in the memory, and whether the current state parameters of the equipment meet the rules or not is judged.
Further, the uploading the operation log comprises direct uploading and waiting for network uploading.
The second technical scheme adopted by the invention is as follows: a system for a device to periodically execute a plan, comprising:
the task configuration module is used for responding to the operation of a user on a configuration interface and generating a plan task file;
the file issuing module is used for issuing the plan task file to the equipment terminal and carrying out integrity verification;
the rule matching module is used for analyzing the rule of the planned task file and judging whether the current state parameter of the equipment meets the rule or not when the completeness verification is judged to be passed;
the equipment action module is used for controlling the equipment to execute corresponding actions when judging that the current state parameters of the equipment conform to the rules;
and the log processing module is used for writing the operation log and uploading the operation log.
The third technical scheme adopted by the invention is as follows: an apparatus for a device to periodically execute a plan, comprising:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one program causes the at least one processor to implement a device timing execution planning method as described above.
The method and the system have the beneficial effects that: the invention changes the working mode of the equipment by adding the logic and the method for executing the task plan at fixed time in the equipment. The dependence degree of the equipment on the network stability is reduced, the stability of normal work of the equipment in an extreme network state is ensured, a new working mechanism and processing logic are provided for realizing the equipment control, occupation of a large number of network resources is avoided, the resource distribution is more reasonable, and the complexity of equipment operation is simplified.
Drawings
FIG. 1 is a flow chart of the steps of a device timing execution plan of the present invention;
FIG. 2 is a block diagram of a device timing execution plan of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and the specific embodiments. The step numbers in the following embodiments are provided only for convenience of illustration, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
In order to solve the problems of the equipment in a network, a management and control mode and the like, the invention provides a method for the equipment to execute a planned task at regular time, which comprises a management background and an equipment end, wherein the method is used for optimizing the working mechanism of the equipment of the Internet of things, reducing the dependence of the equipment on the network stability and improving the equipment availability in an application scene containing repetitive operation; meanwhile, unnecessary user interaction is reduced, network flow is saved, and data transmission load of the base station is reduced.
Referring to fig. 1, the present invention provides a method for executing a plan regularly by a device, and provides a new working mechanism and processing logic for implementing device control. The function of executing the planned task regularly comprises the following parts of task configuration, file issuing, rule matching and equipment action and log processing, and comprises the following steps:
s1, generating a planning task file in response to the operation of the user on the configuration interface;
specifically, task configuration is mainly finished by a background, a user configuration interface is provided, different use scenes are dealt with, and the fitting degree of the equipment operation mode and the user requirements is ensured.
S2, issuing a plan task file to the equipment terminal and carrying out integrity verification;
specifically, file issuing is completed by equipment in cooperation with a background, the background informs the equipment to download the regular file after user configuration is completed, and the downloading process is automatically controlled by the equipment and comprises subsequent file verification, notification after downloading is successful and the like
S3, judging whether the integrity verification is passed, analyzing the rule of the plan task file, and judging whether the current state parameter of the equipment conforms to the rule;
specifically, rule matching is to read and analyze a rule file by a device end, automatically update device state parameters at regular time, judge whether the current state parameters meet the rules, and then perform subsequent processing logic according to the matching condition.
S4, judging that the current state parameters of the equipment conform to the rules, and controlling the equipment to execute corresponding actions;
specifically, in the case where the device actions, i.e., the current rules, match, a process is required to perform and achieve the desired effect.
And S5, writing the operation log and uploading the operation log.
Specifically, log processing is a process of storing or reporting a state required to be performed after the device performs an action.
As a further preferred embodiment of the method, the step of generating the plan task file in response to the operation of the user on the configuration interface specifically includes:
s11, providing a configuration interface by the server, and setting the configuration interface by the user according to the requirement;
the setting comprises that the timing control equipment executes a certain action and executes another action after keeping a preset time after executing the certain action at a fixed time;
and S12, generating a planned task file according to the setting of the user.
Specifically, the scheduled task file is provided with a configuration interface by the server, a user only needs to set time, opening and the like according to requirements, and the server automatically generates the scheduled task file and sends the scheduled task file to the equipment; the settable items comprise that the timing control equipment executes a certain action, keeps after executing the certain action at a fixed time, and executes another action after a period of time; wherein, the regular repetition takes a week as a unit, and the automatic repeat execution is carried out at the end point;
further, as a preferred embodiment of the method, the step of issuing the plan task file to the device side and performing integrity verification specifically includes:
s21, the server side issues a plan task file to the equipment side;
s22, downloading the planned task file by the equipment terminal and calculating the hash value of the planned task file;
and S23, comparing the calculated hash value with the hash value of the server, and verifying the integrity of the planned task file.
Specifically, when the server side issues a file downloading notification to the device side, the device side automatically downloads the file, performs hash value calculation on the file after the downloading is completed, and compares the hash value with the server side to ensure the integrity of the file, wherein the unit of the time setting value is minutes.
Planning tasks referring to table 1:
parameter value Type (B) Description of the invention
t int Execution time, fromMinutes from day 00:00
w string Repeatedly, i.e. several times a week
a int Target value of device execution action
k int Duration of hold after device execution action
e int Target value after device execution action is finished
Further as a preferred embodiment of the method, the method further comprises:
and S24, judging that the integrity verification fails, and re-downloading the planned task file.
Further, as a preferred embodiment of the method, the step of judging that the integrity verification is passed, analyzing the rule of the planned task file, and judging whether the current state parameter of the device meets the rule specifically includes:
s31, judging that the integrity verification is passed, reading and analyzing the plan task file to obtain a rule file;
s32, putting the rule file into a memory;
s33, calculating the number of minutes of the current time of the equipment, and starting a timer;
and S34, accumulating the current equipment operating minutes per minute by the timer, matching the current equipment operating minutes with the rule file in the memory when the minutes change, and judging whether the current state parameters of the equipment meet the rules or not.
The equipment monitors the change of a planned task file, and when the file exists, the task content is analyzed and put into a memory; calculating the number of minutes of the current equipment through the time service of the base station, and starting a timer; the timer accumulates the current equipment operation minutes per minute, and when the minutes change, the current equipment operation minutes can be matched with the timing task data in the memory; when the time is matched, taking out the corresponding valve control rule, adjusting the valve opening, and judging whether a holding timer needs to be started according to the k parameter; after the action of the valve is finished, writing in a corresponding operation log, performing subsequent processing by a log manager, directly uploading or waiting for network uploading, and finishing the rule execution;
further, as a preferred embodiment of the method, the uploading the operation log includes direct uploading and waiting for network uploading.
The invention is a logic and method for executing planned tasks by equipment in fixed time, a working mode is added for the equipment, the working stability of the equipment is greatly improved by internal operation optimization, once the equipment successfully downloads a fixed time task file, all subsequent fixed time rules can take effect in the online or offline stage of the equipment, and the internal time of the equipment depends on base station time service, so that the problem of network fluctuation can be effectively solved; after the user configures the timing rule for the equipment, the user does not need to perform manual intervention, the running state of the equipment can be mastered remotely, and the automatic task is reported to be active pushing after being completed, so that the user can be ensured to comprehensively know the dynamic state of the equipment; different task rules can be customized for different application scenes, and the rules are mutually independent; log persistence is carried out on the execution result of each regular task, and log record removal is carried out after the log record is reported, so that each action is guaranteed to be traced and accurate to minutes; meanwhile, occupation of a large amount of network resources can be avoided, resource distribution is more reasonable, and complexity of equipment operation is simplified. The method has important significance for the automatic management of the equipment of the Internet of things.
As shown in fig. 2, a system for a device to execute a plan periodically includes:
the task configuration module is used for responding to the operation of a user on a configuration interface and generating a plan task file;
the file issuing module is used for issuing the plan task file to the equipment terminal and carrying out integrity verification;
the rule matching module is used for analyzing the rule of the planned task file and judging whether the current state parameter of the equipment meets the rule or not when the completeness verification is judged to be passed;
the equipment action module is used for controlling the equipment to execute corresponding actions when judging that the current state parameters of the equipment conform to the rules;
and the log processing module is used for writing the operation log and uploading the operation log.
The contents in the above method embodiments are all applicable to the present system embodiment, the functions specifically implemented by the present system embodiment are the same as those in the above method embodiment, and the beneficial effects achieved by the present system embodiment are also the same as those achieved by the above method embodiment.
An apparatus for periodically executing a plan by a device:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement a method for device-timing execution planning as described above.
The contents in the above method embodiments are all applicable to the present apparatus embodiment, the functions specifically implemented by the present apparatus embodiment are the same as those in the above method embodiments, and the advantageous effects achieved by the present apparatus embodiment are also the same as those achieved by the above method embodiments.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. A method for a device to execute a plan regularly is characterized by comprising the following steps:
generating a planning task file in response to the operation of a user on a configuration interface;
issuing a plan task file to an equipment end and carrying out integrity verification;
judging whether the integrity verification is passed, analyzing the rule of the planned task file, and judging whether the current state parameter of the equipment conforms to the rule;
judging that the current state parameters of the equipment conform to rules, and controlling the equipment to execute corresponding actions;
and writing the operation log and uploading the operation log.
2. The method for executing a plan periodically by a device according to claim 1, wherein the step of generating a plan task file in response to a user operation on a configuration interface specifically includes:
providing a configuration interface by a server, and setting the configuration interface by a user according to needs;
the setting comprises that the timing control equipment executes a certain action and executes another action after keeping a preset time after executing the certain action at a fixed time;
and generating a planned task file according to the setting of the user.
3. The method for regularly executing the plan by the device according to claim 2, wherein the step of issuing the plan task file to the device side and performing integrity verification specifically comprises:
the server side issues a plan task file to the equipment side;
the equipment side downloads the planned task file and carries out hash value calculation on the planned task file;
and comparing the hash value obtained by calculation with the hash value of the server side, and verifying the integrity of the planned task file.
4. The method for the device to perform planning periodically according to claim 3, further comprising:
and judging that the integrity verification fails, and re-downloading the planned task file.
5. The method for executing a plan regularly by a device according to claim 4, wherein the step of determining that the integrity verification passes, parsing the rule of the plan task file, and determining whether the current state parameter of the device conforms to the rule specifically includes:
judging that the integrity verification is passed, reading and analyzing the plan task file to obtain a rule file;
putting the rule file into a memory;
calculating the number of minutes of the current time of the equipment, and starting a timer;
the timer accumulates the current equipment operation minutes per minute, and when the minutes change, the current equipment operation minutes can be matched with the rule file in the memory, and whether the current state parameters of the equipment meet the rules or not is judged.
6. The method for the device to execute the plan regularly according to claim 5, wherein the uploading the operation log comprises direct uploading and waiting for network uploading.
7. A system for a device to periodically execute a plan, comprising:
the task configuration module is used for responding to the operation of a user on a configuration interface and generating a plan task file;
the file issuing module is used for issuing the plan task file to the equipment terminal and carrying out integrity verification;
the rule matching module is used for analyzing the rule of the planned task file and judging whether the current state parameter of the equipment meets the rule or not when the completeness verification is judged to be passed;
the equipment action module is used for controlling the equipment to execute corresponding actions when judging that the current state parameters of the equipment conform to the rules;
and the log processing module is used for writing the operation log and uploading the operation log.
8. An apparatus for periodically executing a plan by a device, comprising:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement a method for a device to periodically execute a plan as claimed in any one of claims 1 to 6.
CN202111249545.2A 2021-10-26 2021-10-26 Method, system and device for regularly executing plan by equipment Pending CN114039852A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111249545.2A CN114039852A (en) 2021-10-26 2021-10-26 Method, system and device for regularly executing plan by equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111249545.2A CN114039852A (en) 2021-10-26 2021-10-26 Method, system and device for regularly executing plan by equipment

Publications (1)

Publication Number Publication Date
CN114039852A true CN114039852A (en) 2022-02-11

Family

ID=80141975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111249545.2A Pending CN114039852A (en) 2021-10-26 2021-10-26 Method, system and device for regularly executing plan by equipment

Country Status (1)

Country Link
CN (1) CN114039852A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811480A (en) * 2015-04-01 2015-07-29 成都慧农信息技术有限公司 Customized system and method of agriculture internet of things remote layout
CN104865834A (en) * 2015-04-24 2015-08-26 汤伟杰 Intelligent household Internet of things control system and method
CN107783824A (en) * 2016-08-25 2018-03-09 北京京东尚科信息技术有限公司 A kind of method and service terminal device for controlling intelligent home device
CN107943453A (en) * 2016-10-12 2018-04-20 厦门雅迅网络股份有限公司 A kind of method and system for realizing the self-defined plan target of operational system
CN109614159A (en) * 2017-09-30 2019-04-12 北京国双科技有限公司 Plan target distribution, introduction method and device
CN110389815A (en) * 2018-04-18 2019-10-29 阿里巴巴集团控股有限公司 Task processing method, apparatus and system
CN113242631A (en) * 2021-04-20 2021-08-10 深圳市海洋王照明工程有限公司 Illumination control method, device, system and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811480A (en) * 2015-04-01 2015-07-29 成都慧农信息技术有限公司 Customized system and method of agriculture internet of things remote layout
CN104865834A (en) * 2015-04-24 2015-08-26 汤伟杰 Intelligent household Internet of things control system and method
CN107783824A (en) * 2016-08-25 2018-03-09 北京京东尚科信息技术有限公司 A kind of method and service terminal device for controlling intelligent home device
CN107943453A (en) * 2016-10-12 2018-04-20 厦门雅迅网络股份有限公司 A kind of method and system for realizing the self-defined plan target of operational system
CN109614159A (en) * 2017-09-30 2019-04-12 北京国双科技有限公司 Plan target distribution, introduction method and device
CN110389815A (en) * 2018-04-18 2019-10-29 阿里巴巴集团控股有限公司 Task processing method, apparatus and system
CN113242631A (en) * 2021-04-20 2021-08-10 深圳市海洋王照明工程有限公司 Illumination control method, device, system and storage medium

Similar Documents

Publication Publication Date Title
CN111209077A (en) Deep learning framework design method
US11361262B2 (en) Blockchain-enabled edge computing method for production scheduling
CN104732285A (en) Performance optimizing strategy obtaining and terminal performance optimizing method, server and terminal
CN110764747A (en) Data calculation scheduling method based on Airflow
CN114039852A (en) Method, system and device for regularly executing plan by equipment
CN103164338B (en) The analogy method of concurrent processing system and device
CN110750453A (en) HTML 5-based intelligent mobile terminal testing method, system, server and storage medium
CN1327656C (en) Method for updating system apparatus
CN114327839B (en) Task optimization method and system
CN114138597B (en) Operating system performance tuning device, method, equipment and storage medium
CN111679899B (en) Task scheduling method, device, platform equipment and storage medium
US20230229216A1 (en) System and methods for server power management
CN115080370A (en) Software concurrency capability evaluation method and device, storage medium and electronic equipment
CN110188490B (en) Method and device for improving data simulation efficiency, storage medium and electronic device
CN113238875A (en) Queue-based request frequency control system and control method
CN114443262A (en) Computing resource management method, device, equipment and system
CN111694717A (en) Method and device for determining pressure bearing capacity value of system
CN112035523A (en) Method, device and equipment for determining parallelism and storage medium
CN109547557A (en) Industry internet Intelligent Decision-making Method, readable storage medium storing program for executing and terminal
CN114745433B (en) Method and system for operating mass equipment data access to Internet of things
US20180341521A1 (en) Managing job schedules
CN104008054A (en) Device and method for testing software performance
CN109660625A (en) A kind of edge device control method, edge device and computer readable storage medium
CN216161007U (en) Big data artificial intelligence control system
CN115658793A (en) Data processing method, system, storage medium and processor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination