CN106067906A - A kind of method of reconnect and monitoring device - Google Patents

A kind of method of reconnect and monitoring device Download PDF

Info

Publication number
CN106067906A
CN106067906A CN201610356068.2A CN201610356068A CN106067906A CN 106067906 A CN106067906 A CN 106067906A CN 201610356068 A CN201610356068 A CN 201610356068A CN 106067906 A CN106067906 A CN 106067906A
Authority
CN
China
Prior art keywords
address
monitoring device
remote equipment
passage
mac address
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
CN201610356068.2A
Other languages
Chinese (zh)
Other versions
CN106067906B (en
Inventor
惠国宾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang 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 CN201610356068.2A priority Critical patent/CN106067906B/en
Publication of CN106067906A publication Critical patent/CN106067906A/en
Application granted granted Critical
Publication of CN106067906B publication Critical patent/CN106067906B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • 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/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Small-Scale Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses method and the monitoring device of a kind of reconnect, including: monitoring device gets an IP address and first MAC Address of remote equipment record, if the second MAC Address that the first MAC Address got currently preserves with self is identical, and the IP address got is different from the 2nd IP address that self currently preserves, an IP address is revised as in 2nd IP address by monitoring device, described monitoring device uses a described IP address, is reconnected with described remote equipment by the described passage of described monitoring device.When changing due to the IP address of remote equipment, a described IP address is revised as in the described 2nd IP address that described monitoring device is actively preserved by described monitoring device, achieve monitoring device automatically to reconnect with this remote equipment, thus manager need not to log on the IP address of the remote equipment in the record that monitoring device backstage goes amendment to be preserved, it is to avoid the waste of time and manpower.

Description

A kind of method of reconnect and monitoring device
Technical field
The present invention relates to monitoring field, particularly relate to method and the monitoring device of a kind of reconnect.
Background technology
Video monitoring system is the important component part of safety and protection system, is the comprehensive system that a kind of prevention ability is stronger System, is widely used in various occasion, such as airport, scenic spot etc..Along with the development of modern science and technology, when video monitoring enters network In generation, it is increasingly subject to the attention of people.
In existing video monitoring system, monitoring device uses the mode of IP address to realize being connected with remote equipment, if with Monitoring device connect remote equipment because of DHCP (Dynamic Host Configuration Protocol, DHCP) having redistributed IP address or manager's manual modification IP address, monitoring device can be because not connecting remote equipment IP address and disconnect with it, if to reconnect, manager must log on monitoring device backstage and go the note that preserved of amendment The IP address of the remote equipment in record, wastes time and energy very much.
To sum up, when the IP address of remote equipment changes, monitoring device reconnects with this remote equipment, and manager must Monitoring device backstage must be logged on and go to revise the IP address of the remote equipment in the record preserved, elapsed time length and waste people Power, is the problem that solution is presently required.
Summary of the invention
It is an object of the invention to provide method and the monitoring device of a kind of reconnect, to solve the IP address of remote equipment When changing, monitoring device reconnects with this remote equipment, and manager must log on monitoring device backstage and go to revise institute The IP address of the remote equipment in the record preserved, elapsed time length and the problem of waste of manpower.
It is an object of the invention to be achieved through the following technical solutions:
A kind of method of reconnect, including:
Monitoring device gets an IP address and first MAC Address of remote equipment record, wherein, a described IP ground Location represents that each passage that described remote equipment includes with described monitoring device is connected the IP address used, described first MAC Address For identifying described remote equipment;
The each passage included for described monitoring device, described monitoring device is from the IP address and first got In MAC Address, determine the IP address with described channel attached remote equipment and the first MAC Address, and determine Self current the 2nd IP address with described channel attached remote equipment preserved and the second MAC Address;
If it is determined that described first MAC Address identical with described second MAC Address determined, and determine described Oneth IP address is different from the described 2nd IP address determined, described 2nd IP address is revised as described by described monitoring device Oneth IP address;
Described monitoring device uses a described IP address, by the described passage of described monitoring device and described remote equipment Reconnect.
Optionally, described monitoring device gets an IP address and first MAC Address of remote equipment record, including:
Described monitoring device sends broadcast, and described broadcast is used for indicating remote equipment to feed back described remote equipment An IP address and the first MAC Address;
Described monitoring device receives the feedback message of described remote equipment, comprises and described remotely set in described feedback message A standby IP address and the first MAC Address.
Optionally, described monitoring device uses a described IP address, by the described passage of described monitoring device with described Remote equipment reconnects, including:
When the described passage of described monitoring device and described remote equipment are in connection status, first by described monitoring device Described passage disconnects with described remote equipment, re-uses a described IP address, by the described passage of described monitoring device Reconnect with described remote equipment.
Optionally, described monitoring device sends described broadcast, including:
Described monitoring device periodically sends described broadcast;Or
After described monitoring device determines that arbitrary passage of described monitoring device disconnects with remote equipment, send institute State broadcast.
Optionally, after described monitoring device gets an IP address and first MAC Address of remote equipment record, should Method also includes:
Each passage that described monitoring device is included, described monitoring device get with described channel attached far When the second MAC Address with described channel attached remote equipment that first MAC Address of journey equipment preserves from self is different, institute State monitoring device and keep the current state of described passage and remote equipment.
Based on the inventive concept as method, embodiments provide a kind of monitoring device, including:
Acquisition module, for getting an IP address and first MAC Address of remote equipment record, wherein, described the One IP address represent each passage that described remote equipment includes with described monitoring device be connected use IP address, described first MAC Address is used for identifying described remote equipment;
Identification module, for each passage of including for described monitoring device, from the IP address got and the In one MAC Address, determine the IP address with described channel attached remote equipment and the first MAC Address, and determine Go out the 2nd IP address with described channel attached remote equipment and the second MAC Address that self currently preserves;
Modified module, for if it is determined that described first MAC Address identical with described second MAC Address determined, And the described IP address determined is different from the described 2nd IP address determined, described monitoring device is by described 2nd IP A described IP address is revised as in address;
Link block, is used for using a described IP address, is remotely set with described by the described passage of described monitoring device Standby reconnect.
Optionally, described acquisition module specifically for:
Sending broadcast, described broadcast feeds back an IP address of described remote equipment for indicating remote equipment With the first MAC Address;
Receive the feedback message of described remote equipment, described feedback message comprises an IP ground of described remote equipment Location and the first MAC Address.
Optionally, described link block is additionally operable to: the described passage of described monitoring device and described remote equipment are in even When connecing state, first the described passage of described monitoring device is disconnected with described remote equipment, re-use a described IP ground Location, reconnects the described passage of described monitoring device with described remote equipment.
Optionally, acquisition module specifically for:
Periodically send described broadcast;Or
After determining that arbitrary passage of described monitoring device and remote equipment disconnect, send described broadcast.
Optionally, described identification module is additionally operable to:
Each passage that described monitoring device is included, described monitoring device get with described channel attached far When the second MAC Address with described channel attached remote equipment that first MAC Address of journey equipment preserves from self is different, institute State monitoring device and keep the current state of described passage and remote equipment.
Method and the monitoring device, first monitoring device of a kind of reconnect that the embodiment of the present invention provides get remotely Equipment record for characterize each channel attached IP address that includes with described monitoring device and for identify described far First MAC Address of journey equipment, each passage included for described monitoring device, from the IP address and first got In MAC Address, determine that get with described channel attached remote equipment the first MAC Address with described monitoring device from The second MAC Address with described channel attached remote equipment that body currently preserves is identical, and get with described passage even A described IP address of the remote equipment connect and described monitoring device preserve with described channel attached remote equipment the After two IP address differences, the described 2nd IP address that described monitoring device is preserved by described monitoring device is revised as described first IP address, and use a described IP address, the described passage of described monitoring device is reconnected with described remote equipment.By When the IP address of remote equipment changes, the described 2nd IP address that described monitoring device is preserved by described monitoring device is repaiied Change a described IP address into, it is achieved that monitoring device reconnects automatically with this remote equipment, thus manager need not step on Land goes to the IP address of the remote device of record that amendment preserved to monitoring device backstage, it is to avoid the wave of time and manpower Take.
Accompanying drawing explanation
The method flow diagram of a kind of reconnect that Fig. 1 provides for the embodiment of the present invention;
The another kind of method flow diagram reconnected that Fig. 2 provides for the embodiment of the present invention;
A kind of monitoring device schematic diagram that Fig. 3 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, the technical scheme providing the embodiment of the present invention is described in detail.
A kind of method embodiments providing reconnect, as it is shown in figure 1, include operating as follows:
Step 100, monitoring device get an IP address and first MAC Address of remote equipment record, wherein, described Oneth IP address represent each passage that described remote equipment includes with described monitoring device be connected use IP address, described first MAC Address is used for identifying described remote equipment.
Wherein, described monitoring device can be that DVR (Digital Video Recorder, DVR), network are hard Dish videocorders (Network Video Recorder, NVR) etc., it is not construed as limiting by the present invention.
Step 110, each passage included for described monitoring device, described monitoring device is from the IP ground got In location and the first MAC Address, determine the IP address with described channel attached remote equipment and the first MAC Address, with And determine the 2nd IP address with described channel attached remote equipment and the second MAC Address self currently preserved.
Step 120 if it is determined that described first MAC Address identical with described second MAC Address determined, and determine The described IP address gone out is different from the described 2nd IP address determined, described 2nd IP address is repaiied by described monitoring device Change a described IP address into.
Concrete, owing to each remote equipment has a fixing MAC Address, if described monitoring device determines acquisition It is channel attached with described that the first MAC Address with described channel attached remote equipment arrived preserves with described monitoring device Second MAC Address of remote equipment is identical, and the most described monitoring device is determined and do not changed with described channel attached remote equipment Become;If described monitoring device is determined that get with described channel attached remote equipment the first MAC Address and described prison Control equipment preserve the second MAC Address from described channel attached remote equipment different, the most described monitoring device determine with Described channel attached remote equipment there occurs change.
Step 130, described monitoring device use a described IP address, by the described passage of described monitoring device with described Remote equipment reconnects.
Method and the monitoring device, first monitoring device of a kind of reconnect that the embodiment of the present invention provides get remotely Equipment record for characterize each channel attached IP address that includes with described monitoring device and for identify described far First MAC Address of journey equipment, each passage included for described monitoring device, from the IP address and first got In MAC Address, determine that get with described channel attached remote equipment the first MAC Address with described monitoring device from The second MAC Address with described channel attached remote equipment that body currently preserves is identical, and get with described passage even A described IP address of the remote equipment connect and described monitoring device preserve with described channel attached remote equipment the After two IP address differences, the described 2nd IP address that described monitoring device is preserved by described monitoring device is revised as described first IP address, and use a described IP address, the described passage of described monitoring device is reconnected with described remote equipment.By When the IP address of remote equipment changes, the described 2nd IP address that described monitoring device is preserved by described monitoring device is repaiied Change a described IP address into, it is achieved that monitoring device reconnects automatically with this remote equipment, thus manager need not step on Land goes to the IP address of the remote device of record that amendment preserved to monitoring device backstage, it is to avoid the wave of time and manpower Take.
Below by two specific embodiments, the method for a kind of reconnect that the embodiment of the present invention provides is carried out in detail Explanation.
Embodiment one, assume that monitoring device has two passages, respectively first passage and second channel, first passage with First remote equipment connects, and the IP address of the first remote equipment being connected with first passage that monitoring device preserves is 192.168.1.101, MAC Address is 8A:47:01:54:89:11;Second channel and the second remote equipment connect, monitoring device The IP address of the second remote equipment being connected with second channel preserved is 192.168.1.102, and MAC Address is 8A:47:01: 54:89:22;
First passage and the first remote equipment are in off-state, second channel and the second remote equipment and are in connection shape State, it is 192.168.1.109 that monitoring device gets the IP address of the first remote equipment, and MAC Address is 8A:47:01:54:89: 11;The IP address getting second remote equipment is 192.168.1.102, and MAC Address is 8A:47:01:54:89:22;
Monitoring device determines the MAC Address 8A:47 of the first remote equipment being connected with first passage self preserved: The MAC Address of the first remote equipment that 01:54:89:11 gets with self is that 8A:47:01:54:89:11 is identical, and determines Go out what the IP address 192.168.1.101 of the first remote equipment being connected with first passage self preserved got with self IP address 192.168.1.109 is different, and the described IP address 192.168.1.101 described monitoring device preserved is revised as described The IP address 192.168.1.109 got;Monitoring device uses IP address 192.168.1.109, by the first of monitoring device Passage reconnects with described remote equipment.
In an embodiment, monitoring device can get in the following manner remote equipment for characterize with described monitoring An each channel attached IP address that equipment includes and for identifying the first MAC Address of described remote equipment:
Described monitoring device sends broadcast, and described broadcast is used for indicating remote equipment to feed back described remote equipment An IP address and the first MAC Address;
Described monitoring device receives the feedback message of described remote equipment, comprises and described remotely set in described feedback message A standby IP address and the first MAC Address.
Concrete, monitoring device can be by the way of sending broadcast, and instruction receives the long-range of this broadcast Equipment fed remote equipment for characterizing each channel attached IP address that includes with described monitoring device and for marking Know the first MAC Address of described remote equipment.
Optionally, the information such as port numbers also comprising described remote equipment in described feedback message, it is not made by the present invention Limit.
Optionally, described monitoring device sends described broadcast, including:
Described monitoring device periodically sends described broadcast;Or
After described monitoring device determines that arbitrary passage of described monitoring device disconnects with remote equipment, send institute State broadcast.
In an embodiment, monitoring device gets each with what described monitoring device included for characterizing of remote equipment record A channel attached IP address and after the first MAC Address identifying described remote equipment, if described monitoring device Described passage and described remote equipment are in connection status, are first broken with described remote equipment by the described passage of described monitoring device Open connection, re-use a described IP address, the described passage of described monitoring device is reconnected with described remote equipment;
The each passage included for described monitoring device, described monitoring device determines that get connects with described passage Described first MAC Address of the remote equipment connect and described monitoring device preserve with described channel attached remote equipment the During two MAC Address differences, that the most no matter get with a described channel attached remote equipment described IP address and with The 2nd IP address with described channel attached remote equipment that described monitoring device preserves is the most identical, and described monitoring device is protected Hold described passage constant with the current connection state of remote equipment.
Wherein, the state of each passage has three kinds: is not connected with, has connected and disconnected;It is not connected with referring to that described monitoring sets Standby described passage is not set up being connected with remote equipment, and having connected is that the described passage of described monitoring device remotely sets with described For being in connection status, disconnect and referred to that the described passage of described monitoring device becomes disconnected with described remote equipment from connection status Open state.
The connection procedure of a kind of reconnect that embodiment two, the embodiment of the present invention provide, as shown in Figure 2:
Step 201, monitoring device send the remote equipment on broadcast search network;
Step 202, monitoring device receive remote equipment feedback message, and described feedback message includes IP address, MAC Address, Port numbers etc., monitoring device records these information and generates remote device list, as shown in table 1:
Table 1
Remote equipment is numbered IP address MAC Address Port numbers
1 192.168.1.101 8A:47:01:54:89:11 80
2 192.168.1.102 8A:47:01:54:89:22 80
3 192.168.1.103 8A:47:01:54:89:33 80
4 192.168.1.104 8A:47:01:54:89:44 80
5 192.168.1.105 8A:47:01:54:89:55 80
6 192.168.1.106 8A:47:01:54:89:66 80
7 192.168.1.107 8A:47:01:54:89:77 80
8 192.168.1.108 8A:47:01:54:89:88 80
…… …… …… ……
Step 203, manager are that each passage configures remote equipment, generate channel management list, and are configured with far each The passage of journey equipment arranges user name and password, as shown in table 2: (in the specific embodiment of the invention as a example by 8 road NVR, i.e. NVR has 8 passages):
Table 2
Step 204, manager set the time interval of timing search remote equipment, and monitoring device timing is sent out a broadcast and searched Rope remote equipment;Or table 2 goes out off-state time, monitoring device send out broadcast search remote equipment.
The remote equipment on broadcast search network is sent out in the timing of step 205, monitoring device NVR, and monitoring device receives remote Journey equipment feedback message, described feedback message includes IP address, MAC Address, port numbers etc., and monitoring device records these information also Generate new remote device list, as shown in table 3:
Table 3
Remote equipment is numbered IP address MAC Address Port numbers
1 192.168.1.109 8A:47:01:54:89:11 80
2 192.168.1.102 8A:47:01:54:89:22 80
3 192.168.1.103 8A:47:01:54:89:33 80
4 192.168.1.104 8A:47:01:54:89:44 80
5 192.168.1.105 8A:47:01:54:89:55 80
6 192.168.1.106 8A:47:01:54:89:66 80
7 192.168.1.107 8A:47:01:54:89:77 80
8 192.168.1.108 8A:47:01:54:89:88 80
…… …… …… ……
Step 206, monitoring device obtain one from table 3, are designated as A.
Step 207, monitoring device obtain one from table 2, are designated as B.
Wherein, for each item of table 3, all information of traversal list 2, according to connection status, the table 3 of each passage of table 2 The most identical with the MAC Address of table 2, IP address, determine passage processing mode each in table 2, processing mode is as shown in table 4:
Table 4
Situation Connection status MAC Address IP address Processing mode
1 It is not connected with Identical Identical Do not process
2 It is not connected with Identical Different Do not process
3 It is not connected with Different Identical Do not process
4 It is not connected with Different Different Do not process
5 Connect Identical Identical Do not process
6 Connect Identical Different First disconnect, re-attached
7 Connect Different Identical Do not process
8 Connect Different Different Do not process
9 Disconnect Identical Identical Reconnect
10 Disconnect Identical Different Reconnect
11 Disconnect Different Identical Do not process
12 Disconnect Different Different Do not process
Step 208, monitoring device compare the state obtaining described passage to A Yu B;According to different states, respectively Perform different operations, when described passage is in not-connected status, do not deal with;With connection status at described passage Time, perform step 211;When described passage is in off-state, perform step 212.
Step 209, monitoring device judge whether table 2 travels through and are over;If so, step 210 is performed;If it is not, execution step 207。
Step 210, monitoring device judge whether table 3 travels through and are over;If so, terminate;If it is not, perform step 206.
Step 211, passage and the described remote equipment of described monitoring device are in connection status, and monitoring device judges A MAC Address the most identical with the MAC Address of B;
Do not deal with;If it is not, perform step 212.
Step 212, monitoring device judge that the IP address of A is the most identical with the IP address of B;
Do not deal with;If it is not, perform step 213.
Step 213, monitoring device disconnect the connection of passage corresponding in B and remote equipment, continue step 214.
The IP address of A is revised as in the IP address of B by step 214, monitoring device, continues step 215.
Passage corresponding in B is reconnected by step 215, monitoring device with remote equipment, and uses the IP address in B Information updating table 2, obtains new channel management list.
Step 216, passage and the described remote equipment of described monitoring device are in off-state, and monitoring device judges A MAC Address the most identical with the MAC Address of B;
If so, step 217 is performed;If it is not, do not deal with.
Step 217, monitoring device judge that the IP address of A is the most identical with the IP address of B;
If so, reconnect;If it is not, continue step 218.
The IP address of A is revised as in the IP address of B by step 218, monitoring device, continues step 219.
Passage corresponding in step 219, monitoring device B reconnects with remote equipment, and uses the IP address in B to believe Breath updates table 2, obtains new channel management list.
The present invention is described in detail to how generating new channel management list by a specific embodiment.
Taking the first row in table 3, IP address is 192.168.1.109, and MAC Address is: 8A:47:01:54:89:11:
1 192.168.1.109 8A:47:01:54:89:11 80
Traversal list 2, compares passage 1:
1 192.168.1.101 8A:47:01:54:89:11 Disconnect 80 admin admin
Its state is identical for having disconnected MAC Address, and IP address is different, illustrates that remote equipment that passage 1 connects is because of IP address Change and be disconnected, belong to the situation 10 in table 4, then during processing mode is renewal table 2, the IP address of passage 1 is 192.168.1.109:
1 192.168.1.109 8A:47:01:54:89:11 Disconnect 80 admin admin
And this is reconnected, the state after connection is:
1 192.168.1.109 8A:47:01:54:89:11 Connect 80 admin admin
Renewal table 2 obtains new channel management list, as shown in table 5 below:
Table 5
Based on the inventive concept as method, the embodiment of the present invention also provides for a kind of monitoring device, as it is shown on figure 3, bag Include:
Acquisition module 301, for getting an IP address and first MAC Address of remote equipment record, wherein, described Oneth IP address represent each passage that described remote equipment includes with described monitoring device be connected use IP address, described first MAC Address is used for identifying described remote equipment;
Identification module 302, for each passage of including for described monitoring device, from the IP address got and In first MAC Address, determine the IP address with described channel attached remote equipment and the first MAC Address, and really Make the 2nd IP address with described channel attached remote equipment and the second MAC Address that self currently preserves;
Modified module 303, for if it is determined that described first MAC Address and the described second MAC Address phase determined With, and the described IP address determined is different from the described 2nd IP address determined, described monitoring device is by described the A described IP address is revised as in two IP addresses;
Link block 304, is used for using a described IP address, by the described passage of described monitoring device with described remotely Equipment reconnects.
The embodiment of the present invention provide a kind of monitoring device, first monitoring device get remote equipment record for table Levy each channel attached IP address included with described monitoring device and for identifying a MAC ground of described remote equipment Location, each passage that described monitoring device is included, from the IP address got and the first MAC Address, determine That get that currently preserve with described monitoring device self with described channel attached remote equipment the first MAC Address with institute The second MAC Address stating channel attached remote equipment is identical, and the institute with described channel attached remote equipment got State the 2nd IP address with described channel attached remote equipment that an IP address preserves from described monitoring device different after, A described IP address is revised as in the described 2nd IP address that described monitoring device is preserved by described monitoring device, and uses described Oneth IP address, reconnects the described passage of described monitoring device with described remote equipment.IP ground due to remote equipment When location changes, a described IP ground is revised as in the described 2nd IP address that described monitoring device is preserved by described monitoring device Location, it is achieved that monitoring device reconnects automatically with this remote equipment, thus manager need not log on monitoring device backstage Go to the IP address of the remote device of record that amendment preserved, it is to avoid the waste of time and manpower.
Optionally, described acquisition module specifically for:
Sending broadcast, described broadcast feeds back an IP address of described remote equipment for indicating remote equipment With the first MAC Address;
Receive the feedback message of described remote equipment, described feedback message comprises an IP ground of described remote equipment Location and the first MAC Address.
Optionally, described link block is additionally operable to: the described passage of described monitoring device and described remote equipment are in even When connecing state, first the described passage of described monitoring device is disconnected with described remote equipment, re-use a described IP ground Location, reconnects the described passage of described monitoring device with described remote equipment.
Optionally, acquisition module specifically for:
Periodically send described broadcast;Or
After determining that arbitrary passage of described monitoring device and remote equipment disconnect, send described broadcast.
Optionally, described identification module is additionally operable to:
Each passage that described monitoring device is included, described monitoring device get with described channel attached far When the second MAC Address with described channel attached remote equipment that first MAC Address of journey equipment preserves from self is different, institute State monitoring device and keep the current state of described passage and remote equipment.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware Execute the form of example.And, the present invention can use at one or more computers wherein including computer usable program code The upper computer program product implemented of usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) The form of product.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one The step of the function specified in individual square frame or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to include excellent Select embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof Within, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. the method reconnected, it is characterised in that the method includes:
Monitoring device gets an IP address and first MAC Address of remote equipment record, wherein, a described IP address table Showing that each passage that described remote equipment includes with described monitoring device is connected the IP address used, described first MAC Address is used for Identify described remote equipment;
The each passage included for described monitoring device, described monitoring device is from the IP address got and a MAC In address, determine the IP address with described channel attached remote equipment and the first MAC Address, and determine self Current the 2nd IP address with described channel attached remote equipment preserved and the second MAC Address;
If it is determined that described first MAC Address identical with described second MAC Address determined, and described first determined IP address is different from the described 2nd IP address determined, described 2nd IP address is revised as described first by described monitoring device IP address;
Described monitoring device uses a described IP address, by the described passage of described monitoring device with described remote equipment again Connect.
Method the most according to claim 1, it is characterised in that described monitoring device gets the first of remote equipment record IP address and the first MAC Address, including:
Described monitoring device sends broadcast, and described broadcast feeds back the of described remote equipment for indicating remote equipment One IP address and the first MAC Address;
Described monitoring device receives the feedback message of described remote equipment, comprises described remote equipment in described feedback message Oneth IP address and the first MAC Address.
Method the most according to claim 1, it is characterised in that described monitoring device uses a described IP address, by institute The described passage stating monitoring device reconnects with described remote equipment, including:
When the described passage of described monitoring device and described remote equipment are in connection status, first by described in described monitoring device Passage disconnects with described remote equipment, re-uses a described IP address, by described passage and the institute of described monitoring device State remote equipment to reconnect.
Method the most according to claim 1, it is characterised in that described monitoring device sends described broadcast, including:
Described monitoring device periodically sends described broadcast;Or
After described monitoring device determines that arbitrary passage of described monitoring device and remote equipment disconnect, send described extensively Broadcast message.
Method the most according to claim 1, it is characterised in that described monitoring device gets the first of remote equipment record After IP address and the first MAC Address, the method also includes:
The each passage included for described monitoring device, what described monitoring device got channel attached remotely sets with described When the second MAC Address with described channel attached remote equipment that the first standby MAC Address preserves from self is different, described prison Control equipment keeps the current state of described passage and remote equipment.
6. a monitoring device, it is characterised in that described monitoring device includes:
Acquisition module, for getting an IP address and first MAC Address of remote equipment record, wherein, a described IP Address represents that each passage that described remote equipment includes with described monitoring device is connected the IP address used, a described MAC ground Location is used for identifying described remote equipment;
Identification module, for each passage included for described monitoring device, from the IP address got and a MAC In address, determine the IP address with described channel attached remote equipment and the first MAC Address, and determine self Current the 2nd IP address with described channel attached remote equipment preserved and the second MAC Address;
Modified module, for if it is determined that described first MAC Address identical with described second MAC Address determined, and really The described IP address made is different from the described 2nd IP address determined, described monitoring device is by described 2nd IP address It is revised as a described IP address;
Link block, is used for using a described IP address, by the described passage of described monitoring device and described remote equipment weight New connection.
Monitoring device the most according to claim 6, it is characterised in that described acquisition module specifically for:
Sending broadcast, described broadcast feeds back an IP address and the of described remote equipment for indicating remote equipment One MAC Address;
Receive the feedback message of described remote equipment, described feedback message comprises described remote equipment an IP address and First MAC Address.
Monitoring device the most according to claim 6, it is characterised in that described link block is additionally operable to: described monitoring device Described passage and described remote equipment when being in connection status, first the described passage of described monitoring device is remotely set with described For disconnecting, re-use a described IP address, the described passage of described monitoring device is connected again with described remote equipment Connect.
Monitoring device the most according to claim 6, it is characterised in that described acquisition module specifically for:
Periodically send described broadcast;Or
After determining that arbitrary passage of described monitoring device and remote equipment disconnect, send described broadcast.
Monitoring device the most according to claim 6, it is characterised in that described identification module is additionally operable to:
The each passage included for described monitoring device, what described monitoring device got channel attached remotely sets with described When the second MAC Address with described channel attached remote equipment that the first standby MAC Address preserves from self is different, described prison Control equipment keeps the current state of described passage and remote equipment.
CN201610356068.2A 2016-05-25 2016-05-25 A kind of method and monitoring device of reconnect Active CN106067906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610356068.2A CN106067906B (en) 2016-05-25 2016-05-25 A kind of method and monitoring device of reconnect

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610356068.2A CN106067906B (en) 2016-05-25 2016-05-25 A kind of method and monitoring device of reconnect

Publications (2)

Publication Number Publication Date
CN106067906A true CN106067906A (en) 2016-11-02
CN106067906B CN106067906B (en) 2019-05-24

Family

ID=57420224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610356068.2A Active CN106067906B (en) 2016-05-25 2016-05-25 A kind of method and monitoring device of reconnect

Country Status (1)

Country Link
CN (1) CN106067906B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973359A (en) * 2017-03-07 2017-07-21 重庆西山科技股份有限公司 Quick method, device, wireless device and the communication system for setting up wireless connection
CN108683701A (en) * 2018-04-03 2018-10-19 浙江大华技术股份有限公司 A kind of connection method and rear end equipment, IPC
CN109286690A (en) * 2018-08-29 2019-01-29 博瓦(武汉)科技有限公司 Automatically the method for peer IP is obtained in a kind of local area network
CN109743540A (en) * 2018-12-11 2019-05-10 深圳市天视通电子科技有限公司 A kind of automatic method for retrieving of network camera-shooting and recording device and system
CN113098972A (en) * 2021-04-12 2021-07-09 京东数科海益信息科技有限公司 Method and device for connecting with equipment, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102256103A (en) * 2010-05-20 2011-11-23 鸿富锦精密工业(深圳)有限公司 Application server and method for realizing camera control
CN102710805A (en) * 2012-05-14 2012-10-03 浙江宇视科技有限公司 Method and device for updating internet protocol (IP) address
KR101375240B1 (en) * 2013-01-18 2014-03-17 주식회사 나다텔 Video serveillance system and operating method thereof
CN104601959A (en) * 2015-01-29 2015-05-06 浙江宇视科技有限公司 Video monitoring system and method for rapidly accessing web camera

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102256103A (en) * 2010-05-20 2011-11-23 鸿富锦精密工业(深圳)有限公司 Application server and method for realizing camera control
CN102710805A (en) * 2012-05-14 2012-10-03 浙江宇视科技有限公司 Method and device for updating internet protocol (IP) address
KR101375240B1 (en) * 2013-01-18 2014-03-17 주식회사 나다텔 Video serveillance system and operating method thereof
CN104601959A (en) * 2015-01-29 2015-05-06 浙江宇视科技有限公司 Video monitoring system and method for rapidly accessing web camera

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973359A (en) * 2017-03-07 2017-07-21 重庆西山科技股份有限公司 Quick method, device, wireless device and the communication system for setting up wireless connection
CN106973359B (en) * 2017-03-07 2020-10-09 重庆西山科技股份有限公司 Method and device for quickly establishing wireless connection, wireless equipment and communication system
CN108683701A (en) * 2018-04-03 2018-10-19 浙江大华技术股份有限公司 A kind of connection method and rear end equipment, IPC
CN109286690A (en) * 2018-08-29 2019-01-29 博瓦(武汉)科技有限公司 Automatically the method for peer IP is obtained in a kind of local area network
CN109743540A (en) * 2018-12-11 2019-05-10 深圳市天视通电子科技有限公司 A kind of automatic method for retrieving of network camera-shooting and recording device and system
CN113098972A (en) * 2021-04-12 2021-07-09 京东数科海益信息科技有限公司 Method and device for connecting with equipment, electronic equipment and storage medium
CN113098972B (en) * 2021-04-12 2023-01-31 京东科技信息技术有限公司 Method and device for connecting with equipment, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106067906B (en) 2019-05-24

Similar Documents

Publication Publication Date Title
CN106067906A (en) A kind of method of reconnect and monitoring device
CN113807538B (en) Federal learning method, federal learning device, electronic equipment and storage medium
EP3200487A1 (en) Message processing method and apparatus
US10623193B2 (en) Enhancing collaboration in real-time group chat system and method
CN103944869A (en) Wake on cloud
EP3373514B1 (en) User terminal grouping method, conference server, and conference system
US20160100356A1 (en) Method and controller for implementing wireless network cloud
CN108234400B (en) Attack behavior determination method and device and situation awareness system
CN104812021B (en) A kind of method and device of AP access AC
US10652944B2 (en) Apparatus and method to control reconnection of a terminal device to a wireless network via another wireless network
CN106550030B (en) A kind of data sharing method, apparatus and system
CN108934035A (en) Data back up method and device
CN108880885A (en) A kind of message processing method and device
CN106254312A (en) A kind of method and device being realized server attack protection by virtual machine isomery
US20140089496A1 (en) Apparatus and method for monitoring web application telecommunication data by user
CN106254814B (en) Conference recovery method, service management center and system
CN104702591A (en) Method and system for penetrating through firewall based on port forwarding multiplexing technology
CN105101203A (en) Method and device for processing information of wireless local area network
CN104539509A (en) Method and device for informing user of channel broadcast
CN112231308A (en) Method, device, equipment and medium for removing weight of horizontal federal modeling sample data
CN102014131B (en) Device safety check method combining off-line check and central summary
CN106713287A (en) Method, apparatus and system for automatically registering wireless access point
CN107567688A (en) For handling the apparatus and method of emergency alert message in broadcast system
CN105939401B (en) Handle the method and device of message
CN105511988B (en) Encrypted data management method and device and electronic equipment

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