Invention content
The present invention provides a kind of controls regarding the method and system of networking monitoring camera, to solve to exist in the prior art
It is to need repeatedly to be adjusted monitoring camera, monitoring camera can be just adjusted to suitable position or suitable poly-
Burnt cumbersome problem.
To solve the above-mentioned problems, the invention discloses a kind of controls regarding the method for networking monitoring camera, the method
The execution of networking monitoring camera system is regarded applied to regarding networking and by control, the control regards networking monitoring camera system packet
It includes:National standard association turns gateway, regards networking monitoring access gateway and regards networking monitoring camera;The method includes:The national standard
Association turns gateway and receives third party's national standard platform the first control instruction of transmission;The national standard association turns gateway to first control instruction
Control instruction after parsing is carried out protocol translation and generates the second control instruction and to described regarding networking monitoring access gateway by parsing
Send second control instruction;It is described regarding networking monitoring access gateway according to described regarding the of the configuration of networking monitoring camera
One downstream communications link sends second control instruction to the networking monitoring camera that regards;The networking monitoring that regards images
Head is adjusted according to second control instruction.
Preferably, described control depending on networking monitoring camera system further includes:Anti- association turns gateway to national standard, described to regard networking prison
After the step of control camera is adjusted according to second control instruction, the method further includes:It is described to regard networking monitoring
Camera generates feedback information, and the feedback information is uploaded to and described regards networking monitoring access gateway;It is described to regard networking prison
The feedback information is sent to the national standard and instead assisted by control access gateway turns gateway;Anti- association turns gateway to the feedback to the national standard
Information is converted;The anti-association of the national standard turns gateway will according to the second downstream communications link to the national standard tripartite platform configuration
Feedback information after conversion is sent to the national standard tripartite platform.
Preferably, anti-association turns the step of gateway converts the feedback information and includes the national standard:The national standard is anti-
Association turns gateway and converts the feedback information based on V2V agreements to the feedback result based on GB28181 agreements.
Preferably, first control instruction is the control instruction based on GB28181 agreements, and second control instruction is
Control instruction based on V2V agreements.
Preferably, described the step of being adjusted according to second control instruction depending on networking monitoring camera, includes:Institute
It states and reads electron focusing operation code and electron displacement operation code from second control instruction regarding networking monitoring camera;It will
The electron focusing operation code is mapped as specified electron focusing parameter, and the electron displacement operation code is mapped as specified electricity
Sub- displacement parameter;It is carried out according to the electron displacement parameter and the electron focusing ginseng driving networking monitoring camera that regards
Electron focusing and electron displacement.
To solve the above-mentioned problems, the invention also discloses a kind of controls regarding the system of networking monitoring camera, the control
It makes depending on networking monitoring camera and includes:National standard association turns gateway, regards networking monitoring access gateway and regards networking monitoring camera;Institute
National standard association is stated to turn gateway and include:First sending module sends the first control instruction for receiving third party's national standard platform;Parse mould
Control instruction after parsing is carried out protocol translation and generates the second control instruction by block for being parsed to first control instruction
And send second control instruction to the networking monitoring access gateway that regards;It is described to include depending on networking monitoring access gateway:The
Two sending modules, for according to first downstream communications link regarding the configuration of networking monitoring camera, networking to be regarded to described
Monitoring camera sends second control instruction;Described depending on networking monitoring camera includes adjustment module, the adjustment module
For being adjusted according to second control instruction.
Preferably, the system also includes:Anti- association turns gateway to national standard, described to further include depending on networking monitoring camera:It generates
Module, for after the step of adjustment module is adjusted according to second control instruction, generating feedback information, and
The feedback information is uploaded to described regarding networking monitoring access gateway;It is described to further include depending on networking monitoring access gateway:Third
Sending module, for the feedback information to be sent to the national standard, anti-association turns gateway;The anti-association of the national standard turns gateway and includes:Turn
Change module, for being converted to the feedback information;4th sending module, for according to the national standard tripartite platform configuration
The second downstream communications link the feedback information after conversion is sent to the national standard tripartite platform.
Preferably, the conversion module is specifically used for:Anti- association turns gateway by the feedback information based on V2V agreements to the national standard
It is converted into the feedback result based on GB28181 agreements.
Preferably, first control instruction is the control instruction based on GB28181 agreements, and second control instruction is
Control instruction based on V2V agreements.
Preferably, the adjustment module includes:Reading submodule;It is poly- for reading electronics from second control instruction
Burnt operation code and electron displacement operation code;Mapping submodule, for the electron focusing operation code to be mapped as specified electricity
The electron displacement operation code is mapped as specified electron displacement parameter by sub- focusing parameter;Submodule is adjusted, for according to institute
It states electron displacement parameter and the electron focusing ginseng driving networking monitoring camera that regards carries out electron focusing and electronics
Displacement.
Compared with prior art, the present invention has the following advantages:
Regarding the scheme of networking monitoring camera, national standard, which is assisted, turns gateway reception third party state for control provided in an embodiment of the present invention
It marks platform and sends the first control instruction;National standard association turns the parsing of the first control instruction of gateway pair, and the control instruction after parsing is carried out
Protocol translation generates the second control instruction and sends the second control instruction to regarding networking monitoring access gateway;It is accessed depending on networking monitoring
Gateway sends the second control according to the first downstream communications link to being configured regarding networking monitoring camera, to regarding networking monitoring camera
System instruction;It is adjusted according to the second control instruction depending on networking monitoring camera.As it can be seen that the control provided through the embodiment of the present invention
System is realized through third party's national standard platform regarding the scheme of networking monitoring camera directly to being controlled depending on equipment depending on monitoring in networking
System, simple operation and due to being adjusted automatically according to the second control instruction depending on networking monitoring camera can ensure to be adjusted
The accuracy of the parameters such as angle, focal length, therefore the usage experience of user can be promoted.
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.
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 (Network Technology)
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 (Server Technology)
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.
Classify depending on networked devices
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 gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (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 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 one of the core concepts of the embodiments of the present invention, it then follows regard the association of networking
View, by third party's national standard platform directly to being adjusted depending on networking monitoring camera.
Embodiment two
With reference to Fig. 6, the step of showing a kind of method of control of the embodiment of the present invention two depending on networking monitoring camera, flows
Cheng Tu can specifically include following steps:
Control provided in an embodiment of the present invention is applied to regard connection regarding networking and by control regarding the method for networking monitoring camera
Net monitoring camera head system executes, and control includes depending on networking monitoring camera system:National standard association turns gateway, national standard, and anti-association turns net
It closes, regard networking monitoring access gateway and regard networking monitoring camera.
Step 601:National standard association turns gateway and receives third party's national standard platform the first control instruction of transmission.
Step 602:National standard association turns the parsing of the first control instruction of gateway pair, and the control instruction after parsing is carried out protocol translation
It generates the second control instruction and sends the second control instruction to regarding networking monitoring access gateway.
Step 603:Depending on networking monitoring access gateway according to the first downlink communication chain to being configured regarding networking monitoring camera
Road sends the second control instruction to regarding networking monitoring camera.
For the correlation of step 601 to step 603 illustrated in reference embodiment one to step 501 to step 503
Explanation repeats no more this in the embodiment of the present invention.
Step 604:Electron focusing operation code and electronic bits are read from the second control instruction depending on networking monitoring camera
Move operation code.
In networking, electron focusing service operations order and electricity can be generated by 8785 agreements depending on networked server
The specification of sub- displacement operation order, 8785 agreement can be as shown in the table:
When receiving the second control instruction regarding networking monitoring camera, the second control instruction is parsed, it can be from the
The 0th field number is read in the protocol package of two control instructions, if the 0th field number is " 8785 ", it is characterization to characterize the protocol package
Electron focusing service operations order can read electron focusing operation code and electron displacement operation code from 3-30 field numbers.
Step 605:Electron focusing operation code is mapped as to specified electron focusing parameter, electron displacement operation code is mapped
For specified electron displacement parameter.
Step 606:It is poly- that networking monitoring camera progress electronics is regarded according to electron displacement parameter and electron focusing ginseng driving
Burnt and electron displacement.
Specifically, electron focusing and electron displacement by chip as core devices, carry out acquisition, the meter of image information
It calculates, the selection of control strategy, then generates the variable focus lens package and focus lens in control signal driving imaging optical lens group
Group carries out position adjusting, the image for finally making imaging sensor output accurately focus and displacement.
Step 607:Feedback information is generated depending on networking monitoring camera, and feedback information is uploaded to and is accessed regarding networking monitoring
Gateway.
Step 608:Feedback information is sent to national standard and instead assisted depending on networking monitoring access gateway and turns gateway.
Step 609:The anti-association of national standard turns gateway and converts based on GB28181 agreements the feedback information based on V2V agreements to
Feedback result.
Step 610:The anti-association of national standard turns gateway will convert according to the second downstream communications link to national standard tripartite's platform configuration
Feedback information afterwards is sent to national standard tripartite's platform.
The feedback information of the second control instruction is turned into gateway by national standard meal association depending on networking monitoring camera and regards networking
Access gateway is monitored, third party's national standard platform is fed back to, wherein feedback information can be that instruction camera is adjusted successfully or adjusted
The information for saving failure, to facilitate engineer according to feedback information to being overhauled depending on networking monitoring camera.
Regarding the method for networking monitoring camera, national standard, which is assisted, turns gateway reception third party state for control provided in an embodiment of the present invention
It marks platform and sends the first control instruction;National standard association turns the parsing of the first control instruction of gateway pair, and the control instruction after parsing is carried out
Protocol translation generates the second control instruction and sends the second control instruction to regarding networking monitoring access gateway;It is accessed depending on networking monitoring
Gateway sends the second control according to the first downstream communications link to being configured regarding networking monitoring camera, to regarding networking monitoring camera
System instruction;It is adjusted according to the second control instruction depending on networking monitoring camera.As it can be seen that the control provided through the embodiment of the present invention
System is realized through third party's national standard platform regarding the method for networking monitoring camera directly to being controlled depending on equipment depending on monitoring in networking
System, simple operation and due to being adjusted automatically according to the second control instruction depending on networking monitoring camera can ensure to be adjusted
The accuracy of the parameters such as angle, focal length, therefore the usage experience of user can be promoted.