CN112804108A - Signaling execution method and device, electronic equipment and machine-readable storage medium - Google Patents

Signaling execution method and device, electronic equipment and machine-readable storage medium Download PDF

Info

Publication number
CN112804108A
CN112804108A CN202110130203.2A CN202110130203A CN112804108A CN 112804108 A CN112804108 A CN 112804108A CN 202110130203 A CN202110130203 A CN 202110130203A CN 112804108 A CN112804108 A CN 112804108A
Authority
CN
China
Prior art keywords
action execution
signaling
execution signaling
action
linkage
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
CN202110130203.2A
Other languages
Chinese (zh)
Other versions
CN112804108B (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN202110130203.2A priority Critical patent/CN112804108B/en
Publication of CN112804108A publication Critical patent/CN112804108A/en
Application granted granted Critical
Publication of CN112804108B publication Critical patent/CN112804108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0681Configuration of triggering conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • 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 application provides a signaling execution method, a signaling execution device, an electronic device and a machine-readable storage medium, wherein the method comprises the following steps: receiving a first action execution signaling; determining whether there is second action execution signaling being executed that has the same key attribute as the first action execution signaling; if the second action execution signaling exists and the second action execution signaling and the first action execution signaling are triggered by the same alarm device, updating the attribute information of the second action execution signaling according to the attribute information of the first action execution signaling, and continuing to execute the second action execution signaling; and if the second action execution signaling does not exist, executing the first action execution signaling. The method can save the equipment resources of the linkage equipment and reduce the equipment pressure of the linkage equipment.

Description

Signaling execution method and device, electronic equipment and machine-readable storage medium
Technical Field
The present application relates to the field of embedded device application technologies, and in particular, to a signaling execution method and apparatus, an electronic device, and a machine-readable storage medium.
Background
The alarm linkage refers to that when the alarm device detects that an alarm event occurs, linkage devices except the alarm device are triggered to execute linkage actions, such as picture shooting, video acquisition and the like.
Practice shows that in the existing alarm linkage scheme, when the linkage device receives a lot of alarm linkage action execution signaling (which may be referred to as action execution signaling for short), resources need to be allocated respectively to respond to the action execution signaling, so that the linkage device needs to execute the linkage action frequently, the device pressure of the linkage device is increased, and a large amount of device resources need to be occupied.
Disclosure of Invention
In view of the above, the present application provides a signaling execution method, an apparatus, an electronic device, and a machine-readable storage medium.
According to a first aspect of embodiments of the present application, there is provided a signaling execution method, including:
receiving a first action execution signaling;
determining whether there is second action execution signaling being executed that has the same key attribute as the first action execution signaling; the key attribute of the action execution signaling refers to an attribute which cannot be modified in the execution process of the action execution signaling;
if the second action execution signaling exists and the second action execution signaling and the first action execution signaling are triggered by the same alarm device, updating the attribute information of the second action execution signaling according to the attribute information of the first action execution signaling, and continuing to execute the second action execution signaling; the attribute information of the action execution signaling refers to an attribute which can be modified in the execution process of the action execution signaling;
and if the second action execution signaling does not exist, executing the first action execution signaling.
According to a second aspect of the embodiments of the present application, there is provided a signaling execution apparatus, including:
a receiving unit, configured to receive a first action execution signaling;
a determining unit, configured to determine whether there is a second action execution signaling being executed, which has the same key attribute as the first action execution signaling; the key attribute of the action execution signaling refers to an attribute which cannot be modified in the execution process of the action execution signaling;
the processing unit is used for updating the attribute information of the second action execution signaling according to the attribute information of the first action execution signaling and continuously executing the second action execution signaling if the second action execution signaling exists and the second action execution signaling and the first action execution signaling are triggered by the same alarm device; the attribute information of the action execution signaling refers to an attribute which can be modified in the execution process of the action execution signaling;
the processing unit is further configured to execute the first action execution signaling if the second action execution signaling does not exist.
According to a third aspect of embodiments herein, there is provided an electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being configured to execute the machine-executable instructions to implement the signaling execution method of the first aspect.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored therein a computer program, which when executed by a processor, implements the signaling execution method of the first aspect.
According to a fifth aspect of embodiments herein, there is provided a computer program stored on a machine-readable storage medium and which, when executed by a processor, causes the processor to perform the signalling performance method of the first aspect.
In the signaling execution method of the embodiment of the application, when a first action execution signaling is received, whether a second action execution signaling which is identical to the first action execution signaling in key attribute and is being executed exists is determined; if a second action execution signaling exists and the second action execution signaling and the first action execution signaling are triggered by the same alarm device, updating attribute information of the second action execution signaling according to attribute information of the first action execution signaling, and continuing to execute the second action execution signaling; if the second action execution signaling does not exist, the first action execution signaling is executed, and because the key attribute of the action execution signaling which is executed is the same as that of the action execution signaling which is executed, and the action execution signaling triggered by the same alarm equipment is executed in a mode of updating attribute information without the need of reallocating resources to execute, the equipment resources of the linkage equipment can be saved, and the equipment pressure of the linkage equipment is reduced.
Drawings
Fig. 1 is a flowchart illustrating a signaling execution method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating another signaling execution method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a process of determining whether to preempt resources of a second action execution signaling according to an embodiment of the present application;
fig. 4 is a flowchart illustrating another signaling execution method according to an embodiment of the present application;
FIG. 5 is a schematic view of a linkage interaction flow provided by an embodiment of the present application;
fig. 6 is a schematic flowchart of signaling execution according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a signaling execution device according to an embodiment of the present application;
fig. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In order to make the technical solutions provided in the embodiments of the present application better understood and make the above objects, features and advantages of the embodiments of the present application more comprehensible, the technical solutions in the embodiments of the present application are described in further detail below with reference to the accompanying drawings.
Please refer to fig. 1, which is a flowchart illustrating a signaling execution method according to an embodiment of the present disclosure, where the signaling execution method may be applied to a linkage device in an alarm linkage system, the alarm linkage system may further include a linkage platform and an alarm device, and when the linkage platform receives an alarm event reported by the alarm device, the linkage platform may determine the linkage device used for linkage and send an action execution signaling to the linkage device, as shown in fig. 1, the signaling execution method may include:
step S100, receiving a first action execution signaling.
In the embodiment of the application, when the alarm device detects an alarm event, the alarm device may report the alarm event to a linkage platform (also referred to as a server).
For example, if the alarm device is an access control device, the alarm event may be an abnormal door opening event, and when the access control device detects the abnormal door opening event, the abnormal door opening event may be reported to the linkage platform.
When the linkage platform receives the alarm event of the alarm device, the linkage platform can determine the linkage device according to the preset linkage rule and send an action execution signaling to the linkage device.
Illustratively, the linkage device may include, but is not limited to, a monitoring front-end device, such as a camera, video recorder, or the like.
Step S110, determining whether there is a second action execution signaling being executed, which has the same key attribute as the first action execution signaling. If yes, go to step S120; otherwise, go to step S130.
Step S120, when the second action execution signaling and the first action execution signaling are triggered by the same alarm device, updating the attribute information of the second action execution signaling according to the attribute information of the first action execution signaling, and continuing to execute the second action execution signaling.
And step S130, executing a first action execution signaling.
In the embodiment of the present application, when the linkage device receives an action execution signaling (referred to as a first action execution signaling herein), it may be determined whether there is an action execution signaling being executed; and if so, determining whether the key attributes of the action execution signaling and the first action execution signaling are the same.
The fact that the action execution signaling is being executed means that the linkage device is currently executing the linkage action corresponding to the action execution signaling.
For example, the key attribute refers to an attribute that cannot be modified in the execution process of the action execution signaling, and there is a conflict between the execution of different action execution signaling triggered by different alarm devices and including the same key attribute, that is, the same linkage device cannot simultaneously execute different action execution signaling triggered by multiple alarm devices and including the same key attribute.
For example, an action execution signaling a triggered by the alarm device a includes a key attribute 1, and an action execution signaling B triggered by the alarm device B also includes a key attribute 2, so that for the same linkage device, there is a conflict between the execution of the action execution signaling a and the action execution signaling B, and the linkage device cannot execute the action execution signaling a and the action execution signaling B at the same time.
For example, the key attribute of the action execution signaling may be configured in advance, for example, when the linkage rule configuration is performed, the key attribute may be configured.
For example, taking the linkage device as the monitoring front-end device as an example, the key attribute may be a channel number and a video type (such as a timing video, an event triggered video, or an active video) of the monitoring front-end device.
When the linkage device determines that there is an executing action execution signaling (referred to herein as a second action execution signaling) that has the same key attributes as the first action execution signaling, the linkage device may also determine whether the second action execution signaling is triggered by the same alert device as the first action execution signaling.
Considering that the actions triggered by the same alarm device and having the same key attribute execute signaling, the operations actually executed by the linkage device are generally consistent. Therefore, when the linkage device determines that the second action execution signaling and the first action execution signaling are triggered by the same alarm device, the linkage device can update the attribute information of the second action execution signaling according to the attribute information of the first action execution signaling without allocating resources for the first action execution signaling again or interrupting the execution of the second action execution signaling, and can continue to execute the second action execution signaling.
For example, the attribute information of the action execution signaling refers to an attribute that can be modified in the execution process of the action execution signaling, and when the attribute information changes, the executed action execution signaling cannot be executed.
For example, a change in attribute information of the action execution signaling may affect the effect of executing the action execution signaling.
For example, taking the linkage action corresponding to the action execution command as an example of video recording, the attribute information of the action execution command may include a video recording time period, such as 30 seconds, or a resolution, a code rate, and the like of the video recording.
For example, assuming that the linkage action corresponding to the action execution instruction is used as a video, and the attribute information of the action execution includes a video recording duration (assumed to be 30 seconds), when the linkage device receives the first action execution signaling, and determines that the second action execution signaling exists, and the second action execution signaling and the first action execution signaling are triggered by the same alarm device, the linkage device may continue to execute the second action execution signaling, and update the video recording duration of the second action execution signaling to the video recording duration (referred to as a first video recording duration herein) included in the attribute information of the first action execution signaling, for example, 30 seconds, that is, the video recording continues for 30 seconds with the time when the first action execution signaling is received as the start time.
For example, for the first action execution signaling, the linkage device may determine that the execution result of the first action execution signaling is successful, and return a successful response message for the first action execution signaling to the linkage platform, where the successful response message for the first action execution signaling is used to indicate that the first action execution signaling is successfully executed.
Similarly, if the attribute information of the action execution includes the resolution of the video, when the linkage device receives the first action execution signaling and determines that the second action execution signaling exists, and the second action execution signaling and the first action execution signaling are present, the linkage device may continue to execute the second action execution signaling, and update the resolution of the video corresponding to the second action execution signaling to the resolution of the video included in the attribute information of the first action execution signaling (referred to as the first resolution herein).
If the attribute information of the action execution includes the code rate of the video, when the linkage device receives the first action execution signaling and determines that the second action execution signaling exists, and the second action execution signaling and the first action execution signaling are present, the linkage device may continue to execute the second action execution signaling, and update the code rate of the video corresponding to the second action execution signaling to the code rate of the video (referred to as the first code rate herein) included in the attribute information of the first action execution signaling.
In this embodiment, when the linkage device determines that the second action execution signaling does not exist, the linkage device may execute the first action execution signaling.
It can be seen that, in the flow shown in fig. 1, when a first action execution signaling is received, it may be determined whether there is an executing second action execution signaling having the same key attribute as that of the first action execution signaling, and when there is a second action execution signaling and the second action execution signaling is triggered by the same alarm device, resources are no longer allocated to execute the first action execution signaling, but attribute information of the second action execution signaling is updated according to attribute information of the first action execution signaling, and the second action execution signaling is continuously executed, so that device resources of a linkage device are saved, and device pressure of the linkage device is reduced.
In some embodiments, as shown in fig. 2, after determining whether there is a second action execution signaling being executed, which has the same key attribute as the first action execution signaling, in step S110, the method may further include:
and step S111, if a second action execution signaling exists and the second action execution signaling and the first action execution signaling are triggered by different alarm devices, determining whether resources of the second action execution signaling need to be preempted. If yes, go to step S112; otherwise, go to step S113.
Step S112, releasing the resource occupied by executing the second action execution signaling, and executing the first action execution signaling.
And step S113, continuing to execute the second action execution instruction.
Illustratively, when the second action execution signaling and the first action execution signaling are triggered by different alarm devices, it needs to be determined whether the first action execution signaling needs to preempt resources of the second action execution signaling, so as to ensure linkage of the alarm event with higher importance.
In one example, as shown in fig. 3, the step S111 of determining whether to preempt the resource of the second action execution signaling may be implemented by the following steps:
step S1111, comparing the priority of the first action execution signaling with the priority of the second action execution signaling.
Step S1112, when the priority of the first action execution signaling is higher than the priority of the second action execution signaling, determining that preemption is required.
And step S1113, when the priority of the first action execution signaling is lower than that of the second action execution signaling, determining that preemption is not needed.
For example, for action execution signaling triggered by different alarm devices and having the same key attribute, action execution signaling with a higher priority may be preferentially executed according to the priority of the action execution signaling.
Accordingly, when the linkage device determines that the first action performing signaling and the second action performing signaling are triggered by different alarm devices, the linkage device may compare the priority of the first action performing signaling and the priority of the second action performing signaling.
And when the priority of the first action execution signaling is higher than that of the second action execution signaling, determining that the resource of the second action execution signaling needs to be preempted so as to ensure the execution of the first action execution signaling.
And when the priority of the first action execution signaling is lower than that of the second action execution signaling, determining that the resource of the second action execution signaling does not need to be preempted so as to ensure the execution of the second action execution signaling.
When the linkage device determines that the resource of the second action execution signaling needs to be preempted, the linkage device may release the resource occupied by executing the second action execution signaling, and allocate the resource for the first action execution signaling to execute the first action execution signaling.
When the linkage device determines that it is not necessary to preempt resources of the second action execution signaling, the linkage device may continue to execute the second action execution instruction.
It should be noted that, when the linkage device determines that it is not necessary to preempt the resource of the second action execution signaling, the linkage device may determine that the execution of the first action execution signaling fails, and return a failure response message for the first action execution signaling to the linkage platform, which is not described herein in detail.
In one example, the priority of the action execution signaling is determined according to one or more of:
the alarm device triggers the action execution signaling and the alarm event triggers the action execution signaling.
For example, the priority of the action execution signaling may be determined according to the alarm device triggering the action execution signaling and the alarm event triggering the action execution signaling.
For example, assuming that the first action execution signaling is triggered by the alarm device a, the second action execution signaling is triggered by the alarm device B, and the preset priority of the alarm device a is higher than that of the alarm device B, it may be determined that the priority of the first action execution signaling is higher than that of the second action execution signaling.
For another example, assuming that the first action performing signaling is triggered by a first type of alarm event, the second action performing signaling is triggered by a second type of alarm event, and the preset priority of the first type of alarm event is higher than that of the second type of alarm event, it may be determined that the priority of the first action performing signaling is higher than that of the second action performing signaling.
For example, when the priority of the action execution signaling needs to be determined according to the alarm device triggering the action execution signaling and the alarm event triggering the action execution signaling, weighted calculation may be performed according to the priority score corresponding to the priority of the alarm device and the priority score of the alarm event to obtain the priority score of the corresponding action execution signaling, and then the priority of the action execution signaling is determined.
For example, assuming that the first action execution signaling is triggered by a first type of alarm event of the alarm device a, and the second action execution signaling is triggered by a second type of alarm event of the alarm device B, the corresponding priority score may be determined according to a preset priority of the alarm device a, a preset priority of the alarm device B, a preset priority of the first type of alarm event, and a preset priority of the second type of alarm event, and a weighted priority score of the first type of alarm event of the alarm device a (a priority weighting coefficient of the alarm device and a priority weighting coefficient of the alarm event may be preset), and a weighted priority score of the second type of alarm event of the alarm device B, and then priorities of the first action execution signaling and the second action execution signaling are determined.
In some embodiments, as shown in fig. 4, before determining whether there is a second action execution signaling being executed, which has the same key attribute as that of the first action execution signaling, in step S110, the method may further include:
and step S101, determining linkage action corresponding to the first action execution signaling as continuous operation or non-continuous operation. If the operation is continuous, go to step S110; if the operation is not continuous, the process goes to step S102.
And step S102, executing a first action execution signaling.
Illustratively, it is contemplated that the linkage action may generally include a continuous operation or a non-continuous operation.
For example, for monitoring a front-end device, the continuous operation of the linkage device may include video recording or video capture, and the non-continuous operation may be image capture.
For non-persistent operations, the impact on other executing operations is typically small, since they typically occupy less resources and take less time.
Thus, when the linkage device receives the first action execution signaling, the linkage device may determine the linkage action corresponding to the first action execution signaling as a persistent operation (the first action execution signaling may be referred to as non-real-time signaling) or a non-persistent operation (the first action execution signaling may be referred to as real-time signaling).
If the linkage action corresponding to the first action execution signaling is a non-continuous operation, the linkage device may execute the first action execution signaling.
If the linkage action corresponding to the first action execution signaling is a persistent operation, the linkage device may perform related processing in the manner described in the above embodiment, and specific implementation thereof is not described herein again.
In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application, the technical solutions provided by the embodiments of the present application are described below with reference to specific examples.
Referring to fig. 5, which is a schematic view of a linkage interaction flow provided in an embodiment of the present application, each device in the alarm linkage system may implement linkage between the devices through a wide area network, so as to complete association between the video device and the non-video device.
As shown in fig. 5, a user may configure device a to trigger an alarm event through a user terminal, and perform a video recording operation through linkage device B.
For example, device a may be referred to as an alarm device, which may include, but is not limited to, an access control device; device B may be referred to as a linkage device, which may include, but is not limited to, a camera.
The user terminal can upload the configured linkage rules to the linkage platform, and the linkage platform stores the linkage rules.
When the device a detects an alarm event, the alarm event may be reported to the linkage platform.
When receiving the alarm event reported by the device a, the linkage platform queries a local linkage rule, and determines that a matching linkage rule exists, where the linkage device is the device B, and at this time, the linkage platform may send an action execution signaling to the device B, where the action execution signaling may include a device identifier of the alarm device, a type identifier of the alarm event, and the like.
When receiving the action execution signaling (i.e., the first action execution signaling), the device B may perform the linkage processing according to the flow shown in fig. 6.
Referring to fig. 6, a schematic flowchart of signaling execution provided in the embodiment of the present application is shown, and as shown in fig. 6, when the device B receives an action execution signaling, a flow of performing linkage processing may include:
determining the action execution signaling as real-time signaling or non-real-time signaling.
If the action execution signaling is real-time signaling (i.e. the linkage action corresponding to the action execution signaling is non-continuous operation, such as picture capture), the device B may execute the action execution signaling, assemble the action execution result and the associated alarm event into a linkage alarm event, and report the linkage alarm event to the linkage platform. The linkage platform can push a linkage alarm result to the user terminal.
For example, the device B may assemble the captured picture and the associated alarm event into a linkage alarm event, and report the linkage event to the linkage platform, and the linkage platform may push the picture and the associated alarm event to the user terminal.
If the action execution signaling is non-real-time signaling, the device B may determine whether the action execution signaling has the same key attribute as the action execution signaling already executed locally (i.e., the second action execution signaling).
If the key attributes are the same, further determining whether the action execution signaling and the locally executed action execution signaling are triggered by the same alarm device; if the alarm device is triggered by the same alarm device, the attribute information of the action execution signaling which is executed locally is updated based on the action execution signaling, and a successful response message aiming at the second action execution signaling is returned, wherein the successful response message is used for indicating the second action execution signaling to be executed successfully.
For example, if the device a links the device B to perform video recording, and the video recording duration (also referred to as video recording delay) is 30s, if the device a triggers the device B to perform video recording for multiple times within 30s, the device B starts video recording when triggering for the first time, and then the device B updates the video recording duration to 30s and returns a success response message when receiving other action execution signaling with the same key attribute triggered by the device a each time before completing video recording, thereby ensuring that 1 video can be seen by a user in 1 alarm event on the user terminal.
In addition, when the alarm device gives an alarm, the alarm device reports an alarm event to the linkage platform, the linkage platform sends an action execution signaling to the linkage device to trigger the linkage device to execute linkage action, such as video recording, when the linkage device continuously responds to the linkage execution signaling for multiple times to record video, for any one alarm, the time when the linkage device receives the action execution signaling is taken as reference time, the video data in a forward direction for a certain time length (referred to as a first preset time length) and in a backward direction for a certain time length (referred to as a second preset time length) can generally record a complete event triggering the alarm, and a user can know alarm details based on the video data in the time length.
In order to improve the use experience of a user, when the user searches for a video at a user terminal, the time (which may be called target time, that is, the time when the linkage device receives an action execution signaling each time, and the time can be carried in a successful response message and returned to the linkage platform, and then sent to the user terminal) for alarming in association with the signaling can be uploaded by the device as reference time, a first preset time (for example, 10s) is searched forward, a second preset time (for example, 2min) is searched backward, and the search of a corresponding video is completed. Thus, when an alarm is triggered by a certain event of the device A, the video data for recording the event is acquired by the device B.
If the alarm device is triggered by different alarm devices, the priority of the currently received action execution signaling is compared with the priority of the locally executed action execution signaling, if the priority of the currently received action execution signaling is higher than the priority of the locally executed action execution signaling, the resource of the locally executed action execution signaling is released, and the resource is allocated to execute the currently received action execution signaling.
For example, for an action execution signaling with a lower priority for resource backup preemption, the device B may assemble an execution result (successful execution) and an associated alarm event into a linkage alarm event, report the linkage alarm event to the linkage platform, and push the linkage alarm result to the corresponding user terminal by the linkage platform.
If the priority of the latter is higher, the execution failure of the currently received action execution signaling is determined, the execution result (execution failure) and the associated alarm event are assembled into a linkage alarm event, the linkage alarm event is reported to a linkage platform, and the linkage platform pushes the linkage alarm result to the corresponding user terminal.
It should be noted that, in an example, if the priorities of the two are the same, it may be determined that the currently received action execution signaling fails to be executed, an execution result (execution failure) and an associated alarm event are assembled into a linkage alarm event, which is reported to the linkage platform, and the linkage platform pushes a linkage alarm result to a corresponding user terminal (taking the policy as an example in the figure); alternatively, the resource of the action execution signaling already executed locally may be released, and the resource may be allocated to execute the currently received action execution signaling.
If the key attribute of the currently received action execution signaling is different from that of the locally executed action execution signaling, the device B may execute the currently received action execution signaling.
The methods provided herein are described above. The following describes the apparatus provided in the present application:
referring to fig. 7, a schematic structural diagram of a signaling execution device according to an embodiment of the present application is shown in fig. 7, where the signaling execution device may include:
a receiving unit 710, configured to receive a first action execution signaling;
a determining unit 720, configured to determine whether there is a second action performing signaling being performed that has the same key attribute as the first action performing signaling; the key attribute of the action execution signaling refers to an attribute which cannot be modified in the execution process of the action execution signaling;
a processing unit 730, configured to update attribute information of the second action execution signaling according to the attribute information of the first action execution signaling and continue to execute the second action execution signaling if the second action execution signaling exists and the second action execution signaling and the first action execution signaling are triggered by the same alarm device; the attribute information of the action execution signaling refers to an attribute which can be modified in the execution process of the action execution signaling;
the processing unit 730 is further configured to execute the first action execution signaling if the second action execution signaling does not exist.
In some embodiments, the processing unit 730 is further configured to determine whether to preempt resources of the second action execution signaling if the second action execution signaling exists and the second action execution signaling is triggered by a different alarm device from the first action execution signaling; if the preemption is determined to be needed, releasing resources occupied by executing the second action execution signaling, and executing the first action execution signaling; and if the second action execution instruction is determined not to be required to be preempted, continuing to execute the second action execution instruction.
In some embodiments, the processing unit 730 is specifically configured to compare the priority of the first action performing signaling with the priority of the second action performing signaling; when the priority of the first action execution signaling is higher than that of the second action execution signaling, determining that preemption is needed; determining that preemption is not required when the priority of the first action execution signaling is lower than the priority of the second action execution signaling.
In some embodiments, the priority of the action execution signaling is determined according to one or more of:
the alarm device triggers the action execution signaling and the alarm event triggers the action execution signaling.
In some embodiments, the processing unit 730 is further configured to determine a linkage action corresponding to the first action execution signaling as a persistent operation or a non-persistent operation; when the linkage action corresponding to the first action execution signaling is used as continuous operation, determining whether the operation of determining whether the executed second action execution signaling with the same key attribute as that of the first action execution signaling exists is executed; and when the linkage action corresponding to the first action execution signaling is non-continuous operation, executing the first action execution signaling.
In some embodiments, the processing unit 730 is further configured to, if the second action execution signaling exists and the second action execution signaling and the first action execution signaling are triggered by the same alarm device, return a successful response message for the second action execution signaling to a linkage platform, so that the linkage platform pushes a target time carried by the successful response message to a user terminal, and the user terminal searches for video data with the target time as a reference time, a first preset duration in a forward direction, and a second preset duration in a backward direction; the target time is the time when the linkage equipment receives the second action execution signaling, and the successful response message aiming at the second action execution signaling is used for indicating the successful execution of the second action execution signaling.
In some embodiments, the linkage action corresponding to the action execution signaling is video recording; the attribute information comprises video recording duration, video recording resolution and/or video recording code rate;
the processing unit 730 is specifically configured to update the video recording duration of the video corresponding to the second action execution signaling to the first video recording duration, where the first video recording duration is the video recording duration included in the attribute information of the first action execution signaling;
and/or the presence of a gas in the gas,
updating the resolution of the video corresponding to the second action execution signaling to the first resolution, where the first resolution is the resolution of the video included in the attribute information of the first action execution signaling;
and/or the presence of a gas in the gas,
and updating the code rate of the video corresponding to the second action execution signaling to the first code rate, wherein the first code rate is the code rate of the video included in the attribute information of the first action execution signaling.
An embodiment of the present application provides an electronic device, which includes a processor and a memory, where the memory stores machine executable instructions that can be executed by the processor, and the processor is configured to execute the machine executable instructions to implement the signaling execution method described above.
Please refer to fig. 8, which is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure. The electronic device may include a processor 801, a memory 802 storing machine executable instructions. The processor 801 and the memory 802 may communicate via a system bus 803. Also, the processor 801 may perform the signaling execution methods described above by reading and executing machine executable instructions in the memory 802 corresponding to the signaling execution logic.
The memory 802 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
In some embodiments, there is also provided a machine-readable storage medium, such as the memory 802 in fig. 8, having stored therein machine-executable instructions that, when executed by a processor, implement the signaling execution method described above. For example, the machine-readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and so forth.
Embodiments of the present application also provide a computer program, which is stored in a machine-readable storage medium, such as the memory 802 in fig. 8, and when executed by a processor, causes the processor 801 to perform the signaling execution method described above.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (11)

1. A method of signaling execution, comprising:
receiving a first action execution signaling;
determining whether there is second action execution signaling being executed that has the same key attribute as the first action execution signaling; the key attribute of the action execution signaling refers to an attribute which cannot be modified in the execution process of the action execution signaling;
if the second action execution signaling exists and the second action execution signaling and the first action execution signaling are triggered by the same alarm device, updating the attribute information of the second action execution signaling according to the attribute information of the first action execution signaling, and continuing to execute the second action execution signaling; the attribute information of the action execution signaling refers to an attribute which can be modified in the execution process of the action execution signaling;
and if the second action execution signaling does not exist, executing the first action execution signaling.
2. The method of claim 1, further comprising:
if the second action execution signaling exists and the second action execution signaling and the first action execution signaling are triggered by different alarm devices, determining whether resources of the second action execution signaling need to be preempted;
if the preemption is determined to be needed, releasing resources occupied by executing the second action execution signaling, and executing the first action execution signaling;
and if the second action execution instruction is determined not to be required to be preempted, continuing to execute the second action execution instruction.
3. The method of claim 2, wherein the determining whether preemption of resources for the second action execution signaling is required comprises:
comparing the priority of the first action execution signaling with the priority of the second action execution signaling;
when the priority of the first action execution signaling is higher than that of the second action execution signaling, determining that preemption is needed;
determining that preemption is not required when the priority of the first action execution signaling is lower than the priority of the second action execution signaling.
4. The method of claim 3, wherein the priority of the action execution signaling is determined based on one or more of:
the alarm device triggers the action execution signaling and the alarm event triggers the action execution signaling.
5. The method of any of claims 1-4, wherein the determining whether there is a second action execution signaling being executed that has the same key attributes as the first action execution signaling, further comprises:
determining linkage action corresponding to the first action execution signaling as continuous operation or non-continuous operation;
when the linkage action corresponding to the first action execution signaling is used as continuous operation, determining whether the operation of determining whether the executed second action execution signaling with the same key attribute as that of the first action execution signaling exists is executed;
and when the linkage action corresponding to the first action execution signaling is non-continuous operation, executing the first action execution signaling.
6. The method according to any of claims 1-4, wherein if the second action execution signaling is present and triggered by the same alerting device as the first action execution signaling, the method further comprises:
returning a successful response message aiming at the second action execution signaling to a linkage platform so that the linkage platform pushes target time carried by the successful response message to a user terminal, and the user terminal searches video data with the target time as reference time, a first preset time length in the forward direction and a second preset time length in the backward direction; the target time is the time when the linkage equipment receives the second action execution signaling, and the successful response message aiming at the second action execution signaling is used for indicating the successful execution of the second action execution signaling.
7. The method according to any one of claims 1 to 4, wherein the linkage action corresponding to the action execution signaling is video recording;
the attribute information comprises video recording duration, video recording resolution and/or video recording code rate;
the updating the attribute information of the second action execution signaling according to the attribute information of the first action execution signaling comprises:
updating the video recording duration of the video corresponding to the second action execution signaling to the first video recording duration, wherein the first video recording duration is the video recording duration included in the attribute information of the first action execution signaling;
and/or the presence of a gas in the gas,
updating the resolution of the video corresponding to the second action execution signaling to the first resolution, where the first resolution is the resolution of the video included in the attribute information of the first action execution signaling;
and/or the presence of a gas in the gas,
and updating the code rate of the video corresponding to the second action execution signaling to the first code rate, wherein the first code rate is the code rate of the video included in the attribute information of the first action execution signaling.
8. A signaling execution apparatus, comprising:
a receiving unit, configured to receive a first action execution signaling;
a determining unit, configured to determine whether there is a second action execution signaling being executed, which has the same key attribute as the first action execution signaling; the key attribute of the action execution signaling refers to an attribute which cannot be modified in the execution process of the action execution signaling;
the processing unit is used for updating the attribute information of the second action execution signaling according to the attribute information of the first action execution signaling and continuously executing the second action execution signaling if the second action execution signaling exists and the second action execution signaling and the first action execution signaling are triggered by the same alarm device; the attribute information of the action execution signaling refers to an attribute which can be modified in the execution process of the action execution signaling;
the processing unit is further configured to execute the first action execution signaling if the second action execution signaling does not exist.
9. The apparatus of claim 8,
the processing unit is further configured to determine whether to preempt a resource of the second action execution signaling if the second action execution signaling exists and the second action execution signaling and the first action execution signaling are triggered by different alarm devices; if the preemption is determined to be needed, releasing resources occupied by executing the second action execution signaling, and executing the first action execution signaling; if the second action execution instruction is determined not to be required to be preempted, continuing to execute the second action execution instruction;
and/or the presence of a gas in the gas,
the processing unit is specifically configured to compare a priority of the first action execution signaling with a priority of the second action execution signaling; when the priority of the first action execution signaling is higher than that of the second action execution signaling, determining that preemption is needed; when the priority of the first action execution signaling is lower than that of the second action execution signaling, determining that preemption is not needed;
wherein the priority of the action execution signaling is determined according to one or more of:
the alarm device triggers the action execution signaling and the alarm event triggers the action execution signaling;
and/or the presence of a gas in the gas,
the processing unit is further configured to determine a linkage action corresponding to the first action execution signaling as a persistent operation or a non-persistent operation; when the linkage action corresponding to the first action execution signaling is used as continuous operation, determining whether the operation of determining whether the executed second action execution signaling with the same key attribute as that of the first action execution signaling exists is executed; when linkage action corresponding to the first action execution signaling is non-continuous operation, executing the first action execution signaling;
and/or the presence of a gas in the gas,
the processing unit is further configured to, if the second action execution signaling exists and the second action execution signaling and the first action execution signaling are triggered by the same alarm device, return a successful response message for the second action execution signaling to a linkage platform, so that the linkage platform pushes a target time carried by the successful response message to a user terminal, and the user terminal searches for video data with the target time as a reference time, a first preset duration in the forward direction, and a second preset duration in the backward direction; the target time is the time when the linkage equipment receives the second action execution signaling, and the successful response message aiming at the second action execution signaling is used for indicating the successful execution of the second action execution signaling;
and/or the presence of a gas in the gas,
the linkage action corresponding to the action execution signaling is video recording; the attribute information comprises video recording duration, video recording resolution and/or video recording code rate;
the processing unit is specifically configured to update a video recording duration of a video corresponding to the second action execution signaling to the first video recording duration, where the first video recording duration is a video recording duration included in the attribute information of the first action execution signaling;
and/or the presence of a gas in the gas,
updating the resolution of the video corresponding to the second action execution signaling to the first resolution, where the first resolution is the resolution of the video included in the attribute information of the first action execution signaling;
and/or the presence of a gas in the gas,
and updating the code rate of the video corresponding to the second action execution signaling to the first code rate, wherein the first code rate is the code rate of the video included in the attribute information of the first action execution signaling.
10. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor being configured to execute the machine executable instructions to implement the method of any one of claims 1 to 7.
11. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202110130203.2A 2021-01-29 2021-01-29 Signaling execution method and device, electronic equipment and machine-readable storage medium Active CN112804108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110130203.2A CN112804108B (en) 2021-01-29 2021-01-29 Signaling execution method and device, electronic equipment and machine-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110130203.2A CN112804108B (en) 2021-01-29 2021-01-29 Signaling execution method and device, electronic equipment and machine-readable storage medium

Publications (2)

Publication Number Publication Date
CN112804108A true CN112804108A (en) 2021-05-14
CN112804108B CN112804108B (en) 2023-04-07

Family

ID=75813077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110130203.2A Active CN112804108B (en) 2021-01-29 2021-01-29 Signaling execution method and device, electronic equipment and machine-readable storage medium

Country Status (1)

Country Link
CN (1) CN112804108B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113470069A (en) * 2021-06-08 2021-10-01 浙江大华技术股份有限公司 Target tracking method, electronic device, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101198037A (en) * 2008-01-03 2008-06-11 中兴通讯股份有限公司 Method for managing monitor video
CN101877774A (en) * 2010-04-06 2010-11-03 李岩 Safety island network video and talkback alarm realization method and safety island network video and alarm talkback system
US20150180708A1 (en) * 2013-01-11 2015-06-25 State Farm Mutual Automobile Insurance Company Home sensor data gathering for neighbor notification purposes
CN111367613A (en) * 2020-03-18 2020-07-03 杭州和利时自动化有限公司 Event triggering system and method, electronic equipment and storage medium
CN111800494A (en) * 2020-06-29 2020-10-20 杭州海康威视数字技术股份有限公司 Equipment online method, system and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101198037A (en) * 2008-01-03 2008-06-11 中兴通讯股份有限公司 Method for managing monitor video
CN101877774A (en) * 2010-04-06 2010-11-03 李岩 Safety island network video and talkback alarm realization method and safety island network video and alarm talkback system
US20150180708A1 (en) * 2013-01-11 2015-06-25 State Farm Mutual Automobile Insurance Company Home sensor data gathering for neighbor notification purposes
CN111367613A (en) * 2020-03-18 2020-07-03 杭州和利时自动化有限公司 Event triggering system and method, electronic equipment and storage medium
CN111800494A (en) * 2020-06-29 2020-10-20 杭州海康威视数字技术股份有限公司 Equipment online method, system and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113470069A (en) * 2021-06-08 2021-10-01 浙江大华技术股份有限公司 Target tracking method, electronic device, and computer-readable storage medium

Also Published As

Publication number Publication date
CN112804108B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN109240765B (en) Fusing method, device and equipment for service resources and computer readable storage medium
CN106856489B (en) Service node switching method and device of distributed storage system
US9965188B2 (en) Memory cleaning method and apparatus, and terminal device
EP2613285A1 (en) Complex event processing apparatus and complex event processing method
US11892922B2 (en) State management methods, methods for switching between master application server and backup application server, and electronic devices
CN107948318B (en) Method and system for synchronizing cache among multiple nodes
JP2006260355A (en) Storage system and storage control method
CN110908838B (en) Data processing method and device, electronic equipment and storage medium
CN112804108B (en) Signaling execution method and device, electronic equipment and machine-readable storage medium
EP1390848A2 (en) Task supervision
CN112153133A (en) Data sharing method, device and medium
CN111787256B (en) Management method, device, medium and electronic equipment for pre-alarm video
CN112218175B (en) Processing method and device for live broadcast room state and computing equipment
CN111930719B (en) Database access method, device and system
CN108279993B (en) Method and device for realizing service degradation and electronic equipment
CN111897626A (en) Cloud computing scene-oriented virtual machine high-reliability system and implementation method
CN110780944B (en) Method and device for starting application permission and machine-readable storage medium
CN111064957B (en) Equipment state monitoring method and device
US20170149893A1 (en) Metadata server, network device and automatic resource management method
CN114356720A (en) Graph database-based job chain task delay early warning method, device and equipment
CN110620736B (en) Method and device for flow scheduling
US11442843B2 (en) Methods and systems for identifying, handling, and debugging a hung thread
CN110764697B (en) Data management method and device
CN117453423B (en) GPU video memory management method and system, storage medium and electronic equipment
CN112256442A (en) Database deadlock detection method and device

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