CN104410841A - MAC (media access control) layer based connection method and device - Google Patents

MAC (media access control) layer based connection method and device Download PDF

Info

Publication number
CN104410841A
CN104410841A CN201410795865.1A CN201410795865A CN104410841A CN 104410841 A CN104410841 A CN 104410841A CN 201410795865 A CN201410795865 A CN 201410795865A CN 104410841 A CN104410841 A CN 104410841A
Authority
CN
China
Prior art keywords
equipment
mac frame
hard disk
video recorder
web camera
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
CN201410795865.1A
Other languages
Chinese (zh)
Other versions
CN104410841B (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.)
TOPSEE ELECTRONIC TECHNOLOGY COMPANY Ltd
Original Assignee
TOPSEE ELECTRONIC TECHNOLOGY COMPANY 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 TOPSEE ELECTRONIC TECHNOLOGY COMPANY Ltd filed Critical TOPSEE ELECTRONIC TECHNOLOGY COMPANY Ltd
Priority to CN201410795865.1A priority Critical patent/CN104410841B/en
Publication of CN104410841A publication Critical patent/CN104410841A/en
Application granted granted Critical
Publication of CN104410841B publication Critical patent/CN104410841B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention applies to the field of communication and provides an MAC (media access control) layer based connection method and device. The method comprises steps as follows: first equipment automatically sends a broadcast MAC frame at regular time, the MAC frame content comprises the equipment type, the serial number or the MAC address of the first equipment; the first equipment receives a broadcast MAC frame sent by second equipment; the first equipment analyzes the broadcast MAC frame sent by the second equipment so as to obtain the equipment type, the serial number or the MAC address of the second equipment; and the first equipment adds the equipment corresponding to a source MAC address in the received broadcast MAC frame sent by the second equipment to an equipment channel list. According to the embodiment of the invention, the broadcast MAC frame is automatically sent by a web camera or a net-hard disk video recorder, and the broadcast MAC frame sent by an opposite party is received simultaneously, so that automatic connection between the equipment is realized.

Description

A kind of method of attachment based on MAC layer and device
Technical field
The invention belongs to the communications field, particularly relate to a kind of method of attachment based on MAC layer and device.
Background technology
Network Video Surveillance by wired, Wireless IP network and electric power networks, video information is transmitted with digitized form, is the integrated product of the multinomial new and high technologies such as collection computer, network, communication and a coding and decoding video.Compared with traditional video monitoring, Network Video Surveillance computer of being more convenient for carries out the compression of video information, storage, the automatic business processing such as analysis display and warning, thus realize unattended operation, remote monitor is achieved by the network platform, utilize advanced software systems not only within a few minutes, just can complete data analyses a large amount of in traditional video surveillance, improve monitoring efficiency, and more true to nature, digitized image quality and more convenient, practical monitoring management and maintenance clearly can be obtained.
In Network Video Surveillance field, along with Internet video day by day replaces the universal and application of analog video monitoring in the past, " foolproof " operation of map network video camera (IPC) and network hard disk video recorder (NVR) has become a very important demand, but the connection of general IP address-based web camera and network hard disk video recorder needs to be configured IP address, thus can not realize from being dynamically connected, complicated operation.
Summary of the invention
The embodiment of the present invention provides a kind of method of attachment based on MAC layer, and being intended to solve in IP address-based connection procedure needs to be configured IP address, thus can not realize from being dynamically connected, the problem of complicated operation.
The embodiment of the present invention is achieved in that a kind of method of attachment based on MAC layer, and described method comprises:
First equipment self-timing sends broadcast MAC frame, wherein said mac frame content comprises the device type of described first equipment, sequence number or MAC Address, thus by the type of described first equipment, the second equipment receiving described mac frame judges that can described mac frame by coupling checking, described second equipment uniquely determines described first equipment by the sequence number of described first equipment, and described second equipment uniquely determines described first equipment position in a network by the MAC Address of described first equipment;
Described first equipment receives the described broadcast MAC frame that described second equipment sends;
Described first equipment is resolved the broadcast MAC frame that described described second equipment received sends, obtain the device type of described second equipment, sequence number or MAC Address, thus by the type of described second equipment, described first equipment judges that can described mac frame by coupling checking, described first equipment uniquely determines described second equipment by the sequence number of described second equipment, and described first equipment uniquely determines described second equipment position in a network by the MAC Address of described second equipment;
The equipment that in the broadcast MAC frame that described described second equipment received sends by described first equipment, source MAC is corresponding adds device channels list to;
Wherein, described first equipment can be web camera, then described second equipment is network hard disk video recorder; Described first equipment can also be network hard disk video recorder, then described second equipment is web camera.
The embodiment of the present invention also provides a kind of jockey based on MAC layer, and described device comprises:
Mac frame transmitting element, broadcast MAC frame is sent for the first equipment self-timing, wherein said mac frame content comprises the device type of described first equipment, sequence number or MAC Address, thus by the type of described first equipment, the second equipment receiving described mac frame judges that can described mac frame by coupling checking, described second equipment uniquely determines described first equipment by the sequence number of described first equipment, and described second equipment uniquely determines described first equipment position in a network by the MAC Address of described first equipment;
Mac frame receiving element, receives the described broadcast MAC frame of the second equipment transmission for described first equipment;
Mac frame resolution unit, for described first equipment, the broadcast MAC frame that described described second equipment received sends is resolved, obtain the device type of described second equipment, sequence number or MAC Address, thus by the type of described second equipment, described first equipment judges that can described mac frame by coupling checking, described first equipment uniquely determines described second equipment by the sequence number of described second equipment, and described first equipment uniquely determines described second equipment position in a network by the MAC Address of described second equipment;
Equipment adding device, the equipment corresponding for source MAC in the broadcast MAC frame that described described second equipment received sends by described first equipment adds device channels list to;
Wherein, described first equipment can be web camera, then described second equipment is network hard disk video recorder; Described first equipment can also be network hard disk video recorder, then described second equipment is web camera.
The embodiment of the present invention also provides a kind of web camera end comprising jockey based on MAC layer, and described device comprises:
Mac frame transmitting element, broadcast MAC frame is sent for web camera self-timing, wherein said mac frame content comprises the device type of described web camera, sequence number or MAC Address, thus by the type of described web camera, the network hard disk video recorder receiving described mac frame judges that can described mac frame by coupling checking, described network hard disk video recorder uniquely determines described web camera by the sequence number of described web camera, described network hard disk video recorder uniquely determines described web camera position in a network by the MAC Address of described web camera,
Mac frame receiving element, receives the broadcast MAC frame of described network hard disk video recorder transmission for described web camera;
Mac frame resolution unit, for described web camera, the broadcast MAC frame that the described described network hard disk video recorder received sends is resolved, obtain the device type of described network hard disk video recorder, sequence number or MAC Address, thus by the type of described network hard disk video recorder, described web camera judges that can described mac frame by coupling checking, described web camera uniquely determines described network hard disk video recorder by the sequence number of described network hard disk video recorder, described web camera uniquely determines described network hard disk video recorder position in a network by the MAC Address of described network hard disk video recorder,
Equipment adding device, the equipment corresponding for source MAC in the broadcast MAC frame that the described network hard disk video recorder received sends by described web camera adds device channels list to.
The embodiment of the present invention also provides a kind of network hard disk video recorder comprising jockey based on MAC layer, and described device comprises:
Mac frame transmitting element, broadcast MAC frame is sent for network hard disk video recorder self-timing, wherein said mac frame content comprises the device type of described network hard disk video recorder, sequence number or MAC Address, thus by the type of described network hard disk video recorder, the network of network video camera receiving described mac frame judges that can described mac frame by coupling checking, described web camera uniquely determines described network hard disk video recorder by the sequence number of described network hard disk video recorder, described web camera uniquely determines described network hard disk video recorder position in a network by the MAC Address of described network hard disk video recorder,
Mac frame receiving element, receives the broadcast MAC frame of described web camera transmission for described network hard disk video recorder;
Mac frame resolution unit, for network hard disk video recorder, the broadcast MAC frame that the described described web camera received sends is resolved, obtain the device type of described second equipment, sequence number or MAC Address, thus by the type of described web camera, described network hard disk video recorder judges that can described mac frame by coupling checking, described network hard disk video recorder uniquely determines described web camera by the sequence number of described web camera, described network hard disk video recorder uniquely determines described web camera position in a network by the MAC Address of described web camera,
Equipment adding device, the equipment corresponding for source MAC in the broadcast MAC frame that the described web camera received sends by described network hard disk video recorder adds device channels list to.
The invention process automatically sends broadcast MAC frame by web camera or network hard disk video recorder and accepts the broadcast MAC frame of the other side's transmission simultaneously, thus realizes being certainly dynamically connected between equipment.
Accompanying drawing explanation
Fig. 1 is the implementation environment figure of the method for attachment based on MAC layer that the embodiment of the present invention provides;
Fig. 2 is the realization flow figure of the method for attachment based on MAC layer that the embodiment of the present invention provides;
Fig. 3 is the signal timing diagram of the method for attachment based on MAC layer that first embodiment of the invention provides;
Fig. 4 is the signal timing diagram of the method for attachment based on MAC layer that second embodiment of the invention provides;
Fig. 5 is the jockey based on MAC layer that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The invention process automatically sends broadcast MAC frame by web camera or network hard disk video recorder and accepts the broadcast MAC frame of the other side's transmission simultaneously, thus realizes being certainly dynamically connected between equipment.
Fig. 1 shows the implementation environment of the method for attachment based on MAC layer that the embodiment of the present invention provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.
Web camera 100 absorbs video image, the vedio data absorbed can be transferred on memory device and store.
Network hard disk video recorder 200 can store the data transferring to network hard disk video recorder.
Router three 00 can communicate between the equipment being connected to same router 300.
In embodiments of the present invention, router three 00 can be cable router, also can be wireless router.
As one embodiment of the present of invention, communicate between web camera 100 and network hard disk video recorder 200 by router three 00, web camera 100 passes through set up communication connection and sends data to network hard disk video recorder 200.
In embodiments of the present invention, communicate between web camera 100 and network hard disk video recorder 200 based on MAC layer, upper layer communication agreement adopts class ICP/IP protocol.
Consult Fig. 2, Fig. 3 and Fig. 4, Fig. 2 shows the realization flow of the method for attachment based on MAC layer that the embodiment of the present invention provides, Fig. 3 shows the signal timing diagram of the method for attachment based on MAC layer that first embodiment of the invention provides, Fig. 4 shows the signal timing diagram of the method for attachment based on MAC layer that second embodiment of the invention provides, and details are as follows:
In step s 201, the first equipment self-timing sends broadcast MAC frame.
In embodiments of the present invention, the first equipment upon actuation, then can send broadcast MAC frame to the second equipment by self-timing.
Wherein, when described first equipment is web camera, described second equipment is network hard disk video recorder; When described first equipment is network hard disk video recorder, described second equipment is web camera.
In the first embodiment of the invention, web camera 100 upon actuation, then can send broadcast MAC frame by self-timing, wherein the content of mac frame is self-defined, comprise the device type of web camera 100, sequence number, thus by the type of network hard disk video recorder 200, web camera 100 judges that can this mac frame by coupling checking, web camera 100 uniquely determines this network hard disk video recorder 200 by the sequence number of network hard disk video recorder 200, web camera 100 uniquely determines this network hard disk video recorder 200 position in a network by the MAC Address of network hard disk video recorder 200.
As the first embodiment of the present invention, due to the connection between web camera 100 and network hard disk video recorder 200 will be realized, so network hard disk video recorder 200 to be set to the mac frame that recrive-only equipment type sends for network hard disk video recorder 200, thus be only found bag for web camera 100 send time, network hard disk video recorder 200 could identify it when receiving this discovery bag, and also namely this discovery bag is verified by coupling.Due to sequence number for when each equipment dispatches from the factory with unique number, thus network hard disk video recorder 200 uniquely determines this equipment by the sequence number of web camera 100, due to the global unique number that MAC Address possesses for equipment network interface card, so network hard disk video recorder 200 uniquely determines this web camera 100 unique positions in a network by the MAC Address of web camera 100.Realizing after uniquely the determining of web camera 100, then the connection procedure that can realize network hard disk video recorder 200 and web camera 100 based on this.
In second embodiment of the invention, network hard disk video recorder 200 upon actuation, then can send broadcast MAC frame by self-timing, wherein the data division of mac frame is self-defined, comprise the device type of network hard disk video recorder 200, sequence number and MAC Address, thus by the type of web camera 100, network hard disk video recorder 200 judges that can this mac frame by coupling checking, network hard disk video recorder 200 uniquely determines this web camera 100 by the sequence number of web camera 100, network hard disk video recorder 200 uniquely determines this web camera 100 position in a network by the MAC Address of web camera 100.
As the second embodiment of the present invention, due to the connection between web camera 100 and network hard disk video recorder 200 will be realized, so web camera 100 to be set to the mac frame that recrive-only equipment type sends for network hard disk video recorder 200, thus be only found bag for network hard disk video recorder 200 send time, web camera 100 could identify it when receiving this discovery bag, and also namely this discovery bag is verified by coupling.Due to sequence number for when each equipment dispatches from the factory with unique number, thus web camera 100 uniquely determines this equipment by the sequence number of network hard disk video recorder 200, due to the global unique number that MAC Address possesses for equipment network interface card, so web camera 100 uniquely determines this network hard disk video recorder 200 unique positions in a network by the MAC Address of network hard disk video recorder 200.Realizing after uniquely the determining of network hard disk video recorder 200, then the connection procedure that can realize web camera 100 and network hard disk video recorder 200 based on this.
In the first embodiment of the invention, web camera 100 upon actuation, then automatically can send broadcast MAC frame at a certain time interval, wherein the content of mac frame is self-defined, comprise the device type of web camera 100, sequence number and MAC Address, thus by the type of network hard disk video recorder 200, web camera 100 judges that can this mac frame by coupling checking, web camera 100 uniquely determines this network hard disk video recorder 200 by the sequence number of network hard disk video recorder 200, web camera 100 uniquely determines network hard disk video recorder 200 position in a network by the MAC Address of network hard disk video recorder 200.
As a preferred embodiment of the present invention, web camera 100 upon actuation, sends broadcast MAC frame automatically with 10 seconds intervals once.
In second embodiment of the invention, network hard disk video recorder 200 upon actuation, then automatically can send broadcast MAC frame at a certain time interval, wherein the content of mac frame is self-defined, comprise the device type of network hard disk video recorder 200, sequence number and MAC Address, thus by the type of web camera 100, network hard disk video recorder 200 judges that can this mac frame by coupling checking, network hard disk video recorder 200 uniquely determines this web camera 100 by the sequence number of web camera 100, network hard disk video recorder 200 uniquely determines this web camera 100 position in a network by the MAC Address of web camera 100.
As a preferred embodiment of the second embodiment of the present invention, network hard disk video recorder 200 upon actuation, sends broadcast MAC frame automatically with 10 seconds intervals once.
In step S202, the first equipment receives the broadcast MAC frame that the second equipment sends.
In embodiments of the present invention, after the second equipment self-timing sends broadcast MAC frame, the first equipment accepts the broadcast MAC frame that the second equipment sends.
Wherein, when described first equipment is web camera, described second equipment is network hard disk video recorder; When described first equipment is network hard disk video recorder, described second equipment is web camera.
In the first embodiment of the invention, when sending broadcast MAC frame by web camera 100 self-timing, because web camera 100 and network hard disk video recorder 200 are in same local area network (LAN), and use same upper layer communication agreement, then by reception, this comprises the mac frame that source MAC is web camera 100 to network hard disk video recorder 200.
In second embodiment of the invention, when sending broadcast MAC frame by network hard disk video recorder 200 self-timing, because web camera 100 and network hard disk video recorder 200 are in same local area network (LAN), and use same upper layer communication agreement, then by reception, this comprises the mac frame that source MAC is network hard disk video recorder 200 to web camera 100.
In step S203, the broadcast MAC frame that the second equipment that the first equipment interconnection receives sends is resolved.
In embodiments of the present invention, after the first equipment receives the broadcast MAC frame of the second equipment transmission, the broadcast MAC frame that the second equipment that the first equipment interconnection receives sends is resolved.
Wherein, when described first equipment is web camera, described second equipment is network hard disk video recorder; When described first equipment is network hard disk video recorder, described second equipment is web camera.
In the first embodiment of the invention, when network hard disk video recorder 200 receive by web camera 100 send to comprise source MAC be the mac frame of web camera 100 time, this broadcast MAC frame is resolved.
In second embodiment of the invention, when web camera 100 receive by network hard disk video recorder 200 send to comprise source MAC be the mac frame of network hard disk video recorder 200 time, this broadcast MAC frame is resolved.
As the first embodiment of the present invention, when network hard disk video recorder 200 receive by web camera 100 send to comprise source MAC be the mac frame of web camera 100 time, this broadcast MAC frame is resolved, obtain the type of web camera 100, sequence number or MAC Address, thus by the type of web camera 100, network hard disk video recorder 200 judges that can this mac frame by coupling checking, network hard disk video recorder 200 uniquely determines this web camera 100 by the sequence number of web camera 100, network hard disk video recorder 200 uniquely determines this web camera 100 position in a network by the MAC Address of web camera 100.
As the second embodiment of the present invention, when web camera 100 receive by network hard disk video recorder 200 send to comprise source MAC be the mac frame of network hard disk video recorder 200 time, this broadcast MAC frame is resolved, judge whether this mac frame is the mac frame needed according to upper layer communication agreement, obtain the type of network hard disk video recorder 200, sequence number or MAC Address, thus by the type of web camera 100, network hard disk video recorder 200 judges that can this mac frame by coupling checking, network hard disk video recorder 200 uniquely determines this web camera 100 by the sequence number of web camera 100, network hard disk video recorder 200 uniquely determines this web camera 100 position in a network by the MAC Address of web camera 100.
In step S204, the equipment that in the broadcast MAC frame that the second equipment received sends by the first equipment, source MAC is corresponding adds device channels list to.
In embodiments of the present invention, after the broadcast MAC frame that the second equipment received when the first equipment interconnection sends is resolved, in the broadcast MAC frame that the second equipment received sends by the first equipment, equipment corresponding to source MAC adds device channels list to.
Wherein, when described first equipment is web camera, described second equipment is network hard disk video recorder; When described first equipment is network hard disk video recorder, described second equipment is web camera.
In the first embodiment of the invention, when sending broadcast MAC frame by web camera 100 self-timing, the source MAC of this broadcast MAC frame is web camera 100, then receive this broadcast MAC frame at network hard disk video recorder 200 and after it is resolved, according to self-defining upper layer communication agreement, network hard disk video recorder 200 can identify that the broadcast MAC sent by web camera 100 wraps, thus the web camera 100 that in the broadcast MAC frame that this received of network hard disk video recorder 200, source MAC is corresponding to add in the channel list of the all-network video camera 100 that can connect with this network hard disk video recorder 200 and records this source MAC simultaneously, be present in equipment in this channel list then can automatically and this network hard disk video recorder 200 connect, thus represent that the web camera 100 that in this mac frame, source MAC is corresponding can connect with this network hard disk video recorder 200.
In second embodiment of the invention, when sending broadcast MAC frame by network hard disk video recorder 200 self-timing, the source MAC of this broadcast MAC frame is network hard disk video recorder 200, then receive this broadcast MAC frame at web camera 100 and after it is resolved, according to self-defining upper layer communication agreement, web camera 100 can identify that the broadcast MAC sent by network hard disk video recorder 200 wraps, thus web camera 100, the network hard disk video recorder 200 that in the broadcast MAC frame this received, source MAC is corresponding to add in the channel list of the all-network video camera 100 that can connect with this web camera 100 and records this source MAC simultaneously, be present in equipment in this channel list then can automatically and this web camera 100 connect, thus represent that the network hard disk video recorder 200 that in this mac frame, source MAC is corresponding can connect with this web camera 100.
In embodiments of the present invention, the execution sequence of step S201 and step S202 can change.
Represent the signal timing diagram based on web camera in the invention process see Fig. 3 and Fig. 4, Fig. 3, Fig. 4 represents the signal timing diagram in embodiments of the present invention based on network hard disk video recorder.
In embodiments of the present invention, when web camera 100 and network hard disk video recorder 200 start, web camera 100 sends broadcast MAC frame together with network hard disk video recorder 200, thus web camera 100 and network hard disk video recorder 200 will recognize network hard disk video recorder 200 and web camera 100 respectively, the other side is increased in the channel list of oneself and also records this source MAC simultaneously.When web camera 100 and network hard disk video recorder 200 in the channel list respectively the other side, then automatically connect, when a side sends data, the opposing party is by automatic reception data.
In one embodiment of the invention, web camera 100 correspondence connects a network hard disk video recorder 200.
As one embodiment of the present of invention, a web camera 100 may correspond to and connects multiple network hard disk video recorder 200, a network hard disk video recorder 200 also may correspond to and connects multiple web camera 100, like this when realizing data communication, then the communication between each equipment carries out sequenced communications according to the order inside channel list.
Fig. 5 shows the jockey based on MAC layer that the embodiment of the present invention provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.
Mac frame transmitting element 400 self-timing sends broadcast MAC frame.
In the first embodiment of the invention, web camera 100 upon actuation, then can send broadcast MAC frame by mac frame transmitting element 400 self-timing, wherein the data division of mac frame is self-defined, comprise the device type of web camera 100, sequence number and MAC Address, thus by the type of network hard disk video recorder 200, web camera 100 judges that can this mac frame by coupling checking, web camera 100 uniquely determines this network hard disk video recorder 200 by the sequence number of network hard disk video recorder 200, web camera 100 uniquely determines this network hard disk video recorder 200 position in a network by the MAC Address of network hard disk video recorder 200.
In second embodiment of the invention, network hard disk video recorder 200 upon actuation, then can send broadcast MAC frame by mac frame transmitting element 400 self-timing, wherein the data division of mac frame is self-defined, comprise the device type of network hard disk video recorder 200, sequence number and MAC Address, thus by the type of web camera 100, network hard disk video recorder 200 judges that can this mac frame by coupling checking, network hard disk video recorder 200 uniquely determines this web camera 100 by the sequence number of web camera 100, network hard disk video recorder 200 uniquely determines this web camera 100 position in a network by the MAC Address of web camera 100.
In the first embodiment of the invention, web camera 100 upon actuation, then automatically can send broadcast MAC frame at a certain time interval by mac frame transmitting element 400, wherein the data division of mac frame is self-defined, comprise the device type of web camera 100, sequence number and MAC Address, thus by the type of network hard disk video recorder 200, web camera 100 judges that can this mac frame by coupling checking, web camera 100 uniquely determines this network hard disk video recorder 200 by the sequence number of network hard disk video recorder 200, web camera 100 uniquely determines network hard disk video recorder 200 position in a network by the MAC Address of network hard disk video recorder 200.
As a preferred embodiment of the present invention, web camera 100 upon actuation, then can send broadcast MAC frame by mac frame transmitting element 400 with 10 seconds intervals once automatically.
In second embodiment of the invention, network hard disk video recorder 200 upon actuation, then automatically can send broadcast MAC frame at a certain time interval by mac frame transmitting element 400, wherein the data division of mac frame is self-defined, comprise the device type of network hard disk video recorder 200, sequence number and MAC Address, thus by the type of web camera 100, network hard disk video recorder 200 judges that can this mac frame by coupling checking, network hard disk video recorder 200 uniquely determines this web camera 100 by the sequence number of web camera 100, network hard disk video recorder 200 uniquely determines this web camera 100 position in a network by the MAC Address of web camera 100.
As a preferred embodiment of the second embodiment of the present invention, network hard disk video recorder 200 upon actuation, then can send broadcast MAC frame by mac frame transmitting element 400 with 10 seconds intervals once automatically.
Mac frame receiving element 500 receives the broadcast MAC frame that the second equipment sends.
In the first embodiment of the invention, when sending broadcast MAC frame by web camera 100 self-timing, because web camera 100 and network hard disk video recorder 200 are in same local area network (LAN), and use same upper layer communication agreement, then network hard disk video recorder 200 comprises being received this by mac frame receiving element 500 mac frame that source MAC is web camera 100.
In second embodiment of the invention, when sending broadcast MAC frame by network hard disk video recorder 200 self-timing, because web camera 100 and network hard disk video recorder 200 are in same local area network (LAN), and use same upper layer communication agreement, then web camera 100 is comprised mac frame that source MAC is network hard disk video recorder 200 by being received this by mac frame receiving element 500 and resolves it.
Mac frame resolution unit 600 is resolved the broadcast MAC frame that the second equipment received sends.
In the first embodiment of the invention, when network hard disk video recorder 200 receive by web camera 100 send to comprise source MAC be the mac frame of web camera 100 time, mac frame resolution unit 600 is resolved this broadcast MAC frame.
In second embodiment of the invention, when web camera 100 receive by network hard disk video recorder 200 send to comprise source MAC be the mac frame of network hard disk video recorder 200 time, mac frame resolution unit 600 is resolved this broadcast MAC frame.
As the first embodiment of the present invention, when network hard disk video recorder 200 receive by web camera 100 send to comprise source MAC be the mac frame of web camera 100 time, mac frame resolution unit 600 is resolved this broadcast MAC frame, obtain the type of web camera 100, sequence number or MAC Address, thus by the type of web camera 100, network hard disk video recorder 200 judges that can this mac frame by coupling checking, network hard disk video recorder 200 uniquely determines this web camera 100 by the sequence number of web camera 100, network hard disk video recorder 200 uniquely determines this web camera 100 position in a network by the MAC Address of web camera 100.
As the second embodiment of the present invention, when web camera 100 receive by network hard disk video recorder 200 send to comprise source MAC be the mac frame of network hard disk video recorder 200 time, mac frame resolution unit 600 is resolved this broadcast MAC frame, judge whether this mac frame is the mac frame needed according to upper layer communication agreement, obtain the type of network hard disk video recorder 200, sequence number or MAC Address, thus by the type of web camera 100, network hard disk video recorder 200 judges that can this mac frame by coupling checking, network hard disk video recorder 200 uniquely determines this web camera 100 by the sequence number of web camera 100, network hard disk video recorder 200 uniquely determines this web camera 100 position in a network by the MAC Address of web camera 100.
The equipment that in the broadcast MAC frame that the second equipment received sends by equipment adding device 700, source MAC is corresponding adds device channels list to.
In the first embodiment of the invention, when sending broadcast MAC frame by web camera 100 self-timing, the source MAC of this broadcast MAC frame is web camera 100, then receive this broadcast MAC frame at network hard disk video recorder 200 and after it is resolved, according to self-defining upper layer communication agreement, network hard disk video recorder 200 can identify that the broadcast MAC sent by web camera 100 wraps, thus the web camera 100 that in the broadcast MAC frame that this received of network hard disk video recorder 200, source MAC is corresponding to be added to by equipment adding device 700 in the channel list of the all-network video camera 100 that can connect with this network hard disk video recorder 200 and records this source MAC simultaneously, be present in equipment in this channel list then can automatically and this network hard disk video recorder 200 connect, thus represent that the web camera 100 that in this mac frame, source MAC is corresponding can connect with this network hard disk video recorder 200.
In second embodiment of the invention, when sending broadcast MAC frame by network hard disk video recorder 200 self-timing, the source MAC of this broadcast MAC frame is network hard disk video recorder 200, then receive this broadcast MAC frame at web camera 100 and after it is resolved, according to self-defining upper layer communication agreement, web camera 100 can identify that the broadcast MAC sent by network hard disk video recorder 200 wraps, thus web camera 100, the network hard disk video recorder 200 that in the broadcast MAC frame this received, source MAC is corresponding to be added to by equipment adding device 700 in the channel list of the all-network video camera 100 that can connect with this web camera 100 and records this source MAC simultaneously, be present in equipment in this channel list then can automatically and this web camera 100 connect, thus represent that the network hard disk video recorder 200 that in this mac frame, source MAC is corresponding can connect with this web camera 100.
The invention process automatically sends broadcast MAC frame by web camera or network hard disk video recorder and accepts the broadcast MAC frame of the other side's transmission simultaneously, thus realizes being certainly dynamically connected between equipment.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. based on a method of attachment for MAC layer, it is characterized in that, described method comprises:
First equipment self-timing sends broadcast MAC frame, wherein said mac frame content comprises the device type of described first equipment, sequence number or MAC Address, thus by the type of described first equipment, the second equipment receiving described mac frame judges that can described mac frame by coupling checking, described second equipment uniquely determines described first equipment by the sequence number of described first equipment, and described second equipment uniquely determines described first equipment position in a network by the MAC Address of described first equipment;
Described first equipment receives the described broadcast MAC frame that described second equipment sends;
Described first equipment is resolved the broadcast MAC frame that described described second equipment received sends, obtain the device type of described second equipment, sequence number or MAC Address, thus by the type of described second equipment, described first equipment judges that can described mac frame by coupling checking, described first equipment uniquely determines described second equipment by the sequence number of described second equipment, and described first equipment uniquely determines described second equipment position in a network by the MAC Address of described second equipment;
The equipment that in the broadcast MAC frame that described described second equipment received sends by described first equipment, source MAC is corresponding adds device channels list to;
Wherein, when described first equipment is web camera, described second equipment is network hard disk video recorder; When described first equipment is network hard disk video recorder, described second equipment is web camera.
2. as claimed in claim 1 based on the method for attachment of MAC layer, it is characterized in that, described first equipment self-timing sends broadcast MAC frame and is specially:
Described first equipment sends described broadcast MAC frame at a certain time interval automatically.
3. as claimed in claim 1 based on the method for attachment of MAC layer, it is characterized in that, before described first equipment self-timing sends broadcast MAC frame, described method also comprises:
The equipment that in the broadcast MAC frame that described described second equipment received sends by described first equipment, source MAC is corresponding records source MAC when adding device channels list to.
4. based on a jockey for MAC layer, it is characterized in that, described device comprises:
Mac frame transmitting element, broadcast MAC frame is sent for the first equipment self-timing, wherein said mac frame content comprises the device type of described first equipment, sequence number or MAC Address, thus by the type of described first equipment, the second equipment receiving described mac frame judges that can described mac frame by coupling checking, described second equipment uniquely determines described first equipment by the sequence number of described first equipment, and described second equipment uniquely determines described first equipment position in a network by the MAC Address of described first equipment;
Mac frame receiving element, receives the described broadcast MAC frame of the second equipment transmission for described first equipment;
Mac frame resolution unit, for described first equipment, the broadcast MAC frame that described described second equipment received sends is resolved, obtain the device type of described second equipment, sequence number or MAC Address, thus by the type of described second equipment, described first equipment judges that can described mac frame by coupling checking, described first equipment uniquely determines described second equipment by the sequence number of described second equipment, and described first equipment uniquely determines described second equipment position in a network by the MAC Address of described second equipment;
Equipment adding device, the equipment corresponding for source MAC in the broadcast MAC frame that described described second equipment received sends by described first equipment adds device channels list to;
Wherein, when described first equipment is web camera, described second equipment is network hard disk video recorder; When described first equipment is network hard disk video recorder, described second equipment is web camera.
5. as claimed in claim 4 based on the jockey of MAC layer, it is characterized in that, described first equipment self-timing sends broadcast MAC frame and is specially:
Described first equipment sends described broadcast MAC frame at a certain time interval automatically.
6., as claimed in claim 4 based on the jockey of MAC layer, it is characterized in that, described device comprises further:
The equipment that in the broadcast MAC frame that described described second equipment received sends by described first equipment, source MAC is corresponding records source MAC when adding device channels list to, wherein, described first equipment can be web camera, then described second equipment is network hard disk video recorder; Described first equipment can also be network hard disk video recorder, then described second equipment is web camera.
7. comprise a web camera for the jockey based on MAC layer, it is characterized in that, described device comprises:
Mac frame transmitting element, broadcast MAC frame is sent for web camera self-timing, wherein said mac frame content comprises the device type of described web camera, sequence number or MAC Address, thus by the type of described web camera, the network hard disk video recorder receiving described mac frame judges that can described mac frame by coupling checking, described network hard disk video recorder uniquely determines described web camera by the sequence number of described web camera, described network hard disk video recorder uniquely determines described web camera position in a network by the MAC Address of described web camera,
Mac frame receiving element, receives the broadcast MAC frame of described network hard disk video recorder transmission for described web camera;
Mac frame resolution unit, for described web camera, the broadcast MAC frame that the described described network hard disk video recorder received sends is resolved, obtain the device type of described network hard disk video recorder, sequence number or MAC Address, thus by the type of described network hard disk video recorder, described web camera judges that can described mac frame by coupling checking, described web camera uniquely determines described network hard disk video recorder by the sequence number of described network hard disk video recorder, described web camera uniquely determines described network hard disk video recorder position in a network by the MAC Address of described network hard disk video recorder,
Equipment adding device, the equipment corresponding for source MAC in the broadcast MAC frame that the described network hard disk video recorder received sends by described web camera adds device channels list to.
8. as claimed in claim 7 based on the web camera of the jockey of MAC layer, it is characterized in that, described web camera self-timing sends broadcast MAC frame and is specially:
Described web camera sends described broadcast MAC frame at a certain time interval automatically.
9. comprise a network hard disk video recorder for the jockey based on MAC layer, it is characterized in that, described device comprises:
Mac frame transmitting element, broadcast MAC frame is sent for network hard disk video recorder self-timing, wherein said mac frame content comprises the device type of described network hard disk video recorder, sequence number or MAC Address, thus by the type of described network hard disk video recorder, the network of network video camera receiving described mac frame judges that can described mac frame by coupling checking, described web camera uniquely determines described network hard disk video recorder by the sequence number of described network hard disk video recorder, described web camera uniquely determines described network hard disk video recorder position in a network by the MAC Address of described network hard disk video recorder,
Mac frame receiving element, receives the broadcast MAC frame of described web camera transmission for described network hard disk video recorder;
Mac frame resolution unit, for network hard disk video recorder, the broadcast MAC frame that the described described web camera received sends is resolved, obtain the device type of described second equipment, sequence number or MAC Address, thus by the type of described web camera, described network hard disk video recorder judges that can described mac frame by coupling checking, described network hard disk video recorder uniquely determines described web camera by the sequence number of described web camera, described network hard disk video recorder uniquely determines described web camera position in a network by the MAC Address of described web camera,
Equipment adding device, the equipment corresponding for source MAC in the broadcast MAC frame that the described web camera received sends by described network hard disk video recorder adds device channels list to.
10. as claimed in claim 9 based on the network hard disk video recorder of the jockey of MAC layer, it is characterized in that, described network hard disk video recorder self-timing sends broadcast MAC frame and is specially:
Described network hard disk video recorder sends described broadcast MAC frame at a certain time interval automatically.
CN201410795865.1A 2014-12-19 2014-12-19 A kind of connection method and device based on MAC layer Expired - Fee Related CN104410841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410795865.1A CN104410841B (en) 2014-12-19 2014-12-19 A kind of connection method and device based on MAC layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410795865.1A CN104410841B (en) 2014-12-19 2014-12-19 A kind of connection method and device based on MAC layer

Publications (2)

Publication Number Publication Date
CN104410841A true CN104410841A (en) 2015-03-11
CN104410841B CN104410841B (en) 2018-04-10

Family

ID=52648428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410795865.1A Expired - Fee Related CN104410841B (en) 2014-12-19 2014-12-19 A kind of connection method and device based on MAC layer

Country Status (1)

Country Link
CN (1) CN104410841B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187781A (en) * 2015-08-17 2015-12-23 浙江宇视科技有限公司 Method and device for adding monitoring equipment automatically
CN105959644A (en) * 2016-06-21 2016-09-21 浙江宇视科技有限公司 Method and device for configuration of video monitoring equipment
CN108683701A (en) * 2018-04-03 2018-10-19 浙江大华技术股份有限公司 A kind of connection method and rear end equipment, IPC

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101027703A (en) * 2004-08-20 2007-08-29 索尼电子有限公司 Isochronous transmission for IP-oriented network
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
CN102801798A (en) * 2012-08-03 2012-11-28 浙江宇视科技有限公司 Method and device for distributing IP (Internet Protocol) address
KR101336636B1 (en) * 2013-10-08 2013-12-04 파인트론 주식회사 Network video recorder connected through analog coaxial cable with ip camera and method automatically assigning an ip address
CN103873301A (en) * 2014-03-20 2014-06-18 浙江宇视科技有限公司 System and method for automatically finding and adding devices
CN103905787A (en) * 2012-12-27 2014-07-02 广州市九安光电技术股份有限公司 Straight connection type plug-and-play network video recorder system and realization method
CN104105096A (en) * 2014-07-28 2014-10-15 浙江宇视科技有限公司 Wireless access method of internet protocol camera (IPC) devices
CN104144230A (en) * 2014-07-30 2014-11-12 浙江宇视科技有限公司 Simple method and device for binding monitoring terminals

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101027703A (en) * 2004-08-20 2007-08-29 索尼电子有限公司 Isochronous transmission for IP-oriented network
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
CN102801798A (en) * 2012-08-03 2012-11-28 浙江宇视科技有限公司 Method and device for distributing IP (Internet Protocol) address
CN103905787A (en) * 2012-12-27 2014-07-02 广州市九安光电技术股份有限公司 Straight connection type plug-and-play network video recorder system and realization method
KR101336636B1 (en) * 2013-10-08 2013-12-04 파인트론 주식회사 Network video recorder connected through analog coaxial cable with ip camera and method automatically assigning an ip address
CN103873301A (en) * 2014-03-20 2014-06-18 浙江宇视科技有限公司 System and method for automatically finding and adding devices
CN104105096A (en) * 2014-07-28 2014-10-15 浙江宇视科技有限公司 Wireless access method of internet protocol camera (IPC) devices
CN104144230A (en) * 2014-07-30 2014-11-12 浙江宇视科技有限公司 Simple method and device for binding monitoring terminals

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187781A (en) * 2015-08-17 2015-12-23 浙江宇视科技有限公司 Method and device for adding monitoring equipment automatically
CN105959644A (en) * 2016-06-21 2016-09-21 浙江宇视科技有限公司 Method and device for configuration of video monitoring equipment
CN108683701A (en) * 2018-04-03 2018-10-19 浙江大华技术股份有限公司 A kind of connection method and rear end equipment, IPC

Also Published As

Publication number Publication date
CN104410841B (en) 2018-04-10

Similar Documents

Publication Publication Date Title
CN103686072B (en) Depending on networked video method for supervising and system, association turns server and looks networked server
CN108964963B (en) Alarm system based on video network and method for realizing alarm
CN102196248B (en) Mobile video monitoring system and method
CN104113727A (en) Monitoring video playing method, device and system
CN109548019B (en) Network distribution method and system
CN103647954A (en) Mobile video monitoring system based on 3G channel and intelligent terminal
CN110545405B (en) Video transmission method and system based on video network
CN103259709A (en) End-to-end mobile phone real-time video transmission method based on virtual private network
CN201839376U (en) Monitoring system and monitoring video server
CN104243477A (en) Security industry data collecting method and system implemented on basis of XMPP
CN104539749A (en) Connecting method and device based on virtual IP address
CN110809026B (en) File processing method and device, electronic equipment and storage medium
CN101262499B (en) A remote monitoring system
CN103634172A (en) Method, device and system for processing multi-terminal cooperation information
CN103945277A (en) Method, system and device for realizing mobile terminal video sharing
EP2854350B1 (en) System and method for cross-network data storage
CN103096038B (en) The method for supervising of the fusion video monitoring system of multi-protocol video watch-dog access
CN103826101A (en) Cloud video intelligent service system
CN104410841A (en) MAC (media access control) layer based connection method and device
CN109544879B (en) Alarm data processing method and system
CN202713535U (en) Video and audio monitoring network system
US20160241623A1 (en) Communications platform
CN103595964A (en) Data processing method and device
CN104270603A (en) Method for obtaining video streams and monitoring system
CN106550493B (en) Media resource sharing method and mobile terminal

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180410

Termination date: 20211219