CN114124898A - Automatic searching method and device for intelligent equipment - Google Patents
Automatic searching method and device for intelligent equipment Download PDFInfo
- Publication number
- CN114124898A CN114124898A CN202111229844.XA CN202111229844A CN114124898A CN 114124898 A CN114124898 A CN 114124898A CN 202111229844 A CN202111229844 A CN 202111229844A CN 114124898 A CN114124898 A CN 114124898A
- Authority
- CN
- China
- Prior art keywords
- host
- host number
- target
- local switch
- internet protocol
- 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
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention provides an automatic searching method and device of intelligent equipment, which comprises the following steps: receiving a host number detection request; judging whether the type of the first IP in the host number detection request is the host number detection type or not; if so, acquiring a second IP of the second intelligent equipment which is successfully connected; determining the host number with the dialing connection time closest to the current time in the second IP as a target host number, and determining the minimum difference value between the host number which is successfully dialed and the target host number; determining whether the number of the host numbers corresponding to the minimum difference value of the host numbers and the target host numbers is the same as the number of the intelligent equipment connected with the local switch; if the two host numbers are the same, taking the next host number which is the smaller one of the host number corresponding to the minimum difference value of the host numbers and the target host number as the initial host number; re-determining the target IP of each intelligent device according to the initial host number and the network number; a response protocol message including the target IP for responding to the host number probe request is sent to the local exchange.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an automatic search method and apparatus for an intelligent device.
Background
The smart devices can be connected to all computer networks on the network through network services provided by local area network devices such as routers to realize mutual communication, and are IP (Internet Protocol Address) distributed by the routers. When the intelligent device requests to access the router, the intelligent device can obtain an available IP from the router in an automatic acquisition mode. However, when there is a problem of network or device compatibility, the intelligent device often fails to automatically acquire the IP, which results in a failure to access the internet.
In a related scenario, when an intelligent device fails to automatically acquire an IP, the intelligent device is usually assigned to an IP by manually configuring the IP, and the intelligent device is kept communicating with a computer network through the IP by means of address reservation. However, in the case of failure of automatic IP acquisition in multiple intelligent devices, especially in a local area network, it is necessary to manually check the occupied and available IPs and then manually configure an IP for each intelligent device from the available IPs. Resulting in less convenience and flexibility.
Aiming at the problem of low convenience and flexibility caused by manual IP configuration when the intelligent equipment fails to automatically acquire the IP in the related art, an effective solution is not provided at present.
Disclosure of Invention
The invention aims to solve the technical problem of low convenience and flexibility caused by manual IP configuration when intelligent equipment fails to automatically acquire an IP, and provides an automatic searching method and device of the intelligent equipment.
The invention adopts the following technical means for solving the technical problems:
in a first aspect, an automatic search method for an intelligent device is provided, which is applied to a router, and the method includes:
receiving a host number detection request sent by a local switch, wherein the host number detection request is generated by the local switch according to a first internet protocol address (IP) manually input by a user on first intelligent equipment, and the first intelligent equipment and the router indirectly communicate through the local switch;
judging whether the type of the first internet protocol address IP is a host number detection type;
under the condition that the type of the first internet protocol address IP is the type of the main number detection, acquiring a second internet protocol address IP of a second intelligent device which is successfully connected in a dialing mode in the local switch;
determining a host number with the dialing connection time closest to the current time in the second internet protocol address IP as a target host number, and determining a host number minimum difference value between the target host number and the host number which is successfully dialed and connected in the router;
determining whether the number of host numbers between the host number corresponding to the minimum host number difference and the target host number is the same as the number of intelligent devices connected with the local switch, wherein the intelligent devices connected with the local switch comprise the first intelligent device and the second intelligent device;
under the condition that the number of the host numbers between the host number corresponding to the minimum host number difference value and the target host number is the same as the number of the intelligent devices connected with the local switch, taking the next host number of the smaller one of the host number corresponding to the minimum host number difference value and the target host number as an initial host number;
re-determining the target internet protocol address IP of each intelligent device connected with the local switch at least according to the initial host number and the network number of the router;
and sending a response protocol message for responding to the main number detection request to the local switch, so that the local switch sends the response protocol message including the target internet protocol address to each intelligent device after receiving the response protocol message sent by the router, and the intelligent devices dial up for connection according to the target internet protocol address in the received response protocol message.
Optionally, the re-determining the target internet protocol address of each of the intelligent devices connected to the local switch according to at least the initial host number and the network number of the router includes:
and re-determining the target internet protocol address of each intelligent device connected with the local switch according to the initial host number, the network number of the router and the dial-up connection time of the second intelligent device and the local switch.
Optionally, the re-determining the target internet protocol address of each intelligent device connected to the local switch according to the starting host number, the network number of the router, and the dial-up connection time between the second intelligent device and the local switch includes:
generating a target internet protocol address of the intelligent equipment with the dialing connection time with the local switch farthest from the current time in the second intelligent equipment according to the starting host number and the network number of the router;
and (3) circularly executing:
taking the next host number of the initial host number as a new initial host number, and taking the intelligent device which does not determine the internet protocol address again in the second intelligent device and has the dialing connection time with the local switch farthest from the current time as a target intelligent device; and the number of the first and second electrodes,
generating a target internet protocol address of the target intelligent equipment according to the new starting host number and the network number of the router until the target internet protocol address of the intelligent equipment with the dialing connection time of the local switch closest to the current time in the second intelligent equipment is determined;
and generating the target internet protocol address of the first intelligent device according to the host number next to the host number of the target internet protocol address of the intelligent device closest to the current time and the network number of the router.
Optionally, the method further comprises:
determining a host number minimum difference value between the target host number and a host number in the host number which is successfully dialed and connected in the router under the condition that the number of the host number between the host number corresponding to the host number minimum difference value and the target host number is different from the number of the intelligent equipment connected with the local switch;
determining whether the number of the host numbers between the host number corresponding to the small host number difference value and the target host number is the same as the number of the intelligent equipment connected with the local switch;
and under the condition that the number of the host numbers corresponding to the small difference value of the host numbers and the number of the host numbers between the target host numbers are the same as the number of the intelligent equipment connected with the local switch, taking the host number corresponding to the small difference value of the host numbers and the next host number which is the smaller of the target host numbers as the initial host number.
In a second aspect, an automatic search apparatus for an intelligent device is provided, which is applied to a router, and includes:
the system comprises a receiving module, a router and a detection module, wherein the receiving module is used for receiving a host number detection request sent by a local switch, the host number detection request is generated by the local switch according to a first Internet protocol address IP manually input by a user on first intelligent equipment, and the first intelligent equipment and the router indirectly communicate through the local switch;
the judging module is used for judging whether the type of the first Internet protocol address IP is a host number detection type;
the obtaining module is used for obtaining a second internet protocol address IP of a second intelligent device which is successfully connected in a dialing mode in the local switch under the condition that the type of the first internet protocol address IP is the host number detection type;
a first determining module, configured to determine that a host number in the second internet protocol address IP, where the dial-up connection time is closest to the current time, is a target host number, and determine a minimum host number difference between the target host number and one of host numbers in the router, where the dial-up connection is successful;
a second determining module, configured to determine whether a number of host numbers between the host number corresponding to the minimum host number difference and the target host number is the same as a number of intelligent devices connected to the local switch, where the intelligent devices connected to the local switch include the first intelligent device and the second intelligent device;
a third determining module, configured to, when the number of host numbers between the host number corresponding to the minimum host number difference and the target host number is the same as the number of intelligent devices connected to the local switch, set a next host number that is a smaller one of the host number corresponding to the minimum host number difference and the target host number as an initial host number;
a fourth determining module, configured to re-determine, according to at least the initial host number and the network number of the router, a target internet protocol address IP of each of the intelligent devices connected to the local switch;
and the sending module is used for sending a response protocol message for responding to the main number detection request to the local switch, so that the local switch sends the response protocol message including the target internet protocol address to each intelligent device after receiving the response protocol message sent by the router, and the intelligent devices are connected by dialing according to the target internet protocol address in the received response protocol message.
Optionally, the fourth determining module is configured to:
and re-determining the target internet protocol address of each intelligent device connected with the local switch according to the initial host number, the network number of the router and the dial-up connection time of the second intelligent device and the local switch.
Optionally, the fourth determining module is configured to:
generating a target internet protocol address of the intelligent equipment with the dialing connection time with the local switch farthest from the current time in the second intelligent equipment according to the starting host number and the network number of the router;
and (3) circularly executing:
taking the next host number of the initial host number as a new initial host number, and taking the intelligent device which does not determine the internet protocol address again in the second intelligent device and has the dialing connection time with the local switch farthest from the current time as a target intelligent device; and the number of the first and second electrodes,
generating a target internet protocol address of the target intelligent equipment according to the new starting host number and the network number of the router until the target internet protocol address of the intelligent equipment with the dialing connection time of the local switch closest to the current time in the second intelligent equipment is determined;
and generating the target internet protocol address of the first intelligent device according to the host number next to the host number of the target internet protocol address of the intelligent device closest to the current time and the network number of the router.
Optionally, the apparatus further comprises:
a fifth determining module, configured to determine, when the number of host numbers between the host number corresponding to the minimum host number difference and the target host number is different from the number of intelligent devices connected to the local switch, a small host number difference between the target host number and one of the host numbers that have been successfully dialed in the router;
a sixth determining module, configured to determine whether the number of host numbers between the host number corresponding to the small host number difference and the target host number is the same as the number of intelligent devices connected to the local switch;
and the seventh determining module is used for taking the host number corresponding to the small difference value of the host number and the next host number which is the smaller of the target host number as the initial host number under the condition that the number of the host numbers between the host number corresponding to the small difference value of the host number and the target host number is the same as the number of the intelligent equipment connected with the local switch.
Has the advantages that: detecting a request by receiving a host number; judging whether the type of the first IP in the host number detection request is the host number detection type or not; if so, acquiring a second IP of the second intelligent equipment which is successfully connected; determining the host number with the dialing connection time closest to the current time in the second IP as a target host number, and determining the minimum difference value between the host number which is successfully dialed and the target host number; determining whether the number of the host numbers corresponding to the minimum difference value of the host numbers and the target host numbers is the same as the number of the intelligent equipment connected with the local switch; if the two host numbers are the same, taking the next host number which is the smaller one of the host number corresponding to the minimum difference value of the host numbers and the target host number as the initial host number; re-determining the target IP of each intelligent device according to the initial host number and the network number; a response protocol message including the target IP for responding to the host number probe request is sent to the local exchange. The target IP of the intelligent equipment connected with the local switch can be conveniently determined from the unused host number in the router, and the flexibility and convenience of manually configuring the IP of the intelligent equipment under the condition of automatic IP acquisition failure are improved.
FIG. 1 is a flow chart of one embodiment of an automatic search method for smart devices of the present invention;
fig. 2 is a block diagram of an embodiment of an automatic searching apparatus of an intelligent device according to the present invention.
The invention will be further described with reference to the accompanying drawings for the purpose of achieving the objects, functional features and advantages thereof.
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of an automatic search method for an intelligent device in an embodiment of the present invention is shown in fig. 1, where the method includes:
in step S11, a host number probe request sent by a local exchange is received, where the host number probe request is generated by the local exchange according to a first internet protocol address IP manually input by a user on a first intelligent device, and the first intelligent device and the router indirectly communicate through the local exchange;
in step S12, determining whether the type of the first IP address is a host number detection type;
in step S13, when the type of the first internet protocol address IP is the host number detection type, obtaining a second internet protocol address IP of a second intelligent device that has successfully dialed-up and connected in the local exchange;
in step S14, determining that the host number whose dial-up connection time is closest to the current time in the second internet protocol address IP is the target host number, and determining the minimum difference between the target host number and the host number in the host numbers that have been successfully dial-up connected in the router;
in step S15, determining whether the number of host numbers between the host number corresponding to the minimum host number difference and the target host number is the same as the number of intelligent devices connected to the local switch, where the intelligent devices connected to the local switch include the first intelligent device and the second intelligent device;
in step S16, when the number of host numbers between the host number corresponding to the minimum host number difference and the target host number is the same as the number of intelligent devices connected to the local switch, setting the next host number that is the smaller of the host number corresponding to the minimum host number difference and the target host number as the starting host number;
in step S17, re-determining the target internet protocol address IP of each of the intelligent devices connected to the local switch according to at least the initial host number and the network number of the router;
in step S18, a response protocol message for responding to the host number probe request is sent to the local exchange, so that the local exchange sends the response protocol message including the target internet protocol address to each of the smart devices after receiving the response protocol message sent by the router, so that the smart devices dial up for connection according to the target internet protocol address in the received response protocol message.
Detecting a request by receiving a host number; judging whether the type of the first IP in the host number detection request is the host number detection type or not; if so, acquiring a second IP of the second intelligent equipment which is successfully connected; determining the host number with the dialing connection time closest to the current time in the second IP as a target host number, and determining the minimum difference value between the host number which is successfully dialed and the target host number; determining whether the number of the host numbers corresponding to the minimum difference value of the host numbers and the target host numbers is the same as the number of the intelligent equipment connected with the local switch; if the two host numbers are the same, taking the next host number which is the smaller one of the host number corresponding to the minimum difference value of the host numbers and the target host number as the initial host number; re-determining the target IP of each intelligent device according to the initial host number and the network number; a response protocol message including the target IP for responding to the host number probe request is sent to the local exchange. The target IP of the intelligent equipment connected with the local switch can be conveniently determined from the unused host number in the router, and the flexibility and convenience of manually configuring the IP of the intelligent equipment under the condition of automatic IP acquisition failure are improved.
Optionally, in step S17, the re-determining the target internet protocol address of each of the intelligent devices connected to the local switch according to at least the originating host number and the network number of the router includes:
and re-determining the target internet protocol address of each intelligent device connected with the local switch according to the initial host number, the network number of the router and the dial-up connection time of the second intelligent device and the local switch.
Optionally, the re-determining the target internet protocol address of each intelligent device connected to the local switch according to the starting host number, the network number of the router, and the dial-up connection time between the second intelligent device and the local switch includes:
generating a target internet protocol address of the intelligent equipment with the dialing connection time with the local switch farthest from the current time in the second intelligent equipment according to the starting host number and the network number of the router;
and (3) circularly executing:
taking the next host number of the initial host number as a new initial host number, and taking the intelligent device which does not determine the internet protocol address again in the second intelligent device and has the dialing connection time with the local switch farthest from the current time as a target intelligent device; and the number of the first and second electrodes,
generating a target internet protocol address of the target intelligent equipment according to the new starting host number and the network number of the router until the target internet protocol address of the intelligent equipment with the dialing connection time of the local switch closest to the current time in the second intelligent equipment is determined;
and generating the target internet protocol address of the first intelligent device according to the host number next to the host number of the target internet protocol address of the intelligent device closest to the current time and the network number of the router.
Optionally, the method further comprises:
determining a host number minimum difference value between the target host number and a host number in the host number which is successfully dialed and connected in the router under the condition that the number of the host number between the host number corresponding to the host number minimum difference value and the target host number is different from the number of the intelligent equipment connected with the local switch;
determining whether the number of the host numbers between the host number corresponding to the small host number difference value and the target host number is the same as the number of the intelligent equipment connected with the local switch;
and under the condition that the number of the host numbers corresponding to the small difference value of the host numbers and the number of the host numbers between the target host numbers are the same as the number of the intelligent equipment connected with the local switch, taking the host number corresponding to the small difference value of the host numbers and the next host number which is the smaller of the target host numbers as the initial host number.
Based on the same inventive concept, an embodiment of the present invention further provides an automatic search apparatus for an intelligent device, which is applied to a router, and as shown in fig. 2, the apparatus includes:
a receiving module 110, configured to receive a host number detection request sent by a local switch, where the host number detection request is generated by the local switch according to a first internet protocol address IP manually input by a user on a first intelligent device, and the first intelligent device and the router indirectly communicate through the local switch;
a judging module 120, configured to judge whether the type of the first IP address is a host number detection type;
an obtaining module 130, configured to obtain a second internet protocol address IP of a second intelligent device that has successfully dialed-up and connected in the local switch, when the type of the first internet protocol address IP is the host number detection type;
a first determining module 140, configured to determine that a host number in the second internet protocol address IP, where the dial-up connection time is closest to the current time, is a target host number, and determine a minimum host number difference between the target host number and a host number in host numbers in the router, where the dial-up connection is successful;
a second determining module 150, configured to determine whether a number of host numbers between the host number corresponding to the minimum host number difference and the target host number is the same as a number of intelligent devices connected to the local switch, where the intelligent devices connected to the local switch include the first intelligent device and the second intelligent device;
a third determining module 160, configured to, when the number of host numbers between the host number corresponding to the minimum host number difference and the target host number is the same as the number of intelligent devices connected to the local switch, set a next host number that is a smaller one of the host number corresponding to the minimum host number difference and the target host number as an initial host number;
a fourth determining module 170, configured to re-determine, according to at least the initial host number and the network number of the router, a target internet protocol address IP of each of the intelligent devices connected to the local switch;
a sending module 180, configured to send a response protocol message for responding to the host number detection request to the local switch, so that after receiving the response protocol message sent by the router, the local switch sends the response protocol message including the target internet protocol address to each piece of intelligent equipment, so that the intelligent equipment dials up a connection according to the target internet protocol address in the received response protocol message.
Optionally, the fourth determining module 170 is configured to:
and re-determining the target internet protocol address of each intelligent device connected with the local switch according to the initial host number, the network number of the router and the dial-up connection time of the second intelligent device and the local switch.
Optionally, the fourth determining module 170 is configured to:
generating a target internet protocol address of the intelligent equipment with the dialing connection time with the local switch farthest from the current time in the second intelligent equipment according to the starting host number and the network number of the router;
and (3) circularly executing:
taking the next host number of the initial host number as a new initial host number, and taking the intelligent device which does not determine the internet protocol address again in the second intelligent device and has the dialing connection time with the local switch farthest from the current time as a target intelligent device; and the number of the first and second electrodes,
generating a target internet protocol address of the target intelligent equipment according to the new starting host number and the network number of the router until the target internet protocol address of the intelligent equipment with the dialing connection time of the local switch closest to the current time in the second intelligent equipment is determined;
and generating the target internet protocol address of the first intelligent device according to the host number next to the host number of the target internet protocol address of the intelligent device closest to the current time and the network number of the router.
Optionally, the apparatus further comprises:
a fifth determining module, configured to determine, when the number of host numbers between the host number corresponding to the minimum host number difference and the target host number is different from the number of intelligent devices connected to the local switch, a small host number difference between the target host number and one of the host numbers that have been successfully dialed in the router;
a sixth determining module, configured to determine whether the number of host numbers between the host number corresponding to the small host number difference and the target host number is the same as the number of intelligent devices connected to the local switch;
and the seventh determining module is used for taking the host number corresponding to the small difference value of the host number and the next host number which is the smaller of the target host number as the initial host number under the condition that the number of the host numbers between the host number corresponding to the small difference value of the host number and the target host number is the same as the number of the intelligent equipment connected with the local switch.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (8)
1. An automatic search method of an intelligent device is applied to a router, and the method comprises the following steps:
receiving a host number detection request sent by a local switch, wherein the host number detection request is generated by the local switch according to a first internet protocol address (IP) manually input by a user on first intelligent equipment, and the first intelligent equipment and the router indirectly communicate through the local switch;
judging whether the type of the first internet protocol address IP is a host number detection type;
under the condition that the type of the first internet protocol address IP is the type of the main number detection, acquiring a second internet protocol address IP of a second intelligent device which is successfully connected in a dialing mode in the local switch;
determining a host number with the dialing connection time closest to the current time in the second internet protocol address IP as a target host number, and determining a host number minimum difference value between the target host number and the host number which is successfully dialed and connected in the router;
determining whether the number of host numbers between the host number corresponding to the minimum host number difference and the target host number is the same as the number of intelligent devices connected with the local switch, wherein the intelligent devices connected with the local switch comprise the first intelligent device and the second intelligent device;
under the condition that the number of the host numbers between the host number corresponding to the minimum host number difference value and the target host number is the same as the number of the intelligent devices connected with the local switch, taking the next host number of the smaller one of the host number corresponding to the minimum host number difference value and the target host number as an initial host number;
re-determining the target internet protocol address IP of each intelligent device connected with the local switch at least according to the initial host number and the network number of the router;
and sending a response protocol message for responding to the main number detection request to the local switch, so that the local switch sends the response protocol message including the target internet protocol address to each intelligent device after receiving the response protocol message sent by the router, and the intelligent devices dial up for connection according to the target internet protocol address in the received response protocol message.
2. The method of claim 1, wherein said re-determining the target internet protocol address of each of said intelligent devices connected to said local switch based on at least said originating host number and said router's network number comprises:
and re-determining the target internet protocol address of each intelligent device connected with the local switch according to the initial host number, the network number of the router and the dial-up connection time of the second intelligent device and the local switch.
3. The method of claim 2, wherein said re-determining the destination internet protocol address of each of said intelligent devices connected to said local switch based on said originating host number, said router's network number, and said second intelligent device's dial-up connection time with said local switch comprises:
generating a target internet protocol address of the intelligent equipment with the dialing connection time with the local switch farthest from the current time in the second intelligent equipment according to the starting host number and the network number of the router;
and (3) circularly executing:
taking the next host number of the initial host number as a new initial host number, and taking the intelligent device which does not determine the internet protocol address again in the second intelligent device and has the dialing connection time with the local switch farthest from the current time as a target intelligent device; and the number of the first and second electrodes,
generating a target internet protocol address of the target intelligent equipment according to the new starting host number and the network number of the router until the target internet protocol address of the intelligent equipment with the dialing connection time of the local switch closest to the current time in the second intelligent equipment is determined;
and generating the target internet protocol address of the first intelligent device according to the host number next to the host number of the target internet protocol address of the intelligent device closest to the current time and the network number of the router.
4. The method of any one of claims 1-3, further comprising:
determining a host number minimum difference value between the target host number and a host number in the host number which is successfully dialed and connected in the router under the condition that the number of the host number between the host number corresponding to the host number minimum difference value and the target host number is different from the number of the intelligent equipment connected with the local switch;
determining whether the number of the host numbers between the host number corresponding to the small host number difference value and the target host number is the same as the number of the intelligent equipment connected with the local switch;
and under the condition that the number of the host numbers corresponding to the small difference value of the host numbers and the number of the host numbers between the target host numbers are the same as the number of the intelligent equipment connected with the local switch, taking the host number corresponding to the small difference value of the host numbers and the next host number which is the smaller of the target host numbers as the initial host number.
5. An automatic search device of an intelligent device, which is applied to a router, the device comprising:
the system comprises a receiving module, a router and a detection module, wherein the receiving module is used for receiving a host number detection request sent by a local switch, the host number detection request is generated by the local switch according to a first Internet protocol address IP manually input by a user on first intelligent equipment, and the first intelligent equipment and the router indirectly communicate through the local switch;
the judging module is used for judging whether the type of the first Internet protocol address IP is a host number detection type;
the obtaining module is used for obtaining a second internet protocol address IP of a second intelligent device which is successfully connected in a dialing mode in the local switch under the condition that the type of the first internet protocol address IP is the host number detection type;
a first determining module, configured to determine that a host number in the second internet protocol address IP, where the dial-up connection time is closest to the current time, is a target host number, and determine a minimum host number difference between the target host number and one of host numbers in the router, where the dial-up connection is successful;
a second determining module, configured to determine whether a number of host numbers between the host number corresponding to the minimum host number difference and the target host number is the same as a number of intelligent devices connected to the local switch, where the intelligent devices connected to the local switch include the first intelligent device and the second intelligent device;
a third determining module, configured to, when the number of host numbers between the host number corresponding to the minimum host number difference and the target host number is the same as the number of intelligent devices connected to the local switch, set a next host number that is a smaller one of the host number corresponding to the minimum host number difference and the target host number as an initial host number;
a fourth determining module, configured to re-determine, according to at least the initial host number and the network number of the router, a target internet protocol address IP of each of the intelligent devices connected to the local switch;
and the sending module is used for sending a response protocol message for responding to the main number detection request to the local switch, so that the local switch sends the response protocol message including the target internet protocol address to each intelligent device after receiving the response protocol message sent by the router, and the intelligent devices are connected by dialing according to the target internet protocol address in the received response protocol message.
6. The apparatus of claim 5, wherein the fourth determination module is to:
and re-determining the target internet protocol address of each intelligent device connected with the local switch according to the initial host number, the network number of the router and the dial-up connection time of the second intelligent device and the local switch.
7. The apparatus of claim 6, wherein the fourth determination module is to:
generating a target internet protocol address of the intelligent equipment with the dialing connection time with the local switch farthest from the current time in the second intelligent equipment according to the starting host number and the network number of the router;
and (3) circularly executing:
taking the next host number of the initial host number as a new initial host number, and taking the intelligent device which does not determine the internet protocol address again in the second intelligent device and has the dialing connection time with the local switch farthest from the current time as a target intelligent device; and the number of the first and second electrodes,
generating a target internet protocol address of the target intelligent equipment according to the new starting host number and the network number of the router until the target internet protocol address of the intelligent equipment with the dialing connection time of the local switch closest to the current time in the second intelligent equipment is determined;
and generating the target internet protocol address of the first intelligent device according to the host number next to the host number of the target internet protocol address of the intelligent device closest to the current time and the network number of the router.
8. The apparatus of any one of claims 5-7, wherein the apparatus further comprises:
a fifth determining module, configured to determine, when the number of host numbers between the host number corresponding to the minimum host number difference and the target host number is different from the number of intelligent devices connected to the local switch, a small host number difference between the target host number and one of the host numbers that have been successfully dialed in the router;
a sixth determining module, configured to determine whether the number of host numbers between the host number corresponding to the small host number difference and the target host number is the same as the number of intelligent devices connected to the local switch;
and the seventh determining module is used for taking the host number corresponding to the small difference value of the host number and the next host number which is the smaller of the target host number as the initial host number under the condition that the number of the host numbers between the host number corresponding to the small difference value of the host number and the target host number is the same as the number of the intelligent equipment connected with the local switch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111229844.XA CN114124898B (en) | 2021-10-22 | 2021-10-22 | Automatic searching method and device for intelligent equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111229844.XA CN114124898B (en) | 2021-10-22 | 2021-10-22 | Automatic searching method and device for intelligent equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114124898A true CN114124898A (en) | 2022-03-01 |
CN114124898B CN114124898B (en) | 2023-07-21 |
Family
ID=80376530
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111229844.XA Active CN114124898B (en) | 2021-10-22 | 2021-10-22 | Automatic searching method and device for intelligent equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114124898B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100309813A1 (en) * | 2009-06-08 | 2010-12-09 | Cisco Technology, Inc. | Detection and support of a dual-stack capable host |
CN102165741A (en) * | 2009-03-20 | 2011-08-24 | Netman株式会社 | Method for intercepting and searching host in IPV6 network |
CN102271350A (en) * | 2011-03-30 | 2011-12-07 | 东方通信股份有限公司 | Automatic discovery method of network topology in wireless cluster network management |
CN102523263A (en) * | 2011-12-06 | 2012-06-27 | 中国联合网络通信集团有限公司 | Sharing access host quantity monitoring method, device thereof and system thereof |
CN105162703A (en) * | 2015-08-07 | 2015-12-16 | 中国电子科技集团公司第三十二研究所 | Multi-level network topology intelligent discovery and generation method and system based on hybrid protocol |
CN112261708A (en) * | 2020-12-18 | 2021-01-22 | 深圳市晶讯技术股份有限公司 | System and method for automatically configuring WiFi equipment in batches |
-
2021
- 2021-10-22 CN CN202111229844.XA patent/CN114124898B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102165741A (en) * | 2009-03-20 | 2011-08-24 | Netman株式会社 | Method for intercepting and searching host in IPV6 network |
US20100309813A1 (en) * | 2009-06-08 | 2010-12-09 | Cisco Technology, Inc. | Detection and support of a dual-stack capable host |
CN102271350A (en) * | 2011-03-30 | 2011-12-07 | 东方通信股份有限公司 | Automatic discovery method of network topology in wireless cluster network management |
CN102523263A (en) * | 2011-12-06 | 2012-06-27 | 中国联合网络通信集团有限公司 | Sharing access host quantity monitoring method, device thereof and system thereof |
CN105162703A (en) * | 2015-08-07 | 2015-12-16 | 中国电子科技集团公司第三十二研究所 | Multi-level network topology intelligent discovery and generation method and system based on hybrid protocol |
CN112261708A (en) * | 2020-12-18 | 2021-01-22 | 深圳市晶讯技术股份有限公司 | System and method for automatically configuring WiFi equipment in batches |
Also Published As
Publication number | Publication date |
---|---|
CN114124898B (en) | 2023-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109587254B (en) | Cloud server access method and device, cloud server and storage medium | |
US9178919B2 (en) | Disaster recovery with a central conferencing routing server | |
CN107483260B (en) | Fault processing method and device and electronic equipment | |
CN110913025B (en) | Service calling method, device, equipment and medium | |
CN108632931B (en) | Data transmission method, device, equipment and medium based on 5G network | |
WO2013007179A1 (en) | Method and device for automatic dialling of access point | |
US8856271B2 (en) | Data accessing method used for customer premises equipment, and customer premises equipment | |
CN106255226B (en) | Network connection processing method and device | |
CN112218386B (en) | Application program service path establishing method and device for multi-card terminal, storage medium and terminal | |
EP2299630A1 (en) | Address reporting method and apparatus, connection establishing method and apparatus, and communication system | |
CN112152828B (en) | Game acceleration method and device, VPN terminal and storage medium | |
US20220322088A1 (en) | Network roaming method, terminal device, and computer readable storage medium | |
CN110798453B (en) | Data processing method and device for one-key login | |
CN111093254A (en) | Multi-account matching method and dial-up router | |
CN110493810B (en) | Method, device, equipment and medium for detecting recording notification fault | |
CN101677413A (en) | Method and apparatus for provisioning a communication device automatically | |
CN114124898A (en) | Automatic searching method and device for intelligent equipment | |
CN110784510A (en) | Method for accessing target service node to bus and information interaction method of service node | |
GB2494136A (en) | Processing requests in a telecommunications network | |
CN105163335B (en) | A kind of network access management method, server, mobile terminal and system | |
CN112068784B (en) | Method for automatically switching multiple network cards of cloud printing equipment and cloud printing equipment | |
CN108271230A (en) | A kind of method and device for obtaining mobile management information, computer readable storage medium | |
CN112996137A (en) | Method for establishing data connection on multi-operation system terminal | |
CN110858815A (en) | Method, device, equipment and storage medium for configuring intelligent home gateway | |
CN111835534B (en) | Method for cluster control, network device, master control node device and computer readable storage medium |
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 |