摘要
随着物联网的快速发展,嵌入式物联网终端联网需求越来越多,其中无线通信模组是物联网设备最主要的通信硬件。为了屏蔽网络接入方式的复杂操作,各个通信模组厂家都采用了AT指令的方案来封装通信模组的核心能力,方便终端厂家和用户调用。然而,随着AT通信模组厂家百花齐放的发展,各厂家的AT指令日益多样化,通信模组也从2G、WiFi发展到NBIoT、4G Cat1、5G、LoRa等,MCU与通信模组的交互逻辑也日趋复杂。针对这些问题,本文设计了基于腾讯物联网操作系统TencentOS Tiny的AT通信模组框架,可屏蔽MCU与通信模组的复杂交互逻辑、提供通用统一网络API,更换模组只需要基于通信模组生态库替换驱动即可,无需修改上层应用程序,有效降低了物联网终端应用开发的时间成本。
With the rapid development of Internet of Things,there is an increasing demand for embedded Internet of Things terminals,among which wireless communication modules are the most important communication hardware for Internet of Things devices.In order to shield the complex operation of the network access method,each communication module manufacturer has adopted the AT command scheme to encapsulate the core capabilities of the communication module,which is convenient for terminal manufacturers and users to call.However,with the development of AT communication module manufacturers,AT commands of various manufacturers are becoming more and more diversified.Communication modules have also developed from 2 Gand WiFi to NB-IoT,4 Gcat1,5 G,LoRa,etc.,MCU and communication modules The interaction logic is gradually complicated.In response to these problems,This paper designed an AT communication module framework based on Tencent Internet of Things operating system TencentOS Tiny,which can shield the complex interaction logic between the MCU and the communication module and provide a common unified network API.The replacement module only needs to be based on the communication module.The ecological library can replace the driver without modifying the upper-level application,effectively reducing the time cost of IoT terminal application development.
作者
王世伟
汪礼超
王佳
Wang Shiwei;Wang Lichao;Wang Jia(System R&D Center of Shenzhen Tencent Computer System Co.,Ltd.,Shenzhen 518057,China)
出处
《单片机与嵌入式系统应用》
2021年第5期4-8,共5页
Microcontrollers & Embedded Systems