CN109327560A - IP address re-rents method, apparatus, network system and electronic equipment - Google Patents

IP address re-rents method, apparatus, network system and electronic equipment Download PDF

Info

Publication number
CN109327560A
CN109327560A CN201811360985.3A CN201811360985A CN109327560A CN 109327560 A CN109327560 A CN 109327560A CN 201811360985 A CN201811360985 A CN 201811360985A CN 109327560 A CN109327560 A CN 109327560A
Authority
CN
China
Prior art keywords
equipment
rents
request
wireless router
substitution
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
CN201811360985.3A
Other languages
Chinese (zh)
Other versions
CN109327560B (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.)
Shenzhen Lumi United Technology Co Ltd
Original Assignee
Shenzhen Lumi United 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 Shenzhen Lumi United Technology Co Ltd filed Critical Shenzhen Lumi United Technology Co Ltd
Priority to CN201811360985.3A priority Critical patent/CN109327560B/en
Publication of CN109327560A publication Critical patent/CN109327560A/en
Application granted granted Critical
Publication of CN109327560B publication Critical patent/CN109327560B/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/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the present application provides a kind of IP address and re-rents method, apparatus, network system and electronic equipment.The substitution that the second equipment is sent is received by the first equipment and re-rents IP request, and first equipment is established with wireless router to be connect;Then the IP configuration information of second equipment is obtained, the IP configuration information distributes to second equipment by the wireless router;Then the IP configuration information based on second equipment creates dhcp broadcast packet;It is periodically sent again to the wireless router and re-rents request including the dhcp broadcast packet.The second equipment, which may be implemented, in this method can be assigned to the dynamic IP addressing same with upper task phase, so as to quickly connect upper wireless router, furthermore can reduce the power consumption of the second equipment during the second device sleeps power off and extend the service life of battery.

Description

IP address re-rents method, apparatus, network system and electronic equipment
Technical field
This application involves fields of communication technology, re-rent method, apparatus, network system more particularly, to a kind of IP address And electronic equipment.
Background technique
DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) enables server It is enough dynamically to provide IP (Internet Protocol, net association) address for other hosts in network, and can not give DHCP, DNS (Domain Name System, domain name system) and WINS (Windows are removed in Intranet (inline) net Internet Name Service, window networking name service) any server setting outside server and maintenance it is static IP address.Equipment containing wireless network card can be connected to wireless router by WiFi and be assigned to a dynamic IP addressing, But dynamic IP address all has lease time, this IP address rental period one arrives, and wireless router will recycle the IP address, and Distribute to the arbitrary equipment for being connected to wireless router next time.In addition, needing when equipment connects wireless router by minimum The discover/offer/request/ack Four processes of DHCP, but due to the difference of router, the difference of environment can be led It causes the duration of each process of DHCP uncertain or increases certain processes of DHCP, so that entire DHCP in some scenarios Process may be very long.
Summary of the invention
It re-rents method, apparatus, network system and electronics in view of this, the embodiment of the present application provides a kind of IP address and sets It is standby, to realize the improvement above problem.
In a first aspect, the embodiment of the present application, which provides a kind of IP address, re-rents method, it is applied to the first equipment, this method packet Include: the first equipment receives the substitution that the second equipment is sent and re-rents IP request, and the first equipment is established with wireless router to be connect;It obtains The IP configuration information of the second equipment is taken, which distributes to the second equipment by wireless router;Based on the second equipment IP configuration information creates dhcp broadcast packet;It is periodically sent to wireless router and re-rents request including dhcp broadcast packet.
Second aspect, the embodiment of the present application provide a kind of IP address and re-rent method, are applied to the second equipment, this method packet Include: the second equipment detects whether that triggering enters the instruction of state of not networking, the second equipment and wireless routing when the state that do not network Device disconnects network connection;If the second equipment detects triggering and enters the instruction of state of not networking, the second equipment is to the first equipment Substitution re-rents IP request, wherein the first equipment and wireless router establish network connection, and substitution re-rents IP request for requesting The IP address of second equipment is re-rented;Second equipment enters the state that do not network.
The third aspect, the embodiment of the present application provide a kind of IP address and re-rent method, this method comprises: the second equipment detects Whether there is triggering to enter the instruction of state of not networking, the second equipment and wireless router are disconnected and being connected to the network when the state that do not network; If the second equipment detects that triggering enters the instruction for the state that do not network, the second equipment is re-rented IP to the first equipment transmission substitution and is asked It asks, wherein substitution re-rents IP request for requesting the IP address to the second equipment to be re-rented;First equipment receives the second equipment The substitution of transmission re-rents IP request, and the first equipment is established with wireless router to be connect;First equipment obtains the IP of the second equipment Configuration information, the IP configuration information distribute to the second equipment by wireless router;First equipment is configured based on the IP of the second equipment Information creating dhcp broadcast packet;First equipment periodically sends to wireless router and re-rents request including dhcp broadcast packet;Second Equipment enters the state that do not network.
Fourth aspect, the embodiment of the present application provide a kind of IP address and re-rent device, run on the first equipment, the device packet Include: request receiving module receives the substitution that the second equipment is sent for the first equipment and re-rents IP request, the first equipment and no route Connection is established by device;Data obtaining module, for the first equipment obtain the second equipment IP configuration information, IP configuration information by Wireless router distributes to the second equipment;Data creation module is created for the first equipment based on the IP configuration information of the second equipment Build dhcp broadcast packet;Request sending module, periodically sending to wireless router for the first equipment includes the continuous of dhcp broadcast packet Rent request.
5th aspect, the embodiment of the present application provide a kind of IP address and re-rent device, run on the second equipment, the device packet Include: instruction detection module detects whether that triggering enters the instruction of state of not networking for the second equipment, the when the state that do not network Two equipment and wireless router, which disconnect, to be connected to the network;Request sending module, if having detected that triggering enters not for the second equipment The instruction of networking state, the second equipment send substitution to the first equipment and re-rent IP request, wherein the first equipment and wireless router Network connection is established, substitution re-rents IP request for requesting the IP address to the second equipment to be re-rented;Power down module, is used for Second equipment enters the state that do not network.
6th aspect, the embodiment of the present application provide a kind of network system, including the first equipment, wireless router and the Two equipment, the first equipment are connect with wireless router.Second equipment is for detecting whether the finger for having triggering to enter the state that do not network It enables, the second equipment and wireless router, which disconnect, when the state that do not network is connected to the network;If the second equipment is also used to the detection of the second equipment To the instruction for having triggering to enter the state that do not network, the second equipment sends substitution to the first equipment and re-rents IP request, wherein substitution is continuous IP request is rented for requesting the IP address to the second equipment to be re-rented;First equipment is used to receive the substitution of the second equipment transmission IP request is re-rented, the first equipment is established with wireless router to be connect;First equipment is also used to obtain the IP configuration of the second equipment Information, IP configuration information distribute to the second equipment by wireless router;First equipment is also used to the configuration of the IP based on the second equipment Information creating dhcp broadcast packet;It includes that re-renting for dhcp broadcast packet is asked that first equipment, which is also used to periodically send to wireless router, It asks;Second equipment is also used to enter the state that do not network.
7th aspect, the embodiment of the present application provide a kind of electronic equipment, including memory and one or more processing Device, one or more programs are stored in memory and are configured as being performed by one or more processors, one or more Program is configured to carry out the IP address that above-mentioned first aspect proposes and re-rents method.
Eighth aspect, the embodiment of the present application provide a kind of electronic equipment, including memory and one or more processing Device, one or more programs are stored in memory and are configured as being performed by one or more processors, one or more Program is configured to carry out the IP address that above-mentioned second aspect proposes and re-rents method.
9th aspect, the embodiment of the present application provide a kind of computer readable storage medium, computer readable storage medium In be stored with program code, wherein execute above-mentioned IP address when program code is loaded and executed by processor and re-rent method.
Compared with the existing technology, IP address provided by the embodiments of the present application re-rents method, apparatus, electronic equipment and storage and is situated between Matter.By completing work i.e. when the second equipment substitution will be sent to the first equipment and re-rent IP request before suspend mode or power-off, then the One equipment receives the request and substitutes the second equipment and requests to the IP that re-rents that wireless router sends the second equipment, then according to nothing The dynamic IP for re-renting confirmation signal the second equipment of realization of line router return re-rents keep-alive.This method may be implemented second and set It is standby to be assigned to the dynamic IP addressing same with upper task phase, so as to quickly connect upper wireless router, furthermore second Device sleeps can reduce the power consumption of the second equipment during powering off and extend the service life of battery.
In order to which the above and other objects, features and advantages of the application can be clearer and more comprehensible, preferable implementation is cited below particularly Example, and cooperate institute's accompanying drawings, it is described in detail below.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows the flow diagram of IP address dynamic acquisition in existing DHCP system;
Fig. 2 shows a kind of schematic diagrames of network system provided by the embodiments of the present application;
Fig. 3 shows the flow chart that a kind of IP address provided by the embodiments of the present application re-rents the interactive process of method;
Fig. 4 shows the structural block diagram of the first equipment of one of specific example for the method for Fig. 3;
Fig. 5 shows the structural block diagram of the second equipment of one of specific example for the method for Fig. 3;
Fig. 6 shows first equipment of the second equipment in Fig. 5 into Fig. 4 and sends the process signal that substitution IP re-rents request Figure;
Fig. 7 shows the first equipment in Fig. 4 and receives the process signal that wireless router response IP address re-rents confirmation signal Figure;
Fig. 8 shows first equipment of the second equipment in Fig. 5 into Fig. 4 and sends the process for terminating and substituting and re-renting IP request Schematic diagram;
Fig. 9 shows the flow chart that a kind of IP address provided by the embodiments of the present application re-rents method;
Figure 10 shows the flow chart that another IP address provided by the embodiments of the present application re-rents method;
Figure 11 shows the structural block diagram that a kind of IP address provided by the embodiments of the present application re-rents device;
Figure 12 shows the structural block diagram that another IP address provided by the embodiments of the present application re-rents device;
Figure 13 shows the structural block diagram of a kind of electronic equipment provided by the embodiments of the present application;
Figure 14 shows realizing for saving or carrying according to the IP address of the embodiment of the present application for the embodiment of the present application Re-rent the storage unit of the program code of method.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile the application's In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
DHCP is generally applied in large-scale LAN environment, and main function is the management concentrated, distributes IP address, So that the host in network environment is dynamically obtained the information such as IP address, the address Gateway, dns server address, and is able to ascend The utilization rate of address.
In order to better understand technical solution provided by the embodiments of the present application, below to the IP address dynamic in DHCP system Process is obtained simply to be described.
Referring to Fig. 1, the process of dhcp client from Dynamic Host Configuration Protocol server dynamic acquisition IP address is main in DHCP system May include:
Dhcp client broadcast transmission DHCP Discover (it was found that) message, so as to DHCP available in Network Search clothes Business device.After Dynamic Host Configuration Protocol server receives DHCP Discover message, IP address is distributed for dhcp client, and to DHCP client Respond DHCP Offer (offer) message for carrying the IP address in end.After dhcp client receives DHCP Offer message, Broadcast transmission DHCP Request (request) message.After Dynamic Host Configuration Protocol server receives DHCP Request message, to DHCP client Respond DHCP ACK (confirmation) message in end.Wherein, after Dynamic Host Configuration Protocol server receives DHCP Request message, Dynamic Host Configuration Protocol server The IP address carried in available DHCP Request message judges whether the IP address is that current Dynamic Host Configuration Protocol server is distributed to The IP address of dhcp client.If so, whether Dynamic Host Configuration Protocol server, which further confirms that have, distributes to DHCP visitor for above-mentioned IP address Inform that the above-mentioned IP address of dhcp client can if so, Dynamic Host Configuration Protocol server sends DHCP ACK message to dhcp client in family end With;Otherwise, Dynamic Host Configuration Protocol server sends DHCP NAK message to dhcp client, informs that the above-mentioned IP address of dhcp client can not With.
When dhcp client needs to dynamically distribute the IP address with the lease time limit, Dynamic Host Configuration Protocol server is to dhcp client The IP address of dynamic allocation has the lease time limit, and before the lease time limit expires, dhcp client can be to Dynamic Host Configuration Protocol server unicast It sends DHCP Request message application and extends the lease time limit.But if dhcp client is not before the lease time limit expires Extending the lease time limit to Dynamic Host Configuration Protocol server application, then Dynamic Host Configuration Protocol server can delete the corresponding lease information of dhcp client, The IP address for distributing to dhcp client is withdrawn, and the IP address is distributed to any DHCP visitor of connection next time Dynamic Host Configuration Protocol server Family end.So one mistake of IP address lease time limit, former dhcp client are again coupled to the dynamic IP addressing distributed when Dynamic Host Configuration Protocol server It may not be just original IP address.In addition, needs, which are powered on, will connect upper wireless router and carry out wireless communication For equipment, complete DHCP connection procedure is it cannot be guaranteed that quickly in connection.
Therefore, inventor, which has found that dynamic IP has the lease time limit and is difficult to remain unchanged, cannot quickly connect upper nothing with equipment After the technical issues of line router can make troubles to user, propose the IP address in the embodiment of the present application re-rent method, Device, network system and electronic equipment may be implemented in the case that wireless router do not power off or reset, on equipment is each The enough dynamic IP addressings for quickly connecting upper wireless router and being assigned to as when upper task of electric energy.
For the ease of be described in detail application scheme, below first in conjunction with attached drawing to the application environment in the embodiment of the present application into Row is introduced.
Referring to Fig. 2, being a kind of network system 10 provided by the embodiments of the present application, which includes: second to set Standby 11, first equipment 12, wireless router 13 and cloud 14.As a kind of mode, the second equipment 11 is usually that low-power consumption is set It is standby, such as low-power consumption battery camera, human body sensor, door and window sensor, Temperature Humidity Sensor, water sensor, natural gas Alarm, smoke alarm, switch on wall, wall socket, intelligent socket, wireless switching, wireless wall patch switch, magic square control The smart machines such as device, curtain motor, air-conditioning companion, are not limited thereto.
Second equipment 11 only (such as passes through the channel radios such as WiFi, ZigBee or bluetooth by the first equipment 12 in some triggerings Letter mode sends the work of the second equipment of wake instruction 11, or triggering command such as key, sensing on 11 ontology of the second equipment Device detection, timing wake-up) in the case where few minutes of operation even more than ten seconds, and without route in this of short duration time connection By device 13, wireless related work is handled, such as uploaded videos or picture send a message to visitor to cloud 14 and by cloud 14 Family end etc..
Optionally, the first equipment 12 can be gateway, web camera etc., and the first equipment 12 is in long electric working condition, And it keeps connecting with wireless router 13 always.It should be noted that the cloud 14 in the embodiment of the present application can be server One kind.
Optionally, the first equipment 12 and the second equipment 11 are connect by local area network with wireless router 13, thus and cloud 14 carry out data communication, and as a kind of mode, above-mentioned local area network may include ZigBee technology, WIFI or bluetooth etc..First sets Standby 12 and second can carry out data exchange by local area network between equipment 11.Optionally, the first equipment 12 and the second equipment 11 In be stored with the program data including dhcp client.
In embodiments herein, the first equipment 12 is in long electric working condition, and the second equipment 11 will be in suspend mode Or when power-down state, in order to guarantee that the second equipment 11 can be assigned to the dynamic IP same with upper task phase in lower task Address, and wireless router 13 can be quickly connected, then the dynamic IP of the second equipment 11 needs moving as the first equipment 12 The same corresponding relationship that IP address and the address Mac are always maintained at 13 end of wireless router of state IP is based on such situation, works as inspection The rental period for measuring the second equipment will be greater than for the first default rental period or the remaining rental period of second equipment is default less than second When the rental period (such as the remaining rental period of the second equipment is less than the 50% of rental period, the first default rental period and the second default rental period are according to reality Border situation is set), it needs to substitute the second equipment 11 in the case where 11 suspend mode of the second equipment or power down by the first equipment 12 Carry out dynamic IP addressing re-rents work, i.e., substitutes the second equipment 11 from the first equipment 12 and re-rent to wireless router transmission substitution IP request, when carrying out re-renting keep-alive to the dynamic IP of the second equipment 11 to realize, while the second equipment 11 can also be allowed to work again Wireless router 13 can quickly be connected.
Present embodiments are specifically described below in conjunction with attached drawing.
Referring to Fig. 3, be the flow chart for the interactive process that a kind of IP address provided by the embodiments of the present application re-rents method, this Embodiment provides a kind of IP address and re-rents method, which comprises
The S110: the second equipment of step detects whether that triggering enters the instruction of state of not networking, it is described do not network state when Second equipment and wireless router, which disconnect, to be connected to the network.
Wherein, it should be noted that when the second equipment connects wireless router for the first time, the second equipment can be obtained by nothing Line router distributes to the dynamic IP addressing of the second equipment, in such cases, existing in wireless router and the second equipment pair The lease information answered, wherein the IP address in the lease information is the IP address dynamically distributed.In addition, wireless router meeting The address Mac of second equipment and its dynamic IP addressing are bound.
Optionally, it may include detection module in the second equipment, which can be used for having detected whether that triggering changes Become the instruction of the networking state of the second equipment.As a kind of mode, above-metioned instruction can be to be triggered by peripheral equipment control, example Such as, the second equipment receives the dormancy instruction that external equipment is sent, which, which can trigger, changes the second equipment by networking shape State enters the state that do not network, wherein external equipment can be mobile phone, tablet computer etc. and set with the networking of mobile communication function It is standby, it is not limited thereto.For example, if can be set to second when the second equipment and cell phone client are bound by cell phone client Standby networking state is controlled, and when the suspend mode trigger action of the second equipment of mobile phone response user, mobile phone can be to second Equipment sends dormancy instruction, and in such cases, the second equipment receives the dormancy instruction that cell phone client is sent, so as to so that the Two equipment enter the state that do not network by networking state.
Alternatively, if being stored with internal event in the second equipment, internal event can also trigger above-metioned instruction. Wherein, internal event can be timing dormancy instruction or moment dormancy instruction is completed in work.For example, it is assumed that being stored in the second equipment Dormancy instruction is completed in work, and the working time of the second equipment is extremely short, it is only necessary to which a few minutes or short more than ten seconds set when second The standby moment for completing a certain item work, work can be triggered and complete dormancy instruction, so as to trigger the company for changing the second equipment Net state.
Optionally, when detecting the instruction that the second equipment has triggering to enter the state that do not network, the second equipment will enter Suspend mode or power-down state, in such cases, the second equipment will disconnect network connection with wireless router.When the second equipment and wirelessly After router disconnects network connection, the second equipment of short duration can be powered off, so as to reduce energy consumption.
Step S120: if second equipment detects the triggering and enters the instruction of state of not networking, described second Equipment sends substitution to the first equipment and re-rents IP request.
Wherein, when the second equipment, which is in, does not network state, and when the rental period of the dynamic IP of the second equipment will expire, the Two equipment are unable to complete to wireless router application and re-rent, so second sets when the second equipment will enter and not network state The standby substitution that can send to the first equipment re-rents IP request, is used to indicate first the second equipment of equipment replacement and completes the dynamic of the second equipment State IP address re-rents keep-alive work.
Optionally, in embodiments herein, the second equipment sends before substitution re-rents IP request to the first equipment and goes back It include: that the second equipment detects whether that substitution is transmitted across to the first equipment re-rents IP request, if being transmitted across, substitution re-rents IP request In do not include the second equipment IP configuration information;Otherwise, substitution re-rents the IP configuration information including the second equipment in IP request.Its In, the IP configuration information of the second equipment may include the dynamic IP addressing of the second equipment, the address Mac and IP rental period.
If the second equipment is re-rented in IP request to the substitution that the first equipment is sent all carry IP configuration information every time, can increase Add the energy consumption of the second equipment, while shortening the service life of the battery of the second equipment.In order to improve the problem, reach reduction by second The energy consumption of equipment, and then extend the effect of the service life of the battery of the second equipment, as a kind of mode, sent out if it is first time It send, then substitution, which re-rents IP request, just carries IP configuration information;If fruit is not to send for the first time, then substitution re-rents IP request just IP configuration information can not be carried.
Wherein, the second equipment can determine whether that the first equipment is transmitted across substitution and re-rents IP in several ways and ask It asks, such as:
Optionally, storage region can be sent in the second equipment configured with request, second is stored in the storage region and sets The substitution that preparation passes through re-rents IP solicited message record list, by searching for the list, sends if found to the first equipment Substitution re-rent IP request information record, then can be determined that be not for the first time send, then substitution re-rent IP request in can Not carry IP configuration information;If not finding to the substitution that the first equipment is sent and re-renting the information record that IP is requested, Can be determined that it is to send for the first time, then substitution, which is re-rented in IP request, just carries IP configuration information.
It should be noted that if the second equipment is sent to the first equipment when the IP configuration information of the second equipment has altered Substitution re-rents the IP configuration information for needing to carry the second equipment when IP request again.
Step S130: first equipment receives the substitution that second equipment is sent and re-rents IP request, and described first sets Standby establish with wireless router connect.
Wherein, the substitution that the first equipment receives that the second equipment is sent re-rents IP request, and the first equipment and wireless router Network connection is established, in long electric working condition.
Step S140: first equipment obtains the IP configuration information of second equipment, and the IP configuration information is by institute It states wireless router and distributes to second equipment.
As a kind of mode, if the first equipment may include: to detect the step of obtaining the IP configuration information of the second equipment Substitution re-rents IP request and carries IP configuration information, and the IP configuration information that the second equipment is obtained in IP request is re-rented from substitution;If It detects that substitution re-rents IP request and do not carry IP configuration information, and IP configuration information has been locally stored, set from local acquisition second Standby IP configuration information.Wherein, which distributes to the second equipment by wireless router.
As a kind of mode, if the second equipment, which sends substitution to the first equipment for the first time, re-rents IP request, which is re-rented The IP configuration information of the second equipment is carried in IP request, the first equipment can be re-rented in IP request from substitution and obtain the second equipment IP configuration information.
Alternatively, if the second equipment is not to send substitution to the first equipment for the first time to re-rent IP request, and first The IP configuration information of the second equipment is stored in the local storage of equipment, then the first equipment can be obtained from local storage The IP configuration information of second equipment.
It should be noted that the first equipment can identify that substitution re-rents whether IP request is to send for the first time in the following way : whether the first equipment first can identify that the substitution re-rents IP request, detect the substitution and re-rent in IP request and set comprising second Standby IP configuration information, as a kind of mode, if not including, can be determined that the substitution re-rents IP request is not to send out for the first time It send, because if being to send for the first time, then do not record the IP configuration information of the second equipment in the first equipment also, in such cases, If the substitution that the second equipment is sent, which is re-rented in IP request, does not carry IP configuration information, the first equipment can not successfully obtain the The IP configuration information of two equipment, it is possible to which being determined as that the substitution re-rents IP request is not to send for the first time.
Alternatively, if detecting that the substitution is re-rented includes the IP configuration information of the second equipment in IP request, It so can be determined that the substitution is re-rented IP request and sent for the first time.It should be noted that if the second equipment is to the first equipment The substitution sent for the first time is re-rented in IP request and carries IP configuration information, but leads to the due to powering off suddenly etc. the second equipment It does not record the IP configuration information of the second equipment in one equipment also, is sent when work to the first equipment then the second equipment networks again Substitution re-rent IP request also can be determined that send for the first time.
Step S150: first equipment creates dhcp broadcast packet based on the IP configuration information of second equipment.
As a kind of mode, the first equipment can dynamic IP addressing based on the second equipment and Mac address creation one Dhcp broadcast packet, optionally, the dhcp broadcast packet are sent in such a way that Request is requested.
Step S160: it includes re-renting for the dhcp broadcast packet that first equipment, which is periodically sent to the wireless router, Request.
Optionally, how the side for re-renting request including dhcp broadcast packet periodically is sent to wireless router to the first equipment Formula can be described as follows:
As a kind of mode, the first equipment can preselect the setting a certain moment, such as when the rental period for detecting the second equipment It will be greater than instantaneous, Ke Yitong of the remaining rental period less than the second default rental period of the first default rental period or second equipment It includes that re-renting for dhcp broadcast packet is asked that the mode for opening thread, which is crossed, to substitute the second equipment and periodically send automatically to wireless router It asks, in order to which the dynamic IP addressing to the second equipment carries out re-renting keep-alive.It wherein, will be big when the rental period that will measure the second equipment When the first default rental period or the remaining rental period of second equipment others also can be set into less than the second default rental period It carves, as long as meeting before the lease expiration of the second equipment.
It alternatively, may when the first equipment detects that the number of devices connecting with wireless router increases In the case where causing the network signal quality of the second equipment to decline, first equipment can by time by opening thread in a manner of replace The second equipment of generation is sent to wireless router re-rents request including dhcp broadcast packet, in order to the dynamic IP to the second equipment Location carries out re-renting keep-alive.
Optionally, it includes that re-renting for dhcp broadcast packet requests also to wrap later that the first equipment, which is periodically sent to wireless router, It includes: re-renting after re-renting confirmation signal of request return when the first equipment receives wireless router response, second can be considered as and set Standby dynamic IP addressing re-rents success, carries out re-renting keep-alive to the dynamic IP of the second equipment to realize.
Step S170: second equipment enters the state that do not network.
As a kind of mode, after the second equipment transmission termination substitution re-rents IP request, the state that do not network can be entered, such as Of short duration suspend mode or power-down state.
Optionally, in the case where the second equipment re-rents the successful situation of keep-alive based on mode above-mentioned, since wireless router does not have Have and withdraws the IP address for distributing to the second equipment originally, so after the second equipment wakes up from suspend mode or power-down state, second Equipment directly can quickly connect wireless router, to communicate with wireless router.
As a kind of mode, when the trigger action of the second equipment response wake-up states, the second equipment can pass through The modes such as ZigBee/WiFi/ bluetooth, which send termination, to be re-rented IP and requests to the first equipment.Optionally, the first equipment receives second and sets IP request is re-rented in the termination that preparation is sent, and the response of the first equipment, which terminates, re-rents request, and termination periodically includes to wireless router transmission Dhcp broadcast packet re-rents request.For example, if the first equipment is to realize the second equipment of substitution to dynamic by the thread of unlatching IP address re-rents keep-alive work, and the first equipment can terminate to open after request is re-rented in the termination for receiving the transmission of the second equipment Thread work and do not connecting so as to reduce the second equipment to stop substituting the second equipment to the keep-alive of re-renting of dynamic IP addressing Energy consumption under net state, so as to achieve the purpose that power saving.
Below by taking Fig. 4, Fig. 5, Fig. 6, Fig. 7 and Fig. 8 as an example, the present embodiment is illustratively illustrated:
Referring to Fig. 4, showing the structural block diagram of the first equipment of one kind 12 suitable for embodiments herein.Such as Fig. 4 It is shown, the first equipment 12 may include master control control unit 121, WiFi module 122 and other wireless modules 123 (such as ZigBee or bluetooth etc.), wherein WiFi module 122 is of coupled connections with master control control unit 121, wireless module 123 and master control control Unit 121 processed is of coupled connections.Data communication can be carried out with wireless router as a kind of mode WiFi module 122, and WiFi module 122 keeps connecting with wireless router always, and wireless module can be used for wireless module corresponding with Fig. 5 111 carry out data communication.
Referring to Fig. 5, showing the structural block diagram of the second equipment of one kind 11 suitable for embodiments herein.Such as Fig. 5 Shown, the second equipment 11 may include wireless module 111 (such as ZigBee or bluetooth etc.), microcontroller 112, WiFi module 113 and master control control module 114.Wherein, wireless module 111 is of coupled connections with microcontroller 112, microcontroller 112 and master Control control module 114 is of coupled connections, and WiFi module 113 is of coupled connections with master control control module 114.
Wherein, microcontroller 112 is by MCU (Microcontroller Unit, micro-control unit) and periphery peripheral hardware is low Power consumption sections composition, master control control module 114 are made of Soc (System on Chip, system level chip) and periphery peripheral hardware.It can Choosing, the peripheral hardware on the periphery MCU includes PIR (Passive Infra Red, electric infrared sensor), Battery (battery) and Button (key);The peripheral hardware on the periphery Soc includes Image Sensor (imaging sensor), NAND (flash memory) and DDR (double Rate synchronization dynamic RAM) etc..Wherein, the power consumption of master control control module 114 is higher than the power consumption of MCU and periphery peripheral hardware.
As a kind of mode, when the first equipment 11 is under non-networking state, the first equipment 11 only has microcontroller 112 Part, which has been under low-power consumption mode, to work, and master control control module 114 is in power down or dormant state, works as microcontroller 112 response act on the first equipment 11 trigger action instruction (such as key triggering, infrared acquisition, ZigBee or bluetooth etc. just Formula triggering wakes up master control control module 114) when, microcontroller 112 can control battery and supply electricity to master control control module 114, with Master control control module 114 is waken up from dormant state, so that the first equipment 11 be allow quickly to connect wireless routing Device and and external progress data communication.
Be assumed below the first equipment 12 be equipment A, the second equipment 11 be equipment B, to equipment B be in do not network state when, Equipment B to equipment A send substitution re-rent IP request and equipment A to wireless router send substitution re-rent IP request process into Row is described in detail as follows:
Referring to Fig. 6, one can be obtained and moved when equipment B is connect for the first time with wireless router 15 (please referring to Fig. 7) State IP, wherein the dynamic IP has a lease time limit, if it exceeds time limit equipment B is not requested to wireless router 15 It re-rents, then wireless router 15 will withdraw the dynamic IP after expiring, which is distributed to and is connected to wireless router next time 15 arbitrary equipment.And equipment B belongs to low power consuming devices, it is possible to which when just needing to re-rent, equipment B is also at the shape that do not network State is most preferably re-rented the time so that missing.So in order to guarantee equipment B network next time work when can be assigned to it is last Identical dynamic IP addressing, to allow equipment B quickly to connect wireless router 15, as shown in fig. 6, setting detecting The IP address rental period of standby B is that will be greater than the remaining rental period of the first default rental period or second equipment less than the second default rent When the phase, equipment B can send substitution to equipment A and re-rent IP request, which re-rents IP request for requesting equipment A to replace equipment B sends the substitution to wireless router 15 when equipment B is under non-networking state and re-rents IP request.
As a kind of mode, if equipment B, which sends substitution to equipment A for the first time, re-rents IP request, which re-rents IP request In can be with the IP configuration information of Portable device B, the i.e. dynamic IP addressing of equipment B, the rental period of IP address and the address Mac;As Another way, if equipment B, which is transmitted across substitution to equipment A, re-rents IP request, and the IP that equipment B is locally stored of equipment A matches Confidence breath, then the substitution re-rents IP the request not dynamic IP addressing of Portable device B, the rental period of IP address and the address Mac.As A kind of mode can send the substitution to the WiFi module 122 of equipment A by the WiFi module 113 of equipment B and re-rent IP request.
As a kind of mode, referring to Fig. 7, will be set after the substitution that equipment A has received equipment B transmission re-rents IP request One DHCP Request broadcast packet of dynamic IP addressing and Mac address creation of standby B, then by the substitution re-rent IP request with The mode of DHCP Request broadcast is sent to wireless router 15, if the dynamic IP addressing of equipment B re-rents success, equipment A can receive the ack signal returned from wireless router 15, i.e. when the IP address of equipment B re-rents confirmation signal.
Referring to Fig. 8, when equipment B is when occurring the trigger action of wake up instruction, equipment B can lead to as a kind of mode It crosses wireless module 111 (such as WiFi/ZigBee/ bluetooth etc.) and re-rents IP request, the wireless mould of equipment A to equipment A transmission termination Block 123 (such as WiFi/ZigBee/ bluetooth etc.) receives the termination and re-rents IP request, and stops alternate device B and move to equipment B State IP address re-rent the work of keep-alive.
Optionally, after equipment B wakes up from suspend mode or power-down state, state before suspend mode is remain due to running environment, And in such cases, wireless router also remains original dynamic IP, thus the WiFi module 113 of equipment B can directly with 15 connection communication of wireless router, thus realize equipment B network again work when can be assigned to and last identical dynamic IP address, and can quickly connect wireless router.
A kind of IP address provided in this embodiment re-rents method, by completing work i.e. for suspend mode or power-off when the second equipment Before, substitution is sent to the first equipment and re-rents IP request, and then the first equipment receives the request and substitutes the second equipment to no route It is requested by the IP that re-rents that device sends the second equipment, the second equipment is then realized according to the confirmation signal of re-renting that wireless router returns Dynamic IP re-rent keep-alive.The second equipment may be implemented with being assigned to the dynamic IP same with upper task phase in this method Location can reduce the function of the second equipment so as to quickly connect upper wireless router, furthermore during the second device sleeps power off Consume and extend the service life of battery.
Referring to Fig. 9, be the flow chart that a kind of IP address provided by the embodiments of the present application re-rents method, the present embodiment provides A kind of IP address re-rents method, which comprises
The S210: the first equipment of step receives the substitution that the second equipment is sent and re-rents IP request, first equipment and wireless Router establishes connection.
Step S220: the IP configuration information of second equipment is obtained, the IP configuration information is by the wireless router Distribute to second equipment.
Step S230: the IP configuration information based on second equipment creates dhcp broadcast packet.
Step S240: it is periodically sent to the wireless router and re-rents request including the dhcp broadcast packet.
A kind of IP address provided in this embodiment re-rents method, by completing work i.e. for suspend mode or power-off when the second equipment Before, substitution is sent to the first equipment and re-rents IP request, and then the first equipment receives the request and substitutes the second equipment to no route It is requested by the IP that re-rents that device sends the second equipment, the second equipment is then realized according to the confirmation signal of re-renting that wireless router returns Dynamic IP re-rent keep-alive.The second equipment may be implemented with being assigned to the dynamic IP same with upper task phase in this method Location can reduce the function of the second equipment so as to quickly connect upper wireless router, furthermore during the second device sleeps power off Consume and extend the service life of battery.
Referring to Fig. 10, being the flow chart that a kind of IP address provided by the embodiments of the present application re-rents method, the present embodiment is mentioned Method is re-rented for a kind of IP address, which comprises
The S310: the second equipment of step detects whether that triggering enters the instruction of state of not networking, it is described do not network state when Second equipment and wireless router, which disconnect, to be connected to the network.
Step S320: if second equipment detects the triggering and enters the instruction of state of not networking, described second Equipment sends substitution to the first equipment and re-rents IP request, wherein first equipment and the wireless router establish network Connection, the substitution re-rent IP request for requesting the IP address to second equipment to be re-rented.
Step S330: second equipment enters the state that do not network.
A kind of IP address provided in this embodiment re-rents method, by completing work i.e. for suspend mode or power-off when the second equipment Before, substitution is sent to the first equipment and re-rents IP request, and then the first equipment receives the request and substitutes the second equipment to no route It is requested by the IP that re-rents that device sends the second equipment, the second equipment is then realized according to the confirmation signal of re-renting that wireless router returns Dynamic IP re-rent keep-alive.The second equipment may be implemented with being assigned to the dynamic IP same with upper task phase in this method Location can reduce the function of the second equipment so as to quickly connect upper wireless router, furthermore during the second device sleeps power off Consume and extend the service life of battery.
Figure 11 is please referred to, is the structural block diagram that a kind of IP address provided by the embodiments of the present application re-rents device, the present embodiment A kind of IP address is provided and re-rents device 400, runs on the first equipment, it includes: that request receives mould that the IP address, which re-rents device 400, Block 410, data obtaining module 420, data creation module 430 and request sending module 440.
Request receiving module 410 receives the substitution that the second equipment is sent for first equipment and re-rents IP request, described First equipment is established with wireless router to be connect.
Data obtaining module 420, the IP configuration information of second equipment is obtained for first equipment, and the IP matches Confidence breath distributes to second equipment by the wireless router.
Data creation module 430 creates DHCP based on the IP configuration information of second equipment for first equipment Broadcast packet.
Request sending module 440, periodically sending to the wireless router for first equipment includes the DHCP Broadcast packet re-rents request.
Optionally, it further includes signal receiving module that IP address, which re-rents device 400, which is specifically used for first Equipment reception wireless router response, which is re-rented, requests what is returned to re-rent confirmation signal.
Optionally, it further includes terminating request module that IP address, which re-rents device 400, which is specifically used for first Equipment receives the termination that the second equipment is sent and re-rents IP request, responds the termination and re-rents IP request, terminates periodically to wireless routing Device, which is sent, re-rents request including dhcp broadcast packet.
A kind of IP address provided in this embodiment re-rents device, by completing work i.e. for suspend mode or power-off when the second equipment Before, substitution is sent to the first equipment and re-rents IP request, and then the first equipment receives the request and substitutes the second equipment to no route It is requested by the IP that re-rents that device sends the second equipment, the second equipment is then realized according to the confirmation signal of re-renting that wireless router returns Dynamic IP re-rent keep-alive.The second equipment may be implemented with being assigned to the dynamic IP same with upper task phase in this method Location can reduce the function of the second equipment so as to quickly connect upper wireless router, furthermore during the second device sleeps power off Consume and extend the service life of battery.
Figure 12 is please referred to, is the structural block diagram that a kind of IP address provided by the embodiments of the present application re-rents device, the present embodiment A kind of IP address is provided and re-rents device 500, runs on the second equipment, it includes: command detection mould that the IP address, which re-rents device 500, Block 510, request sending module 520 and power down module 530.
Instruction detection module 510 detects whether that triggering enters the instruction for the state that do not network, institute for second equipment Second equipment described in stating when not networking state and wireless router, which disconnect, to be connected to the network.
Optionally, it further includes detection module that IP address, which re-rents device 500, which can be used for the detection of the second equipment Whether substitution is transmitted across to the first equipment and re-rents IP request, if being transmitted across, it does not include the second equipment that substitution, which is re-rented in IP request, IP configuration information;Otherwise substitution re-rents the IP configuration information including the second equipment in IP request.
Request sending module 520, if detecting that the triggering enters the finger for the state that do not network for second equipment It enables, second equipment sends substitution to the first equipment and re-rents IP request, wherein first equipment and the wireless router Network connection is established, the substitution re-rents IP request for requesting the IP address to second equipment to be re-rented.
Power down module 530 enters the state that do not network for second equipment.
Optionally, it further includes terminating request sending module that IP address, which re-rents device 500, which is used for Second equipment sends to terminate to the first equipment and re-rents IP request in response to wake up instruction, and matches confidence based on the IP of the second equipment Breath is established with wireless router and is connected to the network, wherein the IP configuration information of the second equipment is distributed to second by wireless router and set It is standby.
A kind of IP address provided in this embodiment re-rents device, by completing work i.e. for suspend mode or power-off when the second equipment Before, substitution is sent to the first equipment and re-rents IP request, and then the first equipment receives the request and substitutes the second equipment to no route It is requested by the IP that re-rents that device sends the second equipment, the second equipment is then realized according to the confirmation signal of re-renting that wireless router returns Dynamic IP re-rent keep-alive.The second equipment may be implemented with being assigned to the dynamic IP same with upper task phase in this method Location can reduce the function of the second equipment so as to quickly connect upper wireless router, furthermore during the second device sleeps power off Consume and extend the service life of battery.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description device and The specific work process of module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, the mutual coupling of shown or discussed module or direct coupling It closes or communication connection can be through some interfaces, the indirect coupling or communication connection of device or module can be electrical property, mechanical Or other forms.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.Figure 13 is please referred to, is shown A kind of structural block diagram for the electronic equipment 100 that can be applied in the embodiment of the present application, which may include memory 104 and one or more processors 102, wherein communication line connects between memory 104 and processor 102.
Memory 104 can be used for storing software program and module, the side re-rented such as the IP address in the embodiment of the present application Method and the corresponding program instruction/module of device, processor 102 by the software program that is stored in memory 104 of operation with And module, thereby executing various function application and data processing, such as IP address provided in an embodiment of the present invention re-rents method.
Memory 104 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.It is understood that structure shown in Figure 13 is only to show Meaning, electronic equipment 100 may also include than shown in Figure 13 more perhaps less component or with different from shown in Figure 13 Configuration.Each component shown in Figure 13 can be realized using hardware, software, or its combination.
Figure 14 is please referred to, it illustrates a kind of structural frames of computer readable storage medium provided by the embodiments of the present application Figure.Program code is stored in the computer-readable medium 600, said program code can be called by processor and execute the above method Method described in embodiment.
Computer readable storage medium 600 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 600 includes non-transient meter Calculation machine readable medium (non-transitory computer-readable storage medium).Computer-readable storage Medium 600 has the memory space for the program code 610 for executing any method and step in the above method.These program codes can With from reading or be written in one or more computer program product in this one or more computer program product. Program code 610 can for example be compressed in a suitable form.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (15)

1. a kind of IP address re-rents method, which is characterized in that be applied to the first equipment, which comprises
First equipment receives the substitution that the second equipment is sent and re-rents IP request, and first equipment and wireless router establish company It connects;
The IP configuration information of second equipment is obtained, the IP configuration information distributes to described second by the wireless router Equipment;
IP configuration information based on second equipment creates dhcp broadcast packet;
It is periodically sent to the wireless router and re-rents request including the dhcp broadcast packet.
2. IP address as described in claim 1 re-rents method, which is characterized in that the method also includes:
First equipment, which receives to re-rent described in the wireless router response, requests what is returned to re-rent confirmation signal.
3. IP address as described in claim 1 re-rents method, which is characterized in that the IP configuration for obtaining second equipment The step of information includes:
If detecting, the substitution re-rents IP request and carries IP configuration information, is re-rented described in obtaining in IP request from the substitution The IP configuration information of second equipment;
If detecting, the substitution re-rents IP request and does not carry IP configuration information, and the IP configuration information has been locally stored, from The local IP configuration information for obtaining second equipment.
4. IP address as described in claim 1 re-rents method, which is characterized in that described periodically to be sent to the wireless router The request of re-renting for including the steps that the dhcp broadcast packet includes:
It is small when the remaining rental period that the rental period for detecting second equipment is greater than the first default rental period or second equipment When the second default rental period, is sent to the wireless router and re-rent request including the dhcp broadcast packet.
5. IP address as described in claim 1 re-rents method, which is characterized in that described periodically to be sent to the wireless router Include the steps that the dhcp broadcast packet re-rent request after further include:
It receives the termination that second equipment is sent and re-rents IP request;
It responds the termination and re-rents IP request, terminating periodically includes the continuous of the dhcp broadcast packet to wireless router transmission Rent request.
6. a kind of IP address re-rents method, which is characterized in that be applied to the second equipment, which comprises
Second equipment detects whether that triggering enters the instruction of state of not networking, it is described do not network state when described in the second equipment with Wireless router disconnects network connection;
If second equipment detects the triggering and enters the instruction of state of not networking, second equipment is to the first equipment It sends substitution and re-rents IP request, wherein first equipment and the wireless router establish network connection, and the substitution is continuous IP request is rented for requesting the IP address to second equipment to be re-rented;
Second equipment enters the state that do not network.
7. IP address as claimed in claim 6 re-rents method, which is characterized in that the method also includes:
Second equipment sends to terminate to first equipment and re-rents IP request in response to wake up instruction, and sets based on second Standby IP configuration information and the wireless router, which are established, to be connected to the network, wherein the IP configuration information of second equipment is by institute It states wireless router and distributes to second equipment.
8. IP address as claimed in claim 6 re-rents method, which is characterized in that second equipment is replaced to the transmission of the first equipment In generation, re-rented before the step of IP request further include:
Second equipment detects whether that substitution is transmitted across to the first equipment re-rents IP request, if being transmitted across, the substitution is continuous It does not include the IP configuration information of second equipment in rent IP request;Otherwise it includes described second that the substitution, which is re-rented in IP request, The IP configuration information of equipment.
9. a kind of IP address re-rents method, which is characterized in that the described method includes:
Second equipment detects whether that triggering enters the instruction of state of not networking, it is described do not network state when described in the second equipment with Wireless router disconnects network connection;
If second equipment detects the triggering and enters the instruction of state of not networking, second equipment is to the first equipment It sends substitution and re-rents IP request, wherein the substitution re-rents IP request for requesting the IP address to second equipment to carry out It re-rents;
First equipment receives the substitution that second equipment is sent and re-rents IP request, first equipment and wireless router Establish connection;
First equipment obtains the IP configuration information of second equipment, and the IP configuration information is by the wireless router point Second equipment described in dispensing;
First equipment creates dhcp broadcast packet based on the IP configuration information of second equipment;
First equipment periodically sends to the wireless router and re-rents request including the dhcp broadcast packet;
Second equipment enters the state that do not network.
10. a kind of IP address re-rents device, which is characterized in that run on the first equipment, described device includes:
Request receiving module receives the substitution that the second equipment is sent for first equipment and re-rents IP request, and described first sets Standby establish with wireless router connect;
Data obtaining module obtains the IP configuration information of second equipment, the IP configuration information for first equipment Second equipment is distributed to by the wireless router;
Data creation module creates dhcp broadcast packet based on the IP configuration information of second equipment for first equipment;
Request sending module, periodically sending to the wireless router for first equipment includes the dhcp broadcast packet Re-rent request.
11. a kind of IP address re-rents device, which is characterized in that run on the second equipment, described device includes:
Instruction detection module detects whether that triggering enters the instruction for the state that do not network for second equipment, described not connect Second equipment described in when net state and wireless router, which disconnect, to be connected to the network;
Request sending module, it is described if detecting that the triggering enters the instruction for the state that do not network for second equipment Second equipment sends substitution to the first equipment and re-rents IP request, wherein first equipment is established with the wireless router Network connection, the substitution re-rent IP request for requesting the IP address to second equipment to be re-rented;
Power down module enters the state that do not network for second equipment.
12. a kind of network system, which is characterized in that including the first equipment, wireless router and the second equipment, wherein described First equipment is connect with the wireless router:
Second equipment for detecting whether there is triggering to enter the instruction of state of not networking, it is described do not network state when described in the Two equipment and wireless router, which disconnect, to be connected to the network;
If second equipment is also used to second equipment and detects that the triggering enters the instruction for the state that do not network, described Second equipment sends substitution to the first equipment and re-rents IP request, wherein the substitution re-rents IP request for requesting to described the The IP address of two equipment is re-rented;
First equipment is used to receive the substitution that second equipment is sent and re-rents IP request, first equipment and no route Connection is established by device;
First equipment is also used to obtain the IP configuration information of second equipment, and the IP configuration information is by the no route Second equipment is distributed to by device;
First equipment is also used to the creation dhcp broadcast packet of the IP configuration information based on second equipment;
First equipment, which is also used to periodically send to the wireless router, re-rents request including the dhcp broadcast packet;
Second equipment is also used to enter the state that do not network.
13. a kind of electronic equipment, which is characterized in that including memory and one or more processors;
One or more programs are stored in the memory and are configured as being executed by one or more of processors, institute It states one or more programs and is configured to carry out any method of claim 1-5.
14. a kind of electronic equipment, which is characterized in that including memory and one or more processors;
One or more programs are stored in the memory and are configured as being executed by one or more of processors, institute It states one or more programs and is configured to carry out method as claimed in claim 6 to 8.
15. a kind of computer readable storage medium, which is characterized in that be stored with program generation in the computer readable storage medium Code, wherein perform claim requires any method of 1-9 when said program code is loaded and executed by processor.
CN201811360985.3A 2018-11-15 2018-11-15 IP address lease renewing method, device, network system and electronic equipment Active CN109327560B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811360985.3A CN109327560B (en) 2018-11-15 2018-11-15 IP address lease renewing method, device, network system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811360985.3A CN109327560B (en) 2018-11-15 2018-11-15 IP address lease renewing method, device, network system and electronic equipment

Publications (2)

Publication Number Publication Date
CN109327560A true CN109327560A (en) 2019-02-12
CN109327560B CN109327560B (en) 2022-03-18

Family

ID=65258199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811360985.3A Active CN109327560B (en) 2018-11-15 2018-11-15 IP address lease renewing method, device, network system and electronic equipment

Country Status (1)

Country Link
CN (1) CN109327560B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586153A (en) * 2020-04-30 2020-08-25 北京达佳互联信息技术有限公司 Communication method and device for cloud platform
CN112118330A (en) * 2020-09-22 2020-12-22 青岛海信传媒网络技术有限公司 DHCP (dynamic host configuration protocol) network reconnection method and display equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812505A (en) * 2016-05-06 2016-07-27 上海斐讯数据通信技术有限公司 Method and device for renewing lease of IP address of terminal equipment
US20170134339A1 (en) * 2015-11-09 2017-05-11 International Business Machines Corporation Management of clustered and replicated systems in dynamic computing environments
CN108023969A (en) * 2016-11-02 2018-05-11 华为技术有限公司 A kind of IP address re-rents method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170134339A1 (en) * 2015-11-09 2017-05-11 International Business Machines Corporation Management of clustered and replicated systems in dynamic computing environments
CN105812505A (en) * 2016-05-06 2016-07-27 上海斐讯数据通信技术有限公司 Method and device for renewing lease of IP address of terminal equipment
CN108023969A (en) * 2016-11-02 2018-05-11 华为技术有限公司 A kind of IP address re-rents method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586153A (en) * 2020-04-30 2020-08-25 北京达佳互联信息技术有限公司 Communication method and device for cloud platform
CN111586153B (en) * 2020-04-30 2023-08-29 北京达佳互联信息技术有限公司 Communication method and device for cloud platform
CN112118330A (en) * 2020-09-22 2020-12-22 青岛海信传媒网络技术有限公司 DHCP (dynamic host configuration protocol) network reconnection method and display equipment

Also Published As

Publication number Publication date
CN109327560B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN110381251B (en) Control method, device and system of network camera
US9198217B2 (en) Method for maintaining connection between terminal and network server, terminal and network server
US8467911B2 (en) Energy management device and method
US10602448B2 (en) Remote wakeup method, connection server, and networking apparatus having sleep mode
US8086886B2 (en) Group power management of network devices
EP3010289B1 (en) Method and apparatus for controlling signal transmission and computer program product
US20150036573A1 (en) Wlan-capable remote control device
CN110557263B (en) Standby control method, system, terminal equipment and relay equipment
CN110677899B (en) Data transmission method, device, terminal equipment and storage medium
RU2008104031A (en) LOCAL INTERMEDIARY FOR REMOTE CONNECTED MOBILE DEVICE OPERATING IN THE LOWER POWER CONSUMPTION MODE
CN106332159A (en) WIFI abnormity automatic reconnection device, system and method
CN109816830B (en) Unlocking method and device
WO2014101893A1 (en) Device discovery method, apparatus and system
CN109327560A (en) IP address re-rents method, apparatus, network system and electronic equipment
US8719407B2 (en) Network device, information processing apparatus, control method of the same, and recording medium for the same
CN107484232A (en) Message method, system, the network equipment and readable storage medium storing program for executing
CN110475321B (en) Power-saving optimization method and device for wireless local area network (AP)
CN109451354B (en) Terminal and method for awakening same
CN109462522A (en) A kind of state monitoring method of external terminal device, terminal and its system
CN116887228A (en) Equipment distribution network method, storage medium, base station, cleaning equipment and cleaning system
CN104219264B (en) The method and server of remote access
CN103856577A (en) Managing gateway access
CN102377813A (en) Automatic power-on or awakening STB (set top box) and power-on or awakening method thereof
EP3723324B1 (en) Maintaining network connectivity between an apparatus and a network while reducing power consumption
CN105792389A (en) Scanning method and system for use in coexistence of dual modes and single channel

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant