节点文献
面向智慧家庭的CPS资源协调服务技术及系统
Research on Technology And Implementation of System of CPS Resource Coordinated Service For Smart Home
【作者】 陈硕;
【导师】 聂兰顺;
【作者基本信息】 哈尔滨工业大学 , 计算机科学与技术, 2015, 硕士
【摘要】 在智慧家庭领域中,家庭控制系统已经渐渐地从封闭系统转向CPS开放系统,CPS开放系统中集成多应用共同运行,应用之间共同协作、信息共享,虽然有很多优势,但同时集成多个应用系统是极具挑战性的,因为每个独立的应用系统都有自己的内部逻辑,而他们相互之间并不了解,在多个应用系统共享底层设备资源时,很容易导致冲突矛盾的发生。因此本文研究CPS资源复杂特性、冲突的多类型多维度,从而管理资源生命周期,合理分配及调度资源,解决检测冲突、消解冲突的问题。为了使平台上多个应用程序统一的获取资源,我们将要完成一个公共的资源协调服务,统一地、集中地管理资源。并且通过将配置信息直接生成为代码源文件,简化开发难度,方便开发操作。首先,论文分析智慧家庭领域的CPS资源与应用的复杂特性,并对其进行建模,并对Home OS[1]平台进行剖析,建立一个基于Home OS平台的资源协调扩展服务,提出了本文需要解决的问题,在多应用运行的平台上共享使用资源存在发生冲突的可能,进一步阐述资源协调服务的目标。其次,对基于Home OS扩展的资源协调服务系统涵盖的关键技术以及关键技术实现原理进行说明,包括:基于状态机的状态管理、应用程序域隔离机制与跨域访问、基于MQTT消息传输机制、基于优先级抢占式调度方法、以及基于XSLT代码生成技术。进一步,设计并实现了面向智慧家庭CPS资源协调服务系统,核心部分是资源协调调度引擎,基于状态机的管理,考虑资源运行状态的特征,结合优先级抢占式调度,设计出多维度的解决冲突的资源协调方案,使资源协调服务更好地完成任务。设计出代码生成工具,简化开发者开发难度,并且设计实现资源协调服务管理工具,方便对资源、对应用程序运行的监控和管理。最后,为了验证资源协调服务系统的合理性,设计出多组简单场景的应用程序,使其并发运行在扩展的平台上,对其进行性能与功能的测试与评价。
【Abstract】 In the current domain of smart home, home control system has been gradually shifted from a closed system to the CPS open system. The CPS open system integrates many applications and operates them at the same time, with this method, information w ill be shared between applications. Although there are a lot of advantages, but at the same time the integration of mult iple application system is challenging. Every independent application system has its own inte rnal logic, it will easily cause conflicts when the system controls the changes of the physical world as well as sharing underlying equipment resources wit h more than one application systems under the condition of applications do not understand each other in details. In order to make applications of the platform get the uniform access to resources, we are going to present a public resources coordination services. The service will guarantee the resources are managed unified and centrally. In addit ion, the se rvice will simplify the development difficult y and make the operation development easier by configuring information directly into the source code files.First of all, the paper analysis complex features of both resources and applications of CPS open system based on smart home domain. Then the paper establish a model and analyzes the Home O S platform. Besides, it provides a resources coordinated extension service based on Home O S platform. Put forward in this paper, shows the problems need to be solved.Secondly, the paper explains the key techno logy and operating princip le of the key technology based on resources coordinat ion service of Home O S extension system. The instruction including: self discovery of equipment, state management based on state machine, the application doma in isolation mechanism and cross domain access, message transmission mechanis m based on the MQ TT, scheduling method based on priority preemptive, and generation technology based on XSLT code.Furthermore, the paper designed and imp lement ed resources coordinated service system based on smart home C PS open system. The core part is resources coordination scheduling engine, the management based on state machine. Considering the running state of the resource characteristics and then combining it with preemptive priority scheduling, in order to make coordination of resources service to complete the task in a better way, this paper designs a mult i-dimensiona l resources coordination solut ions for conflicts. Addit ional, the paper designs a code generation tool to simplify the difficulty of coding for developers. A resource coordinated service management tool is provided to make it more convenient to monitor and manage the resources and the running applications.Last but not least, in order to valida te the rationa lit y of resources coordinated service system, the paper designs a set of applications cover some simp le scenarios, and then set them to the extension plat form concurrently, and evaluate the function and performance of the system.