Access gateway of power grid video monitoring platform and access method thereof

By designing the access gateway of the power grid video monitoring platform, the problem of inaccessibility of existing front-end equipment is solved, the access and protocol conversion of GB/T 28181 protocol equipment are realized, the construction cost is reduced, and the reliability of the power grid video monitoring system is ensured. Resource utilization and data transfer.

CN118694749APending Publication Date: 2024-09-24XUCHANG XJ SOFTWARE TECHNOLOGIES LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310302402.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing front-end equipment supports the GB/T 28181 protocol but does not support the SIP-B protocol, resulting in the inability to access the power grid video monitoring platform and increasing the construction cost of the power grid video monitoring system.

Method used

Design an access gateway for the power grid video monitoring platform, connect the front-end equipment that supports the GB/T 28181 protocol through registration, and convert it into the protocol format supported by the power grid video monitoring platform to achieve protocol conversion and data transmission, using the access gateway Perform source address translation to ensure that data packets are transmitted to the power grid video monitoring platform.

Benefits of technology

It realizes the access of existing GB/T 28181 protocol front-end equipment, reduces the construction cost of the video surveillance system, maximizes resource utilization, and ensures that the power grid video surveillance platform can browse real-time video data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694749A
    Figure CN118694749A
Patent Text Reader

Abstract

The invention belongs to the technical field of power grid video monitoring, and particularly relates to an access gateway of a power grid video monitoring platform and an access method of the access gateway. The access gateway comprises a GB protocol module, an SIPB protocol module, a protocol conversion module and an application control module used for message interaction between the GB protocol module and the protocol conversion module and between the SIPB protocol module and the protocol conversion module, and the GB protocol module is used for performing a message interaction process with front-end equipment. The SIPB protocol module is used for performing a message interaction process with a power grid video monitoring platform, the protocol conversion module is used for realizing conversion between a GB28181 protocol format and an SIPB protocol format, and the protocol module is also used for setting a source address conversion rule related to monitoring equipment information under front-end equipment; data packets of the corresponding front-end equipment are transmitted to a power grid video monitoring platform based on the source address conversion rule, that is, the power grid video monitoring system can be constructed by fully utilizing the existing GB28181 protocol front-end equipment, and the construction cost of the video monitoring system is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of power grid video monitoring, and in particular relates to an access gateway of a power grid video monitoring platform and an access method thereof. Background Art

[0002] The power grid video monitoring system and interface is an enterprise standard formulated by the State Grid Corporation of China. The purpose is to achieve unified monitoring, unified storage, hierarchical control, and domain management, so that different video monitoring systems can be interconnected. The interface B part of the standard provides an interface between the video monitoring platform and the front-end system belonging to the platform. It is the internal access protocol of the power grid video monitoring system (referred to as SIP-B protocol). SIP (Session Initiation Protocol) is an application layer signaling control protocol used to create, modify, and release sessions of one or more participants. These sessions can be Internet multimedia conferences, IP phones, or multimedia distribution. The national standard streaming media server uses the SIP protocol for signaling interaction.

[0003] In the public security video surveillance network system, GB / T 28181 standard is the national standard for this system and is supported by most domestic manufacturers. Therefore, the GB / T 28181 protocol covers most cameras, network video recorders (NVRs), management platforms and other equipment. Support for the GB / T 28181 standard will expand the application scope of various video processing-based smart systems, and has promotion and practical value in actual projects. GB28181 is mainly used in security scenarios and has also been widely used in the power industry.

[0004] Therefore, the front-end devices such as cameras and NVRs widely used in the market basically support the GB / T 28181 protocol, but not the SIP-B protocol, which results in many existing front-end devices being unable to access the power grid video monitoring platform. If you want to build a power grid video monitoring system, you need to purchase NVRs, cameras and other front-end devices that support the SIP-B protocol, which greatly increases the construction cost. Therefore, there is an urgent need for a device that can connect the front-end devices that support the GB / T 28181 protocol to the SIP-B power grid video monitoring platform to reduce the construction cost of the power grid video monitoring system. Summary of the invention

[0005] The purpose of the present invention is to provide an access gateway and access method for a power grid video monitoring platform, so as to solve the problem that a front-end device supporting the GB / T 28181 protocol cannot be accessed to the power grid video monitoring platform, resulting in the need to purchase a front-end device supporting the SIP-B protocol to build a power grid video monitoring system, resulting in high construction costs.

[0006] In order to solve the above technical problems, the present invention provides an access method for an access gateway of a power grid video monitoring platform, comprising the following steps:

[0007] 1) The access gateway is registered and connected with the front-end device supporting the GB / T 28181 protocol, and obtains the unique identifier of the monitoring device under the front-end device; the access gateway is registered and connected with the power grid video monitoring platform, and after converting the obtained unique identifier into the protocol format supported by the power grid video monitoring platform, it is transmitted to the power grid video monitoring platform to add the monitoring device under the front-end device to the resource list of the power grid video monitoring platform; the access gateway includes a network card in the same network segment as the front-end device and a network card in the same network segment as the power grid video monitoring platform;

[0008] 2) When the power grid video monitoring platform needs to obtain the real-time video information of the monitoring device under the front-end device, the access gateway replaces the stream receiving address of the request information sent by the power grid video monitoring platform with the address of the network card in the same network segment as the front-end device, and converts the request information into a real-time on-demand request message in the GB / T 28181 protocol format, and then transmits the message to the corresponding front-end device; when the front-end device returns the real-time on-demand response message to the access gateway, the access gateway sets the source address conversion rules related to the monitoring device information under the front-end device, and when receiving the data packet transmitted by the corresponding front-end device, performs source address conversion on the data packet according to the source address conversion rules, so as to transmit the data packet to the power grid video monitoring platform through the access gateway.

[0009] The beneficial effects are as follows: the method of the present invention registers and connects the power grid video monitoring platform and the front-end device respectively through the access gateway, thereby realizing the message interaction process between the power grid video monitoring platform and the access gateway, and between the access gateway and the power grid video monitoring platform. Based on the method of the present invention, the message data obtained from the power grid video monitoring platform can be converted into message data in a protocol format supported by the front-end device, and the message data obtained from the front-end device can be converted into message data in a protocol format supported by the power grid video monitoring platform, thereby realizing the process of transmitting the message data obtained from the front-end device to the power grid video monitoring platform, and transmitting the message data obtained from the power grid video monitoring platform to the front-end device. Based on the source address conversion rule of the present invention, the data packet of the front-end device can be transmitted to the power grid video monitoring platform, realizing the process of the power grid video monitoring platform browsing real-time video data, that is, converting the GB28181 protocol supported by the front-end device into the SIP-B protocol and connecting it to the power grid video monitoring platform, thereby making full use of the existing GB28181 protocol front-end device to build a power grid video monitoring system, realizing the maximum utilization of resources, and greatly reducing the construction cost of the video monitoring system. When the access gateway receives the real-time video request message sent by the monitoring platform, the stream receiving address of the media information in the message will be replaced with the address used to connect the gateway and the front-end device, and then the message will be converted into the GB28181 protocol format and sent to the front-end device, so that the real-time video request message sent by the monitoring platform can be transmitted to the front-end device and recognized by the front-end device.

[0010] Furthermore, in step 2), the source address conversion rule related to the monitoring device information under the front-end device is: converting the stream sending address in the real-time on-demand response message returned by the front-end device into the network card address in the access gateway in the same network segment as the power grid video monitoring platform.

[0011] The method of the present invention sets a source address conversion rule for converting a stream sending address into a network card address in an access gateway in the same network segment as a power grid video monitoring platform. When a data packet transmitted by a front-end device is received, the method can filter the data packet having the same source address as the stream sending address and the same source port as the stream sending port through the source address conversion rule, that is, when the source address and source port of the data packet are consistent with the stream sending address and the stream sending port in the source address conversion rule, the source address of the data packet can be converted into a network card address in the access gateway in the same network segment as the power grid video monitoring platform. Then, after the source address conversion, the data packet is in the same network segment as the power grid video monitoring platform, and the data packet after the source address conversion can be transmitted to the power grid video monitoring platform.

[0012] Furthermore, in step 2), when it is necessary to end the browsing of the real-time video information, the access gateway deletes the source address conversion rule related to the monitoring device information under the front-end device to block the transmission of the data packet to the power grid video monitoring platform through the access gateway.

[0013] Because the source address conversion rule set in the method of the present invention is a source address conversion rule related to the monitoring device information under the front-end device, that is, under this rule, the corresponding data packet sent by the front-end device can be transmitted to the power grid video monitoring platform. Therefore, the method of the present invention deletes the source address conversion rule when ending the real-time video information browsing, thereby blocking the data transmission channel for the corresponding data packet sent by the front-end device to be transmitted to the power grid video monitoring platform, thereby blocking the data packet from continuing to be transmitted to the power grid video monitoring platform.

[0014] Furthermore, in step 2), when the access gateway receives the request to end the real-time video from the power grid video monitoring platform, it converts the request message into an end real-time on-demand request message in the GB / T 28181 protocol format, and then transmits the message to the front-end device; when the front-end device returns an end real-time on-demand response message to the access gateway, when it is necessary to end the browsing of real-time video information, it converts the message into an end real-time video response message in the SIP-B protocol format, and then transmits the message to the power grid video monitoring platform.

[0015] Because the platform first sends a request message to end the real-time video, and the entire process continues until a response message is received; for the platform, the access gateway is equivalent to the front-end device. For the front-end device, the real-time on-demand process is only ended when the front-end device replies to the end response message, and the conversion rule should be deleted. Otherwise, the front-end device does not consider it to be ended, and the video stream is still being sent, and the conversion rule should not be deleted. Therefore, the method of the present invention performs the process of deleting the conversion rule when the front-end device returns the end real-time on-demand response message to the access gateway.

[0016] Furthermore, in step 2), when the front-end device returns the real-time on-demand response message to the access gateway, the access gateway also replaces the stream sending address of the real-time on-demand response message with the address of the network card in the same network segment as the power grid video monitoring platform, and converts the real-time on-demand response message into a request response message in a protocol format supported by the power grid video monitoring platform, and then transmits the message to the power grid video monitoring platform.

[0017] The method of the present invention replaces the stream sending address of the media information in the message with the address used for connecting the gateway and the monitoring platform when the access gateway receives the real-time on-demand response message sent by the front-end device, and then converts the message into the SIP-B protocol format and sends it to the power grid monitoring platform. In this way, the real-time on-demand response message sent by the front-end device can be transmitted to the power grid video monitoring platform and recognized by the power grid video monitoring platform.

[0018] Furthermore, in step 1), the method for obtaining the unique identifier of the monitoring device under the front-end device is: after the access gateway is successfully registered and connected with the front-end device that supports the GB / T 28181 protocol, the device directory query response information of the front-end device is actively obtained, and the device directory query response information is parsed to obtain the unique identifier of the monitoring device under the front-end device.

[0019] Active acquisition in the method of the present invention is that the access gateway transmits a device directory query request message to the front-end device, and the front-end device responds to the request message to obtain the unique identifier of the monitoring device under the corresponding front-end device.

[0020] In order to solve the above technical problems, the present invention also provides an access gateway for a power grid video monitoring platform, including a GB protocol module, a SIPB protocol module, a protocol conversion module, and an application control module for message interaction between the GB protocol module and the protocol conversion module and between the SIPB protocol module and the protocol conversion module; the GB protocol module is bound to a network card in the same network segment as the front-end device, and the SIPB protocol module is bound to a network card in the same network segment as the power grid video monitoring platform;

[0021] The GB protocol module is used to register and connect with a front-end device supporting the GB / T 28181 protocol, and to interact with the front-end device after the registration and connection is successful; the SIPB protocol module is used to register and connect with a power grid video monitoring platform, and to interact with the power grid video monitoring platform after the registration and connection is successful;

[0022] The protocol conversion module is used to obtain the unique identifier of the monitoring device under the front-end device after the GB protocol module successfully registers and connects with the front-end device supporting the GB / T 28181 protocol, and convert the obtained unique identifier into a protocol format supported by the power grid video monitoring platform, so as to transmit the converted unique identifier to the power grid video monitoring platform through the SIPB protocol module;

[0023] The protocol conversion module is also used to replace the stream receiving address of the request information sent by the power grid video monitoring platform with the address of the network card in the same network segment as the front-end device when the power grid video monitoring platform needs to obtain the real-time video information of the monitoring device under the front-end device, and convert the request information into a real-time on-demand request message in the GB / T 28181 protocol format, so as to transmit the message to the corresponding front-end device through the GB protocol module; and after the front-end device returns the real-time on-demand response message, set the source address conversion rule related to the monitoring device information under the front-end device, and when receiving the data packet transmitted by the corresponding front-end device, perform source address conversion on the data packet according to the source address conversion rule, so as to transmit the data packet to the power grid video monitoring platform.

[0024] The beneficial effects are as follows: the access gateway of the present invention can perform message interaction with the front-end device through the GB28182 protocol format through the GB protocol module, and can perform message interaction with the power grid video monitoring platform through the SIP-B protocol format through the SIPB protocol module, and the protocol conversion module based on the access gateway can realize the conversion between the GB28181 protocol format and the SIPB protocol format, and realize the message interaction process between the protocol conversion module and the SIPB protocol module and the GB protocol module based on the application control module, thereby realizing the transmission of the received message of the front-end device to the video monitoring platform, and the transmission of the received message of the video monitoring platform to the front-end device. Therefore, the access gateway of the present invention can convert the GB28181 protocol supported by the front-end device into the SIP-B protocol and access it to the power grid video monitoring platform, thereby making full use of the existing GB28181 protocol front-end equipment to build a power grid video monitoring system, realizing maximum resource utilization, and greatly reducing the construction cost of the video monitoring system. When the access gateway receives the real-time video request message sent by the monitoring platform, the stream receiving address of the media information in the message will be replaced with the address used to connect the gateway and the front-end device, and then the message will be converted into the GB28181 protocol format and sent to the front-end device, so that the real-time video request message sent by the monitoring platform can be transmitted to the front-end device and recognized by the front-end device.

[0025] Furthermore, the source address conversion rule related to the monitoring device information under the front-end device is: converting the stream sending address in the real-time on-demand response message returned by the front-end device into the network card address in the access gateway in the same network segment as the power grid video monitoring platform.

[0026] Furthermore, the protocol conversion module is also used to block the transmission of the data packet to the power grid video monitoring platform by deleting the source address conversion rules related to the monitoring device information under the front-end device when it is necessary to end the real-time video information browsing.

[0027] Furthermore, when it is necessary to end the browsing of real-time video information: when a request to end the real-time video is received from the power grid video monitoring platform, the request message is converted into an end real-time on-demand request message in the GB / T 28181 protocol format, and the message is transmitted to the front-end device; when the front-end device returns an end real-time on-demand response message to the access gateway, when it is necessary to end the browsing of real-time video information, the message is converted into an end real-time video response message in the SIP-B protocol format, and the message is transmitted to the power grid video monitoring platform.

[0028] Furthermore, the protocol conversion module is also used to replace the stream sending address of the real-time on-demand response message with the address of the network card in the same network segment as the power grid video monitoring platform after the front-end device returns the real-time on-demand response message, and convert the real-time on-demand response message into a request response message in the protocol format supported by the power grid video monitoring platform, so as to transmit the message to the power grid video monitoring platform through the SIPB protocol module.

[0029] Furthermore, the method for obtaining the unique identifier of the monitoring device under the front-end device is: after the GB protocol module is successfully registered and connected with the front-end device that supports the GB / T 28181 protocol, the device directory query response information of the front-end device is actively obtained, and the device directory query response information is parsed to obtain the unique identifier of the monitoring device under the front-end device. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is a block diagram of an access gateway module of the present invention;

[0031] Figure 2 It is a schematic diagram of the message interaction process of the access gateway of the present invention;

[0032] Figure 3 It is a flow chart of the access method of the access gateway of the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below with reference to the accompanying drawings and embodiments.

[0034] Implementation example of access gateway for power grid video monitoring platform:

[0035] The access gateway of the power grid video monitoring platform in this embodiment establishes a message interaction channel with the power grid video monitoring platform and the front-end device respectively, and realizes the conversion process between the GB / T 28181 protocol and the SIP-B protocol through the protocol conversion module in the access gateway, thereby establishing a data transmission channel between the power grid video monitoring platform and the front-end device supporting the GB / T 28181 protocol, and realizing the process of accessing the device supporting the GB / T 28181 protocol to the power grid video monitoring platform.

[0036] like Figure 1As shown, the access gateway of the power grid video monitoring platform of this embodiment includes a GB protocol module, a SIPB protocol module, a protocol conversion module and an application control module, wherein the GB protocol module is responsible for connecting with the front-end device, processing the GB28181 protocol link and message interaction, the SIPB protocol module is responsible for connecting with the power grid video monitoring platform, processing the SIP-B protocol link and message interaction, the protocol conversion module is responsible for the protocol conversion between the GB28181 protocol and the SIP-B protocol, that is, parsing the GB28181 protocol message into the SIP-B protocol message, parsing the SIP-B protocol message into the GB28181 protocol message, and The SIPB protocol module, GB protocol module and protocol conversion module cannot directly interact with each other through messages, and the message interaction process between the three needs to be implemented through the application control module, that is, the application control module is responsible for loading the SIPB protocol module, GB protocol module and protocol conversion module, and all are loaded in the form of dynamic libraries, and is responsible for the message interaction between the SIPB protocol module, GB protocol module and protocol conversion module. Specifically, the SIPB protocol module, GB protocol module and protocol conversion module are loaded after the application control module is run, and the message forwarding between the SIPB protocol module and the protocol conversion module, and between the GB protocol module and the protocol conversion module is processed.

[0037] Because the IP addresses of the front-end equipment and the power grid video monitoring platform are generally not in the same network segment, and the access gateway needs to establish a message interaction channel with both the front-end equipment and the power grid video monitoring platform, the access gateway has at least two network cards, one for connecting to the front-end equipment network and the other for connecting to the power grid video monitoring platform network.

[0038] Based on the setting of the access gateway of this embodiment, the specific implementation process of the message interaction between the front-end device and the power grid video monitoring platform is as follows: Figure 2 , Figure 3 As shown:

[0039] 1) Access the gateway and front-end device to complete the registration process; after successful registration, query the front-end device directory, parse the camera code list, and reorganize it into a resource reporting message;

[0040] Because the IP addresses of the front-end device and the power grid video monitoring platform are generally not in the same network segment, in this embodiment, the GB protocol module is bound to network card 1 and connected to the front-end device network; the SIPB protocol module is bound to network card 2 and connected to the power grid video monitoring platform network. Based on this setting, the GB protocol module is responsible for receiving connection requests from front-end devices using the GB28181 protocol, and processing registration messages sent by the front-end devices. If the registration fails, it continues to wait for the front-end device to register; if the registration is successful, the GB protocol module actively sends a device directory query request message to the front-end device, and forwards the received device directory query response message (at least one) to the protocol conversion module (the message interaction between the GB protocol module and the protocol conversion module in this embodiment, and the message interaction between the protocol conversion module and the SIPB protocol module are both implemented through the application control module of the access gateway).

[0041] The protocol conversion module receives the device directory query response message forwarded by the GB protocol module, parses the camera code mounted on the front-end device and records it, then reorganizes all the recorded camera codes into a resource reporting message in the SIP-B protocol format and forwards it to the SIPB protocol module.

[0042] 2) Access the gateway and monitoring platform to complete the registration process and report resources to the monitoring platform;

[0043] Since the registration process of the access gateway and the front-end device has been completed in step 1), and the acquired camera code is reorganized into a resource reporting message to the SIPB protocol module in the SIP-B protocol format, if this resource reporting message is to be transmitted to the video monitoring platform (i.e., the power grid video monitoring platform), it is necessary to establish a message transmission channel between the SIPB protocol module and the video monitoring platform. Therefore, in this embodiment, after the SIPB protocol module receives the resource reporting message forwarded by the protocol conversion module, it establishes a connection with the power grid video monitoring platform, that is, sends a registration message to the power grid video monitoring platform, completes the registration and authentication process, and then sends the received resource reporting message to the power grid video monitoring platform.

[0044] Through steps 1) and 2) of this embodiment, a message interaction channel is established between the front-end device and the access gateway, as well as a message interaction channel between the access gateway and the video monitoring platform. Therefore, based on the establishment of this message interaction channel, when the power grid monitoring platform needs to obtain real-time video messages from the front-end device, the following steps can be implemented.

[0045] 3) When the power grid monitoring platform needs to obtain real-time video messages from the front-end equipment, it enters the real-time video processing process;

[0046] The real-time video processing flow in this embodiment includes: recording the stream receiving address and port, recording the stream sending address and port, setting network address forwarding rules; and performing source address conversion on the video stream so that the power grid monitoring platform can successfully obtain the real-time video stream.

[0047] When the SIPB protocol module receives a real-time video access request message transmitted by the video monitoring platform, it means that the power grid monitoring platform needs to obtain the real-time video message of the front-end device. The specific process of the access gateway in this embodiment processing the real-time video is as follows:

[0048] 3.1) The access request information of the monitoring platform is transmitted to the front-end device through the access gateway:

[0049] The real-time video access request message received by the SIPB protocol module is forwarded to the protocol conversion module. The protocol conversion module parses the media information, records the stream receiving address and port number information (i.e., the IP address and port number of the video surveillance platform), and then replaces the stream receiving address of the media information in the message with the IP address of network card 1. It is recombined into a real-time on-demand request message in the GB28181 protocol format and forwarded to the GB protocol module.

[0050] After receiving the real-time on-demand request message forwarded by the protocol conversion module, the GB protocol module sends it to the front-end device, so that the front-end device receives the real-time on-demand request message.

[0051] 3.2) The front-end device transmits the real-time on-demand response message of the access request information to the monitoring platform:

[0052] When the GB protocol module of the access gateway receives the real-time on-demand response message of the front-end device, the real-time on-demand response message is forwarded to the protocol conversion module. After the protocol conversion module receives the real-time on-demand response message forwarded by the GB protocol module, it parses the media information, records the stream sending address and port number information (i.e., the IP address and port number of the front-end device), and sets a network address conversion rule in the firewall, and then replaces the stream sending address of the media information in the message with the IP address of the network card 2, and recombines it into a real-time video request response message in the SIP-B protocol format and forwards it to the SIPB protocol module; after the SIPB protocol module receives the real-time video request response message forwarded by the protocol conversion module, it sends it to the power grid video monitoring platform. The network address conversion rule in this embodiment is a source address conversion rule, and the gateway firewall is configured to filter data packets according to the recorded stream sending address and port number. If the source address and source port in the data packet match the recorded stream sending address and port, the source address in the data packet is replaced with the IP address of the network card 2. In this embodiment, the network address translation rule is set in the firewall for address translation of the video stream, that is, to filter the data packets of the video stream and replace the stream sending address. This network address translation rule can prevent the data packets of unrecorded source addresses and source ports from being transmitted to the video monitoring platform, thereby ensuring that the video monitoring platform can reliably obtain the real-time video data of the corresponding front-end device.

[0053] 3.3) The video stream received from the front-end device is transmitted to the video surveillance platform through the access gateway:

[0054] After the front-end device responds to the real-time on-demand message, it sends the video stream to the access gateway. The access gateway receives the video stream sent by the front-end device, converts the source address according to the previously set network address translation rules, and then sends the mapped video stream to the power grid video monitoring platform.

[0055] 4) When the power grid video monitoring platform needs to end the preview of the real-time video that has been previewed, it enters the process of processing and ending the real-time video.

[0056] The processing in this embodiment ends the real-time video flow by deleting the network address forwarding rule to end the real-time video monitoring process.

[0057] After the SIPB protocol module receives the end real-time video request message sent by the power grid video monitoring platform, the message is forwarded to the protocol conversion module. After receiving the end real-time video request message, the protocol conversion module reorganizes it into an end real-time on-demand request message in the GB28181 protocol format and forwards it to the GB protocol module. After receiving the end real-time on-demand request message forwarded by the protocol conversion module, the GB protocol module sends it to the front-end device, and then forwards the received end real-time on-demand response message to the protocol conversion module.

[0058] After the protocol conversion module receives the end real-time on-demand response message forwarded by the GB protocol module, it deletes the network address conversion rules previously set in the firewall, and then recombines the end real-time video response message in the SIP-B protocol format and forwards it to the SIPB protocol module. After the SIPB protocol module receives the end real-time video response message forwarded by the protocol conversion module, it sends it to the power grid video monitoring platform. The rules set in the firewall in this embodiment are such that when the rules are met, the video stream sent by the front-end device can be successfully received by the power grid video monitoring platform. Therefore, after deleting the network address conversion rules set in the firewall, the video stream of the front-end device cannot convert the source address of the video stream to the network address connected to the power grid video monitoring platform because there is no network address conversion rule, thereby blocking the transmission process of the video stream between the front-end device and the power grid video monitoring platform, thereby ending the process of previewing the real-time video.

[0059] The access gateway of this embodiment can perform message interaction with the front-end device through the GB28182 protocol format through the GB protocol module, and can perform message interaction with the power grid video monitoring platform through the SIP-B protocol format through the SIPB protocol module. The protocol conversion module based on the access gateway can realize the conversion between the GB28181 protocol format and the SIPB protocol format, and realize the message interaction process between the protocol conversion module and the SIPB protocol module and the GB protocol module based on the application control module, thereby realizing the transmission of the received messages from the front-end device to the video monitoring platform, and the transmission of the received messages from the video monitoring platform to the front-end device. Therefore, the access gateway of this embodiment can convert the GB28181 protocol supported by the front-end device into the SIP-B protocol and access it to the power grid video monitoring platform, thereby making full use of the existing GB28181 protocol front-end equipment to build a power grid video monitoring system, thereby maximizing resource utilization and greatly reducing the construction cost of the video monitoring system.

[0060] Based on the access gateway of this implementation, the message transmission process between the front-end device with a specific IP address of 192.168.1.20 and the power grid video monitoring platform with an IP address of 10.100.100.20 is as follows:

[0061] 1) Based on the IP addresses of the front-end device and the power grid video monitoring platform, the IP address of the access gateway network card 1 is configured to 192.168.1.10, and the IP address of network card 2 is configured to 10.100.100.10; the GB protocol module is bound to the address of network card 1, and the SIPB protocol module is bound to the address of network card 2.

[0062] 2) The application control module starts automatically when the computer is powered on, and automatically loads the SIPB protocol module, GB protocol module, and protocol conversion module.

[0063] 3) The GB protocol module establishes a connection with the front-end device and receives a registration message. If the registration is judged to have failed, it continues to wait for registration; if the registration is judged to have succeeded, it sends a device directory query request message to the front-end device, and forwards all received device directory query response messages to the protocol conversion module; the protocol conversion module receives all device directory query response messages, parses out the camera code and records it, and then reassembles all the recorded camera codes into a resource reporting message in the SIP-B protocol format and forwards it to the SIPB protocol module; after receiving the resource reporting message, the SIPB protocol module establishes a connection with the power grid video monitoring platform, and sends a registration message to the power grid video monitoring platform to complete the registration and authentication process, and then sends the received resource reporting message to the power grid video monitoring platform.

[0064] 4) Use the power grid video monitoring platform to perform real-time video call operations on a camera in the resource list.

[0065] 5) After the SIPB protocol module receives the real-time video access request message sent by the power grid video monitoring platform, it forwards the message to the protocol conversion module; the protocol conversion module parses the media information from the message, records the stream receiving address as 10.100.100.20 and the port number as 50002, and then replaces the stream receiving address in the media information with the network card 1 address 192.168.1.10, and reorganizes it into a real-time on-demand request message in the GB28181 protocol format and forwards it to the GB protocol module; the GB protocol module sends the received real-time on-demand request message to the front-end device.

[0066] 6) The GB protocol module receives the real-time on-demand response message sent by the front-end device and forwards it to the protocol conversion module; the protocol conversion module parses the media information from the message, records the stream sending address as 192.168.1.20 and the port number as 20512, and executes the iptables command to set a source address conversion rule, which will filter the data packets with the source address as 192.168.1.20 and the source port number as 20512, and replace the source address with the IP address of network card 2; then replace the stream sending address in the media information with the IP address 10.100.100.10 of network card 2, and reorganize it into a real-time video request response message in the SIP-B protocol format and forward it to the SIPB protocol module; the SIPB protocol module sends the received real-time video request response message to the power grid video monitoring platform.

[0067] 7) The front-end device sends the video stream to port 50002 of network card 1 connected to the gateway. The gateway filters the data packet with source address 192.168.1.20 and source port number 20512, and replaces the source address of the data packet with the IP address 10.100.100.10 of network card 2, and sends it to the power grid video monitoring platform through network card 2.

[0068] 8) End the real-time video operation of the previewed camera through the power grid video monitoring platform.

[0069] 9) After the SIPB protocol module receives the end real-time video request message sent by the power grid video monitoring platform, it forwards the message to the protocol conversion module; the protocol conversion module reorganizes the message into an end real-time on-demand request message in the GB28181 protocol format and forwards it to the GB protocol module; the GB protocol module sends the end real-time on-demand request message to the front-end device.

[0070] 10) The GB protocol module receives the end of real-time on-demand response message and forwards it to the protocol conversion module; after receiving the message, the protocol conversion module uses the iptables command to delete the network address translation rules previously set in the firewall, and then reorganizes it into an end of real-time video response message in the SIP-B protocol format and forwards it to the SIPB protocol module; the SIPB protocol module sends the end of real-time video response message to the power grid video monitoring platform.

[0071] An embodiment of an access method for accessing a gateway of a power grid video monitoring platform:

[0072] The access method of this embodiment registers and connects to the power grid video monitoring platform and the front-end device respectively through the access gateway, realizes the message interaction process between the power grid video monitoring platform and the access gateway, and between the access gateway and the power grid video monitoring platform, and is based on the access gateway's ability to convert message data obtained from the power grid video monitoring platform into message data in a protocol format supported by the front-end device, and convert message data obtained from the front-end device into message data in a protocol format supported by the power grid video monitoring platform, thereby realizing the process of transmitting message data obtained from the front-end device to the power grid video monitoring platform, and transmitting message data obtained from the power grid video monitoring platform to the front-end device. The specific steps of the access method of the access gateway of the power grid video monitoring platform have been described in detail in the access gateway embodiment of the power grid video monitoring platform, and will not be repeated here.

[0073] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. The patent protection scope of the present invention shall be based on the claims. All equivalent structural changes made using the contents of the description and drawings of the present invention should also be included in the protection scope of the present invention.

Claims

1. A method for accessing an access gateway of a power grid video monitoring platform, characterized in that: The steps include: 1) The access gateway registers and connects with the front-end device that supports the GB / T 28181 protocol, and obtains the unique identification of the monitoring device under the front-end device; The access gateway registers and connects with the power grid video monitoring platform, converts the acquired unique identifier into a protocol format supported by the power grid video monitoring platform, and transmits it to the power grid video monitoring platform to add the monitoring device under the front-end device to the resource list of the power grid video monitoring platform; The access gateway includes a network card in the same network segment as the front-end device and a network card in the same network segment as the power grid video monitoring platform; 2) When the power grid video monitoring platform needs to obtain the real-time video information of the monitoring device under the front-end device, the access gateway replaces the stream receiving address of the request information sent by the power grid video monitoring platform with the address of the network card in the same network segment as the front-end device, and converts the request information into a real-time on-demand request message in the GB / T 28181 protocol format, and transmits the message to the corresponding front-end device; When the front-end device returns a real-time on-demand response message to the access gateway, the access gateway sets a source address conversion rule related to the monitoring device information under the front-end device, and when receiving a data packet transmitted by the corresponding front-end device, the access gateway converts the source address of the data packet according to the source address conversion rule, so as to transmit the data packet to the power grid video monitoring platform through the access gateway.

2. The access method of the access gateway of the power grid video monitoring platform according to claim 1, characterized in that: In step 2), the source address conversion rule related to the monitoring device information under the front-end device is: converting the stream sending address in the real-time on-demand response message returned by the front-end device into the network card address in the access gateway in the same network segment as the power grid video monitoring platform.

3. The access method of the access gateway of the power grid video monitoring platform according to claim 1 or 2, characterized in that: In step 2), when it is necessary to end the browsing of the real-time video information, the access gateway deletes the source address conversion rule related to the monitoring device information under the front-end device to block the transmission of the data packet to the power grid video monitoring platform through the access gateway.

4. The access method of the access gateway of the power grid video monitoring platform according to claim 3, characterized in that: In step 2), when the access gateway receives the request to end the real-time video from the power grid video monitoring platform, it converts the request message into an end real-time on-demand request message in the GB / T 28181 protocol format, and then transmits the message to the front-end device; when the front-end device returns an end real-time on-demand response message to the access gateway, when it is necessary to end the browsing of real-time video information, it converts the message into an end real-time video response message in the SIP-B protocol format, and then transmits the message to the power grid video monitoring platform.

5. The access method of the access gateway of the power grid video monitoring platform according to claim 1, characterized in that: In step 2), when the front-end device returns the real-time on-demand response message to the access gateway, the access gateway also replaces the stream sending address of the real-time on-demand response message with the address of the network card in the same network segment as the power grid video monitoring platform, and converts the real-time on-demand response message into a request response message in the protocol format supported by the power grid video monitoring platform, and then transmits the message to the power grid video monitoring platform.

6. The access method of the access gateway of the power grid video monitoring platform according to claim 1, characterized in that: In step 1), the method for obtaining the unique identifier of the monitoring device under the front-end device is: after the access gateway is successfully registered and connected with the front-end device that supports the GB / T 28181 protocol, the device directory query response information of the front-end device is actively obtained, and the device directory query response information is parsed to obtain the unique identifier of the monitoring device under the front-end device.

7. An access gateway for a power grid video monitoring platform, characterized in that: It includes a GB protocol module, a SIPB protocol module, a protocol conversion module, and an application control module for message interaction between the GB protocol module and the protocol conversion module, and between the SIPB protocol module and the protocol conversion module; the GB protocol module is bound to a network card in the same network segment as the front-end device, and the SIPB protocol module is bound to a network card in the same network segment as the power grid video monitoring platform; The GB protocol module is used to register and connect with a front-end device supporting the GB / T 28181 protocol, and to interact with the front-end device after the registration and connection is successful; the SIPB protocol module is used to register and connect with a power grid video monitoring platform, and to interact with the power grid video monitoring platform after the registration and connection is successful; The protocol conversion module is used to obtain the unique identifier of the monitoring device under the front-end device after the GB protocol module successfully registers and connects with the front-end device supporting the GB / T 28181 protocol, and convert the obtained unique identifier into a protocol format supported by the power grid video monitoring platform, so as to transmit the converted unique identifier to the power grid video monitoring platform through the SIPB protocol module; The protocol conversion module is also used to replace the stream receiving address of the request information sent by the power grid video monitoring platform with the address of the network card in the same network segment as the front-end device when the power grid video monitoring platform needs to obtain the real-time video information of the monitoring device under the front-end device, and convert the request information into a real-time on-demand request message in the GB / T 28181 protocol format, so as to transmit the message to the corresponding front-end device through the GB protocol module; After the front-end device returns the real-time on-demand response message, the source address conversion rules related to the monitoring device information under the front-end device are set, and when the data packet transmitted by the corresponding front-end device is received, the source address of the data packet is converted according to the source address conversion rules to transmit the data packet to the power grid video monitoring platform.

8. The access gateway of the power grid video monitoring platform according to claim 7, characterized in that: The source address conversion rule related to the monitoring device information under the front-end device is: converting the stream sending address in the real-time on-demand response message returned by the front-end device into the network card address in the access gateway under the same network segment as the power grid video monitoring platform.

9. The access gateway of the power grid video monitoring platform according to claim 7 or 8, characterized in that: The protocol conversion module is also used to block the transmission of the data packet to the power grid video monitoring platform by deleting the source address conversion rules related to the monitoring device information under the front-end device when it is necessary to end the real-time video information browsing.

10. The access gateway of the power grid video monitoring platform according to claim 9, characterized in that: When it is necessary to end the browsing of real-time video information: when receiving the end real-time video request from the power grid video monitoring platform, the request message is converted into an end real-time on-demand request message in the GB / T 28181 protocol format, and then the message is transmitted to the front-end device; when the front-end device returns an end real-time on-demand response message to the access gateway, when it is necessary to end the browsing of real-time video information, the message is converted into an end real-time video response message in the SIP-B protocol format, and then the message is transmitted to the power grid video monitoring platform.

11. The access gateway of the power grid video monitoring platform according to claim 7, characterized in that: The protocol conversion module is also used to replace the stream sending address of the real-time on-demand response message with the address of the network card in the same network segment as the power grid video monitoring platform after the front-end device returns the real-time on-demand response message, and convert the real-time on-demand response message into a request response message in a protocol format supported by the power grid video monitoring platform, so as to transmit the message to the power grid video monitoring platform through the SIPB protocol module.

12. The access gateway of the power grid video monitoring platform according to claim 7, characterized in that: The method for obtaining the unique identifier of the monitoring device under the front-end device is: after the GB protocol module is successfully registered and connected with the front-end device that supports the GB / T 28181 protocol, the device directory query response information of the front-end device is actively obtained, and the device directory query response information is parsed to obtain the unique identifier of the monitoring device under the front-end device.