Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing 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 be realized HD video real-time Transmission,
Push numerous 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 request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication
All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or
Computer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network
Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology
Flexible, the simple and low price of exchange, is provided simultaneously with the quality and 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)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack
It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.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 be realized at present mutually
The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network 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 transmitted comprising signaling and data.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
Using state-of-the-art real time operating system, 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 typical time 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 internet ad eundem IP, but
The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked 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, firewall generally, has prevented black
The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together 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 traditional to substitute with table schema using " menu type "
Complicated applications programming, considerably less code, which can be used, can be realized complicated application, 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 it can connect Ethernet.
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 form view 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: server depending on the equipment in networking, interchanger (including ether
Net association turns gateway), terminal (including various set-top boxes, encoding board, memory etc.).Metropolitan Area Network (MAN) can be divided on the whole depending on networking
(or national net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing 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 specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including 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 look into the operation of address table 205 to the packet come in, 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: 1) port if meeting the following conditions
It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including
The operation 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, mainly including 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,
It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;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 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet;
If the packet into switching engine module 303 is that downstream network interface is gone toward uplink 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:
If the queue is that downstream network interface is gone toward uplink 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 greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded:
1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval
Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate 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, mainly including 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 adding module 409, MAC removing module 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
Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking mesh way address of measured data packet
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 module 410
(2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, according to the view of packet networking mesh if there is Bao Ze
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 frametype, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include 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 mainly includes Network Interface Module, video encoding engine
Module, CPU module;Memory mainly includes 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 mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes
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
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes,
payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes 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 part payload has different length according to the type of different datagrams, is 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 calculation method follows 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
It can all can exceed that 2 kinds 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 uniquely, to close to accurately describe the connection between metropolitan area network equipment
System, introduces parameter in embodiments of the present invention: label, uniquely to describe 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 equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just
There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters
The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into
0x0001.The networking process 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 be all to be dominated by metropolitan area server, node switch, node server be all passively execute, 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) mainly includes 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 of view networking, the core idea of the embodiment of the present invention is proposed, it can be with using web camera
The characteristics of transmitting video/audio to Ethernet in real time, by the data conversion of transmitting web camera at can network in view
The data of middle transmission, to realize web camera and regard the communication process of networked terminals.
Referring to Fig. 5, show what a kind of web camera of first embodiment of the invention was communicated with depending on networked terminals
The step flow chart of embodiment of the method, in embodiments of the present invention, web camera with depending on networked terminals can pass through middle layer
It is communicated.In one embodiment, which can turn gateway for Ethernet association.
Applied to the embodiment of the present invention, Ethernet association turns gateway both and the communication in view is networked may be implemented, and also may be implemented
It is communicated in Ethernet.
In the concrete realization, every allows the Ethernet to network association to turn gateway and all register in node server, Ethernet
Sequence number (including device type and equipment identification information), the downstream end that the registration information that association turns gateway has Ethernet association to turn gateway
The intrinsic informations such as mouth number, mask section, the Ethernet association not registered, which turns gateway, to network.
As shown in fig. 6, Ethernet association turns gateway can access view networking in the following way:
S11 issues inquiry packet depending on the node server with centralized control functions in networking;
Node server sends inquiry packet to each port.
S12 after Ethernet association turns gateway power-up initializing, receives inquiry packet, returns and turn gateway sequence comprising Ethernet association
Number response bag;
Assuming that Ethernet association turns gateway and receives the inquiry packet that some port (such as port 0) issues.
S13, node server search Ethernet association corresponding with the sequence number in Registry and turn gateway information,
It includes that Ethernet association turns gateway MAC address and Ethernet association turns the terminal bound under gateway that Ethernet association, which turns gateway information,
MAC Address;
Node server receives after Ethernet association turns the response bag of gateway sending and is known that under port 0 and has connect an Ethernet
Association turns gateway, then searches internal Registry.
S14, node server turn gateway to Ethernet association and send the order that networks, and include ether in the networking order
Net association, which turns gateway, assists in the address of view networking and Ethernet and turns the MAC Address of gateway;
I.e. node server will distribute to Ethernet with assisting the view networking address for turning gateway and pre-registered ethernet mac
Location orders notice Ethernet association to turn gateway by networking.
S15, the Ethernet association turn to return to response after gateway receives networking order, and Ethernet association turns gateway accessing view connection
Net;
Ethernet association turn gateway receive networking order after, be known that oneself access view networking address and in Ethernet
MAC Address.
S16, node server timing turn gateway to the Ethernet of networking association and issue device status inquiries instruction, and checking should be with
Too net association turns whether gateway works normally;
Node server receives networking command response, is known that Ethernet association turns gateway and networked, later can timing
(such as per second) sends out device status inquiries instruction to port 0.If node server does not receive shape within a certain period of time (such as 6 seconds)
State inquiry response is considered as Ethernet association and turns gateway and have been removed from network, no longer sending device status query instruction, continues
Inquiry packet is sent to port 0.
Ethernet association is turned the terminal MAC address and terminal MAC address bound under gateway by S17, node server
With the mapping of the view networking address to be allocated to terminal, Ethernet association is all notified to turn gateway.
Node server knows that Ethernet association turns under gateway also binding and has a terminal according to Registry, therefore can will be with
Too net association turns the terminal MAC address bound under gateway and terminal MAC address and the mapping for regarding networking address to be allocated, hair
It gives Ethernet association and turns gateway.
By the above networking process, Ethernet association turn gateway be aware of oneself view networking address, ethernet mac address,
The mapping of its lower terminal MAC address bound and terminal MAC address and the view networking address to be allocated to terminal.
Since then, access procedure is completed.
After Ethernet association turns gateway accessing to view networking, it can be communicated with depending on networked terminals.
In the concrete realization, networking is regarded as the network with centralized control functions, including main control server (i.e. node serve
Device), switching equipment (including Ethernet association turns gateway), depending on networked terminals (including various set-top boxes, encoding board, memory etc.).
It is depending on one of the core idea networked, by notifying switching equipment to be directed to when time downlink communication chain of service by main control server
Lu Peibiao, the table for being then based on the configuration carry out the transmission of data packet.
That is, including: depending on the communication means in networking
Main control server configuration is when time downstream communications link of service;
Work as time data packet of service for what source terminal was sent, is sent to target terminal according to the downstream communications link.
In embodiments of the present invention, it includes: notice when the downlink of secondary service is logical that time downstream communications link of service is worked as in configuration
Believe that switching equipment involved in link matches table;
It furthermore, include: the configured table of inquiry according to downstream communications link transmission, switching equipment is received to institute
Data packet is transmitted by corresponding port.
In the concrete realization, service includes unicast communication service and Multicast Communication Service.I.e. either cast communication is still
Unicast communication can realize the communication in view networking using the above-mentioned core idea with table-table.
As previously mentioned, view networking net includes access mesh portions, in access net, which is node server,
Undernet equipment includes access switch and terminal.
For the unicast communication service in access net, the main control server configuration is when time downlink communication chain of service
The step of road, may comprise steps of:
Sub-step S21, the service request protocol package that main control server is initiated according to source terminal are obtained when time downlink of service
Communication link information, downstream communications link information include participating in when time downlink of the main control server of service and access switch
Communication port information;
Sub-step S22, downstream communication ports information of the main control server according to control server, data packet inside it
The downlink port that setting is oriented to when time data packet of service in the table of location;And believe according to the downstream communication ports of access switch
Breath, to corresponding access switch sending port configuration order;
Sub-step S23, access switch according in port configuration command data packet addressed table inside it, setting when time
The downlink port that the data packet of service is oriented to.
For the Multicast Communication Service (such as video conference) in access net, main control server is obtained when under time service
The step of row communication link information may include following sub-step:
Sub-step S31, main control server obtain the service request agreement for the application Multicast Communication Service that target terminal is initiated
It wraps, includes the access net address of service type information, service content information and target terminal in service request protocol package;Wherein,
It include service number in service content information;
Sub-step S32, main control server according to the service number in preset content-address mapping table, extraction source
The access net address of terminal;
Sub-step S33, main control server obtains the corresponding multicast address of source terminal, and distributes to target terminal;And according to
According to the access net address of service type information, source terminal and target terminal, the communication link information when time multicast services is obtained.
It should be noted that those skilled in the art also can be used other modes realize that Ethernet association turns gateway both can be
Communication in Ethernet, but can the communication in view is networked, the embodiment of the present invention to this with no restriction.
The embodiment of the present invention is illustrated communication process from the angle of middle layer, can specifically include following steps:
Step 501, the first data packet based on the first Ethernet protocol that web camera is sent, first number are received
It include the network flow address of multi-medium data according to packet;
In the concrete realization, web camera is that a kind of combination traditional cameras is taken the photograph with a new generation caused by network technology
Camera, can be by camera lens, image, sound transducer, A/D converter, image, sound, controller network server, external report
The part such as police, control interface forms, for acquiring the multi-medium datas such as video, audio.
After web camera collects multi-medium data, network flow address can be generated based on the multi-medium data.
In the concrete realization, network flow address can be IP address and RTSP (the Real Time according to web camera
Streaming Protocol, real time streaming transport protocol is an application layer protocol in ICP/IP protocol system, and the agreement is fixed
How justice one-to-many application effectively transmits multi-medium data by IP network) agreement generation, it is in practice, different
Web camera producer can be customized to the progress of the create-rule of network flow address, for example, working as the IP address of web camera
When for 192.168.5.163, the network address that can be generated are as follows: rtsp: // 192.168.5.163/live/av0:554, wherein
It 192.168.5.163 is current network video camera IP address, " live " can be the type of network flow, and " av0 " can be network
The title of stream, " 554 " can be the port numbers of network flow.
Certainly, those skilled in the art can also generate network flow address by other methods, and the embodiment of the present invention is to this
With no restriction.
After web camera generates network flow address, the network flow address can be formed based on the first Ethernet protocol
First data packet.
As an example, which may include ONVIF agreement, ONVIF (OpenNetwork
Video Interface Forum, opening network video Interface Forum) agreement is dedicated to through global open interface mark
Standard promotes the network video in the application in security protection market, this interface standard will ensure that the network video product of different vendor's production
With intercommunity.
In practice, different vendor is different to the understanding of ONVIF agreement, and there are certain difference, examples in terms of protocol definition
Such as: Haikang and big China there is difference in the detection character string of mobile detection function.
As a kind of preferable example of the embodiment of the present invention, the first data packet can include but is not limited to network flow address,
Parameter, etc. is arranged in the multi-medium data setting parameter of web camera acquisition, monitoring alarm region.
In a preferred embodiment of an embodiment of the present invention, web camera can also receive middle layer transmission
The first data packet is sent to middle layer again after information acquisition request, then before step 501, the embodiment of the present invention can also include
Following steps:
Receive the information acquisition request that one or more view networked terminals are sent;The information acquisition request is sent to net
Network video camera.
In embodiments of the present invention, information acquisition request can be used for obtaining multimedia to web camera via middle layer
Data.
When needing to request the multi-medium data of network shooting pusher side depending on networked terminals, information acquisition request can be generated,
And the information acquisition request is sent to depending on networking protocol by middle layer by specified, middle layer receives view networked terminals and sends
Information acquisition request after, which can be sent to web camera via Ethernet protocol, then network
When video camera receives the information acquisition request, the first data packet can be generated, and the first data packet is sent to middle layer.
As an example, above-mentioned Ethernet protocol can be ONVIF agreement.Above-mentioned depending on networking protocol may include 8714
Agreement or 8704 agreements.Specifically, regard networked terminals can be it is one or more, when regard networked terminals as it is multiple when, Ke Yiying
For conference scenario, at this point, information acquisition request can be the request generated by 8714 agreements, i.e. 8714 agreements are propagated
Signaling is meeting signaling, corresponding multiple view networked terminals;When regarding networked terminals as 1, end-to-end image can be applied to
Scene is played, at this point, information acquisition request can be the request generated by 8704 agreements, the i.e. signaling that 8704 agreements are propagated
For signaling, corresponding single view networked terminals are broadcast live.
The following table 1 and 2 is respectively illustrated 8704 agreements and 8714 agreements.
Table 1
Table 2
Step 502, it is based on the network flow address, obtains corresponding multi-medium data;
In embodiments of the present invention, middle layer receives the first data packet of the network flow address including multi-medium data
Afterwards, the network flow address in the first data packet can be extracted, network flow address is then based on and obtains corresponding multi-medium data.
In a preferred embodiment of an embodiment of the present invention, step 502 may include following sub-step:
The network flow address is sent to view networked terminals by S41;
In embodiments of the present invention, a part of middle layer as view networking can be with after receiving the first data packet
Network flow address is extracted from the first data packet, and the network flow address is sent to view networked terminals.
In the concrete realization, network flow address may include Video coding address, audio coding address, video decoding ground
The network flow address can be sent to view using depending on 8714 agreements in networking protocol by location, Video coding address etc., middle layer
Networked terminals.
S42 receives the data acquisition request that view networked terminals are generated based on the network flow address;
It in embodiments of the present invention, can be in user interface with prompting frame etc. after receiving network flow address depending on networked terminals
Ways of presentation shows the network flow address, when detecting what user issued the selected operation of the network flow address or user
After confirmation operation, the aforesaid operations based on user generate data acquisition request, and the data acquisition request is sent to centre
Layer.
The data acquisition request is sent to the web camera by S43;
In embodiments of the present invention, after middle layer receives the data acquisition request that view networked terminals are sent, Ke Yitong
It crosses Ethernet transport protocol and the data acquisition request is sent to the web camera.
S44 receives the third data packet based on the second Ethernet protocol sent in the web camera, wherein institute
Stating third data packet includes multi-medium data, and the multi-medium data is the data of web camera acquisition;
Applied to the embodiment of the present invention, after web camera receives data acquisition request, the multimedia that can be acquired
Data are packaged into third data packet according to the second Ethernet protocol and are sent to middle layer.
As an example, the second Ethernet protocol may include RTSP agreement.
S45 extracts the multi-medium data from the third data packet.
In embodiments of the present invention, after middle layer receives third data packet, can from third data packet extract it includes
Multi-medium data.
In another embodiment of the embodiment of the present invention, step 502 may include following sub-step:
S51 generates data acquisition request based on the network flow address;
The data acquisition request is sent to the web camera by S52;
S53 receives the third data packet based on the second Ethernet protocol sent in the web camera, wherein institute
Stating third data packet includes multi-medium data, and the multi-medium data is the data of web camera acquisition;
S54 extracts the multi-medium data from the third data packet.
In embodiments of the present invention, after middle layer receives network flow address, there is no be sent to network flow address
Depending on networked terminals, but data acquisition request is directly generated according to the network flow address received and is sent to web camera,
Reduce the interaction times with view networked terminals, saves overhead, improve communication efficiency.
Step 503, the multi-medium data is joined according to specified one or more views that can be identified depending on networked terminals
FidonetFido is assembled into the second data packet;
In embodiments of the present invention, middle layer obtain multi-medium data after, can according to view networking protocol requirement should
Multi-medium data is assembled into the second data packet.
In a preferred embodiment of an embodiment of the present invention, step 503 may include following sub-step:
S61 determines the type of the multi-medium data;
In embodiments of the present invention, multimedia data type may include video data and audio data etc..
After middle layer extracts multi-medium data, it can determine that multi-medium data is video according to the format of multi-medium data
Data or audio data.Such as when multi-medium data is mp3, wma, flac, aac format, it can be determined that it is audio data,
When multi-medium data is avi, 3gp, rmvb, rm format, it can be determined that be video data.
Certain above-mentioned deterministic process to video data and audio data is only a kind of judgement of the embodiment of the present invention
Example, those skilled in the art can also judge the type of multi-medium data by other means, the embodiment of the present invention to this not
It is restricted.
S62 determines corresponding view networking protocol based on the type of the multi-medium data;
In embodiments of the present invention, middle layer, can be according to multimedia data type after determining multimedia data type
Determine corresponding view networking protocol.For example, being directed to video data, the corresponding networking protocol that regards can be determined as 2000 agreements;Needle
To audio data, the corresponding networking protocol that regards can be determined as 2001 agreements.
The protocol specification of 2000 agreements and 2001 agreements is illustrated respectively in the following table 3 and table 4:
Table 3
Table 4
S63, by it is described it is corresponding be added in the multi-medium data depending on data packet head specified by networking protocol, generate
Second data packet.
In embodiments of the present invention, middle layer adds this depending on networking protocol packet header after determining suitable view networking protocol
It is added in the multi-medium data that the middle layer receives, to generate the second data packet.
For example, when determining the multi-medium data that receives is video data, determine that corresponding depending on networking protocol is 2000
Agreement can then be added in the video data received using the 0-14 field number in upper table 3 as data packet head, generate packet
The second data packet containing the video data.
Step 504, second data packet is sent in specified one or more view networked terminals.
Applied to the embodiment of the present invention, after middle layer generates the second data packet comprising multi-medium data, can by with
Second data packet is sent to specified view networked terminals depending on networking protocol accordingly by the type of multi-medium data.For example, being directed to
Second data packet can be sent to specified view networked terminals by 2000 agreements by video data.
In the concrete realization, the above-mentioned specified networked terminals that regard can be whole as all views networking being connected with middle layer
End, alternatively, this is also possible to one that user selectes from all view networked terminals being connected with middle layer depending on networked terminals
Or multiple terminals, the embodiment of the present invention are not construed as limiting this.
In embodiments of the present invention, the present invention includes by receiving web camera based on what the first Ethernet protocol was sent
The network flow address of multi-medium data, obtains corresponding multi-medium data from network flow address, this multi-medium data is assembled
View networking is sent to eventually at the second data packet based on view networking protocol that can be identified depending on networked terminals, and by this data packet
End realizes web camera and regards the communication process of networked terminals.
Further, when being the data packet formed based on ONVIF agreement due to first data packet, and different manufacturers pair
The definition of ONVIF agreement has a certain difference, and can be compatible with each producer pair based on the above-mentioned communication process embodiment of the present invention
To the difference of the definition of ONVIF agreement, compatibility is promoted.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 7, show what a kind of web camera of second embodiment of the invention was communicated with depending on networked terminals
The structural block diagram of Installation practice, can specifically include following module:
First packet-receiving module 601, for receiving the based on the first Ethernet protocol of web camera transmission
One data packet, first data packet include the network flow address of multi-medium data;
Multi-medium data obtains module 602, for being based on the network flow address, obtains corresponding multi-medium data;
Die-filling piece 603 of second data packet group, for the multi-medium data to be networked according to specified one or more views
What terminal can identify is assembled into the second data packet depending on networking protocol;
Second packet sending module 604, for second data packet to be sent to the specified one or more
Depending in networked terminals.
In a preferred embodiment of an embodiment of the present invention, described device further include:
Information acquisition request receiving module, the information acquisition request sent for receiving one or more view networked terminals;
Information acquisition request sending module, for the information acquisition request to be sent to web camera.
In a preferred embodiment of an embodiment of the present invention, if the networked terminals that regard is one, the information is obtained
Taking request is the request generated by 8704 agreements;If the networked terminals that regard is multiple, the information acquisition request is logical
Cross the request of 8714 agreements generation.
In a preferred embodiment of an embodiment of the present invention, the multi-medium data acquisition module 602 includes:
Network flow address sending submodule, for the network flow address to be sent to view networked terminals;
Data acquisition request receiving submodule, the data generated for receiving view networked terminals based on the network flow address
Acquisition request;
The first sending submodule of data acquisition request, for the data acquisition request to be sent to the network shooting
Machine;
The first receiving submodule of third data packet, for receive sent in the web camera based on the second Ethernet
The third data packet of agreement, wherein the third data packet includes multi-medium data, and the multi-medium data is that the network is taken the photograph
The data of camera acquisition;
The first extracting sub-module of multi-medium data, for extracting the multi-medium data from the third data packet.
In another embodiment of the embodiment of the present invention, the multi-medium data obtains module 602 and includes:
Data acquisition request generates submodule, for generating data acquisition request based on the network flow address;
The second sending submodule of data acquisition request, for the data acquisition request to be sent to the network shooting
Machine;
The second receiving submodule of third data packet, for receive sent in the web camera based on the second Ethernet
The third data packet of agreement, wherein the third data packet includes multi-medium data, and the multi-medium data is that the network is taken the photograph
The data of camera acquisition;
The second extracting sub-module of multi-medium data, for extracting the multi-medium data from the third data packet.
In a preferred embodiment of an embodiment of the present invention, include: for die-filling piece 603 of second data packet group
Multimedia data type determines submodule, for determining the type of the multi-medium data;
Submodule is determined depending on networking protocol, for determining corresponding view networking association based on the type of the multi-medium data
View;
Second data packet generates submodule, for corresponding being added to described depending on data packet head specified by networking protocol
In the multi-medium data, the second data packet is generated.
In a preferred embodiment of an embodiment of the present invention, first Ethernet protocol includes opening network video
Interface Forum agreement, second Ethernet protocol includes real time streaming transport protocol.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, 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 provide 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 referring 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 process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
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 side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, 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 or more flows of the flowchart
And/or in one or more blocks of the block diagram 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 including other elements that are not explicitly listed, or further includes 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 for including the element.
Above to a kind of method and apparatus that web camera is communicated with depending on networked terminals provided by the present invention into
It has gone and has been discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, the above implementation
The explanation of example is merely used to help understand method and its core concept of the invention;Meanwhile for the general technology people of this field
Member, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this explanation
Book content should not be construed as limiting the invention.