CN104639913A - Network video recorder (NVR) and automatic IPC (Internet Protocol Camera) access method thereof - Google Patents

Network video recorder (NVR) and automatic IPC (Internet Protocol Camera) access method thereof Download PDF

Info

Publication number
CN104639913A
CN104639913A CN201510075933.1A CN201510075933A CN104639913A CN 104639913 A CN104639913 A CN 104639913A CN 201510075933 A CN201510075933 A CN 201510075933A CN 104639913 A CN104639913 A CN 104639913A
Authority
CN
China
Prior art keywords
ipc
address
interface card
network interface
network
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
Application number
CN201510075933.1A
Other languages
Chinese (zh)
Other versions
CN104639913B (en
Inventor
张磊
孙令亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201510075933.1A priority Critical patent/CN104639913B/en
Publication of CN104639913A publication Critical patent/CN104639913A/en
Application granted granted Critical
Publication of CN104639913B publication Critical patent/CN104639913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a network video recorder (NVR) and an automatic IPC (Internet Protocol Camera) access method thereof. The NVR comprises a device discovery module, a network configuration module and a configuration management module. The method comprises the steps: sending an ARP (Address Resolution Protocol) broadcast message, and receiving response messages fed back from all IPCs, wherein the response messages carry own IP (Internet Protocol) addresses of the IPCs, subnet masks and port numbers; judging whether the IP address of each IPC sending the corresponding response message and the IP address of an own network card of the corresponding IPC are located in the same network segment or not according to the received IPC response messages, and going to next step if the IP address of each IPC sending the corresponding response message and the IP address of the own network card of the corresponding IPC are located in the same network segment; adding a virtual IP address, which is located in the same network segment of the IP address of each IPC sending the corresponding response message, to the own network card of the corresponding IPC if the IP address of each IPC sending the corresponding response message and the IP address of the own network card of the corresponding IPC are not located in the same network segment, binding the corresponding IPC and the added virtual IP address to the corresponding own network card, and going to the next step; adding corresponding IPCs in a unicast mode. According to the NVR and the automatic IPC access method thereof, the access of the IPCs which do not support IP modification is subjected to IP removal, and the IPCs and the NVR can be in interconnected use in a zero configuration manner.

Description

A kind of method of network video recorder and automatically access IPC
Technical field
The invention belongs to technical field of video monitoring, particularly relate to a kind of method of network video recorder and automatic access IPC thereof.
Background technology
Video monitoring is the important component part of safety and protection system, and video monitoring is directly perceived with it, accurately, timely and the information content is abundant and be widely used in many occasions.In recent years, along with the develop rapidly of computer, network and image procossing, transmission technology, the universalness trend of video monitoring is more and more obvious.IP based network disposes a kind of networking mode that video monitoring system becomes the most frequently used, in video monitoring system as shown in Figure 1, network video recorder NVR and web camera IPC is linked into same egress router, user can access client to check the video image of each IPC under egress router, also can access NVR by mobile client in the wide area network, check the video image of each IPC.But when disposing such video monitoring system, because the user of a large amount of average family video monitoring system is all very unclear with use for the basic conception of IP and network, often there is a such-and-such difficult problem when mounted, user plugs netting twine after expecting only to need equipment of taking, opening power can use.
Although at present for NVR and the IPC equipment in the video monitoring system of main flow, all can accomplish after IPC is linked into egress router, after powering on, NVR carries out search and can find IPC, and user only needs to add management to IPC in man-machine interface.Even if IPC adopts third-party equipment, NVR also can pass through ONVIF agreement or proprietary protocol, communicates with IPC, revises its IP address and adds the management to IPC.Although but the IPC equipment of some producer is supported automatically to find, does not support to revise IP, or also need to restart after amendment IP, must wait in restarting process, lose time, affect the experience of user.
Summary of the invention
The object of this invention is to provide a kind of method of network video recorder and automatic access IPC thereof, the problem being difficult to add to NVR can not revised IP address to avoid IPC in network and cause, facilitates user to dispose video surveillance network.
To achieve these goals, technical solution of the present invention is as follows:
Network video recorder accesses a method of IPC automatically, is applied to the NVR in video monitoring system, comprises step:
Step 1, send ARP broadcast, and receive the response message that each IPC feeds back, this response message carries the IP address of IPC oneself, subnet mask and port numbers;
Step 2, according to the IPC response message received, the IP address judging the IPC of this response message of transmission whether with the IP address of self network interface card at the same network segment, if yes then enter next step; Otherwise add on self network interface card one with the virtual ip address of the same network segment in IP address of IPC sending this response message, and by the network interface card that this IPC and the virtual ip address that increases are tied to self, enter next step;
Step 3, add corresponding IPC with mode of unicast.
Wherein add corresponding IPC with mode of unicast described in step 3, can also step be comprised:
Transmitting apparatus authentication information gives the IPC sending this response message, carries out authentication, if do not receive authentication OK response or respond unsuccessfully, then for the network interface card having bound this IPC and virtual IP address, deletes the binding relationship of this IPC and virtual IP address;
After authentication is passed through, to this IPC transmitting apparatus configuration obtaining information, and according to the response of this IPC, it is configured, or directly it is configured according to the configuration preset.
Further, if described network video recorder has at least two network interface cards, then described step 2 specifically also comprises step:
To the IP address of IPC of this response message be sent and the IP address of each network interface card compares, look into and see if there is network interface card and this IPC at the same network segment, if only have the IP address of the IP address of a network interface card and this IPC at the same network segment, then bind this IPC and this network interface card; If have the IP address of the IP address of multiple network interface card and this IPC at the same network segment, then how many according to the IPC of the binding on every block network interface card, carry out load balancing, select the minimum network interface card of binding IP C to bind this IPC; If neither one network interface card and this IPC are at the same network segment, then select the network interface card that binding IP C is minimum, this network interface card adds one with the IP address of the same network segment in IP address of IPC sending this response message, and by this IPC and the IP address binding that adds to this network interface card.
Or: the IP address of IPC and the IP address of each network interface card that send this response message are compared, look into and see if there is network interface card and this IPC at the same network segment, if only have the IP address of the IP address of a network interface card and this IPC at the same network segment, then bind this IPC and this network interface card; If have the IP address of the IP address of multiple network interface card and this IPC at the same network segment, then how many according to the IPC of the binding on every block network interface card, carry out load balancing, select the minimum network interface card of binding IP C to bind this IPC; If neither one network interface card and this IPC are at the same network segment, then select the network interface card that binding IP C is minimum, this network interface card adds one with the virtual ip address of the same network segment in IP address of IPC sending this response message, and this IPC and the virtual ip address that adds are tied to this network interface card.
By above-mentioned steps, when network interface card does not have configuration of IP address, add IP address, and when network interface card has been configured with IP address, add virtual ip address.
Further, described interpolation one and the IP address of the same network segment in IP address of IPC or the virtual ip address that send this response message, comprise step:
From the network address of the same network segment in IP address of the IPC of this response message of transmission, choose arbitrarily an IP address, connect this IP address by ping order, if ping is obstructed, then this IP address is added on corresponding network interface card;
Otherwise return previous step and again choose another IP address, add on corresponding network interface card until choose an IP address.
By above-mentioned steps, ensure not conflict in the IP address of adding.
The invention allows for a kind of network video recorder, for automatically accessing IPC in video monitoring system, this network video recorder comprises device discovery module, Network conf iotag. module and Configuration Manager, wherein:
Described device discovery module, for sending ARP broadcast, and receives the response message of each IPC feedback, the IP address of the IPC comprised in response message, subnet mask and port numbers is informed to described Network conf iotag. module and Configuration Manager;
Described Network conf iotag. module, for judge the IPC sending this response message IP address whether with the IP address of self network interface card at the same network segment, if it is no longer configuration of IP address; Otherwise add on self network interface card one with the virtual ip address of the same network segment in IP address of IPC sending this response message, and this IPC and the virtual ip address that increases are tied to the network interface card of self;
Described Configuration Manager, for adding corresponding IPC with mode of unicast.
Wherein, described Configuration Manager is adding corresponding IPC, also for performing following operation with mode of unicast:
Transmitting apparatus authentication information gives the IPC sending this response message, carries out authentication, if do not receive authentication OK response or respond unsuccessfully, then for the network interface card having bound this IPC and virtual IP address, deletes the binding relationship of this IPC and virtual IP address;
After authentication is passed through, to this IPC transmitting apparatus configuration obtaining information, and according to the response of this IPC, it is configured, or directly it is configured according to the configuration preset.
When described network video recorder has at least two network interface cards, described Network conf iotag. module also for:
To the IP address of IPC of this response message be sent and the IP address of each network interface card compares, look into and see if there is network interface card and this IPC at the same network segment, if only have the IP address of the IP address of a network interface card and this IPC at the same network segment, then bind this IPC and this network interface card; If have the IP address of the IP address of multiple network interface card and this IPC at the same network segment, then how many according to the IPC of the binding on every block network interface card, carry out load balancing, select the minimum network interface card of binding IP C to bind this IPC; If neither one network interface card and this IPC are at the same network segment, then select the network interface card that binding IP C is minimum, this network interface card adds one with the IP address of the same network segment in IP address of IPC sending this response message, and by this IPC and the IP address binding that adds to this network interface card.
Or, the IP address of IPC and the IP address of each network interface card that send this response message are compared, look into and see if there is network interface card and this IPC at the same network segment, if only have the IP address of the IP address of a network interface card and this IPC at the same network segment, then bind this IPC and this network interface card; If have the IP address of the IP address of multiple network interface card and this IPC at the same network segment, then how many according to the IPC of the binding on every block network interface card, carry out load balancing, select the minimum network interface card of binding IP C to bind this IPC; If neither one network interface card and this IPC are at the same network segment, then select the network interface card that binding IP C is minimum, this network interface card adds one with the virtual ip address of the same network segment in IP address of IPC sending this response message, and this IPC and the virtual ip address that adds are tied to this network interface card.
Further, described Network conf iotag. module with when sending the IP address of the same network segment in IP address of IPC or the virtual ip address of this response message interpolation one, performs and operates as follows:
From the network address of the same network segment in IP address of the IPC of this response message of transmission, choose arbitrarily an IP address, connect this IP address by ping order, if ping is obstructed, then this IP address is added on corresponding network interface card;
Otherwise return previous step and again choose another IP address, add on corresponding network interface card until choose an IP address.
The present invention proposes a kind of method of network video recorder and automatic access IPC thereof, for the access not supporting the headend equipment revising IP, go IPization, realize zero configuration between IPC equipment and NVR equipment and get final product interconnected use, increase NVR virtual IP address to realize carrying out network service between IPC equipment and NVR equipment, thus realize zero configuration can interconnected use.
Accompanying drawing explanation
Fig. 1 is the present invention is embodiment video monitoring system structural representation;
Fig. 2 is the method flow diagram that network video recorder of the present invention accesses IPC automatically;
Fig. 3 is the structural representation of network video recorder of the present invention.
Embodiment
Be described in further details technical solution of the present invention below in conjunction with drawings and Examples, following examples do not form limitation of the invention.
A kind of network video recorder of the present embodiment accesses the method for IPC automatically, be applied to the NVR in video monitoring system, the video monitoring system of the present embodiment comprises NVR and IPC being simultaneously linked into an egress router, IPC can receive the broadcast of NVR, in addition video monitoring system also comprises video monitoring server, egress router is connected with wide area network with video monitoring server, and client accesses NVR by mobile client.IPC equipment due to some third party manufacturer is provided with static IP address, if the static ip address arranged and NVR be not in the same network segment, then NVR cannot communicate with this IPC, need to its IP address modify into NVR at the same network segment, but the IPC of some producer may not support to carry out the amendment of IP address to it, or need to restart after revising its IP address, operation more complicated, therefore the method that the present embodiment proposes can not need to carry out the amendment of IP address to it, just can access these IPC and normal use.
A kind of network video recorder of the present embodiment accesses the method flow of IPC as shown in Figure 2 automatically, comprises step:
Step S1, NVR send ARP broadcast, and receive the response message that each IPC feeds back, and this response message carries the IP address of IPC oneself, subnet mask and port numbers.
Address resolution protocol, i.e. ARP (Address Resolution Protocol) are ICP/IP protocol according to IP address acquisition physical address.When main frame sends information, the ARP comprising target ip address is asked the All hosts be broadcast on network, and receive return messages, determine the physical address of target with this; After receiving return messages by this IP address and physical address stored in retaining certain hour in the machine arp cache, directly inquire about arp cache to economize on resources during request next time.In the present embodiment, NVR is by sending ARP broadcast, and inquiry is connected to all IPC under same router.As shown in Figure 1, IPC1, IPC2, IPC3 of being linked into egress router same with NVR can both receive this ARP broadcast, and responds, and returns response message.In the response message, carry the IP address of IPC oneself, subnet mask and port numbers, port numbers comprises the port numbers that signalling communication adopts here, also can comprise Media Stream port numbers.So that in subsequent step, NVR carries out signalling communication by these port numbers and IPC, if include Media Stream port numbers in the lump in the response message, then also directly can carry out the request of Media Stream.
Step S2, according to the IPC response message received, the IP address judging the IPC of this response message of transmission whether with the IP address of self network interface card at the same network segment, if yes then enter next step; Otherwise add on self network interface card one with the virtual ip address of the same network segment in IP address of IPC sending this response message, and by the network interface card that this IPC and the virtual ip address that increases are tied to self, enter next step.
After receiving the response message of IPC, NVR gets IP address and the subnet mask of each IPC, can judge accordingly its IP address whether with the IP address of self network interface card whether at the same network segment, if at the same network segment, then representing can intercommunication with this IPC, directly carries out next step operation.Suppose that the IP address of IPC1 and IPC2 in Fig. 1 is respectively 192.168.1.8 and 192.168.1.9, with the IP address (192.168.1.10) of NVR all at the same network segment, and the IP address of IPC3 (172.168.1.8) and NVR is not at the same network segment.Then for IPC1 and IPC2, do not need to operate after judgement, directly enter next step.And for IPC3, because its IP address and NVR be not at the same network segment, then need to add on the network interface card of NVR one with the virtual ip address of the same network segment in IP address of IPC3, and preserve, also can not lose after device powers down after the IP address of IPC3 and the virtual ip address added are tied to the network interface card of self.
Particularly, according to the network interface card quantity of NVR, there are following two embodiments:
Embodiment one, Single NIC situation, namely NVR only has a network interface card.NVR is after receiving the response message of IPC3, by judging to learn that the IP address of IPC3 and the IP address of self be not at the same network segment, then in the network segment that IPC3 is identical, (172.168.1.2 ~ 171.168.1.254) chooses an IP address, such as 172.168.1.30, NVR carries out continuous print ping to this IP address, if ping difference (reaching default number of times without response), then think that this IP address can be used, this IP address is added to the network interface card of NVR as virtual IP address, the follow-up communication with IPC3, is all undertaken by this virtual ip address.If ping leads to, then change IP and continue ping, until find a suitable virtual IP address, or set up distributing IP management information table, carry out idle IP inquiry, search one not by the IP address that uses as virtual IP address, repeat no more here.
Embodiment two, many network interface cards situation, namely NVR has multiple network interface card.With embodiment one unlike, for the situation of multiple network interface card, because NVR exists multiple network interface card such as network interface card 1, network interface card 2, the IP address of network interface card 1 is 192.168.1.10, but the IP address of network interface card 2 is 172.168.1.10.In this case, to the response message received, first the IP address of IPC and the IP address of each network interface card that send this response message to be compared, look into and see if there is network interface card and this IPC at the same network segment, if only have the IP address of the IP address of a network interface card and this IPC at the same network segment, then bind this IPC and this network interface card; If have the IP address of the IP address of multiple network interface card and this IPC at the same network segment, then how many according to the IPC of the binding on every block network interface card, carry out load balancing, select the minimum network interface card of binding IP C to bind this IPC.If neither one network interface card and this IPC are at the same network segment, then select the minimum network interface card of binding IP C, this network interface card adds IP address or virtual IP address to bind this IPC.
Such as: for IPC1 and IPC2, its IP address and network interface card 1 at the same network segment, IPC1 and IPC2 and NVR can carry out proper communication by network interface card 1, IPC1 with IPC2 is tied to network interface card 1 and carries out communicating; The IP address of IPC3 and the IP address of network interface card 2 are at the same network segment, then IPC3 and NVR can carry out proper communication by network interface card 2, IPC3 are tied to network interface card 2 and carry out communicating.
But when network interface card 2 does not arrange IP address, or its IP address arranged is when being also the 192.168.1.* network segment, in like manner IPC1 and IPC2 and NVR can carry out proper communication by network interface card 1, but the IP address of IPC3 and network interface card 1 is not at the same network segment, at this time need the IPC checking that network interface card 1 and network interface card 2 are bound, select the network interface card that binding relationship is few, such as network interface card 2 adds IP address or virtual ip address, IPC3, network interface card 2, the IP address of adding or virtual ip address binding is communicated.
It should be noted that, if network interface card does not arrange IP address, then can configure the same network segment in IP address of its IP address and IPC3, and do not need to add virtual ip address.
Step S3, add corresponding IPC with mode of unicast.
Establish the intercommunication between IPC and NVR by step S2, then can send by mode of unicast the process set up Media Stream and connect to IPC, generally include following process:
Send pre-configured device authentication information with mode of unicast to IPC, carry out authentication.The device authentication message that NVR sends can adopt the standard agreements such as ONVIF or PISA, also can adopt proprietary protocol, and IP address and the port numbers of the IPC adopting step S1 to obtain send.If do not receive authentication OK response or respond unsuccessfully, then think that corresponding equipment is not IPC, may be PC office computer or other equipment, or there is no the operating right of this IPC, for the network interface card having bound this corresponding device and virtual IP address, delete the binding relationship of this corresponding device and virtual IP address, directly terminate; If have received authentication OK response, then represent that corresponding equipment is IPC.
To IPC transmitting apparatus configuration obtaining information after receiving the response that authentication passes through, IPC responds it, thus the information such as the equipment time of acquisition IPC and video configuration thereof, and adaptive configuration is carried out to it, or directly it is configured according to the configuration preset, such as configure its equipment time synchronous with NVR, configure the information such as its resolution, code stream type, frame per second, frame period, or the configuration of IPC own satisfies the demands, then can be configured.
It should be noted that, adding with mode of unicast in the process of corresponding IPC, for needing the IPC carrying out authentication just to send pre-configured device authentication information, carrying out authentication; Then directly add for not needing the IPC carrying out authentication.And if the configuration information of known IPC, then can by preset configuration directly it be configured and add, do not need transmitting apparatus configure obtaining information.
By said process, NVR successfully with the addition of IPC, and following NVR just can ask the various Media Streams of IPC and receive, to carry out follow-up Media Stream analysis or storage etc.
Fig. 3 shows the structural representation of the present embodiment network video recorder, comprises device discovery module, Network conf iotag. module, Configuration Manager.Wherein:
Device discovery module for sending ARP broadcast, and receives the response message of each IPC feedback, and the IP address of the IPC comprised in response message, subnet mask and port numbers are informed to Network conf iotag. module and Configuration Manager;
Network conf iotag. module for judge the IPC sending this response message IP address whether with the IP address of self network interface card in the same network segment, if it is inoperation; Otherwise add on self network interface card one with the virtual ip address of the same network segment in IP address of IPC sending this response message, and this IPC and the virtual ip address that increases are tied to the network interface card of self;
The IPC that Configuration Manager is used for finding to device discovery module adds corresponding IPC with mode of unicast.
Further, if network video recorder has at least two network interface cards, then Network conf iotag. module also for:
To the IP address of IPC of this response message be sent and the IP address of each network interface card compares, look into and see if there is network interface card and this IPC at the same network segment, if only have the IP address of the IP address of a network interface card and this IPC at the same network segment, then bind this IPC and this network interface card; If have the IP address of the IP address of multiple network interface card and this IPC at the same network segment, then how many according to the IPC of the binding on every block network interface card, carry out load balancing, select the minimum network interface card of binding IP C to bind this IPC; If neither one network interface card and this IPC are at the same network segment, then select the network interface card that binding IP C is minimum, this network interface card adds one with the IP address of the same network segment in IP address of IPC sending this response message, and by this IPC and the IP address binding that adds to this network interface card.
Or: the IP address of IPC and the IP address of each network interface card that send this response message are compared, look into and see if there is network interface card and this IPC at the same network segment, if only have the IP address of the IP address of a network interface card and this IPC at the same network segment, then bind this IPC and this network interface card; If have the IP address of the IP address of multiple network interface card and this IPC at the same network segment, then how many according to the IPC of the binding on every block network interface card, carry out load balancing, select the minimum network interface card of binding IP C to bind this IPC; If neither one network interface card and this IPC are at the same network segment, then select the network interface card that binding IP C is minimum, this network interface card adds one with the virtual ip address of the same network segment in IP address of IPC sending this response message, and this IPC and the virtual ip address that adds are tied to this network interface card.
After completing network configuration, Configuration Manager, according to the configuration of Network conf iotag. module, is able to clean culture and communicates with IPC, when adding corresponding IPC with mode of unicast, performing and operating as follows:
Transmitting apparatus authentication information is given and is sent the IPC of this response message, carries out authentication, if do not receive authentication OK response or respond unsuccessfully, then for having bound virtual IP address, the binding relationship of deletion and virtual IP address;
After authentication is passed through, to this IPC transmitting apparatus configuration obtaining information, and according to the response of this IPC, it is configured, or directly it is configured according to the configuration preset.
Thus NVR is after successfully adding IPC, medium stream request and reception are carried out to IPC, and the Media Stream receiving IPC transmission carries out analyzing or storing.
Above embodiment is only in order to illustrate technical scheme of the present invention but not to be limited; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection range that all should belong to the claim appended by the present invention.

Claims (10)

1. network video recorder accesses a method of IPC automatically, is applied to the network video recorder NVR in video monitoring system, it is characterized in that, comprise step:
Step 1, send ARP broadcast, and receive the response message that each IPC feeds back, this response message carries the IP address of IPC oneself, subnet mask and port numbers;
Step 2, according to the IPC response message received, the IP address judging the IPC of this response message of transmission whether with the IP address of self network interface card at the same network segment, if yes then enter next step; Otherwise add on self network interface card one with the virtual ip address of the same network segment in IP address of IPC sending this response message, and by the network interface card that this IPC and the virtual ip address that increases are tied to self, enter next step;
Step 3, add corresponding IPC with mode of unicast.
2. network video recorder according to claim 1 accesses the method for IPC automatically, it is characterized in that, the described IPC adding correspondence with mode of unicast, comprises step:
Transmitting apparatus authentication information gives the IPC sending this response message, carries out authentication, if do not receive authentication OK response or respond unsuccessfully, then for the network interface card having bound this IPC and virtual IP address, deletes the binding relationship of this IPC and virtual IP address;
After authentication is passed through, to this IPC transmitting apparatus configuration obtaining information, and according to the response of this IPC, it is configured, or directly it is configured according to the configuration preset.
3. network video recorder according to claim 1 accesses the method for IPC automatically, it is characterized in that, described network video recorder has at least two network interface cards, then described step 2 specifically also comprises step:
To the IP address of IPC of this response message be sent and the IP address of each network interface card compares, look into and see if there is network interface card and this IPC at the same network segment, if only have the IP address of the IP address of a network interface card and this IPC at the same network segment, then bind this IPC and this network interface card; If have the IP address of the IP address of multiple network interface card and this IPC at the same network segment, then how many according to the IPC of the binding on every block network interface card, carry out load balancing, select the minimum network interface card of binding IP C to bind this IPC; If neither one network interface card and this IPC are at the same network segment, then select the network interface card that binding IP C is minimum, this network interface card adds one with the IP address of the same network segment in IP address of IPC sending this response message, and by this IPC and the IP address binding that adds to this network interface card.
4. network video recorder according to claim 1 accesses the method for IPC automatically, it is characterized in that, described network video recorder has at least two network interface cards, then described step 2 specifically also comprises step:
To the IP address of IPC of this response message be sent and the IP address of each network interface card compares, look into and see if there is network interface card and this IPC at the same network segment, if only have the IP address of the IP address of a network interface card and this IPC at the same network segment, then bind this IPC and this network interface card; If have the IP address of the IP address of multiple network interface card and this IPC at the same network segment, then how many according to the IPC of the binding on every block network interface card, carry out load balancing, select the minimum network interface card of binding IP C to bind this IPC; If neither one network interface card and this IPC are at the same network segment, then select the network interface card that binding IP C is minimum, this network interface card adds one with the virtual ip address of the same network segment in IP address of IPC sending this response message, and this IPC and the virtual ip address that adds are tied to this network interface card.
5. the network video recorder according to the arbitrary claim of claim 1-4 accesses the method for IPC automatically, it is characterized in that, described interpolation one and the IP address of the same network segment in IP address of IPC or the virtual ip address that send this response message, comprise step:
From the network address of the same network segment in IP address of the IPC of this response message of transmission, choose arbitrarily an IP address, connect this IP address by ping order, if ping is obstructed, then this IP address is added on corresponding network interface card;
Otherwise return previous step and again choose another IP address, add on corresponding network interface card until choose an IP address.
6. a network video recorder, for automatically accessing IPC in video monitoring system, is characterized in that, this network video recorder comprises device discovery module, Network conf iotag. module and Configuration Manager, wherein:
Described device discovery module, for sending ARP broadcast, and receives the response message of each IPC feedback, the IP address of the IPC comprised in response message, subnet mask and port numbers is informed to described Network conf iotag. module and Configuration Manager;
Described Network conf iotag. module, for judge the IPC sending this response message IP address whether with the IP address of self network interface card at the same network segment, if it is no longer configuration of IP address; Otherwise add on self network interface card one with the virtual ip address of the same network segment in IP address of IPC sending this response message, and this IPC and the virtual ip address that increases are tied to the network interface card of self;
Described Configuration Manager, for adding corresponding IPC with mode of unicast.
7. network video recorder according to claim 6, is characterized in that, described Configuration Manager is adding corresponding IPC with mode of unicast, performs and operates as follows:
Transmitting apparatus authentication information gives the IPC sending this response message, carries out authentication, if do not receive authentication OK response or respond unsuccessfully, then for the network interface card having bound this IPC and virtual IP address, deletes the binding relationship of this IPC and virtual IP address;
After authentication is passed through, to this IPC transmitting apparatus configuration obtaining information, and according to the response of this IPC, it is configured, or directly it is configured according to the configuration preset.
8. network video recorder according to claim 6, is characterized in that, described network video recorder has at least two network interface cards, described Network conf iotag. module also for:
To the IP address of IPC of this response message be sent and the IP address of each network interface card compares, look into and see if there is network interface card and this IPC at the same network segment, if only have the IP address of the IP address of a network interface card and this IPC at the same network segment, then bind this IPC and this network interface card; If have the IP address of the IP address of multiple network interface card and this IPC at the same network segment, then how many according to the IPC of the binding on every block network interface card, carry out load balancing, select the minimum network interface card of binding IP C to bind this IPC; If neither one network interface card and this IPC are at the same network segment, then select the network interface card that binding IP C is minimum, this network interface card adds one with the IP address of the same network segment in IP address of IPC sending this response message, and by this IPC and the IP address binding that adds to this network interface card.
9. network video recorder according to claim 6, is characterized in that, described network video recorder has at least two network interface cards, described Network conf iotag. module also for:
To the IP address of IPC of this response message be sent and the IP address of each network interface card compares, look into and see if there is network interface card and this IPC at the same network segment, if only have the IP address of the IP address of a network interface card and this IPC at the same network segment, then bind this IPC and this network interface card; If have the IP address of the IP address of multiple network interface card and this IPC at the same network segment, then how many according to the IPC of the binding on every block network interface card, carry out load balancing, select the minimum network interface card of binding IP C to bind this IPC; If neither one network interface card and this IPC are at the same network segment, then select the network interface card that binding IP C is minimum, this network interface card adds one with the virtual ip address of the same network segment in IP address of IPC sending this response message, and this IPC and the virtual ip address that adds are tied to this network interface card.
10. the network video recorder according to the arbitrary claim of claim 6-9, it is characterized in that, described Network conf iotag. module with when sending the IP address of the same network segment in IP address of IPC or the virtual ip address of this response message interpolation one, performs and operates as follows:
From the network address of the same network segment in IP address of the IPC of this response message of transmission, choose arbitrarily an IP address, connect this IP address by ping order, if ping is obstructed, then this IP address is added on corresponding network interface card;
Otherwise return previous step and again choose another IP address, add on corresponding network interface card until choose an IP address.
CN201510075933.1A 2015-02-12 2015-02-12 A kind of network video recorder and its method for automatically accessing IPC Active CN104639913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510075933.1A CN104639913B (en) 2015-02-12 2015-02-12 A kind of network video recorder and its method for automatically accessing IPC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510075933.1A CN104639913B (en) 2015-02-12 2015-02-12 A kind of network video recorder and its method for automatically accessing IPC

Publications (2)

Publication Number Publication Date
CN104639913A true CN104639913A (en) 2015-05-20
CN104639913B CN104639913B (en) 2018-05-01

Family

ID=53218160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510075933.1A Active CN104639913B (en) 2015-02-12 2015-02-12 A kind of network video recorder and its method for automatically accessing IPC

Country Status (1)

Country Link
CN (1) CN104639913B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681484A (en) * 2015-12-31 2016-06-15 深圳市磊科实业有限公司 IPC automatic detection and connection method based on ARP protocol and ONVIF standard
CN106470234A (en) * 2015-08-20 2017-03-01 腾讯科技(北京)有限公司 The method and device that a kind of equipment finds
CN106656659A (en) * 2016-11-30 2017-05-10 浙江宇视科技有限公司 Network path selection method and network video recorder (NVR)
CN106790733A (en) * 2015-11-25 2017-05-31 上海奕瑞光电子科技有限公司 The quick pairing of a kind of detector and X-ray shooting system and recover method
CN107919999A (en) * 2017-11-21 2018-04-17 天津英田视讯科技有限公司 The discovery of different segment digital camera and connection method in a kind of LAN
CN108184091A (en) * 2017-12-28 2018-06-19 浙江宇视科技有限公司 A kind of video monitoring equipment dispositions method and device
CN108600675A (en) * 2018-05-24 2018-09-28 普联技术有限公司 Channel way extended method, equipment, Network Personal Video Recorder and storage medium
CN109391704A (en) * 2017-08-11 2019-02-26 浙江宇视科技有限公司 A kind of across the private network access method of video monitoring equipment and device
CN110381178A (en) * 2019-08-02 2019-10-25 杭州巨峰科技有限公司 NVR module and its out drawing method and POE-NVR mould group
CN110493337A (en) * 2019-08-16 2019-11-22 武汉麦品科技有限公司 Data access method, gateway, system, storage medium and device
CN111163245A (en) * 2018-11-08 2020-05-15 杭州海康威视数字技术股份有限公司 Method and device for adding network camera in network hard disk video recorder
CN112689025A (en) * 2020-12-04 2021-04-20 深圳市信义科技有限公司 Network terminal equipment IP self-adaption method, device, equipment and medium
CN114584534A (en) * 2022-03-17 2022-06-03 国家电网有限公司 Method for automatically configuring network for intelligent constant value check instrument of relay protection device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417973A (en) * 2002-11-01 2003-05-14 北京佳讯飞鸿电气有限责任公司 Method of altering network equipment IP address via network managing equipment
CN102333132A (en) * 2011-09-13 2012-01-25 成都华迈通信技术有限公司 Method for automatically searching cameras and solving IP conflicts
CN102348107A (en) * 2011-10-27 2012-02-08 北京汉邦高科数字技术股份有限公司 Method for realizing plug and play of network monitoring video
CN103873301A (en) * 2014-03-20 2014-06-18 浙江宇视科技有限公司 System and method for automatically finding and adding devices
EP2819407A1 (en) * 2013-06-27 2014-12-31 Idis Co., Ltd. System for automatic connection between NVR and IP camera
CN104348787A (en) * 2013-07-29 2015-02-11 杭州海康威视数字技术股份有限公司 Method for performing network video recorder channel connection and network video recorder

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417973A (en) * 2002-11-01 2003-05-14 北京佳讯飞鸿电气有限责任公司 Method of altering network equipment IP address via network managing equipment
CN102333132A (en) * 2011-09-13 2012-01-25 成都华迈通信技术有限公司 Method for automatically searching cameras and solving IP conflicts
CN102348107A (en) * 2011-10-27 2012-02-08 北京汉邦高科数字技术股份有限公司 Method for realizing plug and play of network monitoring video
EP2819407A1 (en) * 2013-06-27 2014-12-31 Idis Co., Ltd. System for automatic connection between NVR and IP camera
CN104348787A (en) * 2013-07-29 2015-02-11 杭州海康威视数字技术股份有限公司 Method for performing network video recorder channel connection and network video recorder
CN103873301A (en) * 2014-03-20 2014-06-18 浙江宇视科技有限公司 System and method for automatically finding and adding devices

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106470234A (en) * 2015-08-20 2017-03-01 腾讯科技(北京)有限公司 The method and device that a kind of equipment finds
CN106470234B (en) * 2015-08-20 2021-03-26 腾讯科技(北京)有限公司 Equipment discovery method and device
CN106790733A (en) * 2015-11-25 2017-05-31 上海奕瑞光电子科技有限公司 The quick pairing of a kind of detector and X-ray shooting system and recover method
CN105681484B (en) * 2015-12-31 2019-03-08 深圳市磊科实业有限公司 A kind of IPC Auto-Sensing connection method based on ARP protocol and ONVIF standard
CN105681484A (en) * 2015-12-31 2016-06-15 深圳市磊科实业有限公司 IPC automatic detection and connection method based on ARP protocol and ONVIF standard
CN106656659A (en) * 2016-11-30 2017-05-10 浙江宇视科技有限公司 Network path selection method and network video recorder (NVR)
CN109391704B (en) * 2017-08-11 2022-06-14 浙江宇视科技有限公司 Cross-private-network access method and device for video monitoring equipment
CN109391704A (en) * 2017-08-11 2019-02-26 浙江宇视科技有限公司 A kind of across the private network access method of video monitoring equipment and device
CN107919999A (en) * 2017-11-21 2018-04-17 天津英田视讯科技有限公司 The discovery of different segment digital camera and connection method in a kind of LAN
CN108184091B (en) * 2017-12-28 2020-10-20 浙江宇视科技有限公司 Video monitoring equipment deployment method and device
CN108184091A (en) * 2017-12-28 2018-06-19 浙江宇视科技有限公司 A kind of video monitoring equipment dispositions method and device
CN108600675A (en) * 2018-05-24 2018-09-28 普联技术有限公司 Channel way extended method, equipment, Network Personal Video Recorder and storage medium
CN108600675B (en) * 2018-05-24 2020-07-31 普联技术有限公司 Channel path number expansion method, device, network video recorder and storage medium
CN111163245A (en) * 2018-11-08 2020-05-15 杭州海康威视数字技术股份有限公司 Method and device for adding network camera in network hard disk video recorder
CN111163245B (en) * 2018-11-08 2021-11-23 杭州海康威视数字技术股份有限公司 Method and device for adding network camera in network hard disk video recorder
CN110381178A (en) * 2019-08-02 2019-10-25 杭州巨峰科技有限公司 NVR module and its out drawing method and POE-NVR mould group
CN110493337A (en) * 2019-08-16 2019-11-22 武汉麦品科技有限公司 Data access method, gateway, system, storage medium and device
CN112689025A (en) * 2020-12-04 2021-04-20 深圳市信义科技有限公司 Network terminal equipment IP self-adaption method, device, equipment and medium
CN112689025B (en) * 2020-12-04 2023-04-18 深圳市广电信义科技有限公司 Network terminal equipment IP self-adaption method, device, equipment and medium
CN114584534A (en) * 2022-03-17 2022-06-03 国家电网有限公司 Method for automatically configuring network for intelligent constant value check instrument of relay protection device
CN114584534B (en) * 2022-03-17 2023-12-05 国家电网有限公司 Method for automatically configuring network of intelligent fixed value check instrument of relay protection device

Also Published As

Publication number Publication date
CN104639913B (en) 2018-05-01

Similar Documents

Publication Publication Date Title
CN104639913A (en) Network video recorder (NVR) and automatic IPC (Internet Protocol Camera) access method thereof
US11528226B2 (en) Network validation with dynamic tunneling
CN101146047B (en) A method, system and gateway for controlling quantity of network access terminal under routing mode
JP5093598B2 (en) Control relay program, control relay device, and control relay method
US10887160B2 (en) Management method for home network device and network management system
CN103763121A (en) Method and device for quickly issuing network configuration information
WO2017020790A1 (en) Multi-screen control method and device
EP2218214B1 (en) Network location service
KR20110008311A (en) Methods and devices for managing a network
EP3503484B1 (en) Message transmission methods and devices
CN103797751A (en) Method and device for querying for user online state
US20160241427A1 (en) Service Sending, Receiving Methods and Devices
CN106169982B (en) Method, device and system for processing expansion port
US8305920B2 (en) Method, system and terminal for determining QoS level
CN106375979A (en) Method for finding states of intelligent devices in LAN rapidly
US20190036793A1 (en) Network service implementation method, service controller, and communications system
CN115174528A (en) Equipment address control method, device and system
CN103441876B (en) A kind of based on DHCP protocol and the network device management method of snmp protocol and system
CN110351146A (en) A kind of server-side example determines method, system, client and storage medium
CN104144230A (en) Simple method and device for binding monitoring terminals
CN107835188A (en) A kind of equipment safety cut-in method and system based on SDN
CN104426792A (en) Scheduler support ability query method, scheduler support ability notification method and scheduler support ability query device
CN111385371B (en) MAC address acquisition method, device and equipment
CN104052717A (en) Message sending method and apparatus
CN1332539C (en) Method for implementing automatic establishment of VPN address pool

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