摘要
TinyOS系统以其组件结构模型、事件驱动、并发型等优点成为目前最受关注的无线传感器网络操作系统。但Ti-nyOS不支持STM32和CC2520芯片。因此在分析TinyOS基本原理、NesC编程语言实现机制及其编译过程的基础上,介绍了基于STM32和CC2520的TinyOS移植方法,完成了STM32的I/O组件、Timer组件、USART组件、SPI组件和CC2520芯片驱动的移植。在实现CC2520的基本通信功能基础上,实现简单MAC协议。最后测试了各组件的移植效果。实验测试结果表明,节点可以稳定可靠地通信。
TinyOS system is the most popular wireless sensor network operating system for its structural model, event-driven, and con- currency model. However, TinyOS doesn't support STM32 and CC2520 chips. Based on analyzing the basic principle of TinyOS, pro- gramming language implementation mechanism of NesC and compilation process of NesC, transplanting of TinyOS based on STM32 and CC2520 is introduced in this paper. It achieves the transplant of STM32 I/O components, Timer component, USART component, SPI component and the CC2520 chip driver. On the basis of implementing CC2520's basic communication functions, the simple MAC proto- cle is achieved. Finally,it tests the effect of transplantation of the various components. Test results show that the nodes can realize sta- ble and reliable communication.
出处
《单片机与嵌入式系统应用》
2012年第11期35-38,共4页
Microcontrollers & Embedded Systems