A method and device for generating configuration file of driving and mining equipment
By combining the information of the driving and mining equipment in the rail transit system and generating configuration files, the problem of data mismatch and low development efficiency caused by a wide variety of equipment and complex connection relationships is solved, and efficient data application development and mismatch rate are achieved. .
Patent Information
- Application Number
- CN202110974631.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-24
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2041-08-24
AI Technical Summary
In rail transit systems, there are many types of driving and harvesting equipment and complex connection relationships, which leads to large workloads of data packetization and analysis during data collection and application development, low efficiency, and difficult to reuse, resulting in the probability of data mismatch High, consuming a lot of manpower and time.
By combining the device information, communication information, input data information and output data information of the drive and harvesting equipment into a preset document, parsing and association, adding database identifiers, bit domains and security identifiers, generating configuration files, and realizing drive and harvesting Application development of equipment data.
It reduces the probability of data misconfiguration, reduces the workload of data configuration, improves application development efficiency, can effectively detect problems in data application development, and eliminates the traditional encoding and decoding process.
Smart Images

Figure CN113688428B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rail transit signals, and in particular to a method and device for generating a driving and mining equipment configuration file for trackside equipment. Background Art
[0002] In the rail transit system, the driving equipment of trackside equipment is widely distributed, including switch driving equipment, signal driving equipment, relay driving equipment and other scattered equipment driving equipment; among them, the switch driving equipment can drive the switch to control the rotation of the turnout, and collect the switch indication and switch action current; the signal driving equipment can control the lighting and extinguishing of the signal light, and collect the signal filament state and filament current; the relay driving equipment can drive the safety relay to operate and collect the relay state. By developing and applying the data information collected by each driving equipment, the trackside equipment can be safely and reliably controlled and monitored; however, the driving equipment of trackside equipment is not only numerous and diverse, but also has different connection relationships, resulting in diverse data collected by each driving equipment and complex interactions between data. In the traditional application development process of the data collected by the driving equipment, a large amount of work comes from the data packaging and parsing process, and this process is often not reused, resulting in low efficiency of application development and a large amount of manpower and time costs. Summary of the invention
[0003] The object of the present invention is to provide a method and device for generating a configuration file of a production equipment, which can realize application development of production equipment data, reduce the probability of data mismatching and reduce the workload of data configuration.
[0004] In order to achieve the above object, the present invention is implemented by the following technical solutions:
[0005] A method for generating a configuration file for a flooding and mining device, comprising:
[0006] Merging device information, communication information, input data information, and output data information of a plurality of driving and mining devices into a preset document to obtain a merged file;
[0007] Parsing the merged file to obtain an input data set and an output data set;
[0008] Associating the input data set with the output data set to obtain a plurality of data combinations; and
[0009] A database identifier, a bit field and a security identifier are added to each of the data combinations to obtain a configuration file.
[0010] Preferably, the device information of each of the driving and mining devices includes: device identification code, network parameters and communication protocol;
[0011] The communication information of each of the driving and mining equipment includes: the equipment identification code and equipment network connection information;
[0012] The input data information of each of the driving and mining equipment includes: data name, input parameters and input data source;
[0013] The output data information of each of the driving and mining equipment includes: the data name, output parameters, output data destination and data redundancy relationship.
[0014] Preferably, the preset document is in XML format; and the architecture of the preset document includes a device management part, a data description part and a network communication part;
[0015] The configuration file is in binary format.
[0016] Preferably, the step of merging the equipment information, communication information, input data information and output data information of a plurality of driving and mining equipment into a preset document comprises:
[0017] Merging the equipment information of each of the driving and mining equipment into the equipment management part of the preset document;
[0018] Merging the input data information and the output data information of each of the driving and extraction equipment into the data description part of the preset document;
[0019] Merging the communication information of each of the extraction devices into the network communication portion of the preset document to obtain the merged file; and
[0020] A verification code of the merged file is generated.
[0021] Preferably, before executing the step of parsing the merged file, the method further includes:
[0022] Verifying the integrity of the merged file according to the verification code of the merged file; and
[0023] The legality of the complete merged file architecture is verified according to the preset XSD file.
[0024] Preferably, the step of parsing the merged file includes:
[0025] Extracting each of the input data information and each of the output data information from the data description part of the legal merged file;
[0026] Constructing all the input data information into one input data set; and
[0027] All the output data information is constructed into one output data set.
[0028] Preferably, the step of parsing the merged file further includes:
[0029] Extracting each of the device information from the device management part of the legally merged file;
[0030] Each of the communication messages is extracted from the network communication portion of the merged file that is legal.
[0031] Preferably, the step of establishing an association relationship between the input data set and the output data set comprises:
[0032] Associating each of the input data information in the input data set with the corresponding output data information in the output data set according to the data name, so as to obtain a plurality of initial data combinations;
[0033] According to the device network connection information, the input data source and the output data destination, each of the initial data combinations is associated with the corresponding communication information to obtain a plurality of communication data combinations;
[0034] Associating each of the communication data combinations with the corresponding device information according to the device identification code to obtain a plurality of device data combinations; and
[0035] According to the data name, the input data source and the output data destination, all the device data combinations are analyzed differently to obtain a plurality of different data combinations.
[0036] Preferably, before executing the step of adding a database identifier, a bit field and a security identifier to each of the data combinations, the method further includes:
[0037] Acquire a transmission mode of each of the different data combinations according to the destination of the output data;
[0038] According to the transmission mode and the data redundancy relationship of each of the different data combinations, a transmission identifier and a redundancy identifier are respectively added to the corresponding different data combinations to obtain a plurality of first identifier data combinations;
[0039] Dividing all the first identification data combinations into a plurality of data groups according to the device identification code; and
[0040] All the first identification data combinations in each of the data groups are sorted according to the transmission identifier and the redundancy identifier of the first identification data combination.
[0041] Preferably, the step of adding a database identifier, a bit field and a security identifier to each of the data combinations comprises:
[0042] According to the input data source and the output data destination, sequentially adding database identifiers to the input data information and the output data information of each first identification data combination in each data group to obtain a plurality of ordered second identification data combinations;
[0043] Adding bit fields to each of the second identification data combinations in sequence according to the data length to obtain a plurality of ordered bit field data combinations;
[0044] Adding security identifiers to each of the bit field data combinations in sequence according to a preset security code to obtain a plurality of ordered security identifier data combinations; and
[0045] The configuration file is generated according to a plurality of ordered combinations of the security identification data.
[0046] On the other hand, the present invention also provides a device for generating a configuration file for a driving and mining device, comprising:
[0047] A merging module, used to merge the equipment information, communication information, input data information and output data information of several driving and mining equipment into a preset document to obtain a merged file;
[0048] A parsing module, connected to the merging module, for parsing the merged file to obtain an input data set and an output data set;
[0049] an associating module, connected to the parsing module, for establishing an associative relationship between the input data set and the output data set to obtain a plurality of data combinations; and
[0050] The configuration file generating module is connected with the association module and is used for adding a database identifier, a bit field and a security identifier to each of the data combinations to obtain a configuration file.
[0051] Preferably, the device information of each of the driving and mining devices includes: device identification code, network parameters and communication protocol;
[0052] The communication information of each of the driving and mining equipment includes: the equipment identification code and equipment network connection information;
[0053] The input data information of each of the driving and mining equipment includes: data name, input parameters and input data source;
[0054] The output data information of each of the driving and mining equipment includes: the data name, output parameters, output data destination and data redundancy relationship.
[0055] Preferably, the preset document is in XML format; and the architecture of the preset document includes a device management part, a data description part and a network communication part;
[0056] The configuration file is in binary format.
[0057] Preferably, the merging module comprises:
[0058] an information merging unit, connected to the parsing module, for merging the device information and the communication information of each of the driving and mining devices into the device management part and the network communication part of the preset document, respectively, and merging the input data information and the output data information of each of the driving and mining devices into the data description part of the preset document, so as to obtain the merged file;
[0059] The verification code generating unit is connected to the information merging unit and is used to generate a verification code for the merged file.
[0060] Preferably, the device for generating a configuration file for a driving and mining equipment further comprises: a verification module; the verification module comprises:
[0061] an integrity checking unit, connected to the information merging unit and the check code generating unit respectively, and configured to check the integrity of the merged file according to the check code of the merged file; and
[0062] The legality verification unit is connected to the integrity verification unit and the parsing module respectively, and is used to verify the legality of the complete merged file architecture according to a preset XSD file.
[0063] Preferably, the parsing module comprises:
[0064] A data information extraction unit, connected to the legality verification unit, for extracting each of the input data information and each of the output data information from the data description part of the legal merged file;
[0065] an input data collection unit, connected to the data information extraction unit and the association module respectively, and used to construct all the input data information into one input data collection; and
[0066] The output data set unit is connected to the data information extraction unit and the association module respectively, and is used to construct all the output data information into one output data set.
[0067] Preferably, the parsing module further includes:
[0068] A device information extraction unit, connected to the legality verification unit and the association module respectively, extracting each device information from the device management part of the legal merged file;
[0069] The communication information extraction unit is connected to the legality verification unit and the association module respectively, and extracts each communication information from the network communication part of the legal merged file.
[0070] Preferably, the association module includes:
[0071] an initial association unit, connected to the input data set unit and the output data set unit respectively, for associating each of the input data information in the input data set with the corresponding output data information in the output data set according to the data name, so as to obtain a plurality of initial data combinations;
[0072] a communication association unit, connected to the initial association unit and the communication information extraction unit, respectively, for associating each of the initial data combinations with the corresponding communication information according to the device network connection information, the input data source and the output data destination, so as to obtain a plurality of communication data combinations;
[0073] a device association unit, connected to the communication association unit and the device information extraction unit, respectively, and associating each of the communication data combinations with the corresponding device information according to the device identification code to obtain a plurality of device data combinations; and
[0074] The difference analysis unit is connected to the device association unit and the configuration file generation module respectively, and is used to perform difference analysis on all the device data combinations according to the data name, the input data source and the output data destination to obtain a plurality of different data combinations.
[0075] Preferably, the device for generating a configuration file for driving and mining equipment further comprises:
[0076] A transmission mode generating module, connected to the difference analysis unit, for obtaining a transmission mode of each of the different data combinations according to the output data destination;
[0077] a transmission identification module connected to the transmission mode generation module, and configured to add a transmission identification and a redundancy identification to the corresponding different data combination according to the transmission mode and the data redundancy relationship of each different data combination, so as to obtain a plurality of first identification data combinations;
[0078] a grouping module, connected to the transmission identification module, and configured to group all the first identification data combinations into a plurality of data groups according to the device identification code; and
[0079] A sorting module is connected to the grouping module and the configuration file generating module respectively, and is used to sort all the first identification data combinations in each of the data groups according to the transmission identifier and the redundant identifier of the first identification data combination.
[0080] Preferably, the configuration file generating module includes:
[0081] a database identification unit connected to the sorting module, and configured to sequentially add database identification to the input data information and the output data information of each first identification data combination in each data group according to the input data source and the output data destination, so as to obtain a plurality of ordered second identification data combinations;
[0082] A bit field adding unit, connected to the database identification unit, for sequentially adding a bit field to each second identification data combination according to the data length, so as to obtain a plurality of ordered bit field data combinations;
[0083] a security code identification unit connected to the bit field adding unit, and used to sequentially add a security identification to each bit field data combination according to a preset security code to obtain a plurality of ordered security identification data combinations; and
[0084] The file generating unit is connected to the security code identification unit and is used to generate the configuration file according to a plurality of ordered security identification data combinations.
[0085] Compared with the prior art, the present invention has at least one of the following advantages:
[0086] The present invention provides a method and device for generating a configuration file of a mining equipment. A merged file can be obtained by merging the equipment information, communication information, input data information and output data information of several mining equipment into a preset document. A configuration file can be obtained by parsing, associating and adding a database identifier, a bit field and a security identifier to the merged file, thereby realizing application development of mining equipment data.
[0087] The preset document in the present invention is in XML format and has a standardized structure, so that the merged file also has a standardized structure; the configuration file is in a binary format with a fixed structure, which can effectively reduce the probability of data mismatch from the merged file to the configuration file and greatly reduce the workload of data configuration.
[0088] The present invention realizes the application development of driving and mining equipment data from data analysis, code bit mapping to data storage by parsing, associating and adding database identifiers, bit fields and security identifiers to the merged files. At the same time, it can also effectively detect potential problems in data application development and eliminate the data encoding and decoding process of the traditional application development process, greatly reducing the workload of data configuration.
[0089] The present invention can also add special application parameters of the mining equipment to the corresponding safety identification data combination according to the equipment identification code, and generate a configuration file according to the safety identification data combination with the special parameter data added, thereby greatly improving the versatility of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] Figure 1 It is a flow chart of a method for generating a configuration file of a driving and mining equipment provided by an embodiment of the present invention;
[0091] Figure 2 It is a structural schematic diagram of a device for generating a configuration file for a driving and mining equipment provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0092] The following is a further detailed description of a method and device for generating a configuration file for a driving and mining equipment proposed in the present invention in combination with the accompanying drawings and specific embodiments. According to the following description, the advantages and features of the present invention will become clearer. It should be noted that the accompanying drawings are in a very simplified form and use non-precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. In order to make the purposes, features and advantages of the present invention more obvious and easy to understand, please refer to the accompanying drawings. It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention, so they have no technical substantive significance. Any structural modification, change in proportional relationship or adjustment of size, without affecting the effects that can be produced by the present invention and the purposes that can be achieved, should still fall within the scope of the technical content disclosed by the present invention.
[0093] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0094] Combined with Figure 1 As shown, this embodiment provides a method for generating a configuration file for a driving and mining device, comprising: step S110, merging device information, communication information, input data information and output data information of a plurality of driving and mining devices into a preset document to obtain a merged file; step S120, parsing the merged file to obtain an input data set and an output data set; step S130, establishing an association relationship between the input data set and the output data set to obtain a plurality of data combinations; and step S140, adding a database identifier, a bit field and a security identifier to each of the data combinations to obtain a configuration file.
[0095] Please continue to refer to Figure 1 The device information of each of the driving and mining devices includes: device identification code, network parameters and communication protocol; the communication information of each of the driving and mining devices includes: device identification code and device network connection information; the input data information of each of the driving and mining devices includes: data name, input parameters and input data source; the output data information of each of the driving and mining devices includes: data name, output parameters, output data destination and data redundancy relationship.
[0096] Specifically, in this embodiment, according to specific application requirements, several of the driving and extraction devices can be selected and the device information, the communication information, the input data information and the output data information of each of the driving and extraction devices can be obtained; wherein the data redundancy relationship in the output data information can be redundant or non-redundant, but the present invention is not limited to this.
[0097] Please continue to refer to Figure 1 , the preset document is in XML format; and the architecture of the preset document includes a device management part, a data description part and a network communication part; the configuration file is in binary format.
[0098] It can be understood that, in some other embodiments, the step S110 includes: merging the device information of each of the driving and mining devices into the device management part of the preset document; merging the input data information and the output data information of each of the driving and mining devices into the data description part of the preset document; merging the communication information of each of the driving and mining devices into the network communication part of the preset document to obtain the merged file; and generating a verification code for the merged file.
[0099] In some embodiments, before executing the step S120, the method further includes: verifying the integrity of the merged file according to the verification code of the merged file; and verifying the legality of the complete merged file architecture according to a preset XSD file.
[0100] Specifically, for the preset document in XML format, the preset XSD file can be used to define its syntax, architecture and all possible changes, and provide strict parameter definition restrictions, so that the preset document has a standardized structure, thereby making the merged file have a standardized structure, and then facilitating the generation of the configuration file according to the merged file. More specifically, when configuring the preset XSD file, a check code of the preset XSD file can be generated, so that before the complete merged file architecture is verified for legitimacy according to the preset XSD file, the integrity of the preset XSD file can be verified according to the check code of the preset XSD file, so that the result of the legitimacy verification of the complete merged file architecture has higher reliability. Preferably, the integrity verification of the merged file and the preset XSD file can both use MD5 verification, but the present invention is not limited to this.
[0101] In this embodiment, if the integrity check of the merged file and the legality check of the complete merged file structure are both successful, the operations of the subsequent steps can be performed in sequence; if the integrity check of the merged file or the legality check of the complete merged file structure is unsuccessful, the operations of all subsequent steps are terminated.
[0102] In other embodiments, the legal merged file may also be analyzed to verify the correctness of the input-output logic between the input data information and the output data information in the legal merged file; if the correctness verification of the input-output logic is unsuccessful, the subsequent steps may be performed in sequence; if the correctness verification of the input-output logic is unsuccessful, all subsequent steps are also terminated.
[0103] Please continue to refer to Figure 1, the step S120 includes: extracting each of the input data information and each of the output data information from the data description part of the legal merged file; constructing all of the input data information into one of the input data sets; and constructing all of the output data information into one of the output data sets.
[0104] It can be understood that, in some other embodiments, the step S120 further includes: extracting each piece of the device information from the device management part of the legal merged file; extracting each piece of the communication information from the network communication part of the legal merged file.
[0105] In some embodiments, the step S130 includes: associating each of the input data information in the input data set with the corresponding output data information in the output data set according to the data name to obtain a number of initial data combinations; associating each of the initial data combinations with the corresponding communication information according to the device network connection information, the input data source and the output data destination to obtain a number of communication data combinations; associating each of the communication data combinations with the corresponding device information according to the device identification code to obtain a number of device data combinations; and performing a difference analysis on all the device data combinations according to the data name, the input data source and the output data destination to obtain a number of different data combinations.
[0106] Specifically, in this embodiment, since the input data information and the output data information of each of the driving and mining devices include the same data name, each of the input data information in the input data set and the corresponding output data information in the output data set can be associated based on the same data name. Since the device network connection information in the communication information of each of the driving and mining devices simultaneously includes the input data source and the output data destination of the driving and mining device, each of the initial data combination and the corresponding communication information association can be associated based on the same input data source and the output data destination. Since the communication information and the device information of each of the driving and mining devices include the same device identification code, each of the communication data combination and the corresponding device information can be associated based on the same device identification code, but the present invention is not limited to this.
[0107] Specifically, in this embodiment, repeated device data combinations can be eliminated by performing difference analysis on all the device data combinations, thereby reducing the workload; wherein the repeated device data combinations may be device data combinations having the same data name, input data source, and output data destination, but the present invention is not limited thereto.
[0108] Please continue to refer to Figure 1 , before executing the step S140, it also includes: obtaining the transmission mode of each of the different data combinations according to the output data destination; adding a transmission identifier and a redundant identifier to the corresponding different data combination according to the transmission mode of each of the different data combinations and the data redundancy relationship to obtain a plurality of first identification data combinations; dividing all the first identification data combinations into a plurality of data groups according to the device identification code; and sorting all the first identification data combinations in each of the data groups according to the transmission identifier and the redundant identifier of the first identification data combination.
[0109] Specifically, in this embodiment, the transmission mode of each of the different data combinations can be any one of point-to-point transmission, broadcast transmission and local transmission. More specifically, if the output data of a certain different data combination is destined for a first device, and the first device is not the source of the input data of the different data combination, then the transmission mode of the different data combination is point-to-point transmission; if the output data of a certain different data combination is destined for a second device and a third device respectively, and the second device and the third device are not the source of the input data of the different data combination, then the transmission mode of the different data combination is broadcast transmission; if the output data of a certain different data combination is destined for a fourth device, and the fourth device is the source of the input data of the different data combination, then the transmission mode of the different data combination is local transmission, but the present invention is not limited thereto.
[0110] Specifically, in this embodiment, since each of the first identification data combinations contains a device identification code, all of the first identification data combinations can be divided into a plurality of data groups according to different device identification codes, and all of the data groups can be sorted in ascending order or descending order according to the size of the corresponding device identification code. For all of the first identification data combinations in each of the data groups, they can be sorted in a preset descending order according to the transmission identifier and the redundant identifier of each of the first identification data combinations; wherein the preset descending order is: from top to bottom or from high to low, point-to-point transmission, broadcast transmission, local transmission, redundant and non-redundant, but the present invention is not limited thereto.
[0111] Please continue to refer to Figure 1, the step S140 includes: according to the input data source and the output data destination, sequentially adding a database identifier to the input data information and the output data information of each first identification data combination in each data group to obtain a plurality of ordered second identification data combinations; sequentially adding a bit field to each second identification data combination according to the data length to obtain a plurality of ordered bit field data combinations; sequentially adding a security identifier to each bit field data combination according to a preset security code to obtain a plurality of ordered security identification data combinations; and generating the configuration file according to the plurality of ordered security identification data combinations.
[0112] Specifically, in the present embodiment, the input end and the output end of each of the driving and mining equipment can provide both read and write databases; if the input data source and the output data destination of a certain first identification data combination are the same, and the output data destination is an external network, then a read database identifier is added to both the input data information and the output data information of the first identification data combination; if the input data source and the output data destination of a certain first identification data combination are the same, and the output data destination is not an external network, then a write database identifier is added to both the input data information and the output data information of the first identification data combination; if the input data source and the output data destination of a certain first identification data combination are different, then a read database identifier is added to the input data information of the first identification data combination, and a write database identifier is added to the output data information of the first identification data combination, but the present invention is not limited to this.
[0113] Specifically, in this embodiment, the preset security code can be a 32-bit security code, which is used to perform security verification on the configuration file during subsequent application transmission. In addition, if each of the mining equipment also has a special application parameter including the device identification code, each of the special application parameters can be added to the corresponding security identification data combination in sequence according to the device identification code, so as to generate the configuration file according to all the security identification data combinations to which the special parameter data is added, thereby greatly improving the versatility of the mining equipment configuration file generation method, but the present invention is not limited thereto.
[0114] Based on the same inventive concept, combined with the attached Figure 2The present embodiment further provides a device for generating a configuration file for a mining equipment, comprising: a merging module 110, used to merge the equipment information, communication information, input data information and output data information of a plurality of mining equipment into a preset document to obtain a merged file; a parsing module 120, connected to the merging module 110, used to parse the merged file to obtain an input data set and an output data set; an association module 130, connected to the parsing module 120, used to establish an association relationship between the input data set and the output data set to obtain a plurality of data combinations; and a configuration file generating module 140, connected to the association module 130, used to add a database identifier, a bit field and a security identifier to each of the data combinations to obtain a configuration file.
[0115] It can be understood that, in some other embodiments, the device information of each of the driving and mining devices includes: device identification code, network parameters and communication protocol; the communication information of each of the driving and mining devices includes: the device identification code and device network connection information; the input data information of each of the driving and mining devices includes: data name, input parameters and input data source; the output data information of each of the driving and mining devices includes: data name, output parameters, output data destination and data redundancy relationship.
[0116] Please continue to refer to Figure 2 , the preset document is in XML format; and the architecture of the preset document includes a device management part, a data description part and a network communication part; the configuration file is in binary format.
[0117] It can be understood that, in some other embodiments, the merging module 110 includes: an information merging unit, connected to the parsing module 120, for merging the device information and the communication information of each of the driving and mining equipment into the device management part and the network communication part of the preset document, respectively, and merging the input data information and the output data information of each of the driving and mining equipment into the data description part of the preset document to obtain the merged file; a verification code generation unit, connected to the information merging unit, for generating a verification code for the merged file.
[0118] In some embodiments, the device for generating a configuration file for mining equipment further includes: a verification module; the verification module includes: an integrity verification unit, which is respectively connected to the information merging unit and the verification code generating unit, and is used to verify the integrity of the merged file according to the verification code of the merged file; and a legality verification unit, which is respectively connected to the integrity verification unit and the parsing module 120, and is used to verify the legality of the complete merged file architecture according to a preset XSD file.
[0119] Specifically, in this embodiment, the information merging unit can merge the device information and the communication information, the input data information and the output data information of each of the driving and mining devices into the preset document, thereby generating the merged file with a standardized structure; the output end of the information merging unit is provided with a standard format output interface, which can output the merged file with a standardized structure to the verification code generation unit and the integrity verification unit respectively, but the present invention is not limited to this.
[0120] Specifically, in this embodiment, if the integrity check of the merged file and the legality check of the complete merged file architecture are both successful, the mining equipment configuration file generation device continues to run; if the integrity check of the merged file or the legality check of the complete merged file architecture is unsuccessful, the mining equipment configuration file generation device records an error log and exits, but the present invention is not limited to this.
[0121] In other embodiments, the verification module also includes a correctness verification unit connected to the legality verification unit and the data information extraction unit respectively; the correctness verification unit can analyze the legal merged file to verify the correctness of the input-output logic between the input data information and the output data information in the legal merged file; if the correctness verification of the input-output logic is unsuccessful, the driving and mining equipment configuration file generation device continues to run; if the correctness verification of the input-output logic is unsuccessful, the driving and mining equipment configuration file generation device records an error log and exits.
[0122] Please continue to refer to Figure 2 The parsing module 120 includes: a data information extraction unit, connected to the legality verification unit, for extracting each input data information and each output data information from the data description part of the legal merged file; an input data set unit, respectively connected to the data information extraction unit and the association module 130, for constructing all the input data information into one input data set; and an output data set unit, respectively connected to the data information extraction unit and the association module 130, for constructing all the output data information into one output data set.
[0123] It can be understood that, in some other embodiments, the parsing module 120 also includes: a device information extraction unit, which is respectively connected to the legitimacy verification unit and the association module 130, and extracts each device information from the device management part of the legal merged file; a communication information extraction unit, which is respectively connected to the legitimacy verification unit and the association module 130, and extracts each communication information from the network communication part of the legal merged file.
[0124] In some embodiments, the association module 130 includes: an initial association unit, connected to the input data set unit and the output data set unit, respectively, for associating each of the input data information in the input data set with the corresponding output data information in the output data set according to the data name, so as to obtain a number of initial data combinations; a communication association unit, connected to the initial association unit and the communication information extraction unit, respectively, for associating each of the initial data combinations with the corresponding communication information according to the device network connection information, the input data source and the output data destination, so as to obtain a number of communication data combinations; a device association unit, connected to the communication association unit and the device information extraction unit, respectively, for associating each of the communication data combinations with the corresponding device information according to the device identification code, so as to obtain a number of device data combinations; and a difference analysis unit, connected to the device association unit and the configuration file generation module 140, respectively, for performing difference analysis on all of the device data combinations according to the data name, the input data source and the output data destination, so as to obtain a number of different data combinations.
[0125] Please continue to refer to Figure 2 The device for generating a configuration file for mining equipment further includes: a transmission mode generating module, connected to the difference analysis unit, for obtaining the transmission mode of each of the different data combinations according to the output data destination; a transmission identification module, connected to the transmission mode generating module, for adding a transmission identification and a redundant identification to the corresponding different data combination according to the transmission mode and the data redundancy relationship of each of the different data combinations, so as to obtain a plurality of first identification data combinations; a grouping module, connected to the transmission identification module, for dividing all the first identification data combinations into a plurality of data groups according to the device identification code; and a sorting module, respectively connected to the grouping module and the configuration file generating module 140, for sorting all the first identification data combinations in each of the data groups according to the transmission identification and the redundant identification of the first identification data combination.
[0126] It can be understood that, in some other embodiments, the configuration file generation module 140 includes: a database identification unit, connected to the sorting module, for adding a database identification to the input data information and the output data information of each first identification data combination in each data group in sequence according to the input data source and the output data destination, so as to obtain a number of ordered second identification data combinations; a bit field adding unit, connected to the database identification unit, for adding a bit field to each second identification data combination in sequence according to the data length, so as to obtain a number of ordered bit field data combinations; a security code identification unit, connected to the bit field adding unit, for adding a security identification to each bit field data combination in sequence according to a preset security code, so as to obtain a number of ordered security identification data combinations; and a file generation unit, connected to the security code identification unit, for generating the configuration file according to a number of ordered security identification data combinations.
[0127] In addition, in some embodiments, if each of the mining equipment also has special application parameters including the equipment identification code, the security code identification unit can also add each of the special application parameters to the corresponding security identification data combination in sequence according to the equipment identification code, so that the file generation unit can generate the configuration file according to all the security identification data combinations to which the special parameter data is added, thereby greatly improving the versatility of the mining equipment configuration file generation device, but the present invention is not limited to this.
[0128] In summary, the present embodiment provides a method and device for generating a configuration file for mining equipment. By merging the equipment information, communication information, input data information and output data information of several mining equipment into a preset document, a merged file can be obtained; by parsing the merged file, an input data set and an output data set can be obtained; by establishing an association relationship between the input data set and the output data set, several data combinations can be obtained; by adding a database identifier, a bit field and a security identifier to each data combination, a configuration file can be obtained, thereby realizing the application development of mining equipment data. In the present embodiment, the preset document is in XML format and has a standardized structure, so that the merged file also has a standardized structure; the configuration file is in a binary format with a fixed structure, which can effectively reduce the probability of data mismatch from the merged file to the configuration file, and greatly reduce the workload of data configuration. The present embodiment can also add special application parameters of the mining equipment to the corresponding security identification data combination according to the equipment identification code, and generate a configuration file according to the security identification data combination with special parameter data added, thereby greatly improving the versatility of the present invention.
[0129] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the present invention. After reading the above content, it will be apparent to those skilled in the art that various modifications and substitutions of the present invention will occur. Therefore, the protection scope of the present invention should be limited by the appended claims.
Claims
1. A method for generating a configuration file for a flooding equipment, characterized in that: include: Merging device information, communication information, input data information, and output data information of a plurality of driving and mining devices into a preset document to obtain a merged file; The preset document is in XML format, and the architecture of the preset document includes a device management part, a data description part and a network communication part; Parsing the merged file to obtain an input data set and an output data set; Establishing an association relationship between the input data set and the output data set to obtain a plurality of data combinations; as well as Adding a database identifier, a bit field and a security identifier to each of the data combinations to obtain a configuration file; The configuration file is in binary format; The device information of each of the driving and mining devices includes: device identification code, network parameters and communication protocol; The communication information of each of the driving and mining equipment includes: the equipment identification code and equipment network connection information; The input data information of each of the driving and mining equipment includes: data name, input parameters and input data source; The output data information of each of the driving and mining equipment includes: the data name, output parameters, output data destination and data redundancy relationship; The step of merging the equipment information, communication information, input data information and output data information of a plurality of driving and mining equipment into a preset document comprises: Merging the equipment information of each of the driving and mining equipment into the equipment management part of the preset document; Merging the input data information and the output data information of each of the driving and extraction equipment into the data description part of the preset document; Merging the communication information of each of the extraction devices into the network communication portion of the preset document to obtain the merged file; The step of parsing the merged file comprises: Extracting each of the input data information and each of the output data information from the data description part of the legal merged file; Constructing all the input data information into one input data set; and Constructing all the output data information into one output data set; The step of parsing the merged file further comprises: Extracting each of the device information from the device management part of the legally merged file; extracting each of said communication information from said network communication portion of said merged file that is legal; The step of establishing an association relationship between the input data set and the output data set comprises: Associating each of the input data information in the input data set with the corresponding output data information in the output data set according to the data name, so as to obtain a plurality of initial data combinations; According to the device network connection information, the input data source and the output data destination, each of the initial data combinations is associated with the corresponding communication information to obtain a plurality of communication data combinations; Associating each of the communication data combinations with the corresponding device information according to the device identification code to obtain a plurality of device data combinations; and According to the data name, the input data source and the output data destination, all the device data combinations are analyzed differently to obtain a plurality of different data combinations; Before executing the step of adding a database identifier, a bit field and a security identifier to each of the data combinations, the method further includes: Acquire a transmission mode of each of the different data combinations according to the destination of the output data; According to the transmission mode and the data redundancy relationship of each of the different data combinations, a transmission identifier and a redundancy identifier are respectively added to the corresponding different data combinations to obtain a plurality of first identifier data combinations; Dividing all the first identification data combinations into a plurality of data groups according to the device identification code; and sorting all the first identification data combinations in each of the data groups according to the transmission identification and the redundancy identification of the first identification data combination; The step of adding a database identifier, a bit field and a security identifier to each of the data combinations comprises: According to the input data source and the output data destination, sequentially adding database identifiers to the input data information and the output data information of each first identification data combination in each data group to obtain a plurality of ordered second identification data combinations; Adding bit fields to each of the second identification data combinations in sequence according to the data length to obtain a plurality of ordered bit field data combinations; Adding security identifiers to each of the bit field data combinations in sequence according to a preset security code to obtain a plurality of ordered security identifier data combinations; and The configuration file is generated according to a plurality of ordered combinations of the security identification data.
2. The method for generating a configuration file for a flooding equipment according to claim 1, characterized in that: The configuration file is in binary format.
3. The method for generating a configuration file for a flooding equipment according to claim 1, characterized in that: The step of merging the equipment information, communication information, input data information and output data information of a plurality of driving and mining equipment into a preset document comprises: A verification code of the merged file is generated.
4. The method for generating a configuration file for a flooding equipment according to claim 3, characterized in that: Before executing the step of parsing the merged file, the method further includes: Verifying the integrity of the merged file according to the verification code of the merged file; and The legality of the complete merged file architecture is verified according to the preset XSD file.
5. A device for generating a configuration file for a driving and mining equipment, characterized in that: include: A merging module, used to merge the equipment information, communication information, input data information and output data information of several driving and mining equipment into a preset document to obtain a merged file; The preset document is in XML format; and the architecture of the preset document includes a device management part, a data description part and a network communication part; A parsing module, connected to the merging module, for parsing the merged file to obtain an input data set and an output data set; An association module, connected to the analysis module, for establishing an association relationship between the input data set and the output data set to obtain a plurality of data combinations; as well as A configuration file generating module, connected to the association module, for adding a database identifier, a bit field and a security identifier to each of the data combinations to obtain a configuration file; The configuration file is in binary format; The device information of each of the driving and mining devices includes: device identification code, network parameters and communication protocol; The communication information of each of the driving and mining equipment includes: the equipment identification code and equipment network connection information; The input data information of each of the driving and mining equipment includes: data name, input parameters and input data source; The output data information of each of the driving and mining equipment includes: the data name, output parameters, output data destination and data redundancy relationship; The merging module comprises: an information merging unit, connected to the parsing module, for merging the device information and the communication information of each of the driving and mining devices into the device management part and the network communication part of the preset document, respectively, and merging the input data information and the output data information of each of the driving and mining devices into the data description part of the preset document, so as to obtain the merged file; A verification code generating unit, connected to the information merging unit, for generating a verification code for the merged file; It also includes: a verification module; the verification module includes: an integrity checking unit, connected to the information merging unit and the check code generating unit respectively, and configured to check the integrity of the merged file according to the check code of the merged file; and A legality verification unit, connected to the integrity verification unit and the parsing module respectively, for verifying the legality of the complete merged file architecture according to a preset XSD file; The parsing module comprises: A data information extraction unit, connected to the legality verification unit, for extracting each of the input data information and each of the output data information from the data description part of the legal merged file; an input data collection unit, connected to the data information extraction unit and the association module respectively, and used to construct all the input data information into one input data collection; and An output data set unit, connected to the data information extraction unit and the association module respectively, and used to construct all the output data information into one output data set; The analysis module also includes: A device information extraction unit, connected to the legality verification unit and the association module respectively, extracting each device information from the device management part of the legal merged file; a communication information extraction unit, connected to the legality verification unit and the association module respectively, to extract each of the communication information from the network communication part of the legal merged file; The association module includes: an initial association unit, connected to the input data set unit and the output data set unit respectively, and used to associate each of the input data information in the input data set with the corresponding output data information in the output data set according to the data name, so as to obtain a plurality of initial data combinations; a communication association unit, connected to the initial association unit and the communication information extraction unit, respectively, for associating each of the initial data combinations with the corresponding communication information according to the device network connection information, the input data source and the output data destination, so as to obtain a plurality of communication data combinations; a device association unit, connected to the communication association unit and the device information extraction unit, respectively, and associating each of the communication data combinations with the corresponding device information according to the device identification code to obtain a plurality of device data combinations; and a difference analysis unit, connected to the device association unit and the configuration file generation module respectively, for performing difference analysis on all the device data combinations according to the data name, the input data source and the output data destination, so as to obtain a plurality of different data combinations; Also includes: A transmission mode generating module, connected to the difference analysis unit, for obtaining a transmission mode of each of the different data combinations according to the output data destination; a transmission identification module connected to the transmission mode generation module, and configured to add a transmission identification and a redundancy identification to the corresponding different data combination according to the transmission mode and the data redundancy relationship of each different data combination, so as to obtain a plurality of first identification data combinations; a grouping module, connected to the transmission identification module, and configured to group all the first identification data combinations into a plurality of data groups according to the device identification code; and a sorting module, connected to the grouping module and the configuration file generating module respectively, and configured to sort all the first identification data combinations in each of the data groups according to the transmission identifier and the redundancy identifier of the first identification data combination; The configuration file generation module includes: a database identification unit connected to the sorting module, and configured to sequentially add database identification to the input data information and the output data information of each first identification data combination in each data group according to the input data source and the output data destination, so as to obtain a plurality of ordered second identification data combinations; A bit field adding unit, connected to the database identification unit, for sequentially adding a bit field to each second identification data combination according to the data length, so as to obtain a plurality of ordered bit field data combinations; a security code identification unit connected to the bit field adding unit, and used to sequentially add a security identification to each bit field data combination according to a preset security code to obtain a plurality of ordered security identification data combinations; and The file generating unit is connected to the security code identification unit and is used to generate the configuration file according to a plurality of ordered security identification data combinations.
Citation Information
Patent Citations
Internet of Things-based data sharing service system
CN102271156A
Communication protocol online diagnosis method and diagnosis system
CN110198254A
Method for updating configuration data on line
CN111290769A
Safety monitoring method and system for intelligent manufacturing industry big data processing platform
CN111754359A
Industrial equipment integrated model, construction method thereof, edge gateway device and industrial equipment integrated system
CN112187632A
