Alarm information forwarding method and device, electronic equipment, medium and program product
Through the interface hub, multiple interface protocols are supported, the target platform and interface protocol are automatically obtained, and the multi-platform alarm information transmission is realized, which solves the problem of low-efficiency alarm information transmission in the existing technology and improves the timeliness and accuracy of alarm processing.
Patent Information
- Application Number
- CN202411393527.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-01-10
AI Technical Summary
The existing computer room monitoring system cannot realize multi-platform alarm information transmission, and the information transmission efficiency is inefficient.
Through the interface hub, multiple interface protocols are supported, alarm information sent by the on-site monitoring unit, and automatically obtain the target platform based on the platform identification, alarm category or device identification in the alarm information, determine the interface protocol required by each target platform, and realize alarm notification Multi-platform transmission of information.
It improves the efficiency of sending alarm information, ensures that alarm information can be quickly and accurately transmitted to the required processing platform, and improves the timeliness and accuracy of alarm processing.
Smart Images

Figure CN119299280A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of information forwarding, and in particular to an alarm information forwarding method, device, electronic device, medium and program product. Background Art
[0002] With the growing demand for data center and computer room management, the transmission and processing of alarm information in the monitoring system has become increasingly important. In the current computer room monitoring system, the on-site monitoring unit relies on a single interface protocol to send alarm information to a specific platform. Its disadvantage is that it cannot realize the transmission of alarm information on multiple platforms, and the efficiency of information transmission is low. Summary of the invention
[0003] The present disclosure is proposed in view of the above problems. The present disclosure provides a method, device, electronic device, medium and program product for forwarding alarm information.
[0004] According to one aspect of the present disclosure, there is provided a method for forwarding alarm information, which is applied to an interface hub, wherein the interface hub supports multiple interface protocols, and the method comprises:
[0005] Receive alarm information sent by the on-site monitoring unit;
[0006] Obtain all target platforms to receive the alarm information;
[0007] Acquire the target interface protocol required by each of the target platforms to receive the alarm information;
[0008] Based on each of the target interface protocols, the alarm information is sent to each of the corresponding target platforms.
[0009] In addition, according to an alarm information forwarding method in one aspect of the present disclosure, the step of obtaining all target platforms to receive the alarm information includes:
[0010] Determining at least one of the target platforms according to the platform identification information carried by the warning information;
[0011] or,
[0012] Determining at least one of the target platforms according to the alarm category of the alarm information;
[0013] or,
[0014] At least one of the target platforms is determined according to the device identifier of the alarm information.
[0015] In addition, according to an alarm information forwarding method in one aspect of the present disclosure, the acquiring of the target interface protocol required by each target platform to receive the alarm information includes:
[0016] Based on the interface protocols supported by the target platforms, obtaining the target interface protocols required by each of the target platforms to receive the alarm information;
[0017] Or, based on a pre-specified interface protocol of the target platform, a target interface protocol required for each of the target platforms to receive the alarm information is obtained.
[0018] In addition, according to an alarm information forwarding method in one aspect of the present disclosure, the acquiring of the target interface protocol required by each target platform to receive the alarm information includes:
[0019] If at least one of the target platforms supports the first target interface protocol, then at most one of the target interface protocols is determined to adopt the second target interface protocol, wherein the first target interface protocol is the interface protocol for the local dynamic environment monitoring system to connect to the third-party platform, and the second target interface protocol is the interface protocol for the local dynamic environment monitoring system to connect to the input.
[0020] In addition, according to an aspect of the present disclosure, a method for forwarding alarm information, based on each of the target interface protocols, sending the alarm information to each of the corresponding target platforms includes:
[0021] When there are multiple target platforms for the alarm information, the alarm information is sent to the corresponding target platforms in parallel.
[0022] In addition, according to an alarm information forwarding method in one aspect of the present disclosure, based on a notification trigger mechanism or a timing trigger mechanism, the step of sending the alarm information to the corresponding target platforms is triggered.
[0023] In addition, according to an aspect of the present disclosure, a method for forwarding alarm information further includes:
[0024] Storing the alarm information and its alarm label in a database, wherein the alarm label includes a label of a target interface protocol required for each target platform to receive the alarm information and a label of a status of the alarm information being sent to each target platform;
[0025] Based on the notification trigger mechanism or the timing trigger mechanism, the following steps are executed:
[0026] According to the alarm information and its alarm tag in the database, acquiring the unsent alarm information and its corresponding target interface protocol required for the target platform to receive the alarm information;
[0027] The unsent alarm information is sent according to the unsent alarm information and the target interface protocol required by the corresponding target platform to receive the alarm information.
[0028] In addition, according to an aspect of the present disclosure, a method for forwarding alarm information further includes:
[0029] When each interface receives a confirmation response from the platform, it records the confirmation tag and performs independent interaction based on the confirmation tag.
[0030] In addition, according to an alarm information forwarding method according to one aspect of the present disclosure, the multiple interface protocols supported by the interface hub include multiple standard interface protocols, and the multiple standard interface protocols include an interface protocol for docking input of a local dynamic environment monitoring system and at least one third-party interface protocol.
[0031] According to another aspect of the present disclosure, there is provided an alarm information forwarding device, which is applied to an interface hub, wherein the interface hub supports multiple interface protocols, and the device comprises:
[0032] An information receiving module, used to receive alarm information sent by the on-site monitoring unit;
[0033] A platform acquisition module, used to acquire all target platforms to receive the alarm information;
[0034] A protocol acquisition module, used to acquire the target interface protocol required by each target platform to receive the alarm information;
[0035] The information sending module is used to send the alarm information to the corresponding target platforms based on the target interface protocols.
[0036] According to another aspect of the present disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any of the above methods.
[0037] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the steps of any of the above-mentioned methods are implemented.
[0038] According to another aspect of the present disclosure, a computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of any of the above methods are implemented.
[0039] The alarm information forwarding method, device, electronic device, medium and program product provided in the embodiments of the present disclosure utilize an interface hub to automatically obtain all target platforms to receive alarm information and their required target interface protocols. Based on these target interface protocols, the interface hub can send the alarm information to each corresponding target platform, thereby realizing alarm information transmission on multiple platforms and improving the efficiency of sending alarm information.
[0040] It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the technology as claimed. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0042] Figure 1 It is a flowchart illustrating a method for forwarding alarm information according to an embodiment of the present disclosure.
[0043] Figure 2 It is a scenario architecture diagram illustrating the alarm information forwarding method according to an embodiment of the present disclosure.
[0044] Figure 3 It is a block diagram illustrating an alarm information forwarding device according to an embodiment of the present disclosure.
[0045] Figure 4 is a schematic diagram illustrating a computer program product according to an embodiment of the present disclosure.
[0046] Figure 5 is a hardware block diagram illustrating an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present disclosure more obvious, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.
[0048] See also Figure 1 and Figure 2 , an alarm information forwarding method, applied to an interface hub (hub), the interface hub supports multiple interface protocols, the method includes:
[0049] S101, receiving the alarm information sent by the field supervision unit (Field Supervision Unit, referred to as FSU).
[0050] In an embodiment of the present disclosure, the field monitoring unit sends an alarm message, and the interface hub receives the alarm message sent by the field monitoring unit. The field monitoring unit can generate and send alarm information using relevant technologies. For example, sensors such as temperature sensors, humidity sensors, and smoke sensors collect computer room environmental data. When the computer room environmental data exceeds a set range, an alarm is triggered to the field monitoring unit. After the alarm is triggered, the field monitoring unit generates and sends alarm information. For example, the local monitoring module of the computer room detects various parameters and states of the computer room in real time. When an abnormality occurs in a parameter or state, an alarm is triggered to the field monitoring unit. After the alarm is triggered, the field monitoring unit generates and sends alarm information. As needed, the alarm information may include information such as alarm category (e.g., too high temperature, abnormal humidity, etc.), alarm timestamp, alarm level, or related device ID.
[0051] S102, obtaining all target platforms to receive alarm information.
[0052] In step S102 of the embodiment of the present disclosure, the target platform to receive the alarm information refers to the transmission destination of the alarm information, which supports one platform and multiple platforms. For example, if the transmission destination of the alarm information is third-party platform X and third-party platform Y, then the target platforms to receive the alarm information are third-party platform X and third-party platform Y. For example, if the transmission destination of the alarm information is third-party platform Z, then the target platform to receive the alarm information is third-party platform Z.
[0053] In step S102 of the embodiment of the present disclosure, all target platforms to receive the alarm information may be acquired according to actual needs and relevant technical means.
[0054] For example, based on the platform identification information carried by the alarm information, at least one target platform to receive the alarm information is determined. This can directly indicate the target platform, reducing the links of fuzzy judgment and intermediate mapping. This can ensure that the alarm information is quickly and accurately transmitted to the platform that needs to be processed, thereby improving the timeliness of alarm processing.
[0055] For example: according to the alarm category of the alarm information, at least one target platform to receive the alarm information is determined. Specifically, the first mapping relationship between the alarm category and the target platform can be pre-configured, and the target platform is determined by using the alarm category of the alarm information and the first mapping relationship. It improves the automation of alarm information distribution and avoids the complexity of manual platform selection. It can accurately determine the target platform according to the different alarm types to ensure timely and effective alarm processing. It can flexibly adapt to different types of alarm scenarios, and different types of alarm information can be quickly located to different processing platforms to improve response efficiency.
[0056] For example: according to the device identification of the alarm information, at least one target platform to receive the alarm information is determined. Specifically, the second mapping relationship between the device ID and the target platform can be pre-configured, the alarm information carries the device ID, and the target platform is determined by using the device ID carried by the alarm information and the second mapping relationship. It can quickly determine the target platform of the alarm information according to the device identification of the alarm device, and realize refined alarm processing at the device level. It is suitable for scenarios with multiple devices and platforms in complex systems, so that alarms can directly reach the relevant device management platform and improve the accuracy of alarm processing. By binding the device identification with the platform, it reduces the error rate of alarm distribution and ensures that the alarm information can be sent to the appropriate platform.
[0057] It can be known that the above methods for obtaining the target platform for receiving the alarm information can be used in a cross-coordinated manner or independently.
[0058] S103, obtaining the target interface protocol required by each target platform to receive the alarm information.
[0059] In step S103 of the embodiment of the present disclosure, each target platform corresponds to a target interface protocol required for receiving alarm information, so that the alarm information can be sent to the corresponding target platform based on the target interface protocol. It can be known that the target interface protocol is one of the multiple interface protocols supported by the interface hub.
[0060] It should be noted that in step S103 of the embodiment of the present disclosure, the target interface protocol required for the target platform to receive the alarm information may be an interface protocol for directly sending the alarm information to the target platform, or may be an interface protocol for indirectly sending the alarm information to the target platform.
[0061] For example, the interface hub uses the B interface (power environment centralized monitoring system-B interface) protocol to send alarm information to the local dynamic environment monitoring system, and the local dynamic environment monitoring system uses the C interface (power environment centralized monitoring system-C interface) protocol to send the alarm information to the third-party platform X, then the B interface protocol is used to indirectly send the alarm information to the third-party platform X. In other words, the target interface protocol is the B interface protocol. For example, the interface hub uses the RESTful interface protocol (a protocol supported by the RESTful interface) to directly send the alarm information to the third-party platform X, then the target interface protocol is the RESTful interface protocol. In the process of monitoring and forwarding the dynamic environment real-time performance data and alarm data, the prior art usually pushes it from the FSU to the SC through the B interface, and then forwards it to the third-party platform through the C interface. The technical support of the embodiment of the present disclosure is forwarded to the third-party platform by the SC using the C interface, so that the relevant third-party platform that has been running can be left unchanged. The C interface is used to realize the interaction between the SC and the upper-layer application third-party platform. Due to the large amount of data transmission involved in the C interface, it may lead to low data transmission efficiency, affecting the real-time and accuracy of the monitoring system. The technical solution disclosed in the present invention supports the use of other interface protocols to directly forward the alarm information to a third-party platform. Other interface protocols can be selected to directly forward the alarm information to a third-party platform according to needs, which can overcome the above-mentioned defects to a certain extent.
[0062] In one embodiment, step S103 obtains the target interface protocol required for each target platform to receive the alarm information based on the interface protocol supported by the target platform. For example, the target platforms are third-party platform X, third-party platform Y, and third-party platform Z, respectively. Third-party platform X supports the C interface protocol of the existing local dynamic environment monitoring system facing the third-party platform, third-party platform Y supports the RESTful interface protocol, and third-party platform Z supports the SOAP interface protocol and the C interface protocol of the local dynamic environment monitoring system facing the third-party platform; then it should be understood that since the third-party platform X only supports the C interface protocol, and the C interface protocol is the protocol of the local dynamic environment monitoring system SC facing the third-party platform, the interface hub can use the B interface protocol of the local dynamic environment monitoring system SC for input to send to the third-party platform X through the local dynamic environment monitoring system SC through the C interface protocol, therefore, it can be determined that the target interface protocol required for the third-party platform X to receive the alarm information is the B interface protocol; since the third-party platform Y only supports the RESTful interface protocol, it can be determined that the target interface protocol required for the third-party platform Y to receive the alarm information is the RESTful interface protocol. Since the C interface protocol does not support parallelism, the target interface protocol corresponding to the third-party platform Z cannot be the C interface protocol at this time. Therefore, the target interface protocol required for the third-party platform Z to receive alarm information is the SOAP interface protocol. It should be understood that when there are multiple options for the interface protocol adopted by the target platform, you can choose according to actual needs. For example, if lightweight and high readability are required, you can choose the RESTful interface protocol. For example, select the interface protocol based on the platform priority. Determining the alarm information sending method based on the interface protocol supported by the target platform can improve the compatibility of the system, optimize resource utilization, simplify the management process, and improve the stability and flexibility of alarm transmission. This method effectively reduces the risk of system failure and ensures accurate and timely alarm distribution under multi-platform integration.
[0063] In one embodiment, step S103 can obtain the target interface protocol required for each target platform to receive the alarm information based on the interface protocol of the pre-specified target platform. For example, the target platforms of the alarm information are third-party platform X and third-party platform Y, respectively, and the third-party platform X is pre-specified to use the B interface protocol and the third-party platform Y is pre-specified to use the RESTful interface protocol. Then it is determined that the target interface protocol required for the third-party platform X to receive the alarm information is the B interface protocol, and the target interface protocol required for the third-party platform Y to receive the alarm information is the RESTful interface protocol. The user can set the interface protocol adopted by the corresponding third-party platform in the hub control page according to the interface protocol support of each third-party platform to pre-specify the interface protocol of the target platform. By pre-specifying the interface protocol of the target platform, the system can improve the efficiency, stability and flexibility of alarm distribution while simplifying the configuration and maintenance process. This method can ensure the protocol compatibility of multiple platforms, reduce alarm delays, and enhance the system's adaptability to future changes.
[0064] In one embodiment, if at least one target platform supports the first target interface protocol, then at most one target interface protocol is determined to adopt the second target interface protocol, wherein the first target interface protocol is the interface protocol for the local dynamic environment monitoring system to connect to the third-party platform, and the second target interface protocol is the interface protocol for the local dynamic environment monitoring system to connect to the input. For example, if there are three target platforms that support the C interface protocol, and the C interface protocol is the interface protocol for the local dynamic environment monitoring system to face the third-party platform, then at most one target platform's transmission protocol is determined to adopt the B interface protocol, and the B interface protocol is the interface protocol for the local dynamic environment monitoring system to face the input. By limiting at most one platform to use the second target interface protocol when multiple target platforms support the second target interface protocol, the alarm information will not be unable to be sent synchronously due to the inability of the second target interface protocol to send information synchronously, thereby improving the concurrent processing capability.
[0065] S104, based on each target interface protocol, sending the alarm information to each corresponding target platform.
[0066] In step S104 of the embodiment of the present disclosure, the target platform corresponds to the target interface protocol. For example, the target platforms are third-party platform X, third-party platform Y, and third-party platform Z, respectively. The target interface protocol required for third-party platform X to receive alarm information is the B interface protocol, the target interface protocol required for third-party platform Y to receive alarm information is the RESTful interface protocol, and the target interface protocol required for third-party platform Z to receive alarm information is the SOAP interface protocol. Then, based on each target interface protocol, sending the alarm information to each corresponding target platform can be: sending the alarm information to third-party platform X based on the B interface protocol (sending it to the local dynamic environment monitoring system based on the B interface protocol, and the local dynamic environment monitoring system sending it to the third-party platform X based on the C interface protocol), sending the alarm information to third-party platform Y based on the RESTful interface protocol; sending the alarm information to third-party platform Z based on the SOAP interface protocol. It should be understood that when sending the alarm information to each corresponding target platform based on each target interface protocol, the alarm information is adjusted based on the data format corresponding to the interface protocol.
[0067] It should be understood that after obtaining the target interface protocol required by each target platform to receive the alarm information, the corresponding interface protocol and data format can be configured to send the alarm information using the interface protocol and data format, such as the RESTful interface protocol, configuring the JSON data format, and using the RESTful interface and JSON format data transmission method to provide a lightweight, highly readable and easy-to-understand interface specification. The alarm information can be processed and formatted accordingly to facilitate sending the alarm information.
[0068] In one embodiment, when there are multiple target platforms for the alarm information, the alarm information is sent to the corresponding target platforms in parallel. Sending the alarm information to multiple target platforms in parallel can significantly improve the performance, reliability and flexibility of the system, and is an effective design choice.
[0069] In one embodiment, based on the notification trigger mechanism or the timing trigger mechanism, the step of sending the alarm information to the corresponding target platforms is triggered. The introduction of the interface management thread and the flexible trigger mechanism improves the real-time performance, reliability and maintainability of the system, optimizes resource utilization and simplifies the overall design.
[0070] In one embodiment, the alarm information and its alarm label are stored in a database, wherein the alarm label includes a label of a target interface protocol required for each target platform to receive the alarm information and a label of a status of the alarm information being sent to each target platform.
[0071] The following steps are executed based on the notification trigger mechanism or the timing trigger mechanism: according to the alarm information and its alarm tag in the database, the unsent alarm information and the target interface protocol required by the corresponding target platform to receive the alarm information are obtained; according to the unsent alarm information and the target interface protocol required by the corresponding target platform to receive the alarm information, the unsent alarm information is sent. The interface management thread can use a trigger mechanism such as a notification trigger mechanism or a timing trigger mechanism to trigger the above steps.
[0072] Storing alarm information and its tags in the database, and triggering the retrieval and sending steps of unsent alarm information through the interface management thread can ensure timely information delivery and status monitoring. Based on the notification trigger mechanism or the timing trigger mechanism, the sending of alarm information can be effectively managed, resource utilization can be optimized, and the reliability and flexibility of the system can be improved, thereby ensuring the integrity and accuracy of data interaction.
[0073] In one embodiment, an independent response confirmation mechanism for different interface protocol platforms is adopted. When each interface receives a confirmation response from the platform, it records the confirmation mark and performs independent interaction based on the confirmation mark to ensure that the interaction of each interface is independent and does not affect each other. In the case of simultaneous response of multiple platforms, regardless of whether the target platform is online, the system stores alarm information to ensure the integrity of the data. If a platform is temporarily offline, the system will push alarms according to different progress after the platform is back online, and mark the corresponding push status. This mechanism ensures that even if the platform is not online, the alarm information will not be lost, and can be effectively transmitted after the platform is online. In addition, with the help of standardized interface design and protocol conversion, the interface hub achieves seamless docking with multiple platforms, thereby reducing compatibility issues between different platforms, improving the reliability and maintainability of the system, and ensuring the integrity and accuracy of data interaction.
[0074] In one embodiment, the multiple interface protocols supported by the interface hub include several standard interface protocols, including the interface protocol for the local dynamic environment monitoring system docking input and at least one third-party interface protocol. The third-party interface protocol can be a RESTful interface protocol, etc. The interface hub supports multiple interface protocols, which improves the flexibility, compatibility and scalability of the system, thereby enhancing the overall reliability and management efficiency.
[0075] refer to Figure 3 The exemplary embodiment of the present disclosure further provides an alarm information forwarding device, which is applied to an interface hub, and the interface hub supports multiple interface protocols. The device includes:
[0076] The information receiving module 301 is used to receive the alarm information sent by the on-site monitoring unit;
[0077] The platform acquisition module 302 is used to acquire all target platforms to receive the alarm information;
[0078] The protocol acquisition module 303 is used to acquire the target interface protocol required by each target platform to receive the alarm information;
[0079] The information sending module 304 is used to send the alarm information to the corresponding target platforms based on the target interface protocols.
[0080] In one embodiment, the platform acquisition module 302 is used to acquire all target platforms for receiving the alarm information, and is specifically used to: determine at least one target platform according to the platform identification information carried in the alarm information.
[0081] In one embodiment, the platform acquisition module 302 is used to acquire all target platforms for receiving the alarm information, and is specifically used to: determine at least one target platform according to the alarm category of the alarm information.
[0082] In one embodiment, the platform acquisition module 302 is used to acquire all target platforms for receiving the alarm information, and is specifically used to: determine at least one target platform according to the device identifier of the alarm information.
[0083] In one embodiment, the protocol acquisition module 303 is used to acquire the target interface protocol required by each target platform to receive the alarm information, and is specifically used to: acquire the target interface protocol required by each target platform to receive the alarm information based on the interface protocol supported by the target platform.
[0084] In one embodiment, the protocol acquisition module 303 is used to acquire the target interface protocol required by each target platform to receive the alarm information, and is specifically used to: acquire the target interface protocol required by each target platform to receive the alarm information based on the interface protocol of the pre-specified target platform.
[0085] In one embodiment, the protocol acquisition module 303 is used to obtain the target interface protocol required for each target platform to receive alarm information, and is specifically used to: if at least one target platform supports the first target interface protocol, then at most one target interface protocol is determined to adopt the second target interface protocol, wherein the first target interface protocol is the interface protocol for the local dynamic environment monitoring system to connect to a third-party platform, and the second target interface protocol is the interface protocol for the local dynamic environment monitoring system to connect to the input.
[0086] In one embodiment, the information sending module 304 is used to send the alarm information to the corresponding target platforms based on the target interface protocols. Specifically, when there are multiple target platforms for the alarm information, the alarm information is sent to the corresponding target platforms in parallel.
[0087] In one embodiment, the information sending module 304 is used to trigger the step of sending the alarm information to each corresponding target platform based on a notification trigger mechanism or a timing trigger mechanism.
[0088] In one embodiment, the apparatus further comprises:
[0089] A storage module, used to store the alarm information and its alarm label in a database, wherein the alarm label includes a label of a target interface protocol required for each target platform to receive the alarm information and a label of a status of the alarm information being sent to each target platform;
[0090] A trigger module is used to trigger the execution of the following steps based on a notification trigger mechanism or a timing trigger mechanism: according to the alarm information and its alarm label in the database, obtain the unsent alarm information and the target interface protocol required for its corresponding target platform to receive the alarm information; according to the unsent alarm information and the target interface protocol required for its corresponding target platform to receive the alarm information, send the unsent alarm information.
[0091] In one embodiment, the device further comprises a marking module, which is used to record a confirmation mark when each interface receives a confirmation response from the platform, and perform independent interaction based on the confirmation mark.
[0092] In one embodiment, the multiple interface protocols supported by the interface hub include multiple standard interface protocols, and the multiple standard interface protocols include an interface protocol for docking input of a local dynamic environment monitoring system and at least one third-party interface protocol.
[0093] The exemplary embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.
[0094] Exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method according to an embodiment of the present disclosure.
[0095] refer to Figure 4 The exemplary embodiment of the present disclosure further provides a computer program product 400, comprising a computer program 401, wherein the computer program is used to enable the computer to perform the method according to the embodiment of the present disclosure when being executed by a processor of the computer.
[0096] The alarm information forwarding method, device, electronic device, medium and program product provided in the embodiments of the present disclosure utilize an interface hub to automatically obtain all target platforms to receive alarm information and their required target interface protocols. Based on these target interface protocols, the interface hub can send the alarm information to each corresponding target platform, thereby realizing alarm information transmission on multiple platforms and improving the efficiency of sending alarm information.
[0097] refer to Figure 5 , a block diagram of an electronic device 500 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0098] The electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0099] A plurality of components in the electronic device 500 are connected to the I / O interface 505, including: an input unit 506, an output unit 507, a storage unit 508, and a communication unit 509. The input unit 506 may be any type of device capable of inputting information to the electronic device 500, and the input unit 506 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 507 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 508 may include, but is not limited to, a disk, an optical disk. The communication unit 509 allows the electronic device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0100] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above. For example, in some embodiments, the method of the embodiment of the present disclosure may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 500 via the ROM 502 and / or the communication unit 509. In some embodiments, the computing unit 501 may be configured to perform the method of the embodiment of the present disclosure in any other appropriate manner (e.g., by means of firmware).
[0101] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
[0102] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0103] Additionally, as used herein, "or" used in a list of items beginning with "at least one" indicates a separate list, so that, for example, a list of "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the example described is preferred or better than other examples.
[0104] It should also be noted that in the system and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0105] Various changes, substitutions, and modifications of the techniques described herein may be made without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of events, means, methods, and actions described above. Currently existing or later to be developed processes, machines, manufactures, compositions of events, means, methods, or actions that perform substantially the same functions or achieve substantially the same results as the corresponding aspects described herein may be utilized. Thus, the appended claims include such processes, machines, manufactures, compositions of events, means, methods, or actions within their scope.
[0106] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0107] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for forwarding alarm information, characterized in that: Applied to an interface hub, the interface hub supports multiple interface protocols, the method comprising: Receive alarm information sent by the on-site monitoring unit; Obtain all target platforms to receive the alarm information; Acquire the target interface protocol required by each of the target platforms to receive the alarm information; Based on each of the target interface protocols, the alarm information is sent to each of the corresponding target platforms.
2. The method according to claim 1, characterized in that The acquiring all target platforms to receive the alarm information includes: Determining at least one of the target platforms according to the platform identification information carried by the warning information; or, Determining at least one of the target platforms according to the alarm category of the alarm information; or, At least one of the target platforms is determined according to the device identifier of the alarm information.
3. The method according to claim 1, characterized in that The obtaining of the target interface protocol required by each target platform to receive the alarm information includes: Based on the interface protocols supported by the target platforms, obtaining the target interface protocols required by each of the target platforms to receive the alarm information; Or, based on a pre-specified interface protocol of the target platform, a target interface protocol required for each of the target platforms to receive the alarm information is obtained.
4. The method according to claim 1, characterized in that: The acquiring of the target interface protocol required by each target platform to receive the alarm information includes: If at least one of the target platforms supports the first target interface protocol, then at most one of the target interface protocols is determined to adopt the second target interface protocol, wherein the first target interface protocol is the interface protocol for the local dynamic environment monitoring system to connect to the third-party platform, and the second target interface protocol is the interface protocol for the local dynamic environment monitoring system to connect to the input.
5. The method according to claim 1, characterized in that: The sending the alarm information to the corresponding target platforms based on the target interface protocols includes: When there are multiple target platforms for the alarm information, the alarm information is sent to the corresponding target platforms in parallel.
6. The method according to claim 1, characterized in that Based on a notification trigger mechanism or a timing trigger mechanism, the step of sending the alarm information to the corresponding target platforms is triggered.
7. The method according to claim 1, characterized in that The method further comprises: Storing the alarm information and its alarm label in a database, wherein the alarm label includes a label of a target interface protocol required for each target platform to receive the alarm information and a label of a status of the alarm information being sent to each target platform; Based on the notification trigger mechanism or the timing trigger mechanism, the following steps are executed: According to the alarm information and its alarm tag in the database, acquiring the unsent alarm information and its corresponding target interface protocol required for the target platform to receive the alarm information; The unsent alarm information is sent according to the unsent alarm information and the target interface protocol required by the corresponding target platform to receive the alarm information.
8. The method according to claim 1, characterized in that: The method further comprises: When each interface receives a confirmation response from the platform, it records the confirmation tag and performs independent interaction based on the confirmation tag.
9. The method according to claim 1, characterized in that: The multiple interface protocols supported by the interface hub include multiple standard interface protocols, and the multiple standard interface protocols include an interface protocol for docking input of a local dynamic environment monitoring system and at least one third-party interface protocol.
10. An alarm information forwarding device, characterized in that: Applied to an interface hub, the interface hub supports multiple interface protocols, and the device comprises: An information receiving module, used to receive alarm information sent by the on-site monitoring unit; A platform acquisition module, used to acquire all target platforms to receive the alarm information; A protocol acquisition module, used to acquire the target interface protocol required by each target platform to receive the alarm information; The information sending module is used to send the alarm information to the corresponding target platforms based on the target interface protocols.
11. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instruction is executed by a processor, the steps of any method described in claims 1 to 9 are implemented.
13. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of any method described in claims 1 to 9 are implemented.
Citation Information
Patent Citations
Method and device for accessing cloud platform
CN114553608A
Multi-platform linkage road image model processing system and method
CN117671572A
Multi-protocol multi-interface data distribution system and method based on industrial edge gateway
CN118317008A
Method, device and computer program product for protocol selection
US20190173960A1