首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于观察者模式的CoAP课程教学与实验设计
引用本文:张笑非,段先华,王长宝,王 艳.基于观察者模式的CoAP课程教学与实验设计[J].教育技术导刊,2019,18(12):199-203.
作者姓名:张笑非  段先华  王长宝  王 艳
作者单位:江苏科技大学 计算机学院,江苏 镇江 212003
基金项目:教育部人文社科基金项目(2014WY11J);江苏省哲学社科基金项目(2014SJB822);江苏科技大学2016高教研究项目(GJKTY201625);江苏省教育信息化研究课题项目(20172217)
摘    要:CoAP是M2M的核心技术之一,其观察者模式是一种软件设计模式。IETF RFC 7641定义的CoAP资源观察机制正是基于该模式,是CoAP教学和实验内容的重要组成部分。将CoAP中资源观察消息的传递过程与通知的传输控制、时效性模型结合进行课程教学内容设计,通过Eclipse开源项目Californium中提供的API设计相应实验,并利用JUnit框架设计CoAP资源观察的测试用例,测试结果验证了相应资源观察过程。将该设计运用到实际教学活动中,学生对CoAP的内涵理解及编程能力都有提高。

关 键 词:观察者模式  资源观察通知  传输控制  时效性模型  受限节点/网络  
收稿时间:2019-03-15

Observer Pattern Based Teaching and Experimental Design of CoAP Course
ZHANG Xiao-fei,DUAN Xian-hua,WANG Chang-bao,WANG Yan.Observer Pattern Based Teaching and Experimental Design of CoAP Course[J].Introduction of Educational Technology,2019,18(12):199-203.
Authors:ZHANG Xiao-fei  DUAN Xian-hua  WANG Chang-bao  WANG Yan
Institution:School of Computer, Jiangsu University of Science and Technology, Zhenjiang 212003, China
Abstract:CoAP is one of the core technologies of M2M and its observer mode is a software design pattern. The CoAP resource observation mechanism defined by IETF RFC 7641 is based on this pattern and is an important part of CoAP teaching and experimental content. This paper integrates the message transfer process of resources observing, transmission control of notifications, and freshness model in CoAP for the teaching content design. Experiments are also designed with API from Californium, an open source project from Eclipse foundation. Test cases of resources observing of CoAP are also designed based on JUnit framework, and the results verify the resources observing process of corresponding case. It is found that students’ understanding about CoAP and programming ability with CoAP can be improved thanks to the application of those teaching activities.
Keywords:observer pattern  resources observing notification  transmission control  freshness model  constrained nodes and networks  
点击此处可从《教育技术导刊》浏览原始摘要信息
点击此处可从《教育技术导刊》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号