The Bluetooth Mesh network is a many-to-many,wireless self-organizing network proposed by Bluetooth Special Interest Group.A routing protocol based on a flooding mechanism is utilized for data transmission in the Bluetooth Mesh network.The routing protocol transmits datas in the form of a broadcast,so the mode is simple and easy to implement.However,the flooding mechanism will cause a lot of redundant packets,resulting in channel congestion and collision,which further leads to the decrease of transmission success rate and increase of transmission delay.Therefore,it is of great significance to design and implement an appropriate routing protocol to solve the problem of redundant packets and message collisions in flooding mode.Based on above problems,opportunistic routing is intorduced in this thesis,and an Energy Consumption Equilibrium(ECE)opportunistic routing is proposed.It optimized the selection of candidate forwarding set and coordination mechanism between candidate nodes.Firstly,a reasonable message transmission model is established to select the candidate forwarding set and the transmission cost is designed as the routing metric,so that the priority calculation can be finished in a distributed way and nodes with higher forwarding ability are selected to join the candidate forwarding set,which will improve the forwarding efficiency.Secondly,packet response mechanism is introduced for the coordination between the candidate nodes,so that the priority is used to suppress repeated forwarding and the uniqueness of forwarding nodes can be realized.Through the above routing scheme,the redundant packets and message congestions are reduced,and network performance is improved.The ECE opportunistic routing protocol is realized based on the Nordic Mesh protocol stack of Nordic Company in this thesis,and the Bluetooth hardware platform is used based on the n RF52832 minimum system for analysis.Ten n RF52832 Bluetooth Mesh nodes were selected to test the functional integrity of the realized opportunistic routing protocol,and the relevant performance of the Bluetooth Mesh network was tested.The test results show that,the transmission success rate of opportunistic routing under different density and different package rate is higher than that of Nordic Mesh,and remains above 90%,meeting the expected design target.The research results of this paper are of certain value to the application expansion of Bluetooth Mesh. |