Industrial personal computer configuration information checking method, device and system and electronic equipment
By transferring the verification of the configuration information of the industrial control machine to the upper computer with better hardware conditions, the inefficiency problem caused by the verification of the operation and verification of the industrial control machine in the existing technology is solved, and more efficient verification of the configuration information and operation efficiency of the industrial control machine are achieved.
Patent Information
- Application Number
- CN202311364861.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-19
- Publication Date
- 2025-04-22
AI Technical Summary
The existing industrial control machine configuration information verification method is run in the industrial control machine, which increases the operating burden of the industrial control machine and reduces the working efficiency. Due to the limitations of hardware conditions, the verification efficiency is low.
Check the configuration information of the industrial control machine in a higher hardware condition in the upper computer. By reading the actual configuration information in the local file of the target industrial control machine and comparing it with the standard configuration information, we will determine whether the industrial control machine is configured with the qualified configuration.
It improves the working efficiency and verification efficiency of industrial control machine configuration information verification, reduces the resource occupation of industrial control machine when performing other tasks, and improves the operating efficiency of industrial control machine.
Smart Images

Figure CN119862074A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automatic control technology, and in particular to a method, device, system, electronic device and computer-readable storage medium for verifying configuration information of an industrial computer. Background Art
[0002] An industrial computer, also known as an industrial control computer, is a computing device specifically used in the field of industrial production. It integrates computing, control, data acquisition and communication functions, usually equipped with a general-purpose operating system, and can be installed with various control software. Industrial computers are suitable for complex industrial control tasks, such as production line monitoring, automation device control, robot control, etc. Depending on the application scenario, different settings need to be made for the configuration information of the industrial computer, such as the control object, control value, control duration, etc. After the configuration is completed, the configuration information needs to be checked to avoid configuration errors.
[0003] In the related art, configuration information is usually checked manually or by an industrial computer. Among them, the industrial computer self-check usually uses the front-end acquisition software installed in the industrial computer to collect the configuration information of the industrial computer, and compares the collected configuration information with the standard file to obtain the verification result. However, the front-end acquisition software running in the industrial computer increases the operating burden of the industrial computer and reduces the working efficiency of the industrial computer; in addition, due to the hardware conditions of the industrial computer, the verification efficiency of the front-end acquisition software running in the industrial computer is also low. Summary of the invention
[0004] The purpose of the present application is to provide a method, device, system, electronic device and computer-readable storage medium for checking configuration information of an industrial computer, which can improve the working efficiency of the industrial computer while improving the checking efficiency of the configuration information of the industrial computer.
[0005] In a first aspect, the present application provides an industrial computer configuration information verification method, which is applied to a host computer. The industrial computer configuration information verification method includes: reading the actual configuration information of the target industrial computer stored in a local file of the target industrial computer; obtaining a standard file, wherein the standard file includes standard configuration information; comparing the actual configuration information with the standard configuration information to obtain a first comparison result; and judging whether the target industrial computer is configured properly based on the first comparison result.
[0006] Compared with the related art, in the industrial computer configuration information verification method provided in the embodiment of the present application, the host computer directly reads the actual configuration information of the target industrial computer by accessing the local file of the target industrial computer, and compares the actual configuration information of the target industrial computer with the standard configuration information in the host computer to obtain a first comparison result. According to the first comparison result, it can be concluded whether the actual configuration information of the target industrial computer is the same as the standard configuration information, or whether the actual configuration information of the target industrial computer meets the data range in the standard configuration information, etc., so that it can be judged whether the target industrial computer is configured qualified according to the first comparison result. Compared with the related art in which configuration information verification is performed in the industrial computer, the configuration information verification work is performed in the host computer with generally better hardware conditions, which can improve the work efficiency of the configuration information verification process. In addition, since the configuration information verification work is performed by the host computer, there is no need to install software related to the configuration information verification work in the industrial computer, nor is there any need to allocate hardware resources for the configuration information verification work, which can improve the operating efficiency of the industrial computer when running other tasks.
[0007] In an optional embodiment, the actual configuration information includes multiple actual configuration parameters and parameter values of each of the actual configuration parameters, the standard configuration information includes multiple standard configuration parameters and parameter values of each of the standard configuration parameters, the host computer stores a relational database, the relational database includes multiple parameter sets, each of the parameter sets includes multiple corresponding configuration parameters, and comparing the actual configuration information and the standard configuration information includes: comparing the corresponding parameter values of the actual configuration parameters and the standard configuration parameters according to the relational database.
[0008] Due to the influence of factors such as brand, industry standards, and user habits, different parameter names may be used for the same configuration parameters in the actual configuration information and the standard configuration information. A relational database is stored in the host computer, and the relational database includes multiple parameter sets. Each parameter set includes multiple mutually corresponding configuration parameters. Multiple mutually corresponding configuration parameters are configuration parameters corresponding to the same entity but with different names. By comparing the parameter values of the corresponding actual configuration parameters and standard configuration parameters according to the relational database, the same parameters with different names can be compared, thereby improving the scope of application of the industrial computer configuration information verification method.
[0009] In an optional implementation, the acquiring of the standard file includes: acquiring a plurality of standard files, each of the standard files including a plurality of standard configuration parameters; and merging the same standard configuration parameters among all the standard configuration parameters in the plurality of standard files.
[0010] Merging multiple standard configuration parameters in multiple standard files can increase the number of standard configuration parameters that are finally compared compared to using a single standard file, better adapt to configuration information verification of different industrial computers, and improve the scope of application of the industrial computer configuration information verification method.
[0011] In an optional embodiment, the host computer stores a relational database, which includes multiple parameter sets, each of which includes multiple corresponding configuration parameters, and the acquisition of the standard file also includes: merging the standard configuration parameters belonging to the same parameter set among all the standard configuration parameters in the multiple standard files.
[0012] By merging standard configuration parameters belonging to the same parameter set according to a relational database, the same parameters with different names can be merged, and the standard configuration parameters in the standard configuration information can be better deduplicated.
[0013] In an optional implementation, there are multiple local files, and reading the actual configuration information of the target industrial computer stored in the local files of the target industrial computer includes: respectively configuring access paths uniquely corresponding to each of the local files; and reading the actual configuration information in the corresponding local files via the access paths.
[0014] Since different local files may store data of different file types, configuring a unique access path for each local file can reduce mutual interference between different local files when reading local files, thereby achieving better file reading effects.
[0015] In an optional implementation, the host computer and the target industrial computer are connected via a device local area network, and the reading of the actual configuration information of the target industrial computer stored in a local file of the target industrial computer includes: reading the actual configuration information of the target industrial computer stored in a local file of the target industrial computer via the device local area network.
[0016] The host computer and the target industrial computer are connected via the device LAN. The host computer reads the actual configuration information of the target industrial computer stored in the local file of the target industrial computer via the device LAN. The connection between the host computer and the target industrial computer can be completed by connecting the host computer and the target industrial computer to the device LAN respectively, without the need for an exclusive one-to-one pairing connection between the host computer and the target industrial computer.
[0017] In an optional implementation, the obtaining of the standard file includes: obtaining sample configuration information of a sample industrial computer, and using the sample configuration information as the standard configuration information, wherein the sample industrial computer is an industrial computer of the same type as the target industrial computer and has a qualified configuration.
[0018] The sample configuration information of the sample industrial computer that has been verified as having qualified configuration is used as the standard configuration information. Since the sample industrial computer is of the same type as the target industrial computer, the differences between the configuration parameters in the standard configuration information can be reduced, thereby improving the verification efficiency.
[0019] In an optional implementation, obtaining host computer configuration information related to the target industrial computer from the host computer; comparing the host computer configuration information with the standard configuration information to obtain a second comparison result; judging whether the target industrial computer is properly configured based on the first comparison result, includes: judging whether the target industrial computer is properly configured based on the first comparison result and the second comparison result.
[0020] The host computer configuration information related to the target industrial computer in the host computer is checked to obtain a second comparison result. Whether the target industrial computer is configured properly is determined based on the first comparison result and the second comparison result, which can expand the verification scope and achieve better verification results.
[0021] In the second aspect, the present application provides a host computer, including: a configuration information acquisition module, the configuration information acquisition module is used to read the actual configuration information of the target industrial computer stored in the local file of the target industrial computer; a standard file acquisition module, the standard file acquisition module is used to obtain a standard file, the standard file includes standard configuration information; a comparison module, the comparison module is used to compare the actual configuration information and the standard configuration information to obtain a first comparison result, and judge whether the target industrial computer is configured qualified according to the first comparison result.
[0022] Compared with the related art, in the host computer provided in the embodiment of the present application, the actual configuration information of the target industrial computer is directly read from the local file of the target industrial computer by setting a configuration information acquisition module, and the actual configuration information of the target industrial computer is compared with the standard configuration information in the comparison module to obtain a first comparison result. The comparison module can determine whether the actual configuration information of the target industrial computer is the same as the standard configuration information, or whether the actual configuration information of the target industrial computer meets the data range in the standard configuration information, etc. according to the first comparison result. The comparison module can judge whether the target industrial computer is configured properly according to the first comparison result. Compared with the related art in which configuration information is checked in the industrial computer, the configuration information checking work is carried out in the host computer with generally better hardware conditions, which can improve the work efficiency of the configuration information checking process. In addition, since the configuration information checking work is performed by the host computer, there is no need to install software related to the configuration information checking work in the industrial computer, nor is there any need to allocate hardware resources for the configuration information checking work, which can improve the operating efficiency of the industrial computer when running other tasks.
[0023] In a third aspect, the present application provides an industrial computer configuration information verification system, comprising: a host computer and multiple industrial computers communicatively connected to the host computer; the host computer is used to execute the aforementioned industrial computer configuration information verification method to verify the configuration information of the multiple industrial computers.
[0024] Compared with the related art, the industrial computer configuration information verification system provided in the embodiment of the present application is provided with a host computer and multiple industrial computers. The host computer is used to execute the aforementioned industrial computer configuration information verification method to verify the configuration information of multiple industrial computers, and therefore has the same technical effect as the aforementioned industrial computer configuration information verification method.
[0025] In a fourth aspect, the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the industrial computer configuration information verification method as described in any one of the aforementioned embodiments.
[0026] Compared with the related art, the processor in the electronic device provided in the embodiment of the present application is used to execute the aforementioned industrial computer configuration information verification method, and therefore has the same technical effect as the aforementioned industrial computer configuration information verification method.
[0027] In a fifth aspect, the present application provides a computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the aforementioned industrial computer configuration information verification method.
[0028] Compared with the related art, the computer program stored in the computer-readable storage medium provided in the embodiment of the present application is executed by the processor to implement the aforementioned industrial computer configuration information verification method, and therefore has the same technical effect as the aforementioned industrial computer configuration information verification method. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can also be obtained based on these drawings.
[0030] Figure 1 A flowchart of a method for verifying configuration information of an industrial computer provided by an embodiment of the present application;
[0031] Figure 2 A schematic diagram of the structure of an industrial computer provided in one embodiment of the present application;
[0032] Figure 3 A schematic diagram of the structure of an industrial computer configuration information verification system provided by an embodiment of the present application;
[0033] Figure 4 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0034] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0036] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0037] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0038] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0039] Industrial computer, or industrial control computer, is a general term for tools that use a bus structure to detect and control production processes, electromechanical equipment, and process equipment. Industrial computers have important computer properties and features, such as a computer motherboard, processor, hard disk, memory, peripherals and interfaces, and an operating system, control network and protocol, computing power, and a friendly human-computer interface. Industrial computers are intermediate products that provide stable, reliable, embedded, and intelligent industrial computers for other industries.
[0040] In industrial production, when the production equipment is controlled by an industrial computer, the relevant parameters of the industrial computer can be set differently according to different usage scenarios. This setting process is the configuration process of the industrial computer. In this process, the set configuration file is usually imported into the industrial computer, and the relevant parameters are set according to the imported configuration file with manual operation to complete the configuration of the industrial computer. After the configuration of the industrial computer is completed, in order to improve the reliability of the industrial computer, it can also include a process of checking the configuration parameters of the industrial computer. This process is to check whether the configuration parameters generated by the configuration process of the industrial computer meet the standards. For industrial computers whose configuration parameters are checked and meet the standards, they can be put into the subsequent automated production process. For industrial computers whose configuration parameters are checked and do not meet the standards, the configuration parameters that do not meet the standards can be modified or reconfigured, thereby improving the reliability of the industrial computer.
[0041] In the related art, the verification process of the configuration parameters of the industrial computer is usually carried out in the industrial computer, that is, the related verification software is run in the industrial computer, and the related verification software collects the actual configuration information of the industrial computer, and then compares the collected actual configuration information of the industrial computer with the standard configuration parameters in the standard file. If the comparison result is that the actual configuration information of the industrial computer is the same as the standard configuration parameters or meets the range of the standard configuration parameters, then the configuration parameter verification result of the industrial computer is in compliance with the standard. On the contrary, if the comparison result is that the actual configuration information of the industrial computer is different from the standard configuration parameters or exceeds the range of the standard configuration parameters, then the configuration parameter verification result of the industrial computer is not in compliance with the standard. However, running the related software in the industrial computer increases the operating burden of the industrial computer and reduces the working efficiency of the industrial computer; in addition, due to the limitations of the hardware conditions of the industrial computer, the verification efficiency of the related software running in the industrial computer is also low.
[0042] In order to solve the above technical problems and improve the working efficiency and verification efficiency of industrial computers, the embodiments of the present application provide an industrial computer configuration information verification method and system, a host computer, an electronic device, and a computer-readable storage medium. For a target industrial computer that needs to be verified for configuration parameters, it is connected to the host computer, and the industrial computer configuration information verification method provided by the embodiments of the present application is run in the host computer to complete the verification process of the configuration parameters of the target industrial computer in the host computer.
[0043] In different application scenarios, the target industrial computer can be different types of industrial computers. For example, in the application scenario of battery production, the target industrial computer can be an industrial computer that controls battery production equipment, and the configuration parameters that need to be checked are the configuration parameters related to controlling battery production equipment; in the application scenario of automobile production, the target industrial computer can be an industrial computer that controls automobile production equipment, and the configuration parameters that need to be checked are the configuration parameters related to controlling automobile production equipment; in the application scenario of production of electronic devices such as mobile phones and computers, the target industrial computer can be an industrial computer that controls production equipment of electronic devices such as mobile phones and computers, and the configuration parameters that need to be checked are the configuration parameters related to controlling production equipment of electronic devices such as mobile phones and computers.
[0044] Please refer to Figure 1 An embodiment of the present application provides an industrial computer configuration information verification method, which is applied to a host computer. The industrial computer configuration information verification method includes:
[0045] Step S101: Read the actual configuration information of the target industrial computer stored in the local file of the target industrial computer.
[0046] Step S102: Acquire a standard file, where the standard file includes standard configuration information.
[0047] Step S103: Compare the actual configuration information with the standard configuration information to obtain a first comparison result, and determine whether the target industrial computer is configured properly based on the first comparison result.
[0048] Among them, the target industrial computer is the industrial computer that needs to be checked for configuration parameters, and the local file is the file stored in the target industrial computer. It can be understood that a large number of local files are stored in the target industrial computer, and some of the local files store the actual configuration information of the target industrial computer. In the embodiment of the present application, the host computer reads the local files that store the actual configuration information of the target industrial computer. The host computer can obtain the actual configuration information of the target industrial computer by directly reading the local files that store the actual configuration information of the target industrial computer. The actual configuration information includes a variety of actual configuration parameters and parameter values corresponding to each actual configuration parameter. For example, for the target industrial computer in the battery production scenario, its actual configuration information may include, for example, battery charging time, battery cell size, battery charging voltage, etc., wherein the parameter value corresponding to the battery charging time may be, for example, 2 minutes, 3 minutes, etc. The specific actual configuration information may be changed according to different application scenarios.
[0049] A standard file is a file that records standard configuration information. Standard configuration information may also include multiple standard configuration parameters and standard parameter values or standard parameter value ranges corresponding to each standard configuration parameter. Standard configuration parameters are parameters that need to be configured in an industrial computer. They may include actual configuration parameters or more than actual configuration parameters. Standard parameter values or standard parameter value ranges are the setting values of each standard configuration parameter under standard conditions, or the value ranges that each standard configuration parameter value needs to meet.
[0050] Comparing the actual configuration information with the standard configuration information is to compare the parameter values of the same actual configuration parameter and the standard configuration parameter. The first comparison result includes whether the parameter value of the compared actual configuration parameter is equal to the parameter value of the standard configuration parameter, or whether the parameter value of the compared actual configuration parameter meets the standard parameter value range of the standard configuration parameter.
[0051] Judging whether the target industrial computer is qualified in configuration according to the first comparison result can be: if the parameter values of all actual configuration parameters are equal to the parameter values of the standard configuration parameters, or the parameter values of the actual configuration parameters satisfy the standard parameter value range of the standard configuration parameters, then the configuration of the target industrial computer is determined to be qualified; otherwise, if the parameter value of the actual configuration parameter is not equal to the parameter value of the standard configuration parameter, or the parameter value of the actual configuration parameter does not satisfy the standard parameter value range of the standard configuration parameter, then the configuration of the target industrial computer is determined to be unqualified.
[0052] In the industrial computer configuration information verification method provided in the embodiment of the present application, the host computer directly reads the actual configuration information of the target industrial computer by accessing the local file of the target industrial computer, and compares the actual configuration information of the target industrial computer with the standard configuration information in the host computer to obtain a first comparison result. According to the first comparison result, it can be concluded whether the actual configuration information of the target industrial computer is the same as the standard configuration information, or whether the actual configuration information of the target industrial computer meets the data range in the standard configuration information, etc., so that it can be judged whether the target industrial computer is configured properly according to the first comparison result. Compared with the related art of performing configuration information verification in the industrial computer, the configuration information verification work is performed in the host computer with better hardware conditions, which can improve the work efficiency of the configuration information verification process. In addition, since the configuration information verification work is performed by the host computer, there is no need to install software related to the configuration information verification work in the industrial computer, nor is there any need to allocate hardware resources for the configuration information verification work, which can improve the operating efficiency of the industrial computer when running other tasks.
[0053] In some embodiments of the present application, a relational database is stored in the host computer, and the relational database includes multiple parameter sets, and each parameter set includes multiple mutually corresponding configuration parameters. On this basis, in some embodiments of the present application, the comparison of the actual configuration information and the standard configuration information in step S103 can be: comparing the parameter values of the mutually corresponding actual configuration parameters and the standard configuration parameters according to the relational database.
[0054] Among them, multiple mutually corresponding configuration parameters may be, for example, configuration parameters that refer to the same entity but have different names, such as relative humidity value and dew point temperature value, two different parameter names that actually correspond to the same entity parameter, both of which are used to measure the water vapor content in the environment, but due to different manufacturers, application habits, etc., both can be used. In the embodiment of the present application, relative humidity value and dew point value can be used as mutually corresponding configuration parameters to form a parameter set. That is, the parameter values of the actual configuration parameters that satisfy the corresponding relationship provided by the relational database are compared with the parameter values of the standard configuration parameters, and the comparison result is obtained as the first comparison result. For example, the actual configuration information includes the actual configuration parameter "relative humidity", and the corresponding parameter value is "30%", and the standard configuration information includes the standard configuration parameter "dew point temperature", and the corresponding parameter value is in the value range of "5°C~15°C". Then, according to the conversion relationship between relative humidity and dew point temperature, the parameter value "30%" corresponding to the actual configuration parameter "relative humidity" can be converted to the dew point temperature "6.24°C", or the parameter value corresponding to the standard configuration parameter "dew point temperature" in the value range of "5°C~15°C" can be converted to relative humidity "27%~56%", and then the two are compared. The comparison result is "the parameter value of the actual configuration parameter "relative humidity" meets the parameter value range of the standard configuration parameter", and this comparison result can be used as part of the first comparison result.
[0055] In actual application, due to the influence of factors such as brand, industry standards, and user habits, different parameter names may be used for the same configuration parameters in the actual configuration information and the standard configuration information. A relational database is stored in the host computer, and the relational database includes multiple parameter sets. Each parameter set includes multiple corresponding configuration parameters. Multiple corresponding configuration parameters are configuration parameters corresponding to the same entity but with different names. By comparing the parameter values of the corresponding actual configuration parameters and standard configuration parameters according to the relational database, the same parameters with different names can be compared, thereby improving the scope of application of the industrial computer configuration information verification method.
[0056] In some embodiments of the present application, obtaining the standard file in step S102 may include: obtaining multiple standard files, each standard file including multiple standard configuration parameters; and merging the same standard configuration parameters in the multiple standard configuration parameters.
[0057] Among them, multiple standard files can be, for example, standard files from multiple different sources, each of which can include multiple standard configuration parameters and corresponding standard parameter values or standard parameter value ranges, and merging the same standard configuration parameters in multiple standard configuration parameters is to merge the parameter values corresponding to the same standard configuration parameters in different standard files. For example, for the standard configuration parameter "dew point temperature value", the corresponding standard parameter value in one standard file is 20°C, the corresponding standard parameter value in another standard file is 24°C, and the corresponding standard parameter value in another standard file is 22°C. Then, the same standard configuration parameter "dew point temperature value" in the three standard files can be merged, and the standard parameter value corresponding to the merged standard configuration parameter "dew point temperature value" can be "20°C or 22°C or 24°C", or "20°C~24°C", which can be merged according to the set merging rules.
[0058] By splitting and then merging multiple standard files, the number of parameters of the final standard configuration parameters can be increased, which can better adapt to the configuration information verification of different industrial computers and improve the scope of application of the industrial computer configuration information verification method.
[0059] In some embodiments of the present application, a relational database may be stored in the host computer, the relational database includes multiple parameter sets, and each parameter set includes multiple mutually corresponding configuration parameters. On this basis, in some embodiments of the present application, standard configuration parameters belonging to the same parameter set among multiple standard configuration parameters may be merged.
[0060] Among them, merging the standard configuration parameters belonging to the same parameter set in multiple standard configuration parameters is to merge the parameter values corresponding to the standard configuration parameters belonging to the same parameter set in multiple different standard files. For example, a parameter set in a relational database includes two configuration parameters "dew point temperature value" and "relative humidity value" that correspond to each other. In one of the standard files, the standard configuration parameter "dew point temperature value" is included, and the corresponding standard parameter value is 10°C. In another standard file, the standard configuration parameter "relative humidity value" is included, and its corresponding standard parameter value is "30%". In some embodiments of the present application, the standard configuration parameters "dew point temperature value" and "relative humidity value" belonging to the same parameter set can be merged, and the standard parameter value "10°C" of the standard configuration parameter "dew point temperature value" in one of the standard files is converted into a relative humidity value of 38%, and then merged with the standard parameter value "30%" corresponding to the standard configuration parameter "relative humidity value" in another standard file, so that the merged standard configuration parameter is "relative humidity value", and the corresponding standard parameter value is "30% or 38%". Conversely, the "relative humidity value" can be converted into the "dew point temperature value", and the conversion and merging can be performed according to the set conversion rules and merging rules.
[0061] By merging the corresponding standard configuration parameters that belong to the same parameter set according to the relational database, the same parameters with different names can be merged, so as to better deduplicate the standard configuration parameters in the standard configuration information.
[0062] In some embodiments of the present application, the number of local files authorized to be accessed in the target industrial computer is multiple, and the multiple local files may be local files that are all used to store configuration information, or some local files may store configuration information, while other local files may not store local files. On this basis, the actual configuration information of the target industrial computer stored in the local files of the target industrial computer is read in step S101, including: respectively configuring access paths that are uniquely corresponding to each local file; and reading the actual configuration information in the corresponding local file via the access path.
[0063] In addition, when there is only one local file in the target industrial computer, or the target industrial computer only authorizes access rights to one local file, the access path corresponding to the local file can be directly configured; and the actual configuration information in the local file can be read via the access path.
[0064] The multiple local files may be local files of different file types, for example, the actual configuration information may be stored in the multiple local files in different file types such as Xml format, JSON format, and Excel format. When reading these local files, a unique corresponding access path is configured for each local file, that is, only the corresponding local file can be accessed through each access path.
[0065] Since different local files may store data of different file types, configuring a unique access path for each local file can reduce mutual interference between different local files when reading local files, thereby achieving better file reading effects.
[0066] In some embodiments of the present application, the host computer and the target industrial computer are connected via a device local area network, and the actual configuration information of the target industrial computer stored in the local file of the target industrial computer is read, including: reading the actual configuration information of the target industrial computer stored in the local file of the target industrial computer via the device local area network.
[0067] Among them, the device LAN is a local area network formed by connecting multiple devices to each other. The multiple devices can be, for example, multiple host computers and multiple industrial computers. When using the device LAN to connect the host computer and the target industrial computer, the host computer and the target industrial computer can be connected to the device LAN respectively.
[0068] In addition, in some embodiments of the present application, when the target industrial computer is connected to the device LAN, the target industrial computer can authorize the device LAN, that is, allow other devices connected to the device LAN to access local files of the target industrial computer.
[0069] The host computer and the target industrial computer are connected via the device LAN. The host computer reads the actual configuration information of the target industrial computer from the local files in the target industrial computer via the device LAN. The connection between the host computer and the target industrial computer can be completed by connecting the host computer and the target industrial computer to the device LAN respectively, without the need for an exclusive one-to-one pairing connection between the host computer and the target industrial computer. In addition, when the target industrial computer is connected to the device LAN, the target industrial computer allows other devices connected to the device LAN to access the local files of the target industrial computer. The host computer can access the local files of the target industrial computer and read the actual configuration information of the target industrial computer without one-to-one communication and authorization with the target industrial computer.
[0070] In some embodiments of the present application, obtaining the standard file in step S102 may include: obtaining sample configuration information of a sample industrial computer, using the sample configuration information as standard configuration information, the sample industrial computer being an industrial computer with a qualified configuration and of the same type as the target industrial computer.
[0071] Among them, after the configuration information of an industrial computer is checked, if the check result of its configuration information is qualified, the actual configuration parameters of the industrial computer can be used as sample configuration parameters, and calibrated and stored with the type, manufacturer and other information of the industrial computer. When the configuration information of the target industrial computer is subsequently checked, the stored industrial computer with qualified configuration can be used as a sample industrial computer, and the type, manufacturer and other information of the industrial computer corresponding to the sample industrial computer can be obtained. If the type, manufacturer and other information of the sample industrial computer are the same as the type, manufacturer and other information of the target industrial computer, the actual configuration information of the sample industrial computer stored together, that is, the sample configuration information, is used as the standard configuration information, and the file recording the sample configuration information is used as the standard file.
[0072] The sample configuration information of the sample industrial computer that has been verified as having qualified configuration is used as the standard configuration information. Since the sample industrial computer is of the same type as the target industrial computer, the differences between the configuration parameters in the standard configuration information can be reduced, thereby improving the verification efficiency.
[0073] In some embodiments of the present application, the industrial computer configuration information verification method may also include: obtaining host computer configuration information related to the target industrial computer in the host computer; comparing the host computer configuration information with the standard configuration information to obtain a second comparison result, and judging whether the target industrial computer is configured qualified according to the first comparison result and the second comparison result.
[0074] Among them, the host computer configuration information is the configuration information in the host computer related to the target industrial computer. In the application scenario where the host computer configuration information needs to be compared, when obtaining the standard file, the standard file including the host computer configuration information can also be obtained, that is, the standard file includes the standard host computer configuration information, and then the actual host computer configuration information obtained is compared with the standard host computer configuration information in the standard file to obtain the second comparison result. Among them, the actual host computer configuration information may include the actual host computer configuration parameters and the corresponding actual parameter values, and the standard host computer configuration information may include the standard host computer configuration parameters and the corresponding standard parameter values. Comparing the actual host computer configuration information obtained with the standard host computer configuration information in the standard file can be to compare the actual parameter values corresponding to the actual host computer configuration parameters with the standard parameter values corresponding to the standard host computer configuration parameters.
[0075] The host computer configuration information related to the target industrial computer in the host computer is checked to obtain a second comparison result. Whether the target industrial computer is configured properly is determined based on the first comparison result and the second comparison result, which can expand the verification scope and achieve better verification results.
[0076] The present application also provides a host computer, please refer to Figure 2The host computer provided in the embodiment of the present application includes: a configuration information acquisition module 201, which is used to read the actual configuration information of the target industrial computer from a local file in the target industrial computer; a standard file acquisition module 202, which is used to obtain a standard file, and the standard file includes standard configuration information; a comparison module 203, which is used to compare the actual configuration information with the standard configuration information to obtain a first comparison result, and determine whether the target industrial computer is configured properly according to the first comparison result.
[0077] In the host computer provided in the embodiment of the present application, the actual configuration information of the target industrial computer is directly read from the local file of the target industrial computer by setting a configuration information acquisition module, and the actual configuration information of the target industrial computer is compared with the standard configuration information in the comparison module to obtain a first comparison result. The comparison module can determine whether the actual configuration information of the target industrial computer is the same as the standard configuration information, or whether the actual configuration information of the target industrial computer meets the data range in the standard configuration information, etc. according to the first comparison result. The comparison module can determine whether the target industrial computer is configured properly according to the first comparison result. Compared with the related art of performing configuration information verification in the industrial computer, the configuration information verification work is performed in the host computer with generally better hardware conditions, which can improve the work efficiency of the configuration information verification process. In addition, since the configuration information verification work is performed by the host computer, there is no need to install software related to the configuration information verification work in the industrial computer, nor is there any need to allocate hardware resources for the configuration information verification work, which can improve the operating efficiency of the industrial computer when running other tasks.
[0078] In addition, in some embodiments of the present application, the actual configuration information includes multiple actual configuration parameters and parameter values of each actual configuration parameter, the standard configuration information includes multiple standard configuration parameters and parameter values of each standard configuration parameter, the host computer stores a relational database, the relational database includes multiple parameter sets, each parameter set includes multiple corresponding configuration parameters; the comparison module 203 is also used to compare the parameter values of the corresponding actual configuration parameters and standard configuration parameters according to the relational database.
[0079] In addition, in some embodiments of the present application, the standard file acquisition module 202 is further used to acquire multiple standard files, each standard file includes multiple standard configuration parameters; and merge the same standard configuration parameters in the multiple standard configuration parameters.
[0080] In addition, in some embodiments of the present application, the host computer stores a relational database, which includes multiple parameter sets, each parameter set includes multiple corresponding configuration parameters, and the standard file acquisition module 202 is also used to merge standard configuration parameters belonging to the same parameter set among multiple standard configuration parameters.
[0081] In addition, in some embodiments of the present application, there are multiple local files, and the configuration information acquisition module 201 is also used to configure access paths uniquely corresponding to each local file respectively; and read the actual configuration information in the corresponding local file via the access path.
[0082] In addition, in some embodiments of the present application, the host computer and the target industrial computer are connected via a device local area network, and the configuration information acquisition module 201 is also used to read the actual configuration information of the target industrial computer stored in the local file of the target industrial computer via the device local area network.
[0083] In addition, in some embodiments of the present application, the standard file acquisition module 202 is also used to obtain sample configuration information of a sample industrial computer, and use the sample configuration information as standard configuration information. The sample industrial computer is an industrial computer with a qualified configuration and of the same type as the target industrial computer.
[0084] In addition, in some embodiments of the present application, the configuration information acquisition module 201 is also used to obtain the host computer configuration information related to the target industrial computer in the host computer; the comparison module 203 is also used to compare the host computer configuration information and the standard configuration information to obtain a second comparison result, and determine whether the target industrial computer is configured properly based on the first comparison result and the second comparison result.
[0085] The present application also provides an industrial computer configuration information verification system, please refer to Figure 3 The industrial computer configuration information verification system provided in the embodiment of the present application includes: a host computer 301 and multiple industrial computers 302 that are communicatively connected to the host computer 301; the host computer 301 is used to execute the industrial computer configuration information verification method as described above to verify the configuration information of the multiple industrial computers 302.
[0086] The industrial computer configuration information verification system provided in the embodiment of the present application is provided with a host computer and multiple industrial computers. The host computer is used to execute the industrial computer configuration information verification method as described above to verify the configuration information of multiple industrial computers, and thus has the same technical effect as the industrial computer configuration information verification method as described above.
[0087] The present application also relates to an electronic device. Figure 4 The electronic device provided in the embodiment of the present application includes: at least one processor 401; and a memory 402 that is communicatively connected to the at least one processor 401; wherein the memory 402 stores instructions that can be executed by the at least one processor 401, and the instructions are executed by the at least one processor 401 so that the at least one processor 401 can execute the industrial computer configuration information verification method in the above-mentioned embodiments.
[0088] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.
[0089] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.
[0090] The processor in the electronic device provided in the embodiment of the present application is used to execute the aforementioned industrial computer configuration information verification method, and therefore has the same technical effect as the aforementioned industrial computer configuration information verification method.
[0091] The embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the above method embodiment is implemented.
[0092] The computer program stored in the computer-readable storage medium provided in the embodiment of the present application is executed by a processor to implement the aforementioned industrial computer configuration information verification method, and thus has the same technical effect as the aforementioned industrial computer configuration information verification method.
[0093] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0094] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for checking configuration information of an industrial computer, characterized in that: Applied to an industrial computer configuration information verification device, the industrial computer configuration information verification method includes: Reading actual configuration information of the target industrial computer stored in a local file of the target industrial computer; Acquire a standard file, wherein the standard file includes standard configuration information; Comparing the actual configuration information with the standard configuration information to obtain a first comparison result; Whether the target industrial computer is configured properly is determined according to the first comparison result.
2. The method for checking the configuration information of an industrial computer according to claim 1, characterized in that: The actual configuration information includes a plurality of actual configuration parameters and parameter values of each of the actual configuration parameters, the standard configuration information includes a plurality of standard configuration parameters and parameter values of each of the standard configuration parameters, the host computer stores a relational database, the relational database includes a plurality of parameter sets, each of the parameter sets includes a plurality of mutually corresponding configuration parameters; the comparing the actual configuration information with the standard configuration information includes: The parameter values of the actual configuration parameters and the standard configuration parameters that correspond to each other are compared according to the relational database.
3. The method for checking the configuration information of an industrial computer according to claim 1, characterized in that: The obtaining of standard documents includes: Acquire a plurality of standard files, each of which includes a plurality of standard configuration parameters; The same standard configuration parameters among all the standard configuration parameters in the multiple standard files are merged.
4. The method for checking the configuration information of an industrial computer according to claim 3, characterized in that: The host computer stores a relational database, which includes a plurality of parameter sets, each of which includes a plurality of configuration parameters corresponding to each other, and the acquisition standard file further includes: The standard configuration parameters belonging to the same parameter set among all the standard configuration parameters in the multiple standard files are merged.
5. The method for checking the configuration information of an industrial computer according to claim 1, characterized in that: The number of the local files is multiple, and the reading of the actual configuration information of the target industrial computer stored in the local file of the target industrial computer includes: respectively configuring access paths uniquely corresponding to the respective local files; The actual configuration information in the corresponding local file is read via the access path.
6. The method for checking the configuration information of an industrial computer according to claim 1, characterized in that: The host computer and the target industrial computer are connected via a device local area network, and the reading of the actual configuration information of the target industrial computer stored in a local file of the target industrial computer includes: The actual configuration information of the target industrial computer stored in the local file of the target industrial computer is read via the device local area network.
7. The method for checking the configuration information of an industrial computer according to claim 1, characterized in that: The acquisition standard file includes: Sample configuration information of a sample industrial computer is obtained, and the sample configuration information is used as the standard configuration information. The sample industrial computer is an industrial computer with qualified configuration and of the same type as the target industrial computer.
8. The method for checking the configuration information of an industrial computer according to claim 1, characterized in that: The industrial computer configuration information verification method also includes: Obtaining host computer configuration information related to the target industrial computer in the host computer; Comparing the host computer configuration information with the standard configuration information to obtain a second comparison result; The determining, according to the first comparison result, whether the target industrial computer is configured properly includes: Whether the target industrial computer is configured properly is determined according to the first comparison result and the second comparison result.
9. An industrial computer configuration information verification device, characterized in that: include: A configuration information acquisition module, the configuration information acquisition module is used to read the actual configuration information of the target industrial computer stored in a local file of the target industrial computer, and acquire the actual configuration information of the target industrial computer; A standard file acquisition module, the standard file acquisition module is used to acquire a standard file, the standard file includes standard configuration information; A comparison module is used to compare the actual configuration information with the standard configuration information to obtain a first comparison result, and determine whether the target industrial computer is configured properly according to the first comparison result.
10. An industrial computer configuration information verification system, characterized in that: It includes: a host computer and a plurality of industrial computers connected to the host computer for communication; The host computer is used to execute the industrial computer configuration information verification method according to any one of claims 1 to 8 to verify the configuration information of the multiple industrial computers.
11. An electronic device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the industrial computer configuration information verification method as described in any one of claims 1 to 8.
12. A computer-readable storage medium storing a computer program, characterized in that: The computer program is executed by a processor to implement the industrial computer configuration information verification method described in any one of claims 1 to 8.