High-reliability Wi-Fi device network distribution method and readable storage medium

文档序号:73471 发布日期:2021-10-01 浏览:27次 中文

阅读说明:本技术 一种高可靠性的Wi-Fi设备配网方法与可读存储介质 (High-reliability Wi-Fi device network distribution method and readable storage medium ) 是由 黄峰鹤 张博钧 张彦 冯志芳 黄嘉豪 王雪涵 于 2021-07-27 设计创作,主要内容包括:本发明提供了一种高可靠性的Wi-Fi设备配网方法,包括以下步骤:S1、通过设备一上的配网APP,与设备二建立连接;S2、设备二使用其自身的Wi-Fi芯片对网络环境进行扫描,并返回扫描结果至设备一;S3、设备一将扫描结果通过RSSI筛选后返回可用列表至用户进行配网选择,用户选取SSID并输入密码;S4、设备一使用其自身的Wi-Fi芯片进行连接验证,如果连接成功,则将配网信息发送至设备二进行配网连接,如果连接失败,则反馈提示给用户。本发明还提供了一种可读存储介质。本发明的有益效果是:1、防止用户输入错配网信息后,配网失败导致的长时间等待时间,提高了用户体验;2、防止用户选择设备二不支持的网络或信号差存在配网失败可能性的网络进行连接。(The invention provides a high-reliability Wi-Fi device network distribution method, which comprises the following steps: s1, establishing connection with a second device through a distribution network APP on the first device; s2, the device II scans the network environment by using the Wi-Fi chip of the device II, and returns the scanning result to the device I; s3, the equipment I returns an available list to a user for distribution network selection after screening the scanning result through RSSI, and the user selects an SSID and inputs a password; and S4, the first device uses the Wi-Fi chip of the first device to perform connection verification, if the connection is successful, the distribution network information is sent to the second device to perform distribution network connection, and if the connection is failed, the second device feeds back and prompts the user. The invention also provides a readable storage medium. The invention has the beneficial effects that: 1. long waiting time caused by network distribution failure after the user inputs wrong network distribution information is prevented, and user experience is improved; 2. and the network which is not supported by the user selection equipment II or the network with the possibility of distribution network failure due to poor signal is prevented from being connected.)

1. A network distribution method for high-reliability Wi-Fi equipment is characterized by comprising the following steps:

s1, establishing connection with a second device through a distribution network APP on the first device;

s2, the device II scans the network environment by using the Wi-Fi chip of the device II, and returns the scanning result to the device I;

s3, the equipment I returns an available list to a user for distribution network selection after screening the scanning result through RSSI, and the user selects an SSID and inputs a password;

and S4, the first device uses the Wi-Fi chip of the first device to perform connection verification, if the connection is successful, the distribution network information is sent to the second device to perform distribution network connection, and if the connection is failed, the second device feeds back and prompts the user.

2. The high-reliability Wi-Fi device network distribution method of claim 1, wherein: in step S1, device two turns on the AP mode.

3. The high-reliability Wi-Fi device network distribution method of claim 1, wherein: in step S4, if the connection fails, the user is returned to prompt to reselect the network or input a password.

4. The high-reliability Wi-Fi device network distribution method of claim 1, wherein: in step S4, if the connection is successful, the first device sends the distribution network information to the second device, and the second device switches the STA mode and attempts to connect to the Wi-Fi router.

5. The high-reliability Wi-Fi device network distribution method of claim 1, wherein: the first equipment is a smart phone, and the second equipment is IoT equipment to be configured with a network.

6. A readable storage medium, characterized by: the readable storage medium stores executable instructions which, when executed by a processor, are adapted to implement the method of any one of claims 1 to 5.

Technical Field

The invention relates to Wi-Fi equipment, in particular to a high-reliability Wi-Fi equipment network distribution method and a readable storage medium.

Background

At present, along with the popularization of Wi-Fi technology, various types of products are gradually intelligentized and are equipped with Wi-Fi connection functions, wherein IoT devices mostly do not have screen and keyboard input functions, a common network distribution mode needs to use a smart phone (device one) to carry out auxiliary network distribution, after an SSID and a password of Wi-Fi are sent to an IoT device (device two) to be distributed through the device one, the device two is connected with Wi-Fi of a router, the success rate of network distribution becomes the key of user experience, and the scheme in the prior art is as follows:

1. the second equipment starts a distribution network mode;

2. the first equipment is connected with the second equipment;

3. the user selects or inputs the SSID to be connected through equipment scanning, and inputs the password to produce distribution network information;

4. the first equipment transmits the distribution network information to the second equipment;

5. and the second equipment is disconnected with the first equipment, enters an STA mode, and performs Wi-Fi network connection by using the distribution network information.

The existing testing method has the following problems:

1) when the distribution network fails, the second equipment can perform long-time distribution network attempt, the user side cannot obtain quick feedback at the first equipment, the next distribution network attempt can be performed only by waiting for a long time, and user experience is poor.

2) Due to the difference of network environment and performance between the first device and the second device, although the first device can be connected with the network, the signal intensity at the second device is low, and the performance of the second device is poor, so that the distribution network fails.

Disclosure of Invention

In order to solve the problems in the prior art, the invention provides a high-reliability Wi-Fi device distribution network method and a readable storage medium.

The invention provides a high-reliability Wi-Fi device network distribution method, which comprises the following steps:

s1, establishing connection with a second device through a distribution network APP on the first device;

s2, the device II scans the network environment by using the Wi-Fi chip of the device II, and returns the scanning result to the device I;

s3, the equipment I returns an available list to a user for distribution network selection after screening the scanning result through RSSI, and the user selects an SSID and inputs a password;

and S4, the first device uses the Wi-Fi chip of the first device to perform connection verification, if the connection is successful, the distribution network information is sent to the second device to perform distribution network connection, and if the connection is failed, the second device feeds back and prompts the user.

As a further improvement of the present invention, in step S1, device two turns on the AP mode.

As a further improvement of the present invention, in step S4, if the connection fails, the user is returned to prompt to reselect the network or to input a password.

As a further improvement of the present invention, in step S4, if the connection is successful, the first device sends the distribution network information to the second device, and the second device switches the STA mode and tries to connect with the Wi-Fi router.

As a further improvement of the present invention, the first device is a smart phone, and the second device is an IoT device to be networked.

The invention also provides a readable storage medium having stored thereon executable instructions for implementing the method as claimed in any one of the above when executed by a processor.

The invention has the beneficial effects that:

1) long waiting time caused by network distribution failure after the user inputs wrong network distribution information is prevented, and user experience is improved;

2) and the network which is not supported by the user selection equipment II or the network with the possibility of distribution network failure due to poor signal is prevented from being connected.

Drawings

FIG. 1 is a flow chart of a network distribution method for high-reliability Wi-Fi equipment.

FIG. 2 is a decision flow diagram of a high-reliability Wi-Fi device network distribution method of the present invention.

Detailed Description

The invention is further described with reference to the following description and embodiments in conjunction with the accompanying drawings.

As shown in fig. 1 to 2, a high-reliability Wi-Fi device network distribution method is characterized in that, through a mechanism of assisting network distribution device-to-device two-network distribution network selection and network distribution information verification, after the verification is passed, network distribution information is transmitted to a device two for network distribution, and when the verification is not appropriate, the network distribution information is timely fed back and prompted to a user, and the main working process is as follows:

1. establishing connection with a second device through the APP on the first device;

2. the device II scans the network environment by using a Wi-Fi chip and returns a scanning result to the device I;

3. the first equipment returns the result to the user for distribution network selection after screening the result through RSSI, and the user selects SSID and inputs a password;

4. and the first equipment uses the Wi-Fi chip to try connection by using the distribution network information, and if the connection is successful, the distribution network information is sent to the second equipment to carry out distribution network connection. If the connection fails, returning to the user to prompt to reselect the network or input the password.

According to the high-reliability network distribution method for the Wi-Fi equipment, the first equipment uses the Wi-Fi chip to perform connection verification before the network distribution information is transmitted to the second equipment, so that long-time waiting time caused by network distribution failure after a user inputs wrong network distribution information can be prevented, and user experience is improved; and a Wi-Fi chip of a second device is used for Wi-Fi network scanning before the distribution network, and the first device returns an available list to the user after screening, so that the situation that the user selects a network which is not supported by the second device or the network with the possibility of distribution network failure due to poor signals is connected can be prevented.

The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:IOT设备配网方法、装置、计算机设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!