CN104010052A - UPnP-based media connecting method in monitoring system - Google Patents
UPnP-based media connecting method in monitoring system Download PDFInfo
- Publication number
- CN104010052A CN104010052A CN201410259205.1A CN201410259205A CN104010052A CN 104010052 A CN104010052 A CN 104010052A CN 201410259205 A CN201410259205 A CN 201410259205A CN 104010052 A CN104010052 A CN 104010052A
- Authority
- CN
- China
- Prior art keywords
- nvr
- address
- client
- media
- port numbers
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a UPnP-based media connecting method in a monitoring system. The UPnP-based media connecting method includes the steps that an NVR and a router on a mobile carrier achieve virtual server mapping through a UPnP, the NVR and a client terminal are both registered to a central server, monitoring relation tables of the NVR and the client terminal are respectively built in the process of building media connection, when a public network IP address of the router, a register port number or a streaming media port number are changed due to movement of the mobile carrier, the NVR and the router are interacted through the UPnP to re-conduct virtual server mapping, a register keep-alive updating message is sent to the central server, the monitoring relation table of the client terminal is updated, and the client terminal sends a monitoring relation maintenance request to the NVR to keep media connection between the client terminal and the NVR. By means of the media connecting method, under the condition that the public network IP address of the router and the port number are changed, media connection can be smoothly kept.
Description
Technical field
The invention belongs to monitoring technique field, relate in particular to the public media method of attachment based on UPnP in a kind of supervisory control system.
Background technology
Due to the needs of security protection, video monitoring has obtained layout more and more widely, is, at road, public place, merchant store, home environment, increasing supervising device has all been installed.And along with the universal and development of wireless communication technology, the bandwidth of wireless network transmissions is increasing, for video monitoring being installed on various mobile vehicles, provides condition.On bus, video monitoring has all been installed gradually on traffic police's cruiser, the collection of safety guarantee and law enforcement evidence is provided a great convenience at present.
Yet mobile vehicle has the feature of high-speed mobile, the region of its leap is larger, in different regions, need to be linked into internet by the wireless base station of different telecommunications provider.As shown in Figure 1, mobile vehicle comprises network hard disk video recorder (NVR), web camera (IPC) as the watch-dog of installing on bus, and the router device that is used for carrying out NAT conversion and wireless connections wireless base station, the client of the NVRYu Surveillance center on bus is set up monitoring relation, the monitor video that web camera is taken accesses wireless base station by router device, and accessing Internet network, for the client of same accessing Internet network, check.Bus is in moving process, for example, when from mobile base station, the wireless coverage of (China Mobile base station) enters into the wireless range of UNICOM base station (CHINAUNICOM's communication base station), because mobile base station and UNICOM base station belong to different operators, the public network IP address that it provides is different, cause the public network IP address of each watch-dog of bus to change, router on bus is responsible for NAT simultaneously, and each watch-dog on bus is router, public network IP address that NVR, IPC are corresponding identical for example.In the prior art, after the public network IP address of bus router changes, client is obtained the new public network IP address less than NVR, and NVR also cannot notify new public network IP address to client simultaneously, causes the monitoring relation of client and NVR to disconnect.
For the processing of this situation, current technical scheme is that NVR starts DDNS function, the public network IP address of dynamic registration oneself on DDNS, and client is used domain name mode to sign in on NVR.When the public network IP address of NVR changes, NVR can upgrade the public network IP address of oneself again on DDNS.Client, after disconnecting monitoring relation, re-starts domain name mapping, obtains the public network IP address that NVR is new, then initiates media connection to it, re-establishes monitoring relation.
Yet the renewal of DDNS address is to have certain cycle, interior client all cannot be connected to NVR during this period of time, cannot checking monitoring fact.And due to bus high-speed mobile, when its corresponding public network IP address often converts, this technical scheme can, due to the frequent monitoring relation that disconnects, cause unavailable.
Summary of the invention
The object of this invention is to provide the media method of attachment based on UPnP in a kind of supervisory control system, to avoid when public network address changes, client and the problem that is connected disconnection with NVR media.
To achieve these goals, technical solution of the present invention is as follows:
Media method of attachment based on UPnP in a kind of supervisory control system, described supervisory control system comprises the client for monitoring, and be arranged at network hard disk video recorder NVR and the router on mobile vehicle, this media method of attachment is applied to NVR, described supervisory control system also comprises the central server that is arranged on Surveillance center, described NVR and router are realized virtual server by UPnP and are shone upon, and described media method of attachment comprises the steps:
Step 1, be registered to central server, set up NVR list on central server, described NVR list comprises the device id of NVR, the IP address of the public network of mapping, registered port numbers and Media Stream port numbers;
The monitoring business request of step 2, reception client, generate a corresponding service identification, and set up NVR monitoring relation table according to the user name comprising in this monitoring business request, the IP address of the public network of the device id of corresponding service identification, NVR, mapping and Media Stream port numbers are sent to client by returned packet;
Step 3, receive the media that client sends and connect and service identification, set up media and connect, and according to service identification, with IP address and the Media Stream port numbers of public network corresponding to client, upgrade NVR monitoring relation table;
Public network IP address, registered port numbers or Media Stream port numbers Notification of Changes that step 4, receiving router send, by UPnP, re-starting alternately virtual server with router shines upon, to central server, send registration keep-alive and upgrade message, this registration keep-alive upgrades that message carries device id that this NVR is corresponding, IP address, registered port numbers and the Media Stream port numbers of the public network that remaps, upgrades the NVR list on central server;
Step 5, the user name that NVR is monitored in relation table send to central server, and central server sends to IP address, registered port numbers and the Media Stream port numbers of device id corresponding to this NVR, the public network that remaps the client at this user name place;
The monitoring relationship safeguard request message that step 6, reception client send, upgrades NVR monitoring relation table, keeps media to be connected with client.
Wherein, described monitoring business request comprises user name, type of service and the business object of initiating this monitoring business request, describedly according to the user name comprising in this monitoring business request, set up NVR monitoring relation table, be to increase record corresponding to this user name in NVR monitoring relation table, comprise user name, service identification, source IP address and source port number, object IP address and destination slogan, protocol type.
Further, described source IP address and source port number correspondence IP address and the Media Stream port numbers of the private network of NVR; Described object IP address and destination slogan correspondence IP address and the Media Stream port numbers of the public network of client.
Preferably; described registration keep-alive is upgraded message and is also comprised that upgrading reservation identifies; described central server receives this registration keep-alive and upgrades after message, according to this, upgrades and subscribes sign, upgrades IP address, registered port numbers and the Media Stream port numbers of the public network that in NVR list, this device id is corresponding.According to renewal reservation, identify the list to NVR and upgrade, can guarantee just to upgrade after changing in public network IP address, registered port numbers or Media Stream port numbers, avoided receiving that conventional registration keep-alive renewal message also upgrades, improved the efficiency of renewal.
Described monitoring relation maintains IP address and the Media Stream port numbers of the public network that carries user name, client in request, and service identification, described connection with client maintenance media is to described monitoring, to maintain IP address and the Media Stream port numbers transmission Media Stream of the public network of the client of carrying in request.
The present invention has proposed the media method of attachment based on UPnP in a kind of supervisory control system simultaneously, described supervisory control system comprises the client for monitoring, and be arranged at network hard disk video recorder NVR and the router on mobile vehicle, this media method of attachment is applied to client, described supervisory control system also comprises the central server that is arranged on Surveillance center, described NVR and router are realized virtual server by UPnP and are shone upon, and described media method of attachment comprises the steps:
Step a, be registered to central server, obtain the NVR list on central server, the NVR selecting according to user, sends monitoring business request to this NVR;
Step b, receive this NVR returned packet and set up client control relation table;
Step c, to NVR, initiate media and connect, receive Media Stream that NVR sends and set up media and connect;
IP, registered port numbers and the Media Stream port numbers of the public network that the NVR that steps d, receiving center server send remaps, upgrade client control relation table;
The IP address of step e, the public network that remaps to this NVR and Media Stream port numbers send the request of monitoring relationship safeguard;
The Media Stream that step f, reception NVR send, keeps media to connect.
Wherein, described monitoring business request comprises user name, type of service and the business object of initiating this monitoring business request.
This NVR returned packet of described reception is set up client control relation table, and described client control relation table comprises device id, service identification, source IP address and source port number, object IP address and destination slogan, the protocol type of this NVR; Further, while upgrading client control relation table, be to subscribe sign according to the renewal of carrying in returned packet, upgrade client control relation table.
Further, described source IP address and source port number correspondence IP address and the Media Stream port numbers of the public network of this NVR; Described object IP address and destination slogan correspondence IP address and the Media Stream port numbers of the private network of client.
In the request of described monitoring relationship safeguard, carry IP address and the media port number of the public network of user name, client, and service identification.
Media method of attachment based on UPnP in a kind of supervisory control system that the present invention proposes, by UPnP, realize the mapping of NVR and egress router public network IP address and port numbers, NVR and client are all registered to central server, in the process of setting up media connection, set up respectively monitoring relation table separately, thereby in mobile vehicle moving process, in the situation that egress router public network IP address and port numbers change, NVR and router re-start alternately virtual server by UPnP and shine upon, and send registration keep-alive renewal message to central server, upgrade the monitoring relation table of client, client sends the request of monitoring relationship safeguard to NVR, keep being connected with the media of NVR, can connect by the smooth and easy level and smooth media that maintain.
Accompanying drawing explanation
Fig. 1 is prior art supervisory control system schematic network structure;
Fig. 2 is embodiment of the present invention supervisory control system schematic network structure;
Fig. 3 is the media method of attachment flow chart that the present invention is applied to NVR;
Fig. 4 is the media method of attachment flow chart that the present invention is applied to client.
Embodiment
Below in conjunction with drawings and Examples, technical solution of the present invention is described in further details, following examples do not form limitation of the invention.
Therefore for security consideration, external user cannot directly be accessed inner net computer, cannot directly browse WEB that Intranet builds, ftp server etc.For the various servers that can make extranet access Intranet build, realize sharing of information, resource, conventionally need to enable the UPnP function of inner net computer and Intranet router, by Intranet router, be that inner net computer is done virtual server and shone upon, the mapping relations of extranet access port and Intranet access port are set, thus by the data retransmission of extranet access Intranet designated port to corresponding inner net computer.
UPnP UPnP (Universal Plug and Play) is mainly used in the intelligent interconnection intercommunication of equipment, the agreement that UPnP has defined between equipment, communicate by letter between equipment and control point, control point, once the equipment of having opened UPnP any connects connects to the Net, all equipment on network just can be known and have new equipment to add at once, these equipment can intercom each other mutually, more can directly use or control it, all need artificial setting, completely plug and play.
The present embodiment be take the video monitoring system shown in Fig. 2 and method of the present invention is elaborated as example, and in Fig. 2, Surveillance center is provided with client, central server and router-A; On mobile vehicle, be provided with NVR, router B and web camera IPC.The client of Surveillance center and central server be by router-A accessing Internet network, and NVR, web camera IPC on mobile vehicle are by router B access wireless base station accessing Internet network again.Wherein central server and client can be used public network IP address, or by router-A, do static NAT address transition and realize the port mapping with router-A, client and NVR can access central server, and how the present embodiment arranges and do not limit the IP address of central server, client.Mobile vehicle is bus, subway, ferry or other vehicles in the present embodiment.
And NVR and router B on the present embodiment mobile vehicle supports and opened UPnP function, NVR and router are realized virtual server by UPnP and are shone upon.Be that NVR use UPnP and router B are mutual, router B is that NVR does virtual server mapping, sets up the corresponding relation between router B public network IP address/port numbers private network IP address/port numbers corresponding with NVR.About carrying out virtual server mapping by UPnP, set up the mapping relations between public network IP address/port numbers and private network IP address/port numbers, be widely used, repeat no more here.
In as the embodiment of Fig. 2, in the time of in the wireless range of mobile vehicle in mobile base station, public/private net IP and port numbers that NVR is corresponding are as shown in table 1:
Table 1
Wherein IP address 10.10.10.5, registered port numbers 80 and the Media Stream port numbers 5042 of NVR private network, the IP address of the public network of mapping, registered port numbers and Media Stream port numbers are 202.100.10.2,8080 and 21815.Registered port is mainly used to carry out the transmitting-receiving of the logon message of equipment room, and Media Stream port is used for carrying out the transmitting-receiving of Media Stream.
Aspect client, can pass through static NAT address transition, for example the IP address of the private network of client and registered port numbers are: 10.10.11.6:10, the IP address of the public network that it is corresponding and registered port numbers are 202.100.12.10:1010.Its Streaming Media port numbers adopts the method for dynamic port, when initiating Streaming Media connection, generates.
Fig. 3 shows the media method of attachment flow process based on UPnP in a kind of supervisory control system of the present embodiment, is applied to the NVR equipment on mobile vehicle, comprises the steps:
Step 301, be registered to central server, set up NVR list on central server, described NVR list comprises the device id of NVR, the IP address of the public network of mapping, registered port numbers and Media Stream port numbers.
NVR on all mobile vehicles has to register into central server, and central server records IP address, registered port numbers and the Media Stream port numbers of the public network of device id that NVR is corresponding, mapping.
The NVR list of central server record is as shown in table 2:
Device id | Public network IP address | Registered port numbers | Media Stream port numbers |
NVR1 | 202.100.10.2 | 8080 | 21815 |
Table 2
Due on router B for NVR has done virtual server mapping, and router B has returned to NVR by the IP address of the public network of mapping, registered port numbers and Media Stream port numbers, therefore NVR is when central server is registered, IP address to central server registration is IP address, registered port numbers and the Media Stream port numbers of the public network of mapping.
It should be noted that, only listed a NVR record in table 2, in actual use, the NVR list of central server record comprises the NVR on all mobile vehicles.
The monitoring business request of step 302, reception client, generate a corresponding service identification, and set up NVR monitoring relation table according to the user name comprising in this monitoring business request, the IP address of the public network of the device id of corresponding service identification, NVR, mapping and Media Stream port numbers are sent to client by returned packet.
Client is also registered on central server, client can get NVR list by central server, in list, every corresponding device id of a NVR of record is, the IP address of the public network of mapping, registered port numbers and Media Stream port numbers, thereby client can be carried out public network IP address from authentication registration to NVR and registered port numbers, router B on mobile vehicle shines upon according to virtual server, authentication registration is forwarded to the registered port of NVR, NVR receives authentication registration request, by authentication.
When client need to be carried out monitoring business request, user can select NVR to initiate monitoring business request to the registered port numbers of NVR by client, comprises user name, type of service and the business object of initiating this monitoring business request in monitoring business request.Wherein type of service refers to fact, playback, speech talkback etc., and business object refers to certain camera chin.
Router B on mobile vehicle shines upon according to virtual server, monitoring business request is forwarded to the registered port of NVR.
NVR receives after monitoring business request, generate a corresponding service identification, and set up NVR monitoring relation table according to the user name comprising in this monitoring business request, the public network IP address of the device id of corresponding service identification, NVR, mapping and Media Stream port numbers are sent to client by returned packet.
The NVR monitoring relation table of setting up is as shown in table 3:
Table 3
Source IP address in table 3 and source port number correspondence IP address and the Media Stream port numbers of NVR private network, at this moment corresponding object IP address and destination slogan are empty, because the object IP address of Media Stream and Media Stream port numbers are also unknown, service identification is Playback, corresponding monitor video playback business.
IP address and the registered port numbers of the public network that client that NVR carries according to client control service request message is corresponding send returned packet to client.
Step 303, receive the media that client sends and connect and service identification, set up media and connect, and according to service identification, with IP address and the Media Stream port numbers of public network corresponding to client, upgrade NVR monitoring relation table.
Client, after receiving the returned packet of NVR, is obtained service identification, device id from returned packet, and IP address and the Media Stream port numbers of the public network of NVR mapping are set up client control relation table.
Client control relation table is as shown in table 4:
Table 4
Source IP address in table 4 and source port number correspondence IP address and the Media Stream port numbers of the public network of NVR mapping, and object IP address and destination slogan correspondence IP address and the Media Stream port numbers of client private network.
Client be take source address as 10.10.10.6, and source port number is 5481 to destination address, to be that 202.100.10.2, destination slogan are that 21815 initiation media connect.When client is initiated to connect, also need the NAT address transition through router-A, for different source port numbers, its corresponding public network Media Stream port numbers is different, as shown in table 5:
Table 5
According to NAT address transition, the media connection request that NVR termination is received, its corresponding address is 202.100.12.10, corresponding Media Stream port numbers is 18158, thereby NVR is to IP address 202.100.12.10, and Media Stream port numbers 18158 sends Media Stream, sets up media and connects.
After connecting foundation, client sends to NVR by service identification Playback, and NVR, according to service identification, upgrades NVR monitoring relation table.
The NVR monitoring relation table upgrading is as shown in table 6:
Table 6
Visible, in NVR monitoring relation table, IP address and the Media Stream port numbers of public network corresponding to client inserted in object IP address and destination slogan.
Thereby in client and NVR, all set up monitoring relation table, the monitoring business sign in two relation tables reaches consistent.Owing to may existing the media of a plurality of different business signs to be connected between NVR and client, therefore by monitoring relation table separately of foundation and distinguish by service identification, can in follow-up step, for different service identifications, operate.
For the NVR monitoring relation table and the client control relation table that exist a plurality of media to connect, respectively as shown in table 7, table 8:
Table 7
Table 8
Visible NVR public network or private network IP address and port numbers are all constant, and client public network or private network IP address are constant, but for different service identifications, corresponding Media Stream port numbers is different.
Public network IP address, registered port numbers or Media Stream port numbers Notification of Changes that step 304, receiving router send; by UPnP, re-starting alternately virtual server with router shines upon; to central server, send registration keep-alive and upgrade message; this registration keep-alive upgrades that message carries device id that this NVR is corresponding, IP address, registered port numbers and the Media Stream port numbers of the public network that remaps, upgrades the NVR list on central server.
In mobile vehicle moving process, for example in Fig. 2 mobile vehicle operation process in, from the region of the mobile base station network coverage, enter into the region that UNICOM's base station network covers, switching due to carrier network, router B public network IP address, registered port numbers, Streaming Media port numbers all likely change, NVR and router B re-start alternately virtual server by UPnP and shine upon, and after remapping, corresponding public/private net IP and the port numbers of NVR and client is as shown in table 9:
Table 9
Owing to having switched the base station of different communication operator, router B public network IP address is changed into 202.100.11.5 by 202.100.10.2, and registered port numbers changes to 8180, Streaming Media port numbers changes to 31822, the information that router B changes public network IP address immediately by UPnP is notified to NVR, again forms mapping relations.
Central server is received the registration keep-alive renewal message that NVR sends, and according to NVR device id, with the public network IP address, registered port numbers and the Media Stream port numbers that remap, upgrades NVR list.
Further; NVR receives the notice that public network IP address, registered port numbers or Media Stream port numbers change; re-start alternately after virtual server mapping by UPnP with router B; just to central server, initiate to register keep-alive at once and upgrade message, registration keep-alive is upgraded in message and is also carried and upgrade reservation (update_reservation) sign.Central server is received the registration keep-alive renewal message that NVR sends; according to the update_reservation sign in this message; central server knows that the NVR that this device id is corresponding need to upgrade public network IP address, registered port numbers and the Media Stream port numbers in NVR list, then public network IP address, registered port numbers and the Media Stream port numbers of NVR corresponding to this device id is revised as to public network IP address, registered port numbers and the Media Stream port numbers remapping.
According to renewal reservation, identify the list to NVR and upgrade, can guarantee just to upgrade after changing in public network IP address, registered port numbers or Media Stream port numbers, avoided receiving that conventional registration keep-alive renewal message also upgrades, improved the efficiency of renewal.
The NVR list that NVR after renewal is corresponding is as shown in table 10:
Device id | Public network IP address | Registered port numbers | Media Stream port numbers |
NVR1 | 202.100.11.5 | 8180 | 31822 |
Table 10
Step 305, NVR is monitored to user name in relation table send to central server, central server sends to IP address, registered port numbers and the Media Stream port numbers of device id corresponding to this NVR, the public network that remaps the client at this user name place.
User name in the NVR monitoring relation table that NVR records oneself sends to central server, central server, according to the user name of sending, sends to corresponding user by IP address, registered port numbers and the Media Stream port numbers of the public network of NVR mapping, device id and update_reservation sign.
Client obtains the update_reservation sign that central server is sent, just know that NVR public network IP address, registered port numbers or Media Stream port numbers that this device id is corresponding have become, upgrade client control relation table, then by client, to the new public network IP address of NVR and Media Stream port numbers, initiate the request of monitoring relationship safeguard, monitoring relation maintains IP address and the Media Stream port numbers of the public network that carries user name, client in request, and service identification.
Client sends monitoring relationship safeguard request message to NVR server, and the old service identification of user is placed in the content of monitoring relationship safeguard request message and issues NVR.
Client control relation table after renewal is as shown in table 11:
Table 11
The monitoring relationship safeguard request of step 306, reception client, upgrades NVR monitoring relation table, keeps media to be connected with client.
NVR receives the monitoring relationship safeguard request message that user sends by client, read the service identification in message, source IP address/the source port number reading in heading upgrades NVR monitoring relation table, then NVR is used the relation table after upgrading, to corresponding user, send Media Stream, monitoring relational implementation takes over seamlessly.
Conventionally client is when initiating the request of monitoring relationship safeguard, if variation has occurred the Media Stream port of corresponding public network, NVR can upgrade NVR monitoring relation table after the request of receiving, the NVR monitoring relation table after renewal is as shown in table 12:
Table 12
In table 12, there is variation in client Media Stream port numbers corresponding to visible monitoring relationship safeguard request, these change records are in NVR monitoring relation table, the monitoring relationship safeguard request that NVR sends according to client sends Media Stream to corresponding client Media Stream port numbers, keeps media to connect.
Fig. 4 shows the media method of attachment flow process based on UPnP in a kind of supervisory control system of the present embodiment, is applied to client, comprises the steps:
Step 401, be registered to central server, obtain the NVR list on central server, the NVR selecting according to user, sends monitoring business request to this NVR.
Client is also registered on central server, client can get NVR list by central server, in list, every corresponding device id of a NVR of record is, the IP address of the public network of mapping, registered port numbers and Media Stream port numbers, thereby user can select NVR to initiate authentication registration to the registered port numbers of this NVR by client, and initiates monitoring business request to the registered port numbers of this NVR.
Monitoring business request comprises user name, type of service and the business object of initiating this monitoring business request.NVR receives after monitoring business request, can generate a corresponding service identification, and NVR monitoring relation table is set up in request according to monitoring business, and the NVR monitoring relation table of foundation is as shown in table 3.
NVR can send returned packet to client according to IP address and the registered port numbers of public network corresponding to client.
Step 402, reception NVR returned packet are set up client control relation table.
Client, after receiving the returned packet of NVR, is obtained service identification, device id from returned packet, and IP address and the Media Stream port numbers of the public network of NVR mapping are set up client control relation table, and the client control relation table of foundation is as shown in table 4.
Step 403, to NVR, initiate media and connect, receive Media Stream that NVR sends and set up media and connect.
Client be take source address as 10.10.10.6, and source port number is 5481 to destination address, to be that 202.100.10.2, destination slogan are that 21815 initiation media connect.NVR, after receiving connection, to IP address and the Media Stream port numbers transmission Media Stream of client public network, sets up media and connects.
IP, registered port numbers and the Media Stream port numbers of the public network that the NVR that step 404, receiving center server send remaps, upgrade client control relation table.
When mobile vehicle moves; router B public network IP address, registered port numbers and Streaming Media port numbers change; NVR and router B re-start alternately virtual server by UPnP and shine upon; NVR can send registration keep-alive to central server and upgrade message after the Notification of Changes of receiving router B; also can send the user name in NVR monitoring relation table to central server; central server is after upgrading NVR list, and the IP of the public network that NVR can be remapped, registered port numbers and Media Stream port numbers send to the client of respective user name.
Further; NVR receives the notice that public network IP address, registered port numbers or Media Stream port numbers change; re-start alternately after virtual server mapping by UPnP with router B; just to central server, initiate to register keep-alive at once and upgrade message, registration keep-alive is upgraded in message and is also carried and upgrade reservation (update_reservation) sign.Central server is received the registration keep-alive renewal message that NVR sends; according to the update_reservation sign in this message; central server knows that the NVR that this device id is corresponding need to upgrade public network IP address, registered port numbers and the Media Stream port numbers in NVR list, then upgrades NVR list.In the information that sends to thereafter client, also comprise this renewal reservation sign.
After these information of client, learn that variation has occurred IP address, registered port numbers or the Media Stream port numbers of the public network of NVR, upgrade IP address and the Media Stream port numbers of the public network that in client control relation table, this NVR is corresponding.Client control relation table after renewal is as shown in table 7.
It should be noted that if not comprising in the information that central server sends upgrading subscribes sign, directly upgrade the information of corresponding NVR, and comprise that upgrading reservation identifies, to only when needs contain renewal reservation sign, just determine and upgrade, and can reduce to upgrade operating, upgrade more efficient.
The IP address of step 405, the public network that remaps to this NVR and Media Stream port numbers send the request of monitoring relationship safeguard.
Client, after learning the IP address and Media Stream port numbers of the public network that NVR remaps, sends the request of monitoring relationship safeguard to this NVR, carries public network IP address and the Media Stream port numbers of self in this request, and original service identification.
The Media Stream that step 406, reception NVR send, keeps media to connect.
NVR, after receiving the monitoring relationship safeguard request of client transmission, according to service identification, upgrades NVR monitoring relation table, to client, sends monitoring media stream, and the Media Stream of client NVR transmission, keeps media to connect.
Above embodiment is only in order to technical scheme of the present invention to be described but not be limited; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.
Claims (10)
1. the media method of attachment based on UPnP in a supervisory control system, described supervisory control system comprises the client for monitoring, and be arranged at network hard disk video recorder NVR and the router on mobile vehicle, this media method of attachment is applied to NVR, it is characterized in that, described supervisory control system also comprises the central server that is arranged on Surveillance center, and described NVR and router are realized virtual server by UPnP and shone upon, and described media method of attachment comprises the steps:
Step 1, be registered to central server, set up NVR list on central server, described NVR list comprises the device id of NVR, the IP address of the public network of mapping, registered port numbers and Media Stream port numbers;
The monitoring business request of step 2, reception client, generate a corresponding service identification, and set up NVR monitoring relation table according to the user name comprising in this monitoring business request, the IP address of the public network of the device id of corresponding service identification, NVR, mapping and Media Stream port numbers are sent to client by returned packet;
Step 3, receive the media that client sends and connect and service identification, set up media and connect, and according to service identification, with IP address and the Media Stream port numbers of public network corresponding to client, upgrade NVR monitoring relation table;
Public network IP address, registered port numbers or Media Stream port numbers Notification of Changes that step 4, receiving router send, by UPnP, re-starting alternately virtual server with router shines upon, to central server, send registration keep-alive and upgrade message, this registration keep-alive upgrades that message carries device id that this NVR is corresponding, IP address, registered port numbers and the Media Stream port numbers of the public network that remaps, upgrades the NVR list on central server;
Step 5, the user name that NVR is monitored in relation table send to central server, and central server sends to IP address, registered port numbers and the Media Stream port numbers of device id corresponding to this NVR, the public network that remaps the client at this user name place;
The monitoring relationship safeguard request message that step 6, reception client send, upgrades NVR monitoring relation table, keeps media to be connected with client.
2. media method of attachment according to claim 1, it is characterized in that, described monitoring business request comprises user name, type of service and the business object of initiating this monitoring business request, describedly according to the user name comprising in this monitoring business request, set up NVR monitoring relation table, be to increase record corresponding to this user name in NVR monitoring relation table, comprise user name, service identification, source IP address and source port number, object IP address and destination slogan, protocol type.
3. media method of attachment according to claim 2, is characterized in that, described source IP address and source port number correspondence IP address and the Media Stream port numbers of the private network of NVR; Described object IP address and destination slogan correspondence IP address and the Media Stream port numbers of the public network of client.
4. media method of attachment according to claim 1; it is characterized in that; described registration keep-alive is upgraded message and is also comprised that upgrading reservation identifies; described central server receives this registration keep-alive and upgrades after message; according to this, upgrade and subscribe sign, upgrade IP address, registered port numbers and the Media Stream port numbers of the public network that in NVR list, this device id is corresponding.
5. media method of attachment according to claim 1, it is characterized in that, described monitoring relation maintains IP address and the Media Stream port numbers of the public network that carries user name, client in request, and service identification, described connection with client maintenance media is to described monitoring, to maintain IP address and the Media Stream port numbers transmission Media Stream of the public network of the client of carrying in request.
6. the media method of attachment based on UPnP in a supervisory control system, described supervisory control system comprises the client for monitoring, and be arranged at network hard disk video recorder NVR and the router on mobile vehicle, this media method of attachment is applied to client, it is characterized in that, described supervisory control system also comprises the central server that is arranged on Surveillance center, and described NVR and router are realized virtual server by UPnP and shone upon, and described media method of attachment comprises the steps:
Step a, be registered to central server, obtain the NVR list on central server, the NVR selecting according to user, sends monitoring business request to this NVR;
Step b, receive this NVR returned packet and set up client control relation table;
Step c, to NVR, initiate media and connect, receive Media Stream that NVR sends and set up media and connect;
IP, registered port numbers and the Media Stream port numbers of the public network that the NVR that steps d, receiving center server send remaps, upgrade client control relation table;
The IP address of step e, the public network that remaps to this NVR and Media Stream port numbers send the request of monitoring relationship safeguard;
The Media Stream that step f, reception NVR send, keeps media to connect.
7. media method of attachment according to claim 6, is characterized in that, described monitoring business request comprises user name, type of service and the business object of initiating this monitoring business request.
8. media method of attachment according to claim 6, it is characterized in that, this NVR returned packet of described reception is set up client control relation table, to subscribe sign according to the renewal of carrying in returned packet, upgrade client control relation table, described client control relation table comprises device id, service identification, source IP address and source port number, object IP address and destination slogan, the protocol type of this NVR.
9. media method of attachment according to claim 8, is characterized in that, described source IP address and source port number correspondence IP address and the Media Stream port numbers of the public network of this NVR; Described object IP address and destination slogan correspondence IP address and the Media Stream port numbers of the private network of client.
10. media method of attachment according to claim 1, is characterized in that, carries IP address and the media port number of the public network of user name, client in the request of described monitoring relationship safeguard, and service identification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410259205.1A CN104010052B (en) | 2014-06-11 | 2014-06-11 | Media connection method based on UPnP in a kind of monitoring system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410259205.1A CN104010052B (en) | 2014-06-11 | 2014-06-11 | Media connection method based on UPnP in a kind of monitoring system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104010052A true CN104010052A (en) | 2014-08-27 |
CN104010052B CN104010052B (en) | 2017-06-13 |
Family
ID=51370543
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410259205.1A Active CN104010052B (en) | 2014-06-11 | 2014-06-11 | Media connection method based on UPnP in a kind of monitoring system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104010052B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104253980A (en) * | 2014-09-25 | 2014-12-31 | 浙江宇视科技有限公司 | Method and device for connecting front-end equipment with background media equipment |
CN104539902A (en) * | 2014-12-29 | 2015-04-22 | 浙江宇视科技有限公司 | IPC remote access method and system |
CN104753926A (en) * | 2015-03-11 | 2015-07-01 | 华中科技大学 | Gateway access control method |
CN105516744A (en) * | 2015-12-25 | 2016-04-20 | Tcl集团股份有限公司 | Smart TV accessing method and smart TV accessing system |
CN105611208A (en) * | 2015-12-31 | 2016-05-25 | 深圳市磊科实业有限公司 | Method for performing real-time limited access on NVR (Network Video Recorder) by external terminal equipment |
CN107172227A (en) * | 2017-05-19 | 2017-09-15 | 福建星网智慧科技股份有限公司 | A kind of method and system accessed based on many upstream plants |
CN108391090A (en) * | 2018-03-16 | 2018-08-10 | 中山市嘟嘟天地教育咨询有限责任公司 | Remote monitoring communicates method for building up, device, computer equipment and storage medium |
WO2018161503A1 (en) * | 2017-03-10 | 2018-09-13 | 浙江宇视科技有限公司 | Abnormality detection method, network video recorder (nvr) and video server |
CN108540590A (en) * | 2018-03-28 | 2018-09-14 | 深圳市网心科技有限公司 | UPnP network port mapping method, electronic equipment, network system and storage medium |
CN109962990A (en) * | 2017-12-26 | 2019-07-02 | 浙江宇视科技有限公司 | A kind of method and device automatically accessing monitoring device in NAT |
CN111356017A (en) * | 2018-12-24 | 2020-06-30 | 浙江宇视科技有限公司 | Video monitoring network equipment keep-alive method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110811A (en) * | 2006-07-18 | 2008-01-23 | 北京华纬讯电信技术有限公司 | Method for controlling media data transmission of video system |
US20090327496A1 (en) * | 2008-06-25 | 2009-12-31 | Microsoft Corporation | REMOTE ACCESS BETWEEN UPnP DEVICES |
CN102131072A (en) * | 2010-01-14 | 2011-07-20 | 上海威乾视频技术有限公司 | System and method for realizing network video monitoring under internet platform |
CN103095749A (en) * | 2011-10-28 | 2013-05-08 | 浙江大华技术股份有限公司 | Method and system used for achieving discovery of cross-network-segment equipment |
CN103237092A (en) * | 2013-04-02 | 2013-08-07 | 浙江宇视科技有限公司 | Method and device for accessing private network hard disk video recorder |
-
2014
- 2014-06-11 CN CN201410259205.1A patent/CN104010052B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110811A (en) * | 2006-07-18 | 2008-01-23 | 北京华纬讯电信技术有限公司 | Method for controlling media data transmission of video system |
US20090327496A1 (en) * | 2008-06-25 | 2009-12-31 | Microsoft Corporation | REMOTE ACCESS BETWEEN UPnP DEVICES |
CN102131072A (en) * | 2010-01-14 | 2011-07-20 | 上海威乾视频技术有限公司 | System and method for realizing network video monitoring under internet platform |
CN103095749A (en) * | 2011-10-28 | 2013-05-08 | 浙江大华技术股份有限公司 | Method and system used for achieving discovery of cross-network-segment equipment |
CN103237092A (en) * | 2013-04-02 | 2013-08-07 | 浙江宇视科技有限公司 | Method and device for accessing private network hard disk video recorder |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104253980A (en) * | 2014-09-25 | 2014-12-31 | 浙江宇视科技有限公司 | Method and device for connecting front-end equipment with background media equipment |
CN104253980B (en) * | 2014-09-25 | 2018-01-16 | 浙江宇视科技有限公司 | Connection method and device of a kind of headend equipment with backstage media device |
CN104539902B (en) * | 2014-12-29 | 2018-06-05 | 浙江宇视科技有限公司 | The remote access method and system of a kind of IPC |
CN104539902A (en) * | 2014-12-29 | 2015-04-22 | 浙江宇视科技有限公司 | IPC remote access method and system |
CN104753926A (en) * | 2015-03-11 | 2015-07-01 | 华中科技大学 | Gateway access control method |
CN105516744A (en) * | 2015-12-25 | 2016-04-20 | Tcl集团股份有限公司 | Smart TV accessing method and smart TV accessing system |
CN105516744B (en) * | 2015-12-25 | 2020-04-21 | Tcl集团股份有限公司 | Smart television access method and smart television access system |
CN105611208A (en) * | 2015-12-31 | 2016-05-25 | 深圳市磊科实业有限公司 | Method for performing real-time limited access on NVR (Network Video Recorder) by external terminal equipment |
WO2018161503A1 (en) * | 2017-03-10 | 2018-09-13 | 浙江宇视科技有限公司 | Abnormality detection method, network video recorder (nvr) and video server |
US11039126B2 (en) | 2017-03-10 | 2021-06-15 | Zhejiang Uniview Technologies Co., Ltd. | Abnormality detection method, network video recorder (NVR), and video server |
CN107172227A (en) * | 2017-05-19 | 2017-09-15 | 福建星网智慧科技股份有限公司 | A kind of method and system accessed based on many upstream plants |
CN109962990A (en) * | 2017-12-26 | 2019-07-02 | 浙江宇视科技有限公司 | A kind of method and device automatically accessing monitoring device in NAT |
CN108391090A (en) * | 2018-03-16 | 2018-08-10 | 中山市嘟嘟天地教育咨询有限责任公司 | Remote monitoring communicates method for building up, device, computer equipment and storage medium |
CN108540590A (en) * | 2018-03-28 | 2018-09-14 | 深圳市网心科技有限公司 | UPnP network port mapping method, electronic equipment, network system and storage medium |
CN111356017A (en) * | 2018-12-24 | 2020-06-30 | 浙江宇视科技有限公司 | Video monitoring network equipment keep-alive method and device |
CN111356017B (en) * | 2018-12-24 | 2022-05-13 | 浙江宇视科技有限公司 | Video monitoring network equipment keep-alive method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104010052B (en) | 2017-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104010052A (en) | UPnP-based media connecting method in monitoring system | |
US20240049108A1 (en) | Network provisioning | |
US11671898B2 (en) | Systems and methods for routing data | |
CN103430487B (en) | For detecting the method, apparatus and system of the service data that grouped data connects | |
US11540201B2 (en) | Network awareness of device location | |
US20140334336A1 (en) | Multi-Tenant Virtual Access Point- Network Resources Virtualization | |
US10270622B2 (en) | Method for enabling mobility of client devices in large scale unified networks | |
JP2007208595A (en) | Large-scale wide area network system having position information managing function | |
CN103095654A (en) | Virtual local area network (VLAN) configuration method, wireless access point and network control point | |
CN102202389B (en) | A kind of method and system gateway being realized to management | |
CN103096239B (en) | A kind of information issuing method, Apparatus and system | |
CN104507127A (en) | System and method for solving problem of family broadband network bandwidth idleness | |
CN104967656A (en) | Wireless ZigBee data acquisition and real-time house deformation monitoring remote transmission system | |
CN103516567A (en) | Method and system for equipment discovery and server | |
CN104144491A (en) | Method and system used for positioning WiFi terminal in real time | |
CN104486193B (en) | A kind of method and device for establishing network node interconnection | |
EP2426966A2 (en) | Wireless extension of broadband acces | |
CN103647693A (en) | Virtual network based system and method for achieving remote data transmission of GNSS (Global Navigation Satellite System) receiver | |
US20130178166A1 (en) | Method and apparatus for providing outside network service based on advertisment viewing | |
CN106411928A (en) | Authentication method and device of client access server and VDI system | |
CN107295697A (en) | Wireless network system with regional communication and communication method thereof | |
CN101938849A (en) | Mobile communication technique based golf cart communication system and communication method thereof | |
CN101938375A (en) | Method and system for exchanging data between energy consumption data repeater and data center | |
CN108173848B (en) | Wi-Fi real-name authentication method based on broadcasting and TV HFC network | |
Gatti | Trains as Mobile devices: the TrainCom project |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |