Equipment parameter configuration method, electronic equipment and computer readable storage medium
By obtaining the overall process of generating parameter configuration from the device description file, the problem of poor compatibility of the device parameter configuration process is solved, the stability and compatibility of the process when device information is changed are achieved, and the device docking process is simplified.
Patent Information
- Application Number
- CN202410947362.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2026-01-16
AI Technical Summary
In existing technologies, the equipment parameter configuration process has poor compatibility with the equipment, and changes in equipment information can easily cause the parameter configuration process to fail, leading to increased complexity in parameter tuning.
By obtaining the device description file of the target device, the overall parameter configuration process is determined based on the device description file, and a parameter configuration process specifically for the target device is generated, which improves compatibility and ensures that the process continues normally when device information changes.
It improves the compatibility of the equipment parameter configuration process, ensuring that the parameter configuration process does not fail when equipment information changes, simplifies the equipment docking process, and reduces development difficulty and learning cost.
Smart Images

Figure CN121349549A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of industrial technology, and in particular to a method for configuring device parameters, electronic devices, and computer-readable storage media. Background Technology
[0002] In situations involving industrial parameter tuning and industrial scenario parameter customization, having too many devices or too many parameters can easily increase the complexity of parameter tuning.
[0003] To address the aforementioned issues, current methods typically employ one or more fixed parameter configuration procedures to configure the parameters of relevant devices. However, the compatibility between these parameter configuration procedures and the devices themselves is usually poor, generally only allowing configuration of parameters for specific controllers / drivers. Furthermore, if the device information (such as parameter attributes) changes, the established parameter configuration procedures may become incompatible, leading to the failure of the parameter configuration process. Summary of the Invention
[0004] The main objective of this application is to provide a device parameter configuration method, an electronic device, and a computer-readable storage medium, which aims to improve the compatibility of the device with the parameter configuration process used to implement the parameter configuration of the device, and to ensure the normal operation of the parameter configuration process.
[0005] To achieve the above objectives, this application provides a device parameter configuration method, the method comprising:
[0006] Obtain the device description file of the target device;
[0007] Based on the device description file of the target device, determine the overall process for configuring the parameters of the target device;
[0008] Based on the overall parameter configuration process, the target device is configured with parameters.
[0009] In one embodiment, the step of determining the overall parameter configuration process of the target device based on the device description file of the target device includes:
[0010] Obtain each parameter configuration sub-process group in the device description file of the target device, and obtain each parameter configuration sub-process contained in each parameter configuration sub-process group;
[0011] Based on the execution order of each parameter configuration sub-process group and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group, the overall parameter configuration process of the target device is generated.
[0012] In one embodiment, the step of determining the overall parameter configuration process of the target device based on the device description file of the target device includes:
[0013] Obtain the parameter configuration sub-process groups in the device description file of the target device, the operating parameters of the target device, and obtain the parameter configuration sub-processes contained in each of the parameter configuration sub-process groups.
[0014] Based on the operating parameters of the target device, adjust the execution order of each parameter configuration sub-process group and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group;
[0015] Based on the adjusted execution order of each parameter configuration sub-process group and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group, the overall parameter configuration process of the target device is generated.
[0016] In one embodiment, the step of determining the overall parameter configuration process of the target device based on the device description file of the target device includes:
[0017] Obtain the parameter configuration sub-process groups in the device description file of the target device, the pre-configuration conditions or post-configuration conditions of each parameter to be configured of the target device, and obtain the parameter configuration sub-processes contained in each parameter configuration sub-process group.
[0018] Based on the pre-configuration conditions or post-configuration conditions of each parameter to be configured, adjust the execution order of each parameter configuration sub-process group and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group.
[0019] Based on the adjusted execution order of each parameter configuration sub-process group and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group, the overall parameter configuration process of the target device is generated.
[0020] In one embodiment, the step of obtaining the device description file of the target device includes:
[0021] Obtain device information for the target device;
[0022] Based on the device information of the target device, the device description file of the target device is retrieved from a preset file database.
[0023] In one embodiment, before the step of searching for the device description file of the target device in a preset file database based on the device information of the target device, the method further includes:
[0024] Based on the device information of each device in the preset device list, create a device description file for each device in the device list;
[0025] The device description files of each device in the device list are compiled to generate the file database.
[0026] In one embodiment, after the step of summarizing the device description files of each device in the device list and generating the file database, the method further includes:
[0027] If a change in the business process of any device in the device list is detected, the content of the device description file of the device recorded in the file database is adjusted according to the changed business process.
[0028] In one embodiment, after the step of summarizing the device description files of each device in the device list and generating the file database, the method further includes:
[0029] If a new device is added to the device list, the parameter configuration sub-process group corresponding to the new device is determined from the parameter configuration sub-process groups contained in each device description file recorded in the file database, based on the device information of the new device.
[0030] Based on the parameter configuration sub-process groups corresponding to the newly added device, generate the device description file for the newly added device;
[0031] Add the device description file of the newly added device to the file database.
[0032] In addition, to achieve the above objectives, this application also provides an electronic device, which includes a memory, a processor, and a device parameter configuration program stored in the memory and executable on the processor. When the automatic control program is executed by the processor, it implements the steps of the device parameter configuration method as described above.
[0033] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the device parameter configuration method described above.
[0034] In addition, to achieve the above objectives, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the device parameter configuration method described above.
[0035] This application provides a device parameter configuration method. First, a device description file for the target device is obtained. Then, based on the device description file, a general parameter configuration process for the target device is determined. Next, the target device is configured according to this general parameter configuration process. Therefore, this application does not configure the target device's parameters by setting a fixed parameter configuration process; instead, it uses the target device's device description file to determine a specific general parameter configuration process for implementing the target device's parameter configuration, thereby improving the compatibility between the target device and the parameter configuration process used to implement its parameter configuration. Furthermore, since the target device's device description file records detailed device information, and the general parameter configuration process is determined by this file, changes to the target device's device information will not cause the general parameter configuration process to fail during the parameter configuration process, thus ensuring the normal operation of the general parameter configuration process. Attached Figure Description
[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0037] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is a flowchart illustrating the first embodiment of the device parameter configuration method according to this application.
[0039] Figure 2 A flowchart illustrating the overall implementation of the device parameter configuration method provided in this application embodiment;
[0040] Figure 3 This is a schematic diagram of the module structure of the device parameter configuration apparatus involved in the embodiments of this application;
[0041] Figure 4 A flowchart illustrating the implementation of the device parameter configuration apparatus provided in this application embodiment;
[0042] Figure 5 This is a schematic diagram of the hardware operating environment involved in the embodiments of this application.
[0043] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0044] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0045] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0046] In situations involving industrial parameter tuning and industrial scenario parameter customization, having too many devices or too many parameters can easily increase the complexity of parameter tuning.
[0047] To address the aforementioned issues, current methods typically employ one or more fixed parameter configuration procedures to configure the parameters of relevant devices. However, the compatibility between these parameter configuration procedures and the devices themselves is usually poor, generally only allowing configuration of parameters for specific controllers / drivers. Furthermore, if the device information (such as parameter attributes) changes, the established parameter configuration procedures may become incompatible, leading to the failure of the parameter configuration process.
[0048] In addition, there are currently methods to implement user-defined parameter configuration processes through visual components, database record semantics, and configuration package files. However, the development and configuration processes for this method are relatively complex, and the learning curve for users is also high.
[0049] Alternatively, parameter tuning can be completed in one go by sending parameter recipes (mostly files). However, this method has poor readability, and debuggers cannot clearly understand the meaning of the current parameter configuration; it also cannot support sequential parameter configuration or single parameter configuration.
[0050] Based on this, this application provides a device parameter configuration method. First, a device description file for the target device is obtained. Then, based on the device description file, a general parameter configuration process for the target device is determined. Next, the target device is configured with parameters based on this general process. Therefore, this application does not configure the target device's parameters by setting a fixed parameter configuration process; instead, it uses the target device's device description file to determine a specific general parameter configuration process for implementing the target device's parameter configuration, thereby improving the compatibility between the target device and the parameter configuration process used to implement its parameter configuration. Furthermore, since the target device's device description file records detailed device information, and the general parameter configuration process is determined by this file, changes to the target device's device information will not cause the general parameter configuration process to fail during the parameter configuration process, thus ensuring the normal operation of the general parameter configuration process.
[0051] The execution subject of the device parameter configuration method of this application can be an electronic device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone; it can also be a control system or control circuit capable of realizing the above functions. This embodiment does not specifically limit it in this regard. The following embodiments are described using an electronic device as an example.
[0052] Based on this, this application proposes a device parameter configuration method according to the first embodiment, please refer to... Figure 1 The equipment parameter configuration method includes steps S10 to S30:
[0053] Step S10: Obtain the device description file of the target device;
[0054] It should be noted that the target device is the device that requires configuration parameters. The number of target devices can be one or multiple; this embodiment does not impose a specific limitation. A device description file is a file that describes device information (manufacturer, configuration, protocol, parameters, etc.) in a specific format. In the field of industrial technology, device description files are generally XML format files or GSD (Generic Station Description) files.
[0055] Additionally, it should be noted that the device description file of the target device can be determined through the device information of the target device. Specifically, in one feasible implementation, step S10 specifically includes: creating a device description file for the target device based on the device information of the target device.
[0056] In the process of creating a device description file for a target device based on its device information, to ensure that the device description file contains data related to the parameter configuration process, let's take device type as an example. Considering that devices of the same type require roughly similar parameters to be configured, we can first set up corresponding parameter configuration sub-process groups for different types of devices, and then associate the device type with the set parameter configuration sub-process groups to generate a relationship table. Therefore, the specific steps for creating a device description file for a target device based on its device information include: finding the corresponding parameter configuration sub-process groups for the target device in the preset relationship table based on the target device information; and generating the device description file for the target device based on the corresponding parameter configuration sub-process groups.
[0057] In another feasible implementation, to improve the efficiency of obtaining the device description file of the target device, a file database for recording the device description files of each device can be set up in advance. Therefore, step S10 specifically includes:
[0058] Step S11: Obtain device information of the target device;
[0059] It should be noted that device information may include, but is not limited to, device name, device ID, etc.
[0060] Step S12: Based on the device information of the target device, find the device description file of the target device in the preset file database.
[0061] Based on this, the process of setting up a file database may specifically include:
[0062] Step S01: Based on the device information of each device in the preset device list, create a device description file for each device in the device list;
[0063] It should be noted that the device list is used to record devices whose parameters can be configured by electronic devices. To ensure universality and compatibility, device description files can be created for each device in the device list, following certain rules.
[0064] Step S02: Summarize the device description files of each device in the device list and generate a file database.
[0065] The above are only two feasible implementations of step S10 provided in this embodiment. This embodiment does not specifically limit the specific implementation of step S10.
[0066] Step S20: Determine the overall parameter configuration process for the target device based on the device description file of the target device;
[0067] It should be noted that the overall parameter configuration process includes all steps involved in configuring the parameters of the target device.
[0068] In one feasible implementation, step S20 specifically includes:
[0069] Step S21: Obtain each parameter configuration sub-process group in the device description file of the target device, and obtain each parameter configuration sub-process contained in each parameter configuration sub-process group.
[0070] It should be noted that parameter configuration sub-processes with the same characteristics (such as the same parameter attributes or commonly used parameters) will be grouped into the same parameter configuration sub-process group. By parsing the target device's device description file and each parameter configuration sub-process group, the individual parameter configuration sub-processes contained within each parameter configuration sub-process group can be obtained. If parsing fails, the default parameter configuration overall process can be used as the target device's overall parameter configuration process.
[0071] Step S22: Generate the overall parameter configuration process for the target device based on the execution order of each parameter configuration sub-process group and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group.
[0072] It should be noted that parameter configuration sub-processes generally have characteristics of timing, pre-configuration conditions, or post-configuration conditions.
[0073] In other feasible implementations, the actual parameters of the device, the pre-configuration conditions / post-configuration conditions of the parameters to be configured, etc., can be considered to affect the execution order of the parameter configuration sub-process group and the parameter configuration sub-process. Accordingly, the execution order of the parameter configuration sub-process group and the parameter configuration sub-process can be adjusted to obtain a parameter configuration overall process with higher compatibility with the target device. This embodiment does not specifically limit the specific implementation of step S20.
[0074] Step S30: Based on the overall parameter configuration process, configure the parameters of the target device.
[0075] This embodiment provides a device parameter configuration method. First, a device description file for the target device is obtained. Then, based on the device description file, a general parameter configuration process for the target device is determined. Next, the target device is configured with parameters based on this general process. Therefore, this embodiment does not configure the target device's parameters by setting a fixed parameter configuration process; instead, it uses the target device's device description file to determine a specific general parameter configuration process for implementing the target device's parameter configuration, thereby improving the compatibility between the target device and the parameter configuration process used to implement its parameter configuration. Furthermore, since the target device's device description file records detailed device information, and the general parameter configuration process is determined by this file, changes to the target device's device information will not cause the general parameter configuration process to fail during the parameter configuration process, thus ensuring the normal operation of the general parameter configuration process.
[0076] Based on the first embodiment described above, a second embodiment of the device parameter configuration method of this application is proposed. In the second embodiment, step S20 specifically includes steps S201 to S203:
[0077] Step S201: Obtain the parameter configuration sub-process groups and the operating parameters of the target device from the device description file of the target device, and obtain the parameter configuration sub-processes contained in each parameter configuration sub-process group.
[0078] It should be noted that operating parameters may include, but are not limited to, operating power and operating voltage.
[0079] Step S202: Based on the operating parameters of the target device, adjust the execution order of each parameter configuration sub-process group and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group;
[0080] Step S203: Based on the execution order of each parameter configuration sub-process group after adjustment and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group, generate the overall parameter configuration process of the target device.
[0081] It is understandable that the operating parameters of the target device reflect its actual operating state, and the compatible parameter configuration process differs depending on the operating state. Therefore, this embodiment considers the impact of the target device's operating parameters on the execution order of the parameter configuration sub-process group and the parameter configuration sub-process, and adjusts the execution order accordingly to obtain a more compatible overall parameter configuration process with the target device.
[0082] Based on the first and / or second embodiments described above, a third embodiment of the device parameter configuration method of this application is proposed. In the third embodiment, step S20 specifically includes steps S204 to S206:
[0083] Step S204: Obtain the parameter configuration sub-process groups in the device description file of the target device, the pre-configuration conditions or post-configuration conditions of each parameter to be configured in the target device, and obtain the parameter configuration sub-processes contained in each parameter configuration sub-process group.
[0084] It should be noted that preconditions indicate the prerequisites that must be met before configuring the parameter to be configured. Postconditions indicate the postconditions that must be met after configuring the parameter to be configured. For example, suppose the preconditions for parameter A include configuring parameter B, meaning that parameter A can only be configured based on parameter B. In this case, the execution order of the parameter configuration sub-process for parameter B will precede the execution order of the parameter configuration sub-process for parameter A.
[0085] Step S205: Based on the pre-configuration conditions or post-configuration conditions of each parameter to be configured, adjust the execution order of each parameter configuration sub-process group and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group.
[0086] Step S206: Based on the execution order of each parameter configuration sub-process group after adjustment and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group, generate the overall parameter configuration process of the target device.
[0087] It is understandable that the pre-configuration conditions or post-configuration conditions of the parameters to be configured can reflect the order in which the parameters are configured. Therefore, this embodiment considers the impact of the pre-configuration conditions or post-configuration conditions of the parameters on the execution order of the parameter configuration sub-process group and the parameter configuration sub-process, and adjusts the execution order of the parameter configuration sub-process group and the parameter configuration sub-process accordingly, thereby obtaining a parameter configuration overall process with higher compatibility with the target device.
[0088] Based on the first, second, and / or third embodiments described above, a fourth embodiment of the device parameter configuration method of this application is proposed. In the fourth embodiment, after step S02, step S03 is further included:
[0089] Step S03: For any device in the device list, if a change in the device's business process is detected, adjust the content of the device description file recorded in the file database according to the changed business process.
[0090] It should be noted that business processes may include, but are not limited to, parameter attributes (such as address, default value, etc.), and pre-configuration conditions / post-configuration conditions of the parameters to be configured.
[0091] In this embodiment, for each device in the device list, if there is a business process change, the content of the device description file recorded in the file database for that device is directly adjusted according to the changed business process. In this way, the overall parameter configuration process of that device can be changed accordingly.
[0092] Based on the first, second, third, and / or fourth embodiments described above, a fifth embodiment of the device parameter configuration method of this application is proposed. In the fifth embodiment, after step S02, steps S04 to S06 are further included:
[0093] Step S04: If a new device is added to the device list, then based on the device information of the newly added device, determine the parameter configuration sub-process group corresponding to the newly added device from the parameter configuration sub-process groups contained in each device description file recorded in the file database.
[0094] Step S05: Based on the parameter configuration sub-process groups corresponding to the newly added device, generate the device description file for the newly added device;
[0095] Step S06: Add the device description file of the newly added device to the file database.
[0096] In this embodiment, if a new device is detected in the device list, the appropriate parameter configuration sub-process groups are selected from the parameter configuration sub-process groups contained in the description files of each device recorded in the file database, based on the device information of the new device. This is then used as the parameter configuration sub-process group corresponding to the new device. Therefore, no software changes are required to quickly achieve the interface between the new device and the electronic device, thereby improving the efficiency of device-electronic device interface. Furthermore, since no software changes are required, it is equivalent to achieving the interface between the new device and the electronic device without modifying the code; therefore, this embodiment can also reduce development difficulty to a certain extent.
[0097] In one feasible implementation, if the newly added device has new configuration logic, that is, if the parameter configuration sub-process groups contained in each device description file recorded in the file database do not contain the parameter configuration sub-process groups required by the newly added device, then by adding an interface and associating or binding the added interface with each parameter configuration sub-process, the interface between the newly added device and the electronic device can be realized, thereby improving the convenience of interface between the device and the electronic device.
[0098] For example, to help understand the implementation flow of the device parameter configuration method obtained by combining the above embodiments, please refer to... Figure 2 , specifically:
[0099] First, obtain the device description file of the target device. Then, parse the device description file. If parsing fails, the default parameter configuration process is used as the overall parameter configuration process for the target device. If parsing succeeds, obtain the parameter configuration sub-process groups (Group) and the parameter configuration sub-process steps contained in each Group. Next, obtain the pre-configuration conditions or post-configuration conditions of each parameter to be configured on the target device. Then, based on the pre-configuration conditions or post-configuration conditions of each parameter to be configured, adjust the execution order of each parameter configuration sub-process group (Group) and the execution order of each parameter configuration sub-process step contained in each Group. Finally, based on the adjusted execution order of each parameter configuration sub-process group (Group) and the execution order of each parameter configuration sub-process step contained in each Group, generate the overall parameter configuration process for the target device.
[0100] It should be noted that this example is only for the purpose of assisting in understanding this application and does not constitute a limitation on the device parameter configuration method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0101] This application also provides a device parameter configuration apparatus, please refer to... Figure 3 The device parameter configuration apparatus includes:
[0102] Parsing module 10 is used to obtain the device description file of the target device;
[0103] The data and interface integration module 20 is used to determine the overall process of parameter configuration for the target device based on the device description file of the target device.
[0104] The parameter configuration module 30 is used to configure parameters for the target device based on the overall parameter configuration process.
[0105] Optionally, the parsing module 10 is also used to obtain each parameter configuration sub-process group in the device description file of the target device, and to obtain each parameter configuration sub-process contained in each parameter configuration sub-process group.
[0106] The data and interface integration module 20 is also used to generate the overall parameter configuration process of the target device based on the execution order of each parameter configuration sub-process group and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group.
[0107] Optionally, the parsing module 10 is also used to obtain each parameter configuration sub-process group in the device description file of the target device, the operating parameters of the target device, and obtain each parameter configuration sub-process contained in each parameter configuration sub-process group.
[0108] The data and interface integration module 20 is also used to adjust the execution order of each parameter configuration sub-process group and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group according to the operating parameters of the target device; and to generate the overall parameter configuration process of the target device based on the adjusted execution order of each parameter configuration sub-process group and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group.
[0109] Optionally, the parsing module 10 is also used to obtain each parameter configuration sub-process group in the device description file of the target device, the pre-configuration conditions or post-configuration conditions of each parameter to be configured in the target device, and to obtain each parameter configuration sub-process contained in each parameter configuration sub-process group.
[0110] The data and interface integration module 20 is also used to adjust the execution order of each parameter configuration sub-process group and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group according to the pre-configuration conditions or post-configuration conditions of each parameter to be configured; and to generate the overall parameter configuration process of the target device according to the adjusted execution order of each parameter configuration sub-process group and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group.
[0111] Optionally, the parsing module 10 is also used for:
[0112] Obtain device information for the target device;
[0113] Based on the device information of the target device, the device description file of the target device is found in the preset file database.
[0114] Optionally, the device parameter configuration apparatus further includes:
[0115] Based on the device information of each device in the preset device list, create a device description file for each device in the device list;
[0116] The device description files of each device in the device list are compiled and a file database is generated.
[0117] Optionally, the device parameter configuration apparatus further includes:
[0118] If a change in the business process of any device in the device list is detected, the content of the device description file recorded in the file database will be adjusted according to the changed business process.
[0119] Optionally, the device parameter configuration apparatus further includes:
[0120] If a new device is added to the device list, the parameter configuration sub-process group corresponding to the new device is determined from the parameter configuration sub-process group contained in each device description file recorded in the file database, based on the device information of the new device.
[0121] Based on the parameter configuration sub-process groups corresponding to the newly added equipment, generate the equipment description file for the newly added equipment;
[0122] Add the device description file of the newly added device to the file database.
[0123] The device parameter configuration apparatus provided in this application can improve the compatibility of the device with the parameter configuration process used to implement the device's parameter configuration, and ensure the normal operation of the parameter configuration process. Compared with the prior art, the beneficial effects of the device parameter configuration apparatus provided in this application are the same as the beneficial effects of the device parameter configuration method provided in the above embodiments, and will not be repeated here.
[0124] For example, please refer to Figure 4 This document aims to aid in understanding the implementation process of the device parameter configuration apparatus provided in the embodiments of this application. Specifically, after obtaining the device description file of the target device, the parsing module 10 parses the device description file to obtain each parameter configuration sub-process group in the device description file, and then parses each parameter configuration sub-process group to obtain each parameter configuration sub-process contained in each parameter configuration sub-process group. Next, the data and interface combination module 20 generates the overall parameter configuration process of the target device based on the execution order of each parameter configuration sub-process group parsed by the parsing module 10 and the execution order of each parameter configuration sub-process contained in each parameter configuration sub-process group. Then, the overall parameter configuration process is transmitted to the target device through the communication component so as to configure the parameters of the target device based on the overall parameter configuration process.
[0125] This application also provides an electronic device, which includes: 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, which are executed by the at least one processor to enable the at least one processor to perform the device parameter configuration method described above.
[0126] The following is for reference. Figure 5 It shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of this application. Figure 5 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0127] like Figure 5 As shown, the electronic device may include a processing unit 101 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 102 or a program loaded from a storage device 103 into a random access memory (RAM) 104. The RAM 104 also stores various programs and data required for the operation of the electronic device. The processing unit 101, ROM 102, and RAM 104 are interconnected via a bus 105. An input / output (I / O) interface 106 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 106: input devices 107 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 108 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 103 including, for example, magnetic tapes, hard disks, etc.; and communication devices 109. The communication device 109 allows the electronic device to exchange data with other devices wirelessly or via wired communication. Although the diagrams show electronic devices with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented alternatively.
[0128] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 103, or installed from ROM 102. When the computer program is executed by processing device 101, it performs the functions defined in the methods of the embodiments of this application.
[0129] The electronic device provided in this application, employing the device parameter configuration method described in the above embodiments, can improve the compatibility between the device and the parameter configuration process used to implement the device's parameter configuration, and ensure the normal operation of the parameter configuration process. Compared with the prior art, the beneficial effects of the electronic device provided in this application are the same as those of the device parameter configuration method described in the above embodiments, and other technical features in the electronic device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0130] It should be understood that various parts of the embodiments of this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0131] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the above claims.
[0132] This application also provides a computer-readable storage medium storing a computer program that can run on a processor. The computer program is used to execute the device parameter configuration method described in the above embodiments.
[0133] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0134] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.
[0135] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by an electronic device, cause the electronic device to: obtain a device description file of the target device; determine the overall parameter configuration process of the target device based on the device description file of the target device; and configure the parameters of the target device based on the overall parameter configuration process.
[0136] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0137] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0138] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0139] The computer-readable storage medium provided in this application embodiment stores computer-readable program instructions for executing the above-described device parameter configuration method, which can improve the compatibility of the device with the parameter configuration process used to implement the device parameter configuration and ensure the normal operation of the parameter configuration process. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application embodiment are the same as the beneficial effects of the device parameter configuration method provided in the above embodiments, and will not be repeated here.
[0140] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the device parameter configuration method described above.
[0141] The computer program product provided in this application can improve the compatibility of the device with the parameter configuration process used to implement the parameter configuration of the device, and ensure the normal operation of the parameter configuration process. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the device parameter configuration method provided in the above embodiments, and will not be repeated here.
[0142] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.
Claims
1. A method for configuring equipment parameters, characterized in that, The method comprises: obtaining a device description file of a target device; determining a parameter configuration total flow of the target device according to the device description file of the target device; configuring parameters of the target device based on the parameter configuration total flow.
2. The method of claim 1, wherein, The step of determining the parameter configuration total flow of the target device according to the device description file of the target device comprises: obtaining each parameter configuration sub-flow group in the device description file of the target device, and obtaining each parameter configuration sub-flow contained in each parameter configuration sub-flow group; generating the parameter configuration total flow of the target device according to the execution order of each parameter configuration sub-flow group, and the execution order of each parameter configuration sub-flow contained in each parameter configuration sub-flow group.
3. The method of claim 1, wherein, The step of determining the parameter configuration total flow of the target device according to the device description file of the target device comprises: obtaining each parameter configuration sub-flow group in the device description file of the target device, and obtaining each parameter configuration sub-flow contained in each parameter configuration sub-flow group; adjusting the execution order of each parameter configuration sub-flow group, and the execution order of each parameter configuration sub-flow contained in each parameter configuration sub-flow group according to the running parameters of the target device; generating the parameter configuration total flow of the target device according to the adjusted execution order of each parameter configuration sub-flow group, and the execution order of each parameter configuration sub-flow contained in each parameter configuration sub-flow group.
4. The method of claim 1, wherein, The step of determining the parameter configuration total flow of the target device according to the device description file of the target device comprises: obtaining each parameter configuration sub-flow group in the device description file of the target device, and obtaining each parameter configuration sub-flow contained in each parameter configuration sub-flow group; adjusting the execution order of each parameter configuration sub-flow group, and the execution order of each parameter configuration sub-flow contained in each parameter configuration sub-flow group according to the pre-configuration condition or post-configuration condition of each to-be-configured parameter; generating the parameter configuration total flow of the target device according to the adjusted execution order of each parameter configuration sub-flow group, and the execution order of each parameter configuration sub-flow contained in each parameter configuration sub-flow group.
5. The method of any one of claims 1 to 4, wherein, The step of obtaining the device description file of the target device comprises: obtaining device information of the target device; finding the device description file of the target device in a preset file database according to the device information of the target device.
6. The method of any one of claims 5, wherein, Before the step of finding the device description file of the target device in the preset file database according to the device information of the target device, the method further comprises: creating a device description file of each device in a preset device list according to the device information of each device in the device list; generating the file database by summarizing the device description files of each device in the device list.
7. The method of any one of claims 6, wherein, After the step of generating the file database by summarizing the device description files of each device in the device list, the method further comprises: If a change in the service flow of any device in the device list is monitored, the content of the device description file of the device recorded in the file database is adjusted according to the changed service flow.
8. The method of any one of claims 6, wherein, After the step of aggregating the device description files of each device in the device list to generate the file database, the method further comprises: If the addition of a new device to the device list is monitored, each parameter configuration sub-flow group corresponding to the new device is determined from each parameter configuration sub-flow group contained in each device description file recorded in the file database according to the device information of the new device; A device description file of the new device is generated based on each parameter configuration sub-flow group corresponding to the new device; The device description file of the new device is added to the file database.
9. An electronic device, comprising: The electronic device comprises a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the device parameter configuration method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, The computer program is stored on the computer readable storage medium and is executable by the processor to implement the steps of the device parameter configuration method according to any one of claims 1 to 8.