华东师范大学学报(自然科学版) ›› 2021, Vol. 2021 ›› Issue (3): 78-95.doi: 10.3969/j.issn.1000-5641.2021.03.009

• 计算机科学 • 上一篇    下一篇

可扩展物联网教学开发系统的设计与实现

祝鸣, 沈建华*(), 汪家财   

  1. 华东师范大学 计算机科学与技术学院, 上海 200062
  • 收稿日期:2020-04-21 出版日期:2021-05-25 发布日期:2021-05-26
  • 通讯作者: 沈建华 E-mail:jhshen@cs.ecnu.edu.cn
  • 基金资助:
    教育部产学协同育人项目(14506-412312-18139)

The design and implementation of a scalable Internet of things teaching development system

Ming ZHU, Jianhua SHEN*(), Jiacai WANG   

  1. School of Computer Science and Technology, East China Normal University, Shanghai 200062, China
  • Received:2020-04-21 Online:2021-05-25 Published:2021-05-26
  • Contact: Jianhua SHEN E-mail:jhshen@cs.ecnu.edu.cn

摘要:

物联网(Internet of Things, IoT)技术正在蓬勃发展中, 而在嵌入式的课堂中, 如何引领学生结合嵌入式的技术进行物联网领域的初步探索是一个值得思考的问题. 为了降低学生学习的成本和开发的难度, 设计并实现了一个可扩展性强的集管理功能和开发应用功能于一体的物联网教学开发系统; 采用开源框架Spring Boot和Vue, 完成了系统云端的研发; 基于微服务架构很好地解决了耦合性强和可扩展性差的问题. 同时, 为了应对高并发场景, 设计了一种基于阈值过滤的负载均衡优化算法. 实验结果表明, 该算法提升了云端的平均响应速度, 改善了在复杂网络环境下的负载均衡效果. 硬件端基于MSP432开发平台和EMW3080 Wi-Fi模块实现了一套简单易用的支持配网和数据通信的SDK (Software Development Kit), 降低了硬件底层工作的复杂度和学习成本, 使得开发者可以专注于实现业务逻辑.

关键词: 物联网, 微服务, 云技术, 负载均衡

Abstract:

Internet of things (IoT) technology is booming, and from the viewpoint of embedded experimental teaching, it is worth thinking about how to lead students to conduct preliminary exploration in the field of Internet of things with embedded technology. In order to reduce the difficulties and costs of student learning and development, we designed and implemented a scalable IoT teaching and development system that integrates management and development functions. We adopted the open-source framework of Spring Boot and Vue to complete the development for the cloud side of the system. Using a micro-service architecture, we solved the typical challenges of strong coupling and poor scalability. In order to cope with high concurrency scenarios, we designed a load balancing optimization algorithm based on threshold filtering. Experimental results showed that the algorithm enhances the average response speed of the cloud and improves load balancing in complex network environments. Based on the MSP432 development platform and the EMW3080 Wi-Fi module, we implemented an easy-to-use SDK(Software Development Kit) that supports network distribution and data communication on the hardware side. The SDK reduced the complexity of the underlying hardware work and learning costs, allowing developers to focus on implementing business logic. Combining the work of software and hardware, the proposed IoT teaching development system provides a complete set of personalized IoT development solutions and an embedded teaching management system.

Key words: Internet of things, micro-services, cloud technology, load balancing

中图分类号: