| With the rapid development of the Internet of Things,the equipments has been widely used in industries such as smart home,industrial production and medical care,It has subtly changed people’s way of produce and live.In the future,while everything is connected to the network,the appearance of a smart campus is inevitable.It not only can bring convenience to students’ learning life,but also can reduce the pressure of teachers and parents.While the combination of the Internet of Things and the smart campus has good development and application prospects,the primary problem to be solved at present is the communication and management of devices.According to the application background,the network layer is divided into service layer,management layer and peripheral equipment layer.The service layer and the management layer communicate via internet,and the management layer and the peripheral device layer communicate via Bluetooth signal.The combination of two methods not only utilizes embedded devices to transmit data,but also overcomes the limitation of Bluetooth signal distance.Divided subnets are used to manage peripheral devices.The information of the nodes in the subnet is forwarded by the associated nodes,which ensures that the amount of data processed by the node is balanced.According to the characteristics of the nodes,two networking methods,static networking and dynamic networking,are used to ensure that the nodes can join the network anytime and anywhere.What’s more,it avoid generating too much data during the networking process.A set of interactive processes is designed to solve the problems of disconnection and re-networking caused by node state changes.For example,the Bluetooth heartbeat packet is used to detect the online status of the node,and the information of the unexpected disconnection of the node is reported in time.A special routing scheme for smart campus is designed.The network topology isthree-layer tree structure.The method of dividing nodes into different subnets simplifies the routing and forwarding path while ensuring the communication coverage in the campus network.Customized smart campus routing table and routing record storage structure are used to ensure efficient and ordered communication no matter within or between subnets.According to the characteristics of different nodes,appropriate hardware platforms have been selected to realize the smart campus networking,and multi-threaded software solutions are used to meet the needs of one-to-many communication between nodes.In the end,what have been tested are the actual networking process and routing process of the smart campus networking system. |