室内WiFi信号探测设备的设计与实现

2021-04-22 17:09:01吴超刘雪花
电脑知识与技术 2021年8期

吴超 刘雪花

摘要:WiFi无线技术应用极为广泛,是办公室、餐厅、酒店、商场等公众场合的必备。企业和家庭用户设立了大量的无线热点,增加了WiFi热点管理的难度。该文使用树莓派和esp8266单片机,设计与实现了室内WiFi信号的探测设备。它通过测量信号强度rssi值,计算WiFi热点的距离,然后使用三角定位方法,计算各个WiFi热点的坐标值,使用图形界面显示各个WiFi热点的位置。该设备应用了热门的树莓派主板,使用Python编程,通过树莓派GPIO端口控制传感器和读取数据,加速了设备的开发过程,基本实现室内WiFi信号的探测功能。

关键词:WiFi;树莓派;esp8266;定位

中图分类号:TP391      文献标识码:A

文章编号:1009-3044(2021)08-0215-03

Abstract: WiFi wireless technology is widely used in offices, restaurants, hotels, shopping malls and other public places. Enterprises and home users have set up a large number of wireless hotspots, which increases the difficulty of WiFi hotspot management. In this paper, raspberry pie and esp8266 microcontroller are used to design and realize the indoor WiFi signal detection equipment. It calculates the distance of WiFi hotspots by measuring the RSSI value of signal strength, and then calculates the coordinates of each WiFi by using triangle positioning method, and displays the location of WiFi hotspots using graphical interface. The device uses the popular raspberry pi motherboard and uses python programming, control sensors and read data through raspberry pi GPIO port, accelerate the development process of equipment, the detection function of indoor WiFi signal is basically realized.

Key words: WiFi; raspberry pi; esp8266; location

1 背景

WiFi無线技术应用极为广泛,传输距离远,覆盖范围广,传输速率快,在生活中广泛使用[1-2]。无线WiFi是办公室、餐厅、酒店、商场等公众场合的必备[3]。面对智能手机用户的快速增长,以及智能家电产品和可佩戴设备数量的增加,企业和家庭用户设立了大量的无线热点。WiFi探测器能够找到可用的WiFi网络并收集有关它的信息,可视化显示WiFi热点相关数据,使用户更好管理自己周围的WiFi设备。本文使用树莓派和esp8266单片机,设计与实现了室内WiFi信号探测设备。它可以便捷地检测周围WiFi热点,判断WiFi热点距离,距离计算使用三角形定位方法[4],使用户更好管理无线热点。

2 系统整体设计

本文设计的室内WiFi信号探测设备可以显示周围的WiFi热点位置,用来寻找WiFi热点在哪里。设备包括1个树莓派,1个esp8266模块,1个HMC5883L模块。树莓派是设备的主控板,运行系统的软件,并把探测的结果显示出来。……

登录APP查看全文