CN103186582A - Device description file-based data analysis method - Google Patents

Device description file-based data analysis method Download PDF

Info

Publication number
CN103186582A
CN103186582A CN 201110451502 CN201110451502A CN103186582A CN 103186582 A CN103186582 A CN 103186582A CN 201110451502 CN201110451502 CN 201110451502 CN 201110451502 A CN201110451502 A CN 201110451502A CN 103186582 A CN103186582 A CN 103186582A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
device
description file
device description
data analysis
equipment
Prior art date
Application number
CN 201110451502
Other languages
Chinese (zh)
Inventor
王金龙
于忠清
张锟
辛宪亮
富饶
翟伟伟
崔九梅
Original Assignee
青岛海尔软件有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date

Links

Abstract

The invention relates to a data analysis method after data transmission among Internet of Things devices, and particularly relates to an XML (eXtensible Markup Language) technology-based method on the aspect of analysis of the data among the general Internet of Things devices. The device description file-based data analysis method comprises the following steps of: (A), establishing an equipment description file, namely, asking an equipment command and an analysis rule from an equipment producer by specialized equipment description file writing technicists, then carrying out XML writing according to the specification requirement of an equipment description file; and (B), using the equipment description file, wherein the step B comprises the following two processes of B1, acquiring an command and sending the command to equipment, and B2, analyzing a command packet from the equipment. According to the device description file-based data analysis method, a large quantity of repetition works in a work of writing an equipment drive are avoided, the working efficiency is remarkably increased, and the maintenance cost of the equipment drive is lowered.

Description

基于设备描述文件的数据解析方法 Data analysis method based on the device description file

技术领域 FIELD

[0001] 本发明涉及一种物联网设备之间数据传输后的数据解析技术,尤其涉及一种基于XML技术在通用物联网设备数据解析方面的方法。 [0001] The present invention relates to data analysis technology the data transfer between networked devices one kind of material, in particular, relates to a method aspect of the XML data analysis technique was based on general-purpose networking equipment.

背景技术 Background technique

[0002] 物联网的概念10年前就已经提出,实际上是Machine to Machine (M2M),也就是物体与物体的连接,它利用各种网络手段,比如以太网、WIF1、3G、Wimax等等,将电脑、手机、电器、机械等设备连接在一起。 [0002] The concept of things 10 years ago, has been proposed, in fact, Machine to Machine (M2M), which is connected to the object and the object, which uses a variety of network tools, such as Ethernet, WIF1,3G, Wimax, etc. to connect together computers, mobile phones, electrical appliances, machinery and other equipment. 未来,我们的物联网将会是一个7*24小时的网络,无处不在,无时不在。 Future, our things will be a 7 * 24-hour network, everywhere and at all times. 中科院信息与工程学院教授易卫东认为,物联网就是在互联网的平台和技术之上,搭建的人物相连、物物相连的平台,物联网依托于物联网技术。 Chinese Academy of Sciences and Engineering, School of Information professor Yi Weidong believes things is on the platform of the Internet and technology, build character connected to material objects connected to the platform, things relying on networking technology. 而物联网技术就是在各种物品上安装感应器,然后通过某互联网终端来感知、控制这些物品的技术。 And networking technology is to install a sensor on various items, and then through an Internet terminal to sense, control of these items.

[0003] 物联网被称作全球下一个万亿元级规模的新兴产业之一。 [0003] Things are known as one of the world's emerging industries at a scale of one trillion yuan level. 物联网技术发展已被列入中国国家重大科技专项,与新能源、绿色制造等并列为国家五大新兴战略性产业。 Things technology development has been included in China's major national science and technology projects, and new energy, green manufacturing, and other countries tied for the five emerging strategic industries. “物联网”是继计算机、互联网与移动通信网之后的世界信息产业第三次浪潮。 "Things" is the second computer, the Internet and mobile communication network in the world information industry, the third wave. “智慧地球”,“感知中国”所提出的形成智慧型基础设施“物联网”,是振兴经济、确立竞争优势的关键战略。 "Wisdom of the Earth", "Experience China" a key strategy to revive the economy, establish a competitive advantage, "Internet of Things", is the formation of the proposed smart infrastructure. RFID技术作为一项先进的自动识别和数据采集技术,是21世纪构建“智慧地球”的重要技术之一O RFID technology as an advanced automatic identification and data capture techniques, it is important to build "smarter planet" in the 21st century one of the techniques O

[0004] 现在物联网技术较新,很多方面没有统一的标准。 [0004] Now things technology is relatively new, there is no uniform standard in many ways. 其技术领域包括:物联网架构技术;通信技术;网络技术;网络定位和发现技术;软件和算法技术;硬件技术;数据和信号处理技术;物联网研究战略路线图;发现和搜索引擎技术;关系网络管理技术;电源和能量存储技术;安全和隐私技术;标准化和相关技术; The technical areas include: Internet of Things architecture technology; communication technology; network technology; network positioning and discovery technology; software and algorithm technology; hardware technology; data and signal processing technology; networking research was strategic roadmap; discovery and search engine technology; relations network management technology; power and energy storage technology; security and privacy technologies; standardization and related technologies;

[0005] 物联网设备数据解析是整个物联网技术领域中的一小部分技术领域的软件技术,此类功能一般的物联网方案提供商,都是采用驱动方式完成。 Data analyzing networked device [0005] Technical Field of the composition is a fraction of the entire object in the field of networking software technology, such function is generally IOT provider, are based on the drive mode is completed. 通过建立物联网网关与物联网设备进行通讯,对不同的设备撰写不同的设备驱动,属于硬编码技术。 Things to communicate through the establishment of a gateway device with things, different devices with different writing device drivers, are hard-coded technology. 不同的设备有不同的驱动,也就是不同的编码。 Different devices have different drive, which is different encoding. 各个厂商的采用的软件算法不同,解析方式不同,驱动编写五花八门,正是由于国际上对数据的解析一直没有标准。 Various manufacturers of different software algorithms used by different analytical methods, driving a wide variety of writing, precisely because of parses the data has not been on the international standards. 因此造成了今天这种局面。 Thus causing this situation today. (国际上只是发布了几个物联网设备通讯的的标准协议和规范,例如=ZigBee和HA。但是基于这些协议的应用数据就没有标准了) (International just released a standard communication protocols and specifications of the device a few things, such as = ZigBee and HA. But the data based on the application of these protocols is no standard of)

[0006] 传统的设备驱动方式的缺点: [0006] The driving method of the conventional apparatus disadvantages:

[0007] 1.米用硬编码,工作量大。 [0007] 1 m, with a hard coded workload.

[0008] 2.难维护。 [0008] 2. difficult to maintain. 硬编码技术编写驱动难以调试、升级测试。 Technical writing hard-coded drive difficult to debug, upgrade testing. 即使进行调试、升级,其代价也相当的大。 Even debugging, upgrade, the cost is quite large.

[0009] 3.不具有跨平台特性。 [0009] 3 does not have a cross-platform features. 不同的平台即使同一个设备的驱动也需要重新编写。 Different platforms even if the same device drivers also need to be rewritten.

发明内容 SUMMARY

[0010] 本发明的技术效果能够克服上述缺陷,提供一种基于设备描述文件的数据解析方法,其通用的数据解析程序,替代传统的“设备驱动”工作,设备驱动实现的功能和所起的作用完全由基于设备描述文件的数据解析技术实现,缩短了设备发布时的工作量,为不同厂商设备的互联互通提供了通用的技术基础。 [0010] A technical effect of the present invention can overcome the above drawbacks, there is provided a data analysis method based on the device description file, which common data analysis program, replace the function of the traditional "device driver" work, and the device drivers to achieve played role fully realized by the data parsing device description file-based technology, reducing the workload of equipment issued to provide a common technical basis for the interoperability of equipment from different vendors.

[0011] 为实现上述目的,本发明采用如下技术方案:其包括如下步骤: [0011] To achieve the above object, the present invention adopts the following technical scheme: which comprises the steps of:

[0012] (A)建立设备描述文件:由专业的设备描述文件编写技术人员向设备生产商索取设备指令和解析规则,然后按照设备描述文件的规范要求进行XML编写; [0012] (A) establish a device descriptor: written by a professional skilled in the device description file and parsing rules to obtain instructions device to device manufacturers, device description file and in accordance with specifications of the requirements written in XML;

[0013] (B)使用设备描述文件,其包括以下两个过程: [0013] (B) using the device description file, which includes the following two processes:

[0014] B1.获得向设备发送指令; . [0014] B1 sends an instruction to the device is obtained;

[0015] B2.解析来自设备的指令数据包。 [0015] B2. Parsing command packet from the device.

[0016] 本技术方案共分为两部分,一部分是设备描述文件的创建和维护,一部分是设备描述文件的使用。 [0016] The present technical solution is divided into two parts, one to create and maintain the device description file, using a part of the device description file. 其中设备描述文件的使用又分为两个过程,一个是获得向设备发送的控制指令,一个是解析来自设备的指令数据包为有意义的数值或状态。 Wherein the device description file is divided into two processes, one is to obtain a control command sent by a command packet is parsed from the device is a meaningful value or state.

[0017] 采用XML文档,将设备的指令统一格式化和标准化,编译通用的XML解析程序,就能实现联网设备通讯后数据的解析和拼接。 [0017] an XML document, the instruction format unification and standardization of equipment, compiling generic XML parser can parse and implement communications networking equipment after splicing data. 大大减轻了设备驱动编写工作量,同时提供了不同厂商设备之间连动的可能。 Greatly reducing the workload of writing device drivers, while providing between devices from different manufacturers may even move. XML:英文全称extensible markup language ;用于标记电子文件使其具有结构性的标记语言,可以用来标记数据、定义数据类型,是一种允许用户对自己的标记语言进行定义的源语言。 XML: English name extensible markup language; for marking an electronic document to have a structured markup language, can be used to mark data, defined data types, allow a user to define their own markup language source language.

[0018] XML是W3C制定的,XML的标准化工作由W3C的XML工作组负责,该小组成员由来自各个地方和行业的专家组成,他们通过email交流对XML标准的意见,并提出自己的看法(WWW.w3.0rg/TR/WD-xml)。 [0018] XML is the W3C, XML standardization responsible XML Working Group of the W3C, members of the group of experts from various local and industry composition, their views on XML standards through email exchanges, and put forward their views ( WWW.w3.0rg / TR / WD-xml). 因为XML是个公共格式,(它不专属于任何一家公司),所以使用XML技术不会造成侵权。 Because XML is a public format, (it does not belong to any one company), so the use of XML technology will not cause infringement.

[0019] XML 开源工具包:Apache 公司开发包org.w3c.dom.Element, [0019] XML Open Source Toolkit: Apache developed package org.w3c.dom.Element,

[0020] org.w3c.dom.Node ; [0020] org.w3c.dom.Node;

[0021] XML是一种语言,并不包括软件实现。 [0021] XML is a language that does not include software. XML开源工具包是软件实现,不同软件公司都可以对XML编写实现,其功能在于实现了XML语言要求的文件的读写。 XML Toolkit is an open source software, different software companies can write the implementation of XML, its function is to achieve read and write XML language requirements documents.

[0022] 跨平台:java编程工具本提供的跨平台的特性。 [0022] Cross-platform: this characteristic java programming tool provides cross-platform.

[0023] 消除编码工作,通过标准化规范指令的编写,将指令全部使用XML文件保存(即设备描述文件),创建通用的设备描述文件解析程序,进行指令的拼接与数据解析。 [0023] eliminate coding, writing instruction through standardized specifications, instructions all use the XML file is saved (ie, device description file), create a common device description file parsing program, spliced ​​with data analysis instruction. 对XML文件的调试、校验工作的效率相比驱动方式将大大的提高,同时只要编写不同平台的通用设备描述文件解析程序,即能实现跨平台的特性。 XML file for debugging, verification efficiency compared to working-driven approach will be greatly improved, while just write different platforms of generic device description file analysis program that is able to achieve cross-platform features. 这是一种一劳永逸的方法。 This is a way once and for all.

[0024] 设备驱动方式是一种非常传统的硬件在软件中的实现方法。 [0024] The device driver is a very traditional way of hardware implementation in software. 但是其缺点也很明显。 But its disadvantages are also obvious. 大量的重复且无法减少的工作,维护和调试工作量大。 A lot of duplication of work and can not be reduced, commissioning and maintenance workload. 本发明的设备描述文件的数据解析技术,提炼了设备操作方面的共性,将之标准化、规范化,凝缩到一个设备描述文件中。 The device description file data analysis techniques of the present invention, refined common operational aspects of the device, it will be standardized, condensed into a device description file. 该设备描述文件保存(或描述了)设备的所有状态、指令、数据解析方法,是一个纯文本的物理文件。 The device description file is saved (or described) all device status, instructions, data analysis methods, physical file is a plain text. 当物联网设备需要“驱动”的时候,只要通过通用的数据解析程序解读正确的设备描述文件,即可获得等同于驱动方式的效果。 When the device needs things "drive", as long as the correct interpretation of the device description file by a general purpose data analysis program, you can obtain effects equivalent to the drive system.

[0025] XML语言被用于很多软件领域中,但是作为物联网设备的数据解析还是首次。 [0025] XML software languages ​​are used in many fields, but as things device data parsing the first time.

[0026] 本发明创造避免了编写设备驱动工作中大量的重复劳动,显著提高了工作效率;并且降低了“设备驱动”的维护成本。 [0026] The present invention avoids creating a device driver to write a lot of work duplication significantly improve work efficiency; and reducing the "device driver" maintenance costs. 附图说明 BRIEF DESCRIPTION

[0027] 图1为本发明的获得向设备发送指令流程示意图; The present invention obtained [0027] FIG. 1 is a schematic process sends an instruction to the device;

[0028] 图2为本发明的解析来自设备的指令数据包流程示意图。 Parsing the present invention [0028] FIG 2 command packet flow from the device. FIG.

具体实施方式 detailed description

[0029] 本发明的基于设备描述文件的数据解析方法包括如下步骤: [0029] Based on the data analysis method of the present invention the device description file comprises the steps of:

[0030] (A)建立设备描述文件:由专业的设备描述文件编写技术人员向设备生产商索取设备指令和解析规则,然后按照设备描述文件的规范要求进行XML编写; [0030] (A) establish a device descriptor: written by a professional skilled in the device description file and parsing rules to obtain instructions device to device manufacturers, device description file and in accordance with specifications of the requirements written in XML;

[0031] (B)使用设备描述文件,其包括以下两个过程: [0031] (B) using the device description file, which includes the following two processes:

[0032] B1.获得向设备发送指令; . [0032] B1 sends an instruction to the device is obtained;

[0033] B2.解析来自设备的指令数据包。 [0033] B2. Parsing command packet from the device.

[0034] 第一步:建立设备描述文件(或者维护设备描述文件) [0034] The first step: the establishment of device description file (or maintenance device description file)

[0035] 由专业的设备描述文件编写工程师向设备生产商索取设备指令和解析规则。 [0035] written by a professional engineer device description file parsing rules and instructions to obtain equipment to equipment manufacturers. 然后按照设备描述文件的规范要求进行XML的编写。 Then follow the specifications for the device description files required to write XML. 设备描述文件保存了该设备的所有指令、数据解析的以及他们所有可能发生的情况。 Device description file stores all the instructions of the device, as well as all their might happen parsed data. 设备描述文件规范基于长期的实践总结出来了两个流程,每个流程按照两层结构、五种操作,循环使用的方法,可以将目前市面上的具有如下特征的设备指令和解析格式全部实现: Device description file specification summed up process based on two long-term practice, each of the two-layer structure in accordance with the process, five operation, a method of recycling, having the following characteristics may be currently available analytical equipment and instructions to achieve full format:

[0036] 1.设备指令长度是变化的或者固定长度。 [0036] 1. Device instruction length is variable or fixed length. 其长度不超过1K。 Not longer than 1K. 事实上99%以上的设备控制指令不超过50字节。 In fact more than 99% of the device control instruction does not exceed 50 bytes.

[0037] 2.设备指令参数零个、一个或者多个。 [0037] 2. The apparatus of the command parameter zero, one, or more. 最多支持1000个。 It supports up to 1000.

[0038] 3.设备指令的每一种参数可以使用以下五种方法(十进制数值加运算、十进制数值转十六进制字符、字符串相加运算、CS校验值运算、分支运算),每种方法可以使用零次、一次或者多次。 [0038] 3. The parameters of each device may use the instructions following five methods (decimal value by calculation, the decimal value transfer hexadecimal character string addition operation, the CS check value operations, branch operations), each ways you can use zero, one or more times. 每种方法在使用的时候没有必然的顺序要求。 Each method is not necessarily required in order when in use. 但具体到一款设备时,各种方法都是按照顺序执行的。 But to a specific apparatus, various methods are performed in order.

[0039] 4.待解析的数据是变化的或者固定长度。 [0039] 4. Data to be resolved is variable or fixed length. 这里的变化指:不同的句柄解析过程其解析数据可以不同。 Here refers to change of: parsing process which handles a different analysis data may be different. 但相同的句柄解析过程必须一样。 However, the same handle resolution process must be the same.

[0040] 5.待解析的数据可以使用以下五种方法(截取定长字符串中的确定位置子字符串、按比特进行与操作运算、十进制加法运算、分支运算、十六进制字符串转十进制数值运算),每种方法可以使用零次、一次或多次。 [0040] The data may be parsed using the following five methods (determining the position of the substring taken fixed length string, perform arithmetic operation, decimal addition operations, branching operations, bit hexadecimal string refinancing decimal value calculation), the method may be used each zero, one or more times. 每种方法在使用的时候没有必然的顺序要求。 Each method is not necessarily required in order when in use. 但具体到一款设备时,各种方法都是按照顺序执行的。 But to a specific apparatus, various methods are performed in order.

[0041] 至此设备描述文件已经建立完毕。 [0041] Thus the device description file has been set up. 如果需要更改其中的内容,则直接按照上述步骤和要求进行修改重新部署XML文件即可,不需要更改程序。 If you need to change the content of which is directly modified following the above steps and asked to re-deploy XML file, do not need to change the program. 可维护性极高、升级代价极小。 Maintainability is extremely high, the cost of the upgrade is minimal.

[0042] 第二步:使用设备描述文件。 [0042] Step 2: Use the device description file.

[0043] 运行通用设备描述文件解析程序,加载一款设备的设备描述文件。 [0043] General operation of the device description file parser, a device loaded device description file. 该通用设备描述文件能识别设备描述文件中的所有关键字(例如:Commandlit、Datahandle> token、short等等)。 The generic device description file can identify all of the keywords in the device description file (e.g.: Commandlit, Datahandle> token, short, etc.). 能根据命令列表找到对应预处理过程,进行多次的子操作得到发送指令或者根据数据句柄找到对应的数据处理过程,进行多次的子操作(必要的时候还可循环调用数据处理过程),得到有意义的数值或者设备状态。 Could find a corresponding list of pre-processing according to the command, the operation to obtain multiple sub-instructions or find the corresponding transmission data processing according to the data handler, sub-operations performed a plurality of times (when necessary further data processing cycle calls), to give meaningful value or device status.

[0044] 步骤(B)中获得向设备发送指令步骤如下: Be obtained by sending instructions to the device in step (B), [0044] the steps of:

[0045] (I)输入设备描述文件名; [0045] (I) described in the file name of the input device;

[0046] (2)文件是否存在,不存在,结束;存在,进行下一步; [0046] (2) the file exists, there is no end; exist, the next step;

[0047] (3)加载文件是否成功,不成功,结束;成功,进行下一步; Whether [0047] (3) loading files is successful, unsuccessful, ending; successful, the next step;

[0048] (4)获取设备操作指令列表,不成功,结束;成功,进行下一步;一款设备的操作指令可以是多个。 [0048] (4) acquires the operation instruction device list is not successful, the end; successful, the next step; operation instruction device may be a plurality. 一个设备描述文件涵盖了该设备所有操作指令,例如:开关、控制风速等。 A device description file covers all the operation instruction apparatus, for example: a switch control wind speed.

[0049] (5)发送指令参数,指令参数包括:操作名称、输入参数、预处理函数、以及输入参数的类型。 [0049] (5) sends an instruction, the instruction parameters include: the operation name, input parameters, pretreatment function, and the type of input parameters. 输入参数共有三类:枚举、数字、任意; Input parameters are classified into three categories: enumeration, digital, arbitrary;

[0050] (6)指令预处理,根据函数名和预处理函数名,找到对应预处理函数; [0050] (6) pre-command according to the function names and function names pretreatment, pretreatment find the corresponding function;

[0051] (7)指令预处理子操作,未结束,循环指令预处理子操作;结束,获得发送指令。 [0051] (7) an instruction pre-sub-operation, is not ended, the sub-loop instruction preprocessing operation; is ended, the transmission instruction. 子操作可以有多个,没有数量限制,按照顺序执行所有的子操作。 Can have multiple sub-operations, is no limit to the number of all sub-operations performed in the order. 子操作的种类共有五种:十进制数值加运算、十进制数值转十六进制字符、字符串相加运算、CS校验值运算、分支运算 There are five types of sub-operations: addition operation decimal value, the decimal value transfer hexadecimal character string addition operation, the CS computing the check value, computing a branch

[0052] 步骤⑶中获得向设备发送指令步骤如下: [0052] Step ⑶ sending instructions to the device obtained in the following steps:

[0053] (I)输入设备描述文件名; [0053] (I) described in the file name of the input device;

[0054] (2)文件是否存在,不存在,结束;存在,进行下一步; [0054] (2) the file exists, there is no end; exist, the next step;

[0055] (3)加载文件是否成功,不成功,结束;成功,进行下一步; Whether [0055] (3) loading files is successful, unsuccessful, ending; successful, the next step;

[0056] (4)输入采集数据信息; [0056] (4) collecting input data;

[0057] (5)查找数据解析处理列表,不成功,结束;成功,进行下一步;一款设备的数据解析句柄可以是多个。 [0057] (5) data analysis process to find a list of unsuccessful end; successful, the next step; a data analysis device can handle multiple. 一个设备描述文件涵盖了该设备所有数据解析句柄。 A device description file handle to cover all the data analysis device. 每个句柄对应了该设备一个通讯控制指令的反馈结果。 Each handle corresponds to a feedback result of the communication control device instruction.

[0058] (6)数据解析处理过程;根据句柄名,找到对应句柄处理过程。 [0058] (6) data analysis processing procedure; The handle name, finds the corresponding handler processing.

[0059] (7)处理子操作,未结束,循环处理子操作;结束,解析数据完成。 [0059] (7) for the sub-operation does not end, the processing sub-loop operation; end, parsed data is completed. 子操作可以有多个,没有数量限制,按照顺序执行所有的子操作。 Can have multiple sub-operations, is no limit to the number of all sub-operations performed in the order. 子操作的种类共有五种:截取定长字符串中的确定位置子字符串、按比特进行与操作运算、十进制加法运算、分支运算、十六进制字符串转十进制数值运算。 There are five types of sub-operations of: determining the position of the substring taken fixed length string, computing a bitwise AND operation, decimal addition operations, branch operations, the decimal value hexadecimal string transfer operation.

[0060] 本通用设备描述文件解析程序使用java语言编写,可以在Iinux和windows平台运行,实现了跨平台的特性。 [0060] This universal device description file parser using the java language, you can run Iinux and windows platform, cross-platform features. 同时以后无论增加怎样的设备只要会编写设备描述文件即可发布设备,无需编码。 No matter what the future at the same time increase as long as the device will write the device description file can publish devices without coding.

Claims (8)

  1. 1.一种基于设备描述文件的数据解析方法,其特征在于,包括如下步骤: (A)建立设备描述文件:由专业的设备描述文件编写技术人员向设备生产商索取设备指令和解析规则,然后按照设备描述文件的规范要求进行XML编写; (B)使用设备描述文件,其包括以下两个过程: B1.获得向设备发送指令; B2.解析来自设备的指令数据包。 A data analysis method based on the device description file, characterized by comprising the steps of: (A) establish a device descriptor: written by a professional skilled in the device description file and parsing rules to obtain instructions to equipment manufacturers equipment, and according to the specification requirements of the device description document written in XML; (B) using the device description file, which includes the following two processes:. B1 sends an instruction to obtain device; B2 parsing command packet from the device.
  2. 2.根据权利要求1所述的基于设备描述文件的数据解析方法,其特征在于,步骤(A)中的规范要求包括:设备指令长度是变化的或者固定长度的,其长度不超过1K。 The device description file data analysis method according to claim 1 is based, wherein the step (A) in the specifications comprising: a device instruction length is variable or fixed length, which length does not exceed 1K.
  3. 3.根据权利要求1所述的基于设备描述文件的数据解析方法,其特征在于,步骤(A)中的规范要求包括:设备指令参数为零个或一个或一个以上,最多支持1000个。 3. Data analysis method based on the device description file, wherein according to claim 1, step (A) in the specifications comprising: an instruction device parameter is zero or one, or more, to support up to 1000.
  4. 4.根据权利要求3所述的基于设备描述文件的数据解析方法,其特征在于,步骤(A)中的规范要求包括:设备指令的每一种参数使用以下方法,十进制数值加运算、十进制数值转十六进制字符、字符串相加运算、CS校验值运算、分支运算。 4. The data analysis method based on the device description file, wherein in said claim 3, Compliant step (A) comprises: each of the following parameters of the device using the instruction method, plus decimal value calculation, the decimal value turn hexadecimal character string addition operation, the CS computing the check value, the branch operation.
  5. 5.根据权利要求1所述的基于设备描述文件的数据解析方法,其特征在于,步骤(A)中的规范要求包括:待解析的数据是变化的或者固定长度。 The device description file data analysis method according to claim 1 is based, wherein the step (A) in the specifications comprising: parsing data is to be variable or fixed length.
  6. 6.根据权利要求1所述的基于设备描述文件的数据解析方法,其特征在于,步骤(A)中的规范要求包括:待解析的数据使用以下五种方法,截取定长字符串中的确定位置子字符串、按比特进行与操作运算、十进制加法运算、分支运算、十六进制字符串转十进制数值运笪 6. The data analysis method based on the device description file, wherein in said claim 1, step (A) in the specifications comprising: data to be parsed following five methods, determining the intercept fixed length string position of the substring, the bitwise aND operation calculation, decimal addition operations, branch operations, the decimal value hexadecimal string transfer operation Da
  7. 7.根据权利要求1所述的基于设备描述文件的数据解析方法,其特征在于,步骤(B)中获得向设备发送指令步骤如下: (1)输入设备描述文件名; (2)文件是否存在,不存在,结束;存在,进行下一步; (3)加载文件是否成功,不成功,结束;成功,进行下一步; (4)获取设备操作指令列表,不成功,结束;成功,进行下一步; (5)发送指令参数; (6)指令预处理; (7)指令预处理子操作,未结束,循环指令预处理子操作;结束,获得发送指令。 7. A data analysis method based on the device description file, wherein according to claim 1, step (B) obtained in the following steps sending instructions to the device: (1) input device description document; if (2) the file exists , there is no end; exist, the next step; (3) whether a file is loaded successfully, unsuccessfully, ending; successful, the next step; (4) the operation instruction acquisition apparatus list is not successful, the end; successful, the next step ; (5) transmission command parameters; (6) pretreated instruction; (7) an instruction pre-sub-operation, is not ended, the sub-loop instruction preprocessing operation; is ended, the transmission instruction.
  8. 8.根据权利要求1所述的基于设备描述文件的数据解析方法,其特征在于,步骤(B)中获得向设备发送指令步骤如下: (1)输入设备描述文件名; (2)文件是否存在,不存在,结束;存在,进行下一步; (3)加载文件是否成功,不成功,结束;成功,进行下一步; (4)输入采集数据信息; (5)查找数据解析处理列表,不成功,结束;成功,进行下一步; (6)数据解析处理过程; (7)处理子操作,未结束,循环处理子操作;结束,解析数据完成。 The device description file data analysis method according to claim 1 is based, wherein the step (B) obtained in the following steps sending instructions to the device: (1) input device description document; if (2) the file exists there is no end; there is, the next step; if (3) the file is successfully loaded, unsuccessful, ending; successful, the next step; (4) data acquisition input information; (5) the list to find the data analysis process, unsuccessful end; successful, the next step; (6) data analysis process; (7) for the sub-operation does not end, the processing sub-loop operation; end, parsed data is completed.
CN 201110451502 2011-12-29 2011-12-29 Device description file-based data analysis method CN103186582A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110451502 CN103186582A (en) 2011-12-29 2011-12-29 Device description file-based data analysis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110451502 CN103186582A (en) 2011-12-29 2011-12-29 Device description file-based data analysis method

Publications (1)

Publication Number Publication Date
CN103186582A true true CN103186582A (en) 2013-07-03

Family

ID=48677751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110451502 CN103186582A (en) 2011-12-29 2011-12-29 Device description file-based data analysis method

Country Status (1)

Country Link
CN (1) CN103186582A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331522A (en) * 2014-11-28 2015-02-04 迈普通信技术股份有限公司 OEM (Original Equipment Manufacture) information customizing method and OEM equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060117061A1 (en) * 2004-11-29 2006-06-01 Weiss Andrew D De-serializing data objects on demand
CN101098248A (en) * 2006-06-26 2008-01-02 腾讯科技(深圳)有限公司 Method and system for implementing universal network management based on configuration describing document
CN101334932A (en) * 2007-06-25 2008-12-31 株式会社日立制作所 Household appliance proxy equipment
CN101505386A (en) * 2009-02-27 2009-08-12 四川长虹电器股份有限公司 Implementing method for transferability of household electrical appliance user operation interface
CN102043622A (en) * 2010-12-14 2011-05-04 成电汽车电子产业园(昆山)有限公司 Basic software general configurator for electronic controllers

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060117061A1 (en) * 2004-11-29 2006-06-01 Weiss Andrew D De-serializing data objects on demand
CN101098248A (en) * 2006-06-26 2008-01-02 腾讯科技(深圳)有限公司 Method and system for implementing universal network management based on configuration describing document
CN101334932A (en) * 2007-06-25 2008-12-31 株式会社日立制作所 Household appliance proxy equipment
CN101505386A (en) * 2009-02-27 2009-08-12 四川长虹电器股份有限公司 Implementing method for transferability of household electrical appliance user operation interface
CN102043622A (en) * 2010-12-14 2011-05-04 成电汽车电子产业园(昆山)有限公司 Basic software general configurator for electronic controllers

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
曹京伟等: "《中华人民共和国电子行业标准》", 28 June 2005, article "家庭网络设备描述文件规范" *
汪玉凤等: "基于S3C2440A和ZigBee技术的智能家居系统", 《微计算机信息》, no. 29, 15 October 2010 (2010-10-15) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331522A (en) * 2014-11-28 2015-02-04 迈普通信技术股份有限公司 OEM (Original Equipment Manufacture) information customizing method and OEM equipment
CN104331522B (en) * 2014-11-28 2018-03-30 迈普通信技术股份有限公司 Oem oem information customizing methods and equipment

Similar Documents

Publication Publication Date Title
US6658625B1 (en) Apparatus and method for generic data conversion
US20020073091A1 (en) XML to object translation
US20040006401A1 (en) Data format conversion method and equipment,and controller management system using data format conversion equipment
US20110016449A1 (en) Method and system for integrating java and javascript technologies
US20060168511A1 (en) Method of passing information from a preprocessor to a parser
US20060236225A1 (en) Methods and apparatus for converting markup language data to an intermediate representation
Wang Improving data transmission in web applications via the translation between XML and JSON
US20110219357A1 (en) Compressing source code written in a scripting language
US7870482B2 (en) Web browser extension for simplified utilization of web services
CN102663094A (en) IEC61970CIM model checking method
CN101488085A (en) Software interface test method and apparatus
US20060265469A1 (en) XML based scripting framework, and methods of providing automated interactions with remote systems
Verborgh et al. Survey of semantic description of REST APIs
CN1841328A (en) Automaton method for script language
CN102750268A (en) Object serializing method as well as object de-serializing method, device and system
CN101369234A (en) Method for compiling ladder diagram language into instruction list language according to IEC61131-3 standard
CN101571860A (en) Method and device for generating dynamic website as well as method and device for extracting structural data
CN102968306A (en) Method and system for automatically generating code based on data model drive
US20140282439A1 (en) Migration assistance using compiler metadata
Maletic et al. Leveraging XML technologies in developing program analysis tools
CN101262486A (en) Modbus bus analysis system based on built-in platform
CN102662069A (en) Detection system and detection method of plastic packaging materials based on Internet of things and cloud technology
Armstrong Getting Erlang to talk to the outside world
US20090187601A1 (en) Automation process system and method to upgrade from non-unicode transformation support to unicode data transformation support
CN103092756A (en) Interactive automated testing system and method thereof

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)