TinyCenter


TinyCenter | 基于云端的物联网设备控制和协同工作框架

摘 要:物联网正在逐渐的进入到大众的生活当中,并即将促使人类进入下一个智能时代。尽管市面上有很多物联网管理系统,但几乎都不支持用户代码、数据监控等功能。本设计提出了一个更具潜力的系统,系统对各个组件之间进行了分层、分区管理:使用中心控制器实现了信息的自动配送机制,辅助控制器提供了区分公共设备和私有设备的能力,Client端中提供了指令的标准化解析方法。而在服务器端,设备驱动将抽象的指令信息具象化,并使用类标记来同时管理那些在某方面相似的设备,自定义按钮使得用户可以快捷地完成操作;基本数据表可以存放设备的自定义数据,基本指令队列保证指令存取操作的原子性;用户代码运行环境是本系统最重要的创新和特色功能,支持用户自定义代码,该环境简单易学,不仅可以过滤危险的用户代码,内置的Userlib还为用户随时随地个性化管理设备提供了无限可能;设备选择器不仅可以依据中心控制器划分不同的管理区域,还可以根据设备的类和编号管理设备,通过不同限制的组合进行精细化管理;通过统一高效的数据监视器,实现了传感器与其他设备之间的自动化配合,以此可以实现多个设备间的协同工作,同时考虑了传感器数值变化的延迟性,设计了反向重复的算法避免了代码的重复执行;串行指令不仅可以获取指令执行成功与否,还可以在指令执行完成后自动执行用户指定的其他代码,实现了指令与指令之间的同步,有能力完成更加精细化的设备管理操作;权限控制系统规定了不同用户控制设备的范围,也可以阻止不明设备接入系统;日志系统可以记录系统中出现的错误,用户通知中心可以实时提醒用户设备的当前状态。配合Android客户端的使用,解决了许多实实在在的问题。

关键词:物联网 控制 协同工作 框架

TinyCenter—IoT Control and Collaboration Framework Based on Cloud Service

Abstract: The Internet of things is gradually entering into the life of the public, and it will promote human to enter the next intelligent era. Although there are many Internet of things management systems on the market, their functions are not perfect. This graduation project puts forward a more potential system, which manages the components in layers and zones: the Center Controller is used to realize the automatic distribution mechanism of information, the Accessiorial Controller provides the ability to distinguish public equipment from private equipment, and the Client provides the standardized analysis method of instructions. On the server side, the device driver visualizes the abstract instructions, uses class tags to manage similar devices, and the user-defined buttons enable the user to complete the operation quickly; the basic data table can store the user-defined data of the device, and the basic instruction queue ensures the atomicity of the instruction access operation; the user code operation environment is the most important innovation and feature of the system, which support user-defined code, the environment is simple and easy to learn, not only can filter dangerous user code, but also the built-in userlib provides unlimited possibilities for users to personalized manage the device anytime and anywhere; the device selector can not only divide different management areas according to the center controller, but also manage the device according to the class and number of the device, through the combination of different restrictions, refined management will be realized; a unified and efficient data monitor, which realizes the automatic cooperation between sensors and other devices, so as to realize the cooperative work among multiple devices; serial instructions can not only obtain the success of instruction execution, but also automatically complete the operations specified by users after execution, so as to realize the synchronization between instructions and have the ability to complete More refined equipment management operations; the authority control system specifies the scope of different user control equipment, and it can also prevent unknown equipment from accessing the system; the log system can record errors in the system, and the user notification center can remind the user of the current status of the equipment in real time. With the use of Android client, many practical problems have been solved.

Keywords: IoT; control; collaboration; framework