CN114265823A - A visualization integration system and method for IoT devices based on mapping files - Google Patents
A visualization integration system and method for IoT devices based on mapping files Download PDFInfo
- Publication number
- CN114265823A CN114265823A CN202111612789.2A CN202111612789A CN114265823A CN 114265823 A CN114265823 A CN 114265823A CN 202111612789 A CN202111612789 A CN 202111612789A CN 114265823 A CN114265823 A CN 114265823A
- Authority
- CN
- China
- Prior art keywords
- mapping file
- data
- interface
- information
- target data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000013507 mapping Methods 0.000 title claims abstract description 164
- 230000010354 integration Effects 0.000 title claims abstract description 41
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000012800 visualization Methods 0.000 title claims abstract description 24
- 230000000007 visual effect Effects 0.000 claims abstract description 24
- 238000004458 analytical method Methods 0.000 claims abstract description 7
- 238000012795 verification Methods 0.000 claims description 18
- 238000007405 data analysis Methods 0.000 claims description 9
- 239000000284 extract Substances 0.000 claims description 6
- 238000010276 construction Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 17
- 230000008569 process Effects 0.000 description 13
- 238000012545 processing Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000009434 installation Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000003466 anti-cipated effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及智慧化物联网建设技术领域,尤其涉及一种基于映射文件的物联网设备可视化集成系统及方法。The invention relates to the technical field of intelligent IoT construction, in particular to a visualization integration system and method for IoT devices based on a mapping file.
背景技术Background technique
在智慧化物联网建设领域,具备联网功能的硬件设备种类繁多。庞大的设备群体来自不同的硬件厂商,各自拥有着独特的软件环境和数据后台。但整体来说,一般用户访问物联网设备的方法类似,访问物联网设备的基本系统模型如图1所示。在该系统模型中,提及三个构成要素:In the field of smart IoT construction, there are many types of hardware devices with networking capabilities. The huge equipment groups come from different hardware manufacturers, each with its own unique software environment and data backend. But on the whole, the methods for general users to access IoT devices are similar, and the basic system model for accessing IoT devices is shown in Figure 1. In this system model, three components are mentioned:
1、位于特定设备安装环境下的【物联网设备】1. [Internet of Things device] located in a specific device installation environment
2、基于互联网的【设备访问数据平台】,一般由设备生产厂商提供2. Internet-based [device access data platform], generally provided by device manufacturers
3、提供给最终用户使用的【设备访问操作界面】3. [Device Access Operation Interface] provided to end users
由设备生产厂商生产的【物联网设备】是具有固定功能的、作为最终稳定产品提供给用户的不可变客体。尽管大多设备购买后投入应用,还可能存在特定环境下进行设备安装、维护的过程,但这些内容或因为简单、用户可自行处理,或属于设备生产厂商份内的职责,总体来说是相对明确的有型的实体要素。[Internet of Things devices] produced by device manufacturers are immutable objects with fixed functions that are provided to users as final stable products. Although most of the equipment is put into use after purchase, there may be a process of equipment installation and maintenance in a specific environment, but these contents are relatively clear because of their simplicity, users can handle them by themselves, or they belong to the responsibility of equipment manufacturers. The shaped entity elements.
最终用户访问【物联网设备】过程中,实际最终直接面对的是【设备访问操作界面】;而接触到该界面之前,一般都还需要一个基于互联网的【设备访问数据平台】,实现对目标设备基础功能管理。这两个要素与设备最大的区别就是,设备是物理存在的实体,而这两者本质是软件服务。In the process of accessing the [Internet of Things device], the end user actually directly faces the [device access operation interface]; before accessing the interface, an Internet-based [device access data platform] is generally needed to achieve the goal of Device basic function management. The biggest difference between these two elements and the device is that the device is a physical entity, and the two are essentially software services.
诚然,设备厂商会将【设备访问数据平台】和【设备访问操作界面】都作为【物联网设备】产品配套的功能,或直接、或间接地提供给用户,以达成“物联网”系统闭环;但这个环节中,最终用户接触到的【设备访问操作界面】,并非只能由厂商来提供。现有技术中,可以通过多种方式形成“物联网”系统闭环,主要的实现方式如图2所示。It is true that equipment manufacturers will both [device access data platform] and [device access operation interface] as the supporting functions of [Internet of Things device] products, or provide them directly or indirectly to users to achieve a closed loop of the "Internet of Things" system; However, in this link, the [device access operation interface] that the end user comes into contact with is not only provided by the manufacturer. In the prior art, a closed loop of the "Internet of Things" system can be formed in various ways, and the main implementation is shown in FIG. 2 .
实际应用过程中,一个用户可能因为需要采购多种物理设备,这是不可避免的;但作为软件服务,却不是“越多越好”那么简单的事情了。这个问题的情况是:在单一物联网设备环境下,设备厂商可以直接提供一个设备访问操作界面给最终用户,对于单一设备使用用户,一般都能满足;甚至也包括了,用户虽然使用多个、多种设备,但设备都是同一厂家提供的,因此设备厂商提供的设备访问操作界面也可将这些设备一并纳入。来自不同厂商多种类物联网设备同时存在将使得最终用户面临复数个设备访问操作界面的情况示意图如图3所示。如果用户所处的物联网设备环境,不再是单一设备,也不只是都用一家厂商的设备,而是来自不同设备厂商的多种类设备,为了访问在同一设备安装环境下运行的多个物联网设备,用户可能需要同时接触并使用多套不同的【设备访问操作界面】,这无疑为用户的日常使用带来了极大的不便。在这种情形下,需要一个“统一”的【设备访问操作界面】就成为此类用户最为期待的目标。In the actual application process, a user may need to purchase a variety of physical devices, which is inevitable; but as a software service, it is not as simple as "the more the better". The situation of this problem is: in a single IoT device environment, the device manufacturer can directly provide a device access operation interface to the end user, which is generally satisfied for users who use a single device; even if the user uses multiple, A variety of equipment, but the equipment is provided by the same manufacturer, so the equipment access operation interface provided by the equipment manufacturer can also include these equipment together. The coexistence of multiple types of IoT devices from different manufacturers will make the end user face the situation that multiple devices access the operation interface, as shown in Figure 3. If the IoT device environment where the user is located is no longer a single device, not just using devices from one manufacturer, but multiple types of devices from different device manufacturers, in order to access multiple devices running in the same device installation environment For networked devices, users may need to access and use multiple sets of different [device access operation interfaces] at the same time, which undoubtedly brings great inconvenience to users' daily use. In this case, the need for a "unified" [device access interface] has become the most anticipated goal of such users.
为最终用户管理多厂家多种类物联网设备提供统一的设备访问操作界面,可从如下方式入手:Provide a unified device access interface for end users to manage multi-manufacturer and various types of IoT devices, which can be started in the following ways:
1、用户基于厂商提供的SDK,自研符合自身需求的界面,(抬高了用户的应用技术门槛)1. Based on the SDK provided by the manufacturer, the user develops an interface that meets their own needs, (raising the user's application technology threshold)
2、寻求专注于集成业务的集成商,进行定制服务,以协助解决(用户需要付出额外较高的资金)2. Seek an integrator focusing on the integration business to provide customized services to assist in the solution (users need to pay extra high funds)
3、寻求一个已有的、可灵活扩展的集成平台,进行相对简单的自定义集成,以达到目标(用户需付出额外较少的资金,即可达成目标)3. Seek an existing, flexible and extensible integration platform for relatively simple custom integration to achieve the goal (the user needs to pay less additional funds to achieve the goal)
上述三种方式的共同点就是“不使用厂商原本提供的设备访问操作界面”,转而通过不同的渠道定制。只有这样做,才能解决来自不同厂商的设备的访问操作如何“统一”的问题。用户自研、找集成商,本质上是相同的——需要有人来对不同厂商设备进行集成,或者自己、或者花钱找人来做,其结果都是最终用户要付出更多的成本。而一个已有的“集成平台”,将这项工作进行了技术统一,提高了开发投入的可复用性,最终用户只需要花费极少的费用——相对于自研、全部委托集成商量身定制——这无疑是对最终用户最为友好的方案。但是,如何得到灵活性强、扩展性强的物联网设备集成方式,是急需解决的问题。此外,物联网设备集成后会产生大量的数据,如何方便用户查看物联网设备集成数据,也算需要考虑的问题。The common point of the above three methods is "do not use the equipment originally provided by the manufacturer to access the operation interface", and instead customize it through different channels. Only in this way can the problem of how to "unify" the access operations of devices from different manufacturers can be solved. User self-research and integrators are essentially the same - someone needs to integrate equipment from different manufacturers, or they can do it themselves, or pay someone to do it. As a result, the end user has to pay more costs. And an existing "integration platform" unifies the technology and improves the reusability of development investment, and the end user only needs to spend a very small fee - compared with self-research and all entrusted integration consultation Customized - This is undoubtedly the most end-user friendly solution. However, how to obtain a flexible and scalable IoT device integration method is an urgent problem to be solved. In addition, a large amount of data will be generated after the integration of IoT devices. How to facilitate users to view the integration data of IoT devices is also a problem that needs to be considered.
发明内容SUMMARY OF THE INVENTION
鉴于上述的分析,本发明实施例旨在提供一种基于映射文件的物联网设备可视化集成系统及方法,用以解决现有物联网设备集成方式灵活性差、可扩展性差的问题及便于用户查看的问题。In view of the above analysis, the embodiments of the present invention aim to provide a visualization integration system and method for IoT devices based on a mapping file, so as to solve the problems of poor flexibility and poor scalability of the existing IoT device integration methods and to facilitate users to view question.
一方面,本发明提供了一种基于映射文件的物联网设备可视化集成系统,包括:In one aspect, the present invention provides a visualization integration system for IoT devices based on a mapping file, including:
云文件系统,用于存储所述物联网设备的映射文件;其中,一个映射文件指示单一物联网设备,包括:必选项,设备访问接口信息;可选项:设备访问操作界面的网页链接;The cloud file system is used to store the mapping file of the Internet of Things device; wherein, a mapping file indicates a single Internet of Things device, including: required item, device access interface information; optional item: a web page link for the device to access the operation interface;
映射文件解析系统,执行:To map the file parsing system, execute:
映射文件内容解析,用于解析出映射文件中的各项内容;Mapping file content parsing, used to parse out the contents of the mapping file;
基于所述设备访问接口信息实现的映射文件关联的设备目标数据解析,用于获取设备目标数据;The device target data analysis associated with the mapping file based on the device access interface information is used to obtain device target data;
表单系统,用于获得匹配于所述设备访问接口信息的表单模板,并将所述设备目标数据存储到所述表单模板中,形成表单数据;还将表单数据反馈至所述映射文件解析系统;a form system for obtaining a form template matching the device access interface information, storing the device target data in the form template to form form data; and feeding back the form data to the mapping file parsing system;
可视化展示界面,用于可视化展示所述表单数据,以及,所述网页链接所链接到的设备访问操作界面。The visual display interface is used to visually display the form data, and the device access operation interface to which the webpage link is linked.
在上述方案的基础上,本发明还做出了如下改进:On the basis of the above scheme, the present invention has also made the following improvements:
进一步,在所述可视化展示界面中,布局一个或多个文件展示窗口;Further, in the visual display interface, layout one or more file display windows;
每一个文件展示窗口绑定一个映射文件,文件展示窗口用于展示解析所绑定的映射文件得到的表单数据及设备访问操作界面。Each file display window is bound to a mapping file, and the file display window is used to display the form data and device access operation interface obtained by parsing the bound mapping file.
进一步,所述设备访问接口信息包括访问接口地址、安全验证信息、设备标识信息以及访问接口的数据格式;所述设备标识信息包括设备类型唯一标识和设备唯一标识。Further, the device access interface information includes an access interface address, security verification information, device identification information, and a data format of the access interface; the device identification information includes a device type unique identifier and a device unique identifier.
进一步,网页链接基于所述安全验证信息及所述设备唯一标识,链接到相应的设备访问操作界面。Further, the web page link is linked to the corresponding device access operation interface based on the security verification information and the device unique identifier.
进一步,基于所述设备访问接口信息实现的映射文件关联的设备目标数据解析,执行:Further, based on the device target data parsing associated with the mapping file implemented by the device access interface information, execute:
将解析出的数据格式发送至表单系统,以便表单系统基于所述数据格式获得匹配于所述数据格式的表单模板;sending the parsed data format to the form system, so that the form system obtains a form template matching the data format based on the data format;
根据解析出的访问接口地址、安全验证信息和设备标识信息获取物联网设备的设备目标数据,并将设备目标数据发送至表单系统。Obtain the device target data of the IoT device according to the parsed access interface address, security verification information and device identification information, and send the device target data to the form system.
进一步,所述访问接口的数据格式包括:Further, the data format of the access interface includes:
数据结构,用于描述所述物联网设备的设备目标数据所涉及的关键字段;A data structure, used to describe the key fields involved in the device target data of the IoT device;
数据结构唯一标识,用于基于所述设备类型唯一标识对所述数据结构进行唯一标识。The unique identifier of the data structure is used to uniquely identify the data structure based on the unique identifier of the device type.
进一步,所述表单系统获得匹配于所述设备访问接口信息的表单模板,包括:Further, the form system obtains a form template matching the device access interface information, including:
所述表单系统根据所述数据结构唯一标识,查询所述表单系统中是否存储有同一数据结构唯一标识的表单模板,According to the unique identifier of the data structure, the form system queries whether a form template with the unique identifier of the same data structure is stored in the form system,
若存储,则将该表单模板记录为匹配于所述数据格式的表单模板;If stored, record the form template as a form template matching the data format;
若未存储,则根据所述数据结构唯一标识创建新的表单模板,并根据所述数据结构设置所述新的表单模板中的关键字段,将设置好关键字段的表单模板记录为匹配于所述所述设备访问接口信息中数据格式的表单模板。If not stored, create a new form template according to the unique identifier of the data structure, set the key fields in the new form template according to the data structure, and record the form template with the key fields set as matching the The device accesses the form template of the data format in the interface information.
进一步,所述设备访问接口信息还包括数据状态报警信息;所述数据状态报警信息包括报警字段、以及每一报警字段的报警条件;其中,Further, the device access interface information also includes data state alarm information; the data state alarm information includes an alarm field and an alarm condition of each alarm field; wherein,
设置所述数据结构中的一个或多个关键字段作为所述报警字段;Setting one or more key fields in the data structure as the alarm field;
为每一报警字段分别设置相应的报警条件;若存储于所述表单模板中的设备目标数据符合所述报警条件,所述表单系统还生成相应的报警信息;Corresponding alarm conditions are respectively set for each alarm field; if the device target data stored in the form template meets the alarm conditions, the form system also generates corresponding alarm information;
在所述可视化展示界面中,以特殊标记的方式对所述报警信息进行可视化展示。In the visual display interface, the alarm information is visually displayed in the form of special marks.
进一步,通过执行以下操作获取设备目标数据:Further, get device target data by doing the following:
读取所述访问接口地址,链接到设备访问接口平台;Read the access interface address, and link to the device access interface platform;
使用所述安全验证信息和所述设备唯一标识生成设备接口请求;所述设备接口请求用于查询当前物联网设备的设备数据;generating a device interface request using the security verification information and the device unique identifier; the device interface request is used to query device data of the current Internet of Things device;
若设备接口请求成功,映射文件解析系统从所述设备访问接口平台中获取所述设备数据,并从所述设备数据中提取出所述设备目标数据;If the device interface request is successful, the mapping file parsing system obtains the device data from the device access interface platform, and extracts the device target data from the device data;
若设备接口请求错误、且提示设备不存在或权限无效,则标记当前物联网设备为无效状态,并中断所述设备目标数据解析;If the device interface request is wrong, and the prompt device does not exist or the permission is invalid, the current IoT device is marked as invalid, and the parsing of the device target data is interrupted;
否则,标记当前物联网设备为离线状态,并将获取到的当前物联网设备处于离线状态下的最新设备数据作为所述设备目标数据。Otherwise, the current Internet of Things device is marked as offline, and the acquired latest device data in the offline state of the current Internet of Things device is used as the device target data.
另一方面,提供了一种基于映射文件的物联网设备可视化集成方法,包括:On the other hand, a visualization integration method for IoT devices based on a mapping file is provided, including:
将映射文件存储到云文件系统中;一个映射文件指示单一物联网设备,包括:必选项,设备访问接口信息;可选项:设备访问操作界面的网页链接;Store the mapping file in the cloud file system; a mapping file indicates a single IoT device, including: required item, device access interface information; optional item: web page link for the device to access the operation interface;
当映射文件解析系统监测到云文件系统中新增映射文件时,执行:When the mapping file parsing system detects a new mapping file in the cloud file system, execute:
映射文件内容解析,以解析出映射文件中的各项内容;Content analysis of the mapping file to parse out the contents of the mapping file;
基于所述设备访问接口信息实现的映射文件关联的设备目标数据解析,以获取设备目标数据;The device target data parsing associated with the mapping file implemented based on the device access interface information to obtain device target data;
表单系统基于所述设备访问接口信息获得匹配于所述数据格式的表单模板,并将所述设备目标数据存储到所述表单模板中,形成表单数据;还将表单数据反馈至所述映射文件解析系统;The form system obtains a form template matching the data format based on the device access interface information, stores the device target data in the form template, and forms form data; and feeds back the form data to the mapping file for parsing system;
可视化展示界面对可视化展示所述表单数据;若所述映射文件中包括设备访问操作界面的网页链接,还可视化展示所述网页链接所链接到的设备访问操作界面。The visual display interface visually displays the form data; if the mapping file includes a web page link of the device access operation interface, the device access operation interface linked to the web page link is also visually displayed.
与现有技术相比,本发明至少可实现如下有益效果之一:Compared with the prior art, the present invention can achieve at least one of the following beneficial effects:
本发明实施例提供的基于映射文件的物联网设备可视化集成系统及方法,具备如下有益效果:The visualization integration system and method for IoT devices based on a mapping file provided by the embodiments of the present invention have the following beneficial effects:
1、灵活性强、可扩展性强;通过设计用于指示单一物联网设备的设备访问接口信息的映射文件,并利用映射文件解析系统,从而能够获取到物联网设备的设备目标数据,并将获取到的设备目标数据存储在表单系统中。因此,本实施例中的可视化集成系统具备较强的灵活性、可扩展性。1. Strong flexibility and scalability; by designing a mapping file for indicating the device access interface information of a single IoT device, and using the mapping file parsing system, the device target data of the IoT device can be obtained, and the device target data of the IoT device can be obtained. The acquired device target data is stored in the form system. Therefore, the visualization integration system in this embodiment has strong flexibility and scalability.
2、通过可视化展示表单,能够方便用户及时获知表单数据,同时,若映射文件中包括设备访问操作界面的网页链接,还可以可视化展示所述网页链接所链接到的设备访问操作界面,方便用户从设备访问操作界面获取到实时性更强、更全面的设备数据;2. By visually displaying the form, it is convenient for the user to know the form data in time. At the same time, if the mapping file includes the webpage link of the device access operation interface, the device access operation interface linked to the webpage link can also be displayed visually, which is convenient for the user to access the operation interface from the device. The device accesses the operation interface to obtain more real-time and more comprehensive device data;
3、方便管理映射文件;一方面,设置了统一的映射文件组织格式,便于不同的设备厂商按照约定格式生成物联网设备的映射文件;另一方面,能够以文件形式管理物联网设备,具体地,上传并存储一个映射文件,即建立与该映射文件所指示的物联网设备的连接;删除一个映射文件,即断开与该映射文件所指示的物联网设备的连接;3. It is convenient to manage mapping files; on the one hand, a unified mapping file organization format is set, so that different equipment manufacturers can generate mapping files of IoT devices according to the agreed format; on the other hand, IoT devices can be managed in the form of files, specifically , uploading and storing a mapping file, that is, establishing a connection with the IoT device indicated by the mapping file; deleting a mapping file, that is, disconnecting the connection with the IoT device indicated by the mapping file;
4、通过丰富映射文件的内容,并在映射文件解析系统与表单系统协同实现设备目标数据获取、存储的工作过程中充分利用映射文件,能够实现设备有效/无效状态的确认、设备离线/在线状态的确认、设备目标数据是否需要预警的确认,从而丰富了物联网设备可视化集成系统的功能。需要说明的是,在获取到设备目标数据后,基于设备目标数据,还可以执行设备目标数据分析处理、可视化展示等后续的工作,从而有效扩展物联网设备可视化集成系统的功能和使用场景;4. By enriching the content of the mapping file, and making full use of the mapping file in the process of obtaining and storing the target data of the device in cooperation with the mapping file parsing system and the form system, it can realize the confirmation of the valid/invalid status of the device and the offline/online status of the device The confirmation of the equipment target data and whether the early warning is required, thus enriching the functions of the IoT device visualization integration system. It should be noted that, after obtaining the device target data, based on the device target data, the follow-up work such as device target data analysis and processing and visual display can also be performed, thereby effectively expanding the functions and usage scenarios of the IoT device visualization integration system;
5、实现过程简单、高效,可以最大程度地降低物联网设备的接入成本;此外,该可视化集成系统的可定制化程度高,能够在较低成本的情况下将集成效果做到最佳。5. The implementation process is simple and efficient, which can minimize the access cost of IoT devices; in addition, the visualized integration system is highly customizable and can achieve the best integration effect at a lower cost.
本发明中,上述各技术方案之间还可以相互组合,以实现更多的优选组合方案。本发明的其他特征和优点将在随后的说明书中阐述,并且,部分优点可从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过说明书以及附图中所特别指出的内容中来实现和获得。In the present invention, the above technical solutions can also be combined with each other to achieve more preferred combination solutions. Additional features and advantages of the invention will be set forth in the description which follows, and some of the advantages may become apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by means of particularly pointed out in the description and drawings.
附图说明Description of drawings
附图仅用于示出具体实施例的目的,而并不认为是对本发明的限制,在整个附图中,相同的参考符号表示相同的部件。The drawings are for the purpose of illustrating specific embodiments only and are not to be considered limiting of the invention, and like reference numerals refer to like parts throughout the drawings.
图1为访问物联网设备的基本系统模型;Figure 1 shows the basic system model for accessing IoT devices;
图2为形成“物联网”系统闭环的主要的实现方式;Figure 2 shows the main implementation methods for forming a closed loop of the "Internet of Things" system;
图3为来自不同厂商多种类物联网设备同时存在、使得最终用户面临复数个设备访问操作界面的情况示意图;Figure 3 is a schematic diagram of a situation in which multiple types of IoT devices from different manufacturers coexist, so that the end user is faced with multiple devices accessing the operation interface;
图4为本发明实施例1提供的基于映射文件的物联网设备可视化集成系统结构示意图;4 is a schematic structural diagram of an integrated system for visualization of IoT devices based on a mapping file provided in
图5为映射文件解析系统与表单系统协同实现设备目标数据获取、存储的工作流程图;Fig. 5 is the work flow chart that the mapping file parsing system and the form system cooperate to realize the acquisition and storage of device target data;
图6为可视化展示界面的一种展示方式;Fig. 6 is a display method of the visual display interface;
图7为本发明实施例1提供的基于映射文件的物联网设备可视化集成方法流程图。FIG. 7 is a flowchart of a method for visualizing and integrating IoT devices based on a mapping file according to
具体实施方式Detailed ways
下面结合附图来具体描述本发明的优选实施例,其中,附图构成本申请一部分,并与本发明的实施例一起用于阐释本发明的原理,并非用于限定本发明的范围。The preferred embodiments of the present invention are specifically described below with reference to the accompanying drawings, wherein the accompanying drawings constitute a part of the present application, and together with the embodiments of the present invention, are used to explain the principles of the present invention, but are not used to limit the scope of the present invention.
实施例1Example 1
本发明的一个具体实施例,公开了一种基于映射文件的物联网设备可视化集成系统,可视化集成系统的结构示意图如图4所示,所述可视化集成系统包括:A specific embodiment of the present invention discloses a visualization integration system for IoT devices based on a mapping file. The schematic diagram of the structure of the visualization integration system is shown in FIG. 4 , and the visualization integration system includes:
所述云文件系统,用于存储所述物联网设备的映射文件;其中,一个映射文件指示单一物联网设备,包括:必选项,设备访问接口信息;可选项:设备访问操作界面的网页链接;The cloud file system is used to store a mapping file of the Internet of Things device; wherein, a mapping file indicates a single Internet of Things device, including: a required item, device access interface information; an optional item: a web page link for the device to access the operation interface;
映射文件解析系统,执行:To map the file parsing system, execute:
映射文件内容解析,用于解析出映射文件中的各项内容;Mapping file content parsing, used to parse out the contents of the mapping file;
基于所述设备访问接口信息实现的映射文件关联的设备目标数据解析,用于获取设备目标数据;The device target data analysis associated with the mapping file based on the device access interface information is used to obtain device target data;
表单系统,用于获得匹配于所述设备访问接口信息的表单模板,并将所述设备目标数据存储到所述表单模板中,形成表单数据;还将表单数据反馈至所述映射文件解析系统;a form system for obtaining a form template matching the device access interface information, storing the device target data in the form template to form form data; and feeding back the form data to the mapping file parsing system;
可视化展示界面,用于可视化展示所述表单数据,以及,所述网页链接所链接到的设备访问操作界面。The visual display interface is used to visually display the form data, and the device access operation interface to which the webpage link is linked.
与现有技术相比,本实施例中提供的基于映射文件的物联网设备可视化集成系统,一方面,通过设计用于指示单一物联网设备的设备访问接口信息的映射文件,并利用映射文件解析系统,从而能够获取到物联网设备的设备目标数据,并将获取到的设备目标数据存储在表单系统中。因此,本实施例中的可视化集成系统具备较强的灵活性、可扩展性;且实现过程简单、高效,因此可以最大程度地降低物联网设备的接入成本;此外,该可视化集成系统的可定制化程度高,能够在较低成本的情况下将集成效果做到最佳;另一方面,通过可视化展示表单,能够方便用户及时获知表单数据,同时,若映射文件中包括设备访问操作界面的网页链接,还可以可视化展示所述网页链接所链接到的设备访问操作界面,方便用户从设备访问操作界面获取到实时性更强、更全面的设备数据。Compared with the prior art, the visualized integration system for IoT devices based on a mapping file provided in this embodiment, on the one hand, uses a mapping file designed to indicate device access interface information of a single IoT device, and uses the mapping file to parse the system. system, so that the device target data of the IoT device can be obtained, and the obtained device target data can be stored in the form system. Therefore, the visual integration system in this embodiment has strong flexibility and scalability; and the implementation process is simple and efficient, so the access cost of IoT devices can be reduced to the greatest extent; in addition, the visual integration system can be The high degree of customization can achieve the best integration effect at a lower cost; on the other hand, through the visual display of the form, it is convenient for users to know the form data in time. The webpage link can also visually display the device access operation interface to which the webpage link is linked, so that the user can obtain more real-time and more comprehensive device data from the device access operation interface.
映射文件是实现本实施例中方案的核心,因此,首先对映射文件做如下说明:The mapping file is the core of implementing the solution in this embodiment. Therefore, the mapping file is first described as follows:
物联网设备的生产厂商想要通过“设备访问数据平台”访问物联网设备时,需要记录设备访问接口信息:厂商必须按照一个给定的网络数据接口(这里还可能会带有对应的网络协议信息),配合连接该物联网设备的参数,才能连接到相应的物联网设备。在映射文件中,厂商需将该设备访问接口信息记录在内。为了能够让不同厂商生产的不同物联网设备都能够以相对简单、统一的方式统一记录设备访问接口信息,映射文件中的设备访问接口信息也必须按照一种统一的、约定的格式进行提供(例如以JSON文本的方式进行提供),且包含以下内容:When manufacturers of IoT devices want to access IoT devices through the "device access data platform", they need to record the device access interface information: manufacturers must follow a given network data interface (which may also contain corresponding network protocol information). ), in conjunction with the parameters connected to the IoT device, can connect to the corresponding IoT device. In the mapping file, the manufacturer needs to record the device access interface information. In order to enable different IoT devices produced by different manufacturers to record the device access interface information in a relatively simple and unified way, the device access interface information in the mapping file must also be provided in a uniform and agreed format (for example, provided as JSON text) and contains the following:
1、设备访问接口信息(必选项),包括:1. Device access interface information (required), including:
(1)访问接口配置信息,包括:必选项:访问接口地址和安全验证信息;可选项:指定设备数据参数;其中,(1) Access interface configuration information, including: mandatory items: access interface address and security verification information; optional items: specified device data parameters; among them,
访问接口地址必须以较为通用且具备安全能力的网络协议进行统一(例如httpspost);通过该访问接口地址,能够链接到物联网设备的设备访问接口平台。The access interface address must be unified with a more general and security-capable network protocol (eg httpspost); through the access interface address, the device access interface platform of the IoT device can be linked.
安全验证信息用于访问设备访问接口平台,示例性地,安全验证信息可以为用户访问密钥,或者,基于安全验证信息与设备唯一标识生成访问令牌,以提升设备访问接口平台的访问效率;The security verification information is used to access the device access interface platform. Exemplarily, the security verification information can be a user access key, or an access token is generated based on the security verification information and the device unique identifier, so as to improve the access efficiency of the device access interface platform;
指定设备数据参数,用于指示需要提取的设备目标数据的参数要求,例如,采集某个时间段内的数据、采集超过某一阈值的数据等。Specify the device data parameters to indicate the parameter requirements of the device target data to be extracted, such as collecting data within a certain period of time, collecting data exceeding a certain threshold, etc.
(2)设备标识信息,包括设备类型唯一标识和设备唯一标识;其中,(2) Equipment identification information, including equipment type unique identification and equipment unique identification; wherein,
设备类型唯一标识,用于唯一标识当前物联网设备的所属设备类型;Device type unique identifier, used to uniquely identify the device type of the current IoT device;
设备唯一标识,用于唯一标识当前设备类型下的物联网设备的设备本身的标识信息;The device unique identifier is used to uniquely identify the identification information of the device itself of the IoT device under the current device type;
设备类型唯一标识和设备唯一标识均由厂商进行唯一设置,通过设备类型唯一标识和设备唯一标识,能够将一个物联网设备与其他物联网设备进行区分。The device type unique identifier and the device unique identifier are both uniquely set by the manufacturer. Through the device type unique identifier and the device unique identifier, an IoT device can be distinguished from other IoT devices.
(3)访问接口的数据格式,包括:(3) The data format of the access interface, including:
数据结构,用于描述所述物联网设备的设备目标数据所涉及的关键字段;A data structure, used to describe the key fields involved in the device target data of the IoT device;
数据结构唯一标识,用于基于所述设备类型唯一标识对所述数据结构进行唯一标识。The unique identifier of the data structure is used to uniquely identify the data structure based on the unique identifier of the device type.
此外,为进一步扩展可视化集成系统的功能,设备访问接口信息还可以包括以下内容:In addition, to further expand the functions of the visual integration system, the device access interface information can also include the following:
(4)数据状态报警信息;所述数据状态报警信息包括报警字段、以及每一报警字段的报警条件;其中,(4) Data state alarm information; the data state alarm information includes an alarm field and an alarm condition of each alarm field; wherein,
设置所述数据结构中的一个或多个关键字段作为所述报警字段;Setting one or more key fields in the data structure as the alarm field;
为每一报警字段分别设置相应的报警条件;Set corresponding alarm conditions for each alarm field;
(5)访问周期;(5) access cycle;
映射文件解析系统根据所述访问周期,周期性地解析所述映射文件;The mapping file parsing system periodically parses the mapping file according to the access cycle;
2、设备访问操作界面的网页链接;2. The web link of the device to access the operation interface;
在计算机领域中,通过网页浏览器,可在网页上实现复杂功能的Web应用程序,这种应用程序最大的优点是能够最大兼容运行在各种操作系统环境的电脑、手机中。如果硬件厂商为该设备研发制作了这样的基于Web应用程序的访问操作“界面”,那么这部分数据以一个网页链接的方式记录在映射文件中,当存储映射文件的云文件系统在线展示映射文件时,就可以直接通过该链接引用此操作“界面”,直接向用户提供该设备的管理访问功能。“界面”的网页链接,同时还必须配合设备的标记参数、包括但不限于用户访问密钥等安全验证信息在内的其他数据。一般地,网页链接基于所述安全验证信息及所述设备唯一标识,链接到相应的设备访问操作界面。In the computer field, through a web browser, a web application program with complex functions can be implemented on a web page. If the hardware manufacturer develops such a web application-based access operation "interface" for the device, then this part of the data is recorded in the mapping file in the form of a web page link. When the cloud file system that stores the mapping file displays the mapping file online , you can directly refer to this operation "interface" through this link to directly provide the user with the management access function of the device. The web page link of the "interface" must also be matched with the marking parameters of the device and other data including but not limited to security verification information such as user access keys. Generally, the web page link is linked to the corresponding device access operation interface based on the security verification information and the device unique identifier.
由于不是所有的硬件厂商为其设备都提供基Web应用程序的“界面”,因此在映射文件中,该部分数据是可选的。如果在一个映射文件中未记录此信息,该映射文件存储于云文件系统时,不支持在线展示内容的功能。Since not all hardware manufacturers provide an "interface" to the base Web application for their devices, this part of the data is optional in the mapping file. If this information is not recorded in a mapping file, the function of displaying content online is not supported when the mapping file is stored in the cloud file system.
上述设备访问接口信息是硬件厂商为其设备创建对应的“映射文件”所要提供的信息。设备访问接口信息中的各项内容将通过一些比较简单的结构方式(例如JSON格式的文本文件)进行组织,以方便硬件厂商填写。即,映射文件中的各项内容按照约定格式进行组织。The above-mentioned device access interface information is the information to be provided by the hardware manufacturer to create a corresponding "mapping file" for its device. The contents in the device access interface information will be organized by some relatively simple structures (eg, text files in JSON format), so as to be convenient for hardware manufacturers to fill in. That is, the content in the mapping file is organized according to the agreed format.
这里,还对云文件系统中存储的映射文件做如下说明:Here, the mapping files stored in the cloud file system are also described as follows:
一个物联网设备的映射文件,作为计算机文件,在整体系统中,需要一个文件系统来对其进行文件级别的管理。由于物联网设备连接必须通过互联网才能实现其功能,因此,这个文件系统也必须是一个云文件系统。在云文件系统中,一个设备映射文件代表一个实际的物理硬件设备——最终用户只要向云盘中上传存储一个有效的设备映射文件,就能在云文件系统中对接并管理访问该硬件设备(除非映射文件对应的设备已经离线或者映射文件本身数据不正确)。The mapping file of an IoT device, as a computer file, needs a file system to manage it at the file level in the overall system. Since IoT devices must be connected through the Internet to achieve their functions, this file system must also be a cloud file system. In the cloud file system, a device mapping file represents an actual physical hardware device - as long as the end user uploads and stores a valid device mapping file to the cloud disk, he can connect and manage access to the hardware device in the cloud file system ( Unless the device corresponding to the mapping file is offline or the mapping file itself has incorrect data).
作为云文件系统,该系统具备基础的文件管理功能。同时,也要支持文件在线展示功能:即不需要下载,直接在云文件系统中打开。在本方法中,管理平台中集成对接的硬件设备,就如同管理文件系统中的各个文件一样:As a cloud file system, the system has basic file management functions. At the same time, it also supports the online display function of files: that is, it does not need to be downloaded, and can be opened directly in the cloud file system. In this method, the integrated and docked hardware devices in the management platform are the same as the management of each file in the file system:
上传并存储一个映射文件,即建立与该映射文件所指示的物联网设备的连接;Upload and store a mapping file, that is, establish a connection with the IoT device indicated by the mapping file;
删除一个映射文件,即断开与该映射文件所指示的物联网设备的连接;Deleting a mapping file means disconnecting the IoT device indicated by the mapping file;
打开一个映射文件,开启一个设备的控制台并进行实时操控(需要映射文件中含有相应界面)。Open a mapping file, open the console of a device and perform real-time control (requires the corresponding interface in the mapping file).
文件在线展示功能可以用来展示映射文件以外的其他文件,但在本方法中并非重点;本实施例的重点是要求可以将解析映射文件的结果进行在线展示,即本实施例中可视化展示界面的功能。若映射文件中还包括网页链接,还可以对网页链接所链接到的设备访问操作界面进行可视化展示——这要求一个映射到某一设备的映射文件中,记录了有效的Web应用程序链接,且具备真实在线运行设备的标识和安全鉴定信息。The file online display function can be used to display other files other than the mapping file, but it is not the focus of this method; the focus of this embodiment is that the result of parsing the mapping file can be displayed online, that is, the visual display interface in this embodiment is displayed. Function. If the mapping file also includes web page links, it is also possible to visually display the device access operation interface linked to the web page link—this requires a mapping file mapped to a certain device, recording valid web application links, and It has the identification and safety identification information of the real online running equipment.
在本实施例中,当映射文件解析系统监测到云文件系统中新增一个映射文件时,映射文件解析系统即开始对其进行解析;当映射文件解析系统监测到云文件系统中存储的映射文件被删除时,停止执行被删除的映射文件的解析;具体地,映射文件解析系统通过执行以下操作解析所述映射文件:In this embodiment, when the mapping file parsing system detects that a new mapping file is added to the cloud file system, the mapping file parsing system starts parsing it; when the mapping file parsing system monitors the mapping file stored in the cloud file system When deleted, the parsing of the deleted mapping file is stopped; specifically, the mapping file parsing system parses the mapping file by performing the following operations:
1、映射文件内容解析,用于解析出映射文件中的各项内容;具体地,1. Content analysis of the mapping file, which is used to parse out the contents of the mapping file; specifically,
所述映射文件解析系统通过执行以下操作解析出所述映射文件中的各项内容:The mapping file parsing system parses out the contents of the mapping file by performing the following operations:
按照所述约定格式对所述映射文件进行格式验证;Perform format verification on the mapping file according to the agreed format;
若格式验证通过,则解析出所述映射文件中的各项内容;If the format verification is passed, the contents in the mapping file are parsed;
否则,提示报错,并中止所述映射文件的解析。Otherwise, an error is reported, and the parsing of the mapping file is aborted.
2、基于所述设备访问接口信息实现的映射文件关联的设备目标数据解析,用于获取设备目标数据;包括:2. The device target data analysis associated with the mapping file implemented based on the device access interface information is used to obtain the device target data; including:
(1)将解析出的数据格式发送至表单系统,以供表单系统获得匹配于所述数据格式的表单模板;该过程比较简单,不再做过多说明。(1) Sending the parsed data format to the form system, so that the form system can obtain a form template matching the data format; this process is relatively simple and will not be described further.
(2)根据解析出的访问接口配置信息和设备标识信息获取所述物联网设备的设备目标数据,并将所述设备目标数据发送至表单系统;具体地,(2) Obtain the device target data of the IoT device according to the parsed access interface configuration information and device identification information, and send the device target data to the form system; specifically,
通过执行以下操作获取设备目标数据:Get device target data by doing the following:
读取所述访问接口地址,链接到设备访问接口平台;Read the access interface address, and link to the device access interface platform;
使用所述安全验证信息和所述设备唯一标识生成设备接口请求;所述设备接口请求用于查询当前物联网设备的设备数据;generating a device interface request using the security verification information and the device unique identifier; the device interface request is used to query device data of the current Internet of Things device;
若设备接口请求成功,映射文件解析系统从所述设备访问接口平台中获取所述设备数据,并从所述设备数据中提取出所述设备目标数据。If the device interface request is successful, the mapping file parsing system acquires the device data from the device access interface platform, and extracts the device target data from the device data.
若设备接口请求错误、且提示设备不存在或权限无效,则标记当前物联网设备为无效状态,并中断设备目标数据解析;If the device interface request is wrong, and it prompts that the device does not exist or the permission is invalid, the current IoT device will be marked as invalid, and the device target data parsing will be interrupted;
否则,标记当前物联网设备为离线状态,并将获取到的当前物联网设备处于离线状态下的最新设备数据作为所述设备目标数据。Otherwise, the current Internet of Things device is marked as offline, and the acquired latest device data in the offline state of the current Internet of Things device is used as the device target data.
此外,若所述访问接口配置信息中不包括指定设备数据参数,直接将所述设备数据中的最新数据提取为设备目标数据;否则,提取满足所述指定设备数据参数要求的设备数据作为所述设备目标数据。In addition, if the access interface configuration information does not include the specified device data parameters, directly extract the latest data in the device data as device target data; otherwise, extract the device data that meets the specified device data parameters as the device data Device target data.
此外,为减少不必要的程序执行,在执行映射文件关联的设备目标数据解析时,可以先基于解析出的设备标识信息判断所述物联网设备是否为有效状态,若是,则将解析出的数据格式发送至表单系统;否则,中断设备目标数据解析。In addition, in order to reduce unnecessary program execution, when performing the parsing of the device target data associated with the mapping file, it is possible to first determine whether the IoT device is in a valid state based on the parsed device identification information. The format is sent to the form system; otherwise, parsing of the device target data is interrupted.
此外,所述表单系统将所述设备目标数据存储到所述表单模板后,还向映射文件解析系统反馈完成设备目标数据存储;映射文件解析系统接收到表单系统反馈的完成设备目标数据存储后,判断是否有下一个访问周期,若有,则在到达下一个访问周期时,再次执行映射文件关联的设备目标数据解析;否则,不再执行当前映射文件关联的设备目标数据解析。In addition, after the form system stores the device target data in the form template, it also feeds back to the mapping file parsing system to complete the storage of the device target data; It is judged whether there is a next access cycle, and if so, when the next access cycle is reached, the device target data analysis associated with the mapping file is performed again; otherwise, the device target data analysis associated with the current mapping file is no longer performed.
下面,对本实施例中的表单系统进行如下介绍:Below, the form system in this embodiment is introduced as follows:
表单是一种可以先设计表单字段的模版,然后根据该表单模版形成实例数据,形成不确定数据格式的表格的系统。表单系统本身是一个比较普遍常见的软件系统,该系统可以很好的支撑多种多样的数据——尤其是在集成物联网设备的过程中,面对各种各样不同设备,需要存储不同数据结构的设备数据时,非常有必要。表单系统中的自定义表单需要支持常见的设备状态信息的数据类型(字符串、整数、浮点数、枚举值、嵌入图片、嵌入声音文件等等),并且支持格式匹配查找表单模版(用于对应不同设备数据的接口请求、存储),以及特定表单模版下,表单实例数据(表格)的数据增删改查,配合映射文件解析系统中设备访问接口解析功能,实时获取并记录各个设备的状态信息。A form is a system that can first design a form field template, and then form instance data according to the form template to form a form with an uncertain data format. The form system itself is a relatively common software system, which can well support a variety of data - especially in the process of integrating IoT devices, in the face of various devices, different data needs to be stored Very necessary when structuring device data. Custom forms in the form system need to support common data types of device status information (strings, integers, floating-point numbers, enumeration values, embedded pictures, embedded sound files, etc.), and support format matching to find form templates (for Corresponding to the interface request and storage of different device data), as well as the data addition, deletion and modification of form instance data (tables) under a specific form template, in conjunction with the device access interface parsing function in the mapping file parsing system, to obtain and record the status information of each device in real time .
在本实施例中,表单系统主要执行两部分操作:In this embodiment, the form system mainly performs two operations:
1、接收到映射文件解析系统发送的数据格式后,获得匹配于所述数据格式的表单模板;具体地,1. After receiving the data format sent by the mapping file parsing system, obtain a form template matching the data format; specifically,
所述表单系统根据所述数据结构唯一标识,查询所述表单系统中是否存储有同一数据结构唯一标识的表单模板,According to the unique identifier of the data structure, the form system queries whether a form template with the unique identifier of the same data structure is stored in the form system,
若存储,则将该表单模板记录为匹配于所述数据格式的表单模板;若未存储,则根据所述数据结构唯一标识创建新的表单模板,并根据所述数据结构设置所述新的表单模板中的关键字段,将设置好关键字段的表单模板记录为匹配于所述数据格式的表单模板。If stored, the form template is recorded as a form template matching the data format; if not, a new form template is created according to the unique identifier of the data structure, and the new form is set according to the data structure For the key fields in the template, record the form template with the key fields set as the form template matching the data format.
2、接收到映射文件解析系统发送的设备目标数据后,将所述设备目标数据存储到所述表单模板中;2. After receiving the device target data sent by the mapping file parsing system, store the device target data in the form template;
若所述设备访问接口信息中还包括数据状态报警信息,且存储于所述表单模板中的设备目标数据符合所述报警条件,所述表单系统还生成相应的报警信息。If the device access interface information further includes data status alarm information, and the device target data stored in the form template meets the alarm condition, the form system also generates corresponding alarm information.
在本实施例中,映射文件解析系统与表单系统协同实现设备目标数据获取、存储的工作流程图如图5所示,该流程图详细描述了映射文件解析系统根据设备访问接口信息,获取一条设备目标数据并存储到表单系统的整个过程。接下来,对图5中的工作流程图进行文字说明:In this embodiment, the working flow chart of the mapping file parsing system and the form system to achieve device target data acquisition and storage is shown in Figure 5. The entire process of target data and storage to the form system. Next, a textual description of the work flow chart in Figure 5:
步骤5-1:到达访问周期循环入口,映射文件解析系统判断所述物联网设备是否为有效状态,(需要说明的是,默认物联网设备处于有效状态;但在映射文件关联的设备目标数据解析过程中可能会将物联网设备标记为无效状态);Step 5-1: Reaching the access cycle entry, the mapping file parsing system determines whether the IoT device is in a valid state, (it should be noted that the default IoT device is in a valid state; but in the parsing of the device target data associated with the mapping file IoT devices may be marked as invalid during the process);
若是,则继续执行所述映射文件解析;执行步骤5-2;If yes, continue to perform the mapping file parsing; perform step 5-2;
否则,中断所述映射文件解析。Otherwise, the map file parsing is interrupted.
步骤5-2:映射文件解析系统将解析出的数据格式发送至表单系统;Step 5-2: The mapping file parsing system sends the parsed data format to the form system;
步骤5-3:表单系统基于获得匹配于所述数据格式的表单模板;具体地,Step 5-3: the form system is based on obtaining a form template matching the data format; specifically,
表单系统根据数据结构唯一标识,查询所述表单系统中是否存储有同一数据结构唯一标识的表单模板,According to the unique identifier of the data structure, the form system queries whether the form template with the unique identifier of the same data structure is stored in the form system,
若存储,则将该表单模板记录为匹配于所述数据格式的表单模板;If stored, record the form template as a form template matching the data format;
若未存储,则根据所述数据结构唯一标识创建新的表单模板;并根据所述数据结构设置所述新的表单模板中的关键字段,将设置好关键字段的表单模板记录为匹配于所述数据格式的表单模板;If not stored, create a new form template according to the unique identifier of the data structure; and set the key fields in the new form template according to the data structure, and record the form template with the key fields set as matching in the form template of the data format;
同时,若设备访问接口信息中包括数据状态报警信息,还根据数据状态报警信息设置表单模板中的一个或多个关键字段为报警字段;At the same time, if the device access interface information includes data status alarm information, one or more key fields in the form template are also set as alarm fields according to the data status alarm information;
获得表单模板的完整信息后,将该表单模板记录为该物联网设备对应的表单模板;并向映射文件解析系统反馈完成设备数据格式的处理;After obtaining the complete information of the form template, record the form template as the form template corresponding to the IoT device; and report back to the mapping file parsing system to complete the processing of the device data format;
步骤5-4:映射文件解析系统接收到反馈完成设备数据格式的处理后,开始获取设备目标数据;具体地,Step 5-4: After the mapping file parsing system receives the feedback and completes the processing of the device data format, it starts to obtain the device target data; specifically,
读取所述访问接口地址,链接到设备访问接口平台;Read the access interface address, and link to the device access interface platform;
使用所述安全验证信息和所述设备唯一标识生成设备接口请求;所述设备接口请求用于查询当前物联网设备的设备数据;generating a device interface request using the security verification information and the device unique identifier; the device interface request is used to query device data of the current Internet of Things device;
若设备接口请求成功,映射文件解析系统从所述设备访问接口平台中获取所述设备数据,并从所述设备数据中提取出所述设备目标数据;If the device interface request is successful, the mapping file parsing system obtains the device data from the device access interface platform, and extracts the device target data from the device data;
若设备接口请求错误、且提示设备不存在或权限无效,则标记当前物联网设备为无效状态,并中断映射文件解析;If the device interface request is wrong, and it prompts that the device does not exist or the permission is invalid, the current IoT device will be marked as invalid, and the parsing of the mapping file will be interrupted;
否则,标记当前物联网设备为离线状态,并将获取到的当前物联网设备处于离线状态下的最新设备数据作为所述设备目标数据;Otherwise, mark the current IoT device as offline, and use the latest device data obtained when the current IoT device is offline as the device target data;
步骤5-5:完成设备目标数据的获取后,将设备目标数据存储到该物联网设备对应的表单模板中;Step 5-5: After completing the acquisition of the device target data, store the device target data in the form template corresponding to the IoT device;
在表单模板中创建新的表单示例,将设备目标数据(某种情况下是设备最新状态,即“所述设备数据中的最新数据”)记录在创建好的表单实例中;Create a new form instance in the form template, and record the device target data (in some cases, the latest state of the device, that is, "the latest data in the device data") in the created form instance;
若表单某字段是报警字段、且表单实例中的该字段数据发生报警,则生成一条报警信息,然后完成记录,创建对应的返回数据;If a field of the form is an alarm field, and an alarm occurs in the field data in the form instance, an alarm message will be generated, then the record will be completed, and the corresponding return data will be created;
否则,直接完成记录,创建对应的返回数据;Otherwise, complete the record directly and create the corresponding return data;
步骤5-6:将返回数据反馈给映射文件解析系统,以完成存储数据到表单的闭环;Step 5-6: Feed back the returned data to the mapping file parsing system to complete the closed loop of storing data to the form;
同时,或返回数据中包含报警信息,映射文件解析系统还可通过消息系统派发报警信息;At the same time, or the returned data contains alarm information, the mapping file parsing system can also distribute alarm information through the message system;
步骤5-7:映射文件解析系统还判断是否有下一个访问周期,Step 5-7: The mapping file parsing system also determines whether there is a next access cycle,
若有,到达访问周期循环出口,等待下一个访问周期的到来;下个访问周期到来后,跳转到步骤5-1;If so, reach the access cycle exit and wait for the arrival of the next access cycle; after the next access cycle arrives, jump to step 5-1;
若否,访问接口数据处理完成。If not, the access interface data processing is completed.
此外,需要说明的是,执行完步骤5-4之后,物联网设备在有效的情况下,可能处于在线或离线状态,还可以将当前设备目标数据对应的设备在线或离线状态同步到表单模板中,从而得到更加清晰、完整的设备数据信息。因此,通过充分利用映射文件解析系统与表单系统的交互过程,可以获得很多有价值的信息。此外,在获取到设备目标数据后,基于设备目标数据,还可以执行设备目标数据分析处理、可视化展示等后续的工作,从而有效扩展物联网设备可视化集成系统的功能和使用场景。In addition, it should be noted that after performing steps 5-4, the IoT device may be in an online or offline state when it is valid, and the online or offline state of the device corresponding to the current device target data can also be synchronized to the form template. , so as to get clearer and more complete device data information. Therefore, by making full use of the interaction process between the mapping file parsing system and the form system, a lot of valuable information can be obtained. In addition, after acquiring the device target data, based on the device target data, it can also perform subsequent work such as device target data analysis and processing, visual display, etc., so as to effectively expand the functions and usage scenarios of the IoT device visualization integration system.
此外,在本实施例的可视化展示界面中,可以布局一个或多个文件展示窗口;每一个文件展示窗口绑定一个映射文件,文件展示窗口用于展示解析所绑定的映射文件得到的表单数据及设备访问操作界面。In addition, in the visual display interface of this embodiment, one or more file display windows can be laid out; each file display window is bound with a mapping file, and the file display window is used to display the form data obtained by parsing the bound mapping file and device access interface.
该可视化展示界面可以实现多个文件展示窗口的拼接组合,从而来满足某种需要的系统界面。如图6所示的大屏布局功能,即可视化展示界面的一种特殊的展示方式。在所述可视化展示界面中,以特殊标记的方式对所述报警信息进行可视化展示。特殊标记如颜色、亮度、字体的差异等。The visual display interface can realize the splicing and combination of multiple file display windows, so as to satisfy a certain system interface. The large-screen layout function shown in Figure 6 is a special display method of the visual display interface. In the visual display interface, the alarm information is visually displayed in the form of special marks. Special marks such as differences in color, brightness, font, etc.
实施例2Example 2
本发明的实施例2,还公开了一种基于映射文件的物联网设备可视化集成方法,流程如如图7所示,包括:Embodiment 2 of the present invention also discloses a visualization integration method for IoT devices based on a mapping file. The process is shown in FIG. 7 , including:
步骤S1:将映射文件存储到云文件系统中;一个映射文件指示单一物联网设备,包括:必选项,设备访问接口信息;可选项:设备访问操作界面的网页链接;Step S1: store the mapping file in the cloud file system; a mapping file indicates a single IoT device, including: a required item, device access interface information; optional item: a web page link for the device to access the operation interface;
步骤S2:当映射文件解析系统监测到云文件系统中新增映射文件时,执行:Step S2: When the mapping file parsing system detects that a new mapping file is added to the cloud file system, execute:
映射文件内容解析,以解析出映射文件中的各项内容;Content analysis of the mapping file to parse out the contents of the mapping file;
基于所述设备访问接口信息实现的映射文件关联的设备目标数据解析,以获取设备目标数据;The device target data parsing associated with the mapping file implemented based on the device access interface information to obtain device target data;
步骤S3:表单系统基于所述设备访问接口信息获得匹配于所述数据格式的表单模板,并将所述设备目标数据存储到所述表单模板中,形成表单数据;还将表单数据反馈至所述映射文件解析系统;Step S3: The form system obtains a form template matching the data format based on the device access interface information, stores the device target data in the form template, and forms form data; and feeds back the form data to the form template. Map file parsing system;
步骤S4:可视化展示界面对可视化展示所述表单数据;若所述映射文件中包括设备访问操作界面的网页链接,还可视化展示所述网页链接所链接到的设备访问操作界面。Step S4: the form data is visually displayed on the visual display interface; if the mapping file includes a web page link of the device access operation interface, the device access operation interface linked to the web page link is also visually displayed.
本发明方法实施例的具体实施过程参见上述系统实施例即可,本实施例在此不再赘述。For the specific implementation process of the method embodiment of the present invention, reference may be made to the foregoing system embodiment, and details are not described herein again in this embodiment.
由于本实施例与上述系统实施例原理相同,所以本方法也具有上述系统实施例相应的技术效果。Since the principle of this embodiment is the same as that of the above-mentioned system embodiment, this method also has the corresponding technical effect of the above-mentioned system embodiment.
本领域技术人员可以理解,实现上述实施例方案的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读存储介质中。其中,所述计算机可读存储介质为磁盘、光盘、只读存储记忆体或随机存储记忆体等。Those skilled in the art can understand that all or part of the procedures for implementing the solutions in the above embodiments can be completed by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. Wherein, the computer-readable storage medium is a magnetic disk, an optical disk, a read-only storage memory, or a random-access storage memory, or the like.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited to this. Substitutions should be covered within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111612789.2A CN114265823B (en) | 2021-12-27 | 2021-12-27 | Internet of things equipment visualization integration system and method based on mapping file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111612789.2A CN114265823B (en) | 2021-12-27 | 2021-12-27 | Internet of things equipment visualization integration system and method based on mapping file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114265823A true CN114265823A (en) | 2022-04-01 |
CN114265823B CN114265823B (en) | 2022-08-02 |
Family
ID=80830425
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111612789.2A Active CN114265823B (en) | 2021-12-27 | 2021-12-27 | Internet of things equipment visualization integration system and method based on mapping file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114265823B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119094630A (en) * | 2024-10-28 | 2024-12-06 | 杭州浩联智能科技有限公司 | Visual communication data analysis method, device, equipment and storage medium |
Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103312791A (en) * | 2013-05-24 | 2013-09-18 | 上海和伍新材料科技有限公司 | Internet of things heterogeneous data storage method and system |
CN103399735A (en) * | 2013-07-12 | 2013-11-20 | 浙江吉利汽车研究院有限公司杭州分公司 | Method for developing intermediate layer of remote function call interface |
CN104378236A (en) * | 2014-11-24 | 2015-02-25 | 青岛海尔软件有限公司 | Internet of things device management platform and method |
CN104932904A (en) * | 2015-07-14 | 2015-09-23 | 福建农林大学 | Configurable database programming mode aiming at intelligent smart home |
CN105955208A (en) * | 2016-04-15 | 2016-09-21 | 青岛克路德机器人有限公司 | Network robot data control system based on cloud platform |
CN106506213A (en) * | 2016-11-09 | 2017-03-15 | 深圳云联讯数据科技有限公司 | A kind of internet of things equipment visualization interface display packing and system |
CN109151561A (en) * | 2018-09-13 | 2019-01-04 | 青岛海信智慧家居系统股份有限公司 | The operation control interface creation method and relevant device of smart home system equipment |
CN109150672A (en) * | 2017-06-13 | 2019-01-04 | 美的智慧家居科技有限公司 | Configuration method, device, system and the machine readable storage medium of smart home |
CN109327551A (en) * | 2018-12-04 | 2019-02-12 | 浩云科技股份有限公司 | By the method and device of internet of things equipment access platform of internet of things, server |
CN109547272A (en) * | 2019-01-09 | 2019-03-29 | 西安交通大学 | A kind of numerical control device novel maintenance system internet interface |
CN109587242A (en) * | 2018-12-05 | 2019-04-05 | 华润置地控股有限公司 | Platform of internet of things system and its cloud platform and local terminal |
CN110347732A (en) * | 2019-05-20 | 2019-10-18 | 中国平安人寿保险股份有限公司 | A kind of data transfer device and device |
CN110929489A (en) * | 2019-11-18 | 2020-03-27 | 有时数联科技(北京)有限公司 | Form generation and form data processing method and system |
CN112307109A (en) * | 2020-10-28 | 2021-02-02 | 北京锐安科技有限公司 | Visual chart generation method and device, electronic equipment and storage medium |
CN112379653A (en) * | 2020-12-01 | 2021-02-19 | 国能信控互联技术有限公司 | Smart power plant management and control system based on micro-service architecture |
CN112527250A (en) * | 2020-11-18 | 2021-03-19 | 温州市易能软件有限公司 | Software development platform based on visualization |
US20210124180A1 (en) * | 2019-10-25 | 2021-04-29 | Microsoft Technology Licensing, Llc | Dynamically changing a fiducial marker for iot device identification |
CN113760292A (en) * | 2021-01-04 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method and device for developing application program, electronic equipment and storage medium |
-
2021
- 2021-12-27 CN CN202111612789.2A patent/CN114265823B/en active Active
Patent Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103312791A (en) * | 2013-05-24 | 2013-09-18 | 上海和伍新材料科技有限公司 | Internet of things heterogeneous data storage method and system |
CN103399735A (en) * | 2013-07-12 | 2013-11-20 | 浙江吉利汽车研究院有限公司杭州分公司 | Method for developing intermediate layer of remote function call interface |
CN104378236A (en) * | 2014-11-24 | 2015-02-25 | 青岛海尔软件有限公司 | Internet of things device management platform and method |
CN104932904A (en) * | 2015-07-14 | 2015-09-23 | 福建农林大学 | Configurable database programming mode aiming at intelligent smart home |
CN105955208A (en) * | 2016-04-15 | 2016-09-21 | 青岛克路德机器人有限公司 | Network robot data control system based on cloud platform |
CN106506213A (en) * | 2016-11-09 | 2017-03-15 | 深圳云联讯数据科技有限公司 | A kind of internet of things equipment visualization interface display packing and system |
CN109150672A (en) * | 2017-06-13 | 2019-01-04 | 美的智慧家居科技有限公司 | Configuration method, device, system and the machine readable storage medium of smart home |
CN109151561A (en) * | 2018-09-13 | 2019-01-04 | 青岛海信智慧家居系统股份有限公司 | The operation control interface creation method and relevant device of smart home system equipment |
CN109327551A (en) * | 2018-12-04 | 2019-02-12 | 浩云科技股份有限公司 | By the method and device of internet of things equipment access platform of internet of things, server |
CN109587242A (en) * | 2018-12-05 | 2019-04-05 | 华润置地控股有限公司 | Platform of internet of things system and its cloud platform and local terminal |
CN109547272A (en) * | 2019-01-09 | 2019-03-29 | 西安交通大学 | A kind of numerical control device novel maintenance system internet interface |
CN110347732A (en) * | 2019-05-20 | 2019-10-18 | 中国平安人寿保险股份有限公司 | A kind of data transfer device and device |
US20210124180A1 (en) * | 2019-10-25 | 2021-04-29 | Microsoft Technology Licensing, Llc | Dynamically changing a fiducial marker for iot device identification |
CN110929489A (en) * | 2019-11-18 | 2020-03-27 | 有时数联科技(北京)有限公司 | Form generation and form data processing method and system |
CN112307109A (en) * | 2020-10-28 | 2021-02-02 | 北京锐安科技有限公司 | Visual chart generation method and device, electronic equipment and storage medium |
CN112527250A (en) * | 2020-11-18 | 2021-03-19 | 温州市易能软件有限公司 | Software development platform based on visualization |
CN112379653A (en) * | 2020-12-01 | 2021-02-19 | 国能信控互联技术有限公司 | Smart power plant management and control system based on micro-service architecture |
CN113760292A (en) * | 2021-01-04 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method and device for developing application program, electronic equipment and storage medium |
Non-Patent Citations (5)
Title |
---|
P.P. RAY: "survey on Internet of Things architectures", 《 SURVEY ON INTERNET OF THINGS ARCHITECTURES》 * |
SHUTANG等: "A review of building information modeling (BIM) and the internet of things (IoT) devices integration: Present status and future trends", 《AUTOMATION IN CONSTRUCTION》 * |
VINAYA S JADHAV等: "Mapping for IoT Devices", 《INTERNATIONAL JOURNAL OF ADVANCED STUDIES OF SCIENTIFIC RESEARCH》 * |
张婷婷: "面向物联网系统M2M云平台的设计与实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 * |
王亭: "基于BIM与IoT数据的实时交互方法研究", 《中国优秀硕士学位论文全文数据库 (工程科技Ⅱ辑)》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119094630A (en) * | 2024-10-28 | 2024-12-06 | 杭州浩联智能科技有限公司 | Visual communication data analysis method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114265823B (en) | 2022-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115017182B (en) | Visual data analysis method and device | |
US20210405629A1 (en) | System and method for interoperable communication of an automation system component with multiple information sources | |
CN112688865B (en) | Design method of OPC UA gateway for graphical online modeling | |
US7275096B2 (en) | Computerized system and method for web enabling and/or web management of embedded applications | |
CN101847100B (en) | Method for expanding software application and device | |
CN102395950B (en) | With the communication of data-storage system | |
CN111694561B (en) | Interface management method, device, equipment and storage medium | |
US8060863B2 (en) | Conformance control module | |
CN110245116A (en) | Reconciliation data processing method, device, equipment and computer-readable storage medium | |
US20060123393A1 (en) | User interface for network application | |
US8707171B2 (en) | Service registry policy editing user interface | |
EP2144162A1 (en) | Image forming apparatus, information processing method, and image forming system | |
CN110321283A (en) | Interface testing case generation method, device, computer installation and storage medium | |
CN113590097B (en) | API interface generation method and device, electronic equipment and storage medium | |
CN114265823B (en) | Internet of things equipment visualization integration system and method based on mapping file | |
CN114281787B (en) | An IoT device integration system based on mapping files | |
US12367014B2 (en) | Event consumption for high-level programing language platform | |
CN114265824B (en) | A method for integrating IoT devices based on mapping files | |
CN117035664A (en) | Template-based trust approval standardized processing method, device, equipment and medium | |
CN116775116A (en) | Non-invasive interface document automatic generation method, device, equipment and medium | |
JP2011065367A (en) | Device, program and method for managing workflow | |
CN114073859A (en) | Game self-service realization method and device | |
Smythe | Initial Investigations into Interoperability Testing of Web Services from their Specification Using the Unified Modelling | |
US12124890B2 (en) | Event provisioning for high-level programing language platform | |
CN113568676B (en) | General method for rapidly releasing internet service on commercial platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20241224 Address after: No. 90, West Third Ring Middle Road, Fengtai District, Beijing, 100000 Patentee after: Xia Yu Country or region after: China Address before: Room 405, 4th floor, building 3, No. 18, ziyue Road, Chaoyang District, Beijing 100102 Patentee before: Zhonghe space (Beijing) Technology Co.,Ltd. Country or region before: China |