中文版 | English
题名

基于FreeRTOS的LoRa网络节点操作系统的研究

其他题名
LORA­-ENABLED OPERATING SYSTEM FOR LOW-­END DEVICES BASED ON FREERTOS
姓名
姓名拼音
LIU Kai
学号
12032502
学位类型
硕士
学位专业
0809 电子科学与技术
学科门类/专业学位类别
08 工学
导师
杨双华
导师单位
计算机科学与工程系
论文答辩日期
2023-05-13
论文提交日期
2023-06-29
学位授予单位
南方科技大学
学位授予地点
深圳
摘要

无线传感器网络是物联网的一个重要组成部分,它是一种基于无线通信技术的分布式网络系统,由多个无线传感器节点组成,用于收集环境中的物理或化学信息,将物理世界的信息转化为数字信息,并通过无线网络传输给远程云端系统。从而实现自动化的数据采集,实时监测和管理等功能。然而,随着 5G 等高速通信技术的发展,物联网在多个应用领域中技术落地加速,同时也给无线传感器网络带来了新的挑战。例如,5G 技术虽然可以涵盖多种场景,但不适用于低密度、低速率、低功耗、远距离物联需求。LoRa 和 NB­-IoT 等无线通信技术以其低功耗、长距离、低成本的优势弥补了这些需求,但同时也存在无可靠操作系统等技术瓶颈。

过去传感器节点由于硬件平台性能有限,只能部署基于轮询或前后台的嵌入式系统,以实现对节点高效的控制。然而,面对如今日益复杂的应用需求,体系结构、性能各异的硬件平台和多样的无线通信技术,传统的嵌入式系统已经无法满足各种需求。而操作系统可以为传感器网络供资源管理、调度、安全等服务,同时为嵌入式设备供应用程序开发框架,以支持物联网应用的二次开发。因此,为传感器网络终端节点设计一个合适的操作系统至关重要。

本论文以 LoRa 通信技术和 FreeRTOS 实时操作系统内核为研究基础,拓展了系统对 LoRa 无线通信技术的支持,实现了 LoRa 网络终端节点的操作系统平台。 为了优化系统对 LoRa 中断处理的实时性和减少资源消耗,提出了多状态机系统框架和基于时间片调度的时钟管理子系统,替代了部分系统接口,为内核提供了裁剪空间。系统使用不同优先级的状态机分别管理系统线程和中断请求,将中断线程化处理,提高中断整体响应速度。最后,通过实验验证了该方案的有效性,降低了系统中断响应延迟,并减少了系统在资源上的消耗,占用更少的内存,且更加节能。

其他摘要

Wireless sensor networks (WSNs) have become a vital component of the Internet of Things (IoT) infrastructure, enabling the collection of physical and chemical information from the environment through distributed networks of wireless sensor nodes. The cap­tured data is then digitized and transmitted through a wireless network to a remote cloud system, enabling real­-time monitoring and management of the physical environment. However, the rapid proliferation of high­-speed communication technologies, such as 5G, has accelerated the implementation of IoT in diverse application fields, and presented new challenges to WSNs. Although 5G technology can support various scenarios, it is not well­-suited for low-­density, low­-speed, low-­power consumption, and long­-distance IoT requirements. Consequently, wireless communication technologies like LoRa and NB­-IoT have been developed to meet these specific needs. However, these technologies are not without their challenges, such as the lack of reliable operating systems.

In previous times, the performance limitations of hardware platforms hindered the deployment of embedded systems, necessitating alternative solutions to achieve efficient control of sensor nodes. However, with the emergence of increasingly complex applica­tion requirements and a variety of wireless communication technologies, traditional em­bedded systems are no longer sufficient to meet diverse needs. Operating systems offer resource management, scheduling, security, and other services for sensor networks, while also providing an application development framework for embedded devices to support the secondary development of IoT applications. Therefore, the development of a suitable operating system is critical for WSN end nodes.

This thesis presents the development of an operating system platform for LoRa net­ work end nodes that leverages LoRa communication technology and the FreeRTOS ker­nel. To optimize the real­-time performance of the system in LoRa interrupt processing and reduce resource consumption, we propose a multi­-FSM system framework and a clock management subsystem based on time slice scheduling. This framework replaces the original system interface and provides cutting space for the kernel. And the proposed system utilizes state machine with varying priorities to manage system threads and inter­rupt requests separately, resulting in threaded interrupt processing and improved the over­ all response speed of interrupts. Experimental verification of the system’s effectiveness demonstrates a reduction in the system interrupt response delay, resource consumption, and memory usage, leading to increased energy efficiency.

关键词
语种
中文
培养类别
独立培养
入学年份
2020
学位授予年份
2023-06
参考文献列表

[1] DONG W, CHEN C, LIU X, et al. Providing OS support for wireless sensor networks: Challenges and approaches[J]. IEEE communications surveys & tutorials, 2010, 12(4): 519¬530.
[2] SWAMY S N, KOTA S R. An empirical study on system level aspects of Internet of Things (IoT)[J]. IEEE Access, 2020, 8: 188082¬188134.
[3] CARUSO A, CHESSA S, ESCOLAR S, et al. Collection of data with drones in precision agriculture: Analytical model and LoRa case study[J]. IEEE Internet of Things Journal, 2021, 8(22): 16692¬16704.
[4] HU I, LIN Z. Design of an embedded system with on¬demand image capturing and transmission for remote agricultural monitoring[A]. 2022.
[5] DE CASTRO TOMÉ M, NARDELLI P H, ALVES H. Long¬range low-power wireless networks and sampling strategies in electricity metering[J]. IEEE Transactions on Industrial Elec-tronics, 2018, 66(2): 1629¬1637.
[6] SHA L, KLEIN M H, GOODENOUGH J B. Rate monotonic analysis for real-time systems [M]. Springer, 1991.
[7] BOR M C. Towards the efficient use of LoRa for wireless sensor networks[M]. Lancaster University (United Kingdom), 2020.
[8] SUN Z, YANG H, LIU K, et al. Recent advances in lora: A comprehensive survey[J]. ACM Transactions on Sensor Networks, 2022, 18(4): 1¬44.
[9] 甘泉. LoRa 物联网通信技术[M]. 清华大学出版社, 2021.
[10] LIANDO J C, GAMAGE A, TENGOURTIUS A W, et al. Known and unknown facts of LoRa: Experiences from a large¬scale measurement study[J]. ACM Transactions on Sensor Networks (TOSN), 2019, 15(2): 1¬35.
[11] SEMTECH. SX1276¬7¬8¬9 Datasheet[EB/OL]. 2023. https://pdf1.alldatasheet.com/datasheet-pdf/download/800239/SEMTECH/SX1276.html.
[12] 廖建尚, 巴音查汗. 物联网长距离无线通信技术应用与开发[M]. 电子工业出版社, 2019.
[13] SEMTECH. LoRa and LoRaWAN: A Technical Overview[R]. Semtech Corporation, 2019.
[14] DASGUPTA R. Anatomy of rtos and analyze the best-fit for small, medium and large footprint embedded devices in wireless sensor network[C]//2008 Second International Conference on Sensor Technologies and Applications (sensorcomm 2008). IEEE, 2008: 598¬603.
[15] MILINKOVIĆ A, MILINKOVIĆ S, LAZIĆ L. Choosing the right RTOS for IoT platform[J]. Infoteh Jahorina, 2015, 14: 504¬9.
[16] HAHM O, BACCELLI E, PETERSEN H, et al. Operating systems for low-end devices in the internet of things: a survey[J]. IEEE Internet of Things Journal, 2015, 3(5): 720¬734.
[17] STRICKLAND J R, STRICKLAND J R. Meet the Raspberry Pi[J]. Raspberry Pi for Arduino Users: Building IoT and Network Applications and Devices, 2018: 35¬61.
[18] BORMANN C, ERSUE M, KERANEN A. Terminology for constrained¬node networks[R]. 2014.
[19] OJO M O, GIORDANO S, PROCISSI G, et al. A review of low-end, middle¬end, and high¬end iot devices[J]. IEEE Access, 2018, 6: 70528¬70554.
[20] DURVY M, ABEILLÉ J, WETTERWALD P, et al. Making sensor networks IPv6 ready[C]//Proceedings of the 6th ACM conference on Embedded network sensor systems. 2008: 421¬422.
[21] MIRANI L. Chip¬makers are betting that Moore’s Law won’t matter in the internet of things[EB/OL]. 2014. https://qz.com/218514/chip¬makers¬are¬betting-that¬moores¬law-wont-matter¬in¬the¬internet¬of-things.
[22] MIT. Real Time Operating Systems Lecture[EB/OL]. 2001. http://web.mit.edu/16.070/www/year2001/RTOS27.pdf.
[23] MIT. Real Time Operating Systems Part II[EB/OL]. 2001. http://web.mit.edu/16.070/www/year2001/RTOS28.pdf.
[24] ABDELSAMEA M H A, ZORKANY M, ABDELKADER N. Real time operating systems for the internet of things, vision, architecture and research directions[C]//2016 World Symposium on Computer Applications & Research (WSCAR). IEEE, 2016: 72¬77.
[25] DUNKELS A, GRONVALL B, VOIGT T. Contiki¬a lightweight and flexible operating system for tiny networked sensors[C]//29th annual IEEE international conference on local computer networks. IEEE, 2004: 455¬462.
[26] LEVIS P, MADDEN S, POLASTRE J, et al. TinyOS: An operating system for sensor networks[J]. Ambient intelligence, 2005: 115¬148.
[27] BARRY R. Mastering the FreeRTOS Real Time Kernel: A Hands¬On Tutorial Guide [EB/OL]. 2016. https://www.freertos.org/fr¬content¬src/uploads/2018/07/161204_Masterin g_the_FreeRTOS_Real_Time_Kernel¬A_Hands¬On_Tutorial_Guide.pdf.
[28] BACCELLI E, GÜNDOĞAN C, HAHM O, et al. RIOT: An open source operating system for low-end embedded devices in the IoT[J]. IEEE Internet of Things Journal, 2018, 5(6): 4428¬4440.
[29] MULLIGAN G. The 6LoWPAN architecture[C]//Proceedings of the 4th workshop on Embedded networked sensors. 2007: 78¬82.
[30] MICROSOFT. Azure RTOS ThreadX[EB/OL]. 2023. https://github.com/azure¬rtos/threadx.
[31] ZEPHYR. The Zephyr Project[EB/OL]. 2023. https://github.com/zephyrproject¬rtos/zephyr.
[32] HUAWEI. LiteOS[EB/OL]. 2023. https://github.com/LiteOS/LiteOS.
[33] RT¬THREAD. RT-Thread is an open source IoT operating system[EB/OL]. 2023. https://github.com/RT¬Thread/rt¬thread.
[34] SILVA M, CERDEIRA D, PINTO S, et al. Operating systems for Internet of Things low¬end devices: Analysis and benchmarking[J]. IEEE Internet of Things Journal, 2019, 6(6): 10375-10383.
[35] MUSADDIQ A, ZIKRIA Y B, HAHM O, et al. A survey on resource management in IoT operating systems[J]. IEEE Access, 2018, 6: 8459¬8482.
[36] MAZZI Y, GAGA A, ERRAHIMI F. Benchmarking and comparison of two open¬source RTOSs for embedded systems based on ARM Cortex¬M4 MCU[J]. Indian J Sci Technol, 2021, 14: 1261¬1273.
[37] LABROSSE J, 等. 在高度时间敏感的低功耗蓝牙应用中使用 RTOS[J]. 今日电子, 2018 (7): 41¬42.
[38] 刘帅, 朱洪海. 基于 RT¬Thread 的海洋环境监测站的设计[J]. 数字技术与应用, 2021.
[39] DAUD A R, THARIQ M N, KAULIKA V O, et al. Digital Electricity Meter with Two Way Internet Communication[C]//2020 IEEE International Conference on Communication, Networks and Satellite (Comnetsat). IEEE, 2020: 194¬197.
[40] PINTO S, CABRAL J, GOMES T. We¬care: An IoT¬based health care system for elderly people[C]//2017 IEEE International Conference on Industrial Technology (ICIT). IEEE, 2017: 1378¬1383.
[41] GUNAWAN T S, SABAR M F, NASIR H, et al. Development of smart chicken poultry farm using RTOS on Arduino[C]//2019 IEEE International Conference on Smart Instrumentation, Measurement and Application (ICSIMA). IEEE, 2019: 1¬5.
[42] SVEDA M, TRCHALIK R, OCENASEK P. Design of networked embedded systems: An approach for safety and security[J]. IFAC Proceedings Volumes, 2009, 42(1): 127¬132.
[43] KLEIN G, ELPHINSTONE K, HEISER G, et al. seL4: Formal verification of an OS kernel[C]//Proceedings of the ACM SIGOPS 22nd symposium on Operating systems principles. 2009: 207¬220.
[44] HAHM S I, KIM J, JEONG A, et al. Reliable real¬time operating system for iot devices[J]. IEEE Internet of Things Journal, 2020, 8(5): 3705¬3716.
[45] LIU X, ZHOU H, XIONG S, et al. Research of a resource¬efficient, real¬time and fault-tolerant wireless sensor network system[J]. Journal of Information Security and Applications, 2016, 31: 3-13.
[46] FIEDLER B, ENTRUP G, DIETRICH C, et al. Levels of specialization in real¬time operating systems[J]. OSPERT 2018, 2018: 31.
[47] 沈建华. 从 RTOS 到 IoT OS——谈技术, 产品与商业化[J]. 电子产品世界, 2018, 25(3): 30-32.
[48] HUAWEI. HarmonyOS[EB/OL]. 2023. https://www.harmonyos.com/.
[49] CADARIO S, POWERS A. How Does an IoT OS Differ to a Traditional RTOS?[R]. ARM, 2021.
[50] GOOGLE. Fuchsia[EB/OL]. 2023. https://fuchsia.dev/.
[51] SUGIHARA R, GUPTA R K. Programming models for sensor networks: A survey[J]. ACM Transactions on Sensor Networks (TOSN), 2008, 4(2): 1¬29.
[52] KASTEN O, ROMER K. Beyond event handlers: Programming wireless sensors with attributed state machines[C]//IPSN 2005. Fourth International Symposium on Information Processing in Sensor Networks, 2005. IEEE, 2005: 45-52.
[53] CECÍLIO J, FURTADO P. Wireless sensors in heterogeneous networked systems[M]. Springer, 2016.
[54] KOPJÁK J, KOVÁCS J. RTOS Program Models Used in Embedded Systems[J]. Obuda University e¬Bulletin, 2011, 2(1): 161¬171.
[55] KOPJÁK J, KOVÁCS J. Event¬-driven control program models running on embedded systems [C]//2011 6th IEEE International Symposium on Applied Computational Intelligence and In¬formatics (SACI). IEEE, 2011: 323¬326.
[56] KRÄMER M, BADER S, OELMANN B. Implementing Wireless Sensor Network applications using hierarchical finite state machines[C]//2013 10th IEEE International Conference on Networking, Sensing and Control (ICNSC). IEEE, 2013: 124¬129.
[57] WOLF W H. Hardware-software co¬design of embedded systems[J]. Proceedings of the IEEE, 1994, 82(7): 967¬989.
[58] ZAGAN I, GĂITAN V G. FPGA implementation of hardware accelerated RTOS based on real-time event handling[J]. The Journal of Supercomputing, 2023: 1-31.
[59] DIETRICH C, HOFFMANN M, LOHMANN D. Back to the roots: implementing the RTOS as a specialized state machine[J]. OSPERT 2015, 2015: 7.
[60] KITANI T, TAKAMOTO Y, YASUMOTO K, et al. A flexible and high¬reliable HW/SW codesign method for real¬time embedded systems[C]//25th IEEE International Real¬Time Systems Symposium. IEEE, 2004: 437¬446.
[61] TIGORI K T G, BÉCHENNEC J L, FAUCOU S, et al. Formal model-based synthesis of application-specific static RTOS[M]. ACM New York, NY, USA, 2017.
[62] DIETRICH C, LOHMANN D. OSEK¬V: application-specific RTOS instantiation in hardware[J]. ACM SIGPLAN Notices, 2017, 52(5): 111-120.
[63] KIM T H, HONG S. State machine based operating system architecture for wireless sensor networks[C]//Parallel and Distributed Computing: Applications and Technologies: 5th International Conference, PDCAT 2004, Singapore, December 8¬10, 2004. Proceedings. Springer, 2005: 803-806.
[64] NAMI M, SURYN W. From requirements to software trustworthiness using scenarios and finite state machine[C]//IECON 2012-38th Annual Conference on IEEE Industrial Electronics Society. IEEE, 2012: 3126-3131.
[65] KATIN P, CHMELOV V, SHEMAEV V. Development of typical "State" software patterns for Cortex¬M microcontrollers in real time[J]. Восточно¬Европейский журнал передовых технологий, 2020, 3(9¬105): 29¬38.
[66] XIANGHU W, MINGCHENG Q, YONGCHAO T, et al. H¬SRTF: A real-time framework supporting state machine model[C]//2013 2nd International Symposium on Instrumentation and Measurement, Sensor Network and Automation (IMSNA). IEEE, 2013: 126¬129.
[67] ZHU L, WU Z G. Finite State Machine to Optimize Multi-Tasking Concurrence Technology for Real Time Operating System[C]//Advanced Materials Research: volume 383. Trans Tech Publ, 2012: 2522¬2527.
[68] 李向阳, 刘显勤, 张向文. 应用有限状态机的实时操作系统平台流程控制软件实现技术[J]. 导弹与航天运载技术, 2017(2): 80-86.
[69] 张锦坤, 杨孟飞, 乔磊, 等. 基于有限状态机的操作系统需求层形式化验证[J]. 空间控制技术与应用, 2020, 45(2): 48.
[70] DIETRICH C, HOFFMANN M, LOHMANN D. Global optimization of fixed¬priority real-time systems by RTOS-aware control-flow analysis[J]. ACM Transactions on Embedded Computing Systems (TECS), 2017, 16(2): 1-25.
[71] DIETRICH C. Interaction-aware analysis and optimization of real-time application and operating system[M]. Hannover: Institutionelles Repositorium der Leibniz Universität Hannover, 2019.
[72] VON BEHREN J R, CONDIT J, BREWER E A. Why Events Are a Bad Idea (for High-Concurrency Servers).[C]//HotOS. 2003: 19¬24.
[73] SASONGKO A. Hardware/Software Co-design Flow Using Automatic Generation of Embed-ded System Framework Based on Interacting FSM Model[J]. International Journal on Electrical Engineering and Informatics, 2020, 12(4): 859-877.
[74] LEONARDI L, BATTAGLIA F, BELLO L L. RT¬LoRa: A medium access strategy to support real¬time flows over LoRa-based networks for industrial IoT applications[J]. IEEE Internet of Things Journal, 2019, 6(6): 10812¬10823.
[75] ZORBAS D, ABDELFADEEL K, KOTZANIKOLAOU P, et al. TS¬LoRa: Time-slotted LoRaWAN for the industrial Internet of Things[J]. Computer Communications, 2020, 153: 1-10.
[76] HOANG Q L, JUNG W S, YOON T, et al. A real¬time LoRa protocol for industrial monitoring and control systems[J]. IEEE Access, 2020, 8: 44727-44738.
[77] JAVED F, AFZAL M K, SHARIF M, et al. Internet of Things (IoT) operating systems support, networking technologies, applications, and challenges: A comparative review[J]. IEEE Communications Surveys & Tutorials, 2018, 20(3): 2062¬2100.
[78] STALLINGS W, PAUL G K. Operating systems: internals and design principles: volume 9[M]. Pearson New York, 2012.
[79] DIJKSTRA E W. Cooperating sequential processes[M]. Springer, 2002.
[80] SHA L, RAJKUMAR R, LEHOCZKY J P. Priority inheritance protocols: An approach to real-time synchronization[J]. IEEE Transactions on computers, 1990, 39(9): 1175-1185.
[81] BAKER T P. Stack-¬based scheduling of realtime processes[J]. Real¬Time Systems, 1991, 3(1): 67¬99.
[82] BERGUERAND R, BERGAMINI L, DALLEMAGNE P, et al. Integration of the ultra¬low power WiseMAC with the 𝜇111 Real Time Operating System: a performance evaluation[C]//2021 17th International Conference on Wireless and Mobile Computing, Networking and Communications (WiMob). IEEE, 2021: 301-306.
[83] SAMEK M. Modern Embedded Systems Programming: Beyond the RTOS[R]. Quantum Leaps, 2016.
[84] ARM. Summary and description of the DWT registers[EB/OL]. 2023. https://developer.arm.com/documentation/ddi0337/e/System¬Debug/DWT/Summary-and-description-of-the-DWT-registers.
[85] VEGA¬RODRÍGUEZ R, SENDRA S, LLORET J, et al. Low cost LoRa based network for forest fire detection[C]//2019 Sixth International Conference on Internet of Things: Systems, Management and Security (IOTSMS). IEEE, 2019: 177¬184.

所在学位评定分委会
电子科学与技术
国内图书分类号
TP316.2
来源库
人工提交
成果类型学位论文
条目标识符http://sustech.caswiz.com/handle/2SGJ60CL/544526
专题工学院_计算机科学与工程系
推荐引用方式
GB/T 7714
刘凯. 基于FreeRTOS的LoRa网络节点操作系统的研究[D]. 深圳. 南方科技大学,2023.
条目包含的文件
文件名称/大小 文献类型 版本类型 开放类型 使用许可 操作
12032502-刘凯-计算机科学与工程(6124KB)----限制开放--请求全文
个性服务
原文链接
推荐该条目
保存到收藏夹
查看访问统计
导出为Endnote文件
导出为Excel格式
导出为Csv格式
Altmetrics Score
谷歌学术
谷歌学术中相似的文章
[刘凯]的文章
百度学术
百度学术中相似的文章
[刘凯]的文章
必应学术
必应学术中相似的文章
[刘凯]的文章
相关权益政策
暂无数据
收藏/分享
所有评论 (0)
[发表评论/异议/意见]
暂无评论

除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。