摘要
针对现有的WiFi模块在接入无线网络时会出现连接失败的现象,提出"智能配网"+"Soft-AP"的联合配网方案,首先进入智能配网,利用WiFi模块侦听模式抓取配网数据进行连接;如果智能配网失败,WiFi模块进入Soft-AP配网模式,用户发送WiFi的SSID和密码进行配网。配网成功后,系统采用MQTT传输协议进行后台绑定及注册。在此基础上,针对产品在配网时出现配网时间过长的问题,对发包频率进行测试,得到配网时间最短的发包频率范围。测试结果表明,该配网方法配网时间在4 058 ms内,且提升了配网成功率,可为物联网工程师的设计工作提供参考。
To solve the phenomenon that the existing WiFi module will fail to connect when accessing to the wireless network, a joint distribution network scheme of "intelligent distribution network" + "Soft-AP" is proposed. Firstly, enter the intelligent distribution network, and use the listening mode of WiFi module to capture the distribution network data for connection. If the intelligent distribution network fails, the WiFi module will enter the Soft-AP distribution network mode, and the user will send the SSID and password of WiFi for distribution network. After the success of distribution network, the system uses MQTT transmission protocol for background binding and registration. On this basis, aiming at the problem that the distribution network time of products is too long in the distribution network, the contract frequency is tested, and the contract frequency range with the shortest distribution network time is obtained. The test results show that the distribution network time of this method is within 4 058 ms, and the success rate of distribution network is improved, which can provide reference for the design work of IOT engineers.
作者
杜家俊
Du Jiajun(School of Automation and Electronic Engineering,Qingdao University of Science and Technology,Qingdao 266061,China)
出处
《电子测量技术》
北大核心
2021年第6期47-53,共7页
Electronic Measurement Technology
关键词
侦听模式
联合配网
广播发包
发包频率
MQTT传输
后台绑定
interception mode
joint distribution network
broadcast contract
contract frequency
MQTT transmission
background binding