CN111459889B - Equipment data model generation method and device for Internet of things platform - Google Patents

Equipment data model generation method and device for Internet of things platform Download PDF

Info

Publication number
CN111459889B
CN111459889B CN202010154645.6A CN202010154645A CN111459889B CN 111459889 B CN111459889 B CN 111459889B CN 202010154645 A CN202010154645 A CN 202010154645A CN 111459889 B CN111459889 B CN 111459889B
Authority
CN
China
Prior art keywords
data
equipment
model
sensing
internet
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.)
Active
Application number
CN202010154645.6A
Other languages
Chinese (zh)
Other versions
CN111459889A (en
Inventor
曹小健
陈琼
周立宇
宣骏
高天翔
王蕊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CETHIK Group Ltd
Original Assignee
CETHIK Group Ltd
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
Application filed by CETHIK Group Ltd filed Critical CETHIK Group Ltd
Priority to CN202010154645.6A priority Critical patent/CN111459889B/en
Publication of CN111459889A publication Critical patent/CN111459889A/en
Application granted granted Critical
Publication of CN111459889B publication Critical patent/CN111459889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a device data model generation method and a device for an internet of things platform, wherein the method comprises the steps of obtaining configuration information of a configuration interface; generating intermediate description files corresponding to the equipment data models according to the acquired configuration information, and generating corresponding source code files for the intermediate description files; invoking a source code compiler to compile each source code file into a binary file executable by the platform of the Internet of things; receiving a message reported by sensing equipment, analyzing the message to obtain the model and sensing data of the sensing equipment, and searching a corresponding equipment data model according to the model; and loading the executable binary file corresponding to the searched equipment data model, and analyzing the perception data by the execution binary file to obtain the structured data of the perception equipment. The method is convenient to operate through the configuration interface, reduces the development difficulty of the equipment data model, and generates the binary file to improve the analysis efficiency of the equipment perception data.

Description

Equipment data model generation method and device for Internet of things platform
Technical Field
The application belongs to the field of computer data processing, and particularly relates to a device data model generation method and device for an internet of things platform.
Background
With the advent of the internet of things era, massive sensing devices of different types need to be connected to an internet of things platform, and data information of other devices is conveniently and rapidly acquired through the internet of things platform. In order to solve the analysis work of different types of sensing equipment data, the sensing data is described through a model, and avoiding frequent coding is a better method for improving the working efficiency.
In the access process of the sensing equipment, the equipment data model is used for describing the attribute of the sensing equipment and the structural information of a data message instruction or a control instruction exchanged between the equipment and the internet of things platform, so that a user can realize the functional operations of the access, data analysis, storage, alarm triggering, control (reverse control) and the like of the sensing equipment in a configurable form, and the expandability of the internet of things platform is enhanced.
The traditional equipment data model generation method has the defects that the user threshold is high, the user of the Internet of things platform has certain programming capability, and the user is familiar with the secondary development language appointed by the Internet of things platform to realize the configurable access of the sensing equipment, so that the operation difficulty is high.
Disclosure of Invention
The purpose of the application is to provide a device data model generation method and device for an Internet of things platform, which are convenient to operate by configuring an interface, reduce the development difficulty of the device data model and generate a binary file so as to improve the analysis efficiency of device perception data.
In order to achieve the above purpose, the technical scheme adopted by the application is as follows:
the device data model generation method for the internet of things platform comprises a configuration interface, wherein the configuration interface is used for inputting configuration information of device data models corresponding to sensing devices by a user, and the device data model generation method for the internet of things platform comprises the following steps:
acquiring configuration information of a configuration interface;
generating intermediate description files corresponding to the equipment data models according to the acquired configuration information, and generating corresponding source code files for the intermediate description files;
invoking a source code compiler to compile each source code file into a binary file executable by the platform of the Internet of things;
receiving a message reported by sensing equipment, analyzing the message to obtain the model and sensing data of the sensing equipment, and searching a corresponding equipment data model according to the model;
and loading the executable binary file corresponding to the searched equipment data model, and analyzing the perception data by the execution binary file to obtain the structured data of the perception equipment.
Preferably, the device data model is used for describing the characteristics of the sensing data reported by the sensing device, and the device data model comprises the following contents: the method comprises the steps of model names, data formats adopted by the reporting of the sensing equipment, various attributes contained in the data reported by the sensing equipment, attribute names corresponding to the various attributes, attribute value types corresponding to the various attributes, attribute value limiting conditions corresponding to the various attributes and positions of the various attributes in the sensing data.
Preferably, the method for generating the device data model for the platform of the internet of things further includes:
after the binary file is generated, a packing tool is called to pack the binary file into a compressed file.
The application also provides a device data model generating device for the internet of things platform, which comprises a configuration interface, a generating module and a runtime environment, wherein,
the configuration interface is used for inputting configuration information of the device data model corresponding to each sensing device by a user;
the generation module is used for acquiring configuration information of the configuration interface, generating intermediate description files corresponding to the equipment data models according to the acquired configuration information, generating corresponding source code files for the intermediate description files, and calling a source code compiler to compile the source code files into binary files executable by the Internet of things platform;
the runtime environment is used for receiving a message reported by the sensing equipment, analyzing the message to obtain the model and sensing data of the sensing equipment, searching a corresponding equipment data model according to the model, loading an executable binary file corresponding to the searched equipment data model, and analyzing the sensing data by the execution binary file to obtain the structured data of the sensing equipment.
Preferably, the device data model is used for describing the characteristics of the sensing data reported by the sensing device, and the device data model comprises the following contents: the method comprises the steps of model names, data formats adopted by the reporting of the sensing equipment, various attributes contained in the data reported by the sensing equipment, attribute names corresponding to the various attributes, attribute value types corresponding to the various attributes, attribute value limiting conditions corresponding to the various attributes and positions of the various attributes in the sensing data.
Preferably, after the generating module obtains the binary file, the following operations are further executed:
and calling a packing tool to pack the binary files into compressed files and store the compressed files to finish model release.
Preferably, the runtime environment registration monitor performs the following operations after finishing model release by the monitor generation module:
downloading a compressed file corresponding to the new equipment data model in an HTTP mode;
and loading the compressed file through a code loader to obtain binary files of the contained equipment data models, and analyzing the binary files to obtain contents contained in the equipment data models.
According to the device data model generation method and device for the Internet of things platform, the device data model configuration interface is provided, a user can configure the device data model in an interface dragging mode without programming capability, the compiling of the structure information of the data message instruction or the control instruction of the Internet of things device is completed, the development difficulty of the device data model is effectively reduced, and the device data model configuration interface is convenient to use for operation; the configuration information generated by the user through the configuration interface is further converted into the executable binary file of the Internet of things platform, so that professional compiling of the equipment data model generated by the configuration interface is avoided because the equipment data model cannot be executed, the equipment perception data analysis efficiency is effectively improved, the accuracy of the original data analysis of the perception equipment is also improved, and the problems that the development difficulty of the equipment data model of the Internet of things platform is high and the diversity access of the perception equipment is difficult to realize are solved.
Drawings
FIG. 1 is a schematic view of an embodiment of a configuration interface in embodiment 1 of the present application;
fig. 2 is a flowchart of a method for generating an equipment data model for an internet of things platform in embodiment 1 of the present application;
FIG. 3 is a flowchart of a configuration device data model in embodiment 1 of the present application;
FIG. 4 is a flowchart of a publishing device data model in embodiment 1 of the present application;
FIG. 5 is a flowchart of a runtime environment loading binary files in embodiment 1 of the present application;
fig. 6 is a flowchart of a report from a runtime environment analysis sensor device in embodiment 1 of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
In one embodiment, a method for generating an equipment data model for an internet of things platform is provided, and the method can assist a user to complete the generation of the equipment data model through a simple and easy-to-operate configuration interface without professional programming capability of the user, so that the problems that the development difficulty of the equipment data model of the internet of things platform is high and the access of sensing equipment diversity is difficult to realize are solved.
The internet of things platform in this embodiment includes a configuration interface, where the configuration interface is used for a user to input configuration information of a device data model corresponding to each sensing device, and the device data model generating method for the internet of things platform in this embodiment includes:
and acquiring configuration information of a configuration interface.
And generating intermediate description files corresponding to the equipment data models according to the acquired configuration information, and generating corresponding source code files for the intermediate description files.
And calling a source code compiler to compile each source code file into a binary file executable by the platform of the Internet of things.
And receiving a message reported by the sensing equipment, analyzing the message to obtain the model and sensing data of the sensing equipment, and searching a corresponding equipment data model according to the model.
And loading the executable binary file corresponding to the searched equipment data model, and analyzing the perception data by the execution binary file to obtain the structured data of the perception equipment.
Because the configuration information of the configuration interface cannot be directly executed by the internet of things platform, the device data model generating method not only provides the configuration interface easy to operate, but also converts the configuration information of the configuration interface into a binary file executable by the internet of things platform, compared with the prior art, the generated device data model is deeper and can be directly called and executed, a professional programmer is not required to program according to the configuration interface, the generating difficulty of the device data model is effectively reduced, and the perceived data analysis efficiency is improved.
The device data model in this embodiment is used to describe the features of the sensing data reported by the sensing device, and includes, but is not limited to, the following: the method comprises the steps of model names, data formats (JSON/binary stream/XML and the like) adopted by the report of the sensing equipment, various attributes contained in the data reported by the sensing equipment, attribute names corresponding to the various attributes, attribute value types (int, string and the like) corresponding to the various attributes, attribute value limiting conditions corresponding to the various attributes and positions of the various attributes in the sensing data.
In order to facilitate the transmission and loading of the internet of things, after the binary file is generated, a packing tool is called to pack the binary file into a compressed file, so that the data transmission is improved, and meanwhile, the error rate is reduced.
In another embodiment, a device data model generating apparatus for an internet of things platform is provided, where the device data model generating apparatus for an internet of things platform of the embodiment includes a configuration interface, a generating module, and a runtime environment, where,
and the configuration interface is used for inputting configuration information of the device data model corresponding to each sensing device by a user.
The generation module is used for acquiring configuration information of the configuration interface, generating intermediate description files corresponding to the equipment data models according to the acquired configuration information, generating corresponding source code files for the intermediate description files, and calling a source code compiler to compile the source code files into binary files executable by the Internet of things platform.
The system comprises a runtime environment, an Internet of things platform and a sensor, wherein the runtime environment is used for receiving a message reported by the sensor, analyzing the message to obtain the model and the sensor data of the sensor, searching a corresponding device data model according to the model, loading an executable binary file corresponding to the found device data model, and analyzing the sensor data by the Internet of things platform to obtain the structured data of the sensor.
And the device data model in this embodiment is used to describe the characteristics of the sensing data reported by the sensing device, and includes, but is not limited to, the following: the method comprises the steps of model names, data formats adopted by the reporting of the sensing equipment, various attributes contained in the data reported by the sensing equipment, attribute names corresponding to the various attributes, attribute value types corresponding to the various attributes, attribute value limiting conditions corresponding to the various attributes and positions of the various attributes in the sensing data.
In order to facilitate the transmission and storage of the device data model, the generation module further performs the following operations after obtaining the binary file: and calling a packing tool to pack the binary files into compressed files and store the compressed files to finish model release.
In order to ensure that the newly generated device data model can be identified and invoked in time by the internet of things platform, in an embodiment, the runtime environment registers a monitor, and after the monitoring generation module completes model release, the following operations are executed:
and downloading the compressed file corresponding to the new equipment data model in an HTTP mode.
And loading the compressed file through a code loader to obtain binary files of the contained equipment data models, and analyzing the binary files to obtain contents contained in the equipment data models.
In order to facilitate understanding of the device data model generation method and device for the internet of things platform, the device data model generation method and device for the internet of things platform are described in detail in the following through specific embodiments with reference to the accompanying drawings.
Example 1
The technical scheme of the embodiment comprises the following contents:
the configuration interface is used for configuring configuration information of the equipment data model, wherein the configuration information is the structure information of the data message instruction or the control instruction of the equipment of the Internet of things. The embodiment provides a set of description language for describing the structure information of the data message instruction or the control instruction of the Internet of things equipment, namely, the configuration information is edited according to a specific format, so that the standardization of the operation of the configuration interface is improved, and the subsequent processing is facilitated.
And the generation module is used for generating the executable analysis code binary file through the configuration information.
And the runtime environment is used for analyzing the message data or the control instruction of the sensing equipment through the executable analysis code binary file to obtain the structured data, so that the subsequent data call is convenient.
The description language is a format language for describing data message instructions or control instruction structure information of the internet of things device, and the description language provided by the embodiment comprises the following contents:
1. a model description (model name, message format type (binary, JSON, XML), message content type (awareness, event, command, status, attribute)).
2. A plurality of instruction field descriptions (each instruction field description including an instruction field name, a location in a message, a field type, an instruction field value length, etc.).
The description language is used for constructing the equipment data model, so that the content of the description language corresponds to the content included in the equipment data model, for example, the data format adopted by the perception equipment report of the equipment data model corresponds to the message format type of the description language; each attribute contained in the data reported by the sensing equipment of the equipment data model corresponds to the message content type of the description language; attribute names corresponding to the various attributes of the device data model correspond to instruction field names in the description language, and so on.
For ease of understanding, a description language format sample is provided as follows:
Figure BDA0002403649860000061
since the configuration interface is edited according to the format of the description language, as shown in fig. 1, the configuration interface provided in this embodiment is configured, firstly, the uppermost part of the configuration interface is the equipment model and model ID of the sensing equipment, so as to quickly determine which sensing equipment the equipment data model corresponds to; next, the configuration interface is down one or more description blocks formed by the description language, each of which is set according to the content contained in the description language. The whole configuration interface is clear and easy to edit, and great convenience is brought to the configuration of the equipment data model.
In addition, in order to improve the convenience and reliability of information storage in the technical scheme, the technical scheme can also provide a set of storage and magnetic disk, wherein the storage is generally a file or a database and is used for storing configuration information; the disk is used for storing the generated binary file.
As shown in fig. 2, a specific workflow of the method and the apparatus for generating a device data model for an internet of things platform in this embodiment is as follows:
1) The user configures the equipment data model through a configuration interface provided by the Internet of things platform.
As shown in fig. 3, step 1) is implemented, comprising the following minor steps:
101 The user analyzes the data reported by the sensing equipment to obtain a protocol adopted by the sensing equipment connected with the internet of things platform and a format adopted by the transmitted data. The formats supported by the current device data model include: fixed length binary stream, JSON, and XML; and the data types corresponding to the sensing data carried by the equipment data.
102 According to the information obtained by analysis, filling configuration information of the equipment data model corresponding to each sensing equipment in the configuration interface, wherein the configuration information comprises model names, selecting data formats and filling data format information corresponding to each sensing data.
103 After filling, checking each item of data, clicking and storing each item of configuration information to a database after the data is accurate.
104 The internet of things platform checks the data and precompiled, if accurate and precompiled successfully, re-saves the configuration information to the database.
105 Is completed.
2) The Internet of things platform edits configuration information and concurrently lays out a data model.
As shown in fig. 4, the implementation step 2) includes the following minor steps:
201 Receiving an issuing instruction generated by a user, setting the model issuing operation to be actively initiated by the user in the embodiment, and ensuring the validity of the issuing of the equipment data model.
202 Acquiring the configuration information stored in the step 1), and generating an intermediate description file (JSON format) of each equipment data model according to the configuration information; if the intermediate description file generation fails, then the exception is thrown and step 205 is performed).
203 After the intermediate description files are generated, generating a corresponding source code file for each intermediate description file, wherein the source code file contains the perception data type and definition of each equipment data model; if the source code file generation fails, then the exception is thrown and step 205 is performed).
It should be noted that, the process of generating the source code file in this embodiment is not taken as a protection emphasis, and may be implemented by using the prior art, for example, conversion between json and java.
204 Calling a source code compiler to compile each source code file into a binary file, and calling a packing tool to pack and store the generated binary file to a disk, so that the transmission is convenient.
205 A) complete release.
3) The runtime environment loads the binary file.
As shown in fig. 5, this step is implemented, comprising the following minor steps:
301 When the runtime environment runs, a node listener is notified on the registration zookeeer (ZK for short), and the node change is monitored.
302 After the release is completed in step 2), the platform modifies the last release time of the notification node above the ZK.
303 The runtime environment monitors the change of the node according to the registered monitor 301), thereby identifying that the Internet of things platform reissues the equipment data model; if the snoop fails, then the exception is thrown and step 306 is performed).
304 The runtime environment downloads the compressed file corresponding to the new device data model from the disk in an HTTP mode; if the download fails, an exception is thrown and step 306 is performed.
305 The runtime environment loads the compressed file through the code loader to obtain binary files of the data models of all the devices carried in the compressed file, analyzes the binary files to obtain corresponding protocol model names, model identifications, corresponding device models and corresponding data formats (fixed-length binary stream, JSON, XML).
306 Loading is complete. And 3) obtaining all binary files for standby after analyzing the downloaded compressed file, namely, the loading efficiency is improved, and meanwhile, the error rate of the binary files during loading is reduced.
4) And analyzing the message reported by the sensing equipment.
As shown in fig. 6, this step is implemented, comprising the following minor steps:
401 The method comprises the steps that) an internet of things platform receives a message reported by sensing equipment, wherein the message comprises the model of the sensing equipment and original message data, and the original message data is data information acquired by the sensing equipment.
402 Message initialization: checking the message and removing the head and tail to obtain the original message data of the sensing device, namely the original message (generally byte) of the sensing data, and the model corresponding to the sensing device; if the message is initialized to be wrong, an exception is thrown and step 405 is performed).
403 Searching a corresponding equipment data model according to the model of the sensing equipment, if no corresponding equipment data model exists, throwing out an abnormality and executing step 405); otherwise, step 404 is performed).
404 The runtime environment loads the binary file corresponding to the device data model found in step 403) from all the binary files to be used, and parses the original message data according to the binary file.
405 Ending the analysis.
The method and the device are used for solving the problem that the protocol of the Internet of things equipment is complex, the pain point of customized access must be conducted for single type equipment during access, a configuration interface is provided, a user does not need programming capability, and the structural information of data message instructions or control instructions of the Internet of things equipment can be configured through an interface filling mode. And further, the structure information of the filled device data model is converted into an executable binary file, so that the complicated reprogramming in the prior art is avoided, and the analysis efficiency of the device perception data (namely the original message data) is improved. Meanwhile, secondary development capability is reserved for platform users with certain programming capability.
At present, the conventional method is that a platform provides analysis definition interfaces and provides secondary development languages for realizing the interfaces, and a user realizes the interfaces through the secondary development languages provided or appointed by the platform, so that the structural information of data message instructions or control instructions of internet of things equipment related to the internet of things platform is analyzed. Compared with the traditional method, the method and the device are convenient to operate through the configuration interface, the development difficulty of the device data model is reduced, and the binary file is generated so as to improve the analysis efficiency of the device perception data.
Moreover, the method and the device have the advantage that the operation of modifying, increasing and decreasing the device data model of the internet of things platform is very convenient. If the equipment data model is newly added, adding new configuration information into the configuration interface, and executing the steps 1) to 4) in the embodiment 1; if the existing equipment data model of the internet of things platform is modified, modifying configuration information of the corresponding equipment data model at a configuration interface, and re-executing the steps 1) to 4) in the embodiment 1, wherein the binary file corresponding to the modified configuration information is modified; if the existing equipment data model of the internet of things platform needs to be deleted, deleting the configuration information of the corresponding equipment data model on the configuration interface, and re-executing the steps 1) to 4) in the embodiment 1, wherein the binary files corresponding to the deleted configuration information are deleted.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (5)

1. The device data model generation method for the internet of things platform is characterized in that the internet of things platform comprises a configuration interface, the configuration interface is used for inputting configuration information of device data models corresponding to sensing devices by a user, and the device data model generation method for the internet of things platform comprises the following steps:
acquiring configuration information of a configuration interface;
generating intermediate description files corresponding to the equipment data models according to the acquired configuration information, and generating corresponding source code files for the intermediate description files;
invoking a source code compiler to compile each source code file into a binary file executable by the platform of the Internet of things;
receiving a message reported by sensing equipment, analyzing the message to obtain the model and sensing data of the sensing equipment, and searching a corresponding equipment data model according to the model;
loading an executable binary file corresponding to the searched equipment data model, and analyzing the perception data by the execution binary file to obtain the structured data of the perception equipment;
the device data model is used for describing the characteristics of the perception data reported by the perception device, and comprises the following contents: the method comprises the steps of model names, data formats adopted by the reporting of the sensing equipment, various attributes contained in the data reported by the sensing equipment, attribute names corresponding to the various attributes, attribute value types corresponding to the various attributes, attribute value limiting conditions corresponding to the various attributes and positions of the various attributes in the sensing data.
2. The method for generating a device data model for an internet of things platform according to claim 1, further comprising:
after the binary file is generated, a packing tool is called to pack the binary file into a compressed file.
3. The device data model generating device for the Internet of things platform is characterized by comprising a configuration interface, a generating module and a runtime environment, wherein,
the configuration interface is used for inputting configuration information of the device data model corresponding to each sensing device by a user;
the generation module is used for acquiring configuration information of the configuration interface, generating intermediate description files corresponding to the equipment data models according to the acquired configuration information, generating corresponding source code files for the intermediate description files, and calling a source code compiler to compile the source code files into binary files executable by the Internet of things platform;
the runtime environment is used for receiving a message reported by the sensing equipment, analyzing the message to obtain the model and sensing data of the sensing equipment, searching a corresponding equipment data model according to the model, loading an executable binary file corresponding to the searched equipment data model, and analyzing the sensing data by the execution binary file to obtain the structured data of the sensing equipment;
the device data model is used for describing the characteristics of the perception data reported by the perception device, and comprises the following contents: the method comprises the steps of model names, data formats adopted by the reporting of the sensing equipment, various attributes contained in the data reported by the sensing equipment, attribute names corresponding to the various attributes, attribute value types corresponding to the various attributes, attribute value limiting conditions corresponding to the various attributes and positions of the various attributes in the sensing data.
4. The device data model generating apparatus for an internet of things platform according to claim 3, wherein the generating module further performs the following operations after obtaining the binary file:
and calling a packing tool to pack the binary files into compressed files and store the compressed files to finish model release.
5. The device data model generating apparatus for an internet of things platform according to claim 4, wherein the runtime environment registration listener performs the following operations after monitoring that the generating module completes the model release:
downloading a compressed file corresponding to the new equipment data model in an HTTP mode;
and loading the compressed file through a code loader to obtain binary files of the contained equipment data models, and analyzing the binary files to obtain contents contained in the equipment data models.
CN202010154645.6A 2020-03-08 2020-03-08 Equipment data model generation method and device for Internet of things platform Active CN111459889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010154645.6A CN111459889B (en) 2020-03-08 2020-03-08 Equipment data model generation method and device for Internet of things platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010154645.6A CN111459889B (en) 2020-03-08 2020-03-08 Equipment data model generation method and device for Internet of things platform

Publications (2)

Publication Number Publication Date
CN111459889A CN111459889A (en) 2020-07-28
CN111459889B true CN111459889B (en) 2023-06-16

Family

ID=71684979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010154645.6A Active CN111459889B (en) 2020-03-08 2020-03-08 Equipment data model generation method and device for Internet of things platform

Country Status (1)

Country Link
CN (1) CN111459889B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112068817B (en) * 2020-08-19 2024-03-12 天翼物联科技有限公司 Code generation method, system, device and medium for terminal side of Internet of things
CN112052418B (en) * 2020-09-08 2024-03-05 新奥数能科技有限公司 Data configuration method and device
CN112764637B (en) * 2021-02-01 2023-06-20 山东汇金海智慧农业研究院有限公司 Intelligent agriculture Internet of things equipment description file generation method
CN112818176B (en) * 2021-02-08 2023-12-12 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN113448583A (en) * 2021-08-27 2021-09-28 深圳市信润富联数字科技有限公司 Configuration development method and device based on Internet of things, terminal equipment and medium
CN114465911A (en) * 2022-02-10 2022-05-10 成都阿普奇科技股份有限公司 Internet of things sensing equipment resource unified description method
CN114422555B (en) * 2022-03-28 2022-07-12 成都柔水科技有限公司 CIM platform based method for self-defined configuration of IoT data analysis
CN115632961A (en) * 2022-12-22 2023-01-20 北京蓝色星际科技股份有限公司 Equipment state reporting method and device and server
CN117857608B (en) * 2024-03-07 2024-05-03 安徽慕京信息技术有限公司 Method and system for collecting equipment data based on Internet of things platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826087A (en) * 2009-03-02 2010-09-08 中兴通讯股份有限公司 Configuration device and method of coding information data
CN103095823A (en) * 2013-01-09 2013-05-08 大唐软件技术股份有限公司 Object description method and object information interaction system in Internet of Things system
CN108027737A (en) * 2015-04-07 2018-05-11 瑞安安全股份有限公司 The system and method obscured by binary system and memory diversity
CN109033387A (en) * 2018-07-26 2018-12-18 广州大学 A kind of Internet of Things search system, method and storage medium merging multi-source data
CN110688150A (en) * 2019-09-03 2020-01-14 华中科技大学 Binary file code search detection method and system based on tensor operation
CN110705215A (en) * 2019-09-24 2020-01-17 昆山龙腾光电股份有限公司 Encoding method, encoding device and display device of MIPI configuration file

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110161325A1 (en) * 2009-12-31 2011-06-30 Ego7 Llc System, method and computer-readable storage medium for generation and remote content management of compiled files
US10185757B2 (en) * 2015-10-26 2019-01-22 Dataiq, Llc Non-uniform multi-row text file loading
US10642870B2 (en) * 2016-06-10 2020-05-05 OneTrust, LLC Data processing systems and methods for automatically detecting and documenting privacy-related aspects of computer software

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826087A (en) * 2009-03-02 2010-09-08 中兴通讯股份有限公司 Configuration device and method of coding information data
CN103095823A (en) * 2013-01-09 2013-05-08 大唐软件技术股份有限公司 Object description method and object information interaction system in Internet of Things system
CN108027737A (en) * 2015-04-07 2018-05-11 瑞安安全股份有限公司 The system and method obscured by binary system and memory diversity
CN109033387A (en) * 2018-07-26 2018-12-18 广州大学 A kind of Internet of Things search system, method and storage medium merging multi-source data
CN110688150A (en) * 2019-09-03 2020-01-14 华中科技大学 Binary file code search detection method and system based on tensor operation
CN110705215A (en) * 2019-09-24 2020-01-17 昆山龙腾光电股份有限公司 Encoding method, encoding device and display device of MIPI configuration file

Also Published As

Publication number Publication date
CN111459889A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN111459889B (en) Equipment data model generation method and device for Internet of things platform
US8091071B2 (en) Method and system for template-based code generation
US7152229B2 (en) Workflow code generator
US8356276B2 (en) Flexible code generation
US20090007063A1 (en) System and method for synchronized workflow management
US7150010B1 (en) Unification of a programming language and a definition language
US20090037459A1 (en) Annotation data handlers for data stream processing
CN110990019B (en) Java class analysis method and device, storage medium and electronic equipment
EP2498178A1 (en) Method and device for development environment converting
CN111309335B (en) Compiling method and device of plug-in application and computer readable storage medium
EP1071016A2 (en) Debugger protocol generator
CN106293687B (en) A kind of control method and device being packaged process
CN110362317B (en) Code conversion method, device and storage medium
KR102300005B1 (en) Method and system for assisting software development using connection of graphic objects, each representing a software component
CN108228161B (en) System and method for extending structured command line
CN111259042B (en) Dynamic query method and system
CN112130723B (en) Method and system for performing feature processing on data
CN115964042A (en) Menu generation method and device, storage medium and electronic equipment
US11995096B2 (en) Creation of message serializer for event streaming platform
CN113885844A (en) Business service arranging method and related device
JP2010049439A (en) System construction method using software model and modeling device
WO2008015110A2 (en) Methods, apparatus and computer programs for modelling computer programs
CN118034673B (en) Visual editing generation and dynamic analysis system for equipment model of Internet of things
JP2002132502A (en) Automatic creating system and method of distributed object with interpretation of language function
JP4590907B2 (en) Software development support device and software development support program

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