Data processing method and device for configuration file custom logical operation, equipment and storage medium

By automatically generating or editing configuration files and compiling them into a linked list structure, the problem of high complexity of system adjustment in the prior art is solved, and the system's flexibility and optimization of processing speed is achieved without changing internal programs.

CN120523504AActive Publication Date: 2025-08-22GUANGZHOU QINGTIAN INDAL +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202510598302.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-09
Publication Date
2025-08-22
Estimated Expiration
2045-05-09

AI Technical Summary

Technical Problem

When the existing technology adds, reduces or modifies devices in the system, it is necessary to adjust the program and data structures inside the comprehensive management device, resulting in an increase in developer workload and an increase in program maintenance complexity. The universality of configuration files is limited by predefined mapping relationships and cannot adapt to unpredefined configuration change scenarios.

Method used

The configuration files are automatically generated or manually edited through the logic definition tool, and the combination logic or comparison programs with non-programs, analog quantity comparison programs, conditional assignment programs and unconditional assignment programs are used to generate configuration files that meet user requests, and transmitted to the comprehensive management device through the file transfer protocol, compiled into a linked list structure, and updated the data processing logic in the memory.

Benefits of technology

Without changing the internal programs of the integrated management device, after adding, reducing or modifying the device in the system, the configuration file modification ensures that the output data meets the changed system requirements, which improves the system optimization processing speed and reduces workload and program maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120523504A_ABST
    Figure CN120523504A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method for configuration file self-defined logical operation. The method comprises the following steps: configuring a combinational logic through a logic definition tool to automatically generate a configuration file or manually editing the configuration file to generate the configuration file; transmitting the configuration file to a comprehensive management device through a file transmission protocol, detecting the content of the configuration file, and resetting the comprehensive management device or executing a compiling instruction; erasing a corresponding area of a memory in the integrated management device, compiling the content in the configuration file into a linked list structure which can be directly called, and rewriting the content into the memory; creating an execution task by the comprehensive manager, and traversing all contents in an execution linked list according to the linked list structure; according to the invention, on the premise of not changing the internal program of the integrated management device, the configuration file is modified, so that the output data of the integrated management device meets the changed system requirements, and the improvement and optimization processing speed of the system is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data processing method, device, equipment and storage medium for custom logic operations of configuration files. Background Art

[0002] In a system, a comprehensive management component is required to collect, process, and integrate information from the entire system. When components are added, removed, or modified, the information structure and content may change. This typically requires adjustments to the program and data structure within the comprehensive management component, which is not universal, increases developer workload, and complicates program maintenance.

[0003] CN202010929711.2 proposes a method, device, data processing system and storage medium for updating system data processing logic, including: when a system configuration file is updated, identifying the updated configuration items in the updated system configuration file and determining the data processing logic of the system main framework, the data processing logic loads the configuration parameters and configuration plug-ins in the read system configuration file into the system main framework in response to the system startup operation, determines the preset action corresponding to the updated configuration item, and the preset action includes any one of parameter update, plug-in reload and restart of the system, based on the updated configuration item, executes the preset action to update the data processing logic of the system main framework, so that the system can conveniently update the system data processing logic by modifying the configuration file without human intervention, realizing the "hot plug" of the system and improving the automation of system updates. Although the method proposed in this patent realizes the "hot plug" of the system data processing logic by dynamically updating the configuration file, the versatility of its configuration file may be limited. It requires pre-defining the corresponding action for each updated configuration item. This design requires the mapping relationship between the configuration item and the action to be solidified in the system in advance, resulting in the configuration file having to strictly match the preset action and being unable to adapt to undefined configuration change scenarios. Summary of the Invention

[0004] To overcome the aforementioned technical deficiencies, the present invention provides a data processing method, apparatus, device, and storage medium for custom configuration file logic operations. After adding, removing, or modifying components in a system, the system automatically or manually generates configuration files by configuring combinatorial logic, without changing the internal program of the integrated management component. This ensures that the output data of the integrated management component meets the modified system requirements.

[0005] In order to solve the above problems, the present invention is implemented according to the following technical solutions:

[0006] The present invention discloses a data processing method for a configuration file self-defined logical operation, comprising the following steps:

[0007] S1. Use the logic definition tool to configure the combinational logic to automatically generate a configuration file or manually obtain the generated configuration file;

[0008] The configuration file generated in step S1 includes:

[0009] Combinatorial logic OR and NOT program takes the form of a combination of several input pointers and one output pointer, several input flag bits and one output flag bit;

[0010] The analog comparison and operation program adopts a combination of an analog data source pointer x, an analog data source pointer y, and an output pointer z;

[0011] Conditional assignment procedures take a conditional switch pointer, a data source pointer as a set of inputs, a structure containing several sets of inputs, and an output pointer as a combination;

[0012] Unconditional assignment procedure, taking an input address pointer + an output address pointer as a set of information, the structure contains multiple sets of information, and a combination of a group number variable;

[0013] According to the user request, the configuration file is automatically or manually generated by any one or more of the combinational logic or negation program, the analog quantity comparison, the operation program, the conditional assignment program, and the unconditional assignment program to meet the user request;

[0014] S2, transferring the configuration file to the integrated management device via a file transfer protocol, detecting the content of the configuration file, resetting the integrated manager or executing a compilation instruction;

[0015] S3, erasing the corresponding area of ​​the memory inside the integrated management device, compiling the contents of the configuration file into a linked list structure that can be directly called, and then rewriting it into the memory;

[0016] S4. The integrated manager creates an execution task and traverses all contents in the execution linked list according to the linked list structure.

[0017] Furthermore, in the configuration file generated in step S1, the combinational logic or NAND program includes the following steps:

[0018] S111, executing the delay function;

[0019] S112, calling the combinational logic processing function and obtaining its return value;

[0020] S1121, obtain the input value according to the input pointer, and perform an XOR operation on the input value and the flag bit;

[0021] S1122, determine whether the XOR operation result is 1;

[0022] S11221, if yes, return the output flag negation;

[0023] S11222. If not, determine whether the input value has been traversed;

[0024] If traversed, return the output flag;

[0025] If not traversed, get the input value according to the next input pointer, perform XOR operation on the input value and the flag bit, and repeat step S1122;

[0026] S1123. Assign a value to the output pointer according to the return value and the delay parameter;

[0027] S113. Execution ends.

[0028] Furthermore, in the configuration file generated in step S1, the analog quantity comparison and operation procedure includes the following steps:

[0029] S114, executing the delay function;

[0030] S115. After assigning the corresponding function address to the function pointer in the structure according to the information in the configuration file, call the function pointed to by the function pointer in the structure;

[0031] S116, obtaining analog data source pointers x and y, and output pointer z from the structure information;

[0032] S117. Perform corresponding operations or comparisons on x and y according to the operation or comparison function pointed to by the function pointer;

[0033] S118, outputting the operation result through the output pointer z;

[0034] S119. Execution ends.

[0035] Furthermore, in the configuration file generated in step S1, the conditional assignment procedure includes the following steps:

[0036] S120, start execution from the function entry pointer;

[0037] S121, determine whether the data pointed to by the condition pointer is 1;

[0038] S1211: If yes, go to step S122;

[0039] S1212: If not, go to step S123;

[0040] S122, assign the data pointed to by the data source pointer in the input group to the address pointed to by the output pointer, and then execute step S124;

[0041] S123, checking whether all inputs have been judged to be complete;

[0042] S1231: If yes, execute step S124;

[0043] If not, the next input is judged and the process returns to step S121 to continue checking the next set of input conditional pointer data.

[0044] S124. Execution ends.

[0045] Furthermore, in the configuration file generated in step S1, the unconditional assignment procedure includes the following steps:

[0046] S125. Get the number of groups in the structure;

[0047] S126. cyclically assigning the data pointed to by the input address pointer in each group of information to the address pointed to by the output address pointer according to the number of groups;

[0048] S127: End the loop and the execution ends.

[0049] Furthermore, the step S2 transfers the configuration file to the integrated management device via a file transfer protocol, detects the content of the configuration file, resets the integrated manager or executes a compilation instruction, including the following steps:

[0050] S21. When resetting the integrated management device, the program automatically detects whether the configuration file is updated;

[0051] S211: If yes, the program automatically executes the compilation instruction;

[0052] S212: If not, skip compiling and directly load the original configuration file.

[0053] S22. Manually execute the compilation instructions through console commands.

[0054] Furthermore, the step S3 erases the corresponding area of ​​the memory inside the integrated management device, compiles the content of the configuration file into a linked list that can be directly called, and then rewrites it into the memory, including the following steps:

[0055] S31, when the program executes the compilation instruction, the task scheduler is suspended;

[0056] S32, erase the linked list stored in the internal Flash memory of the chip, parse the configuration file, set the processing function and other parameters of the structure in the linked list according to the content of the configuration file, and construct and replace the original linked list;

[0057] S33. Restore the task scheduler.

[0058] Furthermore, in step S4, the integrated manager creates an execution task and traverses all contents in the execution linked list according to the linked list structure, including the following steps:

[0059] S41, creating an execution task and executing the task on a scheduled basis;

[0060] S42, using the pointer variable to point to the head of the linked list, and determining whether the address of the next structure is within the address range of the Flash memory storing the linked list;

[0061] S421: If yes, execute the processing function in the structure, and point the pointer to the next structure, and continue the loop;

[0062] S422: If not, exit the loop and the execution ends.

[0063] According to another aspect of the present invention, a data processing device for configuring a customized logical operation of a configuration file includes:

[0064] Generate configuration file module, which is used to automatically generate configuration files by configuring combinational logic through logic definition tools or manually edit and generate configuration files;

[0065] A configuration file transmission module, which is used to transmit the configuration file to the integrated management device through a file transfer protocol, detect the configuration file content, reset the integrated manager or execute a compilation instruction;

[0066] A configuration file compilation module is used to erase the corresponding area of ​​the memory inside the integrated management device, compile the contents of the configuration file into a linked list structure that can be directly called, and then rewrite it into the memory;

[0067] The execution task module is used by the integrated manager to create an execution task and traverse all contents in the execution linked list according to the linked list structure.

[0068] According to another aspect of the present invention, an electronic device is provided, comprising:

[0069] at least one processor; and a memory communicatively coupled to the at least one processor;

[0070] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data processing method of the configuration file customized logical operation described in the present invention.

[0071] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program.

[0072] The computer program is used to enable a processor to implement the data processing method for customized logical operations of a configuration file of the present invention when the computer program is executed.

[0073] Compared with the prior art, the present invention has the following beneficial effects:

[0074] The present invention provides a data processing method for customized logical operations of a configuration file. Under the premise of not changing the internal program of the integrated management device, after adding, reducing or modifying some devices in the system, the program of the integrated management device does not need to be modified. By modifying the configuration file, the output data of the integrated management device meets the requirements of the changed system, which greatly improves the improvement and optimization processing speed of the system, reduces the workload of staff, and reduces the cost and complexity of program maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] The specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings, wherein:

[0076] Figure 1 This is a flow chart of a data processing method for custom logic operations of a configuration file disclosed in the present invention;

[0077] Figure 2 This is a processing flow chart of the combinational logic OR and NOT functions in a data processing method for a configuration file customized logic operation disclosed by the present invention;

[0078] Figure 3 This is a program flow chart of analog quantity comparison and operation in a data processing method for customized logical operation of a configuration file disclosed by the present invention;

[0079] Figure 4 This is a program flow chart of a conditional assignment function in a data processing method for custom logic operations of a configuration file disclosed in the present invention;

[0080] Figure 5 This is a main function flow chart of a data processing method for custom logic operations of a configuration file disclosed in the present invention;

[0081] Figure 6 It is a module diagram of a data processing device for configuring a configuration file and performing customized logical operations disclosed in the present invention;

[0082] Figure 7 It is a structural schematic diagram of an electronic device of the present invention. DETAILED DESCRIPTION

[0083] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present invention. The preferred embodiments of the present invention are described below in conjunction with the drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0084] This embodiment discloses a data processing method for configuring a configuration file to customize logical operations, such as Figure 1 As shown, the following steps are included:

[0085] S1. Use the logic definition tool to configure the combinational logic to automatically generate a configuration file or manually edit and generate a configuration file;

[0086] The configuration file generated in step S1 includes: a combinational logic or negation program, an analog comparison program, an operation program, a conditional assignment program, and an unconditional assignment program;

[0087] According to the user request, the configuration file is automatically or manually generated by any one or more of the combinational logic or negation program, the analog quantity comparison, the operation program, the conditional assignment program, and the unconditional assignment program to meet the user request;

[0088] The configuration file supports the four aforementioned program functions. Any functionality within these four functions can be implemented by adding, modifying, or deleting the configuration file. The logic definition tool (combination logic editing software) configures the combinational logic to generate the configuration file, including but not limited to graphical operations. In addition to automatic software generation, professionals can also manually write configuration files according to the rules.

[0089] S2, transferring the configuration file to the integrated management device via a file transfer protocol, detecting the content of the configuration file, resetting the integrated manager or executing a compilation instruction;

[0090] Wherein, the file transfer protocol is FTP file transfer protocol;

[0091] S3, erasing the corresponding area of ​​the memory inside the integrated management device, compiling the contents of the configuration file into a linked list structure that can be directly called, and then rewriting it into the memory;

[0092] Compiling converts the configuration file into a linked list and stores it in Flash. This operation can increase program loading speed, reduce RAM usage, and improve stability, effectively preventing errors caused by factors such as pointer overruns.

[0093] S4, the integrated manager creates an execution task and traverses all contents in the execution linked list according to the linked list structure;

[0094] Among them, in this embodiment, the header of each type of structure is the same, and the header is used to form a linked list, which can be compatible with different functional modules. During the program running and compiling process, all functional modules are processed uniformly, which is simpler.

[0095] Different function pointers for the same function: During the compilation process, each structure occupies a large amount of memory, but in actual use, the entire structure is not necessarily used. Different function pointers can choose to discard the unused parts, which will not affect the execution of the function and reduce the use of Flash.

[0096] Function pointer: The function pointer is at the head of the structure. The existence of function pointer makes it possible to use one program to be compatible with all modules in the program.

[0097] This embodiment provides a data processing method for customized logical operations in a configuration file. Without changing the internal program of the integrated management device, after adding, reducing, or modifying some devices in the system, the program of the integrated management device does not need to be modified. By modifying the configuration file, the output data of the integrated management device meets the requirements of the changed system, which greatly improves the improvement and optimization processing speed of the system, reduces the workload of staff, and reduces the cost and complexity of program maintenance.

[0098] The configuration file in this embodiment supports four functions. Anything that does not exceed the scope of these four functions can be achieved by adding, modifying, or deleting the configuration file.

[0099] The following is a further explanation of function 1 (combinatorial logic OR and NOT): Figure 2 As shown:

[0100] The configuration file generated in step S1 includes a combination logic or NAND program, adopts a combination of several (based on the byte alignment characteristics of the cortex-m4 core and actual usage requirements, this embodiment uses seven) input pointers and one output pointer, and several input flag bits and one output flag bit, including the following steps:

[0101] S111, executing the delay function;

[0102] S112, calling the combinational logic processing function and obtaining its return value;

[0103] S1121, obtain the input value according to the input pointer, and perform an XOR operation on the input value and the flag bit;

[0104] S1122, determine whether the XOR operation result is 1;

[0105] S11221, if yes, return the output flag negation;

[0106] S11222. If not, determine whether the input value has been traversed;

[0107] If traversed, return the output flag;

[0108] If not traversed, get the input value according to the next input pointer, perform XOR operation on the input value and the flag bit, and repeat step S1122;

[0109] S1123. Assign a value to the output pointer according to the return value and the delay parameter;

[0110] S113. Execution ends.

[0111] This embodiment utilizes the bit-banding area and bit-band alias area of ​​the Cortex-M4 processor to quickly read, write, and perform logical operations on switch values. The Cortex-M4 core supports bit-banding operations, which can expand data in some address segments into 32-bit data on a bit-by-bit basis and associate it with another address. Therefore, for a write operation on a bit, only the bit-band address needs to be obtained, thus avoiding the steps of reading, modifying, and writing, and completing the write operation directly. For a read operation on a bit, the steps of reading, shifting, and fetching bits can be avoided, and the read operation can be completed directly, thus improving processing speed.

[0112] In logical operations, the input and output are bits in a register. To increase the program's running speed, the program actually stores the register in a bit-band area. Therefore, when reading and writing switch quantities, the address pointed to by the pointer is set to the bit-band alias area address of the corresponding bit in the register, which can greatly increase the bit's logical operation speed.

[0113] Function 1 uses a pointer to point to a bit with an address, allowing for rapid reading, writing, and operations on the corresponding bit. To make the function compatible with OR and NOT logic, Function 1 sets a flag variable for each pointer. The result is obtained through bitwise AND operations on the flag, allowing for rapid logical operations. The specific flag value rules are shown in the table "Combinatorial Logic Input and Output Flag Logic Table":

[0114]

[0115] To increase processing speed, different functions (implemented via function pointers) are used depending on the number of logic gate inputs. In a program, simply calling the function pointers in the structure will complete all operations from functions one to four, without requiring additional resolution. This method allows you to add functionality later without modifying the processing.

[0116] Furthermore, the delay function uses a pointer to an unused RAM. Depending on the delay mode, the value at the address pointed to by this pointer is added, subtracted, reset to zero, and so on. Ultimately, the corresponding value is written to the address pointed to by the output pointer. In industry, some inputs require filtering. In this embodiment, a delay function is used to implement this filtering, preventing malfunctions due to interference and other factors.

[0117] The following is a further explanation of function 2 (analog comparison and operation), as follows: Figure 3 As shown:

[0118] The configuration file generated in step S1 includes analog comparison and operation programs, and adopts a combination of an analog data source pointer x, an analog data source pointer y, and an output pointer z, including the following steps:

[0119] S114, executing the delay function;

[0120] S115. After assigning the corresponding function address to the function pointer in the structure according to the information in the configuration file, call the function pointed to by the function pointer in the structure;

[0121] S116, obtaining analog data source pointers x and y, and output pointer z from the structure information;

[0122] S117. Perform corresponding operations or comparisons on x and y according to the operation or comparison function pointed to by the function pointer;

[0123] S118, outputting the operation result through the output pointer z;

[0124] S119. Execution ends.

[0125] The following further explains function three (conditional assignment): Figure 4 As shown:

[0126] The configuration file generated in step S1 includes a conditional assignment program, which takes a conditional switch pointer and a data source pointer as a group of inputs, and a structure containing a combination of several groups of inputs and an output pointer, and includes the following steps:

[0127] S120, start execution from the function entry pointer;

[0128] S121, determine whether the data pointed to by the condition pointer is 1;

[0129] S1211: If yes, go to step S122;

[0130] S1212: If not, go to step S123;

[0131] S122, assign the data pointed to by the data source pointer in the input group to the address pointed to by the output pointer, and then execute step S124;

[0132] S123, checking whether all inputs have been judged to be complete;

[0133] S1231: If yes, execute step S124;

[0134] If not, the next input is judged and the process returns to step S121 to continue checking the next set of input conditional pointer data.

[0135] S124. Execution ends.

[0136] Because this embodiment uses different function pointers and linked list structures, even if multiple groups of inputs are set, the unused content of the structure can be truncated during the compilation process, thereby reducing the Flash occupancy; the use of function pointers can not only be compatible with multiple functions, but also reduce Flash occupancy.

[0137] Function 3 of this embodiment is often used in hot standby devices. Specifically, at any given moment, only one device is operating. For example, if there are devices A, B, and C, then the data sent to the monitoring device can only read data from all three devices, A, B, and C. Function 3, however, pre-processes the data based on which device is operating, converting it to the data of the currently operating device. Specifically, if the output of device A is 120, the output of device B is 119 when it is not operating, and the output of device C is 121 when it is not operating, then when acquiring the device output via communication, the output is 120. If the device switches to operating B and reads the same address again, the output is 119.

[0138] Function three of this embodiment can be combined with function two to be used in a hysteresis comparator. The implementation method of the hysteresis comparator is as follows:

[0139] 1. If data source x> constant y1, then z1=1, otherwise z1=0; (Function 2)

[0140] 2. If data source x < constant y2, then z2 = 1, otherwise z2 = 0; (Function 2, Note: y1 > y2)

[0141] 3. If z1 == 1, then z3 = z1; if z2 == 1, then z3 = z1 (Function 3)

[0142] The above steps can achieve that when x is monotonically increasing, x > y1 and z3 = 1; when x is monotonically decreasing and x < y2, z3 = 0; when y2 < x < y1, z3 maintains the previous state.

[0143] Hysteresis comparators are generally used in industry for the output of some status information, which can prevent the output status from repeatedly jumping at the critical state. Compared with anti-shake (the delay function of Function 1), the response of the hysteresis comparator is more stable and faster.

[0144] The following further describes Function 4 (unconditional assignment):

[0145] In the configuration file generated in step S1, there is an unconditional assignment program, which takes one input address pointer + one output address pointer as a set of information. The structure contains multiple sets of information, and a combination form of a group number variable, including the following steps:

[0146] S125. Obtain the number of groups in the structure;

[0147] S126. According to the number of groups, loop and assign the data pointed to by the input address pointer in each set of information to the address pointed to by the output address pointer;

[0148] S127. End the loop and execute the end.

[0149] The application scenarios of Function 4 in this embodiment mostly exist in being compatible with devices of other manufacturers. Because each manufacturer has its own data arrangement habit, for the system using the device, when replacing the device of other manufacturers, it is necessary to modify other devices related to the replaced device. The Function 4 provided in this embodiment, combined with other functions, can quickly and conveniently modify the output of its own device without modifying other devices to make it compatible with the device before replacement.

[0150] In this embodiment, step S2 transmits the configuration file to the integrated management device through the file transfer protocol, detects the content of the configuration file, and resets the integrated manager or executes the compilation instruction, including the following steps:

[0151] S21. When resetting the integrated management device, the program automatically detects whether the configuration file is updated;

[0152] S211. If so, the program automatically executes the compilation instruction;

[0153] S212. If not, skip compilation and directly load the original configuration file.

[0154] S22. Manually execute the compilation instructions through console commands.

[0155] In this embodiment, the step S3 erases the corresponding area of ​​the memory inside the integrated management device, compiles the content of the configuration file into a linked list that can be directly called, and then rewrites it into the memory, including the following steps:

[0156] S31, when the program executes the compilation instruction, the task scheduler is suspended;

[0157] S32, erase the linked list stored in the internal Flash memory of the chip, parse the configuration file, set the processing function and other parameters of the structure in the linked list according to the content of the configuration file, and construct and replace the original linked list;

[0158] S33. Restore the task scheduler.

[0159] In this embodiment, the integrated manager in step S4 creates an execution task and traverses all contents in the execution linked list according to the linked list structure, including the following steps:

[0160] S41, creating an execution task and executing the task on a scheduled basis;

[0161] S42, using one of the pointers to point to the head of the linked list, to determine whether the address of the next structure is within the address range of the Flash memory storing the linked list;

[0162] S421: If yes, execute the processing function in the structure, and point the pointer to the next structure, and continue the loop;

[0163] S422: If not, exit the loop and the execution ends.

[0164] This embodiment provides a data processing device for configuring a configuration file to customize logical operations. When using the data processing device for configuring a configuration file to customize logical operations, the data processing method for configuring a configuration file to customize logical operations is included. Figure 6 As shown, the data processing device for the configuration file customized logical operation includes:

[0165] Generate configuration file module, which is used to automatically generate configuration files by configuring combinational logic through logic definition tools or manually edit and generate configuration files;

[0166] A configuration file transmission module, which is used to transmit the configuration file to the integrated management device through a file transfer protocol, detect the configuration file content, reset the integrated manager or execute a compilation instruction;

[0167] A configuration file compilation module is used to erase the corresponding area of ​​the memory inside the integrated management device, compile the contents of the configuration file into a linked list structure that can be directly called, and then rewrite it into the memory;

[0168] The execution task module is used by the integrated manager to create an execution task and traverse all contents in the execution linked list according to the linked list structure.

[0169] This embodiment provides an electronic device, the electronic device including:

[0170] at least one processor; and a memory communicatively coupled to the at least one processor;

[0171] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data processing method of the configuration file customized logical operation described in the present invention.

[0172] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program.

[0173] The computer program is used to enable a processor to implement the data processing method for customized logical operations of a configuration file of the present invention when the computer program is executed.

[0174] Figure 7 A schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present invention is shown. The electronic device 600 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are provided as examples only and are not intended to limit the implementation of the present inventions described and / or claimed herein.

[0175] like Figure 7 As shown, electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. Various programs and data required for the operation of device 600 can also be stored in RAM 603. Computing unit 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to bus 604.

[0176] The various components in the electronic device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a magnetic disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the electronic device 600 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0177] The computing unit 601 can be a variety of general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as a data processing method for a profile-customized logical operation. For example, in some embodiments, a data processing method for a profile-customized logical operation can be implemented as a computer software program that is tangibly embodied in a machine-readable medium, such as the storage unit 608. In some embodiments, part or all of the computer program can be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the data processing method for a profile-customized logical operation described above can be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute a data processing method for configuring a configuration file to customize logical operations in any other appropriate manner (eg, by means of firmware).

[0178] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0179] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. Such program code can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0180] In the context of the present invention, a machine-readable medium can be a tangible medium that can contain or store a program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0181] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0182] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0183] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The client-server relationship arises through computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, a server in a distributed system, or a server integrated with a blockchain.

[0184] For other structures of the data processing method, device, equipment, and storage medium for configuring a configuration file for customized logical operations described in this embodiment, refer to the prior art.

[0185] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0186] The above description is merely a preferred embodiment of the present invention and does not constitute any form of limitation to the present invention. Therefore, any modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall still fall within the scope of the technical solution of the present invention.

Claims

1. A data processing method for configuring a configuration file for customized logical operations, characterized in that: The following steps are involved: S1. Use the logic definition tool to configure the combinational logic to automatically generate a configuration file or manually obtain the generated configuration file; The configuration file generated in step S1 includes: Combinatorial logic OR and NOT program takes the form of a combination of several input pointers and one output pointer, several input flag bits and one output flag bit; The analog comparison and operation program adopts a combination of an analog data source pointer x, an analog data source pointer y, and an output pointer z; Conditional assignment procedures take a conditional switch pointer, a data source pointer as a set of inputs, a structure containing several sets of inputs, and an output pointer as a combination; Unconditional assignment procedure, taking an input address pointer + an output address pointer as a set of information, the structure contains multiple sets of information, and a combination of a group number variable; According to the user request, the configuration file is automatically or manually generated by any one or more of the combinational logic or negation program, the analog quantity comparison, the operation program, the conditional assignment program, and the unconditional assignment program to meet the user request; S2, transferring the configuration file to the integrated management device via a file transfer protocol, detecting the content of the configuration file, resetting the integrated manager or executing a compilation instruction; S3, erasing the corresponding area of ​​the memory inside the integrated management device, compiling the contents of the configuration file into a linked list structure that can be directly called, and then rewriting it into the memory; S4. The integrated manager creates an execution task and traverses all contents in the execution linked list according to the linked list structure.

2. The data processing method for configuring a configuration file for customized logical operations according to claim 1, characterized in that: In the configuration file generated in step S1, the combinational logic OR and NOT program includes the following steps: S111, executing the delay function; S112, calling the combinational logic processing function and obtaining its return value; S1121, obtain the input value according to the input pointer, and perform an XOR operation on the input value and the flag bit; S1122, determine whether the XOR operation result is 1; S11221, if yes, return the output flag negation; S11222. If not, determine whether the input value has been traversed; If traversed, return the output flag; If not traversed, get the input value according to the next input pointer, perform XOR operation on the input value and the flag bit, and repeat step S1122; S1123. Assign a value to the output pointer according to the return value and the delay parameter; S113. Execution ends.

3. The data processing method for configuring a configuration file for customized logical operations according to claim 1, characterized in that: In the configuration file generated in step S1, the analog quantity comparison and operation program includes the following steps: S114, executing the delay function; S115. After assigning the corresponding function address to the function pointer in the structure according to the information in the configuration file, call the function pointed to by the function pointer in the structure; S116, obtaining analog data source pointers x and y, and output pointer z from the structure information; S117. Perform corresponding operations or comparisons on x and y according to the operation or comparison function pointed to by the function pointer; S118, outputting the operation result through the output pointer z; S119. Execution ends.

4. The data processing method for configuring a configuration file for customized logical operations according to claim 1, characterized in that: In the step S1 of generating a configuration file, the conditional assignment procedure includes the following steps: S120, start execution from the function entry pointer; S121, determine whether the data pointed to by the condition pointer is 1; S1211: If yes, go to step S122; S1212: If not, go to step S123; S122, assign the data pointed to by the data source pointer in the input group to the address pointed to by the output pointer, and then execute step S124; S123, checking whether all inputs have been judged to be complete; S1231: If yes, execute step S124; If not, the next input is judged and the process returns to step S121 to continue checking the next set of input conditional pointer data. S124. Execution ends.

5. The data processing method for configuring a configuration file for customized logical operations according to claim 1, characterized in that: In the step S1 of generating a configuration file, the unconditional assignment procedure includes the following steps: S125. Get the number of groups in the structure; S126. cyclically assigning the data pointed to by the input address pointer in each group of information to the address pointed to by the output address pointer according to the number of groups; S127: End the loop and the execution ends.

6. The data processing method for configuring a configuration file for customized logical operations according to claim 1, characterized in that: The step S2 transfers the configuration file to the integrated management device via a file transfer protocol, detects the content of the configuration file, resets the integrated manager or executes a compilation instruction, and includes the following steps: S21. When resetting the integrated management device, the program automatically detects whether the configuration file is updated; S211: If yes, the program automatically executes the compilation instruction; S212: If not, skip compiling and directly load the original configuration file; S22. Manually execute the compilation instructions through console commands.

7. The data processing method for configuring a configuration file for customized logical operations according to claim 1, characterized in that: The step S3 erases the corresponding area of ​​the memory inside the integrated management device, compiles the content of the configuration file into a linked list that can be directly called, and then rewrites it into the memory, including the following steps: S31, when the program executes the compilation instruction, the task scheduler is suspended; S32, erase the linked list stored in the internal Flash memory of the chip, parse the configuration file, set the processing function and other parameters of the structure in the linked list according to the content of the configuration file, and construct and replace the original linked list; S33. Restore the task scheduler.

8. The data processing method for customized logical operations of configuration files according to claim 1, characterized in that: In step S4, the integrated manager creates an execution task and traverses all contents in the execution linked list according to the linked list structure, including the following steps: S41, creating an execution task and executing the task at a scheduled time; S42, using the pointer variable to point to the head of the linked list, and determining whether the address of the next structure is within the address range of the Flash memory storing the linked list; S421: If yes, execute the processing function in the structure, and point the pointer to the next structure, and continue the loop; S422: If not, exit the loop and the execution ends.

9. A data processing device for configuring a configuration file for customized logical operations, characterized in that: include: Generate configuration file module, which is used to automatically generate configuration files by configuring combinational logic through logic definition tools or manually edit and generate configuration files; A configuration file transmission module, which is used to transmit the configuration file to the integrated management device through a file transfer protocol, detect the configuration file content, reset the integrated manager or execute a compilation instruction; A configuration file compilation module is used to erase the corresponding area of ​​the memory inside the integrated management device, compile the contents of the configuration file into a linked list structure that can be directly called, and then rewrite it into the memory; The execution task module is used by the integrated manager to create an execution task and traverse all contents in the execution linked list according to the linked list structure.

10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data processing method of the configuration file customized logical operation according to claims 1 to 8.

Citation Information

Patent Citations

  • Method for improving reading and writing efficiency of embedded equipment configuration file

    CN107329782A

  • System data processing logic updating method and device and data processing system

    CN112099858A

  • Automatic updating system and method for interlocking logic rule configuration file

    CN114385649A

  • Visual configuration file management method and equipment based on JSON (JavaScript Object Notation) and medium

    CN117331545A

  • Data processing method and device of computing system, electronic equipment and storage medium

    CN117806692A