CN114828004A - Method and device for automatically acquiring IP (Internet protocol) of wireless network equipment by small program - Google Patents
Method and device for automatically acquiring IP (Internet protocol) of wireless network equipment by small program Download PDFInfo
- Publication number
- CN114828004A CN114828004A CN202210470230.9A CN202210470230A CN114828004A CN 114828004 A CN114828004 A CN 114828004A CN 202210470230 A CN202210470230 A CN 202210470230A CN 114828004 A CN114828004 A CN 114828004A
- Authority
- CN
- China
- Prior art keywords
- acs server
- network equipment
- wireless network
- bssid
- applet
- 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
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000004891 communication Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 15
- 230000001788 irregular Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000013507 mapping Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 210000001503 joint Anatomy 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0807—Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
- H04W12/068—Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a method and a device for automatically acquiring an IP (Internet protocol) of wireless network equipment by an applet, wherein the method comprises the following steps: the small program is connected with a wireless network of the network equipment; acquiring BSS ID of a currently connected wireless network; sending the BSS ID to an ACS server; and receiving I P of the network equipment inquired by the ACS server according to the obtained BSS ID, wherein the applet can obtain I P of the network equipment, so that the applet can communicate with the network equipment, can automatically obtain I P from the network equipment which does not support the mDNS protocol, and does not need manual operation of a user.
Description
Technical Field
The invention relates to the technical field of network communication, in particular to a method and a device for automatically acquiring an IP (Internet protocol) of wireless network equipment by an applet.
Background
In the development process of using an applet to maintain and operate network equipment, in order to enable the applet to communicate with the equipment, a key step is to obtain the network equipment IP, at present, the applet only supports to obtain the IP of other equipment in a local area network through an mDNS protocol, but the applet only can enable a user to manually input or extract the IP from a mobile phone cache which is in existence before when the applet wants to obtain the equipment IP which does not support mDNS service, the defect is that the user modifies the IP parameters of the equipment or performs the operation of changing the IP in the using process, the applet needs to manually input the IP again to be communicated with the network equipment when the applet is used, the operation is complicated, and the existing applet has no way of directly obtaining the API of the IP of a wireless network and can only read the BSSID (MAC address) of the connected wireless network.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a device for automatically acquiring an IP (Internet protocol) of wireless network equipment by an applet so as to realize that the applet can automatically acquire the IP from the network equipment which does not support an mDNS (media name system) protocol without manual operation of a user.
In order to achieve the purpose, the invention adopts the following technical scheme:
on one hand, the method for automatically acquiring the IP of the wireless network equipment by the small program comprises the following steps:
a wireless network connecting the network devices;
acquiring BSSID of a wireless network connected currently;
sending the BSSID to an ACS server;
and receiving the IP of the network equipment inquired by the ACS server according to the obtained BSSID.
The further technical scheme is as follows: the network equipment is network equipment which does not support the mDNS protocol.
The further technical scheme is as follows: further comprising:
the ACS server authenticates the communication request of the network equipment;
and after the authentication is passed, the network equipment reports the BSSID and the IP of the network equipment to the ACS server.
The further technical scheme is as follows: the ACS server authenticates the communication request of the network equipment, and comprises the following steps:
the ACS server sends a request for providing the SN serial number to the network equipment;
the network equipment sends the encrypted SN serial number to an ACS server according to the request;
the ACS server compares the received encrypted SN serial number with the SN serial number of the network equipment stored by the ACS server;
if the encrypted SN serial number is matched with the stored SN serial number, the authentication is passed;
if the encrypted SN sequence number does not match the stored SN sequence number, authentication does not pass.
The further technical scheme is as follows: after the authentication is passed, the network equipment reports the BSSID and the IP of the network equipment to the ACS server, and reports the BSSID and the IP of the network equipment by adopting a timing or non-timing strategy.
The further technical scheme is as follows: and the network equipment and the ACS server are communicated through a TR069 protocol.
The further technical scheme is as follows: the sending the BSSID to the ACS server includes:
sending a first request of IP query of the network equipment to an ACS server;
receiving a Token generated by the ACS server according to the first request;
and sending a second request with the Token and the BSSID to the ACS server.
In a second aspect, an apparatus for automatically acquiring an IP of a wireless network device by an applet includes a connection unit, an acquisition unit, a sending unit, and a receiving unit;
the connection unit is used for connecting a wireless network of the network equipment;
the acquiring unit is used for acquiring BSSID of the currently connected wireless network;
the sending unit is used for sending the BSSID to the ACS server;
and the receiving unit is used for receiving the IP of the network equipment inquired by the ACS server according to the obtained BSSID.
In a third aspect, a computer device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the method steps of the applet automatically acquiring the IP of the wireless network device.
In a fourth aspect, a computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method steps of automatically acquiring an IP of a wireless network device as described above by an applet.
Compared with the prior art, the invention has the beneficial effects that: the invention connects the wireless network of the network equipment through the small program; acquiring BSSID of a wireless network connected currently; sending the BSSID to an ACS server; and receiving the IP of the network equipment inquired by the ACS server according to the obtained BSSID, wherein the IP of the network equipment can be obtained by the applet and can be communicated with the network equipment, and the applet can automatically obtain the IP from the network equipment which does not support the mDNS protocol without manual operation of a user.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical means of the present invention more clearly understood, the present invention may be implemented according to the content of the description, and in order to make the above and other objects, features, and advantages of the present invention more apparent, the following detailed description will be given of preferred embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a method for automatically acquiring an IP of a wireless network device by an applet according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for automatically acquiring an IP of a wireless network device by an applet according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of an apparatus for automatically acquiring an IP of a wireless network device by an applet according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
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 some, not all, embodiments of the present invention. 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.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Fig. 1 is a schematic application scenario diagram of a method for automatically acquiring an IP of a wireless network device by an applet according to an embodiment of the present invention. The electronic device may be one of a mobile phone, a tablet computer, a smart watch, smart glasses, and an electronic reader, and the applet may be one of an application program on the electronic device and an application program on application software on the electronic device, and may refer to a wechat applet and a pay small applet, for example. The server may be a cloud server, a local server, or the like having data processing capabilities. The network device is a router, a CPE, or the like, and does not support mDNS service (multicast DNS). Fig. 2 is a flowchart of a method for automatically acquiring an IP of a wireless network device by an applet according to an embodiment of the present invention.
As shown in fig. 2, the method for automatically acquiring the IP of the wireless network device by the applet comprises the following steps: S10-S40.
S10, connecting the wireless network of the network equipment.
In this embodiment, the applet is a WeChat applet, and the electronic device is a mobile phone. The user first connects to the wireless network of the network device through the mobile phone. Executing wx.getnetworktype () function in lifecycle function onLoad () of the WeChat applet to detect whether the current mobile phone of the user is connected with a wifi network, and returning a networkType field for judging the current network type; when the returned networkType field is 'none', the mobile phone of the user is not connected with a wireless network, and the user needs to be prompted to connect with a wifi network; and if the networkType field is wifi, indicating that the mobile phone of the user is connected with a wifi network.
It should be noted that, for a network device supporting the mDNS protocol, the current applet can automatically acquire the IP of the network device, so that the present invention mainly aims at a network device that does not support the mDNS protocol, and the network device described in the following content is a network device that does not support the mDNS protocol.
And S20, acquiring the BSSID of the wireless network which is currently connected.
In this embodiment, when the mobile phone is connected to the wireless network of the network device, the wechat applet may obtain the BSSID (MAC address of the wireless network) of the wireless network through the open interface (wx.
S30, sending the BSSID to the ACS server.
In an embodiment, step S30 specifically includes the following steps: S301-S303.
S301, sending a first request of IP inquiry of the network equipment to the ACS server.
In this embodiment, in order to obtain the network device IP from the ACS server, the wechat applet first sends a query request to the query interface of the ACS server using the wx.
S302, receiving the Token generated by the ACS server according to the first request.
In this embodiment, after receiving the first request sent by the wechat applet, the ACS server generates random mapping to concatenate a secret key secret (random mapping + secret) agreed by the ACS server, encrypts the generated Token by using sha256, and sends the Token to the wechat applet.
S303, sending a second request attached with Token and BSSID to the ACS server.
In this embodiment, after receiving the Token sent by the ACS server, the wechat applet sends a second request with the Token and BSSID to the ACS server again.
And S40, receiving the IP of the network equipment inquired by the ACS server according to the obtained BSSID.
In this embodiment, the ACS server compares and verifies Token sent by the wechat applet, queries the network device IP corresponding to the BSSID in the database after the verification is passed, and returns the IP to the wechat applet through the interface, so that the wechat applet can obtain the IP of the network device at this time.
In an embodiment, the method for automatically acquiring the IP of the wireless network device by the applet further comprises the following steps: S100-S200.
S100, the ACS server authenticates the communication request of the network equipment.
And S200, after the authentication is passed, the network equipment reports the BSSID and the IP of the network equipment to the ACS server.
In this embodiment, for steps S100 and S200, since the wechat applet wants to obtain the IP of the network device from the ACS server, the ACS server needs to know the IP and BSSID of the network device corresponding to the wireless network connected to the wechat applet, and based on this, the ACS server needs to establish a communication relationship with the network device.
In view of the safety aspect that the ACS server needs to communicate with the network equipment, the ACS server needs to authenticate the network equipment, and the specified network equipment and model can communicate with the ACS server to avoid the risk that the communication content is intercepted, cracked or tampered.
In one embodiment, step S100 specifically includes the following steps S110-S150.
S110, the ACS server sends a request for providing the SN serial number to the network device.
And S120, the network equipment sends the encrypted SN serial number to the ACS server according to the request.
S130, the ACS server compares the received encrypted SN serial number with the SN serial number of the network equipment stored by the ACS server.
And S140, if the encrypted SN serial number is matched with the stored SN serial number, the authentication is passed.
And S150, if the encrypted SN serial number does not match the stored SN serial number, the authentication is not passed.
For steps S110 to S150, the ACS server stores the SN serial number of the network device in advance, when the network device is docked to the ACS server, the ACS will inquire the SN serial number of the device, the SN serial number encrypted by sha256 must be carried when the network device reports, if there is no SN serial number or the SN is not matched with the SN specified in the ACS server, the authentication is not passed, and if the SN is matched, the authentication is passed.
In an embodiment, after the authentication is passed, the network device reports its BSSID and IP to the ACS, and reports its BSSID and IP using a regular or irregular policy.
In one embodiment, after the network device and the ACS server can communicate with each other, the network device and the ACS server communicate with each other through the TR069 protocol.
In this embodiment, the ACS server needs to own and start the TR069 function, and needs to configure TR069 configuration fields such as ACS URL, and TR069 is a connected state. The network equipment starts an automatic report ACS server side switch, sets a report period and an ACS URL (for example, http:// cn.tr069.cwapd.com:8080/ACS), and reports the BSSID and the IP timing of the equipment to the ACS server through an interface provided by the ACS.
The invention realizes that the small program can automatically acquire the IP from the network equipment which does not support the mDNS protocol without manual operation of a user.
Fig. 3 is a schematic block diagram of an apparatus for automatically acquiring an IP of a wireless network device by an applet according to an embodiment of the present invention; corresponding to the method for automatically acquiring the IP of the wireless network device by the applet, the embodiment of the present invention further provides an apparatus 100 for automatically acquiring the IP of the wireless network device by the applet.
As shown in fig. 3, the apparatus 100 for automatically acquiring the wireless network device IP by the applet includes a connection unit 110, an acquisition unit 120, a sending unit 130, and a receiving unit 140.
The connection unit 110 is used for connecting a wireless network of the network device.
In this embodiment, the applet is a WeChat applet, and the electronic device is a mobile phone. The user first connects to the wireless network of the network device through the mobile phone. Executing wx.getNetworkType () function in lifecycle function onLoad () of the WeChat applet to detect whether a current mobile phone of a user is connected with a wifi network, and returning a networkType field for judging the current network type; when the returned networkType field is 'none', the mobile phone of the user is not connected with a wireless network, and the user needs to be prompted to connect with a wifi network; and if the networkType field is wifi, indicating that the mobile phone of the user is connected with a wifi network.
It should be noted that, for a network device supporting the mDNS protocol, the current applet can automatically acquire the IP of the network device, so that the present invention mainly aims at a network device that does not support the mDNS protocol, and the network device described in the following content is a network device that does not support the mDNS protocol.
An obtaining unit 120, configured to obtain a BSSID of a currently connected wireless network.
In this embodiment, when the mobile phone is connected to the wireless network of the network device, the wechat applet may obtain the BSSID (MAC address of the wireless network) of the wireless network through the open interface (wx.
A transmitting unit 130, configured to transmit the BSSID to the ACS server.
In an embodiment, the sending unit 130 specifically includes a first sending module, a receiving module, and a second sending module.
And the first sending module is used for sending a first request of IP inquiry of the network equipment to the ACS server.
In this embodiment, in order to obtain the network device IP from the ACS server, the wechat applet first sends a query request to the query interface of the ACS server using the wx.
And the receiving module is used for receiving the Token generated by the ACS server according to the first request.
In this embodiment, after receiving the first request sent by the wechat applet, the ACS server generates random mapping to concatenate a secret key secret (random mapping + secret) agreed by the ACS server, encrypts the generated Token by using sha256, and sends the Token to the wechat applet.
And the second sending module is used for sending a second request with the Token and the BSSID to the ACS server.
In this embodiment, after receiving the Token sent by the ACS server, the wechat applet sends a second request with the Token and BSSID to the ACS server again.
A receiving unit 140, configured to receive the IP of the network device queried by the ACS server according to the obtained BSSID.
In this embodiment, the ACS server compares and verifies Token sent by the wechat applet, queries the network device IP corresponding to the BSSID in the database after the verification is passed, and returns the IP to the wechat applet through the interface, so that the wechat applet can obtain the IP of the network device at this time.
In an embodiment, the apparatus for automatically acquiring the IP of the wireless network device by the applet further includes a request unit and a reporting unit.
And the request unit is used for authenticating the communication request of the network equipment by the ACS server.
And the reporting unit is used for reporting the BSSID and the IP of the network equipment to the ACS server after the authentication is passed.
In this embodiment, for the requesting unit and the reporting unit, since the wechat applet wants to obtain the IP of the network device from the ACS server, the ACS server needs to know the IP and BSSID of the network device corresponding to the wireless network connected to the wechat applet, and based on this, the ACS server needs to establish a communication relationship with the network device.
In view of the safety aspect that the ACS server needs to communicate with the network equipment, the ACS server needs to authenticate the network equipment, and the specified network equipment and model can communicate with the ACS server to avoid the risk that the communication content is intercepted, cracked or tampered.
In one embodiment, the request unit includes a third sending module, a fourth sending module, a comparing module, a first determining module and a second determining module.
And the third sending module is used for sending a request for providing the SN serial number to the network equipment by the ACS server.
And the fourth sending module is used for sending the encrypted SN serial number to the ACS server by the network equipment according to the request.
And the comparison module is used for comparing the received encrypted SN serial number with the SN serial number of the network equipment stored by the ACS server.
And the first judging module is used for passing the authentication if the encrypted SN serial number is matched with the stored SN serial number.
And the second judgment module is used for failing authentication if the encrypted SN serial number does not match the stored SN serial number.
For the third sending module, the fourth sending module, the comparison module, the first judgment module and the second judgment module, the ACS server stores the SN serial number of the network equipment in advance, when the network equipment is in butt joint with the ACS server, the ACS inquires the SN serial number of the equipment, the SN number encrypted by sha256 must be carried when the network equipment reports, if the SN serial number does not exist or the SN is not matched with the SN specified in the ACS server, the authentication is not passed, and if the SN is matched, the authentication is passed.
In an embodiment, after the authentication is passed, the network device reports its BSSID and IP to the ACS, and reports its BSSID and IP using a regular or irregular policy.
In one embodiment, after the network device and the ACS server can communicate with each other, the network device and the ACS server communicate with each other through the TR069 protocol.
In this embodiment, the ACS server needs to own and start the TR069 function, and needs to configure TR069 configuration fields such as ACS URL, and TR069 is a connected state. The network equipment starts an automatic report ACS server side switch, sets a report period and an ACS URL (for example, http:// cn.tr069.cwapd.com:8080/ACS), and reports the BSSID and the IP timing of the equipment to the ACS server through an interface provided by the ACS.
The invention realizes that the small program can automatically acquire the IP from the network equipment which does not support the mDNS protocol without manual operation of a user.
The means for automatically acquiring the IP of the wireless network device by the applet may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 4.
Referring to fig. 4, fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server, wherein the server may be an independent server or a server cluster composed of a plurality of servers.
As shown in fig. 4, the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method steps of the applet automatically acquiring the IP of the wireless network device are realized.
The computer device 700 may be a terminal or a server. The computer device 700 includes a processor 720, memory, and a network interface 750, which are connected by a system bus 710, where the memory may include non-volatile storage media 730 and internal memory 740.
The non-volatile storage medium 730 may store an operating system 731 and computer programs 732. The computer programs 732, when executed, cause the processor 720 to perform any of the methods for an applet to automatically obtain an IP for a wireless network device.
The processor 720 is used to provide computing and control capabilities, supporting the operation of the overall computer device 700.
The internal memory 740 provides an environment for the execution of the computer program 732 in the non-volatile storage medium 730, and when the computer program 732 is executed by the processor 720, the processor 720 can be caused to perform any method for automatically acquiring the IP of the wireless network device by an applet.
The network interface 750 is used for network communication such as sending assigned tasks and the like. Those skilled in the art will appreciate that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computing device 700 upon which the present application may be implemented, and that a particular computing device 700 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components. Wherein the processor 720 is configured to execute the program code stored in the memory to perform the following steps:
a wireless network connecting the network devices;
acquiring BSSID of a wireless network connected currently;
sending the BSSID to an ACS server;
and receiving the IP of the network equipment inquired by the ACS server according to the obtained BSSID.
In one embodiment: the network equipment is network equipment which does not support the mDNS protocol.
In one embodiment: further comprising:
the ACS server authenticates the communication request of the network equipment;
after the authentication is passed, the network equipment reports the BSSID and the IP of the network equipment to the ACS server.
In one embodiment: the ACS server authenticates the communication request of the network equipment, and the authentication comprises the following steps:
the ACS server sends a request for providing the SN serial number to the network equipment;
the network equipment sends the encrypted SN serial number to an ACS server according to the request;
the ACS server compares the received encrypted SN serial number with the SN serial number of the network equipment stored by the ACS server;
if the encrypted SN serial number is matched with the stored SN serial number, the authentication is passed;
if the encrypted SN sequence number does not match the stored SN sequence number, authentication does not pass.
In one embodiment: after the authentication is passed, the network equipment reports the BSSID and the IP of the network equipment to the ACS server, and reports the BSSID and the IP of the network equipment by adopting a timing or non-timing strategy.
In one embodiment: and the network equipment and the ACS server are communicated through a TR069 protocol.
In one embodiment: the sending the BSSID to the ACS server includes:
sending a first request of IP query of the network equipment to an ACS server;
receiving a Token generated by the ACS server according to the first request;
and sending a second request with the Token and the BSSID to the ACS server.
It should be understood that, in the embodiment of the present Application, the Processor 720 may be a Central Processing Unit (CPU), and the Processor 720 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that the configuration of computer device 700 depicted in FIG. 4 is not intended to be limiting of computer device 700 and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
In another embodiment of the present invention, a computer-readable storage medium is provided. The computer readable storage medium may be a non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the method for automatically acquiring the IP of the wireless network device by the applet disclosed in the embodiments of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions when the actual implementation is performed, or units having the same function may be grouped into one unit, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. The method for automatically acquiring the IP of the wireless network equipment by the small program is characterized by comprising the following steps:
a wireless network connecting the network devices;
acquiring BSSID of a wireless network connected currently;
sending the BSSID to an ACS server;
and receiving the IP of the network equipment inquired by the ACS server according to the obtained BSSID.
2. The method for automatically acquiring the IP of the wireless network device by the applet as claimed in claim 1, wherein the network device is a network device that does not support mDNS protocol.
3. The method for automatically acquiring the IP of the wireless network device by the applet as claimed in claim 1, further comprising:
the ACS server authenticates the communication request of the network equipment;
after the authentication is passed, the network equipment reports the BSSID and the IP of the network equipment to the ACS server.
4. The method for automatically acquiring the IP of the wireless network device by the applet as claimed in claim 3, wherein the ACS server authenticates the communication request of the network device, comprising:
the ACS server sends a request for providing the SN serial number to the network equipment;
the network equipment sends the encrypted SN serial number to an ACS server according to the request;
the ACS server compares the received encrypted SN serial number with the SN serial number of the network equipment stored by the ACS server;
if the encrypted SN serial number is matched with the stored SN serial number, the authentication is passed;
if the encrypted SN sequence number does not match the stored SN sequence number, authentication does not pass.
5. The method for automatically acquiring the IP of the wireless network device by the applet as claimed in claim 3, wherein the network device reports the BSSID and IP of itself to the ACS server after the authentication is passed, and reports the BSSID and IP of itself by a regular or irregular strategy.
6. The method for automatically acquiring the IP of the wireless network device by the applet of claim 3, wherein the communication between the network device and the ACS server is performed by TR069 protocol.
7. The applet method for automatically acquiring the IP of a wireless network device according to claim 1, characterized in that said sending BSSID to the ACS server comprises:
sending a first request of IP query of the network equipment to an ACS server;
receiving a Token generated by the ACS server according to the first request;
and sending a second request with the Token and the BSSID to the ACS server.
8. The device for automatically acquiring the IP of the wireless network equipment by the small program is characterized by comprising a connecting unit, an acquiring unit, a sending unit and a receiving unit;
the connection unit is used for connecting a wireless network of the network equipment;
the acquiring unit is used for acquiring BSSID of the currently connected wireless network;
the sending unit is used for sending the BSSID to the ACS server;
and the receiving unit is used for receiving the IP of the network equipment inquired by the ACS server according to the obtained BSSID.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method steps of automatically acquiring an IP of a wireless network device by an applet as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to carry out the method steps of automatically acquiring an IP of a wireless network device according to the applet of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210470230.9A CN114828004B (en) | 2022-04-28 | 2022-04-28 | Method and device for automatically acquiring IP of wireless network equipment by applet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210470230.9A CN114828004B (en) | 2022-04-28 | 2022-04-28 | Method and device for automatically acquiring IP of wireless network equipment by applet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114828004A true CN114828004A (en) | 2022-07-29 |
CN114828004B CN114828004B (en) | 2024-01-26 |
Family
ID=82508729
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210470230.9A Active CN114828004B (en) | 2022-04-28 | 2022-04-28 | Method and device for automatically acquiring IP of wireless network equipment by applet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114828004B (en) |
Citations (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1842782A (en) * | 2003-12-19 | 2006-10-04 | 微软公司 | Server architecture for network resource information routing |
US20090028101A1 (en) * | 2005-03-15 | 2009-01-29 | Nec Corporation | Authentication method in a radio communication system, a radio terminal device and radio base station using the method, a radio communication system using them, and a program thereof |
CN101399786A (en) * | 2007-09-29 | 2009-04-01 | 华为技术有限公司 | Method, apparatus and system for network safe transmission |
EP2161943A1 (en) * | 2008-09-08 | 2010-03-10 | Alcatel, Lucent | Method for remotely managing devices, devices and systems related thereto |
CN101965029A (en) * | 2009-07-21 | 2011-02-02 | 华为终端有限公司 | Processing method supporting switching, communication device and communication system |
US20110196962A1 (en) * | 2008-07-28 | 2011-08-11 | France Telecom | Method for Obtaining Information from a Local Terminal Environment |
CN102594579A (en) * | 2011-01-06 | 2012-07-18 | 卓思网络公司 | Automatic configuration and network deployment for network devices |
CN103517383A (en) * | 2012-06-18 | 2014-01-15 | 华为终端有限公司 | A method and a device for the access of a mobile terminal to a household network |
CN105009085A (en) * | 2013-03-18 | 2015-10-28 | 株式会社东芝 | Information processing system, control program, and information processing device |
CN106686592A (en) * | 2016-07-12 | 2017-05-17 | 飞天诚信科技股份有限公司 | Authenticated network access method and system |
CN107579991A (en) * | 2017-09-28 | 2018-01-12 | 北京奇安信科技有限公司 | A kind of method that high in the clouds protection certification is carried out to client, server and client side |
US20180035292A1 (en) * | 2016-07-28 | 2018-02-01 | Aruba Networks,Inc. | Deauthenticate a client device during an association validation phase based on a plurality of capabilities associated with the client device |
CN108023773A (en) * | 2017-12-07 | 2018-05-11 | 锐捷网络股份有限公司 | A kind of method and configuration server realized network equipment zero configuration and reached the standard grade |
CN108040356A (en) * | 2017-11-15 | 2018-05-15 | 上海连尚网络科技有限公司 | Obtain, provide method, equipment and the medium of wireless access point access information |
CN108430063A (en) * | 2018-04-13 | 2018-08-21 | 上海连尚网络科技有限公司 | A kind of method and apparatus for monitoring ARP deceptions in WLAN |
CN108566656A (en) * | 2018-04-13 | 2018-09-21 | 上海连尚网络科技有限公司 | A kind of method and apparatus for detecting wireless network secure |
CN108848086A (en) * | 2018-06-07 | 2018-11-20 | 广东工业大学 | Authentication method, device, equipment and the storage medium of unmanned machine communication network |
CN110417570A (en) * | 2018-04-30 | 2019-11-05 | 慧与发展有限责任合伙企业 | For the method and system by network configuration and management internet of things equipment |
US20200162580A1 (en) * | 2018-11-20 | 2020-05-21 | Hewlett Packard Enterprise Development Lp | Server recommendations for broadcasted services |
CN111294416A (en) * | 2020-01-16 | 2020-06-16 | Oppo(重庆)智能科技有限公司 | Method for obtaining IP address and related product |
CN112055064A (en) * | 2020-08-26 | 2020-12-08 | 北京致医健康信息技术有限公司 | Data synchronization method, device, equipment and storage medium |
CN113268502A (en) * | 2020-12-23 | 2021-08-17 | 上海右云信息技术有限公司 | Method and equipment for providing information |
US20210344642A1 (en) * | 2020-05-02 | 2021-11-04 | Arris Enterprises Llc | Specifying a User Group in a Multicast Domain Name System |
WO2022057662A1 (en) * | 2020-09-17 | 2022-03-24 | 华为技术有限公司 | Server selection method and apparatus |
-
2022
- 2022-04-28 CN CN202210470230.9A patent/CN114828004B/en active Active
Patent Citations (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1842782A (en) * | 2003-12-19 | 2006-10-04 | 微软公司 | Server architecture for network resource information routing |
US20090028101A1 (en) * | 2005-03-15 | 2009-01-29 | Nec Corporation | Authentication method in a radio communication system, a radio terminal device and radio base station using the method, a radio communication system using them, and a program thereof |
CN101399786A (en) * | 2007-09-29 | 2009-04-01 | 华为技术有限公司 | Method, apparatus and system for network safe transmission |
US20110196962A1 (en) * | 2008-07-28 | 2011-08-11 | France Telecom | Method for Obtaining Information from a Local Terminal Environment |
EP2161943A1 (en) * | 2008-09-08 | 2010-03-10 | Alcatel, Lucent | Method for remotely managing devices, devices and systems related thereto |
CN101965029A (en) * | 2009-07-21 | 2011-02-02 | 华为终端有限公司 | Processing method supporting switching, communication device and communication system |
CN102594579A (en) * | 2011-01-06 | 2012-07-18 | 卓思网络公司 | Automatic configuration and network deployment for network devices |
CN103517383A (en) * | 2012-06-18 | 2014-01-15 | 华为终端有限公司 | A method and a device for the access of a mobile terminal to a household network |
CN105009085A (en) * | 2013-03-18 | 2015-10-28 | 株式会社东芝 | Information processing system, control program, and information processing device |
CN106686592A (en) * | 2016-07-12 | 2017-05-17 | 飞天诚信科技股份有限公司 | Authenticated network access method and system |
US20180035292A1 (en) * | 2016-07-28 | 2018-02-01 | Aruba Networks,Inc. | Deauthenticate a client device during an association validation phase based on a plurality of capabilities associated with the client device |
CN107579991A (en) * | 2017-09-28 | 2018-01-12 | 北京奇安信科技有限公司 | A kind of method that high in the clouds protection certification is carried out to client, server and client side |
CN108040356A (en) * | 2017-11-15 | 2018-05-15 | 上海连尚网络科技有限公司 | Obtain, provide method, equipment and the medium of wireless access point access information |
CN108023773A (en) * | 2017-12-07 | 2018-05-11 | 锐捷网络股份有限公司 | A kind of method and configuration server realized network equipment zero configuration and reached the standard grade |
CN108430063A (en) * | 2018-04-13 | 2018-08-21 | 上海连尚网络科技有限公司 | A kind of method and apparatus for monitoring ARP deceptions in WLAN |
CN108566656A (en) * | 2018-04-13 | 2018-09-21 | 上海连尚网络科技有限公司 | A kind of method and apparatus for detecting wireless network secure |
CN110417570A (en) * | 2018-04-30 | 2019-11-05 | 慧与发展有限责任合伙企业 | For the method and system by network configuration and management internet of things equipment |
CN108848086A (en) * | 2018-06-07 | 2018-11-20 | 广东工业大学 | Authentication method, device, equipment and the storage medium of unmanned machine communication network |
US20200162580A1 (en) * | 2018-11-20 | 2020-05-21 | Hewlett Packard Enterprise Development Lp | Server recommendations for broadcasted services |
CN111294416A (en) * | 2020-01-16 | 2020-06-16 | Oppo(重庆)智能科技有限公司 | Method for obtaining IP address and related product |
US20210344642A1 (en) * | 2020-05-02 | 2021-11-04 | Arris Enterprises Llc | Specifying a User Group in a Multicast Domain Name System |
CN112055064A (en) * | 2020-08-26 | 2020-12-08 | 北京致医健康信息技术有限公司 | Data synchronization method, device, equipment and storage medium |
WO2022057662A1 (en) * | 2020-09-17 | 2022-03-24 | 华为技术有限公司 | Server selection method and apparatus |
CN113268502A (en) * | 2020-12-23 | 2021-08-17 | 上海右云信息技术有限公司 | Method and equipment for providing information |
Non-Patent Citations (1)
Title |
---|
李卫民,李伟征,涂秀梅: "接入点内部协议及其在接入点上的实现研究", 电力系统通信, no. 04 * |
Also Published As
Publication number | Publication date |
---|---|
CN114828004B (en) | 2024-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6941689B2 (en) | Smart broadcast processing method and equipment | |
US8701199B1 (en) | Establishing a trusted session from a non-web client using adaptive authentication | |
CN103746812B (en) | A kind of access authentication method and system | |
US9736165B2 (en) | Centralized authentication for granting access to online services | |
US10063527B2 (en) | Techniques for handshake-free encrypted communication using symmetric key caching during request-and-response | |
CN106302308B (en) | Trust login method and device | |
WO2016062002A1 (en) | Connection management method and apparatus, electrical device | |
WO2016134657A1 (en) | Operating method for push authentication system and device | |
CN109586969A (en) | Content distributing network disaster recovery method, device, computer equipment and storage medium | |
US20140298428A1 (en) | Method for allowing user access, client, server, and system | |
CN102025740B (en) | Single sign-on method, fat client, server and system | |
CN101605108A (en) | A kind of method, system and device of instant messaging | |
CN110704566B (en) | Data acquisition method and device based on geographic position and computer equipment | |
CN105306210A (en) | Method, device and system for realizing authorization through application | |
WO2016062198A1 (en) | Verification method and apparatus | |
CN110765443A (en) | Single sign-on method and device, computer equipment and storage medium | |
CN105338525B (en) | Log in access processing method, apparatus and system | |
CN110677423A (en) | Data acquisition method and device based on client agent side and computer equipment | |
EP2931000B1 (en) | Wireless communication apparatus, wireless communication method, and wireless communication program | |
CN110691091A (en) | Data acquisition method and device based on identity authentication and computer equipment | |
CN104168261B (en) | Dynamic password login method and device | |
US9674149B2 (en) | System and method for establishing a virtual private network of a mobile device through a preferred network | |
CN114828004A (en) | Method and device for automatically acquiring IP (Internet protocol) of wireless network equipment by small program | |
CN111786932B (en) | Account login method and device, electronic equipment and computer storage medium | |
CN116489762A (en) | Access registration method, device, system, communication equipment and 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 510000 room 1301, No. 37, Jinlong street, Xiangjiang financial and business center, Nansha District, Guangzhou City, Guangdong Province (office only) Applicant after: Guangzhou Tongze Kangwei Technology Co.,Ltd. Address before: 510000 room 1301, No. 37, Jinlong street, Xiangjiang financial and business center, Nansha District, Guangzhou City, Guangdong Province (office only) Applicant before: Guangzhou Tongze Kangwei Intelligent Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |