Summary of the invention
The invention provides a kind of method and apparatus of alarming interlock, to realize improving the efficient of alarm based on the interlock action of policy-flexible control alarm event.
The invention provides a kind of method of alarming interlock; Be applied to comprise in the warning system of video server; Configuration alarm linkage strategy in the said video server, said alarm linkage strategy are the corresponding relation of alarm type, alarm time and interlock action, perhaps the corresponding relation of alarm type, alarm source address and the action that links; The perhaps corresponding relation of alarm type, alarm source address, alarm time and interlock action, said method comprises:
The alarm information that send in said video server receiving alarm source, search with said alarm information in the alarm type that carries and alarm time or alarm type and alarm source address or alarm type, alarm time and alarm source address alarm linkage strategy accordingly;
Said video server is carried out corresponding interlock action based on the said alarm linkage strategy that obtains of searching.
Also comprise:
Said video server upgrades the alarm linkage strategy of configuration based on the alarm interlock lastest imformation that receives.
Also comprise:
The identification information of configuration alarm linkage strategy is used to identify the validity of alarming linkage strategy in the said video server; Said video server is revised said identification information according to the alarm control command that receives, and said alarm linkage strategy is set to effectively or is invalid.
A kind of device of alarming interlock is applied to comprise in the warning system as the part of video server or video server:
Dispensing unit; Be used for configuration alarm linkage strategy; Said alarm linkage strategy is the corresponding relation of alarm type, alarm time and interlock action; The perhaps corresponding relation of alarm type, alarm source address and interlock action, the perhaps corresponding relation that moves of alarm type, alarm source address, alarm time and interlock;
Receiving element is used for the alarm information that send in the receiving alarm source;
Strategy is searched the unit; Be used for the alarm information that receives based on said receiving element, in the alarm linkage strategy of said dispensing unit configuration, search with said alarm information in the alarm type that carries and alarm time or alarm type and alarm source address or alarm type, alarm time and alarm source address alarm linkage strategy accordingly;
The interlock unit is used for searching the unit based on said strategy and searches the corresponding interlock action of the alarm linkage strategy execution that obtains.
Also comprise:
Updating block is used for upgrading the alarm linkage strategy that disposes based on the alarm interlock lastest imformation that receives.
Said dispensing unit also is used for: the identification information of configuration alarm linkage strategy is used to identify the validity of alarming linkage strategy.
Also comprise:
Control unit is used for revising according to the alarm control command that receives the identification information of said alarm linkage strategy, and said alarm linkage strategy is set to effectively or is invalid.
Compared with prior art, the present invention has the following advantages at least:
Among the present invention; Video server disposes multiple alarm linkage strategy; This alarm linkage strategy is the corresponding relation of alarm type, alarm source address, alarm time and interlock action, has increased the condition that alarm is selected, and selects corresponding alarm linkage strategy to carry out the interlock action according to the alarm information that alarm source sends; Can carry out different linked action, the flexibility that has improved alarming processing to the alarm information that carries different alarm conditions.
Embodiment
To combine the accompanying drawing among the present invention below, the technical scheme among the present invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Core concept of the present invention is: through in video server, disposing warning strategies; Store multiple alarm interlock corresponding relation; Behind the alarm information of receiving alarm source transmission; Search with alarm information in alarm type and/or alarm time and/or alarm source address alarm the interlock corresponding relation accordingly, and carry out corresponding interlock action, the flexibility that improves alarming processing.
Concrete, the present invention provides a kind of method of alarming interlock, is applied to comprise in the warning system of video server; Configuration alarm linkage strategy in the said video server; Said alarm linkage strategy is the corresponding relation of alarm type, alarm time and interlock action, perhaps the corresponding relation of alarm type, alarm source address and the action that links, the perhaps corresponding relation of alarm type, alarm source address, alarm time and interlock action; As shown in Figure 2, said method comprises:
Step s201; The alarm information that send in said video server receiving alarm source, search with said alarm information in the alarm type that carries and alarm time or alarm type and alarm source address or alarm type, alarm time and alarm source address alarm linkage strategy accordingly;
Step s202, said video server is carried out corresponding interlock action according to the said alarm linkage strategy that obtains of searching.
Introduce the method that alarm provided by the invention links in detail below in conjunction with concrete application scenarios, as shown in Figure 3, may further comprise the steps:
Step s301, the alarm linkage strategy of configuration video server.
The alarm linkage strategy that disposes in the video server is the corresponding relation of alarm type, alarm source address, alarm time and interlock action; Specifically can be any corresponding relation that moves with interlock in alarm type, alarm time, the alarm source address; Perhaps wherein any two corresponding relations that move with interlock, the perhaps corresponding relation of three's while and interlock action.Wherein, the alarm source address can be IP address or other types address.The alarm linkage strategy is stored in the tactful pond of video server; This strategy pond is to be used in the video server storing the non-volatile memory medium of alarm linkage strategy or the memory space that non-volatile memory medium is opened up, and video server obtains corresponding corresponding relation in tactful pond in use.The alarm linkage strategy of this strategy pond stored is specifically as shown in table 1:
Table 1
Warning strategies |
Alarm type |
Alarm source IP |
Alarm time |
The interlock action |
Identification information |
Warning strategies 1 |
A |
1.1.1.1 |
10:00-18: 00 |
Be issued to decoder |
Effectively |
Warning strategies 2 |
A |
1.1.1.1 |
20:00-04: 00 |
Be issued to memory device |
Effectively |
Warning strategies 3 |
A |
1.1.1.0 |
20:00-04: 00 |
Be issued to decoder |
Effectively |
Warning strategies 4 |
A |
1.1.1.2 |
Do not have |
Be issued to memory device |
Invalid |
Warning strategies 5 |
B |
Do not have |
Do not have |
Be issued to decoder |
Effectively |
In the table 1,, there are 4 kinds of different warning strategies,, the different linked action arranged according to the difference of alarm source IP or alarm time for same alarm type A.Wherein, warning strategies 1 is identical with the alarm source IP of warning strategies 2, but alarm time is different, and corresponding interlock action is different; Because alarm source IP is different, though alarm time is identical, the interlock action is also different with warning strategies 3 for warning strategies 2; Special, different for warning strategies 4 with the alarm source IP address of warning strategies 1-3, do not distinguish alarm time, i.e. identical interlock action is all carried out in alarm at any time; Can certainly exist and not distinguish alarm source IP only carries out corresponding interlock action according to alarm time warning strategies.For different alarm type A and B, alarm type B can not distinguish alarm source IP or alarm time, corresponding same interlock action.
Should be not limited to the mode that table 1 provides with the warning strategies that provides in the scene; Alarm source IP and alarm time can be provided with according to actual needs flexibly; For example alarm source IP also can be set to a sector address scope; Be the alarm type A of the alarm source IP of same address realm in same alarm time transmission, corresponding identical interlock action.
In the table 1,, be used to identify the validity of this warning strategies for the also corresponding identification information of each warning strategies.Video server is effectively or invalid according to the identification information judgment warning strategies of warning strategies, when identification information when being invalid, shows that corresponding warning strategies stops using.Should use in the scene, the identification information of warning strategies can be disposed by videoconference client when initial in the video server, and the user can revise this identification information according to actual needs, for example is revised as effectively invalid.Concrete, when the user need suspend the use of alarm linkage strategy, the user sent the alarm control command through videoconference client to video server, and the identification information that carries corresponding warning strategies in this alarm control command is made as invalid information.It is invalid that video server is made as corresponding identification information based on this order, stops the use of corresponding alarm linkage strategy.When the user need be restarted the use of alarm linkage strategy; Videoconference client sends to video server corresponding identification information is made as effective alarm control command; Video server is made as corresponding identification information effectively according to this order, restarts to use this alarm linkage strategy.
The mode of video server configuration alarm linkage strategy can but be not limited to following two kinds: the one, by user's directly configuration on video server; The 2nd, the alarm linkage strategy is set on videoconference client, be provided with and be issued to video server by videoconference client after accomplishing.When adopting the second way, the alarm linkage strategy that video server receiver, video client issues, and will alarm the alarm event, alarm source IP address, alarm time and the corresponding relation that moves that links that comprise in the linkage strategy and store in the tactful pond; The alarm interlock lastest imformation that video server can also the receiver, video client issues is upgraded the corresponding relation of alarm event in the corresponding alarm linkage strategy, alarm source IP address, alarm time and interlock action.
Step s302, video server receives the alarm information that watch-dog reports, and writes down the warning information that carries in this alarm information, comprises alarm type, alarm time and alarm source IP address.
Should use in the scene, be provided with different need report and alarm types in the watch-dog in advance, for example mobile detection alarm, video-losing alarm or high temperature alarm etc.When detecting when unusual; Watch-dog is to video server report and alarm message; Carry corresponding alarm type, alarm time and alarm source IP address in this alarm information, perhaps, video server also can with the time that receives this alarm information as alarm time.
Step s303, video server be according to query warning linkage strategy such as the alarm type in the alarm information, alarm time and alarm source IP addresss, and send the video flowing from watch-dog according to the alarm linkage strategy.
Concrete; Video server is after receiving alarm information; In the multiple alarm linkage strategy of storage, search whether exist with alarm information in alarm type and/or alarm time and/or alarm source IP address alarm linkage strategy accordingly; When lookup result when existing, video server is carried out corresponding interlock action based on the alarm linkage strategy that finds.
With alarm information alarm accordingly linkage strategy can for: have corresponding relation with in alarm type, alarm time, the alarm source address any one, do not distinguish all the other two; Perhaps with wherein any two have corresponding relation, do not distinguish other one; Perhaps has corresponding relation with the three.
When corresponding interlock action in the corresponding relation is that video server sends video flowing to memory device, makes this video flowing of memory device, stores when memory device sends video flowing; When corresponding interlock action is for when decoder sends video flowing in the corresponding relation, decoder obtains video flowing, decodes and plays corresponding video; Certainly, in the corresponding relation corresponding interlock action can also for: send video flowing to memory device, and send video flowing to decoder, this moment this video flowing of memory device, stores, and decoder is also play corresponding video.Special, when not finding corresponding alarm linkage strategy, video server does not process alarm information.
Among the present invention, video server is to the transmission of video flowing, the warning strategies that promptly disposes in the video server, can but be not limited to above-mentioned three kinds of modes, can dispose by user flexibility according to actual needs.
Through the method that adopts application scenarios of the present invention to provide; Video server disposes multiple alarm linkage strategy; This alarm linkage strategy is the corresponding relation of alarm type, alarm source address, alarm time and interlock action, has increased the condition that alarm is selected, and selects corresponding alarm linkage strategy to carry out the interlock action according to the alarm information that alarm source sends; Can carry out different linked action, the flexibility that has improved alarming processing to the alarm information that carries different alarm conditions.
The present invention provides a kind of device of alarming interlock, is applied in the warning system as the part of video server or video server, and as shown in Figure 4, this device comprises:
Dispensing unit 11; Be used for configuration alarm linkage strategy; Said alarm linkage strategy is the corresponding relation of alarm type, alarm time and interlock action; The perhaps corresponding relation of alarm type, alarm source address and interlock action, the perhaps corresponding relation that moves of alarm type, alarm source address, alarm time and interlock.Wherein, the alarm source address can be IP address or other types address.The alarm linkage strategy that this dispensing unit 11 specifically can the receiver, video client sends is obtained the alarm interlock corresponding relation and the storage of carrying in the said alarm linkage strategy; Perhaps receive user's direct configuration to the alarm linkage strategy on this device.
Receiving element 12 is used for the alarm information that send in the receiving alarm source, specifically carries the warning information that comprises alarm type, alarm time and alarm source address in this alarm information.
Strategy is searched unit 13; Be used for the alarm information that receives according to said receiving element 12, in the multiple alarm linkage strategy of said dispensing unit 11 configurations, search with alarm information in the alarm type that carries and alarm time or alarm type and alarm source address or alarm type, alarm time and alarm source address alarm linkage strategy accordingly.Concrete; This unit obtains the warning information that carries in the alarm information; And in the multiple alarm linkage strategy of configuration, search with alarm information and alarm linkage strategy accordingly: have corresponding relation with in alarm type, alarm time, the alarm source address any one, do not distinguish all the other two according to this warning information; Perhaps with wherein any two have corresponding relation, do not distinguish other one; Perhaps has corresponding relation with the three.
Interlock unit 14, the lookup result that is used for searching unit 13 when said strategy are carried out to link accordingly and are moved based on the said alarm interlock corresponding relation that obtains of searching when existing.Concrete, this interlock action comprises to videoconference client and/or Video Decoder and/or memory device report and alarm incident, displaying video monitoring image and/or store video monitor message.
Optional, in the device provided by the invention, also comprise:
Updating block 15 is used for upgrading the alarm linkage strategy that disposes based on the alarm interlock lastest imformation that receives.This alarm interlock lastest imformation can be from videoconference client or by user's directly configuration on video server.
Dispensing unit 11 also is used to dispose the identification information of alarm linkage strategy, is used to identify the validity of alarm linkage strategy.Accordingly, in the device provided by the invention, can also comprise:
Control unit 16 is used for revising according to the alarm control command that receives the identification information of said alarm linkage strategy, and said alarm linkage strategy is set to effectively or is invalid.When the user need suspend the use of alarm linkage strategy; The user sends the alarm control command through videoconference client to video server; The identification information that carries corresponding warning strategies in this alarm control command is made as invalid information; It is invalid that control unit 16 is made as the identification information of corresponding warning strategies according to this order, stops the use of corresponding alarm linkage strategy.When the user need be restarted the use of alarm linkage strategy; Videoconference client sends to video server corresponding identification information is made as effective alarm control command; Control unit 16 is made as corresponding identification information effectively according to this order, restarts to use this alarm linkage strategy.
Through adopting device provided by the invention; Video server disposes multiple alarm linkage strategy; This alarm linkage strategy is the corresponding relation of alarm type, alarm source address, alarm time and interlock action, has increased the condition that alarm is selected, and selects corresponding alarm linkage strategy to carry out the interlock action according to the alarm information that alarm source sends; Can carry out different linked action, the flexibility that has improved alarming processing to the alarm information that carries different alarm conditions.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.