Font Size: a A A

Bluetooth Mesh Based Gateway Control System

Posted on:2020-07-30Degree:MasterType:Thesis
Country:ChinaCandidate:W YuFull Text:PDF
GTID:2428330605450769Subject:Electronic Science and Technology
Abstract/Summary:PDF Full Text Request
After the Bluetooth Special Interest Group officially announced that Bluetooth technology began to fully support the Mesh network and developed the standard protocol SIG Mesh for Bluetooth Mesh,SIG Mesh-based multi-application solutions are being blown out.Since SIG Mesh can realize many-to-many transmission characteristics,SIG Mesh is suitable for Internet of Things solutions such as building automation and wireless sensors that require tens of thousands of devices to transmit information in a safe,reliable and stable environment.The application research of SIG Mesh is very meaningful.Due to the limited transmission distance of SIG Mesh,the scope of application based on SIG Mesh is also limited.In order to improve the defects of the original SIG Mesh application structure,this paper designs a gateway control system based on Bluetooth Mesh,which realizes a remote control and management from terminal to server to gateway to Bluetooth Mesh device.The system adds the gateway and server parts based on the structure of the original SIG Mesh application.In the server part,this paper designs a distributed + cluster design,in order to improve the system's concurrency and shorten the system's response time.Considering that the gateway needs to communicate between the server and the Bluetooth Mesh device,this paper splits the gateway into two parts,the Raspberry Pi and the RTL8762 C development board.The Raspberry Pi uses the Web Socket protocol to communicate with the server.The RTL8762 C development board uses the SIG Mesh protocol to communicate with the Bluetooth Mesh device.The Raspberry Pi and the RTL8762 C development board use the serial port for communication.The main functions implemented in the gateway part are receiving instructions,device scanning,provisioning,key management,subscription management,Model control,and device unbinding.Considering that the server needs to design a distributed + cluster solution,this paper splits the server into six modules: service registry,service gateway,Mesh control service,Mesh device management service,Web Socket service and database.The role of the service registry is to register and manage other modules,providing the IP and port of the module to be called when called between the module and the module.The role of the service gateway is that the entire server receives the entry of the request and forwards the different requests to different modules for processing.The role of the Mesh control service is to implement configuration and Model control of the Bluetooth Mesh device.The role of the Mesh device management service is to query the basic information and binding information of users,gateways,and Bluetooth Mesh devices.The role of the Web Socket service is to achieve communication between the server and the gateway.The role of the database is to store basic information and binding information for users,gateways,and Bluetooth Mesh devices.Finally,this paper performs functional testing and performance testing on the system.The functional test results show that the remote control function of the Mesh device and the remote management function of the Mesh device are consistent with the expected results,and the communication between the terminal and the server,the server and the gateway,the gateway and the device are normal.The performance test results show that compared with the stand-alone server,the average TPS(transaction volume per second)is increased by about 3.3 times,the average response time is shortened by about 3.9 times,the request success rate is increased by 1.92%,and the availability is higher.
Keywords/Search Tags:SIG Mesh, Gateway, Distributed, WebSocket
PDF Full Text Request
Related items