CN105959968B - wifi configuration method and device - Google Patents

wifi configuration method and device Download PDF

Info

Publication number
CN105959968B
CN105959968B CN201610284009.9A CN201610284009A CN105959968B CN 105959968 B CN105959968 B CN 105959968B CN 201610284009 A CN201610284009 A CN 201610284009A CN 105959968 B CN105959968 B CN 105959968B
Authority
CN
China
Prior art keywords
configuration
softap
mode
wifi
wifi equipment
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.)
Active
Application number
CN201610284009.9A
Other languages
Chinese (zh)
Other versions
CN105959968A (en
Inventor
贺忠海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Haier Uplus Intelligent Technology Beijing Co Ltd
Priority to CN201610284009.9A priority Critical patent/CN105959968B/en
Publication of CN105959968A publication Critical patent/CN105959968A/en
Application granted granted Critical
Publication of CN105959968B publication Critical patent/CN105959968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

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

Abstract

the invention discloses a Wifi configuration method and device. The Wifi configuration method for the control terminal comprises the following steps: in the process of configuring the Wifi equipment into the network, if the Wifi equipment is detected to be unsuccessfully configured, acquiring an error code of smartlink/softAP configuration failure from the Wifi equipment through a softAP configuration mode; outputting an error code; and after the user finishes error correction according to the error code, continuing to finish softAP configuration with Wifi equipment after the user is detected to finish error correction. The invention provides a more transparent and friendly configuration mode for users, and can effectively improve the success rate of Wifi configuration.

Description

wifi configuration method and device
Technical Field
The invention relates to the technical field of Internet of things, in particular to a Wifi configuration method and device.
Background
With the development of the Wifi equipment and the increase of the number of users, higher user experience requirements are provided for the configuration process of connecting the Wifi intelligent equipment with the wireless access point. At present, when Wifi equipment is configured with Wifi, two modes are generally adopted:
one is smartlink configuration mode. The Wifi equipment works in a smartlink configuration mode to monitor, the APP of the control terminal sends multicast data to the Wifi equipment for configuration, and the Wifi equipment resolves a Service Set Identifier (SSID) and a PASSword (PASsword) according to the content of a multicast packet after receiving the multicast data, so that configuration is completed. The smartlink configuration mode has the advantages of being fast, simple and convenient, and facilitating fast completion of Wifi connection of a large number of Wifi devices, but has poor compatibility when the smartlink configuration mode has the defects.
the other is softAP configuration mode. The Wifi equipment works in a softAP configuration mode, after the terminal APP is connected with the softAP, the SSID and the PASSSword of the wireless access point AP are sent to the Wifi equipment, and configuration is completed. And the configuration process of the softAP configuration mode is complicated, the configuration time is long, the efficiency is low, and the configuration is stable and good in compatibility.
both the smartlink configuration mode and the softAP configuration mode have configuration failure, and particularly, the smartlink configuration mode has configuration failure due to poor compatibility. However, when Wifi configuration fails, it may cause reconfiguration failure when another configuration mode is subsequently selected, which reduces the success rate of configuration and affects the user experience.
disclosure of Invention
The technical problem to be solved by the present invention is to provide a Wifi configuration method and device, so as to solve the problem in the prior art that when Wifi configuration is wrong, the success rate of subsequent configuration is low.
in order to achieve the purpose, the invention adopts the following technical scheme:
According to an aspect of the present invention, a Wifi configuration method is provided, which is used in a control terminal, and includes the following steps:
in the process of configuring and accessing the network for the Wifi equipment, if the configuration failure of the Wifi equipment is detected, acquiring an error code of smartlink/softAP configuration failure from the Wifi equipment through a softAP configuration mode;
outputting the error code;
And after the user to be detected finishes error correction according to the error code, continuing to finish softAP configuration with the Wifi equipment.
Further, detecting whether the Wifi device fails to configure the configuration includes:
and sending a configuration message to the Wifi equipment, and if the configuration success message fed back by the Wifi equipment is not received within the preset time, judging that the Wifi equipment fails to be configured.
Further, acquiring an error code of failed smartlink configuration from the Wifi device through a softAP configuration mode, including:
switching from the smartlink configuration mode to the softAP configuration mode;
And under a softAP configuration mode, establishing connection with the Wifi equipment to acquire an error code of which smartlink configuration fails.
Further, the completing softAP configuration with the Wifi device includes:
Acquiring a wireless access point list from the Wifi equipment;
Selecting a wireless access point from the wireless access point list, and configuring the SSID and the password of the wireless access point;
and sending the SSID and the password of the selected wireless access point to the Wifi equipment.
further, the error codes comprise configuration timeout, authentication failure, failure of DHCP to acquire IP address and error codes of no-scan wireless access point.
According to another aspect of the present invention, a Wifi configuration method is provided, which is used in Wifi devices, and includes the following steps:
In the process that a control terminal controls configuration and network access, if configuration failure is detected, acquiring error codes of smartlink/softAP configuration failure;
Sending the error code to a control terminal in a softAP configuration mode;
And completing softAP configuration according to the configuration information sent by the control terminal.
Further, the method for detecting whether the configuration fails includes:
And if the wireless access point is detected to be unable to be connected within the preset time after the network access of the configuration is confirmed, determining that the configuration is failed.
Further, after the Wifi device obtains an error code that smartlink configuration fails, the smartlink configuration mode is switched to the softAP configuration mode.
further, the completing softAP configuration according to the configuration information sent by the control terminal includes:
When the control terminal acquires a wireless access point list, the acquired wireless access point list is sent to the control terminal;
and connecting the wireless access points according to the SSID and the password of the wireless access points sent by the control terminal.
Further, the error code is obtained according to an API interface function of a chip adopted by the Wifi device.
Further, the error codes comprise configuration timeout, authentication failure, failure of DHCP to acquire IP address and error codes of no-scan wireless access point.
according to another aspect of the present invention, there is provided a Wifi configuration device for controlling a terminal, including:
the first detection unit is used for detecting whether the Wifi equipment fails to be configured or not in the process of configuring the Wifi equipment into a network;
the first obtaining unit is used for obtaining an error code of smartlink/softAP configuration failure from the Wifi equipment through a softAP configuration mode when the first detecting unit detects that the Wifi equipment configuration failure occurs;
An output unit for outputting the error code;
and the first configuration unit is used for continuing to complete softAP configuration with the Wifi equipment after the user finishes error correction according to the error code.
further, the detection unit is specifically configured to:
Sending a configuration message to the Wifi equipment;
and if the configuration success message fed back by the Wifi equipment is not received within the preset time, judging that the Wifi equipment fails to be configured.
further, the first obtaining unit is specifically configured to:
Switching from the smartlink configuration mode to the softAP configuration mode;
And under a softAP configuration mode, establishing connection with the Wifi equipment to acquire an error code of which smartlink configuration fails.
further, the first configuration unit includes:
the acquisition module is used for acquiring a wireless access point list from the Wifi equipment;
the configuration module is used for selecting a wireless access point from the wireless access point list and configuring the SSID and the password of the wireless access point;
and the sending module is used for sending the SSID and the password of the selected wireless access point to the Wifi equipment.
further, the error codes output by the output unit comprise configuration timeout, authentication failure, failure of DHCP to acquire IP address and error codes of no-scan wireless access point.
according to another aspect of the present invention, there is provided a Wifi configuration apparatus, for use in Wifi devices, including:
The second detection unit is used for detecting whether the configuration is failed or not in the process of controlling the configuration and the network access by the control terminal;
the second acquisition unit is used for acquiring an error code of the configuration failure of smartlink/softAP when the second detection unit detects the configuration failure;
the transmitting unit is used for transmitting the error code to the control terminal in the softAP configuration mode;
And the second configuration unit is used for completing softAP configuration according to the configuration information sent by the control terminal.
Further, the second detection unit is specifically configured to:
and if the wireless access point is detected to be unable to be connected within the preset time after the network access of the configuration is confirmed, determining that the configuration is failed.
further, the apparatus further includes a switching unit, configured to, when the Wifi device fails to configure in the smartlink configuration mode, obtain an error code indicating that the smartlink configuration fails, and switch to the softAP configuration mode.
Further, the second configuration unit includes:
The control terminal comprises a sending module and a receiving module, wherein the sending module is used for sending an acquired wireless access point list to the control terminal when the control terminal acquires the wireless access point list;
And the connection module is used for connecting the wireless access points according to the SSID and the password of the wireless access points sent by the control terminal.
Further, the second obtaining unit obtains the error code according to an API interface function of a chip adopted by the Wifi device.
further, the error codes acquired by the second acquisition unit include configuration timeout, authentication failure, failure of acquiring the IP address by DHCP, and no wireless access point scan error codes.
The invention has the following beneficial effects:
according to the Wifi configuration method and device provided by the embodiment of the invention, when Wifi configuration is carried out, under the condition that the configuration is not successful, the error code of configuration failure is obtained through the softAP configuration mode. The error code provides the user with a specific reason for the failure to configure. Therefore, the user can correct the specific problem of the configuration according to the failure reason and continue to complete the softAP configuration. The Wifi configuration method provides a more transparent and friendly configuration mode for users, and can effectively improve the success rate of configuration.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
drawings
in order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
fig. 1 is a flowchart of a Wifi configuration method for a control terminal in an embodiment of the present invention;
Fig. 2 is a flowchart of a Wifi configuration method for Wifi devices in an embodiment of the present invention;
fig. 3 is a timing flowchart of a Wifi configuration method in an embodiment of the invention;
fig. 4 is a block diagram of a Wifi configuration device for controlling a terminal in the embodiment of the present invention;
fig. 5 is a block diagram illustrating a Wifi configuration apparatus for Wifi devices in the 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
the embodiment of the invention provides a Wifi configuration method, which is used in a control terminal, and as shown in fig. 1, the Wifi configuration method comprises the following steps:
s101, in the process of configuring and accessing the network for the Wifi equipment, if the Wifi equipment is detected to be unsuccessfully configured, acquiring an error code of smartlink/softAP configuration failure from the Wifi equipment through a softAP configuration mode;
s102, outputting an error code;
s103, after the user finishes error correction according to the error code, continuing to finish softAP configuration with Wifi equipment.
in the process of configuring the Wifi equipment for network access, a smartlink mode or a softAP configuration mode is adopted, and once the configuration failure of the Wifi equipment is detected, the configuration error code is obtained from the Wifi equipment. Wherein, detecting whether Wifi equipment configures the failed mode includes: sending a configuration message to the Wifi equipment; and if the configuration success message fed back by the Wifi equipment is not received within the preset time, judging that the Wifi equipment fails to be configured.
Specifically, acquiring the configuration error code requires being in the softAP configuration mode. Therefore, when acquiring the smartlink configuration error code, the smartlink configuration mode needs to be switched to the softAP configuration mode; and under the softAP configuration mode, establishing connection with Wifi equipment to acquire error codes of smartlink configuration failure. For the softAP configuration mode, connection with the Wifi equipment is established, and the error code is directly acquired. And the control terminal and the Wifi equipment establish connection by adopting a TCP protocol. After the connection is established, the control terminal needs to send an error code request for failing configuration acquisition to the Wifi device, and output the error code after receiving the error code sent by the Wifi device, so that a user can match a corresponding error reason according to the error code, and error correction is facilitated. The error codes comprise configuration overtime, authentication failure, failure of DHCP to acquire IP address and error codes of wireless access points which cannot be scanned.
And the user corrects the error after acquiring the error reason. For example, prompting that DHCP fails to obtain IP address, the user detects whether the router configuration is full; after prompting that the authentication fails, the user can input the password again; when the AP cannot be scanned, detecting the distance between the Wifi equipment and the router; prompting configuration overtime, detecting the working state of the control terminal and the like.
And after the error correction is finished, the user gives a correction finishing instruction to the control terminal. And after detecting that the user completes the error correction instruction according to the error code, the control terminal continues to perform softAP configuration with the Wifi equipment. Specifically, when configuration is performed, a wireless access point list is acquired from Wifi equipment at first; then, selecting a wireless access point from the wireless access point list, and configuring the SSID and the password of the wireless access point; and finally, the SSID and the password of the selected wireless access point are sent to the Wifi equipment.
based on the above, in the Wifi configuration method of the embodiment of the present invention, when Wifi configuration is performed on Wifi equipment, after a configuration failure condition is detected, an error code of the configuration failure is obtained and output in a softAP configuration mode. The error code provides the user with the specific failure reason for configuration, and the user can modify the specific problem of configuration according to the failure reason and continue to complete the configuration. Therefore, the invention provides a more transparent and friendly configuration mode for users, and can effectively improve the success rate of configuration.
An embodiment of the present invention provides a Wifi configuration method, which is used in Wifi devices, and as shown in fig. 2, includes the following steps:
s201, in the process that a control terminal controls configuration and network access, if configuration failure is detected, acquiring an error code of smartlink/softAP configuration failure;
s202, sending the error code to a control terminal in a softAP configuration mode;
And S203, completing softAP configuration according to the configuration information sent by the control terminal.
And when the configuration failure is detected in the network access configuration process, acquiring a specific error code through an API (application program interface) function of the chip. The method for detecting whether the configuration of the Wifi equipment fails comprises the following steps: and detecting whether the connection with the wireless access point AP is realized within a preset time after the confirmation of the network access of the configuration, if the connection is not realized, judging that the configuration is failed, otherwise, judging that the configuration is successful. And if the configuration is successful, feeding back a successful configuration message to the control terminal, and connecting the AP according to the stored configuration information. The error codes comprise configuration overtime, authentication failure, failure of DHCP to acquire IP address and error codes of wireless access points which cannot be scanned.
when the error code is sent to the control terminal, a TCP connection needs to be established with the control terminal in the softAP configuration mode. And after the control terminal sends the acquisition request, sending the error code out. Therefore, after the Wifi device acquires the error code of the smartlink configuration failure, the smartlink configuration mode is switched to the softAP configuration mode. And transmitting the error code in the softAP configuration mode.
Further, when the Wifi device completes the softAP configuration according to the configuration information sent by the control terminal, the method comprises the following steps:
receiving a request of acquiring a wireless access point list from a control terminal, and sending the acquired wireless access point list to the control terminal;
And receiving the SSID and the password of the wireless access point sent by the control terminal, and connecting the wireless access point according to the SSID and the password.
based on the above, in the Wifi configuration method of the embodiment of the present invention, when the configuration of the Wifi device fails, the error code of the configuration failure is obtained, and in the softAP configuration mode, the error code is sent to the control terminal, so that the configuration of the softAP configuration mode is continuously completed with the control terminal. Therefore, the error code is acquired through the Wifi equipment, so that the control terminal can conveniently acquire the reason of the configuration failure, and the success rate of the subsequent Wifi configuration is improved.
as shown in fig. 3, an embodiment of the present invention provides a Wifi configuration method, and a specific implementation process of the present invention is mainly described by taking smartlink configuration failure as an example. The method comprises the following steps:
S301, the mobile phone APP enters a smartlink configuration interface, and meanwhile, the Wifi device is triggered to enter a smartlink configuration mode.
s302, configuring a multicast packet by using a mobile phone APP and smartlink, and sending the multicast packet to Wifi equipment.
S303, the Wifi device judges whether the configuration is successful within 1 minute: if the configuration is successful, feeding back a successful configuration message to the control terminal; and when the configuration fails, acquiring the error code, and switching to a softAP configuration correction mode.
s304, if the time for sending the configuration multicast packet by the mobile phone APP exceeds the preset 1 minute, switching to a configuration interface of a softAP modification configuration mode, simultaneously calling the SDK module to establish TCP connection with the Wifi equipment, and sending an error code obtaining request to the Wifi equipment.
S305, the Wifi equipment sends the obtained error code to the mobile phone APP.
s306, the SDK module of the mobile phone APP receives the error code and reports the APP; the APP displays a specific error reason to a user according to the error code; and meanwhile, continuously calling the SDK module to acquire the AP list.
s307, the Wifi device obtains the AP list through scanning and sends the AP list to the mobile phone APP;
S308, the mobile phone APP selects an AP from the AP list, obtains the SSID and the password of the AP input by the user, and sends the SSID and the password to the Wifi equipment.
And S309, after the SSID and the password are stored by the Wifi equipment, restarting and connecting the selected AP according to the SSID and the password.
the method and the device have the advantages that when smartlink configuration fails, the configuration failure error code is obtained and stored, the softAP configuration mode is automatically switched to, and the user is prompted through a mobile phone APP matching correction method in the softAP configuration mode. The user can correct the cause of the error according to the prompt, such as checking a configuration password, checking whether the IP of the device connected to the router is full and cannot be allocated, checking whether the router is too far away, and the like. This provides a more transparent and user friendly configuration; meanwhile, after error correction, softAP configuration is continuously completed, and the configuration success rate is improved.
As shown in fig. 4, an embodiment of the present invention further provides a Wifi configuration apparatus, which is used in a control terminal, and includes:
The first detection unit is used for detecting whether the Wifi equipment fails to be configured or not in the process of configuring the Wifi equipment into a network;
the first obtaining unit is used for obtaining an error code of the configuration failure of smartlink/softAP from the Wifi equipment through a softAP configuration mode when the first detecting unit detects that the configuration of the Wifi equipment fails;
An output unit for outputting an error code;
And the first configuration unit is used for continuing to complete softAP configuration with the Wifi equipment after the user finishes error correction according to the error code.
Further, the detection unit is specifically configured to:
Sending a configuration message to the Wifi equipment;
And if the configuration success message fed back by the Wifi equipment is not received within the preset time, judging that the Wifi equipment fails to be configured.
further, the first obtaining unit is specifically configured to:
switching from the smartlink configuration mode to the softAP configuration mode;
And under the softAP configuration mode, establishing connection with Wifi equipment to acquire error codes of smartlink configuration failure.
Further, the first configuration unit includes:
the acquisition module is used for acquiring a wireless access point list from the Wifi equipment;
the configuration module is used for selecting a wireless access point from the wireless access point list and configuring the SSID and the password of the wireless access point;
And the sending module is used for sending the SSID and the password of the selected wireless access point to the Wifi equipment.
further, the error codes output by the output unit comprise configuration timeout, authentication failure, failure of DHCP to acquire IP address and error codes of no-scan wireless access point.
Referring to fig. 5, an embodiment of the present invention further provides a Wifi configuration apparatus, which is used in Wifi devices, and includes:
The second detection unit is used for detecting whether the configuration is failed or not in the process of controlling the configuration and the network access by the control terminal;
the second acquisition unit is used for acquiring error codes of smartlink/softAP configuration failure when the second detection unit detects that the configuration fails;
the transmitting unit is used for transmitting the error code to the control terminal in the softAP configuration mode;
and the second configuration unit is used for completing softAP configuration according to the configuration information sent by the control terminal.
Further, the second detection unit is specifically configured to:
And if the wireless access point is detected to be unable to be connected within the preset time after the network access of the configuration is confirmed, determining that the configuration is failed.
Further, the apparatus further includes a switching unit, configured to, when the Wifi device fails to configure in the smartlink configuration mode, obtain an error code indicating that the smartlink configuration fails, and switch to the softAP configuration mode.
Further, the second configuration unit includes:
the sending module is used for sending the acquired wireless access point list to the control terminal when the control terminal acquires the wireless access point list;
and the connection module is used for connecting the wireless access points according to the SSID and the password of the wireless access points sent by the control terminal.
Further, the second obtaining unit obtains the error code according to an API interface function of a chip adopted by the Wifi device.
Further, the error codes acquired by the second acquisition unit comprise configuration timeout, authentication failure, failure of acquiring the IP address by the DHCP and error codes of no wireless access point scanning.
it will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above.
Although the present application has been described with reference to embodiments, those skilled in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (22)

1. a Wifi configuration method is used in a control terminal and is characterized by comprising the following steps:
Adopting a smartlink mode or a softAP configuration mode to configure the Wifi equipment in the network access process:
if the fact that the Wifi equipment fails to adopt the smartlink mode configuration is detected, switching the smartlink mode to the softAP mode, and acquiring error codes of the smartlink failure configuration from the Wifi equipment through the softAP mode;
if the fact that the Wifi equipment fails to adopt the softAP configuration mode is detected, acquiring error codes of softAP configuration failure from the Wifi equipment through the softAP configuration mode;
Outputting the error code;
And after the user to be detected finishes error correction according to the error code, continuing to finish softAP configuration with the Wifi equipment.
2. The method of claim 1, wherein detecting whether the Wifi device fails to configure comprises:
and sending a configuration message to the Wifi equipment, and if the configuration success message fed back by the Wifi equipment is not received within the preset time, judging that the Wifi equipment fails to be configured.
3. The method of claim 1, wherein obtaining an error code for smartlink configuration failure from the Wifi device via softAP configuration mode comprises:
switching from the smartlink configuration mode to the softAP configuration mode;
and under a softAP configuration mode, establishing connection with the Wifi equipment to acquire an error code of which smartlink configuration fails.
4. The method of claim 1, wherein the completing softAP configuration with the Wifi device comprises:
Acquiring a wireless access point list from the Wifi equipment;
selecting a wireless access point from the wireless access point list, and configuring the SSID and the password of the wireless access point;
And sending the SSID and the password of the selected wireless access point to the Wifi equipment.
5. the method of claim 1, wherein the error codes comprise configuration timeout, authentication failure, failure of DHCP to acquire an IP address, and no-scan wireless access point error codes.
6. a Wifi configuration method is used in Wifi equipment and is characterized by comprising the following steps:
in the process of controlling configuration and network access by the control terminal,
If the smartlink mode configuration fails, switching the smartlink mode to a softAP mode, and acquiring error codes of the smartlink configuration failure from the Wifi equipment through the softAP mode;
if the configuration by adopting the softAP configuration mode fails, acquiring an error code of the softAP configuration failure from the Wifi equipment through the softAP configuration mode;
sending the error code to the control terminal;
and completing softAP configuration according to the configuration information sent by the control terminal.
7. the method of claim 6, wherein detecting whether a configuration fails comprises:
And if the wireless access point is detected to be unable to be connected within the preset time after the network access of the configuration is confirmed, determining that the configuration is failed.
8. the method of claim 6, wherein the Wifi device switches from the smartlink configuration mode to the softAP configuration mode after acquiring an error code for which the smartlink configuration fails.
9. the method of claim 6, wherein the completing softAP configuration according to the configuration information sent by the control terminal comprises:
when the control terminal acquires a wireless access point list, the acquired wireless access point list is sent to the control terminal;
And connecting the wireless access points according to the SSID and the password of the wireless access points sent by the control terminal.
10. The method of claim 6, wherein the error code is obtained according to an API function of a chip employed by the Wifi device.
11. The method of claim 10, wherein the error codes comprise configuration timeout, authentication failure, failure of DHCP to acquire an IP address, and no-scan wireless access point error codes.
12. the utility model provides a Wifi configuration device for among the control terminal, its characterized in that includes:
the first detection unit is used for detecting whether the Wifi equipment fails to be configured or not in the process of configuring the Wifi equipment into a network;
the first obtaining unit is configured to, when the first detecting unit detects that the configuration of the Wifi device fails, obtain an error code indicating that the configuration of smartlink/softAP fails from the Wifi device through a softAP configuration mode, and specifically:
if the fact that the Wifi equipment fails to adopt the smartlink mode configuration is detected, switching the smartlink mode to the softAP mode, and acquiring error codes of the smartlink failure configuration from the Wifi equipment through the softAP mode;
If the fact that the Wifi equipment fails to adopt the softAP configuration mode is detected, acquiring error codes of softAP configuration failure from the Wifi equipment through the softAP configuration mode;
An output unit for outputting the error code;
And the first configuration unit is used for continuing to complete softAP configuration with the Wifi equipment after the user finishes error correction according to the error code.
13. The apparatus of claim 12, wherein the detection unit is specifically configured to:
Sending a configuration message to the Wifi equipment;
And if the configuration success message fed back by the Wifi equipment is not received within the preset time, judging that the Wifi equipment fails to be configured.
14. the apparatus of claim 12, wherein the first obtaining unit is specifically configured to:
Switching from the smartlink configuration mode to the softAP configuration mode;
And under a softAP configuration mode, establishing connection with the Wifi equipment to acquire an error code of which smartlink configuration fails.
15. the apparatus of claim 12, wherein the first configuration unit comprises:
The acquisition module is used for acquiring a wireless access point list from the Wifi equipment;
The configuration module is used for selecting a wireless access point from the wireless access point list and configuring the SSID and the password of the wireless access point;
and the sending module is used for sending the SSID and the password of the selected wireless access point to the Wifi equipment.
16. The apparatus of claim 12, wherein the error codes output by the output unit comprise configuration timeout, authentication failure, failure of DHCP to acquire an IP address, and no-scan wireless access point error codes.
17. The utility model provides a Wifi configuration device for in Wifi equipment, its characterized in that includes:
the second detection unit is used for detecting whether the configuration is failed or not in the process of controlling the configuration and the network access by the control terminal;
A second obtaining unit, configured to, when the second detecting unit detects that the configuration fails, obtain an error code for which the smartlink/softAP configuration fails, specifically:
If the fact that the Wifi equipment fails to adopt the smartlink mode configuration is detected, switching the smartlink mode to the softAP mode, and acquiring error codes of the smartlink failure configuration from the Wifi equipment through the softAP mode;
if the fact that the Wifi equipment fails to adopt the softAP configuration mode is detected, acquiring error codes of softAP configuration failure from the Wifi equipment through the softAP configuration mode;
A sending unit, configured to send the error code to the control terminal in a softAP configuration mode;
and the second configuration unit is used for completing softAP configuration according to the configuration information sent by the control terminal.
18. the apparatus of claim 17, wherein the second detection unit is specifically configured to:
and if the wireless access point is detected to be unable to be connected within the preset time after the network access of the configuration is confirmed, determining that the configuration is failed.
19. The apparatus of claim 17, wherein the apparatus further comprises a switching unit, configured to switch to a softAP configuration mode after obtaining an error code of smartlink configuration failure when the Wifi device fails to configure in the smartlink configuration mode.
20. the apparatus of claim 17, wherein the second configuration unit comprises:
the control terminal comprises a sending module and a receiving module, wherein the sending module is used for sending an acquired wireless access point list to the control terminal when the control terminal acquires the wireless access point list;
And the connection module is used for connecting the wireless access points according to the SSID and the password of the wireless access points sent by the control terminal.
21. The apparatus of claim 17, wherein the second obtaining unit obtains the error code according to an API interface function of a chip employed by the Wifi device.
22. the apparatus of claim 21, wherein the error codes obtained by the second obtaining unit comprise configuration timeout, authentication failure, failure to obtain an IP address by DHCP, and no-scan wireless access point error codes.
CN201610284009.9A 2016-04-29 2016-04-29 wifi configuration method and device Active CN105959968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610284009.9A CN105959968B (en) 2016-04-29 2016-04-29 wifi configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610284009.9A CN105959968B (en) 2016-04-29 2016-04-29 wifi configuration method and device

Publications (2)

Publication Number Publication Date
CN105959968A CN105959968A (en) 2016-09-21
CN105959968B true CN105959968B (en) 2019-12-10

Family

ID=56913534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610284009.9A Active CN105959968B (en) 2016-04-29 2016-04-29 wifi configuration method and device

Country Status (1)

Country Link
CN (1) CN105959968B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888464B (en) * 2017-03-21 2020-10-09 苏州黑云信息科技有限公司 Method for realizing wireless Internet of things ad hoc network
CN108964946B (en) * 2017-05-18 2022-03-15 公牛集团股份有限公司 Method for detecting distribution network fault of intelligent terminal
CN109996316B (en) * 2018-01-03 2021-04-27 青岛海尔智能技术研发有限公司 Method and equipment for accessing network based on SmartLink mode
CN110784906B (en) * 2019-10-30 2020-12-22 珠海格力电器股份有限公司 Wireless network distribution method and device, storage medium and processor
CN113938341A (en) * 2020-06-29 2022-01-14 广东美的制冷设备有限公司 Network distribution method, storage medium, household appliance, client and network distribution system
CN114339789B (en) * 2020-10-09 2023-09-26 美的集团股份有限公司 AP distribution network processing method and device
CN114449557B (en) * 2020-11-06 2024-02-06 深圳Tcl新技术有限公司 Equipment distribution network fault positioning method, terminal and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363213A (en) * 2014-11-03 2015-02-18 九阳股份有限公司 Register and login control method for network household appliance
CN204215241U (en) * 2014-11-03 2015-03-18 九阳股份有限公司 A kind of soymilk machine
CN104540088A (en) * 2014-12-23 2015-04-22 小米科技有限责任公司 Connection establishment method, terminal and device
CN104768150A (en) * 2015-03-31 2015-07-08 深圳市江波龙电子有限公司 Method and system for connecting WiFi equipment with wireless hot spot
CN104871096A (en) * 2012-10-23 2015-08-26 科泰克工业私人有限公司 System and method for exchanging support data with a device having no physical user interface
CN105141450A (en) * 2015-07-29 2015-12-09 青岛海尔科技有限公司 Configuration methods and devices for WIFI module of internet of things device
CN105163371A (en) * 2015-08-26 2015-12-16 四川长虹电器股份有限公司 WIFI setting system and method based on Bluetooth
CN105491568A (en) * 2015-12-30 2016-04-13 青岛海尔智能家电科技有限公司 Automatic router accessing method, device and intelligent terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104871096A (en) * 2012-10-23 2015-08-26 科泰克工业私人有限公司 System and method for exchanging support data with a device having no physical user interface
CN104363213A (en) * 2014-11-03 2015-02-18 九阳股份有限公司 Register and login control method for network household appliance
CN204215241U (en) * 2014-11-03 2015-03-18 九阳股份有限公司 A kind of soymilk machine
CN104540088A (en) * 2014-12-23 2015-04-22 小米科技有限责任公司 Connection establishment method, terminal and device
CN104768150A (en) * 2015-03-31 2015-07-08 深圳市江波龙电子有限公司 Method and system for connecting WiFi equipment with wireless hot spot
CN105141450A (en) * 2015-07-29 2015-12-09 青岛海尔科技有限公司 Configuration methods and devices for WIFI module of internet of things device
CN105163371A (en) * 2015-08-26 2015-12-16 四川长虹电器股份有限公司 WIFI setting system and method based on Bluetooth
CN105491568A (en) * 2015-12-30 2016-04-13 青岛海尔智能家电科技有限公司 Automatic router accessing method, device and intelligent terminal

Also Published As

Publication number Publication date
CN105959968A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN105959968B (en) wifi configuration method and device
CN105338402B (en) Method and device for Bluetooth connection
US10069557B2 (en) Communication method and device
EP3118700B1 (en) Intelligent home control method and system based on alljoyn technology
EP3185619B1 (en) Method and device for connecting to network
CN105208583B (en) Method and device for configuring intelligent household electrical appliance to access network and intelligent equipment
CN104469789A (en) Connection configuration method and system for intelligent household appliance
US20110292835A1 (en) Method, and device for configuring wifi parameters
CN114339789B (en) AP distribution network processing method and device
CN107567017B (en) Wireless connection system, device and method
EP3316626A1 (en) Method and apparatus for accessing wireless network with smart device
KR20120025114A (en) Apparatus and method for determining validity of wifi connection in wireless communication system
CN113490218A (en) Pairing method, pairing device, Bluetooth remote controller, intelligent device and storage medium
KR101613170B1 (en) Apparatus and method for providing access point function in portable communication system
CN110011885B (en) Control authority binding method and device of electric appliance, storage medium and electric appliance
CN107205239B (en) Method for detecting wireless network connection and detection equipment
WO2016173339A1 (en) Network access method and mobile communication terminal
CN109787843B (en) Network distribution method, device and equipment of intelligent equipment and storage medium
CN108307479B (en) Communication module, network distribution method and device thereof, storage medium, equipment and terminal
CN110519747A (en) A kind of loaming method and AP and AP collaborative work controller
CN108541077B (en) WPS-based rapid network distribution method and system for intelligent hardware equipment
US9392537B2 (en) Terminal and connection method for same
EP2672758A1 (en) Methods and apparatuses for easing Internet access by mobile stations associated with a mobile access point
CN114567919A (en) Network access method, device, equipment and storage medium
CN104980994A (en) Equipment control method, device and mobile terminal

Legal Events

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