In recent years,the development scale of the Internet of Things has expanded rapidly,and has been listed as a national emerging strategic industry.At the same time,the rapid development of Io T terminal applications,sensor Plug-and-Play and terminal power consumption have become research hotspots,which greatly hinder the large-scale deployment and application of IOT.The essential reason why the Internet of things is difficult to develop rapidly is that the control is concentrated on the terminal,and the development of terminal applications needs to pay a lot of development costs around the microcontroller.In addition,the existence of microcontroller also leads to the high power consumption of terminal design,which further restricts the low power consumption and large-scale deployment of the Internet of things terminal.In order to solve the above problems,based on the core networking and backscatter communication technology,this paper removes the terminal microcontroller by shifting the terminal control up the gateway,and realizes a system that can support the rapid development of Io T terminals and sensor Plug-and-Play,and the system terminal has the characteristics of lightweight and low power consumption.In this system,the gateway is responsible for the identification and control of the sensor to realize the decoupling between the terminal and the sensor.The system eliminates the software and hardware design around the terminal processor.Developers only need to use the Unified Sensor Description Language designed in this paper to focus on the application logic of sensors.Based on this system,when replacing the terminal sensor,it is no longer necessary to modify the terminal software and hardware to realize Plug-and-Play.The main work of this paper is as follows.Firstly,in order to realize the identification and control of diversified sensors by the gateway,an ID storage component is added to the peripheral circuit of the sensor.In addition,the Unified Sensor Description Language is designed to support simultaneous interpreting of application logic by different developers on the general gateway platform without complicated microcontroller programming.Secondly,in order to realize the gateway’s direct access to terminal sensors and hot plug event detection without processor,this paper first realizes the RF bus signal conversion through the core networking technology.Then a set of gateway terminal communication protocol and terminal state machine are designed to solve the problems of sensor data interaction and hot plug detection,realize the decoupling between the terminal and the sensor,control the floating gateway,and provide terminal side support for the plug and play of the sensor.Thirdly,the collision problem of multi terminal data uplink transmission is solved.Data uplink transmission is divided into task transmission and random event transmission.Firstly,an independent channel is designed to transmit the task data scheduled by the gateway and the randomly generated(such as hot plug)event data.Then the anti-collision logic is designed to cooperate with multi terminal random event upload.Finally,the system prototype is realized.After experimental analysis,the system can realize the basic sensing function,reduce the amount of development code by 55.4% to90.2% compared with the traditional platform,and can write the sensor control logic script and realize the terminal application in an average of 40 minutes.When the gateway has a sensor control script,the sensor insertion identification can be realized in 0.11 seconds,that is,Plug-and-Play.The system controls the power consumption of the terminal at the micro watt level. |