An internet of things data processing method and device

By pre-configuring data templates and mapping templates for IoT devices, the problem of repetitive development when connecting new devices to the IoT platform is solved, achieving efficient data conversion and reducing operation and maintenance costs.

CN113127702BActive Publication Date: 2025-12-05ASIAINFO TECH CHINA INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201911418642.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-31
Publication Date
2025-12-05
Estimated Expiration
2039-12-31

AI Technical Summary

Technical Problem

When connecting new IoT devices, IoT platforms need to be reprogrammed and customized or have their scripts interpreted and customized, resulting in poor scalability and high maintenance costs.

Method used

By pre-configuring uplink and downlink binary data templates, string data templates, and metadata mapping templates for IoT devices, automatic conversion between binary and string data can be achieved, reducing repetitive development work.

Benefits of technology

It improves the scalability of the IoT platform, reduces operation and maintenance costs, and reduces the amount of repetitive development work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113127702B_ABST
    Figure CN113127702B_ABST
Patent Text Reader

Abstract

The application discloses an Internet of Things data processing method and device. The method comprises the following steps: receiving original data sent by an Internet of Things device, wherein the original data is binary data; obtaining corresponding uplink binary data templates, uplink string data templates and uplink metadata mapping templates according to the type of the Internet of Things device; and converting the original data based on the uplink binary data templates, the uplink string data templates and the uplink metadata mapping templates to obtain string data corresponding to the original data. Based on the technical scheme disclosed by the application, the scalability of the Internet of Things platform can be effectively improved, the repeated development workload can be reduced, and the operation and maintenance cost of the Internet of Things platform can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of Internet of Things, and particularly relates to an Internet of Things data processing method and device. BACKGROUND

[0002] Internet of Things (IOT) is to connect any object with network through various information sensors according to an agreed protocol, and the object carries out information interaction through information propagation medium to realize intelligent identification, positioning, tracking and supervision and other functions.

[0003] Due to the characteristics of low configuration and resource limitation of Internet of Things devices, the data type used is usually binary data, while the data type used by the Internet of Things platform is other data type, such as string data, for example, JSON format string data. The English full name of JSON is JavaScript Object Notation, and JSON is a data exchange format. This determines that after the Internet of Things platform receives the binary data sent by the Internet of Things device, the binary data needs to be first converted into string data, and then business processing is carried out. Correspondingly, in the process of the Internet of Things platform issuing data, the string data needs to be first converted into binary data, and then the converted binary data is sent to the Internet of Things device.

[0004] At present, the Internet of Things platform mainly adopts the following way for the conversion between string data and binary data: programming customization development or interpretation script customization processing is adopted to realize the conversion between string data and binary data.

[0005] However, the foregoing processing method has some problems: when a new Internet of Things device accesses the Internet of Things platform, programming customization development or interpretation script customization processing needs to be re-performed, the scalability of the Internet of Things platform is poor, a lot of repeated development workload is brought, and the operation and maintenance cost of the Internet of Things platform is increased. SUMMARY

[0006] Therefore, the purpose of the present application is to provide an Internet of Things data processing method and device to solve the problems of poor scalability of the Internet of Things platform, repeated development and high operation and maintenance cost in the prior art.

[0007] To achieve the above purpose, the present application provides the following technical scheme:

[0008] On one hand, the present application provides an Internet of Things data processing method applied to an Internet of Things platform, which comprises the following steps:

[0009] receiving original data sent by an Internet of Things device, the original data being binary data;

[0010] obtaining a corresponding uplink binary data template, an uplink string data template and an uplink metadata mapping template according to the type of the Internet of Things device, wherein the uplink binary data template is used to describe a data structure of raw data generated by the Internet of Things device, the uplink string data template is used to describe a data structure of uplink string data corresponding to the Internet of Things device and identifiable by the Internet of Things platform, and the uplink metadata mapping template is used to describe a mapping relationship of metadata in the uplink binary data template and the uplink string data template;

[0011] converting the raw data based on the uplink binary data template, the uplink string data template and the uplink metadata mapping template to obtain string data corresponding to the raw data.

[0012] Optionally, based on the above method, further comprising:

[0013] obtaining downlink string data to be sent to a target Internet of Things device;

[0014] obtaining a corresponding downlink binary data template, a downlink string data template and a downlink metadata mapping template according to the type of the target Internet of Things device, wherein the downlink binary data template is used to describe a data structure of downlink binary data identifiable by the target Internet of Things device, the downlink string data template is used to describe a data structure of downlink string data corresponding to the target Internet of Things device and generated by the Internet of Things platform, and the downlink metadata mapping template is used to describe a mapping relationship of metadata in the downlink binary data template and the downlink string data template;

[0015] converting the downlink string data based on the downlink binary data template, the downlink string data template and the downlink metadata mapping template to obtain binary data corresponding to the downlink string data;

[0016] sending the converted binary data to the target Internet of Things device.

[0017] Optionally, based on the above method, further comprising:

[0018] previously constructing an uplink template set corresponding to the Internet of Things device, wherein the uplink template set comprises an uplink binary data template, an uplink string data template and an uplink metadata mapping template corresponding to the Internet of Things device;

[0019] previously constructing a downlink template set corresponding to the Internet of Things device, wherein the downlink template set comprises a downlink binary data template, a downlink string data template and a downlink metadata mapping template corresponding to the Internet of Things device.

[0020] Optionally, a set of uplink templates corresponding to the Internet of Things device is constructed in advance, comprising:

[0021] An uplink binary data template corresponding to the Internet of Things device is configured, and the uplink binary data template is used to describe a data structure of original data generated by the Internet of Things device;

[0022] An uplink string data template corresponding to the Internet of Things device is configured, and the uplink string data template is used to describe a data structure of uplink string data corresponding to the Internet of Things device and recognizable by the Internet of Things platform;

[0023] A mapping relationship between metadata in the uplink binary data template and metadata in the uplink string data template is determined, and an uplink metadata mapping template describing the mapping relationship is generated.

[0024] Optionally, a set of downlink templates corresponding to the Internet of Things device is constructed in advance, comprising:

[0025] A downlink binary data template corresponding to the Internet of Things device is configured, and the downlink binary data template is used to describe a data structure of downlink binary data recognizable by the Internet of Things device;

[0026] A downlink string data template corresponding to the Internet of Things device is configured, and the downlink string data template is used to describe a data structure of downlink string data corresponding to the Internet of Things device and recognizable by the Internet of Things platform;

[0027] A mapping relationship between metadata in the downlink binary data template and metadata in the downlink string data template is determined, and a downlink metadata mapping template describing the mapping relationship is generated.

[0028] In another aspect, the application provides an Internet of Things data processing device applied to an Internet of Things platform, comprising:

[0029] A data receiving unit is configured to receive original data sent by an Internet of Things device, wherein the original data is binary data;

[0030] An uplink template obtaining unit is configured to obtain corresponding uplink binary data templates, uplink string data templates and uplink metadata mapping templates according to a type of the Internet of Things device, wherein the uplink binary data templates are used to describe a data structure of original data generated by the Internet of Things device, the uplink string data templates are used to describe a data structure of uplink string data corresponding to the Internet of Things device and recognizable by the Internet of Things platform, and the uplink metadata mapping templates are used to describe a mapping relationship between metadata in the uplink binary data templates and metadata in the uplink string data templates;

[0031] The first data conversion unit is configured to convert the original data based on the uplink binary data template, the uplink string data template and the uplink metadata mapping template to obtain string data corresponding to the original data.

[0032] Optionally, the device further includes:

[0033] The to-be-sent data obtaining unit is configured to obtain downlink string data to be sent to the target IoT device.

[0034] The downlink template obtaining unit is configured to obtain a corresponding downlink binary data template, a downlink string data template and a downlink metadata mapping template according to the type of the target IoT device, wherein the downlink binary data template is used to describe a data structure of downlink binary data recognizable by the target IoT device, the downlink string data template is used to describe a data structure of downlink string data corresponding to the target IoT device and generated by the IoT platform, and the downlink metadata mapping template is used to describe a mapping relationship of metadata in the downlink binary data template and the downlink string data template.

[0035] The second data conversion unit is configured to convert the downlink string data based on the downlink binary data template, the downlink string data template and the downlink metadata mapping template to obtain binary data corresponding to the downlink string data.

[0036] The data sending unit is configured to send the converted binary data to the target IoT device.

[0037] Optionally, the device further includes a preprocessing unit.

[0038] The preprocessing unit is configured to pre-construct an uplink template set corresponding to an IoT device, and the uplink template set includes an uplink binary data template, an uplink string data template and an uplink metadata mapping template corresponding to the IoT device; and pre-construct a downlink template set corresponding to an IoT device, and the downlink template set includes a downlink binary data template, a downlink string data template and a downlink metadata mapping template corresponding to the IoT device.

[0039] Optionally, the preprocessing unit pre-constructs an uplink template set corresponding to an IoT device, and the specific process includes:

[0040] The uplink binary data template corresponding to the IoT device is configured to describe a data structure of original data generated by the IoT device.

[0041] configure an uplink string data template corresponding to the IoT device, the uplink string data template being used to describe a data structure of uplink string data corresponding to the IoT device and recognizable by the IoT platform;

[0042] determine a mapping relationship between metadata in the uplink binary data template and metadata in the uplink string data template, and generate an uplink metadata mapping template describing the mapping relationship.

[0043] Optionally, the preprocessing unit pre-constructs a downlink template set corresponding to the IoT device, specifically:

[0044] configure a downlink binary data template corresponding to the IoT device, the downlink binary data template being used to describe a data structure of downlink binary data recognizable by the IoT device;

[0045] configure a downlink string data template corresponding to the IoT device, the downlink string data template being used to describe a data structure of downlink string data corresponding to the IoT device and recognizable by the IoT platform;

[0046] determine a mapping relationship between metadata in the downlink binary data template and metadata in the downlink string data template, and generate a downlink metadata mapping template describing the mapping relationship.

[0047] Therefore, the application has the following beneficial effects:

[0048] The IoT data processing method disclosed in the application, after the IoT platform receives binary data sent by an IoT device, obtains an uplink binary data template, an uplink string data template and an uplink metadata mapping template corresponding to the IoT device, the uplink metadata mapping template being capable of describing a mapping relationship between metadata in the uplink binary data template and the uplink string data template, and the IoT platform can convert binary data into string data based on the uplink binary data template, the uplink string data template and the uplink metadata mapping template. When a new IoT device accesses the IoT platform, the uplink binary data template, the uplink string data template and the uplink metadata mapping template corresponding to the newly-accessed IoT device only need to be configured, and binary data sent by the IoT platform can be converted into string data without the need of re-programming, customized development or re-interpretation script customization processing, which can effectively improve the scalability of the IoT platform, reduce the workload of repeated development and reduce the operation and maintenance cost of the IoT platform. BRIEF DESCRIPTION OF DRAWINGS

[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings described below are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.

[0050] Figure 1 A flow chart of a method for processing data of Internet of Things disclosed by the present application;

[0051] Figure 2 A flow chart of another method for processing data of Internet of Things disclosed by the present application;

[0052] Figure 3 A structural schematic diagram of a device for processing data of Internet of Things disclosed by the present application;

[0053] Figure 4 A structural schematic diagram of another device for processing data of Internet of Things disclosed by the present application. DETAILED DESCRIPTION

[0054] The present application provides a method and device for processing data of Internet of Things, which realizes the conversion between binary data and string data according to uplink binary data templates, uplink string data templates, uplink metadata mapping templates, downlink binary data templates, downlink string data templates and downlink metadata mapping templates corresponding to the types of Internet of Things devices, so as to solve the problems of poor scalability, repeated development and high operation and maintenance cost of Internet of Things platform in the prior art.

[0055] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0056] Referring to Figure 1 , Figure 1 A flow chart of a method for processing data of Internet of Things disclosed by the present application. The method comprises:

[0057] Step S1: receiving original data sent by an Internet of Things device.

[0058] The original data sent by the Internet of Things device is binary data.

[0059] Here, the binary data and the string data are described.

[0060] Binary data is a sequence of one or more octets (or bytes). There are two differences between binary data and string data: first, binary data explicitly allows the storage of zero-valued bytes as well as other "unprintable" bytes (typically bytes outside the range 32 to 126). String data does not allow zero bytes, and does not allow any other byte values or sequences of byte values that are illegal for the selected character set encoding of the database. Second, operations on binary data deal with the actual bytes, while string data processing and retrieval depend on the locale. Simply put, binary data is suitable for storing data that is considered "raw bytes", while string data is suitable for storing text.

[0061] Step S2: Obtain the corresponding uplink binary data template, uplink string data template and uplink metadata mapping template according to the type of the Internet of Things device.

[0062] The uplink binary data template is used to describe the data structure of the raw data generated by the Internet of Things device. The uplink string data template is used to describe the data structure of the uplink string data corresponding to the Internet of Things device that can be recognized by the Internet of Things platform. The uplink metadata mapping template is used to describe the mapping relationship of the metadata in the uplink binary data template and the uplink string data template.

[0063] It should be noted that each type of Internet of Things device is pre-configured with a corresponding uplink binary data template, uplink string data template and uplink metadata mapping template. After receiving the raw data sent by the Internet of Things device, the corresponding uplink binary data template, uplink string data template and uplink metadata mapping template can be obtained according to the type of the Internet of Things device.

[0064] It should be noted that the type of the Internet of Things device includes the type of the Internet of Things device and the model of the Internet of Things device. That is, Internet of Things devices of different models are pre-configured with corresponding templates respectively.

[0065] The metadata in the string data will be described below with two examples.

[0066] Table 1 is the gas meter alarm information, and the binary content in the gas meter alarm information is the metadata.

[0067] Table 1

[0068]

[0069] Table 2 is satellite observation value information, and the binary content in the satellite observation value information is the metadata.

[0070] Table 2

[0071]

[0072] Here is a simple example to illustrate the function of the uplink metadata mapping template.

[0073] A string data of the IoT platform is as follows:

[0074] {

[0075] "gender":"male"

[0076] }

[0077] The description of "gender" in the string data is as follows: male represents male, and female represents female.

[0078] The binary data of the IoT device is as follows: 01001001

[0080] The description of the first bit of the above binary data is as follows: 0 represents male, and 1 represents female.

[0081] The uplink metadata mapping template contains the description information of the mapping relationship between "gender" in the string data and the first bit of the binary data. After the IoT platform receives the binary data sent by the IoT device, if the first bit of the binary data is "0", the IoT platform converts the first bit of the binary data into "gender.male"; if the first bit of the binary data is "1", the IoT platform converts the first bit of the binary data into "gender.female".

[0082] Step S3: Based on the uplink binary data template, the uplink string data template and the uplink metadata mapping template corresponding to the IoT device, the original data is converted to obtain the string data corresponding to the original data.

[0083] The uplink binary data template is used to describe the data structure of the original data generated by the IoT device, the uplink string data template is used to describe the data structure of the uplink string data corresponding to the IoT device which can be recognized by the IoT platform, and the uplink metadata mapping template can describe the mapping relationship between the metadata in the uplink binary data template and the uplink string data template. After the IoT platform receives the binary data sent by the IoT device, according to the uplink binary data template, the uplink string data template and the uplink metadata mapping template corresponding to the IoT device, the metadata in the binary data can be converted into the metadata in the string data, so as to complete the conversion of the binary data into the string data.

[0084] The present application Figure 1The shown Internet of Things data processing method, after the Internet of Things platform receives the binary data sent by the Internet of Things device, obtains the uplink binary data template, the uplink string data template and the uplink metadata mapping template corresponding to the Internet of Things device, the uplink metadata mapping template can describe the mapping relationship of the metadata in the uplink binary data template and the uplink string data template, and the Internet of Things platform can convert the binary data into string data based on the uplink binary data template, the uplink string data template and the uplink metadata mapping template. When a new Internet of Things device accesses the Internet of Things platform, only the corresponding uplink binary data template, uplink string data template and uplink metadata mapping template need to be configured for the newly accessed Internet of Things device, so that the binary data sent by the Internet of Things platform can be converted into string data, without the need for reprogramming customization development or re-interpretation script customization processing, which can effectively improve the scalability of the Internet of Things platform, reduce the repeated development workload, and reduce the operation and maintenance cost of the Internet of Things platform.

[0085] Referring to Figure 2 , Figure 2 is a flowchart of another Internet of Things data processing method disclosed in the present application. The method comprises:

[0086] Step S1: receiving the original data sent by the Internet of Things device.

[0087] Among them, the original data sent by the Internet of Things device is binary data.

[0088] Step S2: obtaining the corresponding uplink binary data template, uplink string data template and uplink metadata mapping template according to the type of the Internet of Things device.

[0089] Among them, the uplink binary data template is used to describe the data structure of the original data generated by the Internet of Things device. The uplink string data template is used to describe the data structure of the uplink string data corresponding to the Internet of Things device which can be recognized by the Internet of Things platform. The uplink metadata mapping template is used to describe the mapping relationship of the metadata in the uplink binary data template and the uplink string data template.

[0090] Step S3: converting the original data based on the uplink metadata mapping template to obtain the string data corresponding to the original data.

[0091] Step S4: obtaining the downlink string data to be sent to the target Internet of Things device.

[0092] Step S5: obtaining the corresponding downlink binary data template, downlink string data template and downlink metadata mapping template according to the type of the target Internet of Things device.

[0093] The downlink binary data template is used to describe a data structure of downlink binary data that can be recognized by the target IoT device. The downlink string data template is used to describe a data structure of downlink string data generated by the IoT platform and corresponding to the target IoT device. The downlink metadata mapping template is used to describe a mapping relationship of metadata in the downlink binary data template and the downlink string data template.

[0094] It should be noted that each type of IoT device is preconfigured with corresponding downlink binary data templates, downlink string data templates, and downlink metadata mapping templates. After obtaining the downlink string data to be sent to the target IoT device, the corresponding downlink binary data template, downlink string data template, and downlink metadata mapping template can be obtained according to the type of the target IoT device.

[0095] Here, the function of the downlink metadata mapping template is still described by using the example in the above.

[0096] A string data of the IoT platform is as follows:

[0097] {

[0098] "gender":"male"

[0099] }

[0100] The description of "gender" in the string data is as follows: male represents male, and female represents female.

[0101] The binary data of the IoT device is as follows: 01001001

[0103] The description of the first bit of the above binary data is as follows: 0 represents male, and 1 represents female.

[0104] The downlink metadata mapping template contains description information of a mapping relationship of "gender" in the string data and the first bit of the binary data. After the IoT platform generates the string data, if the string data contains "gender.male", the metadata is converted into the first bit "0" in the binary data; if the string data contains "gender.female", the metadata is converted into the first bit "1" in the binary data.

[0105] Step S6: converting the downlink string data based on the downlink binary data template, the downlink string data template, and the downlink metadata mapping template to obtain binary data corresponding to the downlink string data.

[0106] The downlink binary data template is used to describe a data structure of downlink binary data that can be identified by the target IoT device, the downlink string data template is used to describe a data structure of downlink string data generated by the IoT platform and corresponding to the target IoT device, and the downlink metadata mapping template can describe a mapping relationship of metadata in the downlink binary data template and the downlink string data template. After the IoT platform generates the string data to be sent, the metadata in the string data can be converted into metadata in binary data according to the downlink binary data template, the downlink string data template and the downlink metadata mapping template corresponding to the target IoT device, so as to complete the conversion of the string data into binary data.

[0107] Step S7: sending the binary data to the target IoT device.

[0108] The present application Figure 2 The IoT data processing method shown in the figure, after the IoT platform receives the binary data sent by the IoT device, obtains the uplink binary data template, the uplink string data template and the uplink metadata mapping template corresponding to the IoT device, the uplink metadata mapping template can describe the mapping relationship of metadata in the uplink binary data template and the uplink string data template, the IoT platform can convert the binary data into string data based on the uplink binary data template, the uplink string data template and the uplink metadata mapping template; after the IoT platform generates the string data to be sent to the target IoT device, obtains the downlink binary data template, the downlink string data template and the downlink metadata mapping template corresponding to the target IoT device, the downlink metadata mapping template can describe the mapping relationship of metadata in the downlink binary data template and the downlink string data template, and the IoT platform can convert the string data into binary data based on the downlink binary data template, the downlink string data template and the downlink metadata mapping template.

[0109] When a new IoT device accesses the IoT platform, only the corresponding uplink binary data template, uplink string data template, uplink metadata mapping template, downlink binary data template, downlink string data template and downlink metadata mapping template need to be configured for the newly accessed IoT device, so that the binary data sent by the IoT platform can be converted into string data, and the string data to be sent to the IoT device can be converted into binary data, without the need for re-programming customization development or re-interpretation script customization processing, which can effectively improve the scalability of the IoT platform, reduce the workload of repeated development, and reduce the operation and maintenance cost of the IoT platform.

[0110] It should be noted that the present application Figure 1 and Figure 2The illustrated Internet of Things data processing method can be executed by a metadata analysis engine in the Internet of Things platform.

[0111] In another embodiment, on the basis of the Internet of Things data processing method disclosed above in the present application, further comprising:

[0112] The uplink template set corresponding to the Internet of Things device is constructed in advance, and the downlink template set corresponding to the Internet of Things device is constructed in advance. The uplink template set includes uplink binary data templates, uplink string data templates and uplink metadata mapping templates corresponding to the Internet of Things device, and the downlink template set includes downlink binary data templates, downlink string data templates and downlink metadata mapping templates corresponding to the Internet of Things device.

[0113] It should be noted that in the process of initializing the Internet of Things platform, the uplink template set and the downlink template set corresponding to the Internet of Things device need to be constructed. For multiple types of Internet of Things devices accessing the Internet of Things platform, the uplink template set and the downlink template set corresponding to each type of Internet of Things device need to be constructed respectively. In addition, when a new Internet of Things device accesses the Internet of Things platform, the uplink template set and the downlink template set corresponding to the newly accessed Internet of Things device need to be constructed.

[0114] The process of constructing the uplink template set corresponding to the Internet of Things device is described below. Specifically, it includes:

[0115] 1) Configure the uplink binary data template corresponding to the Internet of Things device. The uplink binary data template is used to describe the data structure of the original data generated by the Internet of Things device.

[0116] 2) Configure the uplink string data template corresponding to the Internet of Things device. The uplink string data template is used to describe the data structure of the uplink string data corresponding to the Internet of Things device that can be recognized by the Internet of Things platform.

[0117] 3) Determine the mapping relationship between the metadata in the uplink binary data template and the metadata in the uplink string data template, and generate an uplink metadata mapping template describing the mapping relationship.

[0118] The process of constructing the downlink template set corresponding to the Internet of Things device is described below. Specifically, it includes:

[0119] 1) Configure the downlink binary data template corresponding to the Internet of Things device. The downlink binary data template is used to describe the data structure of the downlink binary data that can be recognized by the Internet of Things device.

[0120] 2), configure the downlink string data template corresponding to the Internet of Things device. The downlink string data template is used to describe the data structure of the downlink string data corresponding to the Internet of Things device which can be recognized by the Internet of Things platform;

[0121] 3), determine the mapping relationship between the metadata in the above-mentioned downlink binary data template and the metadata in the downlink string data template, and generate a downlink metadata mapping template describing the mapping relationship.

[0122] Here, the process of constructing the uplink template set and the downlink template set corresponding to the gas meter is described:

[0123] 1), configure the uplink binary data template corresponding to the gas meter. The uplink binary data template is used to describe the data structure of the original data generated by the gas meter.

[0124] 2), configure the uplink string data template corresponding to the gas meter. The uplink string data template is used to describe the data structure of the uplink string data corresponding to the gas meter which can be recognized by the Internet of Things platform.

[0125] 3), determine the mapping relationship between the metadata in the above-mentioned uplink binary data template and the metadata in the uplink string data template, and generate an uplink metadata mapping template describing the mapping relationship.

[0126] 4), configure the downlink binary data template corresponding to the gas meter. The downlink binary data template is used to describe the data structure of the downlink binary data which can be recognized by the gas meter.

[0127] 5), configure the downlink string data template corresponding to the gas meter. The downlink string data template is used to describe the data structure of the downlink string data corresponding to the gas meter which can be recognized by the Internet of Things platform;

[0128] 6), determine the mapping relationship between the metadata in the above-mentioned downlink binary data template and the metadata in the downlink string data template, and generate a downlink metadata mapping template describing the mapping relationship.

[0129] The above disclosure of the present application discloses an Internet of Things data processing method. Correspondingly, the present application also discloses an Internet of Things data processing device. The Internet of Things data processing device disclosed by the present application is arranged in the Internet of Things platform. The description of the Internet of Things data processing method and the Internet of Things data processing device in the specification can be mutually referred to.

[0130] Reference Figure 3 , Figure 3 is a structural schematic diagram of an Internet of Things data processing device disclosed by the present application. The device includes a data receiving unit 101, an uplink template obtaining unit 102, and a first data conversion unit 103.

[0131] Wherein:

[0132] The data receiving unit 101 is configured to receive original data sent by the Internet of Things device. The original data is binary data.

[0133] The uplink template obtaining unit 102 is configured to obtain corresponding uplink binary data templates, uplink string data templates and uplink metadata mapping templates according to the type of the Internet of Things device.

[0134] The uplink binary data template is used to describe the data structure of the original data generated by the Internet of Things device. The uplink string data template is used to describe the data structure of the uplink string data corresponding to the Internet of Things device which can be recognized by the Internet of Things platform. The uplink metadata mapping template is used to describe the mapping relationship of the metadata in the uplink binary data template and the uplink string data template.

[0135] The first data conversion unit 103 is configured to convert the original data based on the uplink binary data template, the uplink string data template and the uplink metadata mapping template corresponding to the Internet of Things device, to obtain string data corresponding to the original data.

[0136] Based on the Internet of Things data processing device shown in the figure, when a new Internet of Things device accesses the Internet of Things platform, only the corresponding uplink binary data template, uplink string data template and uplink metadata mapping template need to be configured for the newly accessed Internet of Things device, so that the binary data sent by the Internet of Things platform can be converted into string data without the need for re-programming customization development or re-interpretation script customization processing, which can effectively improve the scalability of the Internet of Things platform, reduce the workload of repeated development, and reduce the operation and maintenance cost of the Internet of Things platform. Figure 3 Referring to

[0137] , Figure 4 , Figure 4 is another structural schematic diagram of the Internet of Things data processing device disclosed in the present application. The device comprises a data receiving unit 101, an uplink template obtaining unit 102, a first data conversion unit 103, a to-be-sent data obtaining unit 104, a downlink template obtaining unit 105, a second data conversion unit 106 and a data sending unit 107.

[0138] Wherein:

[0139] The to-be-sent data obtaining unit 104 is configured to obtain downlink string data to be sent to the target Internet of Things device.

[0140] The downlink template obtaining unit 105 is configured to obtain corresponding downlink binary data templates, downlink string data templates and downlink metadata mapping templates according to the type of the target Internet of Things device.

[0141] The downlink binary data template is used to describe a data structure of downlink binary data that can be identified by the target Internet of Things device. The downlink string data template is used to describe a data structure of downlink string data generated by the Internet of Things platform and corresponding to the target Internet of Things device. The downlink metadata mapping template is used to describe a mapping relationship of metadata in the downlink binary data template and the downlink string data template.

[0142] The second data conversion unit 106 is configured to convert the downlink string data based on the downlink binary data template, the downlink string data template and the downlink metadata mapping template corresponding to the target Internet of Things device, to obtain binary data corresponding to the downlink string data.

[0143] The data sending unit 107 is configured to send the converted binary data to the target Internet of Things device.

[0144] Based on the Internet of Things data processing apparatus shown in the present application Figure 4 When a new Internet of Things device accesses the Internet of Things platform, the Internet of Things data processing apparatus shown in the present application only needs to configure corresponding uplink binary data templates, uplink string data templates, uplink metadata mapping templates, downlink binary data templates, downlink string data templates and downlink metadata mapping templates for the newly accessed Internet of Things device, so as to convert binary data sent by the Internet of Things platform into string data and convert string data to be sent to the Internet of Things device into binary data, without the need for re-programming customized development or re-interpretation script customized processing, which can effectively improve the scalability of the Internet of Things platform, reduce the workload of repeated development, and reduce the operation and maintenance cost of the Internet of Things platform.

[0145] In another embodiment, on the basis of the Internet of Things data processing apparatus shown in the present application Figure 4 The preprocessing unit is further arranged on the basis of the Internet of Things data processing apparatus shown in the present application.

[0146] The preprocessing unit is further arranged on the basis of the Internet of Things data processing apparatus shown in the present application.

[0147] Optionally, the preprocessing unit pre-constructs the uplink template set corresponding to the Internet of Things device, and specifically:

[0148] The uplink binary data template corresponding to the Internet of Things device is configured, and the uplink binary data template is used to describe the data structure of the original data generated by the Internet of Things device; the uplink string data template corresponding to the Internet of Things device is configured, and the uplink string data template is used to describe the data structure of the uplink string data corresponding to the Internet of Things device which can be recognized by the Internet of Things platform; the mapping relationship between the metadata in the uplink binary data template and the metadata in the uplink string data template is determined, and the uplink metadata mapping template describing the mapping relationship is generated.

[0149] Optionally, the preprocessing unit pre-constructs a downlink template set corresponding to the Internet of Things device, specifically:

[0150] The downlink binary data template corresponding to the Internet of Things device is configured, and the downlink binary data template is used to describe the data structure of the downlink binary data which can be recognized by the Internet of Things device; the downlink string data template corresponding to the Internet of Things device is configured, and the downlink string data template is used to describe the data structure of the downlink string data corresponding to the Internet of Things device which can be recognized by the Internet of Things platform; the mapping relationship between the metadata in the downlink binary data template and the metadata in the downlink string data template is determined, and the downlink metadata mapping template describing the mapping relationship is generated.

[0151] Finally, it should be noted that in this document, the terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0152] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed by the embodiments, since it corresponds to the method disclosed by the embodiments, the description is relatively simple, and the relevant part can be referred to the method part.

[0153] The foregoing description of the disclosed embodiments enables a person skilled in the art to make or use the application. Modifications of these embodiments will occur to persons of skill in the art, and that the generic principles defined herein can be applied to other embodiments without departing from the spirit or scope of the application. Therefore, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An Internet of Things (IoT) data processing method, applied to an IoT platform, characterized in that, The method comprises: receiving original data sent by an Internet of Things device, the original data being binary data; obtaining corresponding uplink binary data templates, uplink string data templates and uplink metadata mapping templates according to the type of the Internet of Things device, wherein each type of Internet of Things device is preconfigured with corresponding uplink binary data templates, uplink string data templates and uplink metadata mapping templates, the uplink binary data templates being used to describe the data structure of original data generated by the Internet of Things device, the uplink string data templates being used to describe the data structure of uplink string data corresponding to the Internet of Things device and identifiable by the Internet of Things platform, and the uplink metadata mapping templates being used to describe the mapping relationship of metadata in the uplink binary data templates and the uplink string data templates; converting the original data based on the uplink binary data templates, the uplink string data templates and the uplink metadata mapping templates to obtain string data corresponding to the original data; Further comprising: previously constructing an uplink template set corresponding to an Internet of Things device, the uplink template set comprising uplink binary data templates, uplink string data templates and uplink metadata mapping templates corresponding to the Internet of Things device; previously constructing a downlink template set corresponding to an Internet of Things device, the downlink template set comprising downlink binary data templates, downlink string data templates and downlink metadata mapping templates corresponding to the Internet of Things device.

2. The method of claim 1, wherein, Further comprising: obtaining downlink string data to be sent to a target Internet of Things device; obtaining corresponding downlink binary data templates, downlink string data templates and downlink metadata mapping templates according to the type of the target Internet of Things device, wherein the downlink binary data templates are used to describe the data structure of downlink binary data identifiable by the target Internet of Things device, the downlink string data templates are used to describe the data structure of downlink string data corresponding to the target Internet of Things device and generated by the Internet of Things platform, and the downlink metadata mapping templates are used to describe the mapping relationship of metadata in the downlink binary data templates and the downlink string data templates; converting the downlink string data based on the downlink binary data templates, the downlink string data templates and the downlink metadata mapping templates to obtain binary data corresponding to the downlink string data; sending the converted binary data to the target Internet of Things device.

3. The method of claim 1, wherein, Previously constructing an uplink template set corresponding to an Internet of Things device comprises: configuring uplink binary data templates corresponding to the Internet of Things device, the uplink binary data templates being used to describe the data structure of original data generated by the Internet of Things device; configuring uplink string data templates corresponding to the Internet of Things device, the uplink string data templates being used to describe the data structure of uplink string data corresponding to the Internet of Things device and identifiable by the Internet of Things platform; Determine a mapping relationship between metadata in the uplink binary data template and metadata in the uplink string data template, and generate an uplink metadata mapping template describing the mapping relationship.

4. The method of claim 1, wherein, Pre-construct a downlink template set corresponding to the Internet of Things device, including: Configure a downlink binary data template corresponding to the Internet of Things device, which is used to describe the data structure of downlink binary data that can be recognized by the Internet of Things device; Configure a downlink string data template corresponding to the Internet of Things device, which is used to describe the data structure of downlink string data corresponding to the Internet of Things device that can be recognized by the Internet of Things platform; Determine a mapping relationship between metadata in the downlink binary data template and metadata in the downlink string data template, and generate a downlink metadata mapping template describing the mapping relationship.

5. An Internet of Things data processing apparatus, applied to an Internet of Things platform, characterized in that, The device includes: A data receiving unit configured to receive raw data sent by an Internet of Things device, the raw data being binary data; An uplink template obtaining unit configured to obtain a corresponding uplink binary data template, uplink string data template, and uplink metadata mapping template according to the type of the Internet of Things device, wherein each type of Internet of Things device is pre-configured with a corresponding uplink binary data template, uplink string data template, and uplink metadata mapping template, the uplink binary data template being used to describe the data structure of raw data generated by the Internet of Things device, the uplink string data template being used to describe the data structure of uplink string data corresponding to the Internet of Things device that can be recognized by the Internet of Things platform, and the uplink metadata mapping template being used to describe the mapping relationship between metadata in the uplink binary data template and metadata in the uplink string data template; A first data conversion unit configured to convert the raw data based on the uplink binary data template, the uplink string data template, and the uplink metadata mapping template to obtain string data corresponding to the raw data; Further comprising a preprocessing unit; The preprocessing unit is configured to pre-construct an uplink template set corresponding to the Internet of Things device, the uplink template set including an uplink binary data template, an uplink string data template, and an uplink metadata mapping template corresponding to the Internet of Things device; and pre-construct a downlink template set corresponding to the Internet of Things device, the downlink template set including a downlink binary data template, a downlink string data template, and a downlink metadata mapping template corresponding to the Internet of Things device.

6. The apparatus of claim 5, wherein, Further comprising: A to-be-sent data obtaining unit configured to obtain downlink string data to be sent to a target Internet of Things device; obtain, according to a type of the target Internet of Things device, a corresponding downlink binary data template, a downlink string data template and a downlink metadata mapping template, wherein the downlink binary data template is used to describe a data structure of downlink binary data recognizable by the target Internet of Things device, the downlink string data template is used to describe a data structure of downlink string data corresponding to the target Internet of Things device and generated by the Internet of Things platform, and the downlink metadata mapping template is used to describe a mapping relationship of metadata in the downlink binary data template and the downlink string data template; convert the downlink string data based on the downlink binary data template, the downlink string data template and the downlink metadata mapping template, to obtain binary data corresponding to the downlink string data; send the converted binary data to the target Internet of Things device.

7. The apparatus of claim 5, wherein, The preprocessing unit pre-constructs an uplink template set corresponding to an Internet of Things device, specifically: configuring an uplink binary data template corresponding to the Internet of Things device, the uplink binary data template being used to describe a data structure of original data generated by the Internet of Things device; configuring an uplink string data template corresponding to the Internet of Things device, the uplink string data template being used to describe a data structure of uplink string data corresponding to the Internet of Things device and recognizable by the Internet of Things platform; determining a mapping relationship of metadata in the uplink binary data template and metadata in the uplink string data template, and generating an uplink metadata mapping template describing the mapping relationship.

8. The apparatus of claim 5, wherein, The preprocessing unit pre-constructs a downlink template set corresponding to an Internet of Things device, specifically: configuring a downlink binary data template corresponding to the Internet of Things device, the downlink binary data template being used to describe a data structure of downlink binary data recognizable by the Internet of Things device; configuring a downlink string data template corresponding to the Internet of Things device, the downlink string data template being used to describe a data structure of downlink string data corresponding to the Internet of Things device and recognizable by the Internet of Things platform; determining a mapping relationship of metadata in the downlink binary data template and metadata in the downlink string data template, and generating a downlink metadata mapping template describing the mapping relationship.

Citation Information

Patent Citations

  • Data processing method, device and equipment based on file mapping

    CN110147536A

  • Method and system for self-adaption of multi-protocol Internet of Things equipment

    CN110430219A