CN114745452A - Equipment management method and device and electronic equipment - Google Patents

Equipment management method and device and electronic equipment Download PDF

Info

Publication number
CN114745452A
CN114745452A CN202210320671.0A CN202210320671A CN114745452A CN 114745452 A CN114745452 A CN 114745452A CN 202210320671 A CN202210320671 A CN 202210320671A CN 114745452 A CN114745452 A CN 114745452A
Authority
CN
China
Prior art keywords
message
equipment
original
target
analysis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210320671.0A
Other languages
Chinese (zh)
Other versions
CN114745452B (en
Inventor
李世河
李彦庆
王承先
龚亮华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fengtai Technology Beijing Co ltd
Original Assignee
Fengtai Technology Beijing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fengtai Technology Beijing Co ltd filed Critical Fengtai Technology Beijing Co ltd
Priority to CN202210320671.0A priority Critical patent/CN114745452B/en
Publication of CN114745452A publication Critical patent/CN114745452A/en
Application granted granted Critical
Publication of CN114745452B publication Critical patent/CN114745452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application is applicable to the technical field of equipment management, and provides an equipment management method, an equipment management device and electronic equipment, wherein the equipment management method comprises the following steps: selecting a corresponding network component according to the unique identifier of the equipment to be accessed, wherein different network components comprise different communication protocols, and selecting a target message analysis algorithm from preset analysis algorithms, wherein the preset analysis algorithm comprises an automatic analysis algorithm, the automatic analysis algorithm automatically analyzes an original message of target equipment transmitted by the network component based on pattern matching and a logarithm S-shaped transfer function, the target equipment is equipment pointed by the unique identifier of the equipment to be accessed, the original message of the target equipment is analyzed by adopting the target message analysis algorithm to obtain a message analysis result, and the target equipment and the message analysis result are displayed in a correlation manner. The method and the device can meet the requirements of enterprises for data message analysis and device data association of different devices.

Description

Equipment management method and device and electronic equipment
Technical Field
The present application belongs to the technical field of device management, and in particular, to a device management method, an apparatus, an electronic device, and a computer-readable storage medium.
Background
The first problem to be faced in realizing digitization and intellectualization by transformation and upgrade of the traditional industrial enterprise is to acquire information data of different dimensions of equipment in an industrial field in a full life cycle as far as possible.
Because the variety of the equipment in the industrial field is various, the protocols supported by different equipment and the reported message formats are also different. In the existing method, specific development is usually performed based on a message format reported by a device included in a project to obtain an analysis result of a message reported by the device included in the project. Since the development method is based on the form of the project and has strong coupling with the whole project, once the whole project is different, the development is needed again, namely, the phenomenon of repeatedly manufacturing wheels exists, and the development cost of a company and the lead time of the project are increased invisibly.
Disclosure of Invention
The embodiment of the application provides a device management method and device and electronic equipment, and can solve the problems that in the existing method, different devices need to be developed to obtain message analysis results of corresponding devices, so that development cost is too high and a delivery cycle is too long.
In a first aspect, an embodiment of the present application provides an apparatus management method, including:
selecting a corresponding network component according to the unique identifier of the equipment to be accessed, wherein different network components comprise different communication protocols;
selecting a target message analysis algorithm from preset analysis algorithms, wherein the preset analysis algorithm comprises an automatic analysis algorithm, the automatic analysis algorithm automatically analyzes an original message of target equipment transmitted by the network component based on pattern matching and a logarithm S-shaped transfer function, and the target equipment is equipment pointed by a unique identifier of the equipment to be accessed;
analyzing the original message of the target equipment by adopting the target message analysis algorithm to obtain a message analysis result;
and displaying the target equipment and the message analysis result in a correlation manner.
In a second aspect, an embodiment of the present application provides an apparatus for device management, including:
the device access module is used for selecting a corresponding network component according to the unique identifier of the device to be accessed, wherein different network components comprise different communication protocols;
the system comprises an analysis algorithm selection module, a network component transmission module and a target device, wherein the analysis algorithm selection module is used for selecting a target message analysis algorithm from preset analysis algorithms, the preset analysis algorithms comprise automatic analysis algorithms, the automatic analysis algorithms automatically analyze original messages of the target device transmitted by the network component based on pattern matching and a logarithm S-shaped transfer function, and the target device is a device pointed by a unique identifier of the device to be accessed;
the message analysis module is used for analyzing the original message of the target equipment by adopting the target message analysis algorithm to obtain a message analysis result;
and the display module is used for displaying the target equipment and the message analysis result in a correlation manner.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the device management method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of the device management method in the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when run on an electronic device, causes the electronic device to execute the device management method according to the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: and selecting a corresponding network component to connect the equipment to be accessed according to the unique identifier of the equipment to be accessed, and analyzing an original message of the target equipment transmitted by the network component according to a selected target analysis algorithm. Because the communication protocols of different network components are different, different devices can be accessed through the network components, and when information data of different devices need to be acquired, corresponding development for different devices is not needed, so that the phenomenon of repeatedly manufacturing wheels is avoided. Meanwhile, the target analysis algorithm comprises an automatic analysis algorithm, and the automatic analysis algorithm automatically analyzes the original message of the target equipment transmitted by the network component based on the pattern matching and the logarithm S-shaped transfer function, so that the obtained original messages of different target equipment can be automatically analyzed according to the target analysis algorithm, and message analysis results corresponding to different original messages can be automatically obtained. In addition, after the message analysis result is obtained, the target device and the message analysis result are displayed in a correlation mode, so that unified analysis and management of different devices are achieved, interconnection and data intercommunication of the devices are achieved, and the requirements of enterprises for data message analysis and device data management of different devices are met.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below.
Fig. 1 is a schematic flowchart of a device management method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a device management apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather mean "one or more but not all embodiments" unless specifically stated otherwise.
The first embodiment is as follows:
fig. 1 shows a schematic flow chart of a safety monitoring method for an industrial robot according to an embodiment of the present invention, which is detailed as follows:
and step S11, selecting the corresponding network component according to the unique identifier of the device to be accessed.
The unique identifier of the device to be accessed describes the unique identification number of the device to be accessed and the network protocol adopted by the device to be accessed.
The network component is internally provided with at least one communication protocol related to the industrial field, and two different network components comprise different communication protocols and can be connected with the equipment to be accessed according to the communication protocol adopted by the equipment to be accessed.
In the embodiment of the present application, different network components include different communication protocols, so that different devices can be accessed through the network components. When the data of different equipment need be obtained, the development that corresponds to different equipment no longer need be carried out to avoided the phenomenon of repeated wheel of making, and then reduced the development cost of enterprise.
And step S12, selecting a target message analysis algorithm from the preset analysis algorithms.
The preset analysis algorithm comprises an automatic analysis algorithm, the automatic analysis algorithm automatically analyzes an original message of a target device transmitted by the network component based on pattern matching and a logarithm S-shaped transfer function, and the target device is a device pointed by the unique identifier of the device to be accessed.
The pattern matching is a basic operation of a character string, and given a substring, all substrings identical to the substring are required to be found in a certain character string.
The logarithmic sigmoid transfer function is a Log-sigmoid transfer function commonly used in a BP (back propagation) neural network, and an input value of the logarithmic sigmoid transfer function can be any value, and an output value is between 0 and 1.
In the embodiment of the application, an automatic analysis algorithm is selected from preset analysis algorithms, the automatic analysis algorithm automatically analyzes the original message of the target equipment transmitted by the network component based on the pattern matching and the logarithm S-shaped transfer function, corresponding analysis is not required to be independently performed on the original messages of different target equipment, and the phenomenon of repeated wheel manufacturing is avoided.
And step S13, analyzing the original message of the target device by adopting the target message analysis algorithm to obtain a message analysis result.
In the embodiment of the application, when different target devices need to be analyzed, because the target message analysis algorithm can realize the analysis of the messages of the different target devices, the message analysis results of the different target devices can be obtained according to the target message analysis algorithm, thereby facilitating the subsequent realization of data management of the different target devices.
And step S14, displaying the target device and the message analysis result in a correlation manner.
In the embodiment of the application, the target equipment and the message analysis result are displayed in an associated manner, so that the message analysis result and the corresponding target equipment are displayed in a one-to-one correspondence manner, and enterprises can conveniently and uniformly manage different equipment.
In the embodiment of the application, the corresponding network component is selected according to the unique identifier of the equipment to be accessed, the target analysis algorithm is selected from the preset analysis algorithms to analyze the original message of the target equipment transmitted by the network component, and different communication protocols are included in the network component, so that the network component of the corresponding communication protocol can be selected according to the unique identifier of the equipment to be accessed when different equipment is accessed, the development aiming at different equipment is not required independently, and the phenomenon of repeated wheel manufacturing is avoided. Because the target analysis algorithm comprises the automatic analysis algorithm, the original message of the target equipment is automatically analyzed through the selected target analysis algorithm to obtain an analysis result, and the target equipment and the corresponding analysis result are displayed in an associated manner, the corresponding analysis of the original messages of different equipment is not needed, the development cost of enterprises is reduced, the uniform analysis and management of different equipment are realized, and the interconnection and data intercommunication of the equipment are realized.
In some embodiments, the step S11 includes:
acquiring a network protocol of the equipment to be accessed according to the unique identifier of the equipment to be accessed;
and selecting a network component with a corresponding communication protocol according to the network protocol, and setting the connection parameters of the network component according to the equipment to be accessed.
In the embodiment of the application, the network protocol of the equipment to be accessed is obtained through the unique identifier of the equipment to be accessed, so that the network component with the corresponding communication protocol is selected according to the network protocol, the connection parameters of the network component are set to be connected with the equipment to be accessed, independent development is not needed for connection of different equipment, uniform access of different equipment is realized, and development cost of enterprises is reduced.
In some embodiments, the predetermined parsing algorithm further includes a manual parsing algorithm. The manual analysis algorithm is an analysis rule written by a user aiming at certain data message groups. Specifically, when a data packet group that does not match the parsing template in the automatic parsing algorithm is found, the parsing rule corresponding to the data packet group may be written and stored. Therefore, after the user selects manual analysis, the data message group can be analyzed through the automatic analysis algorithm when the automatic analysis algorithm cannot analyze the data message group, and the corresponding analysis rule is stored after the manual analysis, so that the automatic analysis algorithm can be subsequently matched with the corresponding analysis rule to analyze the data message group, the robustness of the automatic analysis algorithm is enhanced, and the data message analysis of different equipment is better realized.
In some embodiments, when the target message parsing algorithm is an automatic parsing algorithm, the automatic parsing algorithm is used to parse an original message of the target device transmitted by the network component, so as to obtain a parsing result. Correspondingly, the step S13 includes:
a1: and if the number of the target devices is more than 1, grouping the original messages of the target devices transmitted by the network components through a clustering algorithm to obtain a data message group.
Specifically, since data packets of different target devices are generally different, when the number of target devices is greater than 1, a clustering algorithm is used to classify each original packet of the target devices transmitted by the network component, so as to obtain a data packet group, and thus, according to the data packet group, the original packet of the data packet group is analyzed by using a corresponding analysis rule. For example, the clustering algorithm-mean shift algorithm is adopted to classify each original message, and a data message group is obtained according to the classification result.
A2: and calculating the potential function value of any original message in different data message groups, wherein the potential function value is used for indicating the grouping accuracy of the data message groups into which the original message is grouped.
For example, when an original message is classified into the data message group 1, the corresponding potential function value is a, when the original message is classified into the data message group 2, the corresponding potential function value is B, and a is greater than B, it indicates that the data message group 1 is more consistent with the original message, and it is more accurate to classify the original message into the data message group 1.
A3: and determining the final data message group of each original message according to the potential function values of the original messages in different data message groups to obtain the final data message group.
Specifically, because the potential function value indicates the accuracy of each original packet when being divided into different data packet groups, the original packet can be divided into data packet groups with higher accuracy according to the potential function value of each original packet, so that the data packet group where the corresponding original packet finally belongs is determined, and the final data packet group is obtained.
A4: and analyzing the original message according to the final data message group to obtain a message analysis result.
In the embodiment of the application, the original messages are grouped through a clustering algorithm to obtain data message groups, the potential function values of the original messages in different data message groups are calculated, and the final data message group of the original messages is determined according to the potential function values. Because the potential function value is used for indicating the grouping accuracy of the data message group into which the original message is grouped, when the final data message group of the original message is determined according to the potential function value, the grouping result can be more accurate, so that the original message is automatically analyzed according to the final data message group, and the accuracy of the automatic analysis algorithm is improved.
It should be noted that, if the number of the target devices is 1, because the parsing rules of the original packets of the same target device are the same, the original packets of the target device transmitted by the network component do not need to be grouped, and the original packets can be directly divided into a data packet group, the data packet group is used as a final data packet group of the original packets of the target device, and the original packets are parsed according to the final data packet group, so as to obtain a packet parsing result of the original packets of the target device.
In some embodiments, the step a2 specifically includes:
a21, for any original message, splitting the original message into m items, and forming n item pairs by the m items according to a preset rule, wherein m and n are integers greater than 1.
A22, for each item pair, calculating a potential function value of the original message containing the item pair in each data message group based on the item pair, wherein the calculation formula of the potential function value is as follows:
Figure BDA0003571532570000081
wherein, in any data packet group C, r is any pair of any original packet, N (r, C) is the number of original packets containing item pair r in the data packet group C, p (r, C) is the ratio of original packets containing item pair r in the data packet group C,
Figure BDA0003571532570000082
the potential function value of the original message containing the above item pair r in the data message group C.
Specifically, splitting each original message in the data message group according to a preset splitting rule to obtain m items of the original message, and forming n item pairs of the items of each original message according to a preset group-to-group rule, wherein m and n are integers greater than 1. For example, a space is used as a split character, an original message is split to obtain m character strings, each character string is an item, the m items form an item pair by two items, and the composition rule of the item pair is as follows: in an original message, item 1 is combined with the following items 2,3, … and m in sequence to form item pairs (1,2), (1.3), … and (1, m), item 2 is combined with the following items 3, 4, … and m in sequence to form item pairs (2,3), (2,4), … and (2, m), and so on, the original message is combined to form n item pairs.
It should be noted that the group pair rule of each item is not unique, and may be a pair of items composed of three items or other numbers of items, and the rules of the corresponding pair of composed items are also different, and the composition rule of the item pair may be determined according to the number of items of the original packet, for example, the number of items composing the item pair is set according to the item number range of the original packet, so as to prevent the problem of too large computation amount of the potential function value due to the large number of item pairs.
In the embodiment of the application, each original message in the data message group is split into items according to a preset splitting rule, the items of each original message form an item pair according to a preset combination rule, and the potential function value of the corresponding original message in different data message groups is calculated according to the item pair.
In some embodiments, the step a3 includes:
a31, comparing the potential function values of the original message in each data message group, and using the data message group corresponding to the maximum potential function value of the original message as the final data message group of the original message.
And A32, dividing each original message into a final data message group corresponding to the original message to obtain a final data message group.
For example, the data packet group obtained by grouping the original packets includes a data packet group 1, a data packet group 2, and a data packet group 3, and for any original packet x of the data packet group 1, the potential function values of the original packet x when the data packet group 1, the data packet group 2, and the data packet group 3 are a, b, and c, the magnitudes of a, b, and c are compared, where the value of c is the largest, that is, the potential function value of the original packet x when the data packet group 3 is the largest, the original packet x is divided into the data packet group 3, and the data packet group 3 is the data packet group where the original packet x is finally located. According to the method, the data message group where each original message included in different data message groups finally belongs is determined, and then the final data message group is determined.
In the embodiment of the application, because the potential function value of the original message in each data message group indicates the grouping accuracy of the original message, the original message is divided into the data message groups by comparing the potential function values of the original messages in the data message groups and taking the data message group corresponding to the largest potential function value of the original message as the final data message group of the original message, so as to obtain the final data message group of each original message, so that each original message can be finally divided into more accurate data message groups, thereby enabling the grouping result to be more accurate, and further facilitating the subsequent analysis of the original messages of different data message groups.
In some embodiments, the step a4 includes:
and A41, calculating the frequency of each item in each original message in the final data message group.
And A42, taking the item with the frequency greater than the preset frequency threshold value as the candidate item of the corresponding final data message group.
Specifically, according to the distribution range of the frequency, a preset frequency threshold value of the selection candidate is determined.
And A43, determining the analysis template of the corresponding final data message group according to the candidate items.
And A44, matching a pre-written analysis rule according to the analysis template, and automatically analyzing the original message of the final data message group according to the matched analysis rule to obtain a message analysis result.
Specifically, one or more candidate items with the largest frequency value in the candidate items are selected as the analysis template of the final data packet according to the number of the candidate items in the final data packet. For example, there are 6 items a, b, c, d, e, f, and g in a certain final data packet group, the frequencies of the items a, b, c, d, e, f, and g are calculated to be 0.11, 0.23, 0.20, 0.12, 0.09, 0.16, and 0.12, respectively, according to the distribution range of the frequencies, the candidates b, c, and f are obtained by selecting the candidates 0.15 as a frequency threshold, and the candidates b, c, and f are obtained, and if the number of the candidates of the data packet group is 3, two candidates b and c with the largest frequencies are selected as the parsing template of the final data packet group to match the corresponding parsing rule of the data packet group. If the current analysis template can not be matched with the corresponding analysis rule of the data message group, according to the frequency of the candidate items, sequentially using a single candidate item as the analysis template to match the analysis rule of the data message group, namely using the candidate item b with the highest frequency as the analysis template to match the analysis rule of the data message group, if the corresponding analysis rule can not be matched, using the candidate item c with the second frequency as the analysis template to match the analysis rule of the data message group, and so on until the corresponding analysis rule is matched or all the candidate items are matched with the analysis rule. And if the corresponding analysis rule can not be matched according to the analysis template, analyzing the data message group through a manual analysis algorithm.
In the embodiment of the application, the candidate item is selected according to the occurrence frequency of each item in the final data packet, and the candidate item is selected from the candidate item as the parsing template of the final data packet according to the preset selection rule, because the parsing template is composed according to the occurrence frequency of each item in the data packet, and the higher the occurrence frequency of each item in the data packet is, the more representative the original packet type of the final data packet is, therefore, the item with the frequency greater than the preset frequency threshold value as the parsing template can be more quickly and accurately matched to the parsing rule corresponding to the final data packet according to the parsing template, thereby realizing the automatic parsing of the original packet of the final data packet, eliminating the need of the enterprise to perform parsing development work respectively for the original packets of different devices, and reducing the enterprise development cost, the requirement of enterprises on data message analysis of different devices is met.
In some embodiments, before the step S14 displays the target device in association with the message parsing result, a device model is established.
The device model is used for describing the attributes of the target device, and the attributes of the target device comprise the unique identification, basic information, functions and events of the target device.
Specifically, the unique identifier of the target device describes the unique identification number of the device and the network protocol employed by the device. The unique id number may be a number, a character string, a combination of a number and a character string, and the like. The basic information of the target device includes information such as the name, model, part, type, manufacturer, and maintenance status of the device. The event of the target device refers to an event such as an operation, an abnormality, and a failure performed in the operation process of the device.
Correspondingly, the step S14 includes:
and associating the message analysis result with the corresponding equipment instance of the target equipment established according to the equipment model according to the unique identifier of the target equipment, and mapping the message analysis result to the corresponding equipment instance for display.
The device instance is used for recording the information of the attribute of the target device, and the attribute of the target device recorded by the device instance comprises the unique identifier, the basic information, the function and the event of the device.
Specifically, the corresponding device instance is associated according to the unique identifier of the target device, and the obtained message analysis result is mapped to the corresponding device instance according to the unique identifier for displaying.
In the embodiment of the application, according to the established equipment model, the equipment instance corresponding to the target equipment is established to be associated with the target equipment, so that the message analysis result corresponding to the target equipment is mapped to the corresponding equipment instance to be displayed, the unified management of different equipment is realized, the interconnection and data intercommunication of the equipment is realized, and the requirements of enterprises on the equipment data management of different equipment are met.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example two:
fig. 2 shows a block diagram of a device management apparatus according to an embodiment of the present application, which corresponds to the device management method described above in the foregoing embodiment.
Referring to fig. 2, the device management apparatus 2 includes: the device comprises a device access module 21, an analysis algorithm selection module 22, a message analysis module 23 and a display module 24. Wherein, the first and the second end of the pipe are connected with each other,
the device access module 21 is configured to select a corresponding network component according to the unique identifier of the device to be accessed, where different network components include different communication protocols.
And an analysis algorithm selection module 22, configured to select a target message analysis algorithm from preset analysis algorithms, where the preset analysis algorithm includes an automatic analysis algorithm, and the automatic analysis algorithm performs automatic analysis on an original message of a target device transmitted by the network component based on pattern matching and a logarithmic S-shaped transfer function, where the target device is a device to which a unique identifier of the device to be accessed points.
The message parsing module 23 is configured to parse the original message of the target device by using the target message parsing algorithm, so as to obtain a message parsing result.
And the display module 24 is configured to associate and display the target device and the message analysis result.
In the embodiment of the application, the corresponding network component is selected according to the unique identifier of the equipment to be accessed, the target analysis algorithm is selected from the preset analysis algorithms to analyze the original message of the target equipment transmitted by the network component, and different communication protocols are included in the network component, so that the network component of the corresponding communication protocol can be selected according to the unique identifier of the equipment to be accessed when different equipment is accessed, the development aiming at different equipment is not required independently, and the phenomenon of repeated wheel manufacturing is avoided. Because the target analysis algorithm comprises the automatic analysis algorithm, the original message of the target equipment is automatically analyzed through the selected target analysis algorithm to obtain an analysis result, and the target equipment and the corresponding analysis result are displayed in an associated manner, the corresponding analysis of the original messages of different equipment is not needed, the development cost of enterprises is reduced, the uniform analysis and management of different equipment are realized, and the interconnection and data intercommunication of the equipment are realized.
In some embodiments, the data access module 21 includes:
and the network protocol acquisition unit is used for acquiring the network protocol of the equipment to be accessed according to the unique identifier of the equipment to be accessed.
And the connection unit is used for selecting the network component with the corresponding communication protocol according to the network protocol and setting the connection parameters of the network component according to the equipment to be accessed.
In some embodiments, the parsing algorithm selecting module selects a target message parsing algorithm from preset parsing algorithms, where the preset parsing algorithm further includes a manual parsing algorithm, and correspondingly, the message parsing module further includes:
and the manual analysis unit is used for compiling the analysis rule of the data message group for the data message group of which the analysis template can not be matched in the automatic analysis algorithm by the user.
And the storage unit is used for storing the analysis rule of the data message group which is not matched with the analysis template in the automatic analysis algorithm written by the user.
In some embodiments, the message parsing module 23 includes:
and the clustering grouping unit is used for grouping the original messages of the target equipment transmitted by the network component through a clustering algorithm to obtain a data message group if the number of the target equipment is more than 1.
And the potential function calculation unit is used for calculating potential function values of the original messages in different data message groups for any original message, and the potential function values are used for indicating the grouping accuracy of the data message groups into which the original messages are grouped.
And the final grouping unit is used for determining the data message group where the original message finally belongs according to the potential function values of the original messages in different data message groups to obtain a final data message group.
And the analysis unit is used for analyzing the original message according to the final data message group to obtain a message analysis result.
In some embodiments, the latent function calculating unit includes:
the message splitting unit is used for splitting any original message into m items and forming n item pairs by the m items according to a preset rule, wherein m and n are integers larger than 1.
A calculating unit, configured to calculate, for each item pair, a potential function value of an original packet including the item pair in each data packet group based on the item pair, where a calculation formula of the potential function value is:
Figure BDA0003571532570000131
wherein, in any data message group C, r is any pair of any original message, N (r, C) is the number of the original messages containing the item pair r in the data message group C, p (r, C) is the ratio of the original messages containing the item pair r in the data message group C,
Figure BDA0003571532570000132
the potential function value of the original message in the data message group C containing the above-mentioned item pair r.
In some embodiments, the final grouping unit includes:
and the potential function comparison unit is used for comparing potential function values of any original message in each data message group, and taking the data message group corresponding to the maximum potential function value of the original message as the final data message group of the original message.
And the regrouping unit is used for dividing each original message into a final data message group corresponding to the original message to obtain a final data message group.
In some embodiments, the parsing unit includes:
and the frequency calculating unit is used for calculating the frequency of each item in each original message in the final data message group.
And the candidate item acquisition unit is used for taking the item with the frequency greater than the preset frequency threshold value as the candidate item of the corresponding final data message group.
And the analysis template acquisition unit is used for determining the analysis template of the final data message group according to the candidate items.
And the matching analysis unit is used for matching the pre-compiled analysis rule according to the analysis template so as to automatically analyze the original message of the final data message group according to the matched analysis rule to obtain a message analysis result.
In some embodiments, the device management apparatus 2 further includes:
and the equipment model establishing module is used for establishing an equipment model, and the equipment model is used for describing the attribute of the target equipment.
Correspondingly, the display module 24 includes:
and the association display unit is used for associating the message analysis result with the equipment instance of the target equipment created according to the equipment model according to the unique identifier, mapping the message analysis result to the corresponding equipment instance and displaying the message analysis result, wherein the equipment instance is used for recording the attribute information of the target equipment.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Example three:
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the application. As shown in fig. 3, the electronic apparatus 3 of this embodiment includes: at least one processor 30 (only one processor is shown in fig. 3), a memory 31, and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, wherein the processor 30 executes the computer program 32 to implement the steps of any of the various method embodiments described above, such as the steps S11 to S14 shown in fig. 1. Alternatively, the processor 30 implements the functions of the modules/units in the devices, such as the modules 21 to 24 shown in fig. 2, when executing the computer program 32.
Illustratively, the computer program 32 may be partitioned into one or more modules/units that are stored in the memory 31 and executed by the processor 30 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program 32 in the electronic device 3. For example, the computer program 32 may be divided into the device access module 21, the parsing algorithm selection module 22, the message parsing module 23, and the presentation module 24, and the specific functions among the modules are as follows:
the device access module 21 is configured to select a corresponding network component according to the unique identifier of the device to be accessed, where different network components include different communication protocols;
an analysis algorithm selecting module 22, configured to select a target message analysis algorithm from preset analysis algorithms, where the preset analysis algorithm includes an automatic analysis algorithm, and the automatic analysis algorithm performs automatic analysis on an original message of a target device transmitted by the network component based on pattern matching and a logarithmic S-type transfer function, where the target device is a device to which a unique identifier of the device to be accessed points;
a message parsing module 23, configured to parse the original message of the target device by using the target message parsing algorithm to obtain a message parsing result;
and a display module 24, configured to associate and display the target device and the message analysis result.
The electronic device 3 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The electronic device may include, but is not limited to, a processor 30, a memory 31. Those skilled in the art will appreciate that fig. 3 is only an example of the electronic device 3, and does not constitute a limitation to the electronic device 3, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, and the like.
The Processor 30 may be a Central Processing Unit (CPU), and the Processor 30 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may in some embodiments be an internal storage unit of the electronic device 3, such as a hard disk or a memory of the electronic device 3. The memory 31 may also be an external storage device of the electronic device 3 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the electronic device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the electronic device 3. The memory 31 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 31 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on an electronic device, enables the electronic device to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/electronic device, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-drive, a removable hard drive, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical function division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A device management method, comprising:
selecting a corresponding network component according to the unique identifier of the equipment to be accessed, wherein different network components comprise different communication protocols;
selecting a target message analysis algorithm from preset analysis algorithms, wherein the preset analysis algorithm comprises an automatic analysis algorithm, the automatic analysis algorithm automatically analyzes an original message of target equipment transmitted by the network component based on pattern matching and a logarithm S-shaped transfer function, and the target equipment is equipment pointed by a unique identifier of the equipment to be accessed;
analyzing the original message of the target equipment by adopting the target message analysis algorithm to obtain a message analysis result;
and displaying the target equipment and the message analysis result in a correlation manner.
2. The device management method according to claim 1, wherein the target packet parsing algorithm is the automatic parsing algorithm, and the parsing, by using the target packet parsing algorithm, of the original packet of the target device transmitted by the network component to obtain a packet parsing result includes:
if the number of the target devices is larger than 1, grouping original messages of the target devices transmitted by the network component through a clustering algorithm to obtain a data message group;
calculating potential function values of the original messages in different data message groups for any original message, wherein the potential function values are used for indicating the grouping accuracy of the data message groups into which the original messages are grouped;
determining a data message group where the original message finally locates according to potential function values of the original messages in different data message groups to obtain a final data message group;
and analyzing the original message according to the final data message group to obtain a message analysis result.
3. The device management method according to claim 2, wherein said calculating, for any of said raw packets, potential function values of said raw packet in different groups of said data packets comprises:
splitting any original message into m items, and forming n item pairs by the m items according to a preset rule, wherein m and n are integers greater than 1;
for each item pair, calculating a latent function value of an original message containing the item pair in each data message group based on the item pair, wherein the latent function value is calculated by the following formula:
Figure FDA0003571532560000021
wherein, in any data message group C, r is any pair of any original message, N (r, C) is the number of the original messages containing the item pair r in the data message group C, p (r, C) is the ratio of the original messages containing the item pair r in the data message group C,
Figure FDA0003571532560000022
the potential function value of the original message containing the item pair r in the data message group C.
4. The device management method according to claim 2, wherein the determining, according to the latent function value of each of the original packets in different data packet groups, a data packet group in which the original packet is finally located to obtain a final data packet group includes:
comparing the potential function values of the original messages in each data message group for any original message, and taking the data message group corresponding to the maximum potential function value of the original message as the data message group where the original message is finally located;
and dividing each original message into a final data message group corresponding to the original message to obtain a final data message group.
5. The device management method according to claim 2, wherein the parsing the original packet according to the final data packet group to obtain a packet parsing result comprises:
calculating the frequency of each item in each original message in the final data message group;
taking the item with the frequency greater than a preset frequency threshold value as a candidate item of the corresponding final data message group;
determining an analysis template of the final data message group according to the candidate item;
and matching a pre-written analysis rule according to the analysis template, and automatically analyzing the original message of the final data message group according to the matched analysis rule to obtain a message analysis result.
6. The device management method according to claim 1, wherein the selecting the corresponding network component according to the unique identifier of the device to be accessed comprises:
acquiring a network protocol of the equipment to be accessed according to the unique identifier of the equipment to be accessed;
and selecting a network component with a corresponding communication protocol according to the network protocol, and setting connection parameters of the network component according to the equipment to be accessed.
7. The device management method according to any one of claims 1 to 6, wherein before the associating and displaying the target device and the message parsing result, further comprising:
establishing an equipment model, wherein the equipment model is used for describing the attributes of the target equipment, and the attributes of the equipment model comprise a unique identifier, basic information, functions and events of the target equipment;
the associating and displaying the target device and the message analysis result comprises:
and associating the message analysis result with the equipment instance of the target equipment created according to the equipment model according to the unique identifier, mapping the message analysis result to the corresponding equipment instance and displaying the message analysis result, wherein the equipment instance is used for recording the attribute information of the target equipment.
8. A device management apparatus, comprising,
the device access module is used for selecting a corresponding network component according to the unique identifier of the device to be accessed, wherein different network components comprise different communication protocols;
the system comprises an analysis algorithm selection module, a network component transmission module and a target device, wherein the analysis algorithm selection module is used for selecting a target message analysis algorithm from preset analysis algorithms, the preset analysis algorithms comprise automatic analysis algorithms, the automatic analysis algorithms automatically analyze original messages of the target device transmitted by the network component based on pattern matching and a logarithm S-shaped transfer function, and the target device is a device pointed by a unique identifier of the device to be accessed;
the message analysis module is used for analyzing the original message of the target equipment by adopting the target message analysis algorithm to obtain a message analysis result;
and the display module is used for displaying the target equipment and the message analysis result in a correlation manner.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202210320671.0A 2022-03-29 2022-03-29 Equipment management method and device and electronic equipment Active CN114745452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210320671.0A CN114745452B (en) 2022-03-29 2022-03-29 Equipment management method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210320671.0A CN114745452B (en) 2022-03-29 2022-03-29 Equipment management method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN114745452A true CN114745452A (en) 2022-07-12
CN114745452B CN114745452B (en) 2023-05-16

Family

ID=82276332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210320671.0A Active CN114745452B (en) 2022-03-29 2022-03-29 Equipment management method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114745452B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580505A (en) * 2022-09-05 2023-01-06 欣旺达电动汽车电池有限公司 Message processing method and device, electronic equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140310225A1 (en) * 2013-04-15 2014-10-16 Vmware, Inc. Efficient data pattern matching
CN109144964A (en) * 2018-08-21 2019-01-04 杭州安恒信息技术股份有限公司 log analysis method and device based on machine learning
US20190044954A1 (en) * 2017-12-05 2019-02-07 Intel Corporation Methods And Apparatus To Support Reliable Digital Communications Without Integrity Metadata
CN112671734A (en) * 2020-12-16 2021-04-16 中国平安人寿保险股份有限公司 Message processing method facing multiple data sources and related equipment thereof
CN114050926A (en) * 2021-11-09 2022-02-15 南方电网科学研究院有限责任公司 Data message depth detection method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140310225A1 (en) * 2013-04-15 2014-10-16 Vmware, Inc. Efficient data pattern matching
US20190044954A1 (en) * 2017-12-05 2019-02-07 Intel Corporation Methods And Apparatus To Support Reliable Digital Communications Without Integrity Metadata
CN109144964A (en) * 2018-08-21 2019-01-04 杭州安恒信息技术股份有限公司 log analysis method and device based on machine learning
CN112671734A (en) * 2020-12-16 2021-04-16 中国平安人寿保险股份有限公司 Message processing method facing multiple data sources and related equipment thereof
CN114050926A (en) * 2021-11-09 2022-02-15 南方电网科学研究院有限责任公司 Data message depth detection method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HAMED MEHRARA; MOHAMMAD ZAHEDINEJAD; ALI PARSAYAN: "Novel Edge Detection Using BP Neural Network Based on Threshold Binarization" *
王烁;屈玉贵;赵保华;潘全科;: "一种面向ABNF模式匹配的处理器设计" *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580505A (en) * 2022-09-05 2023-01-06 欣旺达电动汽车电池有限公司 Message processing method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN114745452B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
CN109902105B (en) Data query system, method, device and storage medium for micro-service architecture
CN107819627B (en) System fault processing method and server
CN108304522A (en) Comparison method, device and the terminal device of difference between a kind of database
WO2019052162A1 (en) Method, apparatus and device for improving data cleaning efficiency, and readable storage medium
CN110688828A (en) File processing method and device, file processing system and computer equipment
CN113111227A (en) Data processing method and device, electronic equipment and storage medium
CN114491047A (en) Multi-label text classification method and device, electronic equipment and storage medium
CN111738763A (en) Policy processing method, device, equipment and storage medium
CN114745452B (en) Equipment management method and device and electronic equipment
CN116107703A (en) Interface control document generation method and device
CN111625567A (en) Data model matching method, device, computer system and readable storage medium
CN116502273B (en) Dynamic data desensitization method, device and equipment based on data blood edges
WO2019090825A1 (en) Automatic comparison method, apparatus and device for fund system testing values and storage medium
CN112988780A (en) Data checking method and device, storage medium and electronic equipment
CN111652281B (en) Information data classification method, device and readable storage medium
CN114385540A (en) Data unit conversion method and device
CN110765100B (en) Label generation method and device, computer readable storage medium and server
CN115114297A (en) Data lightweight storage and search method and device, electronic equipment and storage medium
CN113504865A (en) Work order label adding method, device, equipment and storage medium
CN112035159A (en) Configuration method, device, equipment and storage medium of audit model
CN112003837A (en) Intelligent equipment adaptation method and device based on Modbus protocol and storage medium
CN115168673B (en) Data graphical processing method, device, equipment and storage medium
US11940966B2 (en) Method, apparatus, and system for estimating database management system performance
CN114819590B (en) Policy intelligent recommendation method, device, equipment and storage medium
CN113051450B (en) Device model automatic classification method and device, storage medium and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant