CN117250930A - Equipment linkage control method, system, device, terminal equipment and storage medium - Google Patents

Equipment linkage control method, system, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN117250930A
CN117250930A CN202311517308.9A CN202311517308A CN117250930A CN 117250930 A CN117250930 A CN 117250930A CN 202311517308 A CN202311517308 A CN 202311517308A CN 117250930 A CN117250930 A CN 117250930A
Authority
CN
China
Prior art keywords
target
equipment
control rule
linkage
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.)
Granted
Application number
CN202311517308.9A
Other languages
Chinese (zh)
Other versions
CN117250930B (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.)
Shenzhen Mantunsci Technology Co ltd
Original Assignee
Shenzhen Mantunsci Technology 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 Shenzhen Mantunsci Technology Co ltd filed Critical Shenzhen Mantunsci Technology Co ltd
Priority to CN202311517308.9A priority Critical patent/CN117250930B/en
Publication of CN117250930A publication Critical patent/CN117250930A/en
Application granted granted Critical
Publication of CN117250930B publication Critical patent/CN117250930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • G05B19/4183Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by data acquisition, e.g. workpiece identification
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/32Operator till task planning
    • G05B2219/32252Scheduling production, machining, job shop
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application discloses a device linkage control method, a system, a device, terminal equipment and a storage medium, wherein the device linkage control method comprises the following steps: acquiring equipment identification and acquired electrical data of target source equipment; determining a corresponding target coordinated control rule according to the equipment identifier of the target source equipment, wherein the target coordinated control rule comprises an action triggering condition; judging whether the electrical data accords with the action triggering condition; if so, controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule. Based on the scheme of the application, the linkage control mode has the characteristics of quick response and no need of excessive manual operation, and the problem of low response speed of a single control mode is solved.

Description

Equipment linkage control method, system, device, terminal equipment and storage medium
Technical Field
The present disclosure relates to the field of electrical equipment control technologies, and in particular, to a device linkage control method, a system, a device, a terminal device, and a storage medium.
Background
Along with the continuous popularization of the safe and energy-saving electricity utilization concept, the electricity utilization management system in production and life is correspondingly improved, and the intelligent degree of the electricity utilization management system is continuously improved.
Current more advanced power management systems generally involve the interaction of a variety of electrical devices, such as sensors, circuit breakers, alarms, and the like. For the control of these devices, a single control mode is often adopted, that is, a specific device is directly controlled by instructions. The single control method often involves a great deal of manual judgment and operation, and cannot adapt to some application scenes needing quick response.
Disclosure of Invention
The main purpose of the application is to provide a device linkage control method, a system, a device, a terminal device and a storage medium, which aim to solve the problem of slow response speed of a single control mode.
In order to achieve the above object, the present application provides an apparatus linkage control method, including:
acquiring equipment identification and acquired electrical data of target source equipment;
determining a corresponding target coordinated control rule according to the equipment identifier of the target source equipment, wherein the target coordinated control rule comprises an action triggering condition;
judging whether the electrical data accords with the action triggering condition or not;
if yes, controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule.
Optionally, before the step of acquiring the electrical data acquired by the target source device, the method further includes:
setting the target linkage control rule;
and storing configuration information corresponding to the target linkage control rule, wherein the configuration information is used for controlling corresponding linkage equipment to execute corresponding actions.
Optionally, before the step of setting the target coordinated control rule, the method further includes:
continuously monitoring the change condition of the coordinated control rule based on a preset timing monitoring task, wherein the change condition comprises setting and modification;
after the step of setting the target coordinated control rule, the method further includes:
if the change condition of the target coordinated control rule is monitored, acquiring a rule number of the target coordinated control rule and a corresponding device identifier of target source equipment;
associating the rule number of the target coordinated control rule with the equipment identifier of the corresponding target source equipment to obtain association information;
and storing the association information.
Optionally, the step of storing the association information includes:
and storing the associated information in a preset distributed cache.
Optionally, the step of determining the corresponding target coordinated control rule according to the device identifier of the target source device includes:
Acquiring corresponding association information from the distributed cache according to the equipment identifier of the target source equipment;
extracting a rule number of the target coordinated control rule from the associated information;
and determining a corresponding target coordinated control rule according to the rule number of the target coordinated control rule.
Optionally, the step of determining whether the electrical data meets the action triggering condition includes:
encapsulating the rule number of the target coordinated control rule and the electrical data into a trigger event, and pushing the trigger event to a preset message queue;
monitoring the message queue through a preset downstream control program;
if the downstream control program monitors the trigger event, extracting a rule number and the electrical data of the target coordinated control rule based on the trigger event;
acquiring the target coordinated control rule according to the rule number of the target coordinated control rule;
and judging whether the electrical data accords with the action triggering condition of the target coordinated control rule.
The embodiment of the application also provides an equipment linkage control system, which comprises a control platform, target source equipment and linkage equipment;
The control platform is used for acquiring the equipment identification of the target source equipment and the acquired electrical data; determining a corresponding target coordinated control rule according to the equipment identifier of the target source equipment, wherein the target coordinated control rule comprises an action triggering condition; judging whether the electrical data accords with the action triggering condition or not; if yes, controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule;
the target source equipment is used for collecting the electrical data and uploading the electrical data to the control platform;
and the linkage equipment is used for executing actions corresponding to the target linkage control rule.
The embodiment of the application also provides a device linkage control device, which comprises:
the acquisition module is used for acquiring the equipment identifier of the target source equipment and the acquired electrical data;
the query module is used for determining a corresponding target linkage control rule according to the equipment identifier of the target source equipment, wherein the target linkage control rule comprises an action triggering condition;
the judging module is used for judging whether the electrical data accords with the action triggering condition;
And the execution module is used for controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule if the electrical data accords with the action triggering condition.
The embodiment of the application also provides terminal equipment, which comprises a memory, a processor and an equipment linkage control program stored on the memory and capable of running on the processor, wherein the steps of the equipment linkage control method are realized when the equipment linkage control program is executed by the processor.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium is stored with a device linkage control program, and the device linkage control program realizes the steps of the device linkage control method when being executed by a processor.
The equipment linkage control method, the system, the device, the terminal equipment and the storage medium provided by the embodiment of the application are realized by acquiring the equipment identification of the target source equipment and the acquired electrical data; determining a corresponding target coordinated control rule according to the equipment identifier of the target source equipment, wherein the target coordinated control rule comprises an action triggering condition; judging whether the electrical data accords with the action triggering condition or not; if yes, controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule. Based on the scheme, firstly, the equipment identification and the electrical data of the target source equipment are acquired, the corresponding target linkage control rule is determined according to the equipment identification, whether the electrical data accords with the action triggering condition of the target linkage control rule is further judged, and if so, the linkage equipment is controlled to execute the corresponding action. The linkage control mode has the characteristics of quick response and no need of excessive manual operation, and solves the problem of low response speed of the single control mode.
Drawings
FIG. 1 is a schematic diagram of functional modules of a terminal device to which a linkage control device of the present application belongs;
FIG. 2 is a schematic flow chart of a first exemplary embodiment of a linkage control method of the device of the present application;
FIG. 3 is a flow chart of a second exemplary embodiment of a method for controlling equipment linkage of the present application;
FIG. 4 is a schematic flow chart of a third exemplary embodiment of a linkage control method of the device of the present application;
FIG. 5 is a flow chart of a fourth exemplary embodiment of a method for controlling equipment linkage of the present application;
FIG. 6 is a flowchart of a fifth exemplary embodiment of a linkage control method of an apparatus of the present application;
FIG. 7 is a flowchart of a sixth exemplary embodiment of a method for controlling equipment linkage of the present application;
fig. 8 is a system topology diagram related to an embodiment of a coordinated control system of an apparatus of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The main solutions of the embodiments of the present application are: acquiring equipment identification and acquired electrical data of target source equipment; determining a corresponding target coordinated control rule according to the equipment identifier of the target source equipment, wherein the target coordinated control rule comprises an action triggering condition; judging whether the electrical data accords with the action triggering condition or not; if yes, controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule. Based on the scheme, firstly, the equipment identification and the electrical data of the target source equipment are acquired, the corresponding target linkage control rule is determined according to the equipment identification, whether the electrical data accords with the action triggering condition of the target linkage control rule is further judged, and if so, the linkage equipment is controlled to execute the corresponding action. The linkage control mode has the characteristics of quick response and no need of excessive manual operation, and solves the problem of low response speed of the single control mode.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional modules of a terminal device to which a linkage control device of the present application belongs. The device linkage control device can be a device which is independent of the terminal device and can carry out device linkage control, and the device linkage control device can be borne on the terminal device in a form of hardware or software. The terminal equipment can be an intelligent mobile terminal with a data processing function such as a mobile phone and a tablet personal computer, and can also be a fixed terminal equipment or a server with a data processing function.
In this embodiment, the terminal device to which the device linkage control apparatus belongs at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores an operating system and a device linkage control program, and the device linkage control device can acquire a device identifier of the target source device and acquired electrical data; according to the equipment identification of the target source equipment, determining a corresponding target coordinated control rule; action triggering conditions in the target linkage control rule; judging whether the electrical data accords with a judging result of the action triggering condition; and according to the target linkage control rule, information such as an action instruction for controlling the corresponding linkage device to execute the corresponding action is stored in the memory 130; the output module 110 may be a display screen or the like. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein, the following steps are implemented when the device linkage control program in the memory 130 is executed by the processor:
acquiring equipment identification and acquired electrical data of target source equipment;
determining a corresponding target coordinated control rule according to the equipment identifier of the target source equipment, wherein the target coordinated control rule comprises an action triggering condition;
judging whether the electrical data accords with the action triggering condition or not;
if yes, controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule.
Further, the device linkage control program in the memory 130 when executed by the processor further performs the steps of:
setting the target linkage control rule;
and storing configuration information corresponding to the target linkage control rule, wherein the configuration information is used for controlling corresponding linkage equipment to execute corresponding actions.
Further, the device linkage control program in the memory 130 when executed by the processor further performs the steps of:
continuously monitoring the change condition of the coordinated control rule based on a preset timing monitoring task, wherein the change condition comprises setting and modification;
if the change condition of the target coordinated control rule is monitored, acquiring a rule number of the target coordinated control rule and a corresponding device identifier of target source equipment;
Associating the rule number of the target coordinated control rule with the equipment identifier of the corresponding target source equipment to obtain association information;
and storing the association information.
Further, the device linkage control program in the memory 130 when executed by the processor further performs the steps of:
and storing the associated information in a preset distributed cache.
Further, the device linkage control program in the memory 130 when executed by the processor further performs the steps of:
acquiring corresponding association information from the distributed cache according to the equipment identifier of the target source equipment;
extracting a rule number of the target coordinated control rule from the associated information;
and determining a corresponding target coordinated control rule according to the rule number of the target coordinated control rule.
Further, the device linkage control program in the memory 130 when executed by the processor further performs the steps of:
encapsulating the rule number of the target coordinated control rule and the electrical data into a trigger event, and pushing the trigger event to a preset message queue;
monitoring the message queue through a preset downstream control program;
If the downstream control program monitors the trigger event, extracting a rule number and the electrical data of the target coordinated control rule based on the trigger event;
acquiring the target coordinated control rule according to the rule number of the target coordinated control rule;
and judging whether the electrical data accords with the action triggering condition of the target coordinated control rule.
According to the scheme, the device identification of the target source device and the acquired electrical data are acquired; determining a corresponding target coordinated control rule according to the equipment identifier of the target source equipment, wherein the target coordinated control rule comprises an action triggering condition; judging whether the electrical data accords with the action triggering condition or not; if yes, controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule. In this embodiment, firstly, the device identifier and the electrical data of the target source device are acquired, the corresponding target coordinated control rule is determined according to the device identifier, whether the electrical data meets the action triggering condition of the target coordinated control rule is further determined, and if so, the coordinated device is controlled to execute the corresponding action. The linkage control mode has the characteristics of quick response and no need of excessive manual operation, and solves the problem of low response speed of the single control mode.
Referring to fig. 2, a first embodiment of an apparatus linkage control method of the present application provides a flow schematic, where the apparatus linkage control method includes:
step S10, acquiring equipment identification of target source equipment and acquired electrical data;
specifically, the execution body of the embodiment may be an intelligent power consumption management platform, and the intelligent power consumption management platform may also be understood as a control platform, where data interaction is performed between the intelligent power consumption management platform and the target source device based on UDP, HTTP or other communication protocols. The source device may be one or more of a circuit breaker device, a smoke sensor device, an illumination sensor device, a water level sensor device, a pressure sensor device, a temperature sensor device, etc.; the source equipment supports functions such as data acquisition, data uploading or downloading, action execution and the like, and can be regarded as a data source of electric data; the number of source devices that interact with the control platform is a number, and the target source device is one or more of the number of source devices.
The electricity management platform can acquire the device identification of the target source device and the acquired electrical data in an active or passive mode. Taking a target circuit breaker as an example, the target circuit breaker acquires different electrical data such as current, voltage, power, temperature, leakage conditions and the like from other sensors. Then, the electricity management platform actively acquires the electrical data and the equipment identification of the target circuit breaker from the target circuit breaker, or the electricity management platform passively receives the electrical data of the target circuit breaker and the equipment identification of the target circuit breaker.
Step S20, determining a corresponding target linkage control rule according to the equipment identifier of the target source equipment, wherein the target linkage control rule comprises an action triggering condition;
the association relation exists between the target source equipment and the corresponding target linkage control rule, and the association information based on the association relation can be stored in a database, a data table or other data storage files. After obtaining the equipment identifier of the target source equipment, the intelligent electricity management platform can obtain the association information according to the equipment identifier inquiry, further obtain the rule number of the target coordinated control rule according to the association information, and further determine the corresponding target coordinated control rule according to the rule number of the target coordinated control rule. The target coordinated control rules also associate target source devices with other coordinated devices and include action triggering conditions.
Step S30, judging whether the electrical data accords with the action triggering condition;
and under the target linkage control rule, judging whether the electrical data uploaded by the target source equipment accords with the action triggering condition. The electrical data may be a data value of a certain electrical index, for example, the target circuit breaker may specifically be a current value, a voltage value, a power value, a leakage condition, etc., and the action triggering condition may be a preset threshold, and the specific manner of judging may be to judge whether the data value of a certain electrical index is greater than or less than the preset threshold, so as to judge whether the action triggering condition is met. Wherein the preset threshold value can be one or more.
For example, the action triggering condition is met when the current value of the target source device is > 20A; or when the voltage value of the target source equipment is more than 280V, the action triggering condition is met; or the action triggering condition is met when the current value of the target source device is more than 20A and the voltage value is more than 280V.
It can be seen that the action triggering condition may relate to one or more of a current value, a voltage value, a power value, a leakage condition.
And S40, if so, controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule.
Specifically, if the judgment result obtained in the previous step indicates that the electrical data uploaded by the target source device meets the action triggering condition under the target coordinated control rule, further, the intelligent electricity consumption management platform sends an action execution instruction to the coordinated device associated with the target coordinated control rule. Accordingly, after receiving the action execution instruction, the linkage device executes the action predefined in the target linkage control rule. The linkage device may be a circuit breaker device, an alarm, or other device that may perform a particular action. Accordingly, the circuit breaker device performing the corresponding action may be breaking a circuit and the alarm performing the corresponding action may be issuing an alarm signal.
According to the scheme, the device identification of the target source device and the acquired electrical data are acquired; determining a corresponding target coordinated control rule according to the equipment identifier of the target source equipment, wherein the target coordinated control rule comprises an action triggering condition; judging whether the electrical data accords with the action triggering condition or not; if yes, controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule. In this embodiment, firstly, the device identifier and the electrical data of the target source device are acquired, the corresponding target coordinated control rule is determined according to the device identifier, whether the electrical data meets the action triggering condition of the target coordinated control rule is further determined, and if so, the coordinated device is controlled to execute the corresponding action. The linkage control mode has the characteristics of quick response and no need of excessive manual operation, and solves the problem of low response speed of the single control mode.
Further, referring to fig. 3, a flow schematic is provided in a second embodiment of the coordinated control method of the device of the present application, based on the embodiment shown in fig. 2, step S10 further includes, before acquiring the electrical data acquired by the target source device:
And S001, setting the target linkage control rule.
Specifically, before performing the device coordinated control, one or more coordinated control rules including a target coordinated control rule need to be set on the intelligent electricity management platform. Each coordinated control rule has a unique number, i.e., the rule number of the coordinated control rule, and the coordinated control rule may be associated with one or more devices. Taking a target linkage control rule as an example, the associated equipment targets comprise target source equipment and other linkage equipment, the electric data uploaded by the target source equipment is used as basic data for triggering actions, and the linkage equipment is used as equipment for executing the actions. In one case, if the target source device supports the execution of the action, the target source device itself may also act as the device that performs the action. In addition, each coordinated control rule records the corresponding action and the action triggering condition.
Step S002, storing configuration information corresponding to the target linkage control rule, where the configuration information is used to control the corresponding linkage device to execute the corresponding action.
Specifically, the configuration information corresponding to the target linkage control rule is used for controlling the linkage equipment to execute the corresponding action, that is, the content of the configuration information at least includes information indicating the linkage equipment executing the action, for example, the equipment identifier of the linkage equipment executing the action, and information of the action required to be executed by the linkage equipment, for example, a power-off instruction for controlling the linkage breaker equipment to perform power-off, or an alarm instruction for controlling the linkage alarm equipment to send an alarm signal. The configuration information corresponding to the target coordinated control rule can be stored in a cloud platform, an external server or other terminal equipment with a data storage function.
According to the embodiment, through the scheme, the target coordinated control rule is set; and storing configuration information corresponding to the target linkage control rule, wherein the configuration information is used for controlling corresponding linkage equipment to execute corresponding actions. In the embodiment, the target linkage control rule is preset, the configuration information corresponding to the target linkage control rule is stored, the configuration information provides basic conditions for automatic execution of the equipment linkage control, and the efficiency of the equipment linkage control is improved.
Further, referring to fig. 4, a flow chart is provided in a third embodiment of the coordinated control method of the device according to the present application, based on the embodiment shown in fig. 3, step S001 further includes, before setting the target coordinated control rule:
step S003, based on a preset timing monitoring task, continuously monitoring the change condition of the linkage control rule, wherein the change condition comprises setting and modification;
specifically, the timing monitoring task may be preset, and the execution interval of the timing monitoring task may be customized by an associated manager, for example, the execution interval may be set to one minute, one hour, or one day. The timing monitoring task can poll and monitor the linkage control rule, and can find out the newly added (i.e. set) linkage control rule or the modified linkage control rule.
Similarly, the target coordinated control rule set in step S001 will be monitored by the timing monitoring task.
It can be appreciated that if the execution interval of the timing monitoring task is set longer, the computational resources will be saved; if the execution interval of the timing monitoring task is set to be shorter, the change of the coordinated control rule can be monitored more timely.
Step S001, after the setting of the target coordinated control rule, further includes:
step S004, if the change condition of the target coordinated control rule is monitored, the rule number of the target coordinated control rule and the equipment identifier of the corresponding target source equipment are obtained;
specifically, the timing monitoring task monitors the change condition of the target coordinated control rule, which may involve setting (adding) or modifying, further, acquiring the rule number of the target coordinated control rule and the equipment identifier of the corresponding target source equipment, or acquiring the equipment identifier of the corresponding coordinated equipment on the basis.
Step S005, associating the rule number of the target coordinated control rule with the corresponding equipment identifier of the target source equipment to obtain association information;
specifically, the rule number of the target coordinated control rule and the corresponding device identifier of the target source device are associated to obtain association information. In practice, the association information exists in the form of key-like value pairs. The rule number of the target coordinated control rule is used as a query condition, the associated information can be queried to obtain the corresponding equipment identifier of the target source equipment further obtained by the associated information; or, the device identifier of the target source device is used as a query condition, so that the associated information can be queried, and the rule number of the corresponding target coordinated control rule is further obtained from the associated information. Similarly, the device identifier of the corresponding linkage device is used as a query condition, and at least one piece of corresponding association information can be obtained by query.
Step S006, storing the association information.
Specifically, after obtaining the association information, the association information needs to be stored in a database, a data table, or other data-storing file of the intelligent electricity management platform, the external server. When the associated information needs to be read, the corresponding associated information can be obtained by inquiring by accessing a corresponding database, a data table or other data storage files according to any one of the equipment identifier of the target source equipment and the number of the target linkage control rule. Or, the device identifier of the linkage device corresponding to the target linkage control rule is used as a query condition, and corresponding association information can be obtained by query.
According to the scheme, the change condition of the linkage control rule is continuously monitored based on a preset timing monitoring task, wherein the change condition comprises setting and modification; if the change condition of the target coordinated control rule is monitored, acquiring a rule number of the target coordinated control rule and a corresponding device identifier of target source equipment; associating the rule number of the target coordinated control rule with the equipment identifier of the corresponding target source equipment to obtain association information; and storing the association information. In this embodiment, based on a preset timing monitoring task, a change condition of a target linkage control rule is timely found, a rule number of the target linkage control rule and a device identifier of a target source device are associated to obtain association information, and the association information is stored, so that subsequent inquiry of the association information is facilitated to realize device linkage control, and the target linkage control rule is ensured to be timely effective.
Further, referring to fig. 5, a flowchart is provided in a fourth embodiment of the coordinated control method of the device according to the present application, based on the embodiment shown in fig. 4, step S006, storing the association information is further refined, including:
step S0061, storing the associated information in a preset distributed cache.
Specifically, in order to increase the speed of reading the associated information, the associated information is stored in a distributed cache manner among cluster nodes, when certain associated information needs to be read, the cluster node storing the associated information is determined according to a consistent hash algorithm, and then the corresponding associated information is read to the cluster node.
According to the embodiment, the association information is stored in the preset distributed cache. In this embodiment, the associated information is stored in different cluster nodes in a distributed cache manner, so that automatic balanced information storage and high-performance information reading and writing can be realized.
Further, referring to fig. 6, a flowchart is provided in a fifth embodiment of the device linkage control method of the present application, based on the embodiment shown in fig. 2, step S20, determining, according to the device identifier of the target source device, a corresponding target linkage control rule further refines, including:
Step S201, according to the device identifier of the target source device, corresponding association information is obtained from the distributed cache.
Specifically, the association information includes a device identifier of the source device and a rule number of the corresponding coordinated control rule. And the device identification of the target source device is used as a query condition, so that corresponding association information can be queried from the distributed cache.
Step S202, extracting the rule number of the target coordinated control rule from the associated information.
Specifically, the association information does not directly store the target coordinated control rule itself, but stores the rule number corresponding thereto. And extracting the associated information to obtain the rule number of the target coordinated control rule.
Step S203, corresponding target coordinated control rules are determined according to the rule numbers of the target coordinated control rules.
Specifically, based on the one-to-one correspondence between the linkage control rule and the rule number, after the rule number of the target linkage control rule is obtained, the corresponding target linkage control rule can be further determined according to the rule number of the target linkage control rule.
According to the scheme, corresponding association information is obtained from the distributed cache according to the equipment identifier of the target source equipment; extracting a rule number of the target coordinated control rule from the associated information; and determining a corresponding target coordinated control rule according to the rule number of the target coordinated control rule. In this embodiment, the association information is used to associate the rule number of the target coordinated control rule with the device identifier of the target source device, after the device identifier of the target source device is obtained, the corresponding association information may be further obtained according to the device identifier of the target source device, and the rule number of the target coordinated control rule is further obtained according to the association information, where the rule number of the target coordinated control rule is used to determine the target coordinated control rule. Therefore, the quick determination of the target linkage control rule can be realized, and the response rate of the equipment linkage control efficiency is improved.
Further, referring to fig. 7, a flowchart is provided in a sixth embodiment of the coordinated control method of the device according to the present application, based on the embodiment shown in fig. 2, step S30, determining whether the electrical data meets the action triggering condition is further refined, and further includes:
step S301, packaging the rule number of the target coordinated control rule and the electrical data as a trigger event, and pushing the trigger event to a preset message queue.
Specifically, the present embodiment introduces a message queue in which various events can be stored. Firstly, the rule number of the target coordinated control rule and the electric data collected by the target source equipment are packaged, a corresponding trigger event is generated, and the trigger event meets the storage requirement of the message queue. Further, a trigger event is added to the message queue. The various events in the message queue are ordered according to the joining time, streamed down the message queue, and then streamed to the message queue exit.
Step S302, monitoring the message queue through a preset downstream control program.
Specifically, a downstream control program is preset, and the functions of the downstream control program include monitoring events in a message queue, wherein monitoring refers to identifying the events diverted from the message queue flow, judging the types of the events and further determining whether to process the events. For the downstream control program of this embodiment, the monitoring function may identify an event that is diverted from the message queue flow, and determine whether the event is a trigger event.
Step S303, if the downstream control program monitors the trigger event, extracting the rule number and the electrical data of the target coordinated control rule based on the trigger event.
Specifically, if the downstream control program monitors the trigger event, the trigger event is further parsed, and the rule number and the electrical data of the target coordinated control rule are extracted therefrom, which is equivalent to restoring the rule number and the electrical data of the target coordinated control rule from the trigger event.
Step S304, according to the rule number of the target coordinated control rule, the target coordinated control rule is obtained.
Specifically, there is a one-to-one mapping relationship between the rule number of the target coordinated control rule and the target coordinated control rule, and the corresponding target coordinated control rule can be obtained according to the rule number of the target coordinated control rule.
Step S305, determining whether the electrical data meets the action triggering condition of the target coordinated control rule.
Specifically, the target coordinated control rule includes a corresponding action trigger condition, and the action trigger condition may be set based on a corresponding threshold, and the electrical data is specifically a value related to an electrical index, such as a voltage value/a current value. And comparing the value corresponding to the electrical data with the threshold value corresponding to the action triggering condition, and determining whether the action triggering condition is met according to the comparison result.
According to the scheme, the rule number of the target coordinated control rule and the electrical data are packaged into a trigger event, and the trigger event is pushed to a preset message queue;
monitoring the message queue through a preset downstream control program; if the downstream control program monitors the trigger event, extracting a rule number and the electrical data of the target coordinated control rule based on the trigger event; acquiring the target coordinated control rule according to the rule number of the target coordinated control rule; and judging whether the electrical data accords with the action triggering condition of the target coordinated control rule. According to the embodiment, the message queue is introduced to decouple the data acquisition and the equipment control tasks in the equipment linkage control process, so that each task is single in storage function and clear in logic, backlog of data processing can be effectively reduced, and the efficiency of equipment linkage control is improved.
Referring to fig. 7, a system topology diagram related to an embodiment of a device linkage control system of the present application includes a control platform, a target source device, and a linkage device.
In this embodiment, the source device may be one or more devices such as a circuit breaker device, a smoke sensor device, an illumination sensor device, a water level sensor device, a pressure sensor device, and a temperature sensor device; the control platform can be an intelligent electricity utilization management platform; the linkage device may be a circuit breaker device other than the target source device, an alarm, or other device that may perform a particular action.
The intelligent electricity consumption management platform performs data interaction with the target source equipment and the linkage equipment based on UDP, HTTP or other communication protocols, and the target source equipment has the functions of data acquisition, data uploading or downloading, action execution and the like. First, the target source device collects one or more electrical data such as current, voltage, power, temperature, leakage conditions, etc. Then, the electricity management platform actively acquires the electrical data and the equipment identification of the target source equipment from the target source equipment, or the electricity management platform passively receives the electrical data of the target source equipment and the equipment identification of the target source equipment.
The association relation exists between the target source equipment and the corresponding target linkage control rule, and the association information based on the association relation can be stored in a database, a data table or other data storage files. After obtaining the equipment identifier of the target source equipment, the intelligent electricity management platform can obtain the associated information according to the equipment identifier inquiry, and further obtain the corresponding target coordinated control rule. The target coordinated control rules associate target source devices with other coordinated devices and include action triggering conditions.
And under the target linkage control rule, judging whether the electrical data uploaded by the target source equipment accords with the action triggering condition. The electrical data may be a data value of a certain electrical index, for example, a specific current value, a specific voltage value, a specific power value, etc., and the action triggering condition may be a preset threshold, and the specific manner of judging may be to judge whether the data value of the certain electrical index is greater than or less than the preset threshold, so as to judge whether the action triggering condition is met.
If the judgment result obtained in the previous step shows that the electric data uploaded by the target source equipment accords with the action triggering condition under the target linkage control rule, further, the intelligent electricity consumption management platform sends an action executing instruction to the linkage equipment associated with the target linkage control rule. Accordingly, after receiving the action execution instruction, the linkage device executes the action predefined in the target linkage control rule. The linkage device may be a circuit breaker device, an alarm, or other device that may perform a particular action.
In this embodiment, firstly, the device identifier and the electrical data of the target source device are acquired, the corresponding target coordinated control rule is determined according to the device identifier, whether the electrical data meets the action triggering condition of the target coordinated control rule is further determined, and if so, the coordinated device is controlled to execute the corresponding action. The linkage control mode has the characteristics of quick response and no need of excessive manual operation, and solves the problem of low response speed of the single control mode.
In addition, the embodiment of the application also provides a device linkage control device, which comprises:
the acquisition module is used for acquiring the equipment identifier of the target source equipment and the acquired electrical data;
The query module is used for further judging whether the electric data accords with the action triggering condition of the target linkage control rule or not, and determining the corresponding target linkage control rule according to the equipment identifier of the target source equipment, wherein the target linkage control rule comprises the action triggering condition;
the judging module is used for judging whether the electrical data accords with the action triggering condition;
and the execution module is used for controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule if the electrical data accords with the action triggering condition.
The principle and implementation process of implementing the device linkage control in this embodiment are referred to the above embodiments, and are not described herein.
In addition, the embodiment of the application also provides a terminal device, which comprises a memory, a processor and a device linkage control program stored on the memory and capable of running on the processor, wherein the device linkage control program realizes the steps of the device linkage control method when being executed by the processor.
Because the linkage control program of the device is executed by the processor, all the technical schemes of all the embodiments are adopted, and therefore, the linkage control program at least has all the beneficial effects brought by all the technical schemes of all the embodiments, and the linkage control program is not repeated herein.
In addition, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores an equipment linkage control program, and the equipment linkage control program realizes the steps of the equipment linkage control method when being executed by a processor.
Because the linkage control program of the device is executed by the processor, all the technical schemes of all the embodiments are adopted, and therefore, the linkage control program at least has all the beneficial effects brought by all the technical schemes of all the embodiments, and the linkage control program is not repeated herein.
Compared with the prior art, the equipment linkage control method, the system, the device, the terminal equipment and the storage medium provided by the embodiment of the application are realized by acquiring the equipment identification of the target source equipment and the acquired electrical data; determining a corresponding target coordinated control rule according to the equipment identifier of the target source equipment, wherein the target coordinated control rule comprises an action triggering condition; judging whether the electrical data accords with the action triggering condition or not; if yes, controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule. Based on the scheme, firstly, the equipment identification and the electrical data of the target source equipment are acquired, the corresponding target linkage control rule is determined according to the equipment identification, whether the electrical data accords with the action triggering condition of the target linkage control rule is further judged, and if so, the linkage equipment is controlled to execute the corresponding action. The linkage control mode has the characteristics of quick response and no need of excessive manual operation, and solves the problem of low response speed of the single control mode.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (10)

1. The equipment linkage control method is characterized by comprising the following steps of:
acquiring equipment identification and acquired electrical data of target source equipment;
determining a corresponding target coordinated control rule according to the equipment identifier of the target source equipment, wherein the target coordinated control rule comprises an action triggering condition;
judging whether the electrical data accords with the action triggering condition or not;
if yes, controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule.
2. The device linkage control method according to claim 1, wherein before the step of acquiring the electrical data acquired by the target source device, further comprising:
setting the target linkage control rule;
and storing configuration information corresponding to the target linkage control rule, wherein the configuration information is used for controlling corresponding linkage equipment to execute corresponding actions.
3. The apparatus linkage control method according to claim 2, characterized in that before the step of setting the target linkage control rule, further comprising:
continuously monitoring the change condition of the coordinated control rule based on a preset timing monitoring task, wherein the change condition comprises setting and modification;
after the step of setting the target coordinated control rule, the method further includes:
if the change condition of the target coordinated control rule is monitored, acquiring a rule number of the target coordinated control rule and a corresponding device identifier of target source equipment;
associating the rule number of the target coordinated control rule with the equipment identifier of the corresponding target source equipment to obtain association information;
and storing the association information.
4. The device linkage control method according to claim 3, wherein the step of storing the association information includes:
and storing the associated information in a preset distributed cache.
5. The device linkage control method according to claim 4, wherein the step of determining the corresponding target linkage control rule according to the device identifier of the target source device includes:
Acquiring corresponding association information from the distributed cache according to the equipment identifier of the target source equipment;
extracting a rule number of the target coordinated control rule from the associated information;
and determining a corresponding target coordinated control rule according to the rule number of the target coordinated control rule.
6. The device linkage control method according to claim 4, wherein the step of judging whether the electrical data meets the action triggering condition includes:
encapsulating the rule number of the target coordinated control rule and the electrical data into a trigger event, and pushing the trigger event to a preset message queue;
monitoring the message queue through a preset downstream control program;
if the downstream control program monitors the trigger event, extracting a rule number and the electrical data of the target coordinated control rule based on the trigger event;
acquiring the target coordinated control rule according to the rule number of the target coordinated control rule;
and judging whether the electrical data accords with the action triggering condition of the target coordinated control rule.
7. The equipment linkage control system is characterized by comprising a control platform, target source equipment and linkage equipment;
The control platform is used for acquiring the equipment identification of the target source equipment and the acquired electrical data; determining a corresponding target coordinated control rule according to the equipment identifier of the target source equipment, wherein the target coordinated control rule comprises an action triggering condition; judging whether the electrical data accords with the action triggering condition or not; if yes, controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule;
the target source equipment is used for collecting the electrical data and uploading the electrical data to the control platform;
and the linkage equipment is used for executing actions corresponding to the target linkage control rule.
8. An equipment linkage control device, characterized in that, the equipment linkage control device includes:
the acquisition module is used for acquiring the equipment identifier of the target source equipment and the acquired electrical data;
the query module is used for determining a corresponding target linkage control rule according to the equipment identifier of the target source equipment, wherein the target linkage control rule comprises an action triggering condition;
the judging module is used for judging whether the electrical data accords with the action triggering condition;
and the execution module is used for controlling the corresponding linkage equipment to execute the corresponding action according to the target linkage control rule if the electrical data accords with the action triggering condition.
9. A terminal device comprising a memory, a processor, and a device linkage control program stored on the memory and operable on the processor, the device linkage control program when executed by the processor implementing the steps of the device linkage control method of any one of claims 1-6.
10. A computer-readable storage medium, wherein a device linkage control program is stored on the computer-readable storage medium, and the device linkage control program, when executed by a processor, implements the steps of the device linkage control method according to any one of claims 1 to 6.
CN202311517308.9A 2023-11-15 2023-11-15 Equipment linkage control method, system, device, terminal equipment and storage medium Active CN117250930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311517308.9A CN117250930B (en) 2023-11-15 2023-11-15 Equipment linkage control method, system, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311517308.9A CN117250930B (en) 2023-11-15 2023-11-15 Equipment linkage control method, system, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117250930A true CN117250930A (en) 2023-12-19
CN117250930B CN117250930B (en) 2024-02-20

Family

ID=89133571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311517308.9A Active CN117250930B (en) 2023-11-15 2023-11-15 Equipment linkage control method, system, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117250930B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017034489A (en) * 2015-08-03 2017-02-09 ホーチキ株式会社 Tunnel disaster prevention system
CN110673525A (en) * 2019-09-27 2020-01-10 易讯科技股份有限公司 Equipment linkage triggering method and device
CN111539848A (en) * 2020-06-23 2020-08-14 江苏士林电气设备有限公司 Power consumption management platform of Internet of things intelligent circuit breaker system
CN112447033A (en) * 2019-09-05 2021-03-05 比亚迪股份有限公司 Security data processing method and system, computer equipment and storage medium
CN115454520A (en) * 2021-06-09 2022-12-09 中移物联网有限公司 Equipment linkage method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017034489A (en) * 2015-08-03 2017-02-09 ホーチキ株式会社 Tunnel disaster prevention system
CN112447033A (en) * 2019-09-05 2021-03-05 比亚迪股份有限公司 Security data processing method and system, computer equipment and storage medium
CN110673525A (en) * 2019-09-27 2020-01-10 易讯科技股份有限公司 Equipment linkage triggering method and device
CN111539848A (en) * 2020-06-23 2020-08-14 江苏士林电气设备有限公司 Power consumption management platform of Internet of things intelligent circuit breaker system
CN115454520A (en) * 2021-06-09 2022-12-09 中移物联网有限公司 Equipment linkage method and mobile terminal

Also Published As

Publication number Publication date
CN117250930B (en) 2024-02-20

Similar Documents

Publication Publication Date Title
CN112549029B (en) Robot behavior control method and device based on behavior tree
JP2007156779A (en) Sensor network system, base station and relay method for sensing data
CN110932892B (en) Block chain based information early warning method and device, related nodes and storage medium
CN111405246B (en) Smart city monitoring method and device and management terminal
CN104346264A (en) System and method for processing system event logs
CN106168902A (en) Awakening control method, device and equipment
CN111130867B (en) Intelligent household equipment alarm method and device based on Internet of things
CN107742520B (en) Voice control method, device and system
CN112908321A (en) Device control method, device, storage medium, and electronic apparatus
CN117250930B (en) Equipment linkage control method, system, device, terminal equipment and storage medium
CN108170585A (en) log processing method, device, terminal device and storage medium
CN109039843B (en) Intelligent kitchen equipment control method and device based on event chain linkage strategy
CN113765777A (en) Equipment control method, message transfer method, equipment, readable medium and Internet of things
EP4089491A1 (en) Smart device control system, method, and apparatus, smart gateway, and storage medium
CN106970696B (en) Electronic equipment management method and electronic equipment
CN111638967A (en) Scene processing method and device, storage medium and processor
CN109933419B (en) Control method and device
CN112416530B (en) Method and device for elastically managing cluster physical machine nodes and electronic equipment
CN105072161A (en) Application program management system based on cloud computing
CN110443910B (en) Method, system, device and storage medium for monitoring state of unmanned device
CN112925659A (en) Message processing method, device, equipment and computer storage medium
CN112788592A (en) Data sending processing method and device for adding wake-up time
CN115294736B (en) Alarm message control method, device, terminal equipment and storage medium
CN112788132B (en) Response grade-based transfer equipment data processing method and device
CN117271610B (en) Device state management method, device, terminal device and storage medium

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