A method and device for data processing

By prefining the material model of the virtual node on the Internet of Things platform, and maping the device data to the virtual node in the object model, the problem of high operating costs when the Internet equipment access platform is connected to the platform, and the rapid access to the equipment and the realization Data decoupling.

CN114039997BActive Publication Date: 2025-01-24ALIBABA CLOUD COMPUTING CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111234517.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2025-01-24
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

When existing IoT platforms connect IoT devices that do not adopt their platform model protocol to the platform, user operation costs are high and the device access process is complex.

Method used

By preset a model with a virtual node, determine the target data source and obtain the mapping configuration information, and map the data of the target data source to the virtual node in the object model to achieve the decoupling and service call of the device data.

Benefits of technology

The device that has not adopted the Internet platform model protocol with the Internet of Things platform has been achieved quickly accessing the platform, reducing user operating costs, and simplifying the equipment access process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114039997B_ABST
    Figure CN114039997B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for data processing, which is applied to an Internet of Things platform, wherein the Internet of Things platform is connected to an Internet of Things device that does not adopt the platform model protocol of the Internet of Things platform, including: presetting a physical model, wherein the physical model has one or more virtual nodes; determining a configured target data source, and obtaining mapping configuration information for the target data source, wherein the mapping configuration information is used to map the obtained data to data in the physical model; receiving data from the target data source, and mapping the data from the target data source to the target virtual node in the physical model according to the mapping configuration information, for physical model-based service calls in the Internet of Things platform. Through the embodiment of the present invention, it is achieved to help Internet of Things devices that do not adopt the platform model protocol of the Internet of Things platform quickly access the Internet of Things platform, and it is possible to decouple the original data of the Internet of Things device from the physical model in the Internet of Things platform, thereby simplifying the user's operating costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things, and in particular to a method and device for data processing. Background Art

[0002] With the development of IoT technology, there are more and more IoT platforms. Different IoT platforms usually use different platform model protocols. If you need to use the capabilities of a certain IoT platform, but your IoT devices do not use the platform model protocol of the IoT platform, you need to modify the IoT devices and convert their local protocols into the platform model protocol of the IoT platform. However, this method has high operating costs for users. Summary of the invention

[0003] In view of the above problems, a method and device for data processing is proposed to overcome the above problems or at least partially solve the above problems, including:

[0004] A data processing method is applied to an Internet of Things platform, wherein the Internet of Things platform is connected to an Internet of Things device that does not adopt a platform model protocol of the Internet of Things platform, comprising:

[0005] Presetting an object model, wherein the object model has one or more virtual nodes, and the one or more virtual nodes are nodes for describing an IoT device connected to the IoT platform;

[0006] Determine a configured target data source, and obtain mapping configuration information for the target data source, wherein the mapping configuration information is used to map the obtained data to data in the object model;

[0007] Receive data from the target data source, and map the data from the target data source to the target virtual node in the object model according to the mapping configuration information, so as to facilitate service calls based on the object model in the Internet of Things platform, wherein the data from the target data source includes data reported by an Internet of Things device that does not adopt the platform model protocol of the Internet of Things platform.

[0008] Optionally, before mapping the data from the target data source to the target virtual node in the physical model according to the mapping configuration information, the method further includes:

[0009] Obtaining a data parsing script for the target data source;

[0010] When the data from the target data source is data of a non-specified type, data conversion is performed on the data from the target data source according to the data parsing script.

[0011] Optionally, mapping the data from the target data source to the target virtual node in the physical model according to the mapping configuration information includes:

[0012] According to the mapping configuration information, determining a target virtual node corresponding to the data originating from the target data source from one or more virtual nodes of the physical model;

[0013] The data from the target data source is mapped, and the mapped data is written into the target virtual node.

[0014] Optionally, it also includes:

[0015] When the data in the target virtual node changes, the changed data is updated to the user server.

[0016] Optionally, the target data source includes:

[0017] Target topic and target application program interface in communication based on publish / subscribe mode.

[0018] Optionally, the data originating from the target data source is application layer data reported by an IoT device.

[0019] Optionally, the data of the specified type is data in a specified format, and the specified format includes a Json format.

[0020] A data processing device is applied to an Internet of Things platform, wherein the Internet of Things platform is connected to an Internet of Things device that does not adopt a platform model protocol of the Internet of Things platform, comprising:

[0021] A thing model presetting module, used for presetting a thing model, wherein the thing model has one or more virtual nodes, and the one or more virtual nodes are nodes for describing an Internet of Things device connected to the Internet of Things platform;

[0022] A mapping configuration information acquisition module, used to determine a configured target data source and acquire mapping configuration information for the target data source, wherein the mapping configuration information is used to map the acquired data to data in the object model;

[0023] A data mapping module is used to receive data from the target data source and, based on the mapping configuration information, map the data from the target data source to a target virtual node in the object model for service calls based on the object model in the Internet of Things platform. The data from the target data source includes data reported by Internet of Things devices that do not adopt the platform model protocol of the Internet of Things platform.

[0024] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the data processing method as described above when executed by the processor.

[0025] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data processing method described above is implemented.

[0026] The embodiments of the present invention have the following advantages:

[0027] In an embodiment of the present invention, by presetting a physical model with one or more virtual nodes, and determining the configured target data source, mapping configuration information for the target data source is obtained. When data from the target data source is received, the data from the target data source can be mapped to the target virtual node in the physical model according to the mapping configuration information, so as to be used for physical model-based service calls in the Internet of Things platform. This helps Internet of Things devices that do not adopt the platform model protocol of the Internet of Things platform to quickly access the Internet of Things platform, and can decouple the original data of the Internet of Things device from the physical model in the Internet of Things platform, thereby simplifying the user's operating costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0029] Figure 1 is a schematic diagram of a system architecture provided by an embodiment of the present invention;

[0030] Figure 2 is a schematic diagram of a data processing example provided by an embodiment of the present invention;

[0031] Figure 3 is a flowchart of a data processing method provided by an embodiment of the present invention;

[0032] Figure 4 is a flowchart of another data processing method provided by an embodiment of the present invention;

[0033] Figure 5 is a flowchart of another data processing method provided by an embodiment of the present invention;

[0034] Figure 6 It is a structural block diagram of a data processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0036] In order to realize the data access to the Internet of Things platform, such as Figure 1 In the IoT scenario, there are data sources (DataSource), data pipelines (Data Pipeline), and destinations (Destination). The data source can include IoT devices (Device) and user servers (User Server), that is, the data can come from IoT devices or user servers, and the input of the data pipeline comes from the data source.

[0037] If the data received by the data pipeline is simple Json data, it can be directly written to the virtual node (included in Storage, User Server) through the Thing Specification Language (TSL) mapping. If it is complex custom format data, the format and content of the data must be converted and calculated through a script, converted into Json format, and then written to the virtual node (included in Storage, User Server) through the Thing Specification Language (TSL mapping).

[0038] Specifically, Figure 2 , there are users, IoT platforms, user servers, and devices:

[0039] 1: The user uploads the mapping configuration (i.e. mapping configuration information) and mapping script (i.e. data parsing script);

[0040] 1.1: The IoT platform generates configuration rules;

[0041] 1.2: The IoT platform returns a success message to the user;

[0042] 2: The device notifies the IoT platform of its custom data protocol;

[0043] 2.1: The IoT platform sends a success message to the device;

[0044] 2.2: The IoT platform performs script conversion on the data (i.e., converts the data from the target data source according to the data parsing script);

[0045] 2.3: The IoT platform maps the data to the physical model (i.e., according to the mapping configuration information, maps the data from the target data source to the target virtual node in the physical model);

[0046] 2.4: The IoT platform transfers the data to the user server (that is, when the data in the target virtual node changes, the changed data is updated to the user server);

[0047] 2.5: The user server returns a success message to the IoT platform.

[0048] The following is a detailed description:

[0049] Reference Figure 3 , shows a flow chart of steps of a data processing method provided by an embodiment of the present invention, which is applied to an Internet of Things platform. The Internet of Things platform can be connected to an Internet of Things device that does not adopt the platform model protocol of the Internet of Things platform, and specifically may include the following steps:

[0050] Step 301: pre-set an object model, where the object model has one or more virtual nodes, and the one or more virtual nodes are nodes used to describe an IoT device connected to the IoT platform.

[0051] Among them, the object model is the digital representation of the entity on the Internet of Things platform. It can set attributes (describing what the entity is), services (describing what the entity can do), and events (describing what information the entity can provide to the outside world) in three dimensions to complete the definition of product functions. For example, the entity can be a sensor, vehicle-mounted device, building, factory, etc.

[0052] In the Internet of Things platform, a physical model can be set up, and one or more virtual nodes can be set under the physical model. The virtual node can be an information node defined by the physical model, which can be used to describe the Internet of Things devices connected to the Internet of Things platform. Since the virtual node is user-oriented, it describes the user-oriented properties of the Internet of Things device. For example, the device has an attribute representing the speed of the compressor, and the speed affects the temperature of the device for the user, and the user-oriented side is concerned with the temperature attribute, and the user-oriented attribute is based on the device's own attributes.

[0053] Step 302: determine the configured target data source, and obtain mapping configuration information for the target data source, where the mapping configuration information is used to map the obtained data into data in the physical model.

[0054] As an example, an IoT device that does not adopt the platform model protocol of the IoT platform can send data through a target topic or send data through a target application program interface, and the target data source can include any of the following:

[0055] The target topic (Topic) and target application programming interface (API) in the communication based on the publish (Pub) / subscribe (Sub) mode.

[0056] Among them, the communication based on the publish / subscribe mode can be communication using the Message Queuing Telemetry Transport (MQTT) protocol. In the communication based on the publish / subscribe mode, all messages will go to a topic, that is, data is sent to a topic, or data is subscribed from a topic.

[0057] Of course, data sources can be diverse. In addition to the target topic and target application interface in the communication based on the publish / subscribe model, the target data source can also include other data sources, such as binlog (a binary file used to record data updates in relational databases), kafka (a high-performance distributed message queue middleware), etc. The support of data sources can facilitate users to access the IoT platform in different scenarios, avoiding the limitation of some methods that can only specify the source of data, such as only device data from the IoT Hub and only data from the MQTT Topic.

[0058] In the control state, users can configure the target data source, such as choosing which topic the data comes from in the communication based on the publish / subscribe model, and which application program interface the data comes from.

[0059] After configuring the target data source, the user can upload the mapping configuration information for the target data source, or the IoT platform can automatically generate mapping configuration information for the target data source. The IoT platform can learn how to map the data from the target data source to the data in the object model through the mapping configuration information.

[0060] Step 303, receiving data from the target data source, and mapping the data from the target data source to the target virtual node in the physical model according to the mapping configuration information, so as to provide for physical model-based service calls in the IoT platform. The data from the target data source includes data reported by IoT devices that do not adopt the platform model protocol of the IoT platform.

[0061] The data from the target data source may be application layer data reported by the IoT device.

[0062] As mentioned above, virtual nodes are information nodes defined by the physical model, which are used to describe IoT devices connected to the IoT platform. Virtual nodes are user-oriented and describe the user-oriented properties of IoT devices. Due to their user-oriented characteristics, virtual nodes are decoupled from the original data of IoT devices, that is, they do not focus on which IoT device or devices the data comes from, but only on the data source.

[0063] In the running state, when data is received from the target data source, such as in the communication based on the publish / subscribe mode, data sent by the IoT device through the target topic or data sent by the IoT device through the target application program interface is received, the data pipeline in the IoT platform can map the original data to the target virtual node in the object model according to the mapping configuration information. By adopting the object model, there is no need for users to write highly complex scripts by themselves.

[0064] The data pipeline may be a device for mapping device data to object model data.

[0065] In one embodiment of the present invention, mapping data from a target data source to a target virtual node in a physical model according to mapping configuration information may include the following sub-steps:

[0066] According to the mapping configuration information, a target virtual node corresponding to the data from the target data source is determined from one or more virtual nodes of the physical model; the data from the target data source is mapped, and the mapped data is written into the target virtual node.

[0067] Since the physical model has one or more virtual nodes and only focuses on the data source, the target virtual node corresponding to the target data source can be determined from one or more virtual nodes of the physical model according to the mapping configuration information. Then, the data from the target data source can be mapped to the data of the physical model, and then written into the target virtual node in the physical model.

[0068] After the original data is mapped to the user-oriented object model, it can be called by the object model-based services in the IoT platform to provide services to users, such as scenario planning capabilities (such as planning scenarios for the linkage of IoT devices), data analysis capabilities (such as calling the IoT model to analyze the real environment), time series retrieval (retrieval of historical conditions of IoT devices), etc.

[0069] In one embodiment of the present invention, the following steps may also be included:

[0070] When the data in the target virtual node changes, the changed data is updated to the user server.

[0071] After the data is mapped to the target virtual node, if the data in the target virtual node changes, the changed data can be transferred to the user server through data flow, and then the user can be notified.

[0072] In an embodiment of the present invention, by presetting a physical model with one or more virtual nodes, and determining the configured target data source, mapping configuration information for the target data source is obtained. When data from the target data source is received, the data from the target data source can be mapped to the target virtual node in the physical model according to the mapping configuration information, so as to be used for physical model-based service calls in the Internet of Things platform. This helps Internet of Things devices that do not adopt the platform model protocol of the Internet of Things platform to quickly access the Internet of Things platform, and can decouple the original data of the Internet of Things device from the physical model in the Internet of Things platform, thereby simplifying the user's operating costs.

[0073] Reference Figure 4 , shows a flowchart of another data processing method provided by an embodiment of the present invention, which is applied to an Internet of Things platform and may specifically include the following steps:

[0074] Step 401, pre-setting an object model, the object model has one or more virtual nodes, and the one or more virtual nodes are nodes used to describe an IoT device connected to the IoT platform.

[0075] Step 402: determine the configured target data source, and obtain mapping configuration information for the target data source, where the mapping configuration information is used to map the obtained data into data in the object model.

[0076] Step 403: Obtain a data parsing script for the target data source.

[0077] For some data sources, their data is more complex and different from the data of the object model in terms of format, content, etc., then users can upload a data parsing script for the target data source. The data parsing script can process the data format and data content so that the original data of the IoT device can be processed by the script and converted into standard data of the IoT platform.

[0078] Step 404: Receive data from a target data source.

[0079] Step 405: When the data from the target data source is of a non-specified type, data conversion is performed on the data from the target data source according to the data parsing script.

[0080] The data of the specified type is data in a specified format, and the specified format includes a Json format.

[0081] After receiving the data from the target data source, the data may be further analyzed to determine whether it is data of a specified type, such as whether it is data in a Json format.

[0082] If the data is of a specified type, no processing is required and the original data can be directly mapped. If the data is of a non-specified type, a pre-uploaded data parsing script can be used to convert, split, and perform other operations on the original data.

[0083] By judging the data type, capability classification is provided. Users can choose simple configuration mapping and complex data parsing mapping based on data parsing scripts as needed, which simplifies user operation costs.

[0084] Step 406, according to the mapping configuration information, the data from the target data source is mapped to the target virtual node in the physical model for the physical model-based service call in the IoT platform. The data from the target data source includes the data reported by the IoT devices that do not adopt the platform model protocol of the IoT platform.

[0085] Reference Figure 5 , shows a flowchart of another data processing method provided by an embodiment of the present invention, which is applied to an Internet of Things platform and may specifically include the following steps:

[0086] Step 501: pre-set an object model, where the object model has one or more virtual nodes, and the one or more virtual nodes are nodes used to describe an IoT device connected to an IoT platform.

[0087] Step 502: determine the configured target data source, and obtain mapping configuration information for the target data source, where the mapping configuration information is used to map the obtained data into data in the object model.

[0088] Step 503: Obtain a data parsing script for the target data source.

[0089] Step 504: Receive data from a target data source.

[0090] Step 505: When the data from the target data source is of a non-specified type, data conversion is performed on the data from the target data source according to the data parsing script.

[0091] Step 506 : Determine, according to the mapping configuration information, from one or more virtual nodes of the physical model, a target virtual node corresponding to the data originating from the target data source.

[0092] Since the physical model has one or more virtual nodes and only focuses on the data source, the target virtual node corresponding to the target data source can be determined from the one or more virtual nodes of the physical model according to the mapping configuration information.

[0093] Step 507, map the data from the target data source, and write the mapped data into the target virtual node for service calls based on the object model in the Internet of Things platform. The data of the target data source includes data reported by the Internet of Things devices that do not adopt the platform model protocol of the Internet of Things platform.

[0094] Step 508: When the data in the target virtual node changes, the changed data is updated to the user server.

[0095] After the data is mapped to the target virtual node, if the data in the target virtual node changes, the changed data can be transferred to the user server through data flow, and then the user can be notified.

[0096] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0097] Reference Figure 6 , shows a schematic diagram of the structure of a data processing device provided by an embodiment of the present invention, which is applied to an Internet of Things platform, and the Internet of Things platform is connected to an Internet of Things device that does not adopt the platform model protocol of the Internet of Things platform, and specifically may include the following modules:

[0098] The object model presetting module 601 is used to preset the object model, where the object model has one or more virtual nodes, and the one or more virtual nodes are nodes used to describe the IoT devices connected to the IoT platform;

[0099] A mapping configuration information acquisition module 602 is used to determine a configured target data source and acquire mapping configuration information for the target data source, where the mapping configuration information is used to map the acquired data to data in the object model;

[0100] The data mapping module 603 is used to receive data from the target data source, and map the data from the target data source to the target virtual node in the object model according to the mapping configuration information, so as to provide service calls based on the object model in the Internet of Things platform. The data of the target data source includes data reported by Internet of Things devices that do not adopt the platform model protocol of the Internet of Things platform.

[0101] In one embodiment of the present invention, it also includes:

[0102] A data parsing script acquisition module is used to obtain a data parsing script for a target data source;

[0103] The data conversion module is used to convert the data from the target data source according to the data parsing script when the data from the target data source is of a non-specified type.

[0104] In one embodiment of the present invention, the data mapping module 603 includes:

[0105] A target virtual node determination submodule is used to determine, according to the mapping configuration information, a target virtual node corresponding to the data originating from the target data source from one or more virtual nodes of the physical model;

[0106] The mapping data writing submodule is used to map the data from the target data source and write the mapped data into the target virtual node.

[0107] In one embodiment of the present invention, it also includes:

[0108] The data update to the server module is used to update the changed data to the user server when the data in the target virtual node changes.

[0109] In one embodiment of the present invention, the target data source includes:

[0110] Target topic and target application program interface in communication based on publish / subscribe mode.

[0111] In one embodiment of the present invention, the data originating from the target data source is application layer data reported by the IoT device.

[0112] In an embodiment of the present invention, the data of the specified type is data in a specified format, and the specified format includes a Json format.

[0113] An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and the computer program implements the above data processing method when executed by the processor.

[0114] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above data processing method is implemented.

[0115] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0116] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0117] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0118] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0119] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0121] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0122] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0123] The above is a detailed introduction to a data processing method and device provided. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for data processing, characterized in that: Applied to an Internet of Things platform, the Internet of Things platform is connected to an Internet of Things device that does not adopt the platform model protocol of the Internet of Things platform, including: Preset an object model, wherein the object model has one or more virtual nodes, wherein the one or more virtual nodes are nodes for describing an IoT device connected to the IoT platform, the virtual nodes are user-oriented nodes, and the virtual nodes are decoupled from original data of the IoT device; Determine a configured target data source, and obtain mapping configuration information for the target data source, wherein the mapping configuration information is used to map the obtained data to data in the object model; Receive data from the target data source, and map the data from the target data source to a target virtual node in the object model according to the mapping configuration information, so as to be called by a service based on the object model in the Internet of Things platform to provide services for users, wherein the data from the target data source includes data reported by an Internet of Things device that does not adopt the platform model protocol of the Internet of Things platform; When the data in the target virtual node changes, the changed data is updated to the user server to notify the user.

2. The method according to claim 1, characterized in that: Before mapping the data from the target data source to the target virtual node in the physical model according to the mapping configuration information, the method further includes: Obtaining a data parsing script for the target data source; When the data from the target data source is data of a non-specified type, data conversion is performed on the data from the target data source according to the data parsing script.

3. The method according to claim 1 or 2, characterized in that: Mapping the data from the target data source to the target virtual node in the physical model according to the mapping configuration information includes: According to the mapping configuration information, determining a target virtual node corresponding to the data originating from the target data source from one or more virtual nodes of the physical model; The data from the target data source is mapped, and the mapped data is written into the target virtual node.

4. The method according to claim 1, characterized in that: The target data source includes: Target topic and target application program interface in communication based on publish / subscribe mode.

5. The method according to claim 1, characterized in that The data from the target data source is application layer data reported by the IoT device.

6. The method according to claim 2, characterized in that The data of the specified type is data in a specified format, and the specified format includes a Json format.

7. A data processing device, characterized in that: Applied to an Internet of Things platform, the Internet of Things platform is connected to an Internet of Things device that does not adopt the platform model protocol of the Internet of Things platform, including: A thing model presetting module, used for presetting a thing model, wherein the thing model has one or more virtual nodes, wherein the one or more virtual nodes are nodes for describing an IoT device connected to the IoT platform, wherein the virtual nodes are user-oriented nodes, and the virtual nodes are decoupled from the original data of the IoT device; A mapping configuration information acquisition module, used to determine a configured target data source and acquire mapping configuration information for the target data source, wherein the mapping configuration information is used to map the acquired data to data in the object model; A data mapping module, configured to receive data from the target data source, and map the data from the target data source to a target virtual node in the object model according to the mapping configuration information, so as to be used for service calls based on the object model in the Internet of Things platform to provide services for users, wherein the data from the target data source includes data reported by an Internet of Things device that does not adopt the platform model protocol of the Internet of Things platform; Also includes: The data update to the server module is used to update the changed data to the user server when the data in the target virtual node changes, so as to notify the user.

8. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the method for data processing according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for data processing according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Self-adaptive access method and system for heterogeneous equipment of Internet of Things platform

    CN111585958A