| With the development of smart cities,the importance of Internet of Things technology in people’s lives has become more and more prominent,among which smart light poles are the most representative.As an important node of a smart city,smart light poles have long been not limited to basic functions such as lighting,and the external modules they carry cover all aspects of daily life,and the number is also exploding.When traditional smart light pole controllers manage external modules,they often implement fixed interface communication through corresponding hardware interface controllers,which leads to a relatively fixed access method for external modules.When external modules using other communication protocols are used for access,the use of hardware interfaces cannot achieve communication.In addition,the current smart light pole controllers have a variety of models and specifications,and their hardware implementations are also different.The use of hardware interface controllers will cause the corresponding code to only run on a specific controller,transplantation is not flexible enough,and inconsistent with the rapid development of smart light poles.Therefore,as more and more external modules are connected to smart light pole controllers,it is necessary to design smart light pole controllers with more flexible access methods to meet the development trend of the smart light pole industry.This subject focuses on the current access methods of smart light pole controllers,and analyzes the commonly used embedded communication protocols such as IIC,SPI,UART,and USB in detail.Through virtualization technology,the adaptive interface module of the smart light pole controller is designed and implemented,which provides a unified interface at the physical level,realizes the transmission of multiple protocols at the logical level,and realizes the flexible access of external modules.In addition,the definition of adaptive interface resources is researched,and the adaptive interface registration process is designed and implemented.Based on network transmission,it realizes the issuance of interface registration rules and realizes the registration of the adaptive interface on the smart light pole controller end,and makes full use of the controller’s own computing resources,and can realize the interface registration by itself under special conditions such as controller restart.Through the adaptive interface module,the smart light pole controller can manage the access of external modules more flexibly,At the same time,the adaptive interface module is not limited by the hardware implementation of the controller,and is more conducive to making full use of the GPIO pins of the smart light pole controller. |