Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.Obviously, described embodiments are some of the embodiments of the present invention, without
It is whole embodiment.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
The every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It is the important milestone of network Development depending on networking, is a real-time network, can realize HD video real-time Transmission,
Push numerous the Internet, applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service
Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring
Field live streaming, VOD program requests, TV Mail, individual character recording (PVR), Intranet (manage) channel, intelligent video Broadcast Control, information publication by oneself
All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, word, communication, data, by TV or
Computer realizes that high-definition quality video plays.
To make those skilled in the art more fully understand the embodiment of the present invention, below to being introduced depending on networking:
Depending on networking, applied portion of techniques is as described below:
Network technology (NetworkTechnology)
Network technology innovation depending on networking improves traditional ethernet (Ethernet), potential huge on network to face
Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
Switching), Streaming demands are met using Packet Switching depending on networking technology.Has grouping depending on networking technology
Flexible, the simple and low price exchanged, is provided simultaneously with quality and the safety assurance of circuit switching, it is virtually electric to realize the whole network switch type
The seamless connection of road and data format.
Switching technology (Switching Technology)
Depending on two advantages of asynchronous and packet switch networked using Ethernet, it is scarce under the premise of complete be compatible with to eliminate Ethernet
It falls into, has the end-to-end seamless connection of the whole network, direct user terminal directly carries IP data packets.User data is in network-wide basis
It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can realizes at present mutually
The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous Internet video applications to high Qinghua, unitizes.
Server technology (ServerTechnology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform
Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy
Enough include signaling and data transmission.For voice and video business, handled depending on networking and unified video platform Streaming Media
Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and
State-of-the-art real time operating system is used, the programme information in server instruction is mapped to specific hard drive space, media
Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits for typical time to be less than 0.2 second.It optimizes
Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internets ad eundem IP, but
The concurrent flow more than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Structural design depending on networking by servicing independent licence system, equipment and the modes such as user data is completely isolated every time
The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, fire wall generally, has prevented black
The attack of visitor and virus, provide structural carefree secure network to the user.
Service innovative technology (Service Innovation Technology)
Business and transmission are merged by unified video platform, whether single user, private user or a net
The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich
The multimedia video service of rich colorful various forms.Unified video platform is substituted using " menu type " with table schema traditional
Complicated applications program, and can use considerably less code that complicated application can be realized, and realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class
Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes:Node server, access switch, terminal (including various machines
Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases
Even, and Ethernet can be connected.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal.
Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes:Metropolitan area server, node switch, node serve
Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end
Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve
Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area
The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat
Platform can be formed regarding networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
1, networked devices are regarded to classify
1.1 embodiment of the present invention can be mainly divided into 3 classes depending on the equipment in networking:Server, interchanger (including ether
Net association turns gateway), terminal (including various set-top boxes, encoding board, memory etc.).It can be divided into Metropolitan Area Network (MAN) on the whole depending on networking
(or national net, World Wide Web etc.) and access net.
The equipment of 1.2 wherein access mesh portions can be mainly divided into 3 classes:Node server, access switch (including ether
Net association turns gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The particular hardware structure of each access network equipment is:
Node server:
As shown in Fig. 2, including mainly Network Interface Module 201, switching engine module 202, CPU module 203, disk array
Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine
Module 202;Switching engine module 202 to the packet come in look into the operation of address table 205, to obtain the navigation information of packet;
And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close
It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded if meeting the following conditions:1) port
It is less than to send caching;2) the queue package counting facility is more than zero.Disk array module 204 mainly realizes the control to hard disk, including
The operations such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown)
Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table)
Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, including mainly Network Interface Module (downstream network interface module 301, uplink network interface module
302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould
Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met,
Corresponding flow identifier (stream-id) is then distributed, and enters switching engine module 303, is otherwise abandoned;Uplink network interface mould
The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine
Module 303;Switching engine module 303 to the packet come in look into the operation of address table 306, to obtain the navigation information of packet;
It is gone toward uplink network interface if the packet into switching engine module 303 is downstream network interface, in conjunction with flow identifier
(stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet
Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
It is gone toward uplink network interface if the queue is downstream network interface, meets the following conditions and be forwarded:1)
It is less than that the port sends caching;2) the queue package counting facility is more than zero;3) token that rate control module generates is obtained;
It is gone toward uplink network interface if the queue is not downstream network interface, meets the following conditions and be forwarded:
1) it is less than to send caching for the port;2) the queue package counting facility is more than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval
The pack buffer queue that interface is gone toward uplink network interface generates token, to control the code check of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and,
Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, including mainly Network Interface Module (downstream network interface module 401, uplink network interface module
402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan
Storage 407 and MAC add modules 409, MAC removing modules 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined
The ethernet mac DA of measured data packet, ethernet mac SA, Ethernet length or frame type, networking mesh way address is regarded
DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting
Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing modules 410
(2byte), and enter corresponding order caching, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, if there is Bao Ze regarding with networking mesh according to packet
Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway
SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
Include mainly Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network
Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board includes mainly Network Interface Module, video encoding engine
Module, CPU module;Memory includes mainly Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes:Node server, node switch, metropolitan area server.
Wherein, node switch includes mainly Network Interface Module, switching engine module and CPU module;Metropolitan area server includes mainly
Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
The data packet for accessing net includes mainly following sections:Destination address (DA), source address (SA), reserve bytes,
payload(PDU)、CRC。
As shown in the table, the data packet for accessing net includes mainly following sections:
DA |
SA |
Reserved |
Payload |
CRC |
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet
Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address,
Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The parts payload have different length according to the type of different datagrams, are if it is various protocol packages
64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and computational methods follow the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment
2 kinds can be all can exceed that between machine and node server, node switch and node switch, node switch and node server
Connection.But the metropolitan area net address of metropolitan area network equipment is unique, is closed to accurately describe the connection between metropolitan area network equipment
System, introduces parameter in embodiments of the present invention:Label uniquely describes a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification
Change) label definition it is similar, it is assumed that between device A and equipment B there are two connection, then data packet from device A to equipment B just
There are 2 labels, data packet also there are 2 labels from equipment B to device A.Label is divided into label, outgoing label, it is assumed that data packet enters
The label (entering label) of device A is 0x0000, and the label (outgoing label) when this data packet leaves device A may reform into
0x0001.The networking flow of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN)
Distribution is all dominated by metropolitan area server, and node switch, node server are all passive execution, this point with
The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) includes mainly following sections:
DA |
SA |
Reserved |
Label |
Payload |
CRC |
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its
In, the format of label, which can refer to, such as gives a definition:Label is 32bit, wherein high 16bit retains, only with low 16bit, its position
Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic regarding networking, it is proposed that the core idea of the embodiment of the present invention, by receiving gateway server
It sends, the state new information generated when detecting that target network camera enters designated state is then based on state more
New information updates directory information, and newer directory information, which is sent to one or more, regards networked terminals, realizes regarding networking eventually
The acquisition to directory information is held, and can be timely updated to directory information in the state change of IP Camera, so as to
Web camera access in real time, is managed.
In order to meet regard networking and public security between different platform manufacturer, security monitoring video-frequency networking docks, realize matchmaker
In the unified standard of body stream and the whole country video it is real-time broadcasting, video recording transfer, cradle head control, the embodiment of the present invention
Using the cascade mode of multilevel medium server, realization pushes the video flowing of the IP Camera of grass-roots unit step by step, by low
To height, it is transferred to the unified platform upwards in turn.
Specifically, with reference to Fig. 5, show that a kind of structure diagram of interactive system of the embodiment of the present invention, the system relate to
At least may include that one or more turns server 502 depending on networked terminals 501, association depending on networking, the system may be used also and regarding networking
To include and assist to turn the gateway server 503 and the associated one or more nets of gateway server 503 that server 502 communicates
Network camera 504.
Wherein, one or more may include the entities terminals such as set-top box (SetTopBox, STB) depending on networked terminals 501,
Set-top box can be referred to as box on set-top box or machine, be the equipment of connection a television set and outside source, it can will be compressed
Digital signal change into television content, and show on a television set.In general, set-top box can connect camera and wheat
Gram wind can also connect television set for acquiring the multi-medium datas such as video data and audio data, be used for playing video data
With the multi-medium datas such as audio data.
One or more regard networked terminals 501 can also include virtually regard networked terminals, virtually depending on networked terminals be in order to
It realizes particular service and accesses the terminal regarding networking, refer to a kind of special software, it can be between terminal and terminal user
Create a kind of environment, and terminal user is then the environment that is created based on this software come operating software, virtually regards networked terminals
The software realization of the terminal of program can be run as real machine.
Association, which turns server 502, can externally provide unified interface, to realize platform access service, can also carry out regarding networking
To the protocol conversion of internet, to connect simultaneously regarding networking and internet, can be communicated with gateway server 503, it can be with
Including directory information, directory information at least may include the mark and status information of one or more IP Cameras 504.
In cascade mode, association turns the parent server that server 502 can be gateway server 503, is such as located at most upper
The media server of grade, media server provide the forwarding of real-time media stream and the storage of media, the inspection of history media information
Rope and order program service, media server can be received from SIP (Session Initiation Protocol, conversation initial association
View) equipment such as equipment, gateway or other media servers media data, and according to instruction by these data forwardings to other lists
A or multiple SIP clients and media server.
Gateway server 503 can be regarding networking or the non-node device for regarding networking, with one or more network shootings
First 504 is associated, can be the lower level servers that association turns server 502 in cascade mode, the media for being such as located at most subordinate take
Business device, can be directly connected to one or more web cameras 504, the finger that IP Camera 503 can identify may be used
It enables and being communicated with one or more web cameras 504, it is not present between gateway server 504 and web camera 503
His media server.
One or more web cameras 504 can be located in Ethernet, be a kind of combination traditional cameras and network skill
Video camera of new generation caused by art, image can be reached the earth other end by it by network, and the viewer of distal end is not required to
With any professional software, as long as the web browser of standard can monitor its image.Web camera generally by camera lens, image,
The part such as sound transducer, A/D converter, image, sound, controller network server, external alert, control interface forms.
In fact, during the foundation of interactive system, following steps may be used to be docked:
1, confirm the platform information of gateway server, producer's brand, model, the monitoring resource of such as associated IP Camera
Quantity, GB28181 versions;
2, association turn to configure on server itself platform information and gateway server platform information;
3, signaling transfers test, and gateway server turns server to association and sends log-on message, and association turns server authentication authentication
User credential.
4, video flowing transfers test, checks video format, code stream size, data transmission.
In embodiments of the present invention, by establishing interactive system, the monitoring resource of different manufacturers is focused on a platform
Under, the integration to accessing the monitoring resource regarding networking is realized, by multiple access points one access point of change, and by connecing at this
Access point setting fire wall etc. is set by carry out data filtering, the safety of system is improved, moreover, by using interactive system, no
It needs the letter for inputting IP Camera one by one to be accessed again, only need to dock gateway server, realize to greatest extent
Access monitoring resource.
The various pieces in interactive system are illustrated below as follows:
Gateway server 503 can be used for when detecting that target network camera enters designated state, generate state more
New information, and state new information is sent to association and turns server 502;Wherein, it may include catalogue letter that association, which turns server 502,
Breath, directory information at least may include the mark and status information of one or more IP Cameras 504;
Association turns server 502 and can be used for receiving the state new information that gateway server 503 is sent;It is updated based on state
Message updates directory information;Newer directory information is sent to one or more regarding networked terminals 501.
In embodiments of the present invention, it is sent by receiving gateway server, is detecting target network camera entrance
The state new information generated when designated state is then based on state new information update directory information, newer catalogue is believed
Breath is sent to one or more and regards networked terminals, realizes the acquisition to directory information regarding networked terminals, and can be taken the photograph in network
As head state change when, timely update to directory information, so as to web camera carry out in real time access, manage.
With reference to figure 6, show that the step flow chart of a kind of newer method of state of the embodiment of the present invention, the method relate to
And regarding networking, it is described regard networking may include association turn server and it is one or more regard networked terminals, assist turn server can be with
Gateway server communication, gateway server can be to turn server regarding networking or the non-node device for regarding networking, association and may include
Directory information, directory information at least may include the mark and status information of one or more IP Cameras, the method
May include:
Step 601, the state new information that the gateway server is sent is received;Wherein, the state new information is
The message that the gateway server is generated when detecting that target network camera enters designated state;
Step 602, it is based on the state new information, updates the directory information;
Step 603, the newer directory information is sent to one or more of regarding networked terminals.
In embodiments of the present invention, it is sent by receiving gateway server, is detecting target network camera entrance
The state new information generated when designated state is then based on state new information update directory information, newer catalogue is believed
Breath is sent to one or more and regards networked terminals, realizes the acquisition to directory information regarding networked terminals, and can be taken the photograph in network
As head state change when, timely update to directory information, so as to web camera carry out in real time access, manage.
With reference to figure 7, show that the step flow chart of a kind of newer method of state of the embodiment of the present invention, the method relate to
And regarding networking, it is described regard networking may include association turn server and it is one or more regard networked terminals, assist turn server can be with
Gateway server communication, gateway server can be to turn server regarding networking or the non-node device for regarding networking, association and may include
Directory information, directory information at least may include the mark and status information of one or more IP Cameras, the method
May include:
Specifically, the method may include following steps:
Step 701, the state new information that the gateway server is sent is received;Wherein, the state new information is
The message that the gateway server is generated when detecting that target network camera enters designated state;
As an example, designated state may include presence, malfunction, off-line state, state new information
It can be that NOTIFY (notice) is asked, may include the mark and designated state of target network camera.
In one embodiment, it when target network camera is offline, cannot be carried out with associated gateway server
Communication, gateway server can enter off-line state to target network camera with active detecting, obtain target network camera
Mark and off-line state, generate corresponding state new information, and state new information is sent to association and turns server.
It in another embodiment, can also be with associated net when target network camera is reached the standard grade or failure
It closes server to be communicated, send a notification message to gateway server, after gateway server receives notification message, it is possible to determine that
Target network camera enters presence or malfunction, obtains mark, presence or the event of target network camera
Barrier state generates corresponding state new information, and state new information is sent to association and turns server.
It should be noted that the system can also include and the associated one or more intermediate clothes of each gateway server
Business device, state new information first can be sent to one or more intermediate servers by gateway server, by one or more
Between server be sent to association and turn server.
Wherein, intermediate server can be to be located at most higher level's media server in cascade mode and taken with most subordinate's media
Media server between business device, it can be cascade mode that association, which turns server, one or more intermediate servers, gateway server,
Under relationship between superior and subordinate, the media server at different levels such as province, city, area, county.
In a kind of preferable example, each gateway server can also have subprime directory information, and subprime directory information can
To have the mark and status information of the IP Camera of administration authority including gateway server, target network camera shooting is being detected
When head enters designated state, gateway server is updated subprime directory information, then can generate state new information, hair
It send to the association for subscribing to subprime directory information and turns server.
Step 702, it is based on the state new information, updates the directory information;
After receiving state new information, association is turned server and can be looked into directory information with analysis state new information
Corresponding mark and status information are found, directory information is updated.
In a kind of preferred embodiment of the present invention, then step 702 may include following sub-step:
Sub-step S11 matches the mark of the target network camera in the directory information;
Since state updating information may include the mark of target network camera, and directory information may include one or
The mark of multiple IP Cameras, association, which turns server, to match the two.
Sub-step S12, if successful match, it is determined that status information corresponding with the target network camera, and be based on
The designated state updates the status information, obtains newer directory information;
When being matched to the mark of target network camera in the mark in one or more IP Cameras, association turns service
It is stored with the record of target network camera in device, then may further determine that the corresponding state of the mark of target network camera
Then state information updating is designated state, obtains newer directory information by information.
Sub-step S13 adds the mark of the target network camera if matching is unsuccessful in the directory information
And the designated state, obtain newer directory information.
When that cannot be matched to the mark of target network camera in the mark in one or more IP Cameras, association turns
The record of target network camera is not stored in server, target network camera is the IP Camera newly to network,
Then association turns server can add the mark of target network camera, and the mark with target network camera in directory information
Know corresponding status information, is then designated state by state information updating, obtains newer directory information.
In an advantageous embodiment, after directory information is updated successfully, association, which turns server, to be returned to gateway server
Confirmation message is returned, confirmation message can carry catalogue update result mark, such as 200OK, and gateway server receives confirmation message
Afterwards, directory information update is completed.
Step 703, the newer directory information is sent to one or more of regarding networked terminals.
It should be noted that it can believe catalogue that newer directory information, which is sent to one or more depending on networked terminals,
In breath newer part be sent to it is one or more regard networked terminals, can also be using other modes by newer directory information
It is synchronized to one or more and regards networked terminals, as long as so that one or more be depending on the newer directory information of networked terminals acquisition
Can, the invention is not limited in this regard.
In a kind of preferred embodiment of the present invention, step 703 may include following sub-step:
Sub-step S21 determines that the one or more for subscribing to the newer directory information regards networked terminals;
In embodiments of the present invention, association, which turns server, to identify the permission depending on networked terminals, subscribed to from determining
The one or more of newer directory information regards networked terminals.
Sub-step S22 is converted to the newer directory information regarding networking data packet based on networking protocol is regarded;
After determining one or more regards networked terminals, it can be that newer directory information is added regarding networking that association, which turns server,
Agreement packet header is organized into regarding networking data packet.
Sub-step S23, by it is described depending on networking data packet be sent to it is one or more of regard networked terminals.
After obtaining regarding networking data packet, association turn server can by it is described be sent to depending on networking data packet it is one
Or it is multiple regarding networked terminals.
In a kind of preferred embodiment of the present invention, the method can also include the following steps:
Step 704, one or more of operation requests sent regarding networked terminals are received;Wherein, the operation requests
Detecting that is generated when the specified operation for the newer directory information ask depending on networked terminals to be one or more of
It asks.
Specifically, networked terminals are regarded after association turns the newer directory information of server acquisition in one or more, Ke Yitong
It crosses display equipment to be showed, user can carry out the directory information showed specified operation, and such as selected operation refers to when detecting
When operating surely, one or more regards networked terminals and generates corresponding operation requests, is sent to association and turns server, with acquisition request mesh
The video flowing or request control IP Camera for marking IP Camera carry out specified operation.
Step 705, according to the operation requests, the first control instruction is generated;
In a kind of preferable example, operation requests may include the mark of target network camera, request type, receive
To after operation requests, association turns the request type in server acquisition operation requests, then can generate corresponding with request type
First control instruction.
First control instruction can be the instruction generated using GB/T 28181, and GB/T28181 is《Safety precaution video is supervised
It controls the transmission of networked system information, exchange, control technology requirement》, it is to be proposed by scientific and technological information office of the Ministry of Public Security, it is anti-by national safety
Model alarm system technical committee for standardization (TCST) (SAC/TC100) is centralized, the Ministry of Public Security one etc. draft jointly one of more units
National standard.
GB/T28181 defines information transmission in city monitoring alarm networking system, exchanges, the interconnection architecture of control, leads to
Believe protocol architecture, transmission, the basic demand and security requirement that exchange, control, and control, transfer process and protocol interface etc.
Technology requirement.
Step 706, first control instruction is sent to the gateway server;Wherein, the gateway server is used
In first control instruction is converted to the second control instruction, and second control instruction is sent to the target network
Camera, second control instruction are the instruction that the target network camera can identify, the target network camera
For receiving second control instruction, and respond second control instruction.
Specifically, association, which turns server, can be sent to the first control instruction gateway server, gateway server can incite somebody to action
First control instruction is converted to the second control instruction that target network camera can identify, then sends the second control instruction
To target network camera, target network camera can be rung to identifying the second control instruction, and to the second control instruction
It answers.
In one embodiment, the second control instruction may include that video flowing transfers instruction, the method further include as
Lower step:
Receive the video flowing that the target network camera is sent;Wherein, the video flowing images for the target network
Head transfers what instruction was transferred according to the video flowing, via the gateway server, alternatively, via the gateway server and institute
State the video flowing that one or more intermediate servers are sent;The video stream is regarded into networking eventually to one or more of
End.
In embodiments of the present invention, target network camera transfers instruction in the video flowing for receiving gateway server transmission
Afterwards, video flowing can be sent to gateway server, video stream to association directly can be turned server by gateway server.
When there is one or more intermediate servers, gateway server can be first by video stream to one or more
Intermediate server, then video stream to association is turned into server by one or more intermediate servers.
After receiving video flowing, association turns server and can be converted to video flowing regarding networking according to regarding networking protocol
The video flowing that terminal can identify, and by transformed video stream to regarding networked terminals.
As an example, for video flowing, it may be determined that the corresponding networking protocol that regards is 2000 agreement, such as table 1:
Table 1
In another embodiment, the second control instruction may include operational order, response second control
Instruction includes executing the specified operation of the operational order.
In embodiments of the present invention, after target network camera receives operational order, it is specified that operational order can be executed
Operation, to realize to operating specified response.
In embodiments of the present invention, it is sent by receiving gateway server, is detecting target network camera entrance
The state new information generated when designated state is then based on state new information update directory information, newer catalogue is believed
Breath is sent to one or more and regards networked terminals, realizes the acquisition to directory information regarding networked terminals, and can be taken the photograph in network
As head state change when, timely update to directory information, so as to web camera carry out in real time access, manage.
It should be noted that for embodiment of the method, for simple description, therefore it is all expressed as a series of action group
It closes, but those skilled in the art should understand that, the embodiment of the present invention is not limited by the described action sequence, because according to
According to the embodiment of the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
With reference to Fig. 8, show that a kind of structure diagram of the newer device of state of the embodiment of the present invention, described device are related to
Depending on networking, it is described depending on networking may include association turn server and it is one or more regard networked terminals, the association turns server can be with
With gateway server communication, the gateway server can be regarding networking or the non-node device for regarding networking, and the association turns service
Device may include directory information, and the directory information at least may include the mark and state of one or more IP Cameras
Information, described device may include following module:
State new information receiving module 801, the state new information sent for receiving the gateway server;Its
In, the state new information gateway server is generated when detecting that target network camera enters designated state
Message;
Directory information update module 802 updates the directory information for being based on the state new information;
Directory information sending module 803 is updated, it is one or more of for the newer directory information to be sent to
Depending on networked terminals.
In a kind of preferred embodiment of the present invention, the state new information includes the mark of the target network camera
And designated state, the directory information update module 802 may include:
Identify matched sub-block, the mark for matching the target network camera in the directory information;
First update directory information obtains submodule, in successful match, determining and the target network camera
Corresponding status information, and the status information is updated based on the designated state, obtain newer directory information;
Second update directory information obtains submodule, for when matching unsuccessful, institute to be added in the directory information
The mark of target network camera and the designated state are stated, newer directory information is obtained.
In a kind of preferred embodiment of the present invention, the update directory information sending module 803 may include:
It subscribes to and regards networked terminals determination sub-module, for determining that the one or more for subscribing to the newer directory information regards
Networked terminals;
Directory information transform subblock is updated, for based on networking protocol is regarded, the newer directory information to be converted to
Depending on networking data packet;
Depending on networking data packet sending submodule, for described be sent to depending on networking data packet one or more of to be regarded connection
Network termination.
In a kind of preferred embodiment of the present invention, described device can also include:
Operation requests receiving module, for receiving one or more of operation requests sent regarding networked terminals;Wherein,
The operation requests are detecting the specified behaviour for the newer directory information to be one or more of depending on networked terminals
As when the request that generates;
First control instruction generation module, for according to the operation requests, generating the first control instruction;
First control instruction sending module, for first control instruction to be sent to the gateway server;Wherein,
The gateway server is used to first control instruction being converted to the second control instruction, and second control instruction is sent out
It send to the target network camera, second control instruction is the instruction that the target network camera can identify, institute
Target network camera is stated for receiving second control instruction, and responds second control instruction.
The embodiment of the invention also discloses a kind of electronic equipment, it may include memory, processor and be stored in memory
Computer program that is upper and can running on a processor, the processor are realized when executing described program such as Fig. 6 and/or Fig. 7 institutes
The step of stating method.
The embodiment of the invention also discloses a kind of computer readable storage mediums, are stored thereon with computer program, the journey
It is realized such as the step of Fig. 6 and/or Fig. 7 the methods when sequence is executed by processor.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description
Place illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided
Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments
Capable instruction generates for realizing in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
The device of specified function.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments
In computer-readable memory operate in a specific manner so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows
And/or in one box of block diagram or multiple boxes specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also include other elements that are not explicitly listed, or further include for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device including the element.
Above to a kind of newer method, apparatus of state provided by the present invention and interactive system, detailed Jie has been carried out
It continues, principle and implementation of the present invention are described for specific case used herein, and the explanation of above example is only
It is the method and its core concept for being used to help understand the present invention;Meanwhile for those of ordinary skill in the art, according to this hair
Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage
Solution is limitation of the present invention.