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

Equipment management method and device and electronic equipment Download PDF

Info

Publication number
CN114745452B
CN114745452B CN202210320671.0A CN202210320671A CN114745452B CN 114745452 B CN114745452 B CN 114745452B CN 202210320671 A CN202210320671 A CN 202210320671A CN 114745452 B CN114745452 B CN 114745452B
Authority
CN
China
Prior art keywords
message
original
target
analysis
data message
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.)
Active
Application number
CN202210320671.0A
Other languages
Chinese (zh)
Other versions
CN114745452A (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

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 device to be accessed, wherein communication protocols included by different network components are different, selecting a target message analysis algorithm from preset analysis algorithms, wherein the preset analysis algorithms comprise an automatic analysis algorithm, the automatic analysis algorithm automatically analyzes an original message of the target device transmitted by the network component based on pattern matching and logarithmic S-shaped transfer functions, the target device is the device pointed by the unique identifier of the device to be accessed, the target message analysis algorithm is adopted to analyze the original message of the target device, a message analysis result is obtained, and the target device and the message analysis result are associated and displayed. The method and the device can meet the requirements of enterprises on data message analysis and equipment data association of different equipment.

Description

Equipment management method and device and electronic equipment
Technical Field
The application belongs to the technical field of equipment management, and particularly relates to an equipment management method, an equipment management device, electronic equipment and a computer readable storage medium.
Background
With the rapid development of modern industry, digital transformation becomes a problem that most traditional industrial enterprises have to face, and many traditional industrial enterprises schedule digital transformation. In the process of digital transformation of traditional industrial enterprises, the primary problem faced by the realization of digitization and intellectualization is to acquire information data of different dimensions of equipment in an industrial field in the whole life cycle as much as possible.
Since the variety of devices in an industrial field is very diverse, the protocols supported by different devices and the format of the messages reported are very different. In the existing method, specific development is generally performed based on a message format reported by a device included in a project, so as to obtain an analysis result of a message reported by the device included in the project. Since the development modes are developed based on the project forms, the coupling with the whole project is strong, and therefore, once the whole project is different, the development needs to be re-developed, namely, the phenomenon of repeatedly manufacturing wheels exists, and the development cost of a company and the delivery period of the project are increased in an intangible way.
Disclosure of Invention
The embodiment of the application provides a device management method, a device and electronic equipment, which can solve the problems that in the existing method, the message analysis result of corresponding equipment can be obtained only by developing different equipment, so that the development cost is too high and the delivery period is too long.
In a first aspect, an embodiment of the present application provides a device management method, including:
selecting a corresponding network component according to the unique identifier of the equipment to be accessed, wherein the communication protocols included by different network components are different;
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 a target device transmitted by the network component based on pattern matching and a logarithmic S-shaped transfer function, and the target device is a device pointed by a unique identifier of the device to be accessed;
analyzing an 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 an associated mode.
In a second aspect, an embodiment of the present application provides an apparatus management device, 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 the communication protocols included by different network components are different;
the analysis algorithm selection module is used for selecting a target message analysis algorithm from a preset analysis algorithm, wherein 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 logarithmic 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 an associated mode.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the computer program to implement the device management method described in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the device management method described in the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on an electronic device, causes the electronic device to perform the device management method of the first aspect.
Compared with the prior art, the embodiment of the application has the beneficial effects 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 the original message of the target equipment transmitted by the network component according to the selected target analysis algorithm. Because the communication protocols included by different network components are different, different devices can be accessed through the network components, so that when information data of the different devices need to be acquired, corresponding development is not needed for the different devices, and 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 messages of the target devices transmitted by the network component based on pattern matching and logarithmic S-shaped transfer functions, so that the obtained original messages of different target devices can be automatically analyzed according to the target analysis algorithm, and message analysis results corresponding to the 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 correlated way, so that unified analysis and management of different devices are realized, interconnection and data intercommunication of the devices are realized, and the requirements of enterprises on 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 description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flow chart of a device management method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an apparatus management device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to 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 configurations, 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 should 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 any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Reference in the 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 application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise.
Embodiment one:
fig. 1 shows a flow chart of a device management method according to an embodiment of the present invention, which is described in detail below:
step S11, selecting a corresponding network component according to the unique identification of the equipment 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.
Wherein, one 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 application, different devices can be accessed through the network components because different network components include different communication protocols. When the data of different equipment is required to be acquired, the corresponding development is not required to be carried out on the different equipment, so that the phenomenon of repeatedly manufacturing wheels is avoided, and the development cost of enterprises is reduced.
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 logarithmic S-shaped transfer function, and the target device is a device pointed by a unique identifier of the device to be accessed.
Wherein pattern matching is a basic operation of a string, and given a substring, it is required to find all substrings identical to the substring in a certain string.
The logarithmic S-type transfer function refers to a Log-sigmoid type function, the transfer function is a transfer function commonly used by a Back Propagation (BP) neural network, an input value of the logarithmic S-type transfer function can take any value, and an output value is between 0 and 1.
In the embodiment of the application, the automatic analysis algorithm is selected from preset analysis algorithms, and the automatic analysis algorithm automatically analyzes the original message of the target device transmitted by the network component based on the mode matching and the logarithmic S-shaped transfer function, so that the corresponding analysis is not required to be independently carried out on the original messages of different target devices, and the phenomenon of repeatedly manufacturing wheels is avoided.
And S13, analyzing the original message of the target equipment by adopting the target message analysis algorithm to obtain a message analysis result.
In the embodiment of the application, when the message analysis is required to be performed on different target devices, the target message analysis algorithm can analyze the messages of the different target devices, so that the message analysis results of the different target devices can be obtained according to the target message analysis algorithm, and the subsequent realization of data management on the different target devices is facilitated.
And S14, displaying the target equipment and the message analysis result in an associated mode.
In the embodiment of the application, the target equipment and the message analysis result are displayed in a correlated manner, so that the message analysis result and the corresponding target equipment are displayed in a one-to-one correspondence manner, and the unified management of enterprises on different equipment is facilitated.
In the embodiment of the application, the corresponding network component is selected according to the unique identifier of the device to be accessed, the target analysis algorithm is selected from the preset analysis algorithms to analyze the original message of the target device transmitted by the network component, and as different communication protocols are included in the network component, the network component of the corresponding communication protocol can be selected according to the unique identifier of the device to be accessed when different devices are accessed, the development of different devices is not required independently, and the phenomenon of repeatedly making wheels is avoided. Because the target analysis algorithm comprises an automatic analysis algorithm, the original message of the target equipment is automatically analyzed through the selected target analysis algorithm to obtain an analysis result, the target equipment and the corresponding analysis result are subjected to associated display, the corresponding analysis is not required to be carried out on the original message of different equipment, the development cost of enterprises is reduced, the unified analysis and management of different equipment are realized, and the interconnection and the 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 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 required for connection of different equipment, unified access of different equipment is realized, and the development cost of enterprises is reduced.
In some embodiments, the preset resolving algorithm further includes a manual resolving algorithm. The manual parsing algorithm is a parsing rule written by a user aiming at certain data message groups. Specifically, when a data message group which is not matched with the analysis template in the automatic analysis algorithm is obtained, an analysis rule corresponding to the data message group can 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 rules are stored after the manual analysis, so that the automatic analysis algorithm can be matched with the corresponding analysis rules to analyze the data message group, the robustness of the automatic analysis algorithm is enhanced, and the data message analysis of different devices is better realized.
In some embodiments, when the target message parsing algorithm is an automatic parsing algorithm, the original message of the target device transmitted by the network component is parsed by adopting the automatic parsing algorithm, so as to obtain a parsing result. Correspondingly, the step S13 includes:
a1: if the number of the target devices is greater than 1, the original messages of the target devices transmitted by the network component are grouped through a clustering algorithm, and a data message group is obtained.
Specifically, because the data messages of different target devices are generally different, when the number of the target devices is greater than 1, classifying each original message of the target devices transmitted by the network component by adopting a clustering algorithm to obtain a data message group, and analyzing the original message of the data message group by adopting a corresponding analysis rule according to the data message group. For example, a clustering algorithm-mean shift algorithm is adopted to classify each original message, and a data message group is obtained according to classification results.
A2: for any original message, calculating potential function values of the original message in different data message groups, wherein the potential function values are used for indicating grouping accuracy of the data message groups into which the original message is divided.
For example, when the original message is divided into the data message group 1, the corresponding potential function value is a, when the original message is divided into the data message group 2, the corresponding potential function value is B, and a is greater than B, which indicates that the data message group 1 is more consistent with the original message, and the original message is more accurately divided into the data message group 1.
A3: and determining the data message group in which the original message is finally positioned according to the potential function values of each original message in different data message groups, and obtaining the final data message group.
Specifically, because the potential function value indicates the accuracy of each original message when the original message is divided into different data message groups, the original message can be divided into the data message groups with higher accuracy according to the potential function value of each original message, so that the data message group where the corresponding original message is finally located is determined, and the final data message 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, 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. The potential function value is used for indicating the grouping accuracy of the data message group into which the original message is divided, so that 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, 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, since the parsing rules of the original messages of the same target device are the same, the original messages of the target device transmitted by the network component do not need to be grouped, and can be directly divided into a data message group, the data message group is used as a final data message group of the original messages of the target device, and the original messages are parsed according to the final data message group, so as to obtain the message parsing result of the original messages of the target device.
In some embodiments, the step A2 specifically includes:
a21, 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.
A22, for each item pair, calculating potential function values 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 values is as follows:
Figure GDA0004125138020000081
wherein, in any data message group C, r is any item pair of any original message, N (r, C) is the number of the original messages containing item pair r in the data message group C, p (r, C) is the ratio of the original messages containing item pair r in the data message group C,
Figure GDA0004125138020000082
Is the potential function value of the original message containing the term 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 each original message according to a preset group pair rule, wherein m and n are integers greater than 1. For example, using space as a split character, splitting an original message to obtain m character strings, wherein each character string is an item, and forming an item pair from the m items by two items, and the composition rule of the item pair is as follows: in an original message, the 1 st item is combined with the following 2 nd, 3 rd, … th and m th items in sequence to form item pairs (1, 2), (1.3), …, (1, m), the 2 nd item is combined with the following 3 rd, 4 th, … th and m th items in sequence to form item pairs (2, 3), (2, 4), …, (2, m), and the like, so that the original message is combined into n item pairs.
It should be noted that, the rule of the group pair of each item is not unique, one item pair can be formed by three items or other items, the rule of the corresponding group pair is different, the group rule of the item pair can be determined according to the number of the items of the original message, for example, the number of the items of the group pair is set according to the range of the number of the items of the original message, so as to prevent the problem that the calculation amount of the potential function value is overlarge because of the large number of the items.
In the embodiment of the application, each original message in the data message group is split into the items through the preset splitting rule, the items of each original message are formed into the item pairs according to the preset combining rule, the potential function values of the corresponding original message in different data message groups are calculated according to the item pairs, and the description of the content of the original message is more accurate because the item pairs are formed according to each item of the original message, so that the accuracy of the data message group into which the original message is divided can be better judged according to the potential function values of the item pairs.
In some embodiments, the step A3 includes:
a31, comparing the potential function value of the original message in each data message group for any original message, and taking the data message group corresponding to the potential function value with the maximum original message as the data message group where the original message is finally positioned.
A32, dividing each original message into a data message group corresponding to the original message and at the end, and obtaining a final data message group.
For example, the data packet obtained by grouping the original packets includes a data packet group 1, a data packet group 2 and a data packet group 3, wherein the potential function value of any original packet x of the data packet group 1 when the original packet x is a, b, c respectively when the original packet x is the data packet group 1, the data packet group 2 and the data packet group 3, the values of a, b and c are compared, wherein the value of c is the largest, i.e. the potential function value of the original packet x when the original packet x is 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 final data packet group where the original packet x is located. According to the method, the data message group where each original message included in different data message groups is finally located is determined, and then the final data message group is determined.
In the embodiment of the present application, since the potential function value of the original message in each data message group indicates the accuracy of the grouping of the original message, by comparing the potential function value of each 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, the original message is divided into the data message groups 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 making the grouping result more accurate and further being beneficial to the subsequent analysis of the original messages of different data message groups.
In some embodiments, the step A4 includes:
a41, calculating the occurrence frequency of each item in each original message in the final data message group in which each item is located.
A42, taking the item with the frequency larger than the preset frequency threshold value as the candidate item of the corresponding final data message group.
Specifically, a preset frequency threshold for selecting candidates is determined according to the distribution range of frequencies.
A43, determining the analysis template of the corresponding final data message group according to the candidate item.
A44, matching a pre-written 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, and obtaining a message analysis result.
Specifically, one or more candidates with the largest frequency value among the candidates are selected as the analysis templates of the final data message group according to the number of the candidates in the final data message group. For example, 6 items a, b, c, d, e, f, g in a final data packet group are calculated to obtain frequencies of 0.11, 0.23, 0.20, 0.12, 0.09, 0.16 and 0.12, candidate items are selected by taking 0.15 as a frequency threshold according to the frequency distribution range of the final data packet group, candidate items b, c and f are obtained, the number of candidate items in the data packet group is 3, and then two candidate items b and c with the largest frequency are selected as analysis templates of the final data packet group to be matched with corresponding analysis rules of the data packet group. If the current analysis template cannot be matched with the analysis rule corresponding to the data message group, sequentially taking the single candidate item as the analysis template to match the analysis rule of the data message group according to the frequency of the candidate item, namely taking the candidate item b with the largest frequency as the analysis template to match the analysis rule of the data message group, and taking the candidate item c with the second frequency as the analysis template to match the analysis rule of the data message group if the corresponding analysis rule cannot be matched, and so on until the corresponding analysis rule is matched or all the candidate items are matched with the analysis rule. If the corresponding analysis rules cannot be matched according to the analysis templates, the data message group is analyzed through a manual analysis algorithm.
In the embodiment of the application, according to the occurrence frequency of each item in the final data message group, candidate items are selected, and according to the preset selection rule, candidate items are selected from the candidate items as the analysis templates of the final data message group, because the analysis templates are formed according to the occurrence frequency of each item in the data message group, the higher the occurrence frequency of each item in the data message group is, the more representative of the original message type of the final data message group, therefore, according to the item with the frequency greater than the preset frequency threshold value as the analysis template, the analysis rule corresponding to the final data message group can be more quickly and accurately matched according to the analysis templates, thereby realizing the automatic analysis of the original message of the final data message group, avoiding the need of enterprises to analyze and develop the original messages of different devices respectively, reducing the development cost of the enterprises and meeting the requirements of the enterprises on the data message analysis of different devices.
In some embodiments, before the target device is displayed in association with the message parsing result in step S14, a device model is further established.
The device model is used for describing the attribute of the target device, wherein the attribute of the target device comprises a unique identification, basic information, functions and events of the target device.
In particular, the unique identification of the target device describes the unique identification number of the device and the network protocol employed by the device. Wherein the unique identification number may be a number, a character string, a combination of a number and a character string, or the like. The basic information of the target device includes information such as the name, model, part, type, manufacturer, maintenance status, etc. of the device. The events of the target device refer to operations, anomalies, faults and other events performed during the running process of the device.
Correspondingly, the step S14 includes:
and associating the message analysis result with the equipment instance of the corresponding target equipment created according to the equipment model according to the unique identifier of the target equipment, and mapping the message analysis result into the corresponding equipment instance for display.
The device instance is used for recording information of the attribute of the target device, and the attribute of the target device recorded by the device instance comprises a unique identifier of the device, basic information, functions and events.
Specifically, according to the unique identifier of the target device, associating the corresponding device instance, and according to the unique identifier, mapping the obtained message analysis result to the corresponding device instance for display.
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, unified management of different equipment is realized, interconnection and data intercommunication of the equipment are realized, and the requirement of enterprises on equipment data management of different equipment is met.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Embodiment two:
corresponding to the above device management method according to the above embodiment, fig. 2 shows a block diagram of the device management apparatus according to the embodiment of the present application, and for convenience of explanation, only the portion related to the embodiment of the present application is shown.
Referring to fig. 2, the device management apparatus 2 includes: the device access module 21, the analysis algorithm selection module 22, the message analysis module 23 and the display module 24. Wherein, the liquid crystal display device comprises a liquid crystal display device,
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 the communication protocols included in different network components are different.
The parsing algorithm selection module 22 is configured to select a target message parsing algorithm from preset parsing algorithms, where the preset parsing algorithms include an automatic parsing algorithm, and the automatic parsing algorithm automatically parses 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 pointed by a unique identifier of the device to be accessed.
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 used for displaying the target equipment and the message analysis result in an associated manner.
In the embodiment of the application, the corresponding network component is selected according to the unique identifier of the device to be accessed, the target analysis algorithm is selected from the preset analysis algorithms to analyze the original message of the target device transmitted by the network component, and as different communication protocols are included in the network component, the network component of the corresponding communication protocol can be selected according to the unique identifier of the device to be accessed when different devices are accessed, the development of different devices is not required independently, and the phenomenon of repeatedly making wheels is avoided. Because the target analysis algorithm comprises an automatic analysis algorithm, the original message of the target equipment is automatically analyzed through the selected target analysis algorithm to obtain an analysis result, the target equipment and the corresponding analysis result are subjected to associated display, the corresponding analysis is not required to be carried out on the original message of different equipment, the development cost of enterprises is reduced, the unified analysis and management of different equipment are realized, and the interconnection and the data intercommunication of the equipment are realized.
In some embodiments, the data access module 21 includes:
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 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.
In some embodiments, the parsing algorithm selection module selects a target message parsing algorithm from preset parsing algorithms, where the preset parsing algorithms further include a manual parsing algorithm, and correspondingly, the message parsing module further includes:
and the manual analysis unit is used for writing analysis rules of the data message group which are not matched with the analysis template in the automatic analysis algorithm by a 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 devices transmitted by the network component through a clustering algorithm if the number of the target devices is greater than 1, so as to obtain a data message group.
And the potential function calculation unit is used for calculating potential function values of the original message 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 message is divided.
And the final grouping unit is used for determining the data message group in which the original message is finally positioned 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 calculation 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.
The computing unit is used for computing potential function values of the original message containing the item pairs in each data message group based on the item pairs, wherein the computing formula of the potential function values is as follows:
Figure GDA0004125138020000131
wherein, in any data message group C, r is any item pair of any original message, N (r, C) is the number of the original messages containing item pair r in the data message group C, p (r, C) is the ratio of the original messages containing item pair r in the data message group C,
Figure GDA0004125138020000141
Is the potential function value of the original message containing the term pair r in the data message group C. />
In some embodiments, the final grouping unit includes:
and the potential function comparison unit is used for comparing the potential function value of any original message in each data message group, and taking the data message group corresponding to the potential function value with the maximum potential function value of the original message as the data message group where the original message is finally positioned.
And the regrouping unit is used for dividing each original message into the data message group corresponding to the original message and at the end to obtain a final data message group.
In some embodiments, the parsing unit includes:
and the frequency calculation unit is used for calculating the frequency of each item in each original message in the final data message group in which each item appears in the final data message group.
And the candidate item acquisition unit is used for taking the item with the frequency larger 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 item.
And the matching analysis unit is used for matching the pre-written analysis rules according to the analysis template so as to automatically analyze the original message of the final data message group according to the matched analysis rules and obtain a message analysis result.
In some embodiments, the device management apparatus 2 further includes:
and the device model building module is used for building a device model which is used for describing the attribute of the target device.
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 into the corresponding equipment instance for display, wherein the equipment instance is used for recording the information of the attribute of the target equipment.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
Embodiment III:
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present 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, the processor 30 implementing the steps of any of the various method embodiments described above, such as steps S11 to S14 shown in fig. 1, when executing the computer program 32. Alternatively, the processor 30, when executing the computer program 32, performs the functions of the modules/units of the devices, such as the functions of the modules 21 to 24 shown in fig. 2.
By way of example, 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 complete the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions for describing the execution of the computer program 32 in the electronic device 3. For example, the computer program 32 may be divided into a device access module 21, an parsing algorithm selection module 22, a message parsing module 23, and a presentation module 24, where specific functions between the modules are as follows:
a device access module 21, configured to select a corresponding network component according to a unique identifier of a device to be accessed, where communication protocols included in different network components are different;
the parsing algorithm selection module 22 is configured to select a target message parsing algorithm from preset parsing algorithms, where the preset parsing algorithm includes an automatic parsing algorithm, and the automatic parsing algorithm automatically parses, based on pattern matching and a logarithmic S-type transfer function, an original message of a target device transmitted by the network component, 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 to obtain a message parsing result;
and the display module 24 is used for displaying the target equipment and the message analysis result in an associated manner.
The electronic device 3 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The electronic device may include, but is not limited to, a processor 30, a memory 31. It will be appreciated by those skilled in the art that fig. 3 is merely an example of the electronic device 3 and is not meant to be limiting of the electronic device 3, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 30 may be a central processing unit (Central Processing Unit, CPU), the processor 30 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, 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 in other embodiments also be an external storage device of the electronic device 3, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are 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, application programs, boot loader (BootLoader), data, other programs etc., such as program codes of the computer program etc. The memory 31 may also be used for temporarily storing 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-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a network device, which comprises: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, which when executed by the processor performs the steps of any of the various method embodiments described above.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps that may implement the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on an electronic device, causes the electronic device to perform steps that may be performed in the various method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, 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 camera device/electronic apparatus, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
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 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 manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in 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 the communication protocols included by different network components are different;
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 a target device transmitted by the network component based on pattern matching and a logarithmic S-shaped transfer function, and the target device is a device pointed by a unique identifier of the device to be accessed;
analyzing an 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 an associated mode.
2. The device management method according to claim 1, wherein when the target message parsing algorithm is the automatic parsing algorithm, the parsing the original message of the target device transmitted by the network component using the target message parsing algorithm to obtain a message parsing result includes:
if the number of the target devices is greater than 1, grouping original messages of the target devices transmitted by the network component through a clustering algorithm to obtain a data message group;
for any original message, calculating potential function values of the original message in different data message groups, wherein the potential function values are used for indicating grouping accuracy of the data message groups into which the original message is divided;
Determining a data message group in which the original message is finally positioned according to potential function values of the original messages in different data message groups, and obtaining 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 for any one of the original messages, calculating potential function values of the original message in different data message groups includes:
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;
for each item pair, calculating potential function values of original messages containing the item pair in each data message group based on the item pair, wherein the calculation formula of the potential function values is as follows:
Figure FDA0004125138010000021
wherein, in any data message group C, r is any item pair of any original message, N (r, C) is the number of the original messages containing item pair r in the data message group C, p (r, C) is the ratio of the original messages containing item pair r in the data message group C,
Figure FDA0004125138010000022
is 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 the final data packet group in which the original packet is finally located according to the potential function values of each original packet in different data packet groups, to obtain the final data packet group, includes:
comparing potential function values of the original message in each data message group for any original message, and taking the data message group corresponding to the potential function value with the largest original message as the data message group where the original message is finally positioned;
dividing each original message into a data message group corresponding to the original message and at the end, and obtaining a final data message group.
5. The device management method according to claim 2, wherein the parsing the original message according to the final data message group to obtain a message parsing result includes:
calculating the occurrence frequency of each item in each original message in the final data message group in which each item in each original message in the final data message group is positioned;
taking the item with the frequency larger 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 to automatically analyze the original message of the final data message group according to the matched analysis rule, so as 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 identification of the device to be accessed 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 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, further comprising, before said associating the target device with the message parsing result for display:
establishing a device model, wherein the device model is used for describing the attribute of the target device, and the attribute of the device model comprises a unique identifier, basic information, functions and events of the target device;
the step of displaying the target device and the message analysis result in an associated manner comprises the following steps:
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 into the corresponding equipment instance for display, 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 the communication protocols included by different network components are different;
the analysis algorithm selection module is used for selecting a target message analysis algorithm from a preset analysis algorithm, wherein 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 logarithmic 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 an associated mode.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements 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 CN114745452A (en) 2022-07-12
CN114745452B true 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)

Families Citing this family (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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9244903B2 (en) * 2013-04-15 2016-01-26 Vmware, Inc. Efficient data pattern matching
US11082432B2 (en) * 2017-12-05 2021-08-03 Intel Corporation Methods and apparatus to support reliable digital communications without integrity metadata

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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.2009 Second International Conference on Computer and Electrical Engineering.2010,全文. *
王烁 ; 屈玉贵 ; 赵保华 ; 潘全科 ; .一种面向ABNF模式匹配的处理器设计.电子学报.2007,(02),全文. *

Also Published As

Publication number Publication date
CN114745452A (en) 2022-07-12

Similar Documents

Publication Publication Date Title
US20120143893A1 (en) Pattern Matching Framework for Log Analysis
CN111562965B (en) Page data verification method and device based on decision tree
CN110554958A (en) Graph database testing method, system, device and storage medium
CN111460232A (en) Functional module searching method, device, terminal and computer readable storage medium
CN114745452B (en) Equipment management method and device and electronic equipment
CN112181430A (en) Code change statistical method and device, electronic equipment and storage medium
CN116107703A (en) Interface control document generation method and device
CN110018845B (en) Metadata version comparison method and device
CN111078276A (en) Application redundant resource processing method, device, equipment and storage medium
CN113032580B (en) Associated file recommendation method and system and electronic equipment
CN112988780A (en) Data checking method and device, storage medium and electronic equipment
CN112363939A (en) Method, system and equipment for quickly generating fuzzy test network protocol template
CN109710626B (en) Data warehousing management method and device, electronic equipment and storage medium
CN111259623A (en) PDF document paragraph automatic extraction system and device based on deep learning
CN115543435A (en) Software development quality measuring method, device and equipment based on development contribution value
CN115543460A (en) Initialization method and device of server mainboard
CN110503504B (en) Information identification method, device and equipment of network product
CN112003837A (en) Intelligent equipment adaptation method and device based on Modbus protocol and storage medium
CN111652281A (en) Information data classification method and device and readable storage medium
CN113778904B (en) Multi-terminal system testing method and device based on integrated test case
CN113141603B (en) Data communication method, system, master terminal device and slave terminal device
CN113051450B (en) Device model automatic classification method and device, storage medium and equipment
CN112199428B (en) Application management system, method and terminal equipment of functional data block
CN112732681B (en) Data platform migration method and system
CN117390292B (en) Application program information recommendation method, system and equipment based on machine learning

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