Functional data processing method and device and computer equipment

By converting functional data into data frame files and updating the function template, the problem of insufficient flexibility in the S-Function Builder communication model when functional data changes is solved, and efficient encapsulated file generation and functional data interaction are achieved.

CN119179475APending Publication Date: 2024-12-24CHANGSHA KELIANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411203366.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

The existing S-Function Builder communication model requires professional programmers to modify the code encapsulation file when functional data changes, resulting in insufficient flexibility, time-consuming and error-prone modification.

Method used

By converting functional data into data frame files, the changes in the function template and data frame files are determined, and the function template is updated based on the frame structure and frame tasks, and the package file is generated to achieve flexible and efficient interaction between functional data and communication devices.

Benefits of technology

The corresponding encapsulation file can be generated without additional modification of the code, which reduces the workload, improves the flexibility and efficiency of function implementation, and simplifies the encapsulation operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119179475A_ABST
    Figure CN119179475A_ABST
Patent Text Reader

Abstract

The invention relates to a function data processing method and device and computer equipment. Comprising the steps of converting functional data into a data frame file, and determining a functional template and a change condition represented by the functional data, so that the functional template can be updated through a frame structure and a frame task based on the change condition, and a packaging file is obtained. Therefore, the corresponding packaging file can be flexibly and efficiently generated even if the function data specified by the communication equipment is changed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer processing technology, and in particular to a functional data processing method, device and computer equipment. Background Art

[0002] Simulink is a computer visualization simulation tool in MATLAB software. S-Function (system function) can greatly expand the functionality of the Simulink environment. S-Function uses a special calling syntax called S-Function API to enable users to interact with the Simulink engine. This interaction is very similar to the interaction between the engine and the built-in Simulink module. Simulink provides a graphical tool S-Function Builder, which allows users to implement custom functions in code package files and ultimately achieve communication between models and devices. During the communication process, the functional data will be arranged in a specific format specified by the device and then transmitted.

[0003] Existing practices such as Figure 1 As shown, build the S-Function Builder communication model and generate the initial code package file; define the data structure according to the specific format specified by the functional data, set the function name and implement the algorithm function according to the device requirements, reconstruct the code package file and replace the original S-Function Builder code package file to achieve communication between the model and the device. Although this method is efficient, it is not flexible enough. Once the functional data needs to be modified, such as the data changes from sending to receiving, or the data sending / receiving channel changes, professional programmers are required to modify the code package file; when there are too many functional data parameters, the modification will be time-consuming and labor-intensive and prone to errors; manual changes are not flexible enough and the code package file cannot be automatically generated. Summary of the invention

[0004] Based on this, the purpose of this application is to provide a functional data processing method, device and computer equipment that can efficiently and flexibly generate encapsulated files to solve the technical problems mentioned in the above background technology.

[0005] In a first aspect, the present application provides a method for processing functional data, including:

[0006] Converting the functional data into a data frame file; the data frame file includes a frame structure and a frame task;

[0007] Determining changes in the function template and the function data representation;

[0008] Based on the change, the function template is updated through the frame structure and the frame task to obtain an encapsulation file.

[0009] In one embodiment, the functional data is in a table format associated with a communication device; the data frame file is in a data format associated with a target code; the conversion of the functional data into a data frame file includes: dividing the functional data into an initial frame structure and an initial frame task; processing the functional data to obtain signal data and task data; associating the initial frame structure and the signal data, the initial frame task and the task data to obtain a frame structure and a frame task; the frame task characterizes the channel conditions for receiving or sending data; and converting the integrated frame structure and frame task into a data frame file through an objective function.

[0010] In one embodiment, the function data is processed to obtain signal data and task data, including: converting the function data into a tuple through a function associated with the target code; processing the tuple to obtain signal data and task data; the signal data includes at least an offset, a length and a resolution; the task data includes at least a board number, a channel number and a frame type.

[0011] In one embodiment, after obtaining the data frame file, it also includes: defining the structure of the frame structure and the structure of the frame task, and storing the signal data and the task data based on the structure; the signal data and the task data are target frame data.

[0012] In one embodiment, determining changes represented by a function template and the function data includes: determining a target function that a communication device needs to implement, and obtaining a function template corresponding to the target function; the function template includes a plurality of strings; matching the function data with the function template to determine corresponding changes; the changes include the function that needs to be modified as reflected by the function data, and the target position of the string in the function template that needs to be modified in accordance with the function.

[0013] In one embodiment, a function template includes multiple strings; based on the change situation, the function template is updated through the frame structure and the frame task to obtain an encapsulation file, including: determining multiple original positions and target positions in the multiple strings according to the change situation; representing the string at the original position with a constant string, and replacing the string at the target position with a target character; processing the target character according to the frame structure and the frame task to obtain an encapsulation file.

[0014] In one embodiment, the target characters are processed according to the frame structure and the frame task to obtain an encapsulation file, including: determining the target frame data according to the frame structure and the frame task; based on the target characters at the target position, the target frame data and the constant string are processed by preset multiple header file classes and splicing functions to obtain an encapsulation file.

[0015] In one embodiment, the method further includes: building a functional algorithm model in a simulation system, and after obtaining the encapsulation file, converting the target functional template into an encapsulation file to achieve interaction between the functional algorithm model and the communication device.

[0016] In a second aspect, the present application also provides a functional data processing device, including:

[0017] A format conversion module, used for converting the functional data into a data frame file; the data frame file includes a frame structure and a frame task;

[0018] A change determination module, used to determine changes in the function template and the function data representation;

[0019] The encapsulation file determination module is used to update the function template based on the change through the frame structure and the frame task to obtain the encapsulation file.

[0020] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above functional data processing method when executing the computer program.

[0021] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above functional data processing method are implemented.

[0022] The above-mentioned function data processing method, device, computer equipment and readable storage medium convert the function data into a data frame file, and determine the changes in the function template and the function data representation, so that the function template can be updated based on the changes through the frame structure and frame task to obtain the encapsulation file. Therefore, even when the function data specified by the communication device changes, the corresponding encapsulation file can still be generated flexibly and efficiently, without the need for additional modification or configuration code, which greatly reduces the workload. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic diagram of the principle of generating a package file in the prior art in one embodiment;

[0024] Figure 2An application environment diagram of a functional data processing method in an embodiment;

[0025] Figure 3 is a flow chart of a method for processing functional data in one embodiment;

[0026] Figure 4 is a schematic diagram of a frame structure in an embodiment;

[0027] Figure 5 A schematic diagram of a process of converting into a data frame file in one embodiment;

[0028] Figure 6 A schematic diagram of a process for generating a packaging file in an embodiment;

[0029] Figure 7 is a flow chart of a method for processing functional data in another embodiment;

[0030] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0032] The functional data processing method provided in the embodiment of the present application can be applied to Figure 2 In the application environment shown. Among them, the terminal 202 communicates with the server 204 through the network. The data storage system can store the data that the server 204 needs to process. The data storage system can be integrated on the server 204, or it can be placed on the cloud or other network servers. The terminal 202 is used to send the acquired functional data to the server 204. The server 204 is used to convert the functional data into a data frame file and determine the changes in the functional template and the functional data representation. The server 204 is also used to update the functional template through the frame structure and frame task based on the changes to obtain the encapsulated file. Among them, the terminal 202 can be the end of the blockchain, which can be but not limited to various personal computers, laptops, smart phones, tablets, drone equipment, smart car-mounted equipment and portable wearable devices. The server 204 can be implemented with an independent server or a server cluster composed of multiple servers, which can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and basic cloud computing services such as big data and artificial intelligence platforms.

[0033] In one embodiment, Figure 3 As shown, a functional data processing method is provided, and the method is applied to a computer device as an example for explanation. The computer device includes Figure 2 The terminal and server in the embodiment include the following steps:

[0034] Step 302, converting the functional data into a data frame file; the data frame file includes a frame structure and a frame task.

[0035] Among them, the functional data is in a table format associated with the communication device; and the data frame file is in a data format associated with the target code.

[0036] Specifically, the computer device converts the functional data in the table format into a data frame file in the corresponding data format through the script of the target code, so that the data frame file in the data format can be parsed later. The functional data can be the code provided by the user when a specific function is required. When the target code is, for example, Python code, the associated data format is JSON format. The content corresponding to the table format usually includes two parts, one of which is presented in the form of a frame structure, such as Figure 4 As shown, Figure 4 This is a schematic diagram of the frame structure, which includes multiple signal data, including name, offset, length, symbol, and resolution, etc. The other part is presented in the form of frame tasks, which can represent the channel conditions for receiving or sending data.

[0037] In one embodiment, the computer device compares the converted data frame files to prevent data omission.

[0038] Step 304: Determine changes in the function template and the function data representation.

[0039] Among them, a function template generally refers to a code structure or framework used to implement a specific function in programming, which allows developers to quickly implement functions by replacing or extending certain parts of the template.

[0040] In one embodiment, determining changes in function templates and function data representations includes: determining a target function that the communication device needs to implement, and obtaining a function template corresponding to the target function; matching the function data with the function template to determine corresponding changes.

[0041] The function template includes a plurality of character strings; the change includes the function to be modified as reflected in the function data, and the target position of the character string in the function template that needs to be modified corresponding to the function.

[0042] Specifically, the computer device can respond to the user's selection trigger operation, determine the target function that the communication device needs to implement, and then obtain the function template corresponding to the target function from the database, or generate the function template in real time. At this time, the function template is implemented, for example, using a string of a C++ program. The computer device first identifies the changes in the function data and determines the function that needs to be modified as reflected in the function data, such as identifying the change in the channel number of the received frame, the change in the signal length, etc. Therefore, the computer device continues to match the function data with the function template, so that the function data is integrated into the function template, that is, the changed function is realized by replacing or extending certain strings in the template. Then the computer device determines the target position of the string that needs to be modified in the function template according to the function that needs to be modified as reflected in the function data.

[0043] Step 306: Based on the changes, the function template is updated through the frame structure and the frame task to obtain a package file.

[0044] Specifically, the computer device determines the signal data and task data corresponding to the frame structure and frame task respectively according to the predefined structure. At this time, it is necessary to obtain the task data corresponding to the task name. The signal data and task data are collectively referred to as the target frame data, that is, the target frame data corresponding to the functional data is determined based on the frame structure and frame task. For example, if the functional data reflects the change of channel number, the change of reception to transmission, or the change of the sorting of frame signals, the generated json format data frame file will change accordingly, that is, the target frame data obtained according to the frame structure and frame task will change accordingly. The computer device represents the target position in the function code with an insertion point, and then uses the splicing function to accurately insert the variable function string generated by the target frame data into the insertion point of the function template, thereby generating an encapsulation file.

[0045] In one embodiment, the variable function string involves the acquisition of target frame data according to the frame structure and frame task, so it is necessary to pay attention to the conversion of data format and check the variable function string generated by the conversion to reduce format errors.

[0046] In the above function data processing method, the function data is converted into a data frame file, and the changes in the function template and the function data representation are determined, so that the function template can be updated based on the changes through the frame structure and frame task to obtain the encapsulation file. Therefore, even when the function data specified by the communication device changes, the corresponding encapsulation file can still be generated flexibly and efficiently without additional modification or configuration code, which greatly reduces the workload.

[0047] In addition, since the functional data can be integrated into the functional template by directly executing the application, and then the encapsulation file can be generated, the encapsulation operation process is simplified and the efficiency of the encapsulation operation is improved. Whether the functional data reflects the modification of the length and offset of the signal or the increase in the number of signals, the corresponding encapsulation file can be directly generated based on the fusion process, thereby improving the flexibility and configurability of the function implementation.

[0048] In one embodiment, converting functional data into a data frame file includes: dividing the functional data into an initial frame structure and an initial frame task; processing the functional data to obtain signal data and task data; associating the initial frame structure and signal data, the initial frame task and task data to obtain a frame structure and a frame task; and converting the integrated frame structure and frame task into a data frame file through an objective function.

[0049] Specifically, Figure 5 As shown, Figure 5 The figure is a flowchart for converting into a data frame file. The computer device divides the functional data into an initial frame structure and an initial frame task. It can be understood that the initial frame structure is an empty structure at this time and has not yet been associated with relevant data. The computer device processes the functional data according to the corresponding empty structure to obtain signal data and task data, such as storing multiple signal data corresponding to the initial frame structure through a list, using a dictionary to represent the structure of the frame, and using key-value pairs to associate the initial frame structure and signal data; using a dictionary to represent the task of the frame, and using key-value pairs to associate the initial frame task and task data to obtain a frame structure and frame task that have completed the association. The computer device uses the target function in the target code function library to convert the integrated frame structure and frame task into a data frame file in the target format. The target function is, for example, the dump function of the json library of python.

[0050] In one embodiment, after obtaining the data frame file, the method further includes: defining a structure of a frame structure and a frame task, and storing signal data and task data based on the structure.

[0051] The structure is associated with a frame structure variable and a frame task variable. The computer device uses the C++ programming language to define the frame structure and the frame task structure corresponding to the JSON format, parses the data frame file in the JSON format, and stores the signal data through the frame structure variable and the frame task variable stores the frame task data.

[0052] In the above embodiment, the functional data is divided and converted into frame structures and frame tasks, and then the signal data and task data are processed and associated and integrated, and finally converted into a data frame file through the objective function. This process logically realizes the high structuring and modularization of data, improves the efficiency and accuracy of data processing, and enhances the compatibility and accessibility of data. In addition, the parsed data is directly stored in the corresponding structure variables, which reduces the steps of data conversion and improves the efficiency of data processing.

[0053] In one embodiment, processing the function data to obtain the signal data and the task data includes: converting the function data into a tuple through a function associated with the target code; and processing the tuple to obtain the signal data and the task data.

[0054] The signal data at least includes offset, length and resolution; the task data at least includes board number, channel number, frame id and frame type.

[0055] Specifically, the computer device uses the functions in the target code function library to iterate the functional data into tuples. The iterated tuple represents the process of using the iterator to access the elements in the tuple one by one. The process of processing the tuple can obtain the signal data and the task data. Tuple is a basic data structure in Python, similar to a list, but it must clearly distinguish between the use of lists and dictionaries. Tuples are immutable, which means that their contents cannot be changed once they are created. Reference Figure 5 As shown, for example, the itertuples function of the pandas library of Python is used to iterate the functional data in a tabular format into tuples.

[0056] In this embodiment, converting functional data into tuples helps to decouple the format of the data from its processing logic, making the data structure clearer. The use of tuples can provide a clear interface between different stages of data processing, which helps to achieve code modularity and facilitate functional expansion and maintenance.

[0057] In one embodiment, based on the change situation, the function template is updated through the frame structure and the frame task to obtain an encapsulation file, including: determining multiple original positions and target positions in multiple strings according to the change situation; representing the string at the original position with a constant string, and replacing the string at the target position with a target character; processing the target character according to the frame structure and the frame task to obtain an encapsulation file.

[0058] The function template includes a plurality of character strings; the original position represents the position of the character string in the function template that does not need to be modified for the corresponding function after the function data is matched with the function template.

[0059] Specifically, after the computer device determines multiple original positions and target positions in multiple strings according to the change situation, since the implementation of the function template uses a C++ string variable to reflect the string of the string variable, the multiple constant strings included in the function template are assigned to the string variable. For example, the function template reflects that the part of the function code that will not change is assigned to the string variable; and the target position of the target frame data in the function template is represented by the target character %s. The computer device uses the splicing function and based on the target character, inserts the variable function string generated by the target frame data into the string variable until the encapsulated file is obtained.

[0060] Among them, the concatenation function, such as the snprintf function of the C language, can be used to concatenate strings, and can use the %s format specifier to insert strings. The target character %s is used to insert one string into another string. It represents a string parameter in the format string of the snprintf function, and multiple strings can be inserted.

[0061] In this embodiment, the accuracy and targeting of the processing are ensured by clearly distinguishing the original position and the target position. The processing steps of the target data are simplified through character replacement to facilitate subsequent automated processing. The target characters are structured according to the frame structure and frame task, thereby improving the efficiency and logic of data encapsulation.

[0062] In one embodiment, the target characters are processed according to the frame structure and the frame task to obtain an encapsulation file, including: determining the target frame data according to the frame structure and the frame task; based on the target characters at the target position, the target frame data and the constant character string are processed through a preset plurality of header file classes and concatenation functions to obtain an encapsulation file.

[0063] Among them, the header file class includes the C++ standard library <sstream>The header file provides a class ostringstream and <fstream>The header file provides a class ofstream. ostringstream is used to perform string stream operations, allowing users to write data to a string like an output stream and then get the content of the string. ofstream is an output stream class used to write files, used to create and write files.

[0064] Specifically, Figure 6 As shown, Figure 6 The following is a flowchart for generating an encapsulation file. The variable function string of the target frame data is obtained by parsing the frame structure variable and the frame task variable. The target frame data representing the function change is converted into a variable function string and assigned through the ostringstream class in the header file class. The concatenation function inserts the variable function string of the function change part into the string variable corresponding to the original position, and uses the ofstream class in another header file class to write the string variable and generate an encapsulation file.

[0065] In this embodiment, through the preset multiple header file classes and splicing functions, the target frame data can be automatically processed, thereby improving the efficiency and accuracy of data processing. The generated encapsulation file usually means encapsulating the data and logic into a whole, which helps to improve the modularity of the system, making it easier to manage and distribute, while improving the efficiency of subsequent device communications.

[0066] In one embodiment, the method further includes: building a functional algorithm model in a simulation system, and after obtaining the encapsulation file, converting the target functional template into the encapsulation file to achieve interaction between the functional algorithm model and the communication device.

[0067] Among them, the simulation system is such as the matlab software system, and the functional algorithm model is such as the S-Function Builder model. Figure 7 As shown, Figure 7 It is another functional data processing method.

[0068] Specifically, the computer device first builds the S-Function Builder model to determine whether it is the first time to realize the generation of the encapsulation file or whether the functional data in the table format has changed. If not, the computer device realizes the interaction between the functional algorithm model and the communication device through the encapsulation file realized for the first time. If so, the computer device converts the functional data into a data frame file and parses the frame structure and frame task in the data frame file. The function template is determined according to the target function that the communication device needs to realize, and the target position of the target frame data is replaced with the target character %s, and a variable function string is generated by the target frame data obtained based on the frame structure and frame task. Based on the target character at the target position, the computer device inserts the variable function string code into the function template, and then generates an encapsulation file, so that the interaction between the functional algorithm model and the communication device is realized through the encapsulation file, and the functional algorithm model of the simulation system is simulated and optimized in real time.

[0069] It is easy to understand that the present application can be applied to the field of power simulation based on the simulation system, and can be applied to the field of communication control based on the interaction of communication devices.

[0070] In the above embodiment, the customized configuration development of the module function can be completed by the application engineer without the participation of professional programmers. The function data in the table format can be directly changed at the project site to generate the code encapsulation file, without caring about the program implementation details, and efficient interaction between the function algorithm model and the communication device can be achieved. Especially in projects with confidentiality requirements, the configuration can be changed on site without providing the function configuration information at the development stage.

[0071] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0072] Based on the same inventive concept, the embodiment of the present application also provides a functional data processing device for implementing the functional data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more functional data processing device embodiments provided below can refer to the limitations on the functional data processing method above, and will not be repeated here.

[0073] In one embodiment, a functional data processing device is provided, comprising: a format conversion module, a change determination module and an encapsulation file determination module, wherein:

[0074] The format conversion module is used to convert the functional data into a data frame file; the data frame file includes a frame structure and a frame task.

[0075] The change determination module is used to determine the change of the function template and the function data representation.

[0076] The encapsulation file determination module is used to update the function template through the frame structure and the frame task based on the change situation to obtain the encapsulation file.

[0077] Each module in the above functional data processing can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0078] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store encapsulated files. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a functional data processing method is implemented.

[0079] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0080] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0081] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0082] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.

[0083] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto.

[0084] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0085] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.< / fstream> < / sstream>

Claims

1. A method for processing functional data, characterized in that: The method comprises: Converting the functional data into a data frame file; the data frame file includes a frame structure and a frame task; Determining changes in the function template and the function data representation; Based on the change, the function template is updated through the frame structure and the frame task to obtain an encapsulation file.

2. The method according to claim 1, characterized in that The functional data is in a table format associated with the communication device; the data frame file is in a data format associated with the target code; The step of converting the functional data into a data frame file comprises: Dividing the functional data into an initial frame structure and an initial frame task; Processing the functional data to obtain signal data and task data; Associating the initial frame structure with the signal data, the initial frame task and the task data to obtain a frame structure and a frame task; the frame task represents a channel condition for receiving or sending data; The integrated frame structure and frame task are converted into a data frame file through the objective function.

3. The method according to claim 2, characterized in that The processing of the functional data to obtain signal data and task data includes: Converting the functional data into a tuple by a function associated with the target code; Processing the tuple to obtain signal data and task data; the signal data at least includes an offset, a length and a resolution; the task data at least includes a board number, a channel number and a frame type; After obtaining the data frame file, the method further includes: The frame structure and the frame task structure are defined, and the signal data and the frame task data are stored based on the structure; the signal data and the task data are target frame data.

4. The method according to claim 1, characterized in that The determining of the change of the function template and the function data representation includes: Determine a target function that the communication device needs to implement, and obtain a function template corresponding to the target function; the function template includes multiple character strings; The function data is matched with the function template to determine corresponding changes; the changes include the function that needs to be modified as reflected by the function data, and the target position of the character string in the function template that needs to be modified accordingly.

5. The method according to claim 1, characterized in that The function template includes a plurality of character strings; based on the change, the function template is updated through the frame structure and the frame task to obtain an encapsulation file, including: Determine multiple original positions and target positions in multiple character strings according to the change conditions; The character string at the original position is represented by a constant character string, and the character string at the target position is replaced by a target character; The target characters are processed according to the frame structure and the frame task to obtain an encapsulated file.

6. The method according to claim 5, characterized in that The step of processing the target character according to the frame structure and the frame task to obtain an encapsulated file includes: Determine target frame data according to the frame structure and the frame task; Based on the target character at the target position, the target frame data and the constant character string are processed through a plurality of preset header file classes and concatenation functions to obtain an encapsulated file.

7. The method according to any one of claims 1 to 6, characterized in that: The method further includes: building a functional algorithm model in a simulation system, and after obtaining the encapsulation file, converting the target functional template into an encapsulation file to achieve interaction between the functional algorithm model and the communication device.

8. A functional data processing device, characterized in that: The device comprises: A format conversion module, used for converting the functional data into a data frame file; the data frame file includes a frame structure and a frame task; A change determination module, used to determine changes in the function template and the function data representation; The encapsulation file determination module is used to update the function template based on the change through the frame structure and the frame task to obtain the encapsulation file.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.