CN108683701A - A kind of connection method and rear end equipment, IPC - Google Patents

A kind of connection method and rear end equipment, IPC Download PDF

Info

Publication number
CN108683701A
CN108683701A CN201810290750.5A CN201810290750A CN108683701A CN 108683701 A CN108683701 A CN 108683701A CN 201810290750 A CN201810290750 A CN 201810290750A CN 108683701 A CN108683701 A CN 108683701A
Authority
CN
China
Prior art keywords
ipc
rear end
end equipment
mac address
request message
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.)
Pending
Application number
CN201810290750.5A
Other languages
Chinese (zh)
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 Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology 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 Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201810290750.5A priority Critical patent/CN108683701A/en
Publication of CN108683701A publication Critical patent/CN108683701A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

The invention discloses a kind of connection method and rear end equipment, IPC so that rear end equipment more quickly accesses IPC, improves access efficiency.The method of rear end equipment connection IPC therein includes that rear end equipment periodically sends the first request message, and the first request message is used to obtain the MAC Address of not connected IPC, wherein not connected IPC is located at same multicast network with rear end equipment;Rear end equipment receives the first response message that not connected IPC is fed back according to the first request message, and the first response message carries MAC Address;Rear end equipment judges whether MAC Address and the first MAC Address in default mapping relations are identical, wherein default mapping relations are used to indicate the correspondence of the data channel of rear end equipment and the MAC Address for each IPC to be accessed;If identical, rear end equipment is established with not connected IPC by digital channel corresponding with the first MAC Address and is connected.

Description

A kind of connection method and rear end equipment, IPC
Technical field
The present invention relates to technical field of video monitoring, more particularly to a kind of connection method and rear end equipment, IPC.
Background technology
With the development of technology, network video recorder ((Network Video Recorder, NVR), controller, friendship It changes planes or the appearance of the rear end equipments such as server with store function, changes the mode of conventional video camera shooting, video recording, make The direction of NVR towards networking is developed.By taking NVR as an example, the major function of NVR is by web camera (Internet Protocol Camera, IPC) transmission digital video code stream, and the management such as storage, preview and playback that video code flow is provided.It is logical Often, a monitoring node is formed by the IPC of NVR and its access, multiple monitoring nodes form distributed network, to realize distribution Formula multilayered structure network environment.
NVR accesses IPC can pass through the side of address Internet protocol (Internet Protocol, IP) of manual configuration IPC Formula is realized, but manual configuration IP address is cumbersome and relatively time-consuming.NVR accesses IPC and can also be sent to IPC by NVR Address resolution protocol (Address Resolution Protocol, ARP) broadcasts the message, to know the IP address of IPC, and The mode for renegotiating modification IP address is realized.If but there are more NVR, will appear more NVR and more IPC couples in broadcast It should be related to chaotic situation, the specified IPC of specified NVR accesses can not be carried out, with may still needing the IP of manual modification IPC Location.
It is cumbersome and compare as it can be seen that the IPC of rear end equipment access at present may need the IP address of manual modification IPC It is time-consuming.
Invention content
A kind of connection method of offer of the embodiment of the present invention and rear end equipment, IPC so that rear end equipment more quickly accesses IPC improves access efficiency.
In a first aspect, a kind of connection method is provided, for connecting rear end equipment and web camera IPC, this method packet It includes:
Rear end equipment periodically sends the first request message, and first request message is for obtaining not connected IPC MAC address, wherein the not connected IPC and the rear end equipment are located at same multicast network;
The rear end equipment receives the not connected IPC and is disappeared according to the first response that first request message is fed back Breath, first response message carry MAC Address;
The rear end equipment judges whether the MAC Address and the first MAC Address in default mapping relations are identical, In, the data channel that the default mapping relations are used to indicate rear end equipment is corresponding with the MAC Address for each IPC to be accessed Relationship;
If identical, the rear end equipment by digital channel corresponding with first MAC Address with it is described not connected IPC establishes connection.
The method for connecting IPC using rear end equipment provided in an embodiment of the present invention, rear end equipment can be by by IPC's MAC Address determines whether there is also the IPC not connect with rear end equipment in same multicast network, if it is present, rear end is set Standby can be established with not connected IPC by digital channel corresponding with the MAC Address of IPC connects.Without to IPC into Row configuration, does not need the IP address of manual modification IPC, the used time is less, rear end equipment can be made to access IPC quickly yet.
Optionally, if it is identical, the rear end equipment by digital channel corresponding with first MAC Address with it is described not The IPC of connection establishes connection, including:
The rear end equipment determines the item types that the rear end equipment uses, the item types include public security security protection and Enterprise's security protection;
The rear end equipment is according to determining item types, the determining access to be used between the not connected IPC Agreement;Wherein, the rear end equipment supports a variety of access protocols, different item types to correspond to identical or different access association View;
The rear end equipment is according to the IPC not accessed described in determining access protocol request access.
Optionally, the rear end equipment is determining to be used between the not connected IPC according to determining item types Access protocol, including:
The rear end equipment selects corresponding with the item types first to connect from least one access protocol of storage Enter agreement;
The rear end equipment sends the second request message to the not connected IPC, and second request message carries institute The mark for stating the first access protocol, for informing that the not connected IPC is connected using first access protocol;
If the rear end equipment receives agreement the disappearing using first access protocol of the not connected IPC feedbacks It ceases, then first access protocol is determined as the access association to be used between the not connected IPC by the rear end equipment View.
The optional scheme of above two, which describes the rear end equipment in the embodiment of the present invention, can support a variety of access protocols, Different item types correspond to identical or different access protocol, and rear end equipment can be negotiated to use before connecting IPC with IPC Which kind of access protocol, access way are more flexible.
Optionally, rear end equipment periodically sends the first request message, including:
Detect in the digital channel of rear end equipment whether there is also idle digital channels;
If in the presence of the rear end equipment periodically sends first request message;
Otherwise, the rear end equipment stops sending first request message.
This optional scheme describes rear end equipment and may determine whether there is also not connected IPC, due to not connected IPC may more than one, so rear end equipment can periodically send the first request message at this time, with to not connected The MAC Address of the not connected IPC of IPC acquisition requests can also obtain all not connected even if not connected IPC more than one IPC MAC Address, determine that all data channel of rear end equipment all connects as possible and gone up IPC.
Second aspect provides a kind of connection method, for connecting rear end equipment and web camera IPC, this method packet It includes:
IPC receives the first request message that rear end equipment is sent, wherein first request message is described for obtaining The MAC Address of IPC, the IPC and the rear end equipment are located at same multicast network;
The IPC feeds back the first response message, first sound according to first request message to the rear end equipment Message is answered to carry the MAC Address of the IPC, wherein the data channel of the rear end equipment is with each IPC's to be accessed MAC Address corresponds to, and the MAC Address is corresponding with first digital channel, and the IPC passes through first digital channel and institute State rear end equipment connection.
This optional mode, which describes IPC in the embodiment of the present invention, to send MAC Address by end equipment backward, from And inform whether the rear end equipment IPC can access rear end equipment, and the IP address of different manual modification IPC, it is more convenient.
Optionally, after the first request message that IPC receives that rear end equipment is sent, further include:
The IPC receives the second request message that the rear end equipment is sent;Wherein, the IPC is located at rear end equipment Same multicast network, second request message, which is used to indicate the rear end equipment, will use the first access protocol, for informing The IPC is connected using first access protocol;
The IPC sends the second response message to the rear end equipment, wherein second response message is used to indicate institute State whether IPC agrees to use first access protocol;
If the second response message instruction agrees to that first access protocol, the IPC is used to receive the rear end The message of connection is established in the request that equipment is sent, and the request establishes the message of connection for asking through first access association The first data channel in view and the rear end equipment is established with the IPC to be connected.
This optional mode describe the IPC in the embodiment of the present invention can determine connect with rear end equipment it is to be used Access protocol, rear end equipment can support a variety of access protocols, different item types to correspond to identical or different access protocol, Access way is more flexible.
The third aspect provides a kind of rear end equipment, which includes:
Transmission unit, for periodically sending the first request message, first request message is not connected for obtaining IPC MAC address, wherein the not connected IPC and the rear end equipment are located at same multicast network Network;
Receiving unit, the first response fed back according to first request message for receiving the not connected IPC Message, first response message carry MAC Address;
Judging unit, for judging whether the MAC Address and the first MAC Address in default mapping relations are identical, In, the data channel that the default mapping relations are used to indicate rear end equipment is corresponding with the MAC Address for each IPC to be accessed Relationship;
Connection unit, if for identical, by digital channel corresponding with first MAC Address with it is described not connected IPC establishes connection.
The technique effect of rear end equipment provided in an embodiment of the present invention may refer to each realization side of above-mentioned first aspect The technique effect of formula, details are not described herein again.
Fourth aspect provides a kind of rear end equipment, which includes:
At least one processor, and
The memory being connect at least one processor;
Wherein, the memory is stored with the instruction that can be executed by least one processor, at least one place It manages device and realizes such as first aspect any one of them method by executing the instruction of the memory storage.
5th aspect, provides a kind of web camera IPC, which includes:
Receiving unit, the first request message for receiving rear end equipment transmission, wherein first request message is used for The MAC Address of the IPC is obtained, the IPC and the rear end equipment are located at same multicast network;
Transmission unit, it is described for feeding back the first response message to the rear end equipment according to first request message First response message carries the MAC Address of the IPC, wherein the data channel of the rear end equipment with to be accessed it is each The MAC Address of IPC corresponds to, and the MAC Address is corresponding with first digital channel, and the IPC is logical by first number Road is connect with the rear end equipment.
The technique effect of IPC provided in an embodiment of the present invention may refer to the skill of each realization method of above-mentioned second aspect Art effect, details are not described herein again.
6th aspect, provides a kind of web camera IPC, which includes:
At least one processor, and
The memory being connect at least one processor;
Wherein, the memory is stored with the instruction that can be executed by least one processor, at least one place It manages device and realizes such as second aspect any one of them method by executing the instruction of the memory storage.
7th aspect, provides a kind of computer storage media, is stored thereon with computer program, the computer program quilt Such as first aspect or second aspect any one of them method are realized when processor executes.
Rear end equipment in the embodiment of the present invention periodically sends the first request message and is located at rear end equipment with obtaining Address media access control (Media Access Control, MAC) of the not connected IPC of same multicast network.It will obtain again The MAC Address taken is compared with MAC Address in default mapping relations, if existing with the MAC of acquisition in default mapping relations Identical first MAC Address in location, then it represents that there is also the IPC not connect with rear end equipment.So rear end equipment can pass through Digital channel corresponding with the first MAC Address is established with not connected IPC and is connected.Without being configured to IPC, also it is not required to The IP address of manual modification IPC is wanted, the used time is less, rear end equipment can be made to access IPC quickly.
Description of the drawings
Fig. 1 is a kind of flow diagram of the method for rear end equipment connection IPC provided in an embodiment of the present invention;
Fig. 2 is the flow diagram for the method that a kind of rear end equipment provided in an embodiment of the present invention connects IPC;
Fig. 3 is a kind of structural schematic diagram of rear end equipment provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of rear end equipment provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of IPC provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of IPC provided in an embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
Rear end equipment in the embodiment of the present invention may include controller, interchanger or the server with store function Deng.Below by taking rear end equipment is NVR as an example, the several ways of rear end equipment access IPC in the prior art are introduced:
First way:It is that NVR and IPC specifies IP address first, then on NVR by way of configuring, by IPC's The information such as IP address and the user name of login user, password are added in the digital channel configuration item of the NVR of correspondence mappings, NVR It based on the access protocol between IPC, is logged in by verification, realizes access IPC.
As it can be seen that first way is by specifying IP address, the mode being then reconfigured to realize that NVR accesses IPC.This side Formula needs user's manual configuration, user experience poor.Furthermore IPC in the market itself, can only substantially without user interface The IP address that IPC is known or changed by auxiliary tool, this requires users to have the knowledge background of this respect, i.e., to user It is more demanding, and manual configuration carry out operation be also more troublesome.
The second way:NVR sends ARP broadcast messages to one or more IPC, and the response for receiving each IPC feedbacks disappears Breath, the response message carry the IP address, subnet mask and port numbers of IPC itself.The sound that NVR is fed back according to the IPC of reception Message is answered, the negotiation that IP address is carried out to IPC is changed, and after determining IP address, corresponding IPC is accessed with mode of unicast.
The third mode:It is similar with the second way, it can only pass through dynamic host configuration protocol between NVR and IPC The mode of (Dynamic Host Configuration Protocol, DHCP) network negotiates the scheme of access, no longer superfluous here It states.
Above-mentioned existing second and third kind of mode:In small application scene, such as when only separate unit NVR, access is more manual Configuration is facilitated.But in relatively large application scenarios, for example there is when more NVR, and it is impracticable.This is because there are more When NVR, the situation of IPC and NVR correspondence confusions are will appear in broadcast negotiation, i.e. IPC does not know which corresponding NVR, and Which platform IPC that NVR does not know access yet is.It is even more that can not access for specified NVR and specified IPC, at this time also It is to need manual modification IP address, is more troublesome.Moreover, because PC and NVR correspondences are chaotic so that NVR can not know IPC Username and password correspondence, in order to enable NVR accesses IPC, IPC can use, it will usually be arranged to more IPC Unified default authentication user name password, to which there are security risks.
In consideration of it, an embodiment of the present invention provides a kind of methods of NVR connections IPC, wherein NVR can periodically be sent out The first request message is sent, to obtain the MAC Address for the not connected IPC for being located at same multicast network with NVR.Again by acquisition MAC Address is compared with MAC Address in default mapping relations, if there is the MAC Address phase with acquisition in default mapping relations The first same MAC Address, then it represents that there is also the IPC not connect with NVR.So NVR can by with the first MAC Address pair The digital channel answered is established with not connected IPC and is connected.Without being configured to IPC, do not need manual modification IPC's yet IP address, the used time is less, NVR can be made to access IPC quickly.
Technical solution provided in an embodiment of the present invention is introduced with reference to the accompanying drawings of the specification.
Fig. 1 is referred to, the embodiment of the present invention provides a kind of connection method, for connecting rear end equipment and web camera IPC, this method can be executed by rear end equipment, and the flow of this method is described as follows:
S101:Rear end equipment periodically sends the first request message, and the first request message is for obtaining not connected IPC MAC Address, wherein not connected IPC is located at same multicast network with rear end equipment;
S102:The first response message that the not connected IPC of rear end equipment reception is fed back according to the first request message, first Response message carries MAC Address;
S103:Rear end equipment judges whether MAC Address and the first MAC Address in default mapping relations are identical, wherein pre- If mapping relations are used to indicate the correspondence of the data channel of rear end equipment and the MAC Address for each IPC to be accessed;
S104:If identical, rear end equipment is established by digital channel corresponding with the first MAC Address and not connected IPC Connection.
One rear end equipment can access more IPC, accordingly, provide another rear end equipment connection IPC's again below Method, this method can be executed by IPC, and the flow of this method is described as follows:
S201:IPC receives the first request message that rear end equipment is sent, wherein the first request message is for obtaining IPC's MAC Address, IPC and rear end equipment are located at same multicast network;
S202:According to the first request message, end equipment feeds back the first response message to IPC backward, and the first response message carries The MAC Address of IPC, wherein the data channel of rear end equipment is corresponding with the MAC Address for each IPC to be accessed, MAC Address with First digital channel corresponds to, and IPC is connect by the first digital channel with rear end equipment.
By taking rear end equipment is NVR as an example, the major function of NVR is and to provide video by IPC transmission digital video code streams The management such as storage, preview and the playback of code stream.In general, forming a monitoring node, multiple monitoring by the IPC of NVR and its access Node forms distributed network, to realize Distributed Multi-tier Structure network environment.
One NVR may include multiple digital channels, and the digital channel of NVR can be connect by NVR with IPC, realize that NVR connects Enter IPC.One digital channel can connect an IPC.The video image of IPC acquisitions can be converted to compressed video bit stream transmission The video code flow of IPC transmission is received, storage, preview, playback and the forwarding of video code flow are provided to NVR, NVR.
In the prior art or by above-mentioned first way, or by the connection of second way realization NVR and IPC, but Be the IP address for being required for manual modification IPC, be more troublesome, in addition encounter can not manual modification IPC when, just do not realize NVR With the connection of IPC.
In consideration of it, the NVR in the embodiment of the present invention can will need the digital channel of the MAC Address and NVR that access IPC to build Vertical mapping relations, and preserve the verification information for logging in each IPC.Specified multicast network can be added in NVR, same each IPC The multicast network can also be added.Each IPC can access DHCP networks before the multicast network is added, automatic to obtain respectively IP address.If also having the IPC not connect with NVR, i.e. digital channel also available free NVR in the multicast network.Due to not The IPC of connection may more than one, so NVR can periodically send the first request message at this time, with to not connected IPC The MAC Address of the not connected IPC of acquisition request.Even if not connected IPC more than one, can also obtain all not connected The MAC Address of IPC.Sending the duration in the period of the first request message can preset, and can be 10 seconds, can also be 20 Second or other possible values, are not restricted here.
If there is no idle digital channels in the digital channel of NVR, that is, in the multicast network NVR with positioned at should Each IPC in multicast network has connected, at this point, NVR can stop sending the first request message.So far, NVR can also be true The corresponding MAC Address for being set to the digital channel configuration of NVR has all matched, at this point, NVR can exit multicast network.
Each not connected IPC can receive the first request message of NVR transmissions, if first in not connected IPC IPC receives the first request message of NVR transmissions, then can feed back the first response message according to the first request message, wherein the One response message carries the MAC Address of the first IPC.NVR receives the first response message of the first IPC feedbacks, can be from the The MAC Address of the first IPC of carrying is obtained in one response message.NVR may determine that the MAC Address of the first IPC and default mapping Whether the first MAC Address in relationship identical, wherein default mapping relations are used to indicate the data channel of NVR and to be accessed The correspondence of the MAC Address of each IPC, the data channel of NVR and the MAC Address for each IPC to be accessed can be one by one Corresponding, can also be a data channel of NVR can correspond to the MAC Address of multiple IPC.
When the MAC Address of the data channel of NVR and each IPC to be accessed can be corresponded, the first number of NVR Word channel is corresponding with the first MAC Address, can be with if NVR determines that the MAC Address of the first IPC is identical as the first MAC Address Think that the first IPC should be connect with the first digital channel of NVR.If the MAC Address and the first MAC Address of the first IPC are not It is identical, then can consider that the first IPC is not the IPC being connect with this NVR, wherein the first MAC Address can be default mapping Any one MAC Address in relationship.
When a data channel of NVR corresponds to the MAC Address of multiple IPC, such as the first data channel of NVR and four MAC Address corresponds to, and this four MAC Address are the MAC Address of the first IPC, the 2nd IPC, the 3rd IPC and the 4th IPC respectively. In same multicast network, if the first IPC, the 2nd IPC, the 3rd IPC and the 4th IPC are in not-connected status, work as NVR After sending the first request message, the first IPC, the 2nd IPC, the 3rd IPC and the 4th IPC with respectively feeding back the MAC of itself to NVR Location.And NVR receive the first IPC, the 2nd IPC, the 3rd IPC and the 4th IPC feedback MAC Address at the time of may it is identical, It may be different.If NVR receives the MAC Address of the first IPC, the 2nd IPC, the 3rd IPC and the 4th IPC feedbacks simultaneously, NVR can be established with any one IPC therein and be connected.If NVR receives the first IPC, the 2nd IPC, the 3rd IPC and the 4th Have successively at the time of the MAC Address of IPC feedbacks, then NVR can be connect with the IPC of earliest feedback MAC Address.
Since each IPC can be by MAC Address unique mark, then the NVR each IPC to be accessed can also pass through MAC Address unique mark.If the MAC Address of the first IPC is identical as the first MAC Address, NVR can be by with the first MAC Corresponding first digital channel in location is established with not connected IPC and is connected.And first response message in addition to carrying the first IPC Except MAC Address, the IP address of the first IPC can also be carried.The IP address of first IPC is to be added in DHCP networks to obtain automatically , therefore manual setting is not needed, NVR can know the IP address of the first IPC by the first response message, and then pass through IP The digital channel of address and NVR carry out pairing connection.
When NVR establishes connection by the first digital channel corresponding with the first MAC Address with not connected IPC, NVR is first It can determine the item types that NVR is used, further according to determining item types, determine to be used between not connected IPC Access protocol, the IPC not accessed according still further to determining access protocol request access.
In the embodiment of the present invention, item types can serve to indicate that the scope of business that NVR is used.Such as item types can be with Including public security security protection and enterprise's security protection or other possible security protections.The access protocol that different item types use is also It is different.For example, if item types are public security security protections, access protocol can be 28181 agreement of standard GB/T, if item Mesh type is enterprise's security protection, then access protocol can be professional standard ONVIF agreements.Or sometimes NVR can be with regard to user Oneself defines access protocol, it is also assumed that being privately owned access protocol.
In the prior art, NVR is specified informs that IPC connected to it this accesses to be used are assisted using a kind of access protocol View, access way are single.NVR in the embodiment of the present invention can support a variety of access protocols, different item types to correspond to phase Same or different access protocol.NVR determines the access to be used between not connected IPC according to determining item types When agreement, the first access protocol corresponding with type of identifying project can be selected from least one access protocol of storage.It can In the embodiment of energy, the item types of NVR can be set in advance in NVR, and the access protocol that NVR is supported can with item types To establish mapping relations, it is stored in NVR.As NVR it needs to be determined that when the first access protocol, the item types of NVR can be obtained, And determine the first access protocol according to mapping relations.
If NVR will be communicated with IPC, NVR if, needs to inform selected first access protocols of IPC, so as to IPC The first access protocol is selected, is communicated with NVR based on the first access protocol.In possible embodiment, NVR can be to not connecting The IPC connect sends the second request message, and the second request message can carry the mark of the first access protocol, not connected for informing IPC use the first access protocol connect.
By taking not connected IPC is the first IPC as an example, the first IPC receives the second request message that NVR is sent, and can obtain Second request message, which is used to indicate NVR, will use the first access protocol, such as the second request message to carry the first access protocol Mark, to which the first IPC determines that access protocol to be used is the first access protocol according to the mark of the first access protocol.First IPC can determine whether to agree to use the first access protocol according to the second request message, and send the second response message to NVR, Wherein, the second response message can serve to indicate that whether the first IPC agrees to use the first access protocol, to inform NVR, first Whether IPC agrees to use the first access protocol.
NVR receives the second response message that the first IPC is sent, and the second response message is parsed, to whether know the first IPC Agree to use the first access protocol.If the second response message indicates that the first IPC agrees to use the first access protocol, NVR The message that connection is established in request can be sent to the first IPC, the first IPC is accessed using the first access protocol for asking.First IPC receives the message that connection is established in the request that NVR is sent, can by the first access protocol, according to the IP address of the first IPC with The first data channel in NVR establishes connection.When establishing connection, NVR can be carried out according to the log-on message of the first IPC of preservation Verification, after being verified, NVR and the first IPC are established and are connected.
If the second response message indicates that the first IPC is disagreed using the first access protocol, NVR can be again to the One IPC sends the second request message, wherein second request message can carry the mark of the second access protocol, to inform the One IPC is connected using the second access protocol.At this point, the second access protocol that the first IPC can be carried according to the second request message Mark, to according to the mark of the second access protocol determine that access protocol to be used is the second access protocol.
NVR can receive the second response message of the first IPC transmissions, the second response message be parsed, to know the first IPC Whether agreement uses the second access protocol.If the second response message indicates that the first IPC agrees to use the second access protocol, NVR can send the message that connection is established in request to the first IPC.If the second response message indicates that the first IPC disagrees use Second access protocol, then NVR can send the second request message to the first IPC again, wherein second request message can be with The mark for carrying third access protocol, to inform that the first IPC is connected using third access protocol.Or the first IPC of request is informed Which kind of access protocol used.As it can be seen that the NVR in the embodiment of the present invention can be negotiated to be connect using which kind of before connecting IPC with IPC Enter agreement, access way is more flexible.
In conclusion the NVR in the embodiment of the present invention realizes the MAC of configuration its digital channel and each IPC to be accessed Which IPC addresses has also not connected by MAC Address determination in the pre-connection.If NVR has determined which IPC is not connected, And not connected IPC can feed back the first response message to NVR, the first response message further includes IP in addition to including MAC Address Location, the IP address so as to be fed back by IPC establish connection.During this, does not need manual setting or change the IP of IPC Address, it is more convenient, NVR can be made to access each IPC quickly.
In addition, even if in relatively large application scenarios, for example there is when more NVR, provide through the embodiment of the present invention The method that NVR accesses IPC may be implemented every NVR determination and be connect with which platform IPC, i.e., the correspondence of clear NVR and IPC, NVR is allow clearly to know the correspondence of the username and password of IPC, without being arranged to unification to more IPC Default authentication user name password, avoids security risk.
Equipment provided in an embodiment of the present invention is introduced with reference to the accompanying drawings of the specification.
The third aspect provides a kind of rear end equipment, which may include transmission unit 301, receiving unit 302, judging unit 303 and connection unit 304.Wherein, transmission unit 301 can be used for periodically sending the first request and disappear Breath, the first request message are used to obtain the MAC address of not connected IPC, wherein not connected IPC is with after End equipment is located at same multicast network.It is anti-according to the first request message institute that receiving unit 302 can be used for receiving not connected IPC First response message of feedback, the first response message carry MAC Address.Judging unit 303 can be used for judging MAC Address and preset Whether the first MAC Address in mapping relations identical, wherein default mapping relations be used to indicate the data channel of rear end equipment with The correspondence of the MAC Address for each IPC to be accessed.If connection unit 304 can be used for it is identical, by with the first MAC The corresponding digital channel in location is established with not connected IPC and is connected.
Optionally, connection unit 304 is specifically used for:
Determine that the item types that rear end equipment uses, item types include public security security protection and enterprise's security protection;
According to determining item types, the access protocol to be used between not connected IPC is determined;Wherein, rear end is set It is standby that a variety of access protocols, different item types is supported to correspond to identical or different access protocol;
The IPC not accessed according to determining access protocol request access.
Optionally, connection unit 304 is specifically used for:
From at least one access protocol of storage, the first access protocol corresponding with item types is selected;
The second request message is sent to not connected IPC, the second request message carries the mark of the first access protocol, is used for Inform that not connected IPC is connected using the first access protocol;
If receiving the agreements of not connected IPC feedbacks using the message of the first access protocol, rear end equipment is by first Access protocol is determined as the access protocol to be used between the IPC that is not connected with.
Optionally, transmission unit 301 is specifically used for:
Detect in the digital channel of rear end equipment whether there is also idle digital channels;
If in the presence of the first request message is periodically sent;
Otherwise, stop sending the first request message.
About the introduction of this partial content, method part is can refer to, is seldom repeated.
Fig. 4 is referred to, same inventive concept is based on, one embodiment of the invention provides a kind of rear end equipment, the rear end equipment May include:At least one processor 401 realizes this when processor 401 is for executing the computer program stored in memory The step of method for the rear end equipment connection IPC as shown in Figure 1 that inventive embodiments provide.
Optionally, processor 401 can be specifically central processing unit, application-specific integrated circuit (English: Application Specific Integrated Circuit, referred to as:ASIC), can be that one or more is used to control journey The integrated circuit that sequence executes.
Optionally, which further includes the memory 402 being connect at least one processor, and memory 402 can be with Including read-only memory (English:Read Only Memory, referred to as:ROM), random access memory (English:Random Access Memory, referred to as:) and magnetic disk storage RAM.Memory 402 is used to store number required when processor 401 is run According to being stored with the instruction that can be executed by least one processor 401, at least one processor 401, which passes through, executes memory 402 The instruction of storage executes method as shown in Figure 1.Wherein, the quantity of memory 402 is one or more.Wherein, memory 402 show together in Fig. 4, but it is understood that memory 402 is not essential function module, therefore in Fig. 4 with void Line is shown.
Optionally, corresponding to the transmission unit 301 in Fig. 3, receiving unit 302, judging unit 303 and connection unit 304 Entity device may each be the processor 401 in Fig. 4.
Fig. 5 is referred to, same inventive concept is based on, one embodiment of the invention provides a kind of IPC, which may include connecing Receive unit 501 and transmission unit 502.Wherein, receiving unit 501 can be used for receiving the first request that rear end equipment is sent and disappear Breath, IPC are located at same multicast network with rear end equipment.Transmission unit 502 can be used for being set to the back-end according to the first request message The first response message of standby feedback, the first response message carry the MAC Address of IPC, wherein the data channel of rear end equipment with want The MAC Address of each IPC of access corresponds to, and MAC Address is corresponding with the first digital channel, and IPC is by the first digital channel with after End equipment connects.
Optionally, receiving unit 501 is additionally operable to:
After the first request message that end equipment is sent after the receipt, the second request message that rear end equipment is sent is received; Wherein, IPC is located at same multicast network with rear end equipment, and the second request message, which is used to indicate rear end equipment, will use the first access Agreement, for informing that IPC is connected using the first access protocol;
Transmission unit 502 is additionally operable to:End equipment sends the second response message backward, wherein the second response message is for referring to Show whether IPC agrees to use the first access protocol;
Receiving unit 501 is additionally operable to:If the instruction of the second response message is agreed to use the first access protocol, receives rear end and set The message of connection is established in the request that preparation is sent, and the message that connection is established in request is set for asking by the first access protocol and rear end The first data channel in standby is established with IPC to be connected.
About the introduction of this partial content, method part is can refer to, is seldom repeated.
Fig. 6 is referred to, same inventive concept is based on, one embodiment of the invention provides a kind of IPC, which may include:Extremely A few processor 601, processor 601 is for realizing that the embodiment of the present invention carries when executing the computer program stored in memory The step of rear end equipment connection IPC methods as shown in Figure 2 supplied.
Optionally, processor 601 can be specifically central processing unit, application-specific integrated circuit (English: Application Specific Integrated Circuit, referred to as:ASIC), can be that one or more is used to control journey The integrated circuit that sequence executes.
Optionally, which further includes the memory 602 being connect at least one processor, and memory 602 may include only Read memory (English:Read Only Memory, referred to as:ROM), random access memory (English:Random Access Memory, referred to as:) and magnetic disk storage RAM.Memory 602 is used to store data required when processor 601 is run, that is, deposits The instruction that can be executed by least one processor 601 is contained, what at least one processor 601 was stored by executing memory 602 Instruction, executes method as shown in Figure 2.Wherein, the quantity of memory 602 is one or more.Wherein, memory 602 is in Fig. 6 In show together, but it is understood that memory 602 is not essential function module, therefore shown in dotted line in figure 6.
Optionally, the receiving unit 501 in Fig. 5 and the entity device corresponding to transmission unit 502 may each be in Fig. 6 Processor 601.
The embodiment of the present invention also provides a kind of computer storage media, wherein computer storage media is stored with computer Instruction, when computer instruction is run on computers so that computer executes the method as described in Fig. 1 or 2.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application Block is completed, i.e., the internal structure of device is divided into different function modules, to complete all or part of work(described above Energy.The specific work process of the system, apparatus, and unit of foregoing description can refer to corresponding in preceding method embodiment Journey, details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the module or unit It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the application The all or part of step of embodiment the method.And storage medium above-mentioned includes:General serial bus USB (Universal Serial Bus flash disk), mobile hard disk, read-only memory (Read-Only Memory, ROM), Random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can to store program code Medium.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (11)

1. a kind of connection method, for connecting rear end equipment and web camera IPC, which is characterized in that including:
Rear end equipment periodically sends the first request message, and first request message is used to obtain the matchmaker of not connected IPC Body access control MAC addresses, wherein the not connected IPC is located at same multicast network with the rear end equipment;
The rear end equipment receives the first response message that the not connected IPC is fed back according to first request message, First response message carries MAC Address;
The rear end equipment judges whether the MAC Address and the first MAC Address in default mapping relations are identical, wherein institute State the correspondence that default mapping relations are used to indicate the data channel of rear end equipment and the MAC Address for each IPC to be accessed;
If identical, the rear end equipment is built by digital channel corresponding with first MAC Address with the not connected IPC Vertical connection.
2. the method as described in claim 1, which is characterized in that if identical, the rear end equipment is by with the first MAC The corresponding digital channel in location is established with the not connected IPC and is connected, including:
The rear end equipment determines that the item types that the rear end equipment uses, the item types include public security security protection and enterprise Security protection;
The rear end equipment is according to determining item types, the determining access protocol to be used between the not connected IPC; Wherein, the rear end equipment supports a variety of access protocols, different item types to correspond to identical or different access protocol;
The rear end equipment is according to the IPC not accessed described in determining access protocol request access.
3. method as claimed in claim 2, which is characterized in that the rear end equipment according to determining item types, determine with Access protocol to be used between the not connected IPC, including:
The rear end equipment selects the first access corresponding with item types association from least one access protocol of storage View;
The rear end equipment sends the second request message to the not connected IPC, and second request message carries described the The mark of one access protocol, for informing that the not connected IPC is connected using first access protocol;
If the rear end equipment receives the message of the not connected IPC feedbacks agreed to using first access protocol, Then first access protocol is determined as the access protocol to be used between the not connected IPC by the rear end equipment.
4. method as described in any one of claims 1-3, which is characterized in that rear end equipment periodically sends the first request and disappears Breath, including:
Detect in the digital channel of rear end equipment whether there is also idle digital channels;
If in the presence of the rear end equipment periodically sends first request message;
Otherwise, the rear end equipment stops sending first request message.
5. a kind of connection method, for connecting rear end equipment and web camera IPC, which is characterized in that including:
IPC receives the first request message that rear end equipment is sent, wherein first request message is for obtaining the IPC's MAC Address, the IPC and the rear end equipment are located at same multicast network;
The IPC feeds back the first response message according to first request message to the rear end equipment, and first response disappears Breath carries the MAC Address of the IPC, wherein the data channel of the rear end equipment is with the MAC for each IPC to be accessed Location correspond to, the MAC Address is corresponding with first digital channel, the IPC by first digital channel and it is described after End equipment connects.
6. method as claimed in claim 5, which is characterized in that IPC receive rear end equipment send the first request message it Afterwards, further include:
The IPC receives the second request message that the rear end equipment is sent;Wherein, second request message is used to indicate institute The first access protocol will be used by stating rear end equipment, for informing that the IPC is connected using first access protocol;
The IPC sends the second response message to the rear end equipment, wherein second response message is used to indicate described Whether IPC agrees to use first access protocol;
If the second response message instruction agrees to that first access protocol, the IPC is used to receive the rear end equipment The message of connection is established in the request of transmission, the request establish the message of connection for asking through first access protocol and The first data channel in the rear end equipment is established with the IPC to be connected.
7. a kind of rear end equipment, which is characterized in that including:
Transmission unit, for periodically sending the first request message, first request message is for obtaining not connected IPC MAC address, wherein the not connected IPC and the rear end equipment are located at same multicast network;
Receiving unit, the first response message fed back according to first request message for receiving the not connected IPC, First response message carries MAC Address;
Judging unit, for judging whether the MAC Address and the first MAC Address in default mapping relations are identical, wherein institute State the correspondence that default mapping relations are used to indicate the data channel of rear end equipment and the MAC Address for each IPC to be accessed;
If connection unit passes through digital channel corresponding with first MAC Address and the not connected IPC for identical Establish connection.
8. a kind of rear end equipment, which is characterized in that including:
At least one processor, and
The memory being connect at least one processor;
Wherein, the memory is stored with the instruction that can be executed by least one processor, at least one processor Method according to any one of claims 1-4 is realized in instruction by executing the memory storage.
9. a kind of web camera IPC, which is characterized in that including:
Receiving unit, the first request message for receiving rear end equipment transmission, wherein first request message is for obtaining The MAC Address of the IPC, the IPC are located at same multicast network with the rear end equipment;
Transmission unit, for according to first request message to the rear end equipment feed back the first response message, described first Response message carries the MAC Address of the IPC, wherein the data channel of the rear end equipment is with each IPC's to be accessed MAC Address corresponds to, and the MAC Address is corresponding with first digital channel, and the IPC passes through first digital channel and institute State rear end equipment connection.
10. a kind of web camera IPC, which is characterized in that including:
At least one processor, and
The memory being connect at least one processor;
Wherein, the memory is stored with the instruction that can be executed by least one processor, at least one processor Such as method described in claim 5 or 6 is realized in instruction by executing the memory storage.
11. a kind of computer storage media, is stored thereon with computer program, which is characterized in that the computer program is located Reason device realizes method as claimed in any one of claims 1 to 6 when executing.
CN201810290750.5A 2018-04-03 2018-04-03 A kind of connection method and rear end equipment, IPC Pending CN108683701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810290750.5A CN108683701A (en) 2018-04-03 2018-04-03 A kind of connection method and rear end equipment, IPC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810290750.5A CN108683701A (en) 2018-04-03 2018-04-03 A kind of connection method and rear end equipment, IPC

Publications (1)

Publication Number Publication Date
CN108683701A true CN108683701A (en) 2018-10-19

Family

ID=63799489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810290750.5A Pending CN108683701A (en) 2018-04-03 2018-04-03 A kind of connection method and rear end equipment, IPC

Country Status (1)

Country Link
CN (1) CN108683701A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988576A (en) * 2020-08-31 2020-11-24 深圳市新龙鹏科技有限公司 PON (passive optical network) network camera access control method, device, equipment and storage medium
CN112911226A (en) * 2021-01-19 2021-06-04 浙江大华技术股份有限公司 Method, system and storage medium for automatically adding network camera
CN113596188A (en) * 2021-07-12 2021-11-02 浙江大华技术股份有限公司 Multi-device management method and device
CN113676899A (en) * 2021-08-09 2021-11-19 深圳市猿人创新科技有限公司 Equipment code matching method and device and electronic equipment
CN115065856A (en) * 2022-06-13 2022-09-16 深圳绿米联创科技有限公司 Data display method and data display system

Citations (9)

* Cited by examiner, † Cited by third party
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
CN104410841A (en) * 2014-12-19 2015-03-11 深圳市天视通电子科技有限公司 MAC (media access control) layer based connection method and device
CN104883547A (en) * 2015-06-16 2015-09-02 浙江宇视科技有限公司 IPC access method based on physical port of network access equipment, and NVR
CN105553853A (en) * 2015-12-01 2016-05-04 浙江宇视科技有限公司 Method, device and system for management of IPC through NVR
CN105634903A (en) * 2015-12-31 2016-06-01 深圳市磊科实业有限公司 NVR and IPC port corresponding method
CN106067906A (en) * 2016-05-25 2016-11-02 浙江大华技术股份有限公司 A kind of method of reconnect and monitoring device
CN106231001A (en) * 2016-07-25 2016-12-14 浙江大华技术股份有限公司 A kind of method, apparatus and system carrying out IP address configuration
CN106817439A (en) * 2017-02-10 2017-06-09 武汉卓威视讯科技有限公司 A kind of method for obtaining MAC Address
CN107172571A (en) * 2017-04-21 2017-09-15 上海掌门科技有限公司 A kind of smart machine automatic matching connection method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
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
CN104410841A (en) * 2014-12-19 2015-03-11 深圳市天视通电子科技有限公司 MAC (media access control) layer based connection method and device
CN104883547A (en) * 2015-06-16 2015-09-02 浙江宇视科技有限公司 IPC access method based on physical port of network access equipment, and NVR
CN105553853A (en) * 2015-12-01 2016-05-04 浙江宇视科技有限公司 Method, device and system for management of IPC through NVR
CN105634903A (en) * 2015-12-31 2016-06-01 深圳市磊科实业有限公司 NVR and IPC port corresponding method
CN106067906A (en) * 2016-05-25 2016-11-02 浙江大华技术股份有限公司 A kind of method of reconnect and monitoring device
CN106231001A (en) * 2016-07-25 2016-12-14 浙江大华技术股份有限公司 A kind of method, apparatus and system carrying out IP address configuration
CN106817439A (en) * 2017-02-10 2017-06-09 武汉卓威视讯科技有限公司 A kind of method for obtaining MAC Address
CN107172571A (en) * 2017-04-21 2017-09-15 上海掌门科技有限公司 A kind of smart machine automatic matching connection method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
雷毅,陈钊正: "江西省高速公路联网监控标准化探讨", 《中国交通信息化》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988576A (en) * 2020-08-31 2020-11-24 深圳市新龙鹏科技有限公司 PON (passive optical network) network camera access control method, device, equipment and storage medium
CN112911226A (en) * 2021-01-19 2021-06-04 浙江大华技术股份有限公司 Method, system and storage medium for automatically adding network camera
CN113596188A (en) * 2021-07-12 2021-11-02 浙江大华技术股份有限公司 Multi-device management method and device
CN113676899A (en) * 2021-08-09 2021-11-19 深圳市猿人创新科技有限公司 Equipment code matching method and device and electronic equipment
CN115065856A (en) * 2022-06-13 2022-09-16 深圳绿米联创科技有限公司 Data display method and data display system
CN115065856B (en) * 2022-06-13 2024-05-03 深圳绿米联创科技有限公司 Data display method and data display system

Similar Documents

Publication Publication Date Title
CN108683701A (en) A kind of connection method and rear end equipment, IPC
US11201814B2 (en) Configuration of networks using switch device access of remote server
US20180098214A1 (en) Apparatus and method for providing universal plug and play service based on wi-fi direct connection in portable terminal
US7881230B2 (en) Facilitating self configuring link aggregation using link aggregation control protocol
US9813291B2 (en) Shortest path bridging (SPB) configuration of networks using client device access of remote
US10142342B2 (en) Authentication of client devices in networks
JP6549320B2 (en) Communication device connection method, terminal device, and server system
CN102739541B (en) The method, apparatus and system of a kind of routing function startup and transfer of data
US20040059711A1 (en) Configuration of a flexible infrastructure
EP3029887B1 (en) Apparatus and method for providing accessible home network information in remote access environment
US20130039352A1 (en) Configuring a wireless network interface to provide a network service
CN102404418B (en) Method, device and system for distributing IP (internet protocol) address for user terminal
AU2001296185A1 (en) Configuration of a flexible infrastructure
US20150271016A1 (en) Configuration of networks with server cluster device
CN108234518A (en) A kind of method, apparatus, terminal and the storage medium of terminal communication
CN105706455A (en) Electronic device and method for controlling electronic device
CN103516567A (en) Method and system for equipment discovery and server
CN100531041C (en) Method for grouping visual-information network, DHCP server and visual information terminal
CN108781231A (en) Printer and unbroken interface with double Media Access Control interfaces change
US20140181279A1 (en) Virtual Console-Port Management
CN108810611A (en) The control system and method for Multimedia Fusion terminal start-up course
US20080307114A1 (en) Network assignment method and apparatus
JP2001313674A (en) Network device and computer network
JP2005210265A (en) Network system, terminal-setting method, address solution server, and client
EP3706373B1 (en) Establishing a vxlan between a wireless access point and a node

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181019

RJ01 Rejection of invention patent application after publication