CN114461193A - Method, device, equipment and storage medium for generating communication protocol code - Google Patents

Method, device, equipment and storage medium for generating communication protocol code Download PDF

Info

Publication number
CN114461193A
CN114461193A CN202210370856.2A CN202210370856A CN114461193A CN 114461193 A CN114461193 A CN 114461193A CN 202210370856 A CN202210370856 A CN 202210370856A CN 114461193 A CN114461193 A CN 114461193A
Authority
CN
China
Prior art keywords
chip
data
target
communication protocol
structural body
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210370856.2A
Other languages
Chinese (zh)
Other versions
CN114461193B (en
Inventor
王志永
桂豪今
汪骏
董红荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing China Tsp Technology Co ltd
Original Assignee
Beijing China Tsp Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing China Tsp Technology Co ltd filed Critical Beijing China Tsp Technology Co ltd
Priority to CN202210370856.2A priority Critical patent/CN114461193B/en
Publication of CN114461193A publication Critical patent/CN114461193A/en
Application granted granted Critical
Publication of CN114461193B publication Critical patent/CN114461193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Abstract

The application provides a method, a device, equipment and a storage medium for generating a communication protocol code, wherein the generation method comprises the following steps: reading a target Excel file; analyzing the target Excel file, and determining a plurality of key characters and the character position of each key character in the target Excel file; aiming at each key character, taking the data line content sandwiched between the key character and the adjacent key character as the structural body data of the key character, and analyzing the structural body data to obtain the structural body parameter information of the key character; and generating a communication protocol code file for realizing the communication between the chips according to the parameter information of each structural body. By the method, automatic generation of the communication protocol codes between the chips can be realized by combining the Excel file and the programming language, and the generation efficiency of the communication protocol codes is improved.

Description

Method, device, equipment and storage medium for generating communication protocol code
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a communication protocol code.
Background
With the wide application of chips in electronic devices, the communication process between different electronic devices can be essentially regarded as the communication process between different chips. In the inter-chip communication process, users often need to formulate a communication protocol meeting the communication requirements for both communication parties based on the communication requirements of the chips, so that data transmission can be performed between the chips according to the formulated communication protocol.
At present, communication protocol codes are mainly generated in a code writing tool by a software developer in a manual writing mode. The manual writing mode requires a software developer to process a large amount of source data, so that the generation efficiency of the communication protocol code is low.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus, a device, and a storage medium for generating a communication protocol code, so as to implement automatic generation of a communication protocol code between chips by combining an Excel file and a programming language, and improve generation efficiency of the communication protocol code.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
In a first aspect, an embodiment of the present application provides a method for generating a communication protocol code, where the method includes:
reading a target Excel file; the target Excel file comprises source data required for formulating an inter-chip communication protocol;
analyzing the target Excel file, and determining a plurality of key characters and the character position of each key character in the target Excel file; the key characters are used for representing characters related to chip types or chip names;
regarding each key character, taking the data line content sandwiched between the key character and the adjacent key character as the structural data of the key character, and analyzing the structural data to obtain the structural parameter information of the key character; wherein each piece of structural body parameter information at least comprises: the method comprises the following steps of (1) obtaining a structure, member names of a plurality of signal members included under the structure, member types of each signal member and member data;
and generating a communication protocol code file for realizing the communication between the chips according to the parameter information of each structural body.
In an optional implementation manner, the generating a communication protocol code file for implementing inter-chip communication according to each piece of structure parameter information includes:
acquiring the name of each structure body, the member names and the member types of a plurality of signal members included under the structure body from the parameter information of each structure body as target index information;
filling the name, the member name and the member type of each structural body included in the target index information into a non-fixed code part in a first group of communication protocol code files respectively to obtain a complete first group of communication protocol code files; the first group of communication protocol code files are used for helping both communication parties to search signal members in the process of inter-chip communication;
acquiring member data of each signal member from each structural body parameter information, and storing the member data of each signal member into the target index information according to the index position of each signal member in the target index information to obtain target parameter information;
filling the name, member type and member data of each structural body included in the target parameter information into a non-fixed code part in a second group of communication protocol code files respectively to obtain a complete second group of communication protocol code files; the second group of communication protocol code files are used for helping both communication parties to analyze and update signal members in the process of inter-chip communication.
In an optional implementation manner, when the target Excel file is parsed, the generating method further includes:
and when detecting that the key characters do not exist in the target Excel file, displaying key character error reporting prompt information to a user to prompt the user to correct the file content of the target Excel file according to the key character error reporting prompt information.
In an optional implementation manner, when performing parsing processing on the structure data, the generating method further includes:
when the member type of the signal member in the structural body data is detected to be out of a preset member type range, displaying member type error reporting prompt information to a user to prompt the user to correct the member type of the signal member in the structural body data in the target Excel file according to the member type error reporting prompt information; and the preset member type range is determined according to the formulation requirement of the communication protocol between the chips.
In an optional implementation manner, when performing parsing processing on the structure data, the generating method further includes:
when the member data of the signal member in the structural body data is detected to be located outside the normal value range of the signal member, displaying member data error reporting prompt information to a user to prompt the user to correct the member data of the signal member in the structural body data in the target Excel file according to the member data error reporting prompt information; and determining the normal value range of the signal member according to the member type of the signal member.
In an optional implementation manner, when performing parsing processing on the structure data, the generating method further includes:
when the field value of the protocol channel identifier in the structure data is detected to be located outside the formulated range of the protocol channel identifier, displaying protocol channel error-reporting prompt information to a user to prompt the user to correct the field value of the protocol channel identifier in the structure data in the target Excel file according to the protocol channel error-reporting prompt information; the protocol channel identification is used for representing a physical communication channel supported by a target chip; the target chip is the chip characterized by the key character.
In an optional embodiment, the name of the structure and the name of the member are both combined by a main command field and a sub command field; before the generating a communication protocol code file for implementing inter-chip communication, the generating method further includes:
when detecting that repeated structural body names appear in different structural body parameter information, displaying structural body name error reporting prompt information to a user to prompt the user to correct the repeated structural body names in the target Excel file according to the structural body name error reporting prompt information;
and when the repeated member names in the parameter information of the same structure body are detected, displaying member name error reporting prompt information to a user to prompt the user to correct the repeated member names in the target Excel file according to the member name error reporting prompt information.
In an optional implementation manner, the generation method is applied to a target executable file, and the generation method further includes:
and when the storage path of the target Excel file and/or the target executable file is detected to be inconsistent with the pre-specified project engineering path, displaying path error reporting prompt information to a user so as to prompt the user to correct the storage path of the target Excel file and/or the target executable file according to the path error reporting prompt information.
In an optional implementation manner, after the generating the communication protocol code file for implementing inter-chip communication, the generating method further includes:
when the first chip is detected to be included in both communication parties, the generated second group of communication protocol code files are sent to a maintenance terminal of the first chip; the first chip is used for representing a chip which can be searched by the chip per se aiming at the signal member in the inter-chip communication process;
when the fact that the two communication parties comprise a second chip is detected, the generated first group of communication protocol code files and the second group of communication protocol code files are sent to a maintenance terminal of the second chip; wherein the second chip is used to characterize the remaining types of chips other than the first chip.
In a second aspect, an embodiment of the present application provides a device for generating a communication protocol code, where the device includes:
the reading unit is used for reading a target Excel file; the target Excel file comprises source data required for formulating an inter-chip communication protocol;
the first processing unit is used for analyzing the target Excel file and determining a plurality of key characters included in the target Excel file and the character position of each key character; the key characters are used for representing characters related to chip types or chip names;
the second processing unit is used for regarding each key character, taking the data line content sandwiched between the key character and the adjacent key character as the structural body data of the key character, and analyzing and processing the structural body data to obtain the structural body parameter information of the key character; wherein each piece of structural body parameter information at least comprises: the method comprises the following steps of (1) obtaining a structure, member names of a plurality of signal members included under the structure, member types of each signal member and member data;
and the code generating unit is used for generating a communication protocol code file for realizing the communication between the chips according to the parameter information of each structural body.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method for generating a communication protocol code when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to execute the steps of the method for generating communication protocol codes.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
according to the method for generating the communication protocol code, the target Excel file is read; analyzing the target Excel file, and determining a plurality of key characters and the character position of each key character in the target Excel file; aiming at each key character, taking the data line content sandwiched between the key character and the adjacent key character as the structural body data of the key character, and analyzing the structural body data to obtain the structural body parameter information of the key character; and generating a communication protocol code file for realizing the communication between the chips according to the parameter information of each structural body. By the method, automatic generation of the communication protocol codes between the chips can be realized by combining the Excel file and the programming language, and the generation efficiency of the communication protocol codes is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart illustrating a method for generating a communication protocol code according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for generating a communication protocol code file according to an embodiment of the present application;
fig. 3 is a schematic structural diagram illustrating a communication protocol code generation apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer device 400 according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
At present, communication protocol codes are mainly generated in a code writing tool by a software developer in a manual writing mode. The manual writing mode requires a software developer to process a large amount of source data, so that the generation efficiency of the communication protocol code is low.
Based on this, the embodiment of the application provides a method, a device, equipment and a storage medium for generating a communication protocol code, wherein a target Excel file is read; analyzing the target Excel file, and determining a plurality of key characters and the character position of each key character in the target Excel file; aiming at each key character, taking the data line content sandwiched between the key character and the adjacent key character as the structural body data of the key character, and analyzing the structural body data to obtain the structural body parameter information of the key character; and generating a communication protocol code file for realizing the communication between the chips according to the parameter information of each structural body. By the method, automatic generation of the communication protocol codes between the chips can be realized by combining the Excel file and the programming language, and the generation efficiency of the communication protocol codes is improved.
The following describes a method, an apparatus, a device, and a storage medium for generating a communication protocol code according to an embodiment of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for generating a communication protocol code according to an embodiment of the present application, where the method includes steps S101-S104; specifically, the method comprises the following steps:
and S101, reading the target Excel file.
Here, the target Excel file includes source data required for formulating an inter-chip communication protocol, for example, parameter information such as a chip name, a signal member type, and a signal member name involved in a communication process.
Specifically, in the embodiment of the present application, chip types corresponding to both communication parties are not limited, and based on this, in an optional implementation, the source data may be classified and arranged in a target Excel file according to a specification format shown in table 1 below.
Table 1:
chip name + execute command Signal member type Signal member data 1 …… Signal member data n
Name of Signal Member
……
Name of Signal Member
Chip name + execute command
Name of Signal Member
……
Name of Signal Member
Chip name + execute command
…… …… …… …… ……
It should be noted that, in the actual application process, the source data content in the target Excel file may be different according to different formulation requirements of the inter-chip communication protocol, but in the target Excel file, the source data may still be arranged in a classified manner according to the above-mentioned specification format, so that when a data error occurs, a user can conveniently maintain and correct the source data content in the target Excel file in which the error occurs.
S102, analyzing the target Excel file, and determining a plurality of key characters and the character position of each key character in the target Excel file.
Here, the key character is used to represent a character related to a Chip type or a Chip name, and for example, the key character may be an MCU (micro controller Unit), an MPU (micro processor Unit), an SOC (System on Chip), or the like.
Specifically, taking a python (computer programming language) environment as an example of a development environment of the embodiment of the present application, a file type format of the target Excel file is an xlsx file under a Windows file system, at this time, an xlrd module in the python environment may read and analyze the imported target Excel file, so that in the process of analyzing, the key characters are queried and a character position of each queried key character in the target Excel file is locked (for example, the key character is located at line 6 in the target Excel file).
And S103, regarding each key character, taking the data line content sandwiched between the key character and the adjacent key character as the structural data of the key character, and analyzing the structural data to obtain the structural parameter information of the key character.
Here, each of the structural body parameter information includes at least: the name of the structure, the member names of a plurality of signal members included under the structure, the member type of each signal member, and the member data.
Here, taking table 1 shown in step S101 as an example, in the target Excel file shown in table 1, through the reading and analyzing processes in step S101 and step S102, the character position (e.g. line 1, line 5, line 9, etc. where "chip name" in table 1 is located) of each key character (e.g. chip name) in the target Excel file can be determined, at this time, in a form where each key character corresponds to one structure (e.g. structure name can be "chip name + execution command" in table 1), that is, each structure data can be obtained by performing structure division on the source data in the target Excel file through each determined key character.
For example, taking the key character in the 1 st row in table 1 as an example, the data line contents in the 2 nd row to the 4 th row sandwiched between the key character in the 1 st row and the key character in the 5 th row (i.e., adjacent key characters) are the structure data of the key character in the 1 st row, and the structure name in the structure data is the "chip name + execution command" in the 1 st row.
And S104, generating a communication protocol code file for realizing the communication between the chips according to the parameter information of each structural body.
Specifically, in the embodiment of the present application, still taking python as an example, step S104 may be completed by a write operation function built in python.
Here, the generation of the communication protocol code file may be divided into the following two parts: fixed code generation and non-fixed code generation. The fixed code generation mainly comprises the steps of writing codes of fixed logics (namely, the codes are irrelevant to the file content of a target Excel file) into a script (used for building a basic program framework of a communication protocol code file), wherein the fixed codes are mainly framework logic codes of a program (namely, when the file content of the target Excel file is updated, the fixed codes do not need to be changed); the generation of the non-fixed codes is mainly to perform code output on the structure parameter information analyzed in the previous step S103 (i.e., the analyzed structure parameter information is correspondingly written into the variable code part in the communication protocol code file to be generated), and the non-fixed codes represent the detailed logic content of each structure in the framework constructed by the fixed codes.
The following detailed description is made for the specific implementation process of the above steps in the embodiments of the present application, respectively:
as for the specific implementation process of the step S104, in the embodiment of the present application, based on the description about "fixed code generation and non-fixed code generation", it can be seen that the fixed code part is written into the script, and therefore, in the actual application process, the implementation of the step S104 only needs to generate the non-fixed code part according to the parameter information of each structural body analyzed currently, so that a complete communication protocol code file can be obtained.
Here, in an alternative implementation, as shown in fig. 2, fig. 2 is a flowchart illustrating a method for generating a communication protocol code file according to an embodiment of the present application, where, when step S104 is executed, the method includes steps S201 to S204; specifically, the method comprises the following steps:
s201, obtaining the name of each structure, and the member names and member types of a plurality of signal members included in the structure from the parameter information of each structure as target index information.
Specifically, with reference to the above steps S101 to S104, by analyzing the source data in the target Excel file, the effective information in the source data can be classified in a form of taking the structure as a unit, so as to obtain multiple sets of structure parameter information; each group of structural body parameter information corresponds to one structural body and a plurality of signal members included under the structural body.
Based on this, when the name of the structure and the member name of the signal member in the target Excel file belong to the irregular naming, in a first alternative embodiment, in step S201, the target index information may be obtained in a form that the name of the structure is used as a primary index and the member name of the signal member is used as a secondary index.
In addition to the above irregular naming, in order to improve the efficiency of error checking the name of the structure body and the member name of the signal member in the target Excel file, the name of the structure body and the member name may be combined by a main command field and a sub-command field, that is, the name of each structure body and the member name of each signal member may be regarded as a unique identifier formed by combining a CMD (main command field) and an SMD (SMD sub-command field).
Based on this, when the name of the structure body and the member name of the signal member in the target Excel file belong to the above regular names (i.e. the name is formed by combining one main command field and one sub-command field), in a second alternative embodiment, the target index information may also be constructed in a two-dimensional array form formed by the CMD main command field and the SMD sub-command field, and at this time, according to a specific value of one CMD main command field and a specific value of one SMD sub-command field, the name of the structure body or the member name of the signal member in the target index information may also be retrieved and located, so as to implement the retrieval function for the "structure body" or the "signal member" in the inter-chip communication process.
S202, filling the name, the member name and the member type of each structural body included in the target index information into a non-fixed code part in a first group of communication protocol code files respectively to obtain a complete first group of communication protocol code files.
Here, the first group of communication protocol code files are used for assisting the searching of the signal members by both communication parties in the inter-chip communication process.
Specifically, in the embodiment of the present application, the first group of communication protocol code files may include a first code file with a file suffix name of.c and a second code file with a file suffix name of.h; the first code file and the second code file realize the same code function (namely, both are used for helping both communication parties to search for signal members in the process of communication between chips), the first code file is used for representing a source program file used for internal storage (namely, a code file which is not disclosed to the outside), and the second code file is used for representing a code file used for external scheduling (namely, a code file which can be disclosed to the outside).
S203, acquiring member data of each signal member from each structural body parameter information, and storing the member data of each signal member into the target index information according to the index position of each signal member in the target index information to obtain target parameter information.
Specifically, as can be seen from the above steps S201 to S202, the target index information does not include the specific member data of each signal member, and therefore, the first group of communication protocol code files generated according to the target index information does not help both communication parties to determine the specific member data of the currently searched signal member.
Based on this, based on the index architecture constructed by the target index information, by implementing step S203, the member data of each signal member can be adaptively stored in the directory of the index position of the signal member in the target index information, so as to obtain the target parameter information.
And S204, respectively filling the name, the member type and the member data of each structural body included in the target parameter information into a non-fixed code part in a second group of communication protocol code files to obtain a complete second group of communication protocol code files.
Here, the second group of communication protocol code files are used to assist both communication parties in parsing and updating the signal members during inter-chip communication.
Specifically, in the embodiment of the present application, similarly to the first group of communication protocol code files, the second group of communication protocol code files may also include a third code file with a file suffix name of.c and a fourth code file with a file suffix name of.h; the third code file and the fourth code file implement the same code function (i.e., both are used to help both communication parties analyze and update signal members during inter-chip communication), the third code file is used to represent a source program file used for internal storage (i.e., a code file that is not exposed to the outside), and the fourth code file is used to represent a code file used for external scheduling (i.e., a code file that is exposed to the outside).
It should be noted that 2 chips use the same set of automatically generated communication protocol code files (i.e. the first set of communication protocol code files and the second set of communication protocol code files) during communication, and differentiate the respective parsing and sending protocol interface functions of 2 chips through macro definition, for the same signal member (i.e. the same member name) that is retrieved, when the chip a is used as the sending end, the sending and updating data interface function is used on the chip a side to send and update the member data of the signal member, and when the chip B is used as the receiving end, the corresponding parsing interface function is used to receive the member data of the signal member, and vice versa.
For the implementation process of the above steps S201 to S204, after step S104 is executed, two sets of communication protocol code files for implementing different functions may be obtained in the embodiment of the present application, and at this time, in consideration of the chip characteristics corresponding to the two communication parties, in an optional implementation manner, the two sets of communication protocol code files may be directly and respectively sent to the two communication parties;
in another optional implementation, the communication protocol code file may be selectively sent to different types of chips according to the following detection method, specifically:
(1) and when detecting that the two communication parties comprise the first chip, sending the generated second group of communication protocol code files to a maintenance terminal of the first chip.
Here, the first chip is used to characterize a chip that can retrieve the signal member by itself in the inter-chip communication process, for example, the first chip may be a system-on-chip of an SOC type.
(2) And when the fact that the two communication parties comprise a second chip is detected, the generated first group of communication protocol code files and the second group of communication protocol code files are sent to a maintenance terminal of the second chip.
Here, the second chip is used to characterize the remaining types of chips other than the first chip, for example, the second chip may be an MCU type chip-level chip.
It should be noted that, the embodiment of the present application is not limited to a specific chip type and a specific chip model of the first chip and the second chip.
For the specific implementation process of the foregoing steps S101 to S104, in the embodiment of the present application, error reporting conditions that may occur in the generation process of the communication protocol code file may be divided into the following three types, and the following detailed description is respectively given for each type of error reporting condition, specifically:
and the error reporting type is I, and the path error reporting type is caused by the inconsistency of the file path and the specified project engineering path.
Here, the generation method described in the above steps S101 to S104 is applied to a target executable file (i.e. a tool packaging result for generating the above communication protocol code file), and the first error report type can be further split into the following two cases, specifically:
1. when the target executable file is not stored in the designated project engineering path, at this time, when the user wrongly stores the target executable file in the non-project engineering path CDD _ SPI, the generated communication protocol code file cannot directly replace the original old communication protocol code file, which easily causes the problem that the latest communication protocol code file cannot be compiled, and therefore, when the problem is found when the communication protocol code file is generated, the path is prompted to be abnormal.
2. The target Excel file is not stored in the designated project engineering path, and at this time, the target executable file cannot normally read and analyze the target Excel file, so that when the target Excel file is detected not to be stored in the designated project engineering path, the path is also prompted to be abnormal.
Specifically, when an error reporting type occurs, as an optional embodiment, corresponding error reporting prompt information may be generated according to the following steps to prompt a user to correct a file path in which an abnormality occurs:
and when the storage path of the target Excel file and/or the target executable file is detected to be inconsistent with the pre-specified project engineering path, displaying path error reporting prompt information to a user so as to prompt the user to correct the storage path of the target Excel file and/or the target executable file according to the path error reporting prompt information.
And the type II of error report, namely the type of data error report caused by the content error of part of source data in the target Excel file.
Here, according to a specific data type of the source data included in the target Excel file, the error reporting type two may be further split into the following six cases, specifically:
1. and data error is caused due to the fact that the key characters in the target Excel file are abnormal.
Here, in order to distinguish effective information used by different chips in a target Excel file, a user generally needs to fill specific key characters (i.e., characters used for representing chip types or chip names) in regular cells, for example, MCU _ xxxx is written in a first row of cells of the target Excel file, which indicates that the target Excel file belongs to a data type that an MCU needs to send out, and the MCU in the cell is the key character.
Specifically, when step S102 is executed, as an optional embodiment, corresponding error notification information may be generated according to the following steps, so as to prompt a user to correct a target Excel file with an abnormality:
and when detecting that the key characters do not exist in the target Excel file, displaying key character error reporting prompt information to a user to prompt the user to correct the file content of the target Excel file according to the key character error reporting prompt information.
2. And (4) data error report caused by the fact that the member types of the signal members in the target Excel file cannot be correctly identified.
Specifically, when step S103 is executed, as an optional embodiment, corresponding error notification information may be generated according to the following steps, so as to prompt the user to correct a signal member in the target Excel file, where the member type is abnormal:
and when the member type of the signal member in the structural body data is detected to be out of the range of the preset member type, displaying member type error reporting prompt information to a user to prompt the user to correct the member type of the signal member in the structural body data in the target Excel file according to the member type error reporting prompt information.
Here, the preset member type range is determined according to the formulation requirement of the inter-chip communication protocol, that is, the member types in the preset member type range are the member types that can be correctly identified in the target Excel file.
Illustratively, as an alternative embodiment, the preset member type range may include: bit segment type (u 8, u16, u 32), string type, and dynamic string type; wherein, the meaning of the bit segment is: c allows the memory length occupied by its members to be specified in units of bits in one structure, such members in units of bits being called "bit segments"; at this time, u8 in the bit segment type is used to indicate that the memory length occupied by the signal member does not exceed the length
Figure F_220323091850601_601209001
U16 is used to indicate that the memory length occupied by the signal member does not exceed
Figure F_220323091850679_679237002
U32 is used to indicate that the memory length occupied by the signal member does not exceed
Figure F_220323091850773_773007003
(ii) a Taking the above preset member type range as an example, when step S103 is executed, the member type of the signal member a1 in the current structure a is detected to be uAnd 64, determining that the member type of the signal member a1 in the target Excel file has an error, and displaying member type error report prompt information of the member type of the signal member a1 in the structure body A to a user to prompt the user to correct the member type of the signal member a1 in the target Excel file according to the member type error report prompt information.
3. And data error is caused because the member data of the signal members in the target Excel file does not accord with the normal value range specified by the member types.
Here, it can be known from the analysis content of the member type part that different member types have different numerical constraints on the member data, so that when the member data of the same signal member does not conform to the normal value range specified by the member type, it can be determined that the member data of the signal member is abnormal, and a user needs to be prompted to correspondingly correct the file content of the target Excel file.
Specifically, when step S103 is executed, as an optional embodiment, corresponding error notification information may be generated according to the following steps, so as to prompt the user to correct a signal member in the target Excel file, where the member data is abnormal:
when the member data of the signal member in the structural body data is detected to be located outside the normal value range of the signal member, displaying member data error reporting prompt information to a user to prompt the user to correct the member data of the signal member in the structural body data in the target Excel file according to the member data error reporting prompt information; and determining the normal value range of the signal member according to the member type of the signal member.
For example, taking the example that the member type of the signal member a2 in the structure a is u8 in the bit field type, if the memory length occupied by the member data of the signal member a2 is detected to exceed 256 (i.e. the memory length occupied by the member data of the signal member a2 is detected to exceed 256)
Figure F_220323091850854_854080004
) Then, it can be determined that the member data of the signal member a2 is abnormal, and the structural body A is shown to the user to be signaledAnd the member data error prompt information of the member a2 with the member data error is used for prompting the user to correct the member data of the signal member a2 in the target Excel file according to the member data error prompt information.
4. When the target Excel file contains the information of the physical communication channel supported by the chip, the member data of the signal member is not matched with the physical communication channel supported by the chip, so that the data error is reported.
Here, in the embodiment of the present application, in order that the code generation tool (i.e. the target executable file) may match a plurality of physical communication manners, the user may further add the physical communication channel information to each structural body data in the target Excel file, for example, the structural body data of the chip a is added with: and meanwhile, the system supports 2 paths of SPI (Serial Peripheral Interface) protocols or 1 path of UART (Universal Asynchronous Receiver/Transmitter), 1 path of SPI and other physical communication channel information.
At this time, according to the added physical communication channel information, it is possible to distinguish which physical communication channel the structure data in the target Excel file belongs to, so when it is detected that the structure data is not within the established range of the physical communication channel to which the structure data belongs, an error is presented to the user.
Specifically, when step S103 is executed, as an optional embodiment, corresponding error notification information may be generated according to the following steps, so as to prompt a user to correct a signal member in the target Excel file whose member data does not match the physical communication channel supported by the chip:
when the field value of the protocol channel identifier in the structure data is detected to be located outside the formulated range of the protocol channel identifier, displaying protocol channel error-reporting prompt information to a user to prompt the user to correct the field value of the protocol channel identifier in the structure data in the target Excel file according to the protocol channel error-reporting prompt information; the protocol channel identification is used for representing a physical communication channel supported by a target chip; the target chip is the chip characterized by the key character.
For an exemplary explanation, taking a chip characterized by a key character MCU as an example, a protocol channel identifier in structure data of the key character MCU is as follows: simultaneously, 2 paths of SPI protocols are supported; when the fact that the field numerical value of the protocol channel identification in the structural body data of the key character MCU is located outside the formulation range of the 2-way SPI protocol is supported at the same time is detected, the protocol channel error reporting prompt information is displayed to a user to prompt the user to correct the field numerical value of the protocol channel identification in the structural body data of the key character MCU in a target Excel file according to the protocol channel error reporting prompt information.
5. And (4) reporting data error caused by abnormal member names of signal members or structural body names in the target Excel file.
Here, in the target Excel file, names of different structural bodies are different from each other, and signal names of different signal members under the same structural body are also different from each other, that is, according to a specific structural body name, a unique structural body can be determined from the target Excel file; according to a specific member name, a unique signal member can be determined from the same structural body data.
Specifically, after step S103 is executed, as an optional embodiment, corresponding error notification information may be generated according to the following steps to prompt a user to correct a name of a member or a name of a structure in the target Excel file, where an error occurs:
and (1) when detecting that the names of the repeated structures appear in the parameter information of the different structures, displaying structure name error reporting prompt information to a user to prompt the user to correct the names of the repeated structures in the target Excel file according to the structure name error reporting prompt information.
And (2) when the repeated member names in the same structural body parameter information are detected, displaying member name error reporting prompt information to a user to prompt the user to correct the repeated member names in the target Excel file according to the member name error reporting prompt information.
6. And (4) data error report caused by messy codes or blanks of the cell data in the target Excel file.
At this time, when the condition that the cell data in the target Excel file is scrambled or blank is detected, cell error prompt information can be displayed to a user to prompt the user to correct the abnormal cell data scrambled or blank in the target Excel file according to the cell error prompt information.
And a third type of error reporting, namely a type of compiling error reporting caused by an error in software compiling.
In the process of generating the communication protocol code file, if the fact that the target executable file has a software compiling error is detected, compiling error prompt information is displayed to a user to prompt the user to check the file content of the target Excel file again according to the compiling error prompt information.
Based on the method for generating the communication protocol code provided by the embodiment of the application, a target Excel file is read; analyzing the target Excel file, and determining a plurality of key characters and the character position of each key character in the target Excel file; aiming at each key character, taking the data line content sandwiched between the key character and the adjacent key character as the structural body data of the key character, and analyzing the structural body data to obtain the structural body parameter information of the key character; and generating a communication protocol code file for realizing the communication between the chips according to the parameter information of each structural body. By the method, automatic generation of the communication protocol codes between the chips can be realized by combining the Excel file and the programming language, and the generation efficiency of the communication protocol codes is improved.
Based on the same inventive concept, a generating device corresponding to the method for generating a communication protocol code in the foregoing embodiment is further provided in this embodiment, and since the principle of solving the problem of the generating device in this embodiment is similar to that of the generating method in the foregoing embodiment of this application, the implementation of the generating device may refer to the implementation of the foregoing generating method, and repeated details are omitted.
Referring to fig. 3, fig. 3 is a schematic structural diagram illustrating a communication protocol code generation apparatus according to an embodiment of the present application; the generation device comprises:
a reading unit 301, configured to read a target Excel file; the target Excel file comprises source data required for formulating an inter-chip communication protocol;
the first processing unit 302 is configured to analyze the target Excel file, and determine a plurality of key characters included in the target Excel file and a character position of each key character; the key characters are used for representing characters related to chip types or chip names;
a second processing unit 303, configured to, for each key character, use content of a data line sandwiched between the key character and an adjacent key character as structural data of the key character, and perform analysis processing on the structural data to obtain structural parameter information of the key character; wherein each piece of structural body parameter information at least comprises: the method comprises the following steps of (1) obtaining a structure, member names of a plurality of signal members included under the structure, member types of each signal member and member data;
and a code generating unit 304, configured to generate a communication protocol code file for implementing inter-chip communication according to each piece of structural body parameter information.
In an alternative embodiment, the code generating unit 304 is specifically configured to:
acquiring the name of each structure body, the member names and the member types of a plurality of signal members included under the structure body from the parameter information of each structure body as target index information;
filling the name, the member name and the member type of each structural body included in the target index information into a non-fixed code part in a first group of communication protocol code files respectively to obtain a complete first group of communication protocol code files; the first group of communication protocol code files are used for helping both communication parties to search signal members in the process of inter-chip communication;
acquiring member data of each signal member from each structural body parameter information, and storing the member data of each signal member into the target index information according to the index position of each signal member in the target index information to obtain target parameter information;
filling the name, member type and member data of each structural body included in the target parameter information into a non-fixed code part in a second group of communication protocol code files respectively to obtain a complete second group of communication protocol code files; the second group of communication protocol code files are used for helping both communication parties to analyze and update signal members in the process of inter-chip communication.
In an optional implementation manner, when performing parsing processing on the target Excel file, the first processing unit 302 is further configured to:
and when detecting that the key characters do not exist in the target Excel file, displaying key character error reporting prompt information to a user to prompt the user to correct the file content of the target Excel file according to the key character error reporting prompt information.
In an optional implementation manner, when performing the parsing process on the structure data, the second processing unit 303 is further configured to:
when the member type of the signal member in the structural body data is detected to be out of a preset member type range, displaying member type error reporting prompt information to a user to prompt the user to correct the member type of the signal member in the structural body data in the target Excel file according to the member type error reporting prompt information; and the preset member type range is determined according to the formulation requirement of the communication protocol between the chips.
In an optional implementation manner, when performing the parsing process on the structure data, the second processing unit 303 is further configured to:
when the member data of the signal member in the structural body data is detected to be located outside the normal value range of the signal member, displaying member data error reporting prompt information to a user to prompt the user to correct the member data of the signal member in the structural body data in the target Excel file according to the member data error reporting prompt information; and determining the normal value range of the signal member according to the member type of the signal member.
In an optional implementation manner, when performing the parsing process on the structure data, the second processing unit 303 is further configured to:
when the field value of the protocol channel identifier in the structure data is detected to be located outside the formulated range of the protocol channel identifier, displaying protocol channel error-reporting prompt information to a user to prompt the user to correct the field value of the protocol channel identifier in the structure data in the target Excel file according to the protocol channel error-reporting prompt information; the protocol channel identification is used for representing a physical communication channel supported by a target chip; the target chip is the chip characterized by the key character.
In an optional embodiment, the name of the structure and the name of the member are both combined by a main command field and a sub command field; before the generating of the communication protocol code file for implementing inter-chip communication, the code generating unit 304 is further configured to:
when detecting that repeated structural body names appear in different structural body parameter information, displaying structural body name error reporting prompt information to a user to prompt the user to correct the repeated structural body names in the target Excel file according to the structural body name error reporting prompt information;
and when the repeated member names in the parameter information of the same structure body are detected, displaying member name error reporting prompt information to a user to prompt the user to correct the repeated member names in the target Excel file according to the member name error reporting prompt information.
In an optional implementation manner, the generating device is applied to a target executable file, and the generating device further includes:
and the path detection unit is used for displaying path error notification information to a user when the storage path of the target Excel file and/or the target executable file is detected to be inconsistent with a pre-specified project engineering path, so as to prompt the user to correct the storage path of the target Excel file and/or the target executable file according to the path error notification information.
In an optional implementation manner, after the generating the communication protocol code file for implementing inter-chip communication, the code generating unit 304 is further configured to:
when the first chip is detected to be included in both communication parties, the generated second group of communication protocol code files are sent to a maintenance terminal of the first chip; the first chip is used for representing a chip which can be searched by the chip per se aiming at the signal member in the inter-chip communication process;
when the fact that the two communication parties comprise a second chip is detected, the generated first group of communication protocol code files and the second group of communication protocol code files are sent to a maintenance terminal of the second chip; wherein the second chip is used to characterize the remaining types of chips other than the first chip.
As shown in fig. 4, an embodiment of the present application provides a computer device 400, configured to execute the method for generating a communication protocol code in the present application, where the device includes a memory 401, a processor 402, and a computer program stored in the memory 401 and executable on the processor 402, where the processor 402 implements the steps of the method for generating a communication protocol code when executing the computer program.
Specifically, the memory 401 and the processor 402 may be general-purpose memory and processor, and are not limited to specific examples, and when the processor 402 runs the computer program stored in the memory 401, the communication protocol code generation method can be executed.
Corresponding to the method for generating the communication protocol code in the present application, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the method for generating the communication protocol code.
Specifically, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, or the like, and when the computer program on the storage medium is executed, the method for generating the communication protocol code can be executed.
In the embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and there may be other divisions in actual implementation, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of systems or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method for generating a communication protocol code, the method comprising:
reading a target Excel file; the target Excel file comprises source data required for formulating an inter-chip communication protocol;
analyzing the target Excel file, and determining a plurality of key characters and the character position of each key character in the target Excel file; the key characters are used for representing characters related to chip types or chip names;
regarding each key character, taking the data line content sandwiched between the key character and the adjacent key character as the structural data of the key character, and analyzing the structural data to obtain the structural parameter information of the key character; wherein each piece of structural body parameter information at least comprises: the method comprises the following steps of (1) obtaining a structure, member names of a plurality of signal members included under the structure, member types of each signal member and member data;
and generating a communication protocol code file for realizing the communication between the chips according to the parameter information of each structural body.
2. The generation method according to claim 1, wherein the generating a communication protocol code file for implementing inter-chip communication according to each piece of structure parameter information includes:
acquiring the name of each structure body, the member names and the member types of a plurality of signal members included under the structure body from the parameter information of each structure body as target index information;
filling the name, the member name and the member type of each structural body included in the target index information into a non-fixed code part in a first group of communication protocol code files respectively to obtain a complete first group of communication protocol code files; the first group of communication protocol code files are used for helping both communication parties to search signal members in the process of inter-chip communication;
acquiring member data of each signal member from each structural body parameter information, and storing the member data of each signal member into the target index information according to the index position of each signal member in the target index information to obtain target parameter information;
filling the name, member type and member data of each structural body included in the target parameter information into a non-fixed code part in a second group of communication protocol code files respectively to obtain a complete second group of communication protocol code files; the second group of communication protocol code files are used for helping both communication parties to analyze and update signal members in the process of inter-chip communication.
3. The generation method according to claim 1, wherein when the target Excel file is parsed, the generation method further comprises:
and when detecting that the key characters do not exist in the target Excel file, displaying key character error reporting prompt information to a user to prompt the user to correct the file content of the target Excel file according to the key character error reporting prompt information.
4. The generation method according to claim 1, wherein, when the analysis processing is performed on the structure data, the generation method further includes:
when the member type of the signal member in the structural body data is detected to be out of a preset member type range, displaying member type error reporting prompt information to a user to prompt the user to correct the member type of the signal member in the structural body data in the target Excel file according to the member type error reporting prompt information; and the preset member type range is determined according to the formulation requirement of the communication protocol between the chips.
5. The generation method according to claim 1, wherein, when the analysis processing is performed on the structure data, the generation method further includes:
when the member data of the signal member in the structural body data is detected to be located outside the normal value range of the signal member, displaying member data error reporting prompt information to a user to prompt the user to correct the member data of the signal member in the structural body data in the target Excel file according to the member data error reporting prompt information; and determining the normal value range of the signal member according to the member type of the signal member.
6. The generation method according to claim 1, wherein, when the analysis processing is performed on the structure data, the generation method further includes:
when the field value of the protocol channel identifier in the structure data is detected to be located outside the formulated range of the protocol channel identifier, displaying protocol channel error-reporting prompt information to a user to prompt the user to correct the field value of the protocol channel identifier in the structure data in the target Excel file according to the protocol channel error-reporting prompt information; the protocol channel identification is used for representing a physical communication channel supported by a target chip; the target chip is the chip characterized by the key character.
7. The generation method according to claim 1, wherein the name of the structure and the member name are each composed of a combination of one main command field and one sub command field; before the generating a communication protocol code file for implementing inter-chip communication, the generating method further includes:
when detecting that repeated structural body names appear in different structural body parameter information, displaying structural body name error reporting prompt information to a user to prompt the user to correct the repeated structural body names in the target Excel file according to the structural body name error reporting prompt information;
and when the repeated member names in the parameter information of the same structure body are detected, displaying member name error reporting prompt information to a user to prompt the user to correct the repeated member names in the target Excel file according to the member name error reporting prompt information.
8. The generation method according to claim 1, wherein the generation method is applied to a target executable file, and the generation method further comprises:
and when the storage path of the target Excel file and/or the target executable file is detected to be inconsistent with the pre-specified project engineering path, displaying path error reporting prompt information to a user so as to prompt the user to correct the storage path of the target Excel file and/or the target executable file according to the path error reporting prompt information.
9. The generation method according to claim 2, wherein after the generating a communication protocol code file for realizing inter-chip communication, the generation method further comprises:
when the first chip is detected to be included in both communication parties, the generated second group of communication protocol code files are sent to a maintenance terminal of the first chip; the first chip is used for representing a chip which can be searched by the chip per se aiming at the signal member in the inter-chip communication process;
when the fact that the two communication parties comprise a second chip is detected, the generated first group of communication protocol code files and the second group of communication protocol code files are sent to a maintenance terminal of the second chip; wherein the second chip is used to characterize the remaining types of chips other than the first chip.
10. An apparatus for generating a communication protocol code, the apparatus comprising:
the reading unit is used for reading a target Excel file; the target Excel file comprises source data required for formulating an inter-chip communication protocol;
the first processing unit is used for analyzing the target Excel file and determining a plurality of key characters included in the target Excel file and the character position of each key character; the key characters are used for representing characters related to chip types or chip names;
the second processing unit is used for regarding each key character, taking the data line content sandwiched between the key character and the adjacent key character as the structural body data of the key character, and analyzing and processing the structural body data to obtain the structural body parameter information of the key character; wherein each piece of structural body parameter information at least comprises: the method comprises the following steps of (1) obtaining a structure, member names of a plurality of signal members included under the structure, member types of each signal member and member data;
and the code generating unit is used for generating a communication protocol code file for realizing the communication between the chips according to the parameter information of each structural body.
11. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the generation method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the generation method as claimed in any one of the claims 1 to 9.
CN202210370856.2A 2022-04-11 2022-04-11 Method, device, equipment and storage medium for generating communication protocol code Active CN114461193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210370856.2A CN114461193B (en) 2022-04-11 2022-04-11 Method, device, equipment and storage medium for generating communication protocol code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210370856.2A CN114461193B (en) 2022-04-11 2022-04-11 Method, device, equipment and storage medium for generating communication protocol code

Publications (2)

Publication Number Publication Date
CN114461193A true CN114461193A (en) 2022-05-10
CN114461193B CN114461193B (en) 2022-07-12

Family

ID=81417965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210370856.2A Active CN114461193B (en) 2022-04-11 2022-04-11 Method, device, equipment and storage medium for generating communication protocol code

Country Status (1)

Country Link
CN (1) CN114461193B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117421009A (en) * 2023-12-19 2024-01-19 深圳市航盛电子股份有限公司 Signal code generation method, device, terminal equipment and storage medium
CN117421009B (en) * 2023-12-19 2024-04-19 深圳市航盛电子股份有限公司 Signal code generation method, device, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014167733A1 (en) * 2013-04-12 2014-10-16 三菱電機株式会社 Peripheral device of control system, and program for specifying location of fault in communication protocol
CN109408050A (en) * 2018-10-31 2019-03-01 中车大连电力牵引研发中心有限公司 The code generating method and device of appliance applications interface for rail vehicle
CN111488174A (en) * 2020-04-14 2020-08-04 苏州达家迎信息技术有限公司 Method and device for generating application program interface document, computer equipment and medium
CN113760361A (en) * 2021-08-17 2021-12-07 中科曙光国际信息产业有限公司 Code file generation method, computer device and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014167733A1 (en) * 2013-04-12 2014-10-16 三菱電機株式会社 Peripheral device of control system, and program for specifying location of fault in communication protocol
CN109408050A (en) * 2018-10-31 2019-03-01 中车大连电力牵引研发中心有限公司 The code generating method and device of appliance applications interface for rail vehicle
CN111488174A (en) * 2020-04-14 2020-08-04 苏州达家迎信息技术有限公司 Method and device for generating application program interface document, computer equipment and medium
CN113760361A (en) * 2021-08-17 2021-12-07 中科曙光国际信息产业有限公司 Code file generation method, computer device and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117421009A (en) * 2023-12-19 2024-01-19 深圳市航盛电子股份有限公司 Signal code generation method, device, terminal equipment and storage medium
CN117421009B (en) * 2023-12-19 2024-04-19 深圳市航盛电子股份有限公司 Signal code generation method, device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN114461193B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN111970267B (en) Data protocol conversion method and device, electronic equipment and storage medium
CN105335310A (en) Interface defining method, and data transmission method and apparatus
CN111459982A (en) Data query method and device, terminal device and storage medium
KR101390220B1 (en) Method for recommending appropriate developers for software bug fixing and apparatus thereof
CN103488460A (en) System and method for automatically marking source code
CN109165209B (en) Data verification method, device, equipment and medium for object types in database
CN113434542B (en) Data relationship identification method and device, electronic equipment and storage medium
CN114461193B (en) Method, device, equipment and storage medium for generating communication protocol code
CN106934045B (en) System and method for migration evaluation of database
CN112925874B (en) Similar code searching method and system based on case marks
CN115033592A (en) SQL statement processing method, device, equipment and storage medium based on database
CN114579580A (en) Data storage method and data query method and device
CN111177155B (en) Message filtering method, system and computer equipment
CN112433943A (en) Method, device, equipment and medium for detecting environment variable based on abstract syntax tree
CN112486465A (en) Code updating method and device
CN105446711A (en) Method and device used for acquiring contextual information on software development tasks
CN112230983B (en) Information processing method, electronic device, and medium
CN111221846B (en) Automatic translation method and device for SQL sentences
CN108304430B (en) Method for modifying database
US8144730B2 (en) Automated tactical datalink translator
CN115827677A (en) Database operation method and device and storage medium
CN115905550A (en) Method and device for expanding marked data and electronic equipment
CN115629958A (en) Universal field level automatic checking method and device for different service interfaces
CN117251142A (en) DBC file generation method, device, electronic equipment and storage medium
JIANG et al. LILAC: Log Parsing using LLMs with Adaptive Parsing Cache

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant