Disclosure of Invention
The invention aims to provide a method, a device, equipment and a storage medium for safely and quickly registering an AP (access point) to a cloud platform.
In a first aspect, an embodiment of the present application provides a method for registering an AP, where the method is applied to an AP, and includes the following steps:
receiving a hypertext transfer protocol request message sent by a terminal after establishing wireless connection with the AP;
pushing a registration page used for selecting whether to register the AP to a cloud platform corresponding to the AP to the terminal;
and if the account information of the cloud platform input by the terminal based on the registration page is received, performing registration interaction with the cloud platform according to the account information.
In a second aspect, an embodiment of the present application provides an AP registration method, where the method is applied to a terminal, and includes the following steps:
after establishing wireless connection with an AP, sending a hypertext transfer protocol request message to the AP;
receiving a registration page which is pushed by the AP and used for selecting whether to register the AP to a cloud platform corresponding to the AP or not, and inputting account information of the cloud platform based on the registration page so as to enable the AP to perform registration interaction with the cloud platform according to the account information.
In a third aspect, an embodiment of the present application provides an AP registration apparatus, where the apparatus is applied to an AP, and the apparatus includes:
the receiving module is used for receiving a hypertext transfer protocol request message sent by a terminal after the terminal establishes wireless connection with the AP;
the pushing module is used for pushing a registration page used for selecting whether to register the AP to a cloud platform corresponding to the AP or not to the terminal;
and the registration module is used for performing registration interaction with the cloud platform according to the account information if the account information of the cloud platform input by the terminal based on the registration page is received.
In a fourth aspect, an embodiment of the present application provides an AP registration apparatus, where the apparatus is applied to a terminal, and the apparatus includes:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a hypertext transfer protocol request message to an AP after establishing wireless connection with the AP;
and the registration module is used for receiving a registration page which is pushed by the AP and is used for selecting whether to register the AP to a cloud platform corresponding to the AP or not, and inputting account information of the cloud platform based on the registration page so as to enable the AP to perform registration interaction with the cloud platform according to the account information.
In a fifth aspect, embodiments of the present application provide an access point, including a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions capable of being executed by the processor, the processor being caused by the machine-executable instructions to implement the method of the first aspect.
In a sixth aspect, embodiments of the present application provide a terminal, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions capable of being executed by the processor, and the processor is caused by the machine-executable instructions to implement the method of the second aspect.
In a seventh aspect, an embodiment of the present application provides a machine-readable storage medium storing machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the method of the first aspect.
In an eighth aspect, embodiments of the present application provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the method of the second aspect.
The invention has the advantages that: the AP borrows a portal authentication mechanism, changes a portal authentication page pushed to the terminal into a registration page, can complete registration without logging in a cloud platform, can quickly and simply complete the registration of the AP on the cloud platform, simplifies the registration process of the AP, and saves time and labor.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, fig. 1 is a first flowchart illustrating an AP registration method according to an embodiment of the present disclosure. The method is applied to the AP and comprises the following steps:
step 101: receiving a hypertext transfer protocol request message sent by a terminal after establishing wireless connection with the AP;
step 102: pushing a registration page used for selecting whether to register the AP to a cloud platform corresponding to the AP to the terminal;
step 103: and if the account information of the cloud platform input by the terminal based on the registration page is received, performing registration interaction with the cloud platform according to the account information.
Preferably, in an alternative embodiment of the present application, the method may further include the steps of: and sending a message of successful registration to the cloud platform to the terminal.
Preferably, in an optional embodiment of the present application, further for security, the wireless service of the AP is provided to the user only when the AP is not successfully registered to the cloud platform, and once the registration is successful, the wireless service is closed or hidden, that is, the AP of the present application implements registration on the cloud platform side only by means of the terminal. That is, the method may further include the steps of: the wireless service is turned off.
By applying the embodiment of the application, the AP borrows the portal authentication mechanism, the portal authentication page pushed to the terminal is replaced by the registration page, the registration can be completed without logging in the cloud platform, the registration of the AP on the cloud platform can be completed quickly and simply, the registration process of the AP is simplified, and the time and the labor are saved.
Referring to fig. 2, fig. 2 is a second flowchart illustrating an AP registration method according to an embodiment of the present disclosure. The method is applied to the terminal and comprises the following steps:
step 201: after establishing wireless connection with an AP, sending a hypertext transfer protocol request message to the AP;
step 202: receiving a registration page which is pushed by the AP and used for selecting whether to register the AP to a cloud platform corresponding to the AP or not, and inputting account information of the cloud platform based on the registration page so as to enable the AP to perform registration interaction with the cloud platform according to the account information.
Preferably, in an alternative embodiment of the present application, the method may further include the steps of: and receiving a message which is sent by the AP and successfully registered to the cloud platform.
By applying the embodiment of the application, the AP borrows the portal authentication mechanism, the portal authentication page pushed to the terminal is replaced by the registration page, the registration can be completed without logging in the cloud platform, the registration of the AP on the cloud platform can be completed quickly and simply, the registration process of the AP is simplified, and the time and the labor are saved.
The following describes in detail a registration process of an AP registering to a cloud platform with reference to a specific example:
and the AP supporting connection with the cloud platform is pre-configured with a WiFi when leaving a factory. The WiFi is set to be accessible to the user, and the name of the WiFi is identifiable. Such as the name containing a serial number or mac address, such as "XXX _ 123456" (123456 being the last six bits of the serial number of the device), or "XXX _ AEDB 34" (AEDB34 being the last six bits of the mac address). The designation WiFi is a special combination to facilitate AP differentiation if there are multiple identical devices in a space. The WiFi default setting is that portal authentication is required, but the subsequent portal authentication is a registration process of registering the AP to the cloud platform.
After the terminal (such as a mobile phone, a PC, and a Pad) is connected with the WiFi, that is, the terminal establishes wireless connection with the AP to acquire an IP address, and then the terminal sends an http request message to the AP; the AP pushes a registration page used for selecting whether to register the AP to a cloud platform corresponding to the AP or not to the terminal; and if the account information of the cloud platform input by the terminal based on the registration page is received, performing registration interaction with the cloud platform according to the account information. For example, the registration page may display "is AP added to cloud platform? If the user selects 'add to cloud platform' at the terminal, the user needs to input user information such as a cloud platform account number at the terminal. And the AP performs registration interaction with the cloud platform according to the user information input by the terminal. For example, the mobile phone may display "please input a cloud platform account", and the user inputs a specific cloud platform account on the mobile phone.
And the AP and the cloud platform interactively acquire account group information corresponding to the account information, namely, the AP acquires the group information under the account from the cloud platform according to the cloud platform account and pushes the group information to the user again. For example, the AP pushes a page "please select a place where the AP needs to join the account" to the user, and the user needs to select a specific place to join in a list, that is, grouping information. Further, the user may be required to enter a password, taking into account security considerations. The confirmation of the cloud platform, the user account and the password information can be completed in one step or in multiple steps, and the whole process is not influenced.
The AP can push a confirmation page for confirming registration interaction with the cloud platform according to the account grouping information corresponding to the account information to the terminal. And when the user clicks 'confirm' on the mobile phone, the AP can automatically join the cloud platform according to the account grouping information, and the registration can be completed without logging in the cloud platform.
After the registration is completed, preferably, a page where the AP is successfully registered to the cloud platform may be further displayed on a terminal such as a mobile phone.
Further for security, the WiFi is only provided to the user if the AP is not successfully registered with the cloud platform, and is turned off once the registration is successful. Further, after registration is successful, the WiFi may also provide for unbinding, i.e., removing the operation of registration, or altering the operation of the joining network.
In the invention, the AP realizes rapid registration to the cloud platform by virtue of the terminal, namely, the terminal is redirected to the registration page by the AP, the page does not process portal authentication, but guides the user to rapidly register the AP to the cloud platform, and the registration process of the AP is simplified.
Referring to fig. 3, fig. 3 is a schematic view of a first structure of an AP registration apparatus according to an embodiment of the present disclosure. The device is applied to the AP, and comprises:
areceiving module 301, configured to receive a hypertext transfer protocol request packet sent by a terminal after establishing a wireless connection with the AP;
a pushingmodule 302, configured to push, to the terminal, a registration page for selecting whether to register the AP to a cloud platform corresponding to the AP;
theregistration module 303 is configured to perform registration interaction with the cloud platform according to the account information if the account information of the cloud platform input by the terminal based on the registration page is received.
Preferably, in an optional embodiment of the present application, the apparatus may further include a sendingmodule 304, configured to send, to the terminal, a message that registration to the cloud platform is successful.
Preferably, the apparatus may further comprise a shutdown module 405 configured to shut down the wireless service.
By applying the embodiment of the application, the AP borrows the portal authentication mechanism, the portal authentication page pushed to the terminal is replaced by the registration page, the registration can be completed without logging in the cloud platform, the registration of the AP on the cloud platform can be completed quickly and simply, the registration process of the AP is simplified, and the time and the labor are saved.
Referring to fig. 4, fig. 4 is a schematic diagram of a second structure of an AP registration apparatus according to an embodiment of the present application. The device is applied to the terminal and comprises:
a sendingmodule 401, configured to send a hypertext transfer protocol request packet to an AP after establishing a wireless connection with the AP;
aregistration module 402, configured to receive a registration page, which is pushed by the AP and used to select whether to register the AP with a cloud platform corresponding to the AP, and input account information of the cloud platform based on the registration page, so that the AP performs registration interaction with the cloud platform according to the account information.
Preferably, in an optional embodiment of the present application, the apparatus may further include areceiving module 403, configured to receive a message that the AP successfully registers to the cloud platform.
By applying the embodiment of the application, the AP borrows the portal authentication mechanism, the portal authentication page pushed to the terminal is replaced by the registration page, the registration can be completed without logging in a cloud platform, the method is quick and simple, the registration process of the AP is simplified, and the time and the labor are saved.
Fig. 5 is a schematic structural diagram of an AP provided in an embodiment of the present application; correspondingly to the above-described AP registration method applied to an AP, an embodiment of the present application further provides an AP, as shown in fig. 5, including aprocessor 501 and a machine-readable storage medium 502, where the machine-readable storage medium 502 stores machine-executable instructions that can be executed by theprocessor 501. Theprocessor 501 is caused by machine executable instructions to implement a registration method for an AP as shown in fig. 1.
By applying the embodiment of the application, the AP borrows the portal authentication mechanism, the portal authentication page pushed to the terminal is replaced by the registration page, the registration can be completed without logging in a cloud platform, the method is quick and simple, the registration process of the AP is simplified, and the time and the labor are saved.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application; correspondingly to the above-described AP registration method applied to the terminal, an embodiment of the present application further provides a terminal, as shown in fig. 6, including aprocessor 601 and a machine-readable storage medium 602, where the machine-readable storage medium 602 stores machine-executable instructions capable of being executed by theprocessor 601. Theprocessor 601 is caused by machine executable instructions to implement a registration method for an AP as shown in fig. 2.
By applying the embodiment of the application, the AP borrows the portal authentication mechanism, the portal authentication page pushed to the terminal is replaced by the registration page, the registration can be completed without logging in a cloud platform, the method is quick and simple, the registration process of the AP is simplified, and the time and the labor are saved.
The machine-readable storage medium may include a RAM (Random Access Memory) and a NVM (Non-Volatile Memory), such as at least one disk Memory. Additionally, the machine-readable storage medium may be at least one memory device located remotely from the aforementioned processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also DSPs (Digital Signal Processing), ASICs (Application Specific Integrated circuits), FPGAs (Field Programmable Gate arrays) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Accordingly, in correspondence with the above-mentioned AP registration method applied to the AP, an embodiment of the present application further provides a machine-readable storage medium storing machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the AP registration method shown in fig. 1.
Accordingly, in correspondence with the above-described AP registration method applied to the terminal, an embodiment of the present application further provides a machine-readable storage medium storing machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the AP registration method shown in fig. 2.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for embodiments of the AP registration method, the AP, the terminal, the cloud platform, and the machine-readable storage medium, since they are substantially similar to the embodiments of the AP registration method, the description is relatively simple, and relevant points can be referred to the partial description of the embodiments of the AP registration method.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.