CN115967641A - Method and device for batch equipment parameter operation, computer equipment and medium - Google Patents

Method and device for batch equipment parameter operation, computer equipment and medium Download PDF

Info

Publication number
CN115967641A
CN115967641A CN202310252053.1A CN202310252053A CN115967641A CN 115967641 A CN115967641 A CN 115967641A CN 202310252053 A CN202310252053 A CN 202310252053A CN 115967641 A CN115967641 A CN 115967641A
Authority
CN
China
Prior art keywords
target equipment
parameter
equipment
target
execution time
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.)
Granted
Application number
CN202310252053.1A
Other languages
Chinese (zh)
Other versions
CN115967641B (en
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.)
Zhejiang Chint Instrument and Meter Co Ltd
Original Assignee
Zhejiang Chint Instrument and Meter 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 Zhejiang Chint Instrument and Meter Co Ltd filed Critical Zhejiang Chint Instrument and Meter Co Ltd
Priority to CN202310252053.1A priority Critical patent/CN115967641B/en
Publication of CN115967641A publication Critical patent/CN115967641A/en
Application granted granted Critical
Publication of CN115967641B publication Critical patent/CN115967641B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention provides a method, a device, computer equipment and a medium for batch equipment parameter operation, which comprises the following steps: selecting target equipment to be remotely operated and determining a parameter scheme, a scheduled execution time and a safety error duration corresponding to the target equipment; loading the parameter schemes into a system task pool, wherein the system task pool is used for storing the parameter schemes of a plurality of target devices, and the parameter schemes are executed in a multithread concurrent manner; judging the communication connection mode of the target equipment; if the communication connection mode of the target equipment is long connection, calculating a safe time interval in which the task can be executed according to the planned execution time and the safe error duration; judging whether the current execution time of the target equipment falls into a safe time interval or not; and if the current execution time of the target equipment falls into the safe time interval and the current network state of the target equipment is in an online state, controlling the target equipment to execute the parameter scheme. The invention considers that the communication connection mode and the safety time interval of the equipment are different, and the equipment is accurately operated.

Description

Method and device for batch equipment parameter operation, computer equipment and medium
Technical Field
The invention relates to the field of instruments, in particular to a batch equipment parameter operation method, a batch equipment parameter operation device, computer equipment and a medium.
Background
With the continuous development of market business requirements and the continuous innovation of application technologies, the requirements of systematic remote management of equipment operation parameters in various equipment fields are higher and higher, the accuracy and the real-time performance are higher and higher, and the trend of centralized unified platform scheduling management of different equipment types is more and more obvious.
In a general equipment information management system, because different equipment network communication modes are different and the network communication quality is unstable, generally scheduled task execution is only compared with the current time of the system, the equipment communication connection modes and execution safety time intervals under different equipment and different types of operation are not accurately considered, actual hysteresis exists in equipment communication state information in the management system, and error zones of true and false offline of equipment exist, so that the management and control of the management system on the remote operation of equipment operation parameters are difficult to realize in batch safety, accuracy, real time and high success rate, and the whole operation cost and maintenance cost are increased.
Therefore, how to solve the problem that the communication connection mode and the execution safety time interval of different devices and devices under different types of operations are not accurately considered becomes a technical problem to be solved and a focus of research all the time by a person skilled in the art.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a batch equipment parameter operation method, a batch equipment parameter operation device, computer equipment and a medium.
A first aspect of the present invention provides a method of batch tool parameter operation, comprising: selecting target equipment to be remotely operated and determining a parameter scheme, a scheduled execution time and a safety error duration corresponding to the target equipment; loading the parameter schemes into a system task pool, wherein the system task pool is used for storing the parameter schemes of a plurality of target devices, and each parameter scheme is executed in a multithread concurrent manner; judging a communication connection mode of the target equipment; if the communication connection mode of the target equipment is long connection, calculating a safe time interval in which the task can be executed according to the planned execution time and the safe error duration; judging whether the current execution time of the target equipment falls into a safe time interval or not; and if the current execution time of the target equipment falls into the safety time interval and the current network state of the target equipment is in an online state, controlling the target equipment to execute the parameter scheme.
The beneficial effects are that: the invention judges the communication connection mode of the target equipment, sets different processing methods according to different connection modes, and also judges whether the current execution time of the target equipment falls into the safety time interval and the network state of the target equipment when the equipment is operated in batches, thereby realizing the management and control of the target equipment with batch safety, accuracy, real time and high success rate in consideration of various conditions of the target equipment, and reducing the error rate of remote batch operation caused by the time-space difference between the actual operator and the equipment environment safety.
With reference to the first aspect, in the first implementation manner of the first aspect, if the communication connection manner of the target device is short connection and the current network state of the target device is an online state, the target device is controlled to execute the parameter scheme.
The beneficial effects are that: when the communication mode of the target equipment is judged to be short connection and the current network state of the target equipment is in an online state, the target equipment is directly controlled to execute the parameter scheme without waiting for the completion of the judgment of other equipment, meanwhile, different control modes are generated by different equipment in the judgment process, the specific condition is specifically analyzed, and errors are not easy to occur.
With reference to the first aspect or the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the determining a communication connection manner of the target device is performed by: if the heartbeat frame record exists in the target equipment, judging that the communication connection mode of the target equipment is long connection; and if the heartbeat frame record does not exist in the target equipment, judging that the communication connection mode of the target equipment is short connection.
The beneficial effects are that: in the batch devices, the communication connection mode of each device may be different, and the communication connection mode of the target device may be determined in consideration of all the devices in the batch devices for subsequent operations.
With reference to the first aspect, in a third implementation manner of the first aspect, the upper limit value of the safe time interval is the sum of the scheduled execution time and the safe error time; the lower limit value of the safety time interval is the difference between the scheduled execution time and the safety error duration.
The beneficial effects are that: and calculating the upper limit value and the lower limit value of a safe time interval, wherein the operation is safe in the safe time interval, and other judgments are required to be carried out outside the safe time interval to ensure that each target device is safe when executing the command.
With reference to the first aspect, in a fourth implementation manner of the first aspect, if the current execution time of the target device falls within the safe time interval and the current network state of the target device is an offline state, the step of determining whether the current execution time of the target device falls within the safe time interval is returned.
The beneficial effects are that: when the target device is in an off-line state, even if the current execution time of the target device falls into the safe time interval, the step of judging whether the current execution time of the target device falls into the safe time interval is returned, and each device is guaranteed to receive the remote instruction.
With reference to the first aspect or the third implementation manner of the first aspect, in the fifth implementation manner of the first aspect, if the current execution time of the target device is less than the lower limit of the executable safe time interval, after waiting for the dynamic duration, returning to the step of determining whether the current execution time of the target device falls into the safe time interval; and if the current execution time of the target equipment is greater than the upper limit value of the safety time interval, marking the parameter scheme of the target equipment as failure.
With reference to the fifth implementation manner of the first aspect, in the sixth implementation manner of the first aspect, a queue to which the parameter solution of the target device belongs in the system task pool is determined, and the dynamic duration is determined according to a sum of estimated execution durations of initial configurations of the parameter solutions located before the parameter solution of the target device in the queue.
With reference to the first implementation manner of the first aspect, in a seventh implementation manner of the first aspect, if the communication connection manner of the target device is short connection and the current network state of the target device is an offline state, determining a size relationship between the cycle number of the parameter scheme and the repetition number configured in the system task pool; if the cycle times are larger than the repeated times configured in the system task pool, marking the parameter scheme of the target equipment as failure; and if the cycle number is less than or equal to the repetition number configured by the system task pool, after waiting for a fixed time length of initial configuration, adding 1 to the cycle number of the parameter scheme, and returning to the step of judging the current network state of the target equipment.
The beneficial effects are that: and if the communication connection mode of the target equipment is short connection and the current network state of the target equipment is an offline state, returning to judge the network state, but if the cycle number cannot exceed the configured maximum cycle number in the system task pool, marking the parameter scheme of the target equipment as failure if the cycle number exceeds the configured maximum cycle number, limiting the cycle number, and not cycling all the time to cause resource waste.
A second aspect of the invention provides an apparatus for batch tool parameter operation, comprising: the scheme management module is used for selecting target equipment to be remotely operated and determining a parameter scheme, a scheduled execution time and a safety error duration corresponding to the target equipment; the task pool device module is used for loading the parameter schemes into a system task pool, the system task pool is used for storing the parameter schemes of a plurality of target devices, and the parameter schemes are executed in a multithread concurrent mode; the communication identification and judgment module is used for judging the communication connection mode of the target equipment; the safety error duration calculation module is used for calculating a safety time interval of the executable task according to the planned execution time and the safety error duration if the communication connection mode of the target equipment is long connection; the safety error duration judging module is used for judging whether the current execution time of the target equipment falls into a safety time interval or not; and the control execution module is used for controlling the target equipment to execute the parameter scheme when the current execution time of the target equipment falls into the safe time interval and the current network state of the target equipment is in an online state.
The beneficial effects are that: the invention judges the communication connection mode of the target equipment, sets different processing methods according to different connection modes, and also judges whether the current execution time of the target equipment falls into the safety time interval and the network state of the target equipment when the equipment is operated in batches, thereby realizing the management and control of the target equipment with batch safety, accuracy, real time and high success rate in consideration of various conditions of the target equipment, and reducing the error rate of remote batch operation caused by the time-space difference between the actual operator and the equipment environment safety.
A third aspect of the invention provides a computer apparatus comprising, at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to perform the method of batch device parameter operation of the first aspect and any one of its alternative embodiments.
A fourth aspect of the present invention provides a computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of batch device parameter operation of any one of the first aspect and its optional embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention.
FIG. 1 is a flow chart illustrating a method for batch equipment parameter operation according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an apparatus for batch plant parameter operation provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a hardware structure of a computer device according to an embodiment of the present invention;
fig. 4 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a method for operating parameters of batch equipment, as shown in fig. 1, including the following steps:
and S001, selecting target equipment to be remotely operated and determining a parameter scheme, a scheduled execution time and a safety error duration corresponding to the target equipment.
In an optional embodiment, according to different service types and different device types, corresponding device parameter configuration templates and configuration values are selected, different parameter schemes are created, and execution time and safety error duration are planned.
In an optional embodiment, the scheduled execution time is the time for scheduled execution of the parameter scheme, the safety error duration is a positive and negative time range allowable for execution time of different types of operations under different devices, and a configurator sets the parameter value according to actual requirements and conditions when creating the parameter scheme.
In an optional embodiment, a parameter scheme F corresponding to a target device is exemplarily created, a scheduled execution time B and a safety error duration C are planned, the parameter scheme includes an instruction to be executed, such as a valve opening action command a, to bind a device S1 \8230, which needs to be executed, to the parameter scheme, the parameter scheme includes parameters of the device to be executed, the device to be executed may be different types of devices, and the parameters may also be parameters of different types of devices, such as an electric meter parameter, a water meter parameter and a gas meter parameter, and may also be parameters of a concentrator or a collector, which are determined according to actual applications.
And S002, loading the parameter schemes into a system task pool, wherein the system task pool is used for storing the parameter schemes of a plurality of target devices, and each parameter scheme is executed in a multithreading and concurrent mode.
In an optional embodiment, a new parameter scheme F is loaded into the system task pool, and the parameter schemes that are already being executed in the task pool are not affected and run independently.
And S003, judging the communication connection mode of the target equipment.
In an alternative embodiment, the devices are communicatively connected in two ways, a long connection and a short connection.
In an alternative embodiment, the long connection is: after the equipment is online, heartbeat is sent to the server end every a period of time to maintain the connection state, and the equipment and the server end are kept online for a long time.
In an alternative embodiment, the short connection is: the equipment sends a login request to the server for on-line by automatically or manually triggering an on-line condition only when reporting data, events and the like to communicate with the server, the equipment or the server is actively disconnected after the communication is completed or the communication is not interacted with the server after the rated time is exceeded. Such as GPRS communication gas or water meter devices.
And step S004, if the communication connection mode of the target equipment is long connection, calculating a safe time interval in which the task can be executed according to the planned execution time and the safe error time.
In an optional embodiment, for example, the system task autonomously determines the communication connection mode of the associated electricity meter in the parameter scheme F, and the determination result is long connection.
In an optional embodiment, the upper limit value of the safety time interval is the sum of the scheduled execution time and the safety error time length, and the lower limit value of the safety time interval is the difference between the scheduled execution time and the safety error time length.
In an alternative embodiment, the system calculates the secure time interval, for example
Figure SMS_1
Upper limit of safety time interval
Figure SMS_2
= planned execution time B-safety error duration C, interval upper limit value = £ based on>
Figure SMS_3
= planned execution time B + safety error duration C.
And (S005) judging whether the current execution time of the target equipment falls into a safe time interval.
In an optional embodiment, the system autonomously determines the current execution time M of the task and the safe time interval
Figure SMS_4
The relationship (2) of (c).
And S006, if the current execution time of the target equipment falls into the safe time interval and the current network state of the target equipment is in an online state, controlling the target equipment to execute the parameter scheme.
In an optional embodiment, if the current execution time of the target device falls within the safe time interval, the current network state of the target device is determined.
In an optional embodiment, if the current execution time of the target device falls within the safe time interval and the current network state of the target device is the offline state, the step of determining whether the current execution time of the target device falls within the safe time interval is returned.
In an optional embodiment, if the current execution time of the target device is less than the lower limit of the executable safe time interval, after waiting for the dynamic duration, returning to the step of determining whether the current execution time of the target device falls into the safe time interval.
In an optional embodiment, if the current execution time of the target device is greater than the upper limit value of the safe time interval, the parameter scheme of the target device is marked as failed.
In an optional embodiment, if the current execution time of the target device is greater than the upper limit value of the safety time interval, it is indicated that the parameter scheme does not meet the safety execution requirement and cannot be executed any more, the parameter scheme is removed from the system task pool, the parameter scheme of the target device is marked as a failure, and a result is stored in a persistent data layer for a next analysis and reissue operation, and the execution process is ended.
In an alternative embodiment, the dynamic duration is determined by:
determining a queue to which the parameter scheme of the target equipment belongs in the system task pool, estimating the sum of execution time lengths according to the initial configuration of each parameter scheme positioned in front of the parameter scheme of the target equipment in the queue, and determining the dynamic time length.
In an alternative embodiment, the dynamic duration T = fixed wait duration
Figure SMS_5
+ protocol->
Figure SMS_6
The type initial configuration estimates an execution duration + \8230 ++ scheme>
Figure SMS_7
Type initial configuration evaluates execution duration in which a scenario &>
Figure SMS_8
\8230Thescheme>
Figure SMS_9
Setting the waiting time length for the parameter scheme waiting for queuing to be executed in front of the parameter scheme queue after exceeding the maximum parallel operation number configured by the task pool device
Figure SMS_10
The setting may be performed according to actual requirements, and embodiments of the present invention are not limited specifically.
In the embodiment of the invention, the communication connection mode of the target equipment is judged, different processing methods are set according to different connection modes, whether the current execution time of the target equipment falls into the safety time interval or not and the network state of the target equipment are also judged when the equipment is operated in batch, the management and control of the target equipment with batch safety, accuracy, real time and high success rate are realized by considering various conditions of the target equipment, and the error rate of remote batch operation caused by the time-space difference between the actual operator and the equipment environment safety is reduced.
In an alternative embodiment, as shown in fig. 1, if the communication connection mode of the target device is short connection and the current network state of the target device is online, the target device is controlled to execute the parameter scheme.
In an optional embodiment, if the communication connection mode of the target device is short connection and the device cannot be online in real time, the current network state of the device is determined, which includes a network online state or a network offline state.
In an optional embodiment, if the communication connection mode of the target device is short connection and the current network state of the target device is an offline state, the relationship between the cycle number of the parameter scheme and the repetition number configured in the system task pool is determined.
In an optional embodiment, the number of times that the loop has been executed refers to that the number of times that the parameter scheme has been looped once per loop is incremented by 1, that is, if the current network state of the target device is determined to be the offline state, the step of determining the current network state of the device needs to be returned, and the number of times that the loop has been incremented by 1 every time the current network state of the target device is returned.
In an optional embodiment, the number of times of repetition of the system task pool configuration is a value of the number of times that each parameter scheme task set by the task pool device can be executed in a cycle, that is, the step of returning to the current network state of the judgment device cannot be performed all the time, and an upper limit of the number of times of the cycle is set in the task pool device in advance.
In an optional embodiment, if the number of cycles is greater than the number of repetitions of the system task pool configuration, the parameter scheme of the target device is marked as failed.
In an optional embodiment, if the cycle number is less than or equal to the repetition number configured in the system task pool, after waiting for a fixed time length of initial configuration, adding 1 to the cycle number of the parameter scheme, and returning to the step of determining the current network state of the target device. The fixed duration of the initial configuration may be set according to actual requirements, and is not particularly limited in the embodiment of the present invention.
In an optional embodiment, the communication connection mode of the target device is determined by the following steps: if the heartbeat frame record exists in the target equipment, judging that the communication connection mode of the target equipment is long connection; and if the heartbeat frame record does not exist in the target equipment, judging that the communication connection mode of the target equipment is short connection.
An embodiment of the present invention further provides a device for operating parameters of batch equipment, as shown in fig. 2, including the following modules:
the plan management module 201 is configured to select a target device to be remotely operated and determine a parameter plan, a scheduled execution time, and a safety error duration corresponding to the target device, for details, refer to the description of step S001 in the foregoing embodiment, and details are not described here.
The task pool device module 202 is configured to load the parameter schemes into a system task pool, where the system task pool is configured to store the parameter schemes of multiple target devices, and the parameter schemes are executed concurrently in multiple threads, for details, refer to the description of step S002 in the foregoing embodiment, and are not described here again.
The communication identification and determination module 203 is configured to determine a communication connection manner of the target device, for details, refer to the description of step S003 in the foregoing embodiment, and are not described herein again.
If the communication connection mode of the target device is long connection, the safety error duration calculation module 204 is configured to calculate a safety time interval in which the task can be executed according to the scheduled execution time and the safety error duration, for details, refer to the description of step S004 in the foregoing embodiment, and no further description is given here.
The safety error duration determining module 205 is configured to determine whether the current execution time of the target device falls within the safety time interval, for details, refer to the description of step S005 in the foregoing embodiment, and no further description is given here.
The control execution module 206 is configured to control the target device to execute the parameter scheme when the current execution time of the target device falls into the safe time interval and the current network state of the target device is the online state, for details, refer to the description of step S006 in the foregoing embodiment, and are not described herein again.
The device for batch equipment parameter operation provided by the embodiment of the invention judges the communication connection mode of the target equipment, sets different processing methods according to different connection modes, and also judges whether the current execution time of the target equipment falls into the safety time interval or not and the network state of the target equipment when the equipment is subjected to batch operation.
An embodiment of the present invention further provides a computer device, and as shown in fig. 3, a hardware structure diagram of a computer device is provided according to an exemplary embodiment.
As shown in fig. 3, the apparatus includes one or more processors 301 and a storage 302, where the storage 302 includes a persistent memory, a volatile memory, and a hard disk, and one processor 301 is taken as an example in fig. 3. The apparatus may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 may be connected by a bus or other means, and fig. 3 illustrates the connection by a bus as an example.
Processor 301 may be a Central Processing Unit (CPU). The Processor 301 may also be other general purpose Processor, digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or a combination thereof. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 302 is a non-transitory computer-readable storage medium, including a persistent memory, a volatile memory, and a hard disk, and can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instruction modules corresponding to the service management method in the embodiment of the present application. The processor 301 executes various functional applications of the server and data processing by running non-transitory software programs, instructions and modules stored in the memory 302, so as to implement any one of the above-mentioned methods for batch device parameter operation.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data used as needed or desired, and the like. Further, the memory 302 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 302 may optionally include memory located remotely from the processor 301, which may be connected to the data processing apparatus via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may receive input numeric or character information and generate key signal inputs related to user settings and function control. The output means 304 may comprise a display device such as a display screen.
One or more modules are stored in the memory 302, which when executed by the one or more processors 301 perform the method as shown in fig. 1.
The product can execute the method provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For details of the technique not described in detail in the embodiment, reference may be made to the related description in the embodiment shown in fig. 1.
An embodiment of the present invention further provides a computer-readable storage medium, as shown in fig. 4, a computer-executable instruction 401 is stored in the computer-readable storage medium, and the computer-executable instruction 401 may execute the method for batch device parameter operation in any method embodiment described above.
The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk Drive (HDD), or a Solid-State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (11)

1. A method of batch plant parameter operation, comprising the steps of:
selecting target equipment to be remotely operated and determining a parameter scheme, a scheduled execution time and a safety error duration corresponding to the target equipment;
loading the parameter schemes into a system task pool, wherein the system task pool is used for storing the parameter schemes of a plurality of target devices, and each parameter scheme is executed in a multithreading and concurrent mode;
judging the communication connection mode of the target equipment;
if the communication connection mode of the target equipment is long connection, calculating a safe time interval in which a task can be executed according to the planned execution time and the safe error duration;
judging whether the current execution time of the target equipment falls into the safe time interval or not;
and if the current execution time of the target equipment falls into the safe time interval and the current network state of the target equipment is in an online state, controlling the target equipment to execute the parameter scheme.
2. The method of batch equipment parameter operation of claim 1, further comprising:
and if the communication connection mode of the target equipment is short connection and the current network state of the target equipment is an online state, controlling the target equipment to execute the parameter scheme.
3. The method for batch device parameter operation according to claim 1 or 2, wherein the communication connection mode of the target device is determined by the following steps:
if the target equipment has the heartbeat frame record, judging that the communication connection mode of the target equipment is long connection;
and if the heartbeat frame record does not exist in the target equipment, judging that the communication connection mode of the target equipment is short connection.
4. The method of batch equipment parameter operation of claim 1,
the upper limit value of the safe time interval is the sum of the plan execution time and the safe error time;
and the lower limit value of the safety time interval is the difference between the plan execution time and the safety error time length.
5. The method according to claim 1, wherein if the current execution time of the target device falls within the safe time interval and the current network state of the target device is an offline state, the step of determining whether the current execution time of the target device falls within the safe time interval is performed.
6. The method of batch plant parameter operation of claim 1 or 4,
if the current execution time of the target equipment is less than the lower limit value of the executable safe time interval, returning to the step of judging whether the current execution time of the target equipment falls into the safe time interval or not after waiting for the dynamic time;
and if the current execution time of the target equipment is greater than the upper limit value of the safe time interval, marking the parameter scheme of the target equipment as failure.
7. The method of batch device parameter operation of claim 6,
determining a queue to which the parameter scheme of the target device belongs in the system task pool, and determining the dynamic time according to the sum of initial configuration estimation execution time of each scheme before the parameter scheme of the target device in the queue.
8. The method of batch equipment parameter operation of claim 2,
if the communication connection mode of the target equipment is short connection and the current network state of the target equipment is an off-line state, judging the size relation between the cycle times of the parameter scheme and the repetition times configured by the system task pool;
if the cycle times are larger than the repetition times configured in the system task pool, marking the parameter scheme of the target equipment as failure;
and if the cycle number is less than or equal to the repetition number configured by the system task pool, after waiting for a fixed time length of initial configuration, adding 1 to the cycle number of the parameter scheme, and returning to the step of judging the current network state of the target equipment.
9. An apparatus for batch plant parametric operation, comprising the following modules:
the system comprises a scheme management module, a parameter setting module and a safety error management module, wherein the scheme management module is used for selecting target equipment to be remotely operated and determining a parameter scheme, a scheduled execution time and a safety error duration corresponding to the target equipment;
the task pool device module is used for loading the parameter schemes into a system task pool, the system task pool is used for storing the parameter schemes of a plurality of target devices, and the parameter schemes are executed in a multithread concurrent mode;
the communication identification and judgment module is used for judging the communication connection mode of the target equipment;
the safety error duration calculation module is used for calculating a safety time interval in which a task can be executed according to the planned execution time and the safety error duration if the communication connection mode of the target equipment is long connection;
the safety error duration judging module is used for judging whether the current execution time of the target equipment falls into the safety time interval or not;
and the control execution module is used for controlling the target equipment to execute the parameter scheme when the current execution time of the target equipment falls into the safe time interval and the current network state of the target equipment is in an online state.
10. A computer device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to perform the method of batch device parameter operation of any of claims 1-8.
11. A computer-readable storage medium storing computer instructions for causing a computer to perform a method of batch device parameter operations as claimed in any one of claims 1-8.
CN202310252053.1A 2023-03-16 2023-03-16 Method, device, computer equipment and medium for operating batch equipment parameters Active CN115967641B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310252053.1A CN115967641B (en) 2023-03-16 2023-03-16 Method, device, computer equipment and medium for operating batch equipment parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310252053.1A CN115967641B (en) 2023-03-16 2023-03-16 Method, device, computer equipment and medium for operating batch equipment parameters

Publications (2)

Publication Number Publication Date
CN115967641A true CN115967641A (en) 2023-04-14
CN115967641B CN115967641B (en) 2023-05-30

Family

ID=85894708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310252053.1A Active CN115967641B (en) 2023-03-16 2023-03-16 Method, device, computer equipment and medium for operating batch equipment parameters

Country Status (1)

Country Link
CN (1) CN115967641B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700937A (en) * 2016-01-04 2016-06-22 北京百度网讯科技有限公司 Multi-thread task processing method and device
WO2018010381A1 (en) * 2016-07-14 2018-01-18 日立楼宇技术(广州)有限公司 Multi-target elevator group control system and method
CN109634656A (en) * 2018-12-12 2019-04-16 厦门盈趣科技股份有限公司 A kind of batch device configuration method, equipment and configuration manager
US20190171494A1 (en) * 2017-12-04 2019-06-06 Cisco Technology, Inc. Cost-optimal cluster configuration analytics package
CN110390345A (en) * 2018-04-20 2019-10-29 复旦大学 A kind of big data cluster adaptive resource dispatching method based on cloud platform
WO2021024059A1 (en) * 2019-08-05 2021-02-11 Nokia Solutions And Networks Oy Systems, methods and apparatuses for automating context specific network function configuration
CN113485810A (en) * 2021-07-23 2021-10-08 平安科技(深圳)有限公司 Task scheduling execution method, device, equipment and storage medium
US20210367873A1 (en) * 2020-05-22 2021-11-25 Salesforce.Com, Inc. Interspersed message batching in a database system
WO2022057267A1 (en) * 2020-09-16 2022-03-24 上海商汤临港智能科技有限公司 Method and apparatus for configuring radars, and electronic device and storage medium
CN114519636A (en) * 2022-02-15 2022-05-20 中国农业银行股份有限公司 Batch service processing method, device, equipment and storage medium
CN114721801A (en) * 2022-04-08 2022-07-08 中国银行股份有限公司 Dynamic scheduling method and device for batch task execution time
CN115545549A (en) * 2022-11-03 2022-12-30 广东电网有限责任公司 Cluster energy storage capacity configuration method and device and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700937A (en) * 2016-01-04 2016-06-22 北京百度网讯科技有限公司 Multi-thread task processing method and device
WO2018010381A1 (en) * 2016-07-14 2018-01-18 日立楼宇技术(广州)有限公司 Multi-target elevator group control system and method
US20190171494A1 (en) * 2017-12-04 2019-06-06 Cisco Technology, Inc. Cost-optimal cluster configuration analytics package
CN110390345A (en) * 2018-04-20 2019-10-29 复旦大学 A kind of big data cluster adaptive resource dispatching method based on cloud platform
CN109634656A (en) * 2018-12-12 2019-04-16 厦门盈趣科技股份有限公司 A kind of batch device configuration method, equipment and configuration manager
WO2021024059A1 (en) * 2019-08-05 2021-02-11 Nokia Solutions And Networks Oy Systems, methods and apparatuses for automating context specific network function configuration
US20210367873A1 (en) * 2020-05-22 2021-11-25 Salesforce.Com, Inc. Interspersed message batching in a database system
WO2022057267A1 (en) * 2020-09-16 2022-03-24 上海商汤临港智能科技有限公司 Method and apparatus for configuring radars, and electronic device and storage medium
CN113485810A (en) * 2021-07-23 2021-10-08 平安科技(深圳)有限公司 Task scheduling execution method, device, equipment and storage medium
CN114519636A (en) * 2022-02-15 2022-05-20 中国农业银行股份有限公司 Batch service processing method, device, equipment and storage medium
CN114721801A (en) * 2022-04-08 2022-07-08 中国银行股份有限公司 Dynamic scheduling method and device for batch task execution time
CN115545549A (en) * 2022-11-03 2022-12-30 广东电网有限责任公司 Cluster energy storage capacity configuration method and device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗亚洲;孙树明;董毅峰;吕颖;: "华北电网在线安全稳定控制系统设计标准与一种实现方案", 华北电力技术 *

Also Published As

Publication number Publication date
CN115967641B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN108632365B (en) Service resource adjusting method, related device and equipment
WO2019095580A1 (en) Test method and apparatus, computer device, and readable storage medium
CN106557369A (en) A kind of management method and system of multithreading
CN114048857B (en) Calculation force distribution method and device and calculation force server
WO2012050734A1 (en) Intelligent interface for a distributed control system
US8832839B2 (en) Assessing system performance impact of security attacks
CN107491346A (en) A kind of task processing method of application, apparatus and system
WO2016155996A1 (en) Production system and method for controlling same
CN109144701A (en) A kind of task flow management method, device, equipment and system
CN110611707A (en) Task scheduling method and device
CN104820616A (en) Task scheduling method and device
CN114124767A (en) Automatic testing method and device for gateway network management strategy
CN113658351B (en) Method and device for producing product, electronic equipment and storage medium
CN111435227B (en) Smart home equipment testing method, device, equipment and medium
CN115033375A (en) Distributed task scheduling method, device, equipment and storage medium in cluster mode
CN115967641A (en) Method and device for batch equipment parameter operation, computer equipment and medium
Pan et al. Sustainable serverless computing with cold-start optimization and automatic workflow resource scheduling
CN109039714A (en) The management method and device of resource in cloud computing system
CN109885385B (en) Self-optimizing method, device and equipment for application server thread pool
US20220308567A1 (en) System and method for controlling non-product wafer, storage medium and electronic device
CN116187268A (en) Chip simulation verification method, device, equipment and storage medium
CN112084014A (en) Data processing method, device, equipment and medium
CN105281979A (en) Load test method for virtualization application platform
CN114880036B (en) Debugging method of debugging module for processing multi-core access in RISC-V system
CN112506691B (en) Digital twin application fault recovery method and system for multi-energy system

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
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Zhengtai Instrument Measurement Industrial Park, No.1 Liangce Road, Beibaixiang Town, Leqing City, Wenzhou City, Zhejiang Province, 325603

Patentee after: ZHEJIANG CHINT INSTRUMENT & METER Co.,Ltd.

Address before: 325603 Wenzhou Daqiao Industrial Park, Yueqing City, Wenzhou City, Zhejiang Province

Patentee before: ZHEJIANG CHINT INSTRUMENT & METER Co.,Ltd.