CN116389422A - Method and device for wireless equipment to acquire IP address of wireless connection terminal - Google Patents
Method and device for wireless equipment to acquire IP address of wireless connection terminal Download PDFInfo
- Publication number
- CN116389422A CN116389422A CN202310288591.6A CN202310288591A CN116389422A CN 116389422 A CN116389422 A CN 116389422A CN 202310288591 A CN202310288591 A CN 202310288591A CN 116389422 A CN116389422 A CN 116389422A
- Authority
- CN
- China
- Prior art keywords
- wireless
- address
- connection terminal
- controller
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004590 computer program Methods 0.000 claims description 15
- 238000004891 communication Methods 0.000 claims description 7
- 230000002452 interceptive effect Effects 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/12—Access point controller devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
-
- 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
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a method and a device for wireless equipment to acquire an IP address of a wireless connection terminal, wherein the method comprises the following steps: the wireless AP equipment receives a Discovery message sent by the wireless connection terminal and forwards the Discovery message to the AC controller, wherein the Discovery message comprises a matching request; the wireless AP equipment receives an buffer message sent by the AC controller and forwards the buffer message to the wireless connection terminal, wherein the buffer message comprises an IP address which can be provided by the AC controller; the wireless AP equipment receives a Request message sent by the wireless connection terminal and forwards the Request message to the AC controller, wherein the Request message comprises an IP address which is hoped to be obtained; the wireless AP equipment receives an ACK message sent by the AC controller and forwards the ACK message to the wireless connection terminal, and acquires an IP address, wherein the ACK message comprises a mac address and an IP address. The configuration file of an AP is constructed through the double-thread work of the DHCP server of the AC controller and the wireless AP, and the IP address of the wireless connection terminal can be directly inquired in the configuration file through the mac address.
Description
Technical Field
The present invention relates to the field of network communications, and in particular, to a method and an apparatus for acquiring an IP address of a wireless connection terminal by using a wireless device.
Background
When the wireless AP equipment works in the AC controller mode, a DHCP server of the equipment is closed, when the wireless terminal is accessed, an IP address is usually acquired through the AC controller, at the moment, the wireless AP equipment cannot acquire the IP address of the wireless connection terminal, and when the wireless AP equipment reports the information of the wireless connection terminal, the wireless AP equipment cannot report the effective equipment IP.
Chinese patent CN109088959a, an address allocation method, device and system, discloses an address allocation method, device and system, and when the wireless AP device is successfully online in an AC controller, receives an IP address field and a DHCP parameter sent by the AC controller and allocated to the wireless AP device; configuring the self AC controller according to the IP address segment and the DHCP parameter; the operation burden of the wireless AP equipment and the wireless AC equipment is reduced, and meanwhile, the detection maintenance or the network redeployment of new equipment is not required. However, when the wireless connection terminal is accessed and the IP address of the wireless connection terminal is acquired through the AC controller, the DHCP server of the wireless AP equipment is closed, the wireless AP equipment cannot acquire the IP address of the wireless connection terminal, and effective equipment IP cannot be reported.
Disclosure of Invention
In view of this, the present invention provides a method and apparatus for acquiring an IP address of a wireless connection terminal by a wireless device, which are used for solving the problem that a wireless AP device cannot acquire an IP access to a wireless access device after closing a DHCP server.
The technical scheme of the invention is realized as follows: in one aspect, the present invention provides a method for a wireless device to obtain an IP address of a wireless connection terminal, where the wireless device includes at least one wireless AP device and an AC controller that is wired to the wireless AP device, where an interactive communication protocol is set on the wireless AP device and the AC controller, and when the wireless AP device is wired to the AC controller, a DHCP server of the wireless AP device is turned off, the method includes:
s1, a wireless AP device receives a Discovery message sent by a wireless connection terminal and forwards the Discovery message to an AC controller, wherein the Discovery message comprises a matching request;
s2, the wireless AP equipment receives an Offer message sent by the AC controller and forwards the Offer message to the wireless connection terminal, wherein the Offer message comprises an IP address which can be provided by the AC controller;
s3, the wireless AP equipment receives a Request message sent by the wireless connection terminal and forwards the Request message to the AC controller, wherein the Request message comprises an IP address which is hoped to be obtained;
s4, the wireless AP equipment receives an ACK message sent by the AC controller and forwards the ACK message to the wireless connection terminal to acquire an IP address, wherein the ACK message comprises a mac address and an IP address.
Preferably, step S2 further includes:
the wireless AP equipment captures an buffer message through libcpap, saves a requestip, mac address and a hostname into a configuration file, and configures a flag to be 0 multiplied by 0.
Preferably, step S3 further includes:
the wireless AP device runs IP detection, and periodically detects whether the IP address in the configuration file is allocated; if already allocated, the flag is configured to be 0×0.
Preferably, step S4 further includes:
when the mac address and the IP address in the resolved ACK message exist in the configuration file, the flag is configured to be 0 multiplied by 1.
Preferably, step S4 further includes:
the wireless AP equipment acquires the mac address of the wireless connection terminal which is accessed currently through the iwinfoshassassoclist, and acquires the corresponding IP address in the configuration file through the mac address.
Preferably, step S1 further includes:
the wireless connection terminal sends a Discovery message in a local network in a broadcast mode, the wireless AP equipment receives the Discovery message in a wireless mode and then forwards the Discovery message to the AC controller, and the AC controller constructs an buffer message and sends the buffer message to the wireless AP equipment and forwards the buffer message to the wireless connection terminal for informing of the available IP address.
Preferably, step S2 further includes:
after receiving the buffer message, the wireless connection terminal sends a Request message to the wireless AP device and forwards the Request message to the AC controller, so as to inform the AC controller of the IP address to be allocated.
In another aspect, the present invention further provides an apparatus for acquiring an IP address of a wireless connection terminal by a wireless device, where the wireless device includes at least one wireless AP device and an AC controller that is wired to the wireless AP device, where an interactive communication protocol is set on the wireless AP device and the AC controller, and when the wireless AP device is wired to the AC controller, a DHCP server of the wireless AP device is turned off, the apparatus includes:
the matching message module is used for receiving a Discovery message sent by the wireless connection terminal by the wireless AP equipment, forwarding the Discovery message to the AC controller, wherein the Discovery message comprises a matching request;
the message providing module is used for the wireless AP equipment to receive the buffer message sent by the AC controller and transmit the buffer message to the wireless connection terminal, wherein the buffer message comprises an IP address which can be provided by the AC controller;
the Request message module is used for receiving a Request message sent by the wireless connection terminal by the wireless AP equipment and forwarding the Request message to the AC controller, wherein the Request message comprises an IP address which is hoped to be obtained;
and the wireless AP equipment receives the ACK message sent by the AC controller and forwards the ACK message to the wireless connection terminal to acquire the IP address, wherein the ACK message comprises the mac address and the IP address.
In another aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the computer program is executed by the processor to implement the steps of the method for the wireless device to obtain an IP address of a wireless connection terminal.
In another aspect, embodiments of the present invention also provide a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the method for the wireless device to obtain the IP address of the wireless connection terminal.
Compared with the prior art, the method and the device for acquiring the IP address of the wireless connection terminal by the wireless equipment have the following beneficial effects:
(1) When the wireless AP equipment is connected with an AC controller and enters an AC controller mode and a self DHCP server is closed, a/tmp/apdhcp.release file of the wireless AP equipment is constructed by starting the double-thread work of the AC controller of the DHCP server and the wireless AP equipment, and the IP address of the wireless connection terminal can be inquired in the/tmp/apdhcp.release file directly through a mac address;
(2) When the wireless AP equipment closes the DHCP server, the wireless AP equipment side can not acquire the IP address of the wireless connection terminal through the DHCP request in time, the external AC controller receives and sends the message to inform the IP address of the wireless connection terminal, and the inaccuracy of the IP reported by the wireless AP equipment is avoided.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for a wireless device to obtain an IP address of a wireless connection terminal according to the present invention;
fig. 2 is a schematic diagram of an operation principle of a method for acquiring an IP address of a wireless connection terminal by a wireless device according to the present invention;
fig. 3 is a block diagram of an apparatus for acquiring an IP address of a wireless connection terminal by a wireless device according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will clearly and fully describe the technical aspects of the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, are intended to fall within the scope of the present invention.
Examples
The method for acquiring the IP address of the wireless connection terminal by the wireless equipment is provided, the wireless equipment comprises at least one wireless AP equipment and an AC controller which is in wired connection with the wireless AP equipment, an interactive communication protocol is arranged on the wireless AP equipment and the AC controller, and when the wireless AP equipment is in wired connection with the AC controller, a DHCP server of the wireless AP equipment is closed, the method comprises the following steps:
s1, a wireless AP device receives a Discovery message sent by a wireless connection terminal and forwards the Discovery message to an AC controller, wherein the Discovery message comprises a matching request;
s2, the wireless AP equipment receives an Offer message sent by the AC controller and forwards the Offer message to the wireless connection terminal, wherein the Offer message comprises an IP address which can be provided by the AC controller;
s3, the wireless AP equipment receives a Request message sent by the wireless connection terminal and forwards the Request message to the AC controller, wherein the Request message comprises an IP address which is hoped to be obtained;
s4, the wireless AP equipment receives an ACK message sent by the AC controller and forwards the ACK message to the wireless connection terminal to acquire an IP address, wherein the ACK message comprises a mac address and an IP address.
In order to solve the problem that the wireless AP equipment (thin AP mode) cannot directly acquire the IP address through the wireless AP equipment after closing the DHCP server, the application utilizes other AC controllers to acquire the IP address of the wireless connection terminal, so that the method is provided;
step S2 further includes:
the wireless AP equipment captures an buffer message through libcpap, saves a requestip, mac address and a hostname into a configuration file, and configures a flag to be 0 multiplied by 0.
Step S3 further includes:
the wireless AP device runs IP detection, and periodically detects whether the IP address in the configuration file is enabled; the flag cannot be set to 0×0.
Step S4 further includes:
when the mac address and the IP address in the resolved ACK message exist in the configuration file, the flag is configured to be 0 multiplied by 1.
Step S4 further includes:
the wireless AP equipment acquires the mac address of the wireless connection terminal which is accessed currently through the iwinfoshassassoclist, and acquires the corresponding IP address in the configuration file through the mac address.
Step S1 further includes:
the wireless connection terminal sends a Discovery message in a local network in a broadcast mode, the wireless AP equipment receives the Discovery message in a wireless mode and then forwards the Discovery message to the AC controller, and the AC controller constructs an buffer message and sends the buffer message to the wireless AP equipment and forwards the buffer message to the wireless connection terminal for informing of the available IP address.
Step S2 further includes:
after receiving the buffer message, the wireless connection terminal sends a Request message to the wireless AP device and forwards the Request message to the AC controller, so as to inform the AC controller of the IP address to be allocated.
When the wireless AP equipment closes the DHCP server, the wireless connection terminal does not know the position of the DHCP server when the wireless AP equipment requests the IP address, so that the wireless connection terminal can send a Discovery message in a local network in a broadcast mode, after receiving the Discovery message, the DHCP server of the AC controller constructs an Offer message to the wireless connection terminal to inform the wireless connection terminal of the IP address provided by the DHCP server of the AC controller, and after receiving the Offer message, the wireless connection terminal can send a broadcast Request message to the DHCP server of the AC controller to tell the DHCP server of the AC controller that the wireless AP equipment hopes to obtain the allocated IP address, and at the moment, the wireless AP equipment captures the Offer message through libpep, saves requestip, mac address and hostname to tmp/aphcp. Release, and configures the flag to 0x0. After receiving the Request message, the DHCP server of the AC controller sends an ACK message, informs the wireless connection terminal that the wireless connection terminal can use the allocated IP address, captures the ACK message sent by the DHCP server of the AC controller through a libcpap capturing procedure, and if the mac address and the IP address in the ACK message are analyzed to exist in/tmp/apdhcp. The method comprises the steps of constructing terminal IP information belonging to wireless AP equipment by capturing an ACK message sent by a DHCP server, and acquiring an IP address of a wireless connection terminal by the wireless AP equipment.
The wireless AP equipment runs an ip detection program, periodically detects whether an ip address in/tmp/apdhcp. Release can be communicated or not, and configures a flag to be 0x0 if the ip address in/tmp/apdhcp. Release cannot be communicated; this step is used to clean off-line equipment.
The wireless AP equipment acquires the mac address of the wireless connection terminal which is accessed currently through the way of iwinfoshassaschist and the like, and acquires the corresponding IP address in/tmp/apdhcp.
As shown in fig. 2, the working principle of the method is schematically shown:
an apDhcpMonitor program is newly added in the wireless AP equipment, a main thread is created for detecting whether the IP address in/tmp/apdhcp. Release is online or not (step S3), another thread is created for capturing a message of a DHCP server (step S4), a DHCP. Release file of the wireless AP equipment is constructed through the apDhcpMonitor, and when the wireless AP equipment reports information of the access equipment, the IP address of the equipment is inquired in the DHCP. Release file through the mac address.
In order to implement the method for obtaining the IP address of the wireless connection terminal, fig. 3 is a block diagram of an apparatus for obtaining the IP address of the wireless connection terminal according to an embodiment of the present invention, where the wireless device includes at least one wireless AP device, and an AC controller that is wired to the wireless AP device, and interactive communication protocols are set on the wireless AP device and the AC controller, and when the wireless AP device is wired to the AC controller, a DHCP server of the wireless AP device is turned off, the apparatus includes:
the matching message module is used for receiving a Discovery message sent by the wireless connection terminal by the wireless AP equipment, forwarding the Discovery message to the AC controller, wherein the Discovery message comprises a matching request;
the message providing module is used for the wireless AP equipment to receive the buffer message sent by the AC controller and transmit the buffer message to the wireless connection terminal, wherein the buffer message comprises an IP address which can be provided by the AC controller;
the Request message module is used for receiving a Request message sent by the wireless connection terminal by the wireless AP equipment and forwarding the Request message to the AC controller, wherein the Request message comprises an IP address which is hoped to be obtained;
the wireless AP equipment receives an ACK message sent by the AC controller and forwards the ACK message to the wireless connection terminal to acquire an IP address, wherein the ACK message comprises a mac address and an IP address
In another aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the computer program is executed by the processor to implement the steps of the method for the wireless device to obtain an IP address of a wireless connection terminal.
In another aspect, embodiments of the present invention also provide a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the method for the wireless device to obtain the IP address of the wireless connection terminal.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, wireless connection terminals (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing wireless connection terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing wireless connection terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing wireless connection terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing wireless connection terminal to cause a series of operational steps to be performed on the computer or other programmable wireless connection terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable wireless connection terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or wireless connection terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or wireless connection terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or wireless connection terminal comprising the element.
The method and apparatus for acquiring the IP address of the wireless connection terminal by the wireless device provided by the present invention are described in detail, and specific examples are applied to illustrate the principles and embodiments of the present invention, where the descriptions of the above examples are only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (10)
1. A method for a wireless device to obtain an IP address of a wireless connection terminal, where the wireless device includes at least one wireless AP device and an AC controller that is wired to the wireless AP device, where an interactive communication protocol is set on the wireless AP device and the AC controller, and when the wireless AP device is wired to the AC controller and a DHCP server of the wireless AP device is turned off, the method includes:
s1, a wireless AP device receives a Discovery message sent by a wireless connection terminal and forwards the Discovery message to an AC controller, wherein the Discovery message comprises a matching request;
s2, the wireless AP equipment receives an Offer message sent by the AC controller and forwards the Offer message to the wireless connection terminal, wherein the Offer message comprises an IP address which can be provided by the AC controller;
s3, the wireless AP equipment receives a Request message sent by the wireless connection terminal and forwards the Request message to the AC controller, wherein the Request message comprises an IP address which is hoped to be obtained;
s4, the wireless AP equipment receives an ACK message sent by the AC controller and forwards the ACK message to the wireless connection terminal to acquire an IP address, wherein the ACK message comprises a mac address and an IP address.
2. The method for obtaining the IP address of the wireless connection terminal by the wireless device according to claim 1, wherein said step S2 further comprises:
the wireless AP equipment captures an buffer message through libcpap, saves a requestip, mac address and a hostname into a configuration file, and configures a flag to be 0 multiplied by 0.
3. The method for obtaining the IP address of the wireless connection terminal by the wireless device according to claim 2, wherein said step S3 further comprises:
the wireless AP device runs IP detection, and periodically detects whether the IP address in the configuration file is allocated; if already allocated, the flag is configured to be 0×0.
4. The method for obtaining the IP address of the wireless connection terminal by the wireless device according to claim 3, wherein said step S4 further comprises:
when the mac address and the IP address in the resolved ACK message exist in the configuration file, the flag is configured to be 0 multiplied by 1.
5. The method for obtaining the IP address of the wireless connection terminal by the wireless device according to claim 4, wherein said step S4 further comprises:
the wireless AP equipment acquires the mac address of the wireless connection terminal which is accessed currently through the iwinfoshassassoclist, and acquires the corresponding IP address in the configuration file through the mac address.
6. The method for obtaining the IP address of the wireless connection terminal by the wireless device according to claim 1, wherein said step S1 further comprises:
the wireless connection terminal sends a Discovery message in a local network in a broadcast mode, the wireless AP equipment receives the Discovery message in a wireless mode and then forwards the Discovery message to the AC controller, and the AC controller constructs an buffer message and sends the buffer message to the wireless AP equipment and forwards the buffer message to the wireless connection terminal for informing of the available IP address.
7. The method for obtaining the IP address of the wireless connection terminal by the wireless device according to claim 6, wherein said step S2 further comprises:
after receiving the buffer message, the wireless connection terminal sends a Request message to the wireless AP device and forwards the Request message to the AC controller, so as to inform the AC controller of the IP address to be allocated.
8. An apparatus for a wireless device to obtain an IP address of a wireless connection terminal, where the wireless device includes at least one wireless AP device and an AC controller that is wired to the wireless AP device, where an interactive communication protocol is set on the wireless AP device and the AC controller, and when the wireless AP device is wired to the AC controller and a DHCP server of the wireless AP device is turned off, the apparatus includes:
the matching message module is used for receiving a Discovery message sent by the wireless connection terminal by the wireless AP equipment, forwarding the Discovery message to the AC controller, wherein the Discovery message comprises a matching request;
the message providing module is used for the wireless AP equipment to receive the buffer message sent by the AC controller and transmit the buffer message to the wireless connection terminal, wherein the buffer message comprises an IP address which can be provided by the AC controller;
the Request message module is used for receiving a Request message sent by the wireless connection terminal by the wireless AP equipment and forwarding the Request message to the AC controller, wherein the Request message comprises an IP address which is hoped to be obtained;
and the wireless AP equipment receives the ACK message sent by the AC controller and forwards the ACK message to the wireless connection terminal to acquire the IP address, wherein the ACK message comprises the mac address and the IP address.
9. An apparatus, the apparatus comprising: memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the method according to any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method according to any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310288591.6A CN116389422A (en) | 2023-03-23 | 2023-03-23 | Method and device for wireless equipment to acquire IP address of wireless connection terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310288591.6A CN116389422A (en) | 2023-03-23 | 2023-03-23 | Method and device for wireless equipment to acquire IP address of wireless connection terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116389422A true CN116389422A (en) | 2023-07-04 |
Family
ID=86968661
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310288591.6A Pending CN116389422A (en) | 2023-03-23 | 2023-03-23 | Method and device for wireless equipment to acquire IP address of wireless connection terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116389422A (en) |
-
2023
- 2023-03-23 CN CN202310288591.6A patent/CN116389422A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111031565B (en) | Method and device for identifying off-line state of ZigBee device | |
EP3229420A1 (en) | Method for establishing persistent connection between multiple smart devices and server, and smart device | |
JP6355275B2 (en) | Realization method of broadband bus setting management in industrial Internet site | |
US8432833B2 (en) | Auto MEP ID assignment within CFM maintenance association | |
CN111130902B (en) | Switch management method, device and storage medium | |
CN109040295B (en) | Method and device for determining abnormal disconnection, terminal and storage medium | |
CN108390795B (en) | Household appliance and monitoring method thereof, smart home system and readable storage medium | |
CN102546267A (en) | Automatic configuration method of network device and management server | |
CN108023763A (en) | The creation method and device of a kind of network topological diagram | |
CN107517138A (en) | Equipment detection method and device | |
CN113108362A (en) | Multi-split air conditioning system | |
CN104639385A (en) | Method and equipment for detecting connectivity of L2VPN (layer 2 virtual private network) user node interface | |
CN111711698A (en) | Intelligent equipment network access method and device and intelligent equipment control system and method | |
CN107124337A (en) | Equipment configuration method, device, system and centralized control terminal | |
CN111225080B (en) | Method for acquiring gateway down-hanging equipment information | |
JP2006338417A (en) | Proxy device | |
CN103780436A (en) | Network device and connection and maintenance method related to network device | |
CN108259636B (en) | Message processing method and device | |
CN112305926B (en) | Distribution network control method, distribution network control device, household appliance and storage medium | |
CN116389422A (en) | Method and device for wireless equipment to acquire IP address of wireless connection terminal | |
CN110048909B (en) | Network operation and maintenance method and device | |
CN116955232A (en) | Hardware identification method and device based on control system | |
CN115174528A (en) | Equipment address control method, device and system | |
JP2010003054A (en) | Network management system, data acquisition device and node operation state acquiring method | |
CN105207811B (en) | Method and device for replacing non-AllJoyn equipment |
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 |