Information analysis method, device, storage medium and processor

Through the information analysis of the target device and the determination of the parser, the problem of unified parsing caused by the differences in device information is solved, the compatibility and efficient parsing of various device information by the target platform is realized, and the access efficiency is improved.

CN113835709BActive Publication Date: 2024-08-30CHINA XIAOYUN (BEIJING) INTERNET OF THINGS TECH RES INST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110984624.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-25
Publication Date
2024-08-30
Estimated Expiration
2041-08-25

AI Technical Summary

Technical Problem

Due to the differences in device information, it is difficult to perform unified analysis on the target platform, and existing technologies cannot effectively solve this problem.

Method used

By analyzing the device information of the target device, its model information, operation code information and data information are determined. Based on this information, the corresponding message parser is determined and parsed in the parser. If there is no parsing algorithm in the hardware algorithm library, Determine basic information in the database to determine the parser to achieve unified parsing of multiple types of device information.

Benefits of technology

It achieves the compatibility of the target platform with all types of device information, improves the docking efficiency when devices are connected to the platform, simplifies the parsing process of device information, and reduces the difficulty of development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113835709B
    Figure CN113835709B
Patent Text Reader

Abstract

The present application discloses an information parsing method, device, storage medium and processor. The method comprises: analyzing the device information of the target device to obtain the first information of the target device, wherein the first information at least includes one of the different data set sequence information corresponding to the model information of multiple types of target devices; determining the message parser corresponding to the target device based on the first information; parsing the first information based on the message parser. Through the present application, the problem that it is difficult to perform unified parsing on the target platform due to the differences in device information in the related art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data analysis technology, and more specifically, to an information analysis method, device, storage medium and processor. Background Art

[0002] In every IoT company, there is a unified message body format for all different devices after the message is uploaded. However, in the business, when multiple devices are connected to the same platform for algorithm analysis of device information, it is difficult to perform unified analysis because some content is different.

[0003] Due to the differences in device information, it is difficult to perform unified parsing on the target platform. No effective solution has been proposed so far. Summary of the invention

[0004] The main purpose of the present application is to provide an information parsing method, device, storage medium and processor to solve the problem in the related art that it is difficult to perform unified parsing on the target platform due to the differences in device information.

[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an information parsing method is provided. The method comprises: analyzing the device information of the target device to obtain the first information of the target device, wherein the first information at least includes one of the different data set sequence information corresponding to the model information of multiple types of target devices; determining the message parser corresponding to the target device based on the first information; and parsing the first information based on the message parser.

[0006] Furthermore, the device information at least includes: first model information of the target device, first operation code information of the target device, and first data information of the target device.

[0007] Further, determining a message parser corresponding to the target device based on the first information includes: identifying the target device based on the first model information to obtain an identification result; and determining the message parser corresponding to the target device based on the identification result.

[0008] Furthermore, the device information of the target device is analyzed to obtain the first information of the target device, including: determining the first data information based on the first operation code information; processing the first data information to obtain the processed first data information, wherein the processed first data information includes the collection sequence information of the first data information; setting the collection sequence information of the first data information corresponding to the first model information as the first information of the target device.

[0009] Furthermore, parsing the first information based on the message parser includes: obtaining metadata content in the collection sequence information of the first data information based on the first operation code information in the message parser; analyzing the metadata content based on the target abstract method; determining the first information to be parsed based on the analyzed element content; and parsing the first information to be parsed based on the message parser.

[0010] Furthermore, before analyzing the device information of the target device and obtaining the first information of the target device, the method further includes: monitoring whether the device information of the target device is uploaded to the target platform system; if it is monitored that the target platform system contains the device information, obtaining the device information.

[0011] Furthermore, after obtaining the target device information, the method also includes: determining whether the target hardware algorithm library contains an algorithm for parsing the target device information; if the target hardware algorithm library does not contain an algorithm for parsing the target device information, determining the basic information content of the target device information in the target database, wherein the basic information content at least includes the device type of the target device and the factory information of the target device.

[0012] Furthermore, after determining the basic information content of the target device information in the target database, the method further includes: determining the second information of the device information based on the basic information content, and determining the message parser corresponding to the target device based on the second information.

[0013] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an information parsing device is provided. The device comprises: a first analyzing unit, used to analyze the device information of the target device to obtain the first information of the target device, wherein the first information at least includes one of the different data set sequence information corresponding to the model information of multiple types of target devices; a first determining unit, used to determine the message parser corresponding to the target device based on the first information; and a first parsing unit, used to parse the first information based on the message parser.

[0014] Furthermore, the device information at least includes: first model information of the target device, first operation code information of the target device, and first data information of the target device.

[0015] Furthermore, the first determination unit includes: a first identification module, used to identify the target device based on the first model information to obtain an identification result; and a first determination module, used to determine a message parser corresponding to the target device based on the identification result.

[0016] Furthermore, the first analysis unit includes: a second determination module, used to determine the first data information based on the first operation code information; a first processing module, used to process the first data information and obtain the processed first data information, wherein the processed first data information includes the collection sequence information of the first data information; a first setting module, used to set the collection sequence information of the first data information corresponding to the first model information as the first information of the target device.

[0017] Furthermore, the first parsing unit includes: a first acquisition module, used to acquire metadata content in the collection sequence information of the first data information based on the first operation code information in the message parser; a first analysis module, used to analyze the metadata content based on the target abstract method; a third determination module, used to determine the first information to be parsed based on the analyzed element content; and a first parsing module, used to parse the first information to be parsed based on the message parser.

[0018] Furthermore, the device also includes: a first monitoring unit, used to analyze the device information of the target device, and before obtaining the first information of the target device, monitor whether the device information of the target device is uploaded to the target platform system; a first acquisition unit, used to acquire the device information if it is monitored that the target platform system contains device information.

[0019] Furthermore, the device also includes: a first judgment unit, which is used to determine whether the target hardware algorithm library contains an algorithm for parsing the target device information after obtaining the target device information; a second determination unit, which is used to determine the basic information content of the target device information in the target database if the target hardware algorithm library does not contain an algorithm for parsing the target device information, wherein the basic information content at least includes the device type of the target device and the factory information of the target device.

[0020] Furthermore, the apparatus also includes: a third determination unit, which is used to determine the second information of the device information based on the basic information content after determining the basic information content of the target device information in the target database; and a fourth determination unit, which is used to determine the message parser corresponding to the target device based on the second information.

[0021] According to another aspect of an embodiment of the present application, a processor is further provided, and the processor is used to run a program, wherein any one of the above methods is executed when the program is run.

[0022] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, any one of the above methods is performed.

[0023] Through the present application, the following steps are adopted: analyzing the device information of the target device to obtain the first information of the target device, wherein the first information at least includes one of the different data set sequence information corresponding to the model information of multiple types of target devices; determining the message parser corresponding to the target device based on the first information; parsing the first information based on the message parser, thereby solving the problem in the related technology that it is difficult to perform unified parsing on the target platform due to the differences in device information. By uniformly parsing the first information of multiple types of target devices, the target platform can be compatible with all types of device information, thereby improving the docking efficiency when the target device is connected to the platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0025] Figure 1 is a flow chart of an information parsing method provided according to an embodiment of the present application;

[0026] Figure 2 is a schematic diagram of message parsing and algorithm expansion according to the information parsing method provided in an embodiment of the present application; and

[0027] Figure 3 It is a schematic diagram of an information analysis device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0029] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:

[0032] Class: It is the basis for information encapsulation in object-oriented programming. It is a user-defined reference data type, also called class type.

[0033] Abstract method: In object-oriented programming languages, abstract methods refer to methods that only have method declarations but no specific method bodies. Abstract methods generally exist in abstract classes or interfaces.

[0034] According to an embodiment of the present application, an information parsing method is provided.

[0035] Figure 1 is a flow chart of an information parsing method according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0036] Step S101: Analyze the device information of the target device to obtain first information of the target device, wherein the first information at least includes one of different set sequence information corresponding to model information of multiple target devices.

[0037] For example, after the device information of device type A is accessed on the message platform, the device information is initially parsed to obtain the first information of the target device. Before obtaining the first information, the device information needs to be obtained.

[0038] Optionally, in the information parsing method provided in the embodiment of the present application, before analyzing the device information of the target device and obtaining the first information of the target device, the method also includes: monitoring whether the device information of the target device is uploaded to the target platform system; if it is monitored that the target platform system contains device information, obtaining the device information.

[0039] Specifically, based on the message monitoring and publishing function of the target platform system, the upload actions of different types of devices on the target platform system are monitored. If the target platform system contains device information, the device information is obtained. This application greatly improves the efficiency of subsequent analysis of target device information by real-time monitoring of devices connected to the target platform.

[0040] Optionally, in the information parsing method provided in the embodiment of the present application, the device information includes at least: first model information of the target device, first operation code information of the target device, and first data information of the target device.

[0041] Specifically, when different types of equipment from multiple manufacturers are to be connected to the fixed platform of the target enterprise, by analyzing different types of equipment information, the differential data information part (corresponding to the first information of this application) in the analyzed equipment information of the target equipment is obtained, wherein the first model information in the equipment information is used to identify the target equipment, the first operation code information at least includes the function of identifying the equipment information (such as uploading equipment information and sending equipment information functions) and obtaining the collected value information, and the first data information is based on the first operation code information, and reflects the dynamic data of the collected value information. Based on the processing of the differential data information part of the target equipment, this application makes the target enterprise more efficient in parsing equipment information when accessing equipment on a fixed platform.

[0042] Optionally, in the information parsing method provided in the embodiment of the present application, the device information of the target device is analyzed to obtain the first information of the target device, including: determining the first data information based on the first operation code information; processing the first data information to obtain the processed first data information, wherein the processed first data information includes the collection sequence information of the first data information; setting the collection sequence information of the first data information corresponding to the first model information as the first information of the target device.

[0043] Specifically, the first data information is obtained based on the first operation code information. The first data information usually includes multiple pieces of data information. This application standardizes each piece of data information by standardizing the Dataclass class. The overall use of the multiple pieces of data information is set List <dataclass>To encapsulate, that is, the first data information uses the form of a collection to standardize the data, and fix the first model information of the target device to the List in the corresponding first data information <dataclass>The sequence information of the content is obtained by the first model information, and the set sequence information of the first data information corresponding to the first model information is used as the first information of the target device.

[0044] Step S102: determine a message parser corresponding to the target device based on the first information.

[0045] Specifically, the message parser corresponding to the target device is found according to the set sequence information of the first data information corresponding to the first model information in the first information.

[0046] Optionally, in the information parsing method provided in an embodiment of the present application, determining a message parser corresponding to the target device based on the first information includes: identifying the target device based on the first model information to obtain an identification result; and determining the message parser corresponding to the target device based on the identification result.

[0047] Specifically, a message parser is obtained based on the first model information of the device information. The message parser can realize differentiated processing of the first information in a unified data format and a built-in analog quantity acquisition value format. The processed device information is completely consistent with the target company's own business format, and the first information format after processing by the message parser can adapt to all the company's own business needs.

[0048] Step S103: parse the first information based on the message parser.

[0049] Specifically, in the message parser of the message processing module of the device, based on the operation code information of the target device, a corresponding operation method is entered to process the first information of the target device, wherein the processing means at least includes data analysis and data conversion.

[0050] Optionally, in the information parsing method provided in an embodiment of the present application, parsing the first information based on a message parser includes: obtaining metadata content in the collection sequence information of the first data information based on the first operation code information in the message parser; analyzing the metadata content based on a target abstraction method; determining the first information to be parsed based on the analyzed element content; and parsing the first information to be parsed based on the message parser.

[0051] Specifically, a class of preset rule content of the target algorithm is set so that the model information class of multiple devices inherits this class, wherein the basic data information is processed based on the abstract method metadata() to obtain the basic information set, and after the metadata content in the sequence information of the basic information set is obtained, the set sequence information content to be parsed in the metadata content is differentiated and parsed based on the ordinary method buildCollectData(). This application uses the target algorithm to make the class of the model information of the target device inherit the class of the preset rule content, so that when different devices under the same business function process the information parsing of similar devices, they only need to adjust the different parts in the business based on this class method to achieve unified parsing of the target device information, which reduces the development difficulty, improves the parsing efficiency of data information, and further improves the docking efficiency when the target device is connected to the platform.

[0052] It should be noted that if a new device is connected to the target platform system for the first time, the target hardware algorithm library does not contain an algorithm for preliminary analysis of the target device information, and the information of the newly connected device needs to be entered.

[0053] Optionally, in the information parsing method provided in the embodiment of the present application, after obtaining the target device information, the method also includes: determining whether the target hardware algorithm library contains an algorithm for parsing the target device information; if the target hardware algorithm library does not contain an algorithm for parsing the target device information, determining the basic information content of the target device information in the target database, wherein the basic information content includes at least the device type of the target device and the factory information of the target device.

[0054] Specifically, after obtaining the device information, the device information needs to be judged. If the target hardware algorithm library does not contain an algorithm for preliminary parsing of the target device information, the basic information content of the device information needs to be initially entered into the target database, where the basic information at least includes the type information and manufacturer information of the device. The device operation code information in the basic information is converted into unified operation code information, with the purpose of making the target device more efficient when performing information parsing through the parser in subsequent operations.

[0055] Optionally, in the information parsing method provided in an embodiment of the present application, after determining the basic information content of the target device information in the target database, the method further includes: determining the second information of the device information based on the basic information content, and determining a message parser corresponding to the target device based on the second information.

[0056] Specifically, based on the basic information content of the new device, the differential data information part in the device information (corresponding to the second information in this application) is determined, and the message parser corresponding to the target device is found according to the set sequence information of the second data information in the second information. If a different parsing operation for the new device is detected, new operation code information is created, so that the new operation code information is based on the corresponding metadata() abstract method to efficiently parse the second information. Through the above operations, this application simplifies the parsing process of device information and further improves the docking efficiency when the target device is connected to the platform.

[0057] Optionally, Figure 2 Schematic diagram of message parsing and algorithm expansion according to the information parsing method provided in the embodiment of the present application, such as Figure 2 As shown, the device information of device type A is obtained, and at the message parsing entrance, the device information of the target device is initially parsed based on the hardware algorithm, and the basic data information of the device after the initial parsing (corresponding to the first information in this application) is obtained. According to the device model information, the corresponding message parser is obtained. Before obtaining the message parser, it is necessary to detect whether the hardware algorithm library for the initial parsing of the device information contains the parsing function of the device type A. If the hardware algorithm library for the initial parsing of the device information contains the parsing function of the device type A, it is not necessary to enter the model information of the device A. If the hardware algorithm library for the initial parsing of the device information does not contain the parsing function of the device type A, it is necessary to enter the device model information (that is, the device model information newly connected for the first time), and provide a complete set of message parsers for the model information. In the parser, according to the operation of the device Code information, select the message processing function of the corresponding device, and based on the message processing function, perform a detailed analysis of the message content of the target corresponding message, and then convert it into the message format required by the company's business. Before performing a detailed analysis of the message content of the target corresponding message based on the message processing function, if the message parser is determined according to the newly connected device model information, it is also necessary to convert the operation code information of the newly connected device into unified operation code information, select the abstract method based on the operation code information, and then obtain the metadata information of the ordered target device, implement the analysis of the target device information based on the metadata information, and obtain the company's specific business data information based on the message parsing export. This application reduces the difficulty of background development by standardizing the order of information collection in the first information through horizontal compatibility with the newly connected target device information, thereby improving the docking efficiency when the platform is connected to a new device.

[0058] In summary, the information parsing method provided in the embodiment of the present application obtains the first information of the target device by analyzing the device information of the target device, wherein the first information at least includes one of the different data set sequence information corresponding to the model information of multiple types of target devices; determines the message parser corresponding to the target device based on the first information; and parses the first information based on the message parser, thereby solving the problem in the related technology that it is difficult to perform unified parsing on the target platform due to the differences in device information. By performing unified parsing on the first information of multiple types of target devices, the target platform can be compatible with all types of device information, thereby improving the docking efficiency when the target device is connected to the platform.

[0059] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0060] The embodiment of the present application also provides an information analysis device. It should be noted that the information analysis device of the embodiment of the present application can be used to execute the information analysis method provided by the embodiment of the present application. The information analysis device provided by the embodiment of the present application is introduced below.

[0061] Figure 3 is a schematic diagram of an information parsing device according to an embodiment of the present application. Figure 3 As shown, the device includes: a first analyzing unit 301, a first determining unit 302, and a first parsing unit 303.

[0062] Specifically, the first analyzing unit 301 is used to analyze the device information of the target device to obtain the first information of the target device, wherein the first information at least includes one of the different data set sequence information corresponding to the model information of multiple types of target devices;

[0063] A first determining unit 302, configured to determine a message parser corresponding to the target device based on the first information;

[0064] The first parsing unit 303 is used to parse the first information based on a message parser.

[0065] In summary, the information parsing device provided in the embodiment of the present application analyzes the device information of the target device through the first analysis unit 301 to obtain the first information of the target device, wherein the first information at least includes one of the different data set sequence information corresponding to the model information of multiple types of target devices; the first determination unit 302 determines the message parser corresponding to the target device based on the first information; the first parsing unit 303 parses the first information based on the message parser, which solves the problem in the related technology that it is difficult to perform unified parsing on the target platform due to the differences in device information, and by uniformly parsing the first information of multiple types of target devices, the target platform can be compatible with all types of device information, thereby improving the docking efficiency when the target device is connected to the platform.

[0066] Optionally, in the information parsing device provided in the embodiment of the present application, the device information includes at least: first model information of the target device, first operation code information of the target device, and first data information of the target device.

[0067] Optionally, in the information parsing device provided in an embodiment of the present application, the first determination unit 302 includes: a first identification module, used to identify the target device based on the first model information to obtain an identification result; a first determination module, used to determine the message parser corresponding to the target device based on the identification result.

[0068] Optionally, in the information parsing device provided in the embodiment of the present application, the first analysis unit 301 includes: a second determination module, used to determine the first data information based on the first operation code information; a first processing module, used to process the first data information to obtain the processed first data information, wherein the processed first data information includes the collection sequence information of the first data information; a first setting module, used to set the collection sequence information of the first data information corresponding to the first model information as the first information of the target device.

[0069] Optionally, in the information parsing device provided in the embodiment of the present application, the first parsing unit 303 includes: a first acquisition module, used to obtain metadata content in the collection sequence information of the first data information based on the first operation code information in the message parser; a first analysis module, used to analyze the metadata content based on the target abstract method; a third determination module, used to determine the first information to be parsed based on the analyzed element content; the first parsing module, used to parse the first information to be parsed based on the message parser.

[0070] Optionally, in the information parsing device provided in the embodiment of the present application, the device also includes: a first monitoring unit, used to analyze the device information of the target device, and before obtaining the first information of the target device, monitor whether the device information of the target device is uploaded to the target platform system; a first acquisition unit, used to acquire the device information if it is monitored that the target platform system contains device information.

[0071] Optionally, in the information parsing device provided in the embodiment of the present application, the device also includes: a first judgment unit, used to determine whether the target hardware algorithm library contains an algorithm for parsing the target device information after obtaining the target device information; a second determination unit, used to determine the basic information content of the target device information in the target database if the target hardware algorithm library does not contain an algorithm for parsing the target device information, wherein the basic information content includes at least the device type of the target device and the factory information of the target device.

[0072] Optionally, in the information parsing device provided in an embodiment of the present application, the device also includes: a third determination unit, which is used to determine the basic information content of the target device information in the target database, and then determine the second information of the device information based on the basic information content; and a fourth determination unit, which is used to determine the message parser corresponding to the target device based on the second information.

[0073] The information analysis device includes a processor and a memory. The above-mentioned first analysis unit 301, first determination unit 302, first analysis unit 303, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0074] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and information parsing is performed by adjusting kernel parameters.

[0075] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0076] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, an information parsing method is implemented.

[0077] An embodiment of the present invention provides a processor, which is used to run a program, wherein the information parsing method is executed when the program is running.

[0078] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: analyzing device information of a target device to obtain first information of the target device, wherein the first information at least includes one of different data set sequence information corresponding to model information of multiple types of target devices; determining a message parser corresponding to the target device based on the first information; and parsing the first information based on the message parser.

[0079] When the processor executes the program, the following steps are also implemented: first model information of the target device, first operation code information of the target device, and first data information of the target device.

[0080] When the processor executes the program, the following steps are also implemented: identifying the target device based on the first model information to obtain an identification result; and determining a message parser corresponding to the target device based on the identification result.

[0081] When the processor executes the program, the following steps are also implemented: determining the first data information based on the first operation code information; processing the first data information to obtain the processed first data information, wherein the processed first data information includes the collection sequence information of the first data information; setting the collection sequence information of the first data information corresponding to the first model information as the first information of the target device.

[0082] When the processor executes the program, the following steps are also implemented: obtaining metadata content in the collection sequence information of the first data information based on the first operation code information in the message parser; analyzing the metadata content based on the target abstract method; determining the first information to be parsed based on the analyzed element content; and parsing the first information to be parsed based on the message parser.

[0083] When the processor executes the program, the following steps are also implemented: analyzing the device information of the target device. The method also includes: monitoring whether the device information of the target device is uploaded to the target platform system; if the target platform system is monitored to contain the device information, obtaining the device information.

[0084] When the processor executes the program, the following steps are also implemented: after obtaining the target device information, determining whether the target hardware algorithm library contains an algorithm for parsing the target device information; if the target hardware algorithm library does not contain an algorithm for parsing the target device information, determining the basic information content of the target device information in the target database, wherein the basic information content at least includes the device type of the target device and the factory information of the target device.

[0085] When the processor executes the program, the following steps are also implemented: after determining the basic information content of the target device information in the target database, determining the second information of the device information based on the basic information content, and determining the message parser corresponding to the target device based on the second information.

[0086] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0087] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: analyzing device information of a target device to obtain first information of the target device, wherein the first information at least includes one of different data set sequence information corresponding to model information of multiple types of target devices; determining a message parser corresponding to the target device based on the first information; and parsing the first information based on the message parser.

[0088] When executed on a data processing device, the program is also adapted to execute an initialization program having the following method steps: first model information of a target device, first operation code information of a target device, and first data information of a target device.

[0089] When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: identifying the target device based on the first model information to obtain an identification result; and determining a message parser corresponding to the target device based on the identification result.

[0090] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: determining first data information based on first operation code information; processing the first data information to obtain processed first data information, wherein the processed first data information includes collection sequence information of the first data information; setting the collection sequence information of the first data information corresponding to the first model information as the first information of the target device.

[0091] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: obtaining metadata content in the collection sequence information of the first data information based on the first operation code information in the message parser; analyzing the metadata content based on the target abstract method; determining the first information to be parsed based on the analyzed element content; and parsing the first information to be parsed based on the message parser.

[0092] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: analyzing the device information of the target device, the method also includes: monitoring whether the device information of the target device is uploaded to the target platform system; if it is monitored that the target platform system contains device information, obtaining the device information.

[0093] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: after obtaining the target device information, determining whether the target hardware algorithm library contains an algorithm for parsing the target device information; if the target hardware algorithm library does not contain an algorithm for parsing the target device information, determining the basic information content of the target device information in the target database, wherein the basic information content at least includes the device type of the target device and the factory information of the target device.

[0094] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: after determining the basic information content of the target device information in the target database, determining the second information of the device information based on the basic information content, and determining the message parser corresponding to the target device based on the second information.

[0095] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0096] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing 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.

[0097] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising 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.

[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing 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.

[0099] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0100] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0101] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0102] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, commodity or 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, commodity or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the existence of other identical elements in the process, method, commodity or device including the element.

[0103] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt 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.) that contain computer-usable program code.

[0104] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.< / dataclass> < / dataclass>

Claims

1. An information parsing method, It is characterized in that include: Analyze the device information of the target device to obtain first information of the target device, wherein the first information at least includes one of different data set sequence information corresponding to model information of multiple types of target devices, the device information at least includes first model information of the target device, first operation code information of the target device, and first data information of the target device, the first model information is used to identify the target device, the first operation code information at least includes a function of identifying device information and collection value information, the first data information is used to characterize dynamic data corresponding to the collection value information obtained based on the first operation code information, and the function of identifying device information at least includes uploading device information and sending device information; Determine a message parser corresponding to the target device based on the first information; Parsing the first information based on the message parser; The device information of the target device is analyzed to obtain the first information of the target device, including: determining the first data information based on the first operation code information; Processing the first data information to obtain processed first data information, wherein the processed first data information includes set sequence information of the first data information; Setting the set sequence information of the first data information corresponding to the first model information as the first information of the target device; The parsing of the first information based on the message parser includes: acquiring metadata content in the set sequence information of the first data information based on the first operation code information in the message parser; Analyzing the metadata content based on a target abstraction method; Determining first information to be parsed based on the analyzed element content; The first information to be parsed is parsed based on the message parser.

2. The method according to claim 1, It is characterized in that Determining a message parser corresponding to the target device based on the first information includes: Identify the target device based on the first model information to obtain an identification result; A message parser corresponding to the target device is determined based on the identification result.

3. The method according to claim 1, It is characterized in that Before analyzing the device information of the target device to obtain the first information of the target device, the method further includes: Monitoring whether the device information of the target device is uploaded to the target platform system; If it is monitored that the target platform system contains the device information, the device information is acquired.

4. The method according to claim 3, It is characterized in that After obtaining the target device information, the method further includes: Determine whether the target hardware algorithm library contains an algorithm for parsing the target device information; If the target hardware algorithm library does not include an algorithm for parsing the target device information, basic information content of the target device information is determined in the target database, wherein the basic information content includes at least a device type of the target device and factory information of the target device.

5. The method according to claim 4, It is characterized in that After determining the basic information content of the target device information in the target database, the method further includes: Determine the second information of the device information based on the basic information content, A message parser corresponding to the target device is determined based on the second information.

6. An information analysis device, It is characterized in that include: a first analyzing unit, configured to analyze device information of a target device to obtain first information of the target device, wherein the first information at least includes one of different data set sequence information corresponding to model information of multiple types of target devices, the device information at least includes first model information of the target device, first operation code information of the target device, and first data information of the target device, the first model information is used to identify the target device, the first operation code information at least includes a function of identifying device information and collection value information, the first data information is used to characterize dynamic data of the collection value information obtained based on the first operation code information, and the function of identifying device information at least includes uploading device information and sending device information; A first determining unit, configured to determine a message parser corresponding to the target device based on the first information; A first parsing unit, configured to parse the first information based on the message parser; Wherein, the first analysis unit further includes: A second determining module, configured to determine the first data information based on the first operation code information; A first processing module, configured to process the first data information to obtain processed first data information, wherein the processed first data information includes set sequence information of the first data information; A first setting module, used for setting the set sequence information of the first data information corresponding to the first model information as the first information of the target device; Wherein, the first parsing unit further includes: A first acquisition module, configured to acquire metadata content in the set sequence information of the first data information based on the first operation code information in the message parser; A first analysis module, configured to analyze the metadata content based on a target abstraction method; A third determination module, used to determine the first information to be parsed based on the analyzed element content; The first parsing module is used to parse the first information to be parsed based on the message parser.

7. A processor, It is characterized in that The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 5 when running.

8. A storage medium, It is characterized in that The storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Access adaptive method and device based on Internet of things terminals

    CN103095609A

  • Heterogeneous Internet of Things equipment management system

    CN111176180A