A kind of method of visualization control video equipment applied on interchanger
Technical field
It is to be related to a kind of visualization applied on interchanger specifically the invention belongs to technical field of communication network
The method for recognizing video monitoring equipment and its storage device.
Background technology
Video monitoring is the important component of safety and protection system, and video monitoring is with its directly perceived, accurate, timely and information
It is abundant in content and be widely used in many occasions.In recent years, it is fast with the network bandwidth, computer process ability and memory capacity
Speed improve, and various video information process technologies appearance, full-scale digital, networking video monitoring system advantage increasingly
Highlight, opening, integration and the flexibility of its height create necessary bar for the overall performance lifting of video monitoring equipment
Part, the main network signal transmission equipment used using the network switch as core of signal transmission now.
Requirement more and more higher due to user to security monitoring, video monitoring generally requires the multiple control points of arrangement, simultaneously
Camera quantity is more, and monitoring period is long, and the time of gathered data is often up to several days or tens days.Therefore, as control point is got over
Come more, introduce storage device and just seem very necessary.In general, switch device can access multiple video monitoring equipments with
And storage device, on this basis, video monitoring and storage device can be carried out uniformly by exchanger management system
Management and control.In order to manage video monitoring equipment and storage device effectively in real time, how even to be crossed over changing by interchanger
Machine recognizes that the state of video monitoring equipment and storage device, port position and relation between the two are the keys for needing to solve
Problem, and existing invention is also not involved with the identification of video monitoring equipment and storage device.
The content of the invention
In order to solve the above problems, the present invention provides a kind of real-time universal, it is simple and convenient be applied on interchanger can
Depending on changing the method for identification video monitoring equipment and its storage device, and further realize based on this video monitoring and storage device
Real-time online is managed.
In order to which with versatility, the present invention is based on ONVIF(Opening Internet video Interface Forum, i.e. Open Network
Video Interface Forum)With rtsp real time streaming transport protocols(Real Time Streaming Protocol).Its
In, ONVIF standards are that information between Network Video Surveillance equipment exchanges and defines puppy parc, including device search, are regarded in real time
Frequently, audio, metadata and control information etc..And rtsp agreements then have expansible, easy parsing, safety, independently of transmission, many clothes
The features such as business device is supported.
To achieve these goals, the technical solution adopted by the present invention is as follows:
A kind of method of visualization control video equipment applied on interchanger, comprises the following steps:
(S10)Single switch goes out the video monitoring equipment being directly connected to therewith using ONVIF protocol identifications;
(S20)Enable far call and obtain the video monitoring equipment information that other interchangers are connected;
(S30)Obtain the relation between rtsp messages identification storage device and video monitoring equipment and storage device.
Also, also include(S40)The result visualization that interchanger will identify that is shown.
Specifically, the step(S10)In recognition methods it is as follows:
(S11)Current SWITCH enables ONVIF agreements, sets timer time;
(S12)Judge whether timer expires, if so, then interchanger switches to transmission state, broadcast ONVIF inquiry reports
Text, i.e., send ONVIF query messages to each connection equipment, if it is not, then interchanger remains waiting for state, and repeat the step
(S12);
(S13)The video monitoring equipment being directly connected to current SWITCH is receiving ONVIF query messages, with query message
Source IP address be used as destination address, reply send ONVIF response messages;
(S14)Interchanger is received after ONVIF response messages, stores the information of the video monitoring equipment, and by each video
Monitoring device information is as a record storage in current SWITCH.
Wherein, the information of the video monitoring equipment include the video monitoring equipment be connected with interchanger port position,
Its MAC Address and manufacturer's information etc..
In order to improve autgmentability, the step(S10)Also include record renewal process as follows:
(S15)Start record ageing timer, and set ageing time;
(S16)Judge whether record ageing timer expires, if so, then performing next step, otherwise interchanger is continued to
ONVIF response messages, more new record, and repeat the step(S16);
(S17)Judge whether every record received new ONVIF response messages, if so, then retaining this record, otherwise
Delete this record.
In order to which the information for ensureing all is recorded, the step(S10)Also include:
(S18)Judge whether all interchangers have all recognized the video monitoring equipment information being directly connected to therewith, if so, then
Far call is enabled, step is performed(S20), respective switch is otherwise specified, step is repeated(S10).
More specifically, the step(S20)Including:
(S21)Current SWITCH enables far call, and the IP address of assigning remote interchanger prepares to set up connection;
(S22)Timer and connection setup time are set up in setting connection;
(S23)Judge whether connection is successfully established in connection setup time, believe substantially if so, then obtaining remote exchange
Cease, otherwise jump procedure(S25);
(S24)The record information of remote exchange identification equipment is transmitted to current SWITCH;
(S25)Far call fails, and disconnects, step is jumped to again(S21).
Further, the step(S30)Including:
(S31)Current SWITCH obtains rtsp messages;
(S32)Storage device is gone out by the content recognition for analyzing rtsp messages;Wherein, the purpose IP address and purpose of message
MAC Address is the IP address and MAC Address of storage device respectively, and the source IP address and source MAC of message are storage device institutes
The IP address and MAC Address of the video monitoring equipment of management, if for example destination interface address is 554, can determine that this message
Sent for storage device;
(S33)Set up the corresponding relation list of storage device and video monitoring equipment.
Further, the step(S30)In also include list update process:
(S34)Start ageing timer, and set ageing time;
(S35)Search the mac address table of current SWITCH;
(S36)Judge that the MAC Address of video monitoring equipment whether there is in the table, if so, then performing next step, otherwise
Delete the record of this corresponding video monitoring equipment of all storage devices;
(S37)Judge that the MAC Address of storage device whether there is in the table, if so, then performing next step, otherwise delete
The record and its record of corresponding video monitoring equipment of all storage devices;
(S38)Judge whether ageing time expires, shown if so, then resetting ageing timer and carrying out visualization, otherwise
Jump procedure(S35)And be repeated in performing.
More specifically, the step(S40)In by mutually propagated between interchanger its own record sheet constitute have
The visual topological relation of video monitoring equipment information, storing device information and its link information.
Compared with prior art, the invention has the advantages that:
(1)Present inventive concept is ingenious, efficiently utilizes the video monitoring that ONVIF and rtsp agreements are connected to interchanger
Equipment and storage device are identified, and the pass between the state, port position and equipment of relevant device can be got in real time
System, and the convenient management of the present invention, can safeguard that the video monitoring equipment of the relation of multi-to-multi, i.e., one can be set by multiple storages
Standby to be managed, a storage device can also manage multiple video monitoring equipments, and the present invention is relative to other realities of this area
When control measures for, it is easier to realize, also do not result in extra hardware cost, be with a wide range of applications.
(2)The present invention is easy to use, visualizes, the topological relation figure between bonding apparatus can be checked at a glance
Installation site, correlation of all video monitoring equipments and storage device into network etc., contribute to network management people
The problems such as member's rapid configuration network, locating network fault.
Brief description of the drawings
Fig. 1 is schematic flow sheet of the invention.
Fig. 2 is step in the present invention(S10)Schematic flow sheet.
Fig. 3 is step in the present invention(S20)Schematic flow sheet.
Fig. 4 is step in the present invention(S30)Schematic flow sheet.
Fig. 5 is the equipment connection diagram in the present invention-embodiment.
Fig. 6 is the topological relation schematic diagram in the present invention-embodiment.
Embodiment
The invention will be further described with reference to the accompanying drawings and examples, and embodiments of the present invention include but is not limited to
The following example.
Embodiment
As shown in Figures 1 to 6, the method that the visualization controls video equipment, is mainly used in expansible open intelligence
In the gateway device such as interchanger of energy Networking Platform, 3 interchanger switch, 8 video monitoring equipments are included with certain network
Exemplified by ipc and 2 storage device nvr, wherein SwitchX represents interchanger numbering, and ipcX represents monitoring device numbering, nvrX generations
Table storage device is numbered, X digitized representation switching ports.Assuming that storage device nvr1 management video monitoring equipment for ipc1,
Ipc2, ipc3, ipc4, ipc5, the video monitoring equipment of storage device nvr2 management is ipc6, ipc7, ipc8.Need explanation
It is that the cascade port of interchanger is not dealt with to message(Such as interchanger Switch A port 5,6;Switch B port 1;
Switch C port 1 is cascade port).The present invention specifically includes following steps:
(S10)Single switch goes out the video monitoring equipment being directly connected to therewith using ONVIF protocol identifications.With interchanger
Switch A recognize exemplified by video monitoring equipment ipc1, ipc2 direct-connected therewith that it is comprised the following steps that:
(S11)Current SWITCH Switch A enable ONVIF agreements, set timer time as 30 seconds.
(S12)Judge whether timer expires, if so, then interchanger switches to transmission state, broadcast ONVIF inquiry reports
Text, i.e., send ONVIF query messages to each connection equipment, if it is not, then interchanger remains waiting for state, and repeat the step
(S12).I.e. interchanger Switch A are always maintained at wait state, untill timer expires and switch to transmission state, to
Video monitoring equipment ipc1, ipc2 send ONVIF query messages.
(S13)The video monitoring equipment ipc1 and ipc2 being directly connected to current SWITCH is receiving ONVIF query messages,
Using the source IP address of query message as destination address, reply and send ONVIF response messages.
(S14)Interchanger Switch A are received after ONVIF response messages, store video monitoring equipment ipc1's and ipc2
Information, the port position being connected including the video monitoring equipment with interchanger(As ipc1 is connected on Switch A port 1
Put, ipc2 is connected on the Switch A position of port 4), its MAC Address and manufacturer's information etc., and each video monitoring equipment is believed
Breath is as a record storage in current SWITCH Switch A.
In order to improve autgmentability, also record is updated:
(S15)Start record ageing timer, and set ageing time as 300 seconds.
(S16)Judge whether record ageing timer expires, if so, then performing next step, otherwise interchanger is continued to
ONVIF response messages, more new record, and repeat the step(S16).That is interchanger Switch A receive direct-connected therewith regard repeatedly
The ONVIF response messages and more new record of frequency monitoring device, next step is performed untill record ageing timer expires again.
(S17)Judge whether every record received new ONVIF response messages, if so, then retaining this record, otherwise
Delete this record.Thus obtained interchanger Switch A record information is as shown in table 1:
Port numbers |
IP |
MAC Address |
Connect equipment |
1 |
192.168.1.11 |
D0-E1-40-94-D2-BB |
ipc1 |
4 |
192.168.1.14 |
D0-A1-40-94-D2-BB |
ipc2 |
Table 1
(S18)Judge whether all interchangers have all recognized the video monitoring equipment information being directly connected to therewith, if so, then
Far call is enabled, step is performed(S20), respective switch is otherwise specified, step is repeated(S10).
The interchanger Switch B and interchanger Switch C record information obtained in the same way is respectively such as table 2
With shown in table 3:
Port numbers |
IP |
MAC Address |
Connect equipment |
2 |
192.167.2.12 |
C4-B1-36-59-E2-AC |
ipc3 |
3 |
192.167.2.13 |
B8-A6-57-94-D2-AB |
ipc4 |
4 |
192.167.2.14 |
A9-C5-61-43-2A-AB |
ipc5 |
Table 2
Port numbers |
IP |
MAC Address |
Connect equipment |
2 |
192.167.3.12 |
C4-B1-36-59-E2-1C |
ipc6 |
3 |
192.167.3.13 |
B8-A6-57-94-D2-1B |
ipc7 |
4 |
192.167.3.14 |
A3-C5-14-08-C5-03 |
ipc8 |
Table 3
Because now all interchangers have all recognized the video monitoring equipment information being directly connected to therewith, therefore by following steps
It is rapid to carry out far call process.
(S20)Enable far call and obtain the video monitoring equipment information that other interchangers are connected.With interchanger
Switch A far calls are obtained exemplified by the video monitoring equipment information that Switch B are connected, and it is comprised the following steps that:
(S21)Current SWITCH Switch A enable far call, and assigning remote interchanger Switch B IP address is accurate
It is standby to set up connection;
(S22)Set connection and set up timer and connection setup time as 10 seconds;
(S23)Judge whether connection is successfully established in connection setup time, if so, then obtaining remote exchange Switch B
Essential information, including the information such as version, model and port numbers, otherwise jump procedure(S25);
(S24)The record information of remote exchange identification equipment is transmitted to current SWITCH;
(S25)Far call fails, and disconnects.
(S30)Obtain the relation between rtsp messages identification storage device and video monitoring equipment and storage device.To hand over
The Switch A that change planes are obtained exemplified by rtsp messages, and it is comprised the following steps that:
(S31)Current SWITCH Switch A obtain rtsp messages.
(S32)Storage device is gone out by the content recognition for analyzing rtsp messages;Wherein, the purpose IP address and purpose of message
MAC Address is the IP address and MAC Address of storage device respectively, and the source IP address and source MAC of message are storage device institutes
It is 554 that the IP address and MAC Address of the video monitoring equipment of management, such as storage device nvr1, which send destination interface address,
Rtsp messages, video monitoring equipment ipc3 has responded storage device nvr1 connection, and transmission source port is 554 rtsp messages,
During rtsp messages are mutually handed over, the rtsp messages that interchanger Switch A are received to non-cascaded mouth are dealt with, and recorded up to nvr
Or ipc information, nvr1 information, and nvr1 are obtained in Switch A port 2 in management ipc3 information, Switch A
The information that 3 ports obtain nvr2, and nvr2 are got in management ipc6 information.Other nvr and ipc information is also by above-mentioned
Process processing.
(S33)Set up the corresponding relation list of storage device and video monitoring equipment.As shown in table 4:
Port numbers |
IP |
MAC Address |
Connect equipment |
Management equipment |
2 |
192.168.1.12 |
70-E1-40-94-D2-BB |
nvr1 |
ipc1,ipc2, ipc3, ipc4, ipc5 |
3 |
192.168.1.13 |
69-C6-84-33-27-4B |
nvr2 |
ipc6, ipc7, ipc8 |
Table 4
In order to improve autgmentability, in addition to list update process:
(S34)Start ageing timer, and set ageing time as 300 seconds.
(S35)Search current SWITCH Switch A mac address table.
(S36)Judge that the MAC Address of video monitoring equipment whether there is in the table, if so, then performing next step, otherwise
Delete the record of this corresponding video monitoring equipment of all storage devices.
(S37)Judge that the MAC Address of storage device whether there is in the table, if so, then performing next step, otherwise delete
The record and its record of corresponding video monitoring equipment of all storage devices.
(S38)Judge whether ageing time expires, shown if so, then resetting ageing timer and carrying out visualization, otherwise
Jump procedure(S35)And be repeated in performing.
(S40)The result visualization that interchanger will identify that is shown.Wherein by mutually propagating its own between interchanger
Record sheet constitute with video monitoring equipment information, storing device information and its link information visual topological relation.
After each interchanger obtains the information record table of oneself, this information record table all interchangers into network can be propagated, are formed
The topology of one specific link information of ipc and nvr, as shown in fig. 6, wherein C represents the video monitoring equipment of connection, U, which is represented, to be handed over
Change planes connector, N represents storage device.
By the above method, can with interchanger even the state of switch-spanning identification video monitoring equipment and storage device,
Port position and relation between the two, the problems such as contributing to network management personnel's rapid configuration network, locating network fault,
With very high practical value and promotional value.
Above-described embodiment is only the preferred embodiments of the present invention, not limiting the scope of the invention, as long as using
The design principle of the present invention, and the change for carrying out non-creativeness work on this basis and making, all should belong to the present invention's
Within protection domain.