A service engine scheduling method based on configuration table
Through the service engine scheduling method based on the configuration table, the problem in the existing technology that configuration table files with different contents are difficult to interpret under the same configuration rules is solved, efficient software transplantation and flexible device control are achieved, and development costs are reduced.
Patent Information
- Application Number
- CN202111667056.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-31
AI Technical Summary
During the device software migration process, the existing configuration software design method is difficult to support the interpretation of configuration table files with different contents under the same configuration rules, resulting in high development costs and low efficiency.
The service engine scheduling method based on the configuration table is used to initialize the service engine resources, data sending and receiving, and function scheduling by obtaining the configuration table generation rules, including hardware resource initialization, configuration table memory space allocation, data sending and receiving task creation, and function scheduling table establishment. Ensure that configuration table files with different contents under the same configuration rules can be interpreted by the same service engine.
It realizes that configuration table files with different contents under the same configuration rules can be interpreted by the same service engine, avoiding the need for changes during the migration process and improving the efficiency and flexibility of software migration.
Smart Images

Figure CN114489832B
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of aviation airborne system application software development, and in particular, relates to a service engine scheduling method based on a configuration table. Background Art
[0002] By using standardized software interfaces and following certain rules, different functions can be realized by configuring the capabilities of the equipment according to system requirements. This is a way to achieve the transplantation of airborne equipment application software, reduce development costs, and improve efficiency. Configuration-based software design is an airborne software design method proposed to solve the above problems.
[0003] The configuration-based software design method divides the application software into three parts at the application layer: configuration table file, service engine, and functional logic function library. Among them: the configuration table file is a binary file formed according to certain functional format requirements, and its content contains the information required for the device application software to realize its functions, including device hardware information, device input and output information, logical operation rules, cycles, and data processing information; the service engine is used to interpret the configuration file content and execute the device software functions agreed in the configuration file in sequence. These functions include device input acquisition, logical operation, data output, and status monitoring. The service engine is independent of peripheral areas such as hardware, configuration files, and functional logic packages, and is the core part of the configuration-based application software; the functional logic function library is a group of all functional logic functions that the application software needs to call, which specifically realizes the control, alarm, display, maintenance, and cross-linking information processing functions of the device.
[0004] Therefore, it is desired to have a technical solution to overcome or at least alleviate at least one of the above-mentioned defects of the prior art. Summary of the invention
[0005] The purpose of the present application is to provide a service engine scheduling method based on a configuration table to solve at least one problem existing in the prior art.
[0006] The technical solution of this application is:
[0007] A service engine scheduling method based on a configuration table, comprising:
[0008] Step 1: Obtain configuration table generation rules, wherein the configuration table generation rules include table header information, hard line path table, bus path table, input signal table, signal processing period table, signal processing table, signal output table and data packet description table;
[0009] Step 2: Initialize the service engine resources based on the configuration table generation rules;
[0010] Step 3: Send and receive data based on the configuration table generation rules, parse and store input data according to the configuration table generation rules, and assemble and output output data according to the configuration table generation rules;
[0011] Step 4: Perform function scheduling based on the configuration table generation rules.
[0012] In at least one embodiment of the present application, in step 2, the initialization of service engine resources based on the configuration table generation rule includes:
[0013] S201, initializing hardware resources;
[0014] S202, read the configuration table generation rules and verify its content;
[0015] S203, allocating configuration table memory space according to configuration table generation rules;
[0016] S204, allocating memory space for the function scheduling table, the size of which is consistent with the number of functions that need to be scheduled;
[0017] S205, creating data sending and receiving tasks and function scheduling tasks;
[0018] S206, create a buffer semaphore;
[0019] S207: Start the periodic task operation.
[0020] In at least one embodiment of the present application, in S203, the configuration table memory space includes a function processing context buffer, a signal data buffer, a bus data packet buffer, and a common data packet receiving and sending buffer, wherein:
[0021] The function processing context buffer is used to store the global variable values used in the function running process, and its index number corresponds to the periodic processing function ID;
[0022] The signal data buffer is divided into three parts: input data, output data, and intermediate variables. The input data index number corresponds to the input signal table, the output data index number corresponds to the signal output table, the input data index number and the output data index number are obtained by querying the hard line path table and the bus path table information, and the intermediate variables correspond to the processing results of the periodic processing function;
[0023] The bus data packet buffer is divided into two parts: receiving and sending, which are used to store the original unparsed data of all data packets to be received and the packaged contents of all data packets to be sent. The size and index number of the bus data packet buffer are consistent with the configuration table information;
[0024] The public data packet receiving and sending buffer is used to store the content of a single received or sent data packet, and its length is the maximum value of all data packets.
[0025] In at least one embodiment of the present application, in step three, the sending and receiving of data based on the configuration table generation rule, parsing and storing the input data according to the configuration table generation rule, and packaging and outputting the output data according to the configuration table generation rule include:
[0026] S301, calling the polling operation entry function for the user-defined operation to be executed periodically;
[0027] S302, updating the input signal value;
[0028] S303: Update the output signal value.
[0029] In at least one embodiment of the present application, in S302, updating the input signal value includes:
[0030] Call the interface driver function to loop and receive input data packets;
[0031] Storing the successfully received input data packet content in the common data packet receiving and sending buffer;
[0032] The data in the common data packet receiving and sending buffer is stored in the bus data packet buffer according to the index sequence number.
[0033] In at least one embodiment of the present application, in S303, updating the output signal value includes:
[0034] Storing the packed data in the bus data packet buffer into the common data packet receiving and sending buffer according to the index sequence number;
[0035] Determine whether the current data packet sending flag is valid. When the sending flag is valid, call the interface driver function to send the output data packet, and execute the loop until all data packets in the current cycle are sent.
[0036] In at least one embodiment of the present application, in step 4, the performing function scheduling based on the configuration table generation rule includes:
[0037] S401, establishing a processing function scheduling table for the current cycle;
[0038] S402, updating the input data value in the signal data buffer;
[0039] S403, executing the allocated function dispatch table memory space in the processing function dispatch table;
[0040] S404: Update the output data value in the signal data buffer.
[0041] In at least one embodiment of the present application, in S401, the step of establishing a processing function scheduling table for the current cycle includes:
[0042] The minimum period of the memory space allocation function scheduling table of all cycles is defined as a time slot. The scheduling strategy of the memory space allocation function scheduling table in the function library is: after the function scheduling task starts running, the calling period and the starting time slot of each memory space allocation function scheduling table recorded in the configuration table are cyclically judged to establish the processing function scheduling table;
[0043] If the period of the processing process is 0, directly put the function ID corresponding to the processing process into the processing function scheduling table;
[0044] If the cycle of the processing process is non-zero, divide the number of time slots after the system is started by the cycle of the processing process and take the remainder. If the result is equal to the starting time slot of the processing process, the function ID corresponding to the processing process is put into the processing function scheduling table, that is, in the Nth time slot, the periodic processing function with the starting time slot number specified in the configuration table file as N% of the processing cycle needs to be scheduled.
[0045] The invention has at least the following beneficial technical effects:
[0046] According to the configuration table-based service engine scheduling method of the present application, under the same configuration rules, configuration table files with different contents can be interpreted by the same service engine and do not need to be modified during transplantation. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 This is a schematic diagram of the operation of the service engine of one embodiment of the present application;
[0048] Figure 2 It is a schematic diagram of configuration table rules of an implementation mode of the present application;
[0049] Figure 3 It is a schematic diagram of the execution of an initialization task in one implementation mode of the present application;
[0050] Figure 4 This is a schematic diagram of executing a data receiving and sending task in one embodiment of the present application;
[0051] Figure 5 This is a schematic diagram of a function scheduling task execution according to an implementation mode of the present application;
[0052] Figure 6 is a schematic diagram of a buffer allocated by a service engine in one embodiment of the present application;
[0053] Figure 7This is a schematic diagram of an example content of a configuration table file of an implementation mode of the present application;
[0054] Figure 8 It is a schematic diagram of a scheduling strategy for a processing function scheduling table according to an implementation mode of the present application.
[0055] in:
[0056] 1-initialization task module, 2-receipt and send task module, 3-function scheduling task module, 4-function processing context buffer, 5-signal data buffer, 6-bus data packet buffer, 7-public data packet receiving and sending buffer, 8-processing function scheduling table buffer. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical scheme and advantages of the implementation of this application clearer, the technical scheme in the embodiment of this application will be described in more detail below in conjunction with the drawings in the embodiment of this application. In the drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The described embodiments are part of the embodiments of this application, not all of them. The embodiments described below with reference to the drawings are exemplary and are intended to be used to explain this application, and should not be construed as limitations on this application. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. The embodiments of this application are described in detail below in conjunction with the drawings.
[0058] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the scope of protection of the present application.
[0059] The following is combined with Figures 1 to 8 This application is described in further detail.
[0060] The present application provides a service engine scheduling method based on a configuration table, comprising the following steps:
[0061] Step 1: Obtain configuration table generation rules, the configuration table generation rules including header information, hard line path table, bus path table, input signal table, signal processing period table, signal processing table, signal output table and data packet description table;
[0062] Step 2: Initialize service engine resources based on configuration table generation rules;
[0063] Step 3: Send and receive data based on the configuration table generation rules, parse and store the input data according to the configuration table generation rules, and assemble and output the output data according to the configuration table generation rules;
[0064] Step 4: Generate rules based on the configuration table to schedule functions.
[0065] The service engine scheduling method based on the configuration table of the present application provides the configuration table file generation rules, and the configuration table file generation rules include eight parts, and its structure is as follows: Figure 2 Based on the rule content generated by the configuration table file, three task modules are established, namely, initialization task module 1, receipt sending and receiving task module 2, and function scheduling task module 3, which respectively perform engine initialization, data sending and receiving, and function scheduling functions, and the task modules communicate with each other through a protected shared data buffer.
[0066] The first task of the service engine scheduling method based on the configuration table of the present application is an initialization task, which is non-periodic and performs initialization of service engine resources, reads the configuration table content and starts the second and third periodic tasks. In this embodiment, in step 2, the execution process of initializing service engine resources based on the configuration table generation rule is as follows:
[0067] S201, initializing hardware resources;
[0068] S202, read the configuration table generation rules and verify its content;
[0069] S203, allocating configuration table memory space according to configuration table generation rules;
[0070] S204, allocating memory space for the function scheduling table, the size of which is consistent with the number of functions that need to be scheduled;
[0071] S205, creating data sending and receiving tasks and function scheduling tasks;
[0072] S206, create a buffer semaphore;
[0073] S207: Start the periodic task operation.
[0074] In this embodiment, in S203, the configuration table memory space includes a function processing context buffer 4, a signal data buffer 5, a bus data packet buffer 6 and a public data packet receiving and sending buffer 7, wherein the function processing context buffer 4 is used to store the global variable values used in the function running process, and its index number corresponds to the periodic processing function ID; the signal data buffer 5 is divided into three parts: input data, output data, and intermediate variables. The input data index number corresponds to the input signal table, and the output data index number corresponds to the signal output table. The input data index number and the output data index number are both obtained by querying the hard wire path table and the bus path table information, and the intermediate variables correspond to the processing results of the periodic processing function; the bus data packet buffer 6 is divided into two parts, namely, receiving and sending, for storing the original unparsed data of all data packets that need to be received and the packaged contents of all data packets that need to be sent. The size and index number of the bus data packet buffer 6 are consistent with the configuration table information; the public data packet receiving and sending buffer 7 is used to store the contents of a single received or sent data packet, and its length is the maximum value of all data packets.
[0075] The service engine scheduling method based on the configuration table of the present application, the second task is a data receiving and sending task, a periodic task, whose period is consistent with the minimum collection period of the input, responsible for parsing and storing the input data according to the configuration table rules, and assembling and outputting the output data according to the configuration table rules. In this embodiment, in step three, data receiving and sending based on the configuration table generation rules, parsing and storing the input data according to the configuration table generation rules, and assembling and outputting the output data according to the configuration table generation rules include:
[0076] S301, calling the polling operation entry function for the user-defined operation to be executed periodically;
[0077] S302, updating the input signal value;
[0078] S303: Update the output signal value.
[0079] In this embodiment, in S302, updating the input signal value includes:
[0080] Call the interface driver function to loop and receive input data packets;
[0081] The content of the successfully received input data packet is stored in the common data packet receiving and sending buffer;
[0082] Store the data in the common data packet receiving and sending buffer into the bus data packet buffer according to the index sequence number.
[0083] In this embodiment, in S303, updating the output signal value includes:
[0084] The data packed in the bus data packet buffer is stored in the common data packet receiving and sending buffer according to the index sequence number;
[0085] Determine whether the current data packet sending flag is valid. When the sending flag is valid, call the interface driver function to send the output data packet, and execute the loop until all data packets in the current cycle are sent.
[0086] The third task of the service engine scheduling method based on the configuration table of the present application is a function scheduling task, a periodic task, which is responsible for calling the corresponding allocated function scheduling table memory space to process the input data and store the output results. In this embodiment, in step 4, function scheduling based on the configuration table generation rules includes:
[0087] S401, establishing a processing function scheduling table for the current cycle;
[0088] S402, updating the input data value in the signal data buffer 5;
[0089] S403, executing the allocated function dispatch table memory space in the processing function dispatch table;
[0090] S404 , update the output data value in the signal data buffer 5 .
[0091] In this embodiment, in S401, establishing a processing function scheduling table for the current cycle includes:
[0092] The minimum period of the memory space allocation function scheduling table of all cycles is defined as a time slot. The scheduling strategy of the memory space allocation function scheduling table in the function library is: after the function scheduling task starts running, the calling period and the starting time slot of each memory space allocation function scheduling table recorded in the configuration table are cyclically judged to establish the processing function scheduling table;
[0093] If the period of the processing process is 0, directly put the function ID corresponding to the processing process into the processing function scheduling table;
[0094] If the cycle of the processing process is non-zero, the number of time slots after the system is started and the cycle of the processing process are divided by the remainder. If the result is equal to the starting time slot of the processing process, the function ID corresponding to the processing process is put into the processing function scheduling table, that is, in the Nth time slot, the periodic processing function whose starting time slot number is N% of the processing cycle (in time slot units) specified in the configuration table file needs to be scheduled.
[0095] After the processing function scheduling table is established, the service engine uses the parameter index in the configuration table file to go to the engine's signal data buffer to obtain the data value of the input signal and pass it to the processing process for logical solution. After the processing process is executed, it also refers to the index of the output signal in the configuration table file and writes the output signal data into the signal data buffer.
[0096] In a preferred embodiment of the present application, the input data value update strategy is: traverse all input signals according to the number of input signals, if the remainder of the current time slot value divided by the input signal period is equal to the starting time slot of the input signal, then the signal value is parsed from the corresponding bus data packet buffer 6 through the channel type, board number / bus number, data packet number, starting byte position, length, mask and other information of the input signal and saved to the signal data buffer 5 for use in the logic processing process. In this embodiment, the output data value update strategy is: traverse all output signals according to the number of output signals, if the remainder of the current time slot value divided by the output signal period is equal to the starting time slot of the output signal, then the output signal value in the signal data buffer 5 is saved to the corresponding bus data packet buffer 6 through the channel type, board number / bus number, data packet number, starting byte position, length, mask and other information of the output signal for use in the data sending and receiving task.
[0097] In a specific embodiment of the present application, according to Figure 3 The process establishes an initialization task, applies for each buffer according to the content of the configuration table, and suspends after the initialization task is completed. Among them: the function processing context buffer 4 has a size of 20 bytes and is indexed by char type. Index numbers 0 to 11 are used by the periodic processing function with ID = 2, and sequence numbers 12 to 19 are used by the periodic processing function with ID = 3; the signal data buffer 5 has a size of 9*4 bytes and is indexed by int type. Index number 0 is a reserved bit, index numbers 1 to 4 are input signals, index numbers 5 to 7 are output signals including intermediate signals, and index number 8 is a reserved bit; the bus data packet buffer 6 has a size of 468 bytes, and the 0th to 15th bytes are stored as input data packet data with index number 0, the 16th to 19th bytes are stored as input data packet data with index number 1, the 20th to 423rd bytes are stored as output data packet data with index number 0, and the 424th to 467th bytes are stored as output data packet data with index number 1; the public data packet receiving and sending buffer 7 has a size of 404 bytes, which is the same as the output data packet data size with index number 0; the function scheduling table buffer 8 has a size of 3*4 bytes and initially stores the IDs of 3 periodic processing functions.
[0098] according to Figure 4The process establishes a data receiving and sending task with a task cycle of 50ms. The successfully received input data packet content is stored in the public data packet receiving and sending buffer 7, and then the data in the public data packet receiving and sending buffer 7 is stored in the bus data packet buffer 6 according to the index number, where the input data packet 0 is stored in bytes 0 to 15, and the input data packet 1 is stored in bytes 16 to 19; when the index number of the cyclic transmission is 0 and the sending flag is valid, the output data packet data stored in bytes 20 to 423 in the bus data packet buffer 6 is read into the public data packet receiving and sending buffer 7 and sent; when the index number of the cyclic transmission is 1 and the sending flag is valid, the output data packet data stored in bytes 424 to 467 in the bus data packet buffer 6 is read into the public data packet receiving and sending buffer 7 and sent.
[0099] according to Figure 5 The process establishes a function scheduling task with a task cycle of 50ms. The cycle of processing function 1 is 1 time slot, the starting time slot is 0, and it is called in the time slot with sequence number M (M is a positive integer greater than or equal to 0); the cycle of processing function 2 is 2 time slots, the starting time slot is 1, and it is called in the time slot with sequence number 2*M+1; the cycle of processing function 3 is 4 time slots, the starting time slot is 2, and it is called in the time slot with sequence number 4*M+2; the scheduling order is shown in Figure 8 . Processing function 1 has two input parameters, whose index numbers are 1 and 2, corresponding to the 1st and 2nd signals in signal data buffer 5. Its processing result signal index is 5, corresponding to the 5th signal in signal data buffer 5, and there is no context buffer. Processing function 2 has two input parameters, whose index numbers are 3 and 4, corresponding to the 3rd and 4th signals in signal data buffer 5. Its processing result signal index is 7, corresponding to the 7th signal in signal data buffer 5, and context buffer index numbers are 0 to 11. Processing function 3 has two input parameters, whose index numbers are 5 and 4, corresponding to the 5th and 4th signals in signal data buffer 5. Its processing result signal index is 6, corresponding to the 6th signal in signal data buffer 5, and context buffer index numbers are 12 to 19.
[0100] Specifically, the input data value update strategy is as follows: the first signal in the signal data buffer 5 corresponds to the first input signal in the bus path table, whose channel type is 101, data packet number is 52, starting byte is 0, and mask is 0xFFFF. Its value is obtained from bytes 16 to 19 in the bus data packet buffer 6 through information such as channel type, starting byte, and mask; the second signal in the signal data buffer 5 corresponds to the second input signal in the bus path table, whose channel type is 211, data packet number is 0, starting byte is 12, and mask is 0xFFFF. Its value is obtained from bytes 0 to 15 in the bus data packet buffer 6 through information such as channel type, starting byte, and mask. byte; the third signal in the signal data buffer 5 corresponds to the third input signal in the bus path table, whose channel type is 101, data packet number is 52, starting byte is 2, and mask is 0xFFFF. Its value is obtained from bytes 16 to 19 in the bus data packet buffer 6 through information such as channel type, starting byte and mask; the fourth signal in the signal data buffer 5 corresponds to the fourth input signal in the bus path table, whose channel type is 211, data packet number is 0, starting byte is 8, and mask is 0xFFFF0000. Its value is obtained from bytes 0 to 15 in the bus data packet buffer 6 through information such as channel type, starting byte and mask.
[0101] The output data value update strategy is as follows: the fifth signal in the signal data buffer 5 is the intermediate signal, which is the output result of processing function 1; the sixth signal in the signal data buffer 5 corresponds to the fifth output signal in the bus path table, whose channel type is 101, data packet number is 9817, starting byte is 42, and mask is 0xFFFF. Its value is updated to the corresponding position in bytes 424 to 467 in the bus data packet buffer 6 through information such as channel type, starting byte and mask; the seventh signal in the signal data buffer 5 corresponds to the sixth output signal in the bus path table, whose channel type is 211, data packet number is 2, starting byte is 400, and mask is 0xFFFF. Its value is updated to the corresponding position in bytes 20 to 423 in the bus data packet buffer 6 through information such as channel type, starting byte and mask.
[0102] According to the configuration table-based service engine scheduling method of the present application, under the same configuration rules, configuration table files with different contents can be interpreted by the same service engine and do not need to be modified during transplantation.
[0103] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A service engine scheduling method based on a configuration table, characterized in that: include: Step 1: Obtain configuration table generation rules, wherein the configuration table generation rules include table header information, hard line path table, bus path table, input signal table, signal processing period table, signal processing table, signal output table and data packet description table; Step 2: Initialize the service engine resources based on the configuration table generation rules; Step 3: Send and receive data based on the configuration table generation rules, parse and store input data according to the configuration table generation rules, and assemble and output output data according to the configuration table generation rules; Step 4: Perform function scheduling based on the configuration table generation rules; In step 2, the initialization of service engine resources based on the configuration table generation rule includes: S201, initializing hardware resources; S202, read the configuration table generation rules and verify its content; S203, allocating configuration table memory space according to configuration table generation rules; S204, allocating memory space for the function scheduling table, the size of which is consistent with the number of functions that need to be scheduled; S205, creating data sending and receiving tasks and function scheduling tasks; S206, create a buffer semaphore; S207, start the periodic task operation; In S203, the configuration table memory space includes a function processing context buffer, a signal data buffer, a bus data packet buffer, and a common data packet receiving and sending buffer, wherein: The function processing context buffer is used to store the global variable values used in the function running process, and its index number corresponds to the periodic processing function ID; The signal data buffer is divided into three parts: input data, output data, and intermediate variables. The input data index number corresponds to the input signal table, the output data index number corresponds to the signal output table, the input data index number and the output data index number are obtained by querying the hard line path table and the bus path table information, and the intermediate variables correspond to the processing results of the periodic processing function; The bus data packet buffer is divided into two parts: receiving and sending, which are used to store the original unparsed data of all data packets to be received and the packaged contents of all data packets to be sent. The size and index number of the bus data packet buffer are consistent with the configuration table information; The public data packet receiving and sending buffer is used to store the content of a single received or sent data packet, and its length is the maximum value of all data packets; In step 4, the function scheduling based on the configuration table generation rule includes: S401, establishing a processing function scheduling table for the current cycle; S402, updating the input data value in the signal data buffer; S403, executing the allocated function dispatch table memory space in the processing function dispatch table; S404: Update the output data value in the signal data buffer.
2. The service engine scheduling method based on the configuration table according to claim 1 is characterized in that: In step three, the sending and receiving of data based on the configuration table generation rule, parsing and storing the input data according to the configuration table generation rule, and assembling and outputting the output data according to the configuration table generation rule include: S301, calling the polling operation entry function for the user-defined operation to be executed periodically; S302, updating the input signal value; S303: Update the output signal value.
3. The service engine scheduling method based on the configuration table according to claim 2 is characterized in that: In S302, updating the input signal value includes: Call the interface driver function to loop and receive input data packets; Storing the successfully received input data packet content in the common data packet receiving and sending buffer; The data in the common data packet receiving and sending buffer is stored in the bus data packet buffer according to the index sequence number.
4. The service engine scheduling method based on the configuration table according to claim 3 is characterized in that: In S303, updating the output signal value includes: Storing the packed data in the bus data packet buffer into the common data packet receiving and sending buffer according to the index sequence number; Determine whether the current data packet sending flag is valid. When the sending flag is valid, call the interface driver function to send the output data packet, and execute the loop until all data packets in the current cycle are sent.
5. The service engine scheduling method based on the configuration table according to claim 1 is characterized in that: In S401, the establishment of the processing function scheduling table of the current cycle includes: The minimum period of the memory space allocation function scheduling table of all cycles is defined as a time slot. The scheduling strategy of the memory space allocation function scheduling table in the function library is: after the function scheduling task starts running, the calling period and the starting time slot of each memory space allocation function scheduling table recorded in the configuration table are cyclically judged to establish the processing function scheduling table; If the period of the processing process is 0, directly put the function ID corresponding to the processing process into the processing function scheduling table; If the cycle of the processing process is non-zero, divide the number of time slots after the system is started by the cycle of the processing process and take the remainder. If the result is equal to the starting time slot of the processing process, the function ID corresponding to the processing process is put into the processing function scheduling table, that is, in the Nth time slot, the periodic processing function with the starting time slot number specified in the configuration table file as N% of the processing cycle needs to be scheduled.
Citation Information
Patent Citations
Dynamic rule engine configuration method based on service processing
CN102231162A
Configuration table file generation method
CN105045635A
Generation method and device for application servo system
CN105204383A
Multi-table iterative computation method and device, electronic equipment and storage medium
CN111144082A
Method of and system for allocating resources to resource requests based on application of persistence policies
US7584262B1
