Internet of Things Terminal Object Model Standardization Processing Method, Device, Computer Equipment and Storage Medium

Through the standardized processing method of the IoT terminal object model, the problem of terminal manual configuration errors is solved, efficient management of terminals and unified object model generation is realized, and management efficiency is improved.

CN114297215BActive Publication Date: 2025-07-04E SURFING IOT CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111662005.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2025-07-04
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

Existing IoT terminals need to manually configure object models when accessing management platforms, resulting in frequent configuration errors and the inability to efficiently manage a large number of terminal devices.

Method used

It provides a standardized processing method for the IoT terminal object model. By requesting the terminal to upload object model data or format log data, it generates and stores the corresponding object model, ensuring that the object model can be generated and managed regardless of whether the terminal supports uploading.

Benefits of technology

It improves the efficiency of the terminal management of the Internet of Things management platform, reduces configuration errors, and realizes unified management of different types of terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114297215B_ABST
    Figure CN114297215B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention discloses a method, device, computer device, and storage medium for standardizing the physical model of an Internet of Things (IoT) terminal. The method includes: requesting IoT terminals connected to itself to upload their respective physical model data; if an IoT terminal supports uploading its own physical model data, updating a first physical model that matches the physical model data according to the physical model data uploaded by the IoT terminal; if an IoT terminal does not support uploading its own physical model data, obtaining the physical model log of the IoT terminal and performing formatting processing on the log data in the physical model log to obtain target log data; sending the target log data to a big data platform so that the big data platform generates a second physical model based on the target log data; and if the second physical model is received, storing the second physical model. The present invention can generate a physical model that matches the IoT terminal, improving the convenience of managing the IoT terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of the Internet of Things, and particularly to a method, device, computer device, and storage medium for standardizing the physical model of an Internet of Things terminal. Background Art

[0002] With the exponential growth of the number of connections between Internet of Things terminals and the Internet of Things, the operation and maintenance management pressure and workload of Internet of Things terminal devices have also increased unprecedentedly, resulting in restrictions on the development of related business systems and Internet of Things services. Currently, when a new Internet of Things terminal accesses a related Internet of Things management platform, it is necessary to perform the physical model configuration or registration work for the new device. Only after the configuration or registration of the Internet of Things terminal can it be correctly managed after connecting to the Internet of Things management platform.

[0003] The physical model configuration or registration work includes the configuration of device attributes, device services, and device time. According to the type of the Internet of Things terminal, the number of device attributes, device services, and device time to be configured is also different, ranging from dozens to hundreds. Currently, most Internet of Things terminals cannot actively upload physical model data and can only use manual configuration or registration of the physical model. In the case of a large workload, configuration errors are extremely likely to occur. Summary of the Invention

[0004] Embodiments of the present invention provide a method, device, computer device, and storage medium for standardizing the physical model of an Internet of Things terminal. Regardless of whether the Internet of Things terminal supports uploading physical model data, a corresponding physical model can be generated, which is convenient for managing different types of Internet of Things terminals.

[0005] In a first aspect, an embodiment of the present invention provides a method for standardizing the physical model of an Internet of Things terminal, the method including:

[0006] Request the Internet of Things terminals connected to itself to upload their respective physical model data;

[0007] If the Internet of Things terminal supports uploading its own physical model data, update a first physical model that matches the physical model data according to the physical model data uploaded by the Internet of Things terminal, where the first physical model is stored in the Internet of Things management platform;

[0008] If the Internet of Things terminal does not support uploading its own physical model data, obtain the physical model log of the Internet of Things terminal, and perform formatting processing on the log data in the physical model log to obtain target log data;

[0009] Send the target log data to a big data platform so that the big data platform generates a second physical model according to the target log data and returns the second physical model to the Internet of Things management platform;

[0010] If the second object model is received, store the second object model.

[0011] In a second aspect, an embodiment of the present invention further provides an Internet of Things terminal object model standardization processing device, which includes:

[0012] A first request unit, configured to request Internet of Things terminals connected to itself to upload their respective object model data;

[0013] A first update unit, configured to, if the Internet of Things terminal supports uploading its own object model data, update a first object model matching the object model data according to the object model data uploaded by the Internet of Things terminal, where the first object model is stored in the Internet of Things management platform;

[0014] A first acquisition unit, configured to, if the Internet of Things terminal does not support uploading its own object model data, acquire the object model log of the Internet of Things terminal, and format the log data in the object model log to obtain target log data;

[0015] A first sending unit, configured to send the target log data to a big data platform so that the big data platform generates a second object model according to the target log data, and returns the second object model to the Internet of Things management platform;

[0016] A first storage unit, configured to, if the second object model is received, store the second object model.

[0017] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor. A computer program is stored on the memory, and when the processor executes the computer program, the above method is implemented.

[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the storage medium stores a computer program, and when the computer program is executed by a processor, the above method can be implemented.

[0019] An embodiment of the present invention provides a method, device, computer device, and storage medium for standardizing the physical model of an Internet of Things (IoT) terminal. For an IoT terminal that supports uploading physical model data, the physical model data can be directly obtained, and the first physical model stored in the IoT management platform can be updated according to the physical model data. For an IoT terminal that does not support uploading physical model data, the physical model log uploaded by the IoT terminal can be obtained, and the log data of the physical model log can be formatted to facilitate the big data platform to generate a second physical model based on the target log data, and the second physical model can be sent to the IoT management platform. Thus, regardless of whether the IoT terminal supports uploading physical model data, it can be managed through the corresponding physical model, improving the efficiency of the IoT management platform in managing IoT terminals. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0021] Figure 1 is a flowchart of the method for standardizing the physical model of an IoT terminal provided by an embodiment of the present invention;

[0022] Figure 2 is a schematic diagram of an application scenario of the method for standardizing the physical model of an IoT terminal provided by an embodiment of the present invention;

[0023] Figure 3 is an interaction flowchart between the IoT management platform and the big data platform of the method for standardizing the physical model of an IoT terminal provided by an embodiment of the present invention;

[0024] Figure 4 is a sub - flowchart of the method for standardizing the physical model of an IoT terminal provided by an embodiment of the present invention;

[0025] Figure 5 is an interaction flowchart between the IoT management platform and the big data platform of the method for standardizing the physical model of an IoT terminal provided by an embodiment of the present invention;

[0026] Figure 6 is a schematic block diagram of the device for standardizing the physical model of an IoT terminal provided by an embodiment of the present invention;

[0027] Figure 7 is a schematic block diagram of the device for standardizing the physical model of an IoT terminal provided by another embodiment of the present invention;

[0028] Figure 8It is a schematic block diagram of a computer device provided by an embodiment of the present invention. Detailed implementation manners

[0029] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0030] It should be understood that when used in this specification and the appended claims, the terms "comprises" and "comprising" indicate the presence of the described features, wholes, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, operations, elements, components, and / or their combinations.

[0031] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in this specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to include the plural forms. It should be further understood that the term "and / or" used in this specification of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0032] Please refer to Figure 1 and Figure 2 , Figure 1 It is a schematic flowchart of a method for standardizing the physical model of an Internet of Things terminal provided by an embodiment of the present invention. Figure 2 It is an application scenario diagram of a method for standardizing the physical model of an Internet of Things terminal provided by an embodiment of the present invention. The method for standardizing the physical model of an Internet of Things terminal in the embodiment of the present invention is applied to an Internet of Things management platform, and the Internet of Things management platform can be deployed on a computer device and can interact with an Internet of Things terminal and a big data platform. As Figure 1 shown, the method includes steps S110 to S140.

[0033] S110, request the Internet of Things terminals connected to itself to upload their respective physical model data.

[0034] In some embodiments, such as this embodiment, before step S110, the following steps may be included: If a login request sent by the IoT terminal is received, parse the login request to obtain the basic information of the IoT terminal, and verify the basic information to determine whether the IoT terminal is a legitimate device; if the IoT terminal is a legitimate device, return a login success message to the IoT terminal and establish a connection with the IoT terminal; if the IoT terminal is an illegal device, reject the login request of the IoT terminal.

[0035] In the embodiments of the present invention, before the IoT terminal sends a login request, it needs to be registered on the IoT management platform first. When registering, the user of the IoT terminal needs to upload relevant information such as identity information and basic information of the IoT terminal. After the user uploads, the IoT terminal management platform automatically generates the object model upload TOPIC configuration information, log upload TOPIC configuration information, and event upload TOPIC configuration information of the IoT terminal. Among them, the object model upload TOPIC configuration information includes: / version number / tenant ID / models / ; the log upload TOPIC configuration information includes: / version number / tenant ID / datareports / ; the event upload TOPIC configuration information includes: / version number / tenant ID / eventreports / . The version number defaults to start from V1. If the type of the IoT terminal has been registered on the IoT management platform before, there is no need to register the type of the IoT terminal. Through the above TOPIC configuration information, the IoT management platform can master the basic information of the IoT terminal and the basic information of its corresponding user.

[0036] After completing the registration, when the user needs to use the IoT terminal to access the IoT management platform, the IoT terminal can send a login request to the IoT management platform. Generally, the IoT card built in the IoT terminal supports automatically obtaining the address of the IoT management platform, and the login request can be sent to the IoT management platform through this address. Among them, the connection method between the IoT terminal and the IoT management platform includes but is not limited to 4G / 5G networks and WIFI networks, and the data transmission method between the IoT terminal and the IoT management platform includes but is not limited to the MQTT protocol. The login request contains the basic information of the IoT terminal, and the basic information includes but is not limited to the IoT terminal model, terminal ID, and terminal version number. In addition, to improve security, when the IoT terminal connects to the IoT management platform, the sent login request and subsequent other data are encrypted.

[0037] After receiving a login request, the Internet of Things management platform parses the request to obtain the basic information of the Internet of Things terminal and verifies the legality of the basic information. If the Internet of Things terminal device is illegal or belongs to an unknown device, the basic information of the Internet of Things terminal is recorded for operation and maintenance personnel to handle illegal terminals. If the Internet of Things terminal is a legal device, a login success message is returned and a connection is established with the Internet of Things terminal.

[0038] After establishing a connection with the Internet of Things terminal, the Internet of Things management platform sends a service instruction to the Internet of Things terminal to upload the physical model data. The physical model data includes, but is not limited to, attribute information, event information, and service information. Among them, the attribute information includes relevant parameters such as attribute name, identifier, data type, value range, step size, unit, and read / write type. The event information includes relevant parameters such as event name, identifier, data type, value range, step size, unit, and read / write type. The service information includes service type and service parameters. Among them, the service type can be data reporting, event reporting, data acquisition, parameter query, parameter configuration, etc., and the service parameters can be attribute values or custom new parameters.

[0039] S120, if the Internet of Things terminal supports uploading its own physical model data, update the first physical model matching the physical model data according to the physical model data uploaded by the Internet of Things terminal, where the first physical model is stored in the Internet of Things management platform.

[0040] In some embodiments, such as this embodiment, the step S120 may include the following steps:

[0041] S121, determine whether the Internet of Things terminal corresponding to the physical model data is establishing a connection for the first time.

[0042] S122, if the Internet of Things terminal corresponding to the physical model data is establishing a connection for the first time, generate a first physical model of the Internet of Things terminal matching the physical model data according to the physical model data.

[0043] S123, if the Internet of Things terminal corresponding to the physical model data is not establishing a connection for the first time, confirm whether the version number of the Internet of Things terminal is the same as the version number of the first physical model stored locally.

[0044] S124, if the version number of the Internet of Things terminal is different from the version number of the first physical model stored locally, enter the step of updating the first physical model matching the physical model data according to the physical model data uploaded by the Internet of Things terminal.

[0045] In an embodiment of the present invention, after the Internet of Things (IoT) terminal is determined to be a legitimate device, it is necessary to determine whether the IoT terminal is sending a login request for the first time, that is, whether a connection is established for the first time. If it is not the first time to send a login request, it indicates that a first device model of the IoT terminal is stored in the IoT management platform. Then, it is determined whether it is necessary to update the device model data in the first device model according to whether the version number of the IoT terminal matches the version number of the first device model. Herein, the device model refers to the definition of the parameters, attributes, services, and events of the IoT terminal, which is used to define which parameters, which faults, which alarm information can be reported, and which services can be invoked by the IoT terminal. The first device model refers to the device model generated by the IoT management platform based on the device model data reported by the IoT terminal when the first connection is established with the IoT terminal. The second device model mentioned below refers to the device model generated by the large number platform according to the device model log when the IoT terminal does not support reporting device model data. When the version number of the IoT terminal corresponding to the device model data is different from the version number of the first device model, the first device model is updated according to the device model data. If they are the same, no operation is performed.

[0046] Updating the first physical model with physical model data may include the following process: The physical model data uploaded by the IoT terminal is stored in json fields. For extremely long physical model data, it can be uploaded in segments. Each segment of the uploaded information includes partial physical model data. At the same time, it will be reflected in the message how many segments the physical model data is divided into in total and which segment of information it is currently. The IoT terminal and the IoT management platform can transmit data through the MQTT protocol. Of course, they can also transmit data through other protocols, which are not limited here. The following takes the MQTT protocol as an example. When the IoT management platform receives the physical model data, if the IoT terminal uploads it in segments, it will merge the received multiple segments of messages. Among them, the total number of messages the message is split into can be confirmed through the totalNum field in json, and which message it is currently can be confirmed through the partNum field. Generally, the IoT terminal and the IoT management platform transmit data in the form of messages. When the IoT terminal uploads the physical model data, it will send one or more messages to the IoT management platform. The message contains the physical model data. The IoT management platform obtains the physical model data by decoding the message. Specifically, the binary data in the MQTT protocol can be used to decode the message to obtain the JSON message. The JSON message contains the physical model attribute information and service information. Among them, the attribute information includes the attribute name and data description. For example: {"meterStatus":{displayName: Meter Status,data_schema:"len:2,unitName:,unit:null"}}. The service information includes the field sequence number, attribute name, display name, data type, and unit included in the service. For example: [{seq:1,name:meterAdd,displayName: Meter Number,dataType:fix-string,len:14,unitName:,unit:null},{seq:2,name:signalStrength,displayName: Signal Strength (CSQ),dataType:fix-string,len:2,unitName:,unit:null},{seq:3,name:rsrpValue,displayName: RERP,dataType:fix-string,len:4,unitName:,unit:null},{seq:4,name:snrValue,displayName: SNR,dataType:fix-string,len:4,unitName:,unit:null}}.

[0047] After decoding is completed, format the decoded JSON-formatted data, and format the attribute information in the above physical model data into attribute Map object data. The key of the attribute Map object data is the corresponding physical model attribute or parameter. Among them, the Map object is a collection of keys / values, as shown in Table (1).

[0048]

[0049] Table (1)

[0050] Similarly, format the service information into a service Map object data. The key in the service Map object data is the service code of the corresponding physical model data, as shown in Table (2).

[0051]

[0052] Table (2)

[0053] In addition, after the Internet of Things management platform transcodes and formats the physical model data, update the first physical model.

[0054] S130, if the Internet of Things terminal does not support uploading its own physical model data, obtain the physical model log of the Internet of Things terminal, and format the log data in the physical model log to obtain target log data.

[0055] S140, send the target log data to the big data platform so that the big data platform generates a second physical model according to the target log data, and return the second physical model to the Internet of Things management platform. In some embodiments, such as this embodiment, the step S140 may include the following steps: obtain a preset physical model knowledge base, and analyze the target log data according to the preset physical model knowledge base to obtain the second physical model; send the second physical model to the Internet of Things management platform.

[0056] S150, if the second physical model is received, store the second physical model.

[0057] In the embodiment of the present invention, if the Internet of Things terminal supports active upload of physical model data, the Internet of Things terminal will actively upload physical model data after receiving a request from the Internet of Things management platform. However, in real life, there are a large number of Internet of Things terminals that do not support active upload of physical model data, such as Figure 3As shown in the figure, for IoT terminals that do not support the active upload of physical model data, the IoT management platform obtains the corresponding physical model logs. Here, the physical model log refers to a specific piece of data reported by the IoT terminal according to the physical model. A physical model log contains multiple pieces of data. For example, alarm data is reported. After the IoT management platform obtains the physical model log, it formats the log data in the physical model log to obtain target log data, and then sends the target log data to the big data platform. The big data platform analyzes the target log data according to the industry of the IoT terminal corresponding to the target log data and a preset physical model knowledge base, so as to obtain a second physical model. Among them, the IoT terminal and the IoT management platform can transmit data through the MQTT protocol, or can also transmit data through other protocols, which is not limited here.

[0058] The process of formatting the log data includes the following: After the IoT management platform receives the log data, it decodes and formats the log data, and converts the data format of the log data into a data format recognizable by the IoT management platform. Its decoding and formatting methods are the same as those mentioned in the previous text and will not be elaborated here. It is worth mentioning that the log data is not the same as the physical model data. The log data is the actual data content generated during the interaction between the IoT terminal and the IoT management platform, but the types of information contained are the same. For example, both contain attribute information. In the physical model log data, its attribute information is also converted into Map object data, as shown in Table (3).

[0059] Key Value sigStrength 20 batteryVoltage 3.68 pressure 0000

[0060] Table (3)

[0061] After the IoT management platform completes the decoding and formatting of the log data, it obtains the target log attribute information and then sends the target log data to the big data platform.

[0062] In addition, the second physical model generated by the big data platform based on the target log data will carry an identifier to indicate that the second physical model is generated by the big data platform. When the IoT terminal supports the active reporting of physical model data, both the big data platform and the IoT management platform will perform corresponding updates. Taking the physical model data reported by the IoT terminal as the standard, the second physical model is deleted, and the first physical model is generated according to the physical model data uploaded by the IoT terminal.

[0063] As Figure 4 shown, in some embodiments, such as this embodiment, the method for standardizing the physical model of the IoT terminal further includes:

[0064] S161. Confirm whether there is a standard object model that matches the first object model or the second object model. In the embodiments of the present invention, the standard object model data refers to the object model data that can be directly recognized and adopted by the Internet of Things management platform, the big data platform, and the Internet of Things service system. Generally, the Internet of Things management platform will pre-store the standard object models corresponding to various types of Internet of Things terminals. The standard object model is mainly used to judge the difference between the object model of the Internet of Things terminal and the standard object model, and to judge whether the information of the Internet of Things terminal is compliant.

[0065] S162. If there is no standard object model that matches the first object model or the second object model, perform the formatting process on the object model data in the first object model or the object model data in the second object model to obtain mappable data. In the embodiments of the present invention, if the Internet of Things management platform does not have a standard object model that matches the first object model or the second object model, that is, there is no standard object model that matches the first object model or there is no standard object model that matches the second object model, then the Internet of Things management platform performs a formatting process on the object model data in the first object model and the second object model. The specific process of formatting is the same as the process of formatting object model data and formatting log data mentioned above, and will not be described in detail here. The obtained mappable data is also Map object data, which is convenient for the big data platform to recognize.

[0066] When there is a standard object model that matches the first object model or the second object model, directly confirm the difference between the first object model or the second object model and the standard object model, so as to judge whether it is necessary to request the Internet of Things terminal to supplement relevant information.

[0067] S163. Send a mapping request to the big data platform so that the big data platform obtains a mapping relationship according to the mapping request and returns the mapping relationship to the Internet of Things management platform, where the mapping request includes the mappable data; in some embodiments, such as in this embodiment, the step S163 may include the following steps: parse the mapping request to obtain the mappable data, and perform word segmentation on the attribute names in the mappable data to obtain keywords; perform word normalization on the keywords to obtain standard mappable data; obtain the standard object model data in the standard object model, establish the mapping relationship according to the standard mappable data and the standard object model data, and send the mapping relationship to the Internet of Things management platform. In the embodiments of the present invention, when the Internet of Things management platform does not have a standard object model that matches the first object model or the second object model, such as Figure 5As shown, the Internet of Things management platform sends a mapping request to the big data platform. The mapping request includes mapable data, which includes, but is not limited to, the attribute Map object, service Map object, version number, and industry data of the Internet of Things terminal of the first or second physical model. After receiving the mapable data, the big data platform preprocesses the mapable data to make the format of the mapable data the same as that of the standard physical model data, facilitating the analysis of the mapping relationship and mapping ratio between the two, and finally feeding back the results to the Internet of Things management platform.

[0068] If the big data platform receives mapable data for the first time, there is generally no matching mapping relationship. Among them, the mapping relationship refers to the mapping relationship between the physical model and the standard physical model, which is gradually established after analyzing the physical model of the Internet of Things terminal during actual use. The big data platform will pre-store the standard physical models of each industry or each type of Internet of Things terminal. After receiving the mapable data, it identifies the type of Internet of Things terminal through the mapable data and confirms the standard physical model data matching the type of Internet of Things terminal.

[0069] Generally, due to the difference in data format between the mapable data and the standard physical model data, the mapable data cannot directly establish a mapping relationship with the standard physical model data. Therefore, it is necessary to preprocess the mapable data. Specifically, it can be to perform word segmentation processing and word normalization processing on the data in the mapable data in sequence. It can also, in combination with the actual situation, perform inflectional morphology processing, lemmatization (such as restoring Speaking to Speak), derivational morphology processing (such as converting final to finalise), and other data analysis processing operations on the data in the mapable data.

[0070] When performing word segmentation processing, since the attribute name is not a complete sentence, it is generally composed of 1-3 English keywords. Common word segmentation methods are completed according to splitting by "_", splitting by capitalized first letter, naive word segmentation method, or Subword word segmentation method. The Subword word segmentation method requires the big data platform mentioned above to pre-establish a relatively large corpus and then train on the corpus. For example, for the attribute DEVICE_IP_ADDR, it will be split into the words DEVICE, IP, and ADDR. After completing the word segmentation processing, it is necessary to perform word normalization processing on the keywords, mainly to correct the spelling of the keywords, remove the morphological information of English words, and expand abbreviations. For example, for ADDR, it needs to be restored to Address.

[0071] After completing word segmentation and word normalization, that is, after preprocessing the mappable data, the standard object model data of the pre-stored standard object model can be obtained, and then the mapping relationship between the mappable data and the standard object model data can be established. When establishing the object model mapping relationship, there may be information in the mappable data that is not in the standard object model data. For this information, it can be identified as personalized information. For the information that can be matched, the mapping relationship is directly established. Then, the mapping ratio is confirmed according to the proportion of the information for which the mapping relationship can be established in all the information, and the object model mapping relationship and the mapping ratio are returned to the Internet of Things management platform.

[0072] In some embodiments, such as this embodiment, the step of establishing the mapping relationship according to the standard mappable data and the standard object model data may include the following steps: determining whether there is data information in the standard mappable data that matches the standard object model data; if there is data information in the standard mappable data that matches the standard object model data, establishing a data mapping relationship between the matching data information; if there is no data information in the standard mappable data that matches the standard object model data, marking the data information as personalized information; using the data mapping relationship and the personalized information as the mapping relationship.

[0073] In the embodiment of the present invention, the purpose of establishing the mapping relationship is to match the data information in the mappable data with the data information in the standard object model data. For example, for an attribute information DeviceIPAddr in the mappable data, the corresponding attribute information in the standard object model data is WATERAFFAIR: IPADDRESS, and both describe the same information, so the two can establish a mapping relationship. When the data information in the mappable data cannot be matched with the data information in the standard object model data, it indicates that this information is the personalized information unique to this Internet of Things terminal. Generally, an Internet of Things terminal does not have too much personalized information. The mapping relationship includes the established data mapping relationship and personalized information. At the same time, the staff can regularly update the standard object model data through the big data platform and supplement some personalized information into the standard object model data.

[0074] The object model mapping relationship obtained through the above steps includes mapping relationship information and personalized information. The mapping ratio is confirmed by calculating the proportion of the mapping relationship information in all the information. As shown in Table (4), it is the object model mapping relationship table.

[0075]

[0076] Table (4)

[0077] As shown in Table (4), the mapping relation table includes three pieces of information, among which two data pieces of information establish a data mapping relation, and the other is personalized information, so the mapping ratio is two-thirds. After obtaining the mapping relation, the big data platform stores the mapping relation and the version number of the physical model in the relational database, and stores the personalized information in the personalized information database.

[0078] S164. If the mapping relation is received, determine whether the mapping ratio in the mapping relation is less than a preset ratio according to the mapping ratio; S165. If the mapping ratio is less than the preset ratio, send a reminder message to the user corresponding to the IoT terminal so that the user can modify the information of the IoT terminal. In the embodiment of the present invention, after receiving the mapping relation fed back by the big data platform, the IoT management platform will determine whether it is necessary to remind the user corresponding to the IoT terminal to supplement relevant information according to the mapping ratio in the mapping relation. For example, if the mapping ratio is lower than 30%, it indicates that there is a large difference between the first physical model or the second physical model and the standard physical model, indicating that the physical model data uploaded by the IoT terminal is abnormal and there is a large deviation from the actual situation, and the user needs to re-supplement relevant materials. When the mapping ratio is normal, it indicates that the deviation between the physical model data uploaded by the user terminal and the actual situation is small, and there is no need to supplement relevant materials.

[0079] Figure 6 It is a schematic block diagram of an IoT terminal physical model standardization processing device 100 provided by an embodiment of the present invention. As Figure 6 shown, corresponding to the above IoT terminal physical model standardization processing method, the present invention also provides an IoT terminal physical model standardization processing device 100. The IoT terminal physical model standardization processing device 100 includes units for executing the above IoT terminal physical model standardization processing method. Specifically, please refer to Figure 6, the Internet of Things (IoT) terminal physical model standardization processing device 100 includes a first request unit 110, a first update unit 120, a first acquisition unit 130, a first sending unit 140, and a first storage unit 150. Among them, the first request unit 110 is used to request IoT terminals connected to itself to upload their respective physical model data; the first update unit 120 is used to, if the IoT terminal supports uploading its own physical model data, update the first physical model matching the physical model data according to the physical model data uploaded by the IoT terminal, where the first physical model is stored in the IoT management platform; the first acquisition unit 130 is used to, if the IoT terminal does not support uploading its own physical model data, acquire the physical model log of the IoT terminal, and format the log data in the physical model log to obtain target log data; the first sending unit 140 is used to send the target log data to the big data platform so that the big data platform generates a second physical model according to the target log data and returns the second physical model to the IoT management platform; the first storage unit 150 is used to, if the second physical model is received, store the second physical model.

[0080] In some embodiments, such as this embodiment, the first update unit 120 includes a first judgment unit, a first generation unit, a first confirmation unit, and a first return unit. Among them, the first judgment unit is used to judge whether the IoT terminal corresponding to the physical model data is establishing a connection for the first time; the first generation unit is used to, if the IoT terminal corresponding to the physical model data is establishing a connection for the first time, generate the first physical model of the IoT terminal matching the physical model data according to the physical model data; the first confirmation unit is used to, if the IoT terminal corresponding to the physical model data is not establishing a connection for the first time, confirm whether the version number of the IoT terminal is the same as the version number of the first physical model stored locally; the first return unit is used to, if the version number of the IoT terminal is different from the version number of the first physical model stored locally, enter the step of updating the first physical model matching the physical model data according to the physical model data uploaded by the IoT terminal.

[0081] In some embodiments, such as this embodiment, the first sending unit 140 includes a second acquisition unit and a second sending unit. Among them, the second acquisition unit is used to acquire a preset physical model knowledge base, and analyze the target log data according to the preset physical model knowledge base to obtain the second physical model; the second sending unit is used to send the second physical model to the IoT management platform.

[0082] In some embodiments, such as this embodiment, the Internet of Things (IoT) terminal object model standardization processing device 100 further includes a second judgment unit, a second return unit, and a first processing unit. Among them, the second judgment unit is configured to, if receiving a login request sent by the IoT terminal, parse the login request to obtain basic information of the IoT terminal, and verify the basic information to determine whether the IoT terminal is a legal device; the second return unit is configured to, if the IoT terminal is a legal device, return login success information to the IoT terminal and establish a connection with the IoT terminal; the first processing unit is configured to, if the IoT terminal is an illegal device, reject the login request of the IoT terminal.

[0083] In some embodiments, such as this embodiment, as Figure 7 shown, the IoT terminal object model standardization processing device 100 further includes a second confirmation unit 161, a second processing unit 162, a third sending unit 163, a third judgment unit 164, and a fourth sending unit 165. Among them, the second confirmation unit 161 is configured to confirm whether there is a standard object model that matches the first object model or the second object model; the second processing unit 162 is configured to, if there is no standard object model that matches the first object model or the second object model, perform the formatting process on the object model data in the first object model or the object model data in the second object model to obtain mappable data; the third sending unit 163 is configured to send a mapping request to a big data platform so that the big data platform obtains a mapping relationship according to the mapping request and returns the mapping relationship to the IoT management platform, where the mapping request includes the mappable data; the third judgment unit 164 is configured to, if receiving the mapping relationship, judge whether the mapping ratio in the mapping relationship is less than a preset ratio according to the mapping ratio; the fourth sending unit 165 is configured to, if the mapping ratio is less than the preset ratio, send a reminder message to the user corresponding to the IoT terminal so that the user modifies the information of the IoT terminal.

[0084] In some embodiments, such as this embodiment, the third sending unit 163 includes a first parsing unit, a third processing unit, and a fourth processing unit. Among them, the first parsing unit is configured to parse the mapping request to obtain the mappable data, and perform word segmentation on the attribute names in the mappable data to obtain keywords; the third processing unit is configured to perform word normalization processing on the keywords to obtain standard mappable data; the fourth processing unit is configured to obtain the standard object model data in the standard object model, establish the mapping relationship according to the standard mappable data and the standard object model data, and send the mapping relationship to the IoT management platform.

[0085] In some embodiments, such as this embodiment, the fourth processing unit includes a fourth judgment unit, a fifth processing unit, a first marking unit, and a sixth processing unit. Among them, the fourth judgment unit is used to judge whether there is data information in the standard mappable data that matches the standard object model data; the fifth processing unit is used to establish a data mapping relationship between the matching data information if there is data information in the standard mappable data that matches the standard object model data; the first marking unit is used to identify the data information as personalized information if there is no data information in the standard mappable data that matches the standard object model data; the sixth processing unit is used to use the data mapping relationship and the personalized information as the mapping relationship.

[0086] It should be noted that those skilled in the art can clearly understand the specific implementation processes of the above-mentioned Internet of Things terminal object model standardization processing device and each unit. They can refer to the corresponding descriptions in the foregoing method embodiments. For the convenience and conciseness of description, they will not be elaborated here.

[0087] The above-mentioned Internet of Things terminal object model standardization processing device can be implemented in the form of a computer program, and this computer program can run on a computer device as shown in Figure 8 shown.

[0088] Please refer to Figure 8 , Figure 8 which is a schematic block diagram of a computer device provided by an embodiment of the present application. Referring to Figure 8 , the computer device 500 includes a processor 502, a memory, and an interface 507 connected through a system bus 501. Among them, the memory may include a non-volatile storage medium 503 and an internal memory 504.

[0089] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can be made to execute an Internet of Things terminal object model standardization processing method.

[0090] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.

[0091] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can be made to execute any embodiment of the above-mentioned Internet of Things terminal object model standardization processing method.

[0092] The interface 505 is used to communicate with other devices. Those skilled in the art can understand that Figure 8The structure shown is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device 500 to which the solution of this application is applied. Specifically, the computer device 500 may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0093] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), and this processor 502 may also be other general-purpose processors, digital signal processors (FSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or this processor may also be any conventional processor, etc.

[0094] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. This computer program can be stored in a storage medium, and this storage medium is a computer-readable storage medium. This computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0095] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. This storage medium stores a computer program. When this computer program is executed by a processor, it implements any one of the embodiments of the above method for standardizing the physical model of the Internet of Things terminal.

[0096] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disc, etc., all of which are computer-readable storage media that can store program codes.

[0097] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0098] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The steps in the method embodiments of the present invention can be adjusted, combined, and deleted according to actual needs. The units in the device embodiments of the present invention can be combined, divided, and deleted according to actual needs. In addition, the functional units in each embodiment of the present invention can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device to execute all or part of the steps of the methods described in each embodiment of the present invention. In the above embodiments, the descriptions of each embodiment have their own emphases. For the parts not detailedly described in a certain embodiment, reference can be made to the relevant descriptions of other embodiments. Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these changes and modifications. As described above, only the specific implementation manners of the present invention are provided, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A method for standardizing the physical model of an Internet of Things terminal, characterized in that, Applied to the Internet of Things management platform, the method includes: Request the Internet of Things terminals connected to itself to upload their respective physical model data; If the Internet of Things terminal supports uploading its own physical model data, update the first physical model matching the physical model data according to the physical model data uploaded by the Internet of Things terminal, where the first physical model is stored in the Internet of Things management platform; If the Internet of Things terminal does not support uploading its own physical model data, obtain the physical model log of the Internet of Things terminal, and format the log data in the physical model log to obtain target log data; Send the target log data to the big data platform so that the big data platform generates a second physical model according to the target log data and returns the second physical model to the Internet of Things management platform; If the second physical model is received, store the second physical model; Confirm whether there is a standard physical model matching the first physical model or the second physical model itself; If there is no standard physical model matching the first physical model or the second physical model itself, perform the formatting process on the physical model data in the first physical model or the physical model data in the second physical model to obtain mappable data; Send a mapping request to the big data platform so that the big data platform obtains a mapping relationship according to the mapping request and returns the mapping relationship to the Internet of Things management platform, where the mapping request includes the mappable data; If the mapping relationship is received, judge whether the mapping ratio in the mapping relationship is less than a preset ratio according to the mapping ratio; If the mapping ratio is less than the preset ratio, send a reminder message to the user corresponding to the Internet of Things terminal so that the user modifies the information of the Internet of Things terminal.

2. The method for standardizing the physical model of the Internet of Things terminal according to claim 1, characterized in that, The step that the big data platform obtains a mapping relationship according to the mapping request and returns the mapping relationship to the Internet of Things management platform includes: Parse the mapping request to obtain the mappable data, and perform word segmentation on the attribute names in the mappable data to obtain keywords; Perform word normalization processing on the keywords to obtain standard mappable data; Obtain the standard physical model data in the standard physical model, establish the mapping relationship according to the standard mappable data and the standard physical model data, and send the mapping relationship to the Internet of Things management platform.

3. The method for standardizing the physical model of the Internet of Things terminal according to claim 2, the step of establishing the mapping relationship according to the standard mappable data and the standard physical model data includes: Judge whether there is data information in the standard mappable data that matches the standard physical model data; If there is data information in the standard mappable data that matches the standard physical model data, establish a data mapping relationship between the matching data information; If there is no data information in the standard mappable data that matches the standard physical model data, mark the data information as personalized information; Use the data mapping relationship and the personalized information as the mapping relationship.

4. The method for standardizing the physical model of the Internet of Things terminal according to claim 1, characterized in that, The step in which the big data platform generates a second physical model based on the target log data and returns the second physical model to the Internet of Things management platform includes: Obtain a preset physical model knowledge base, and analyze the target log data according to the preset physical model knowledge base to obtain the second physical model; Send the second physical model to the Internet of Things management platform.

5. The method for standardizing the physical model of the Internet of Things terminal according to claim 1, characterized in that, Before the step in which the Internet of Things terminals requesting to be connected to itself upload their respective physical model data, it further includes: If a login request sent by the Internet of Things terminal is received, parse the login request to obtain the basic information of the Internet of Things terminal, and verify the basic information to determine whether the Internet of Things terminal is a legal device; If the Internet of Things terminal is a legal device, return a login success message to the Internet of Things terminal and establish a connection with the Internet of Things terminal; If the Internet of Things terminal is an illegal device, reject the login request of the Internet of Things terminal.

6. The method for standardizing the physical model of the Internet of Things terminal according to claim 1, characterized in that, The step of updating the first physical model matching the physical model data according to the physical model data uploaded by the Internet of Things terminal includes: Determine whether the Internet of Things terminal corresponding to the physical model data is establishing a connection for the first time; If the Internet of Things terminal corresponding to the physical model data is establishing a connection for the first time, generate a first physical model of the Internet of Things terminal matching the physical model data according to the physical model data; If the Internet of Things terminal corresponding to the physical model data is not establishing a connection for the first time, confirm whether the version number of the Internet of Things terminal is the same as the version number of the first physical model stored locally; If the version number of the Internet of Things terminal is different from the version number of the first physical model stored locally, enter the step of updating the first physical model matching the physical model data according to the physical model data uploaded by the Internet of Things terminal.

7. An Internet of Things terminal object model standardization processing device, characterized in that, Applied to an Internet of Things management platform, the device includes: A first request unit, configured to request the Internet of Things terminals connected to itself to upload their respective physical model data; A first update unit, configured to, if the Internet of Things terminal supports uploading its own physical model data, update the first physical model matching the physical model data according to the physical model data uploaded by the Internet of Things terminal, where the first physical model is stored in the Internet of Things management platform; A first acquisition unit, configured to, if the Internet of Things terminal does not support uploading its own physical model data, acquire the physical model log of the Internet of Things terminal, and format the log data in the physical model log to obtain target log data; A first sending unit, configured to send the target log data to the big data platform so that the big data platform generates a second physical model according to the target log data and returns the second physical model to the Internet of Things management platform; A first storage unit, configured to store the second physical model if the second physical model is received; A second confirmation unit, configured to confirm whether there is a standard physical model matching the first physical model or the second physical model itself; A second processing unit, configured to perform the formatting process on the object model data in the first object model or the object model data in the second object model to obtain mappable data if there is no standard object model in itself that matches the first object model or the second object model; A third sending unit, configured to send a mapping request to a big data platform so that the big data platform obtains a mapping relationship according to the mapping request and returns the mapping relationship to the Internet of Things management platform, where the mapping request includes the mappable data; A third judging unit, configured to judge whether the mapping ratio is less than a preset ratio according to the mapping ratio in the mapping relationship if the mapping relationship is received; A fourth sending unit, configured to send a reminder message to the user corresponding to the Internet of Things terminal if the mapping ratio is less than the preset ratio so that the user modifies the information of the Internet of Things terminal.

8. A computer device, characterized in that, The computer device includes a memory and a processor connected to the memory; the memory is used for storing a computer program; the processor is used for running the computer program stored in the memory to execute the steps of the method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1-6 can be implemented on a computer device.

Citation Information

Patent Citations

  • Internet of things equipment access method and device, electronic equipment and storage medium

    CN112202758A