A signal definition data processing method, device, equipment and medium

By creating signal definition specification data and detecting, analyzing and processing the header file, the problems of high error rate and poor maintenance in manual processing of signal definition data are solved, and the maintenance of signal definition data is achieved automatically and accurately identifying and improving the maintenance.

CN117389516BActive Publication Date: 2025-02-18CHINA FAW CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311414996.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-27
Publication Date
2025-02-18
Estimated Expiration
2043-10-27

AI Technical Summary

Technical Problem

Manually processed signal definition data has problems such as high error rate and poor data maintenance.

Method used

By determining the demand-side signal definition data of the user demand document and the model-side signal definition correlation data of the peer-side integrated model, the signal definition specification data is created, and the signal definition detection and analysis processing is performed on the analysis header file to obtain the target signal definition processing data .

Benefits of technology

It avoids the error of manually processing signal definition data, and ensures the accuracy of processing data, improving the maintainability of signal definition data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117389516B_ABST
    Figure CN117389516B_ABST
Patent Text Reader

Abstract

The present invention discloses a signal definition data processing method, device, equipment and medium. The signal definition data processing method includes: determining the demand-side signal definition data of the user demand document, and obtaining the model-side signal definition associated data of the opposite-end integration model; creating signal definition specification data according to the demand-side signal definition data and the model-side signal definition associated data; based on the signal definition specification data, performing signal definition detection and analysis processing on the header file to be analyzed to obtain the target signal definition processing data. The technical solution of the embodiment of the present invention can automatically and accurately identify the signal definition data, and improve the maintainability of the signal definition data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a signal definition data processing method, device, equipment and medium. Background Art

[0002] Header files are usually used to provide declarations in source code files, which describe how upper-level applications interact with underlying libraries, modules, or components. Header files usually contain public interface definitions for libraries, modules, or components. These interfaces include function prototypes, data structures, and constants. Upper-level applications can include these header files to access these interfaces, and header files allow developers to hide the details of the underlying implementation. Upper-level applications only need to specify how to use the interface without caring about the specific implementation of the underlying code, which helps encapsulate and protect the underlying implementation. Upper-level applications can use these libraries or modules through appropriate header files, which improves the maintainability and reusability of the code. The signal definition data in the header file provides a bridge and interface between the upper-level application and the underlying code, helps isolate and organize the code, makes the development more modular and maintainable, and provides a clear interface to promote team collaboration and code reuse.

[0003] In many production projects (such as vehicle projects, etc.), signal definition data is usually managed manually. Developers need to manually create, modify, and maintain signal definition data, which may lead to input errors, omissions, inconsistencies, and difficult maintenance issues. Summary of the invention

[0004] The present invention provides a signal definition data processing method, device, equipment and medium to solve the problems of high error rate and poor data maintainability in manually processing signal definition data.

[0005] According to one aspect of the present invention, there is provided a signal definition data processing method, comprising:

[0006] Determine the demand-side signal definition data of the user demand document, and obtain the model-side signal definition associated data of the peer integration model;

[0007] Create signal definition specification data according to demand-side signal definition data and model-side signal definition associated data;

[0008] Based on the signal definition specification data, the signal definition detection and analysis processing is performed on the header file to be analyzed to obtain the target signal definition processing data.

[0009] According to another aspect of the present invention, there is provided a signal definition data processing device, comprising:

[0010] A data acquisition module, used to determine the demand-side signal definition data of the user demand document and obtain the model-side signal definition associated data of the peer integration model;

[0011] A signal definition specification data creation module, used to create signal definition specification data according to demand-side signal definition data and model-side signal definition associated data;

[0012] The target signal definition processing data determination module is used to perform signal definition detection and analysis processing on the header file to be analyzed based on the signal definition specification data to obtain the target signal definition processing data.

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

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the signal definition data processing method described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the signal definition data processing method described in any embodiment of the present invention when executed.

[0018] The technical solution of the embodiment of the present invention determines the demand-side signal definition data of the user demand document and obtains the model-side signal definition associated data of the opposite-end integration model, thereby creating signal definition specification data according to the demand-side signal definition data and the model-side signal definition associated data, and then based on the signal definition specification data, performs signal definition detection and analysis processing on the header file to be analyzed to obtain target signal definition processing data. In this solution, the signal definition specification data can describe the standardized signal definition, so based on the signal definition specification data, the signal definition detection and analysis processing is performed on the header file to be analyzed, and the target signal definition processing data that meets the signal definition specification can be obtained, which not only avoids manual processing of the signal definition data, but also ensures the accuracy of the processed data, solves the problems of high error rate and poor data maintainability in manual processing of signal definition data, can automatically and accurately identify the signal definition data, and improve the maintainability of the signal definition data.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A flowchart of a signal definition data processing method provided in Embodiment 1 of the present invention;

[0022] Figure 2 A flowchart of a signal definition data processing method provided in Embodiment 2 of the present invention;

[0023] Figure 3 A schematic diagram of the structure of a signal definition data processing device provided in Embodiment 3 of the present invention;

[0024] Figure 4 A schematic diagram of the structure of an electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] It should be noted that the term "target" and the like in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] Embodiment 1

[0028] Figure 1 This is a flowchart of a signal definition data processing method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of automatically and accurately identifying signal definition data. The method can be executed by a signal definition data processing device. The signal definition data processing device can be implemented in the form of hardware and / or software. The signal definition data processing device can be configured in an electronic device. Figure 1 As shown, the method includes:

[0029] Step 110: Determine the demand-side signal definition data of the user demand document, and obtain the model-side signal definition association data of the peer integration model.

[0030] Among them, the user requirement document can be a requirement document that characterizes the function of the equipment in the production project. The demand-side signal definition data can be the data describing the signal definition in the user requirement document. The signal definition can be used to describe the corresponding working signals under different working states of the equipment. The peer integration model can be a communication model on the device side that feeds back the function of the equipment. The model-side signal definition-related data can be data related to the signal definition sent by the peer integration model. Optionally, the model-side signal definition-related data can include but is not limited to the signal definition and data definition in the model.

[0031] For example, when the production project is a vehicle project, the user requirement document may include but is not limited to the requirement document for the instrument display function. The user requirement document may be a plain text file or the content extracted using a text extraction tool. The demand-side signal definition data may include but is not limited to RFQ-F-607-05-06 (power-on ECS fault light self-detection, the instrument controls the ECS fault light to turn on for 3 seconds and then turn off, during which the instrument does not respond to ECS related signals) and RFQ-F-607-05-02 (the symbol flashes at a frequency of 2Hz), etc.

[0032] In an embodiment of the present invention, the user requirement document can be parsed to obtain the demand-side signal definition data, and the peer integration model matching the user requirement document can be determined, thereby obtaining the model-side signal definition associated data of the peer integration model.

[0033] Step 120: Create signal definition specification data according to the demand-side signal definition data and the model-side signal definition associated data.

[0034] Among them, the signal definition specification data can be standardized data describing the signal definition, which is used to clearly define the signal and signal attribute structure. The signal definition specification data may include but is not limited to the name of the signal, data type, and default value. Clearly defining a signal can be understood as determining the name of the signal, using a clear and meaningful identifier to name the signal, and the name of the signal should reflect its purpose or meaning. Each signal has a corresponding data type to ensure the correct interpretation and processing of the data. The data type can be an integer, enumeration, floating point number, etc. Provide a default value for the signal, which is used when the signal is not initialized or does not receive valid data.

[0035] In an embodiment of the present invention, the demand-side signal definition data and the model-side signal definition associated data can be compared and matched, and signal definition specification data can be generated based on the matched data between the two. The signal definition specification data is crucial for automatic signal identification and detection.

[0036] Optionally, the signal definition specification data may also include annotations on the meaning, purpose or usage of the signal. In order to better organize the signal definitions in the signal definition specification data, they may be grouped or classified. For example, the signals may be grouped according to modules, functions or types.

[0037] For example, taking a signal describing the status of a vehicle light as an example, the signal definition specification data is illustrated as follows:

[0038] Signal name: Vehicle headlight status (Ω)

[0039] Data Type: Enumeration

[0040] typedef enum{

[0041] SIGNAL_HEADLIGHT_OFF, / / headlight off

[0042] SIGNAL_HEADLIGHT_ON, / / Headlight on

[0043] SIGNAL_HIGH_BEAM_ON, / / High beam on

[0044] SIGNAL_HIGH_BEAM_OFF, / / High beam off

[0045] }CarHeadlightSignal.

[0046] Step 130: Based on the signal definition specification data, perform signal definition detection and analysis processing on the header file to be analyzed to obtain target signal definition processing data.

[0047] The header file to be analyzed may be a header file of the code to be analyzed that contains signal definition related data. Signal definition detection and analysis processing may be used to identify and preset signal definition data in the header file to be analyzed. Signal definition detection and analysis processing may be a data processing method for signal definition data set by the user according to user needs, and the analysis and processing results may be output, returned, or further processed. The target signal definition processing data may be the data obtained by performing signal definition detection and analysis processing on the header file to be analyzed.

[0048] In the embodiment of the present invention, the signal definition specification data can be used as the data analysis standard to perform signal definition detection and analysis processing on the header file to be analyzed to obtain target signal definition processing data for operation and maintenance personnel to perform data analysis and maintenance.

[0049] It should be noted that the recognition and processing of signal definition data is different from text processing and natural language processing. It specifically refers to the process of analyzing and identifying different types of signals. The goal of recognition is to extract useful information, identify specific signal types or perform pattern recognition, and classify, predict or diagnose according to the characteristics of the signal, etc., and pay more attention to the analysis and processing of non-text data.

[0050] The technical solution of the embodiment of the present invention determines the demand-side signal definition data of the user demand document and obtains the model-side signal definition associated data of the opposite-end integration model, thereby creating signal definition specification data according to the demand-side signal definition data and the model-side signal definition associated data, and then based on the signal definition specification data, performs signal definition detection and analysis processing on the header file to be analyzed to obtain target signal definition processing data. In this solution, the signal definition specification data can describe the standardized signal definition, so based on the signal definition specification data, the signal definition detection and analysis processing is performed on the header file to be analyzed, and the target signal definition processing data that meets the signal definition specification can be obtained, which not only avoids manual processing of the signal definition data, but also ensures the accuracy of the processed data, solves the problems of high error rate and poor data maintainability in manual processing of signal definition data, can automatically and accurately identify the signal definition data, and improve the maintainability of the signal definition data.

[0051] Embodiment 2

[0052] Figure 2 This is a flowchart of a signal definition data processing method provided in the second embodiment of the present invention. This embodiment is specific based on the above embodiment and provides a specific optional implementation method for determining the demand-side signal definition data of the user demand document. Figure 2 As shown, the method includes:

[0053] Step 210: Based on the signal definition name rule, data matching is performed on the user requirement document to obtain at least one target text segment.

[0054] The signal definition name rule may be a rule or pattern for identifying a signal name. Optionally, different production projects may correspond to different signal definition name rules, and the signal definition name rule may include but is not limited to prefixes and suffixes. The target text segment may be a text segment in a user requirement document that complies with the signal definition name rule. The target text segment may include but is not limited to a description, name, or other identifier of the signal.

[0055] In the embodiment of the present invention, natural language processing technology can be used to screen text segments that match the signal definition name rule in the user requirement document to obtain at least one target text segment.

[0056] Among them, natural language processing technology may include but is not limited to regular expressions, text segmentation, and part-of-speech tagging.

[0057] Step 220: When it is detected that a signal definition exists in each target text segment, the demand-side signal definition data is determined according to the target text segment, and the model-side signal definition associated data of the peer integration model is obtained.

[0058] In an embodiment of the present invention, signal definition detection (such as comparison rules, context search or keyword matching, etc.) can be performed on each target text segment. If it is determined that there is a signal definition in each target text segment, data parsing is performed on the target text segment to determine the demand-side signal definition data, and the model-side signal definition associated data of the peer integration model is obtained to ensure the integrity of the required data.

[0059] Step 230: Create signal definition specification data according to the demand-side signal definition data and the model-side signal definition associated data.

[0060] In an optional embodiment of the present invention, creating signal definition specification data based on demand-side signal definition data and model-side signal definition associated data may include: matching the demand-side signal definition data with the model-side signal definition data in the model-side signal definition associated data to obtain adapted signal definition data; storing the adapted signal definition data in a preset data structure according to the signal definition data association relationship to obtain signal definition specification data.

[0061] Among them, the model-side signal definition data may be data describing the signal definition in the model-side signal definition associated data. The adaptation signal definition data may be data in the demand-side signal definition data that matches the model-side signal definition data. The signal definition data association relationship may be used to associate and store the demand-side signal definition data and the model-side signal definition associated data. The preset data structure may be a pre-set data structure for storing data. The preset data structure may include, but is not limited to, a dictionary or a database table. The preset data structure may help establish an association relationship between the demand-side signal definition, the signal definition in the model, and the data definition.

[0062] In an embodiment of the present invention, the demand-side signal definition data can be matched with the model-side signal definition data in the model-side signal definition associated data. If there is data in the demand-side signal definition data that matches the model-side signal definition data, the matched data will be used as the adapted signal definition data, and the signal definition data association relationship will be further obtained. According to the signal definition data association relationship, the adapted signal definition data will be stored in a preset data structure to obtain the signal definition specification data.

[0063] Exemplarily, the signal definition data association relationship is specifically used to associate the signal name with the model signal name and the related data definition for each signal definition in the adaptation signal definition data, and store them in a preset data structure.

[0064] Step 240: Based on the signal definition specification data, perform signal definition detection and analysis processing on the header file to be analyzed to obtain target signal definition processing data.

[0065] In an optional embodiment of the present invention, based on the signal definition specification data, the header file to be analyzed is subjected to signal definition detection and analysis processing to obtain target signal definition processing data, which may include: setting a signal definition recognition rule; based on the signal definition recognition rule, matching the signal definition specification data with the header file to be analyzed to obtain signal definition extraction data; based on the signal definition extraction data, performing missing information analysis and supplementation processing on the header file to be analyzed to obtain target signal definition processing data.

[0066] Among them, the signal definition identification rules can be pre-set rules for identifying signal definition data in the header file. The signal definition identification rules can include but are not limited to lines containing keywords (such as typedef enum), variables or constants with specific prefixes (such as "SIGNAL_"), and comments used to identify signal names and attributes. The signal definition extraction data can be data related to the signal definition parsed from the header file to be analyzed. The missing information analysis and supplementation processing can be used to analyze and supplement the missing information in the signal definition data in the header file to be analyzed.

[0067] In an embodiment of the present invention, a signal definition identification rule can be set according to the needs of data screening, so that based on the signal definition identification rule, the signal definition specification data and the header file to be analyzed are matched according to the signal definition to obtain signal definition extraction data, and then the data is extracted according to the signal definition, and the data that is missing and needs to be supplemented in the header file to be analyzed is analyzed, that is, the analysis and supplement processing of the missing information of the header file to be analyzed is completed, and the target signal definition processing data is obtained.

[0068] Optionally, after obtaining the signal definition extraction data, the signal definition extraction data may be stored in a data structure, which may be a dictionary, a list, or any data structure suitable for storing signal definitions.

[0069] In an optional embodiment of the present invention, data is extracted according to signal definition, and a header file to be analyzed is subjected to missing information analysis and supplementation processing to obtain target signal definition processing data, which may include: performing missing information analysis on the signal definition extraction data according to signal definition specification data to obtain missing signal definition data; and performing definition missing data supplementation processing on the header file to be analyzed according to the missing signal definition data and the signal definition specification data to obtain target signal definition processing data.

[0070] The missing signal definition data may be used to characterize the missing signal definition data in the header file to be analyzed.

[0071] In an embodiment of the present invention, the signal definition specification data can be compared with the signal definition extraction data to determine the signal definition data that exists in the signal definition specification data but is missing in the signal definition extraction data, that is, the signal definition extraction data is analyzed for missing information to obtain the missing signal definition data, and then the header file to be analyzed is processed to supplement the missing data according to the signal definition specification data and the missing signal definition data to obtain the target signal definition processing data. By automatically analyzing and managing signal definition data, identifying errors, inconsistencies and omissions, and automatically supplementing when necessary, the reliability, maintainability and development efficiency of the code are improved, especially in large projects or teamwork, by introducing automatic signal definition detection and supplementation, the following beneficial effects are brought about: the quality of the code is improved, and the development efficiency and maintainability of the code are significantly improved, the complexity of maintenance is reduced, it helps to reduce maintenance costs, improve code quality, and thus enhance the overall efficiency and development process of the project.

[0072] In an optional embodiment of the present invention, based on the missing signal definition data and the signal definition specification data, the header file to be analyzed is supplemented with the missing data to obtain the target signal definition processing data, which may include: for the missing signal definition data, based on the signal definition specification data, generating signal definition supplement data; using the signal definition supplement data, the header file to be analyzed is supplemented with the missing data to obtain the target signal definition processing data.

[0073] The signal definition supplementary data may be data supplemented to the header file to be analyzed based on the missing signal definition data and the signal definition specification data.

[0074] In an embodiment of the present invention, signal definition supplementary data can be determined from signal definition specification data for missing signal definition data, so that the signal definition supplementary data is used to perform definition missing data supplement processing on the header file to be analyzed to obtain target signal definition processing data.

[0075] In an optional embodiment of the present invention, after obtaining the target signal definition processing data, the method may further include: generating a header file parsing report according to the missing signal definition data, the signal definition supplementary data and the signal definition extraction data.

[0076] The header file parsing report may be a report describing the signal definition in the header file to be analyzed.

[0077] In an embodiment of the present invention, the missing signal definition data, signal definition supplementary data and signal definition extraction data can be organized and integrated according to a script or tool to obtain a header file parsing report to help developers understand the status of the signal definition and can manually review and further process it.

[0078] This solution can automatically detect signal definition data in the code without manual intervention, and can automatically supplement missing signal definition data to ensure the integrity and consistency of the code, help detect errors in signal definition data, such as spelling errors, data type errors, etc., and can also promote the standardization of signal definition data to ensure that the same signal definition specifications are used throughout the project, reducing the cost of manually maintaining signal definition data, especially in large projects.

[0079] The technical solution of the embodiment of the present invention is to perform data matching on the user demand document based on the signal definition name rule to obtain at least one target text segment, so that when the signal definition is detected in each target text segment, the demand-side signal definition data is determined according to the target text segment, and the model-side signal definition associated data of the opposite-end integration model is obtained, and the signal definition specification data is created according to the demand-side signal definition data and the model-side signal definition associated data, and further based on the signal definition specification data, the signal definition detection and analysis processing is performed on the header file to be analyzed to obtain the target signal definition processing data. In this solution, the signal definition specification data can describe the standardized signal definition, so based on the signal definition specification data, the signal definition detection and analysis processing is performed on the header file to be analyzed, and the target signal definition processing data that meets the signal definition specification can be obtained, which not only avoids the manual processing of the signal definition data, but also ensures the accuracy of the processed data, solves the problems of high error rate and poor data maintainability in the manual processing of the signal definition data, and can automatically and accurately identify the signal definition data and improve the maintainability of the signal definition data.

[0080] Embodiment 3

[0081] Figure 3 This is a schematic diagram of the structure of a signal definition data processing device provided by Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:

[0082] The data acquisition module 310 is used to determine the demand-side signal definition data of the user demand document and obtain the model-side signal definition associated data of the peer integration model;

[0083] A signal definition specification data creation module 320 is used to create signal definition specification data according to the demand-side signal definition data and the model-side signal definition associated data;

[0084] The target signal definition processing data determining module 330 is used to perform signal definition detection and analysis processing on the header file to be analyzed based on the signal definition specification data to obtain the target signal definition processing data.

[0085] The technical solution of the embodiment of the present invention determines the demand-side signal definition data of the user demand document and obtains the model-side signal definition associated data of the opposite-end integration model, thereby creating signal definition specification data according to the demand-side signal definition data and the model-side signal definition associated data, and then based on the signal definition specification data, performs signal definition detection and analysis processing on the header file to be analyzed to obtain target signal definition processing data. In this solution, the signal definition specification data can describe the standardized signal definition, so based on the signal definition specification data, the signal definition detection and analysis processing is performed on the header file to be analyzed, and the target signal definition processing data that meets the signal definition specification can be obtained, which not only avoids manual processing of the signal definition data, but also ensures the accuracy of the processed data, solves the problems of high error rate and poor data maintainability in manual processing of signal definition data, can automatically and accurately identify the signal definition data, and improve the maintainability of the signal definition data.

[0086] Optionally, the data acquisition module 310 is specifically used to perform data matching on the user demand document based on the signal definition name rule to obtain at least one target text segment; when a signal definition is detected in each of the target text segments, the demand-side signal definition data is determined according to the target text segment.

[0087] Optionally, the signal definition specification data creation module 320 is specifically used to match the demand-side signal definition data with the model-side signal definition data in the model-side signal definition association data to obtain the adaptation signal definition data; according to the signal definition data association relationship, the adaptation signal definition data is stored in a preset data structure to obtain the signal definition specification data.

[0088] Optionally, the target signal definition processing data determination module 330 is specifically used to set signal definition recognition rules; based on the signal definition recognition rules, the signal definition specification data is matched with the header file to be analyzed to obtain signal definition extraction data; according to the signal definition extraction data, the header file to be analyzed is analyzed and supplemented for missing information to obtain the target signal definition processing data.

[0089] Optionally, the target signal definition processing data determination module 330 is specifically used to perform missing information analysis on the signal definition extraction data according to the signal definition specification data to obtain missing signal definition data; and to perform definition missing data supplement processing on the header file to be analyzed according to the missing signal definition data and the signal definition specification data to obtain the target signal definition processing data.

[0090] Optionally, the target signal definition processing data determination module 330 is specifically used to generate signal definition supplementary data according to the signal definition specification data for the missing signal definition data; and use the signal definition supplementary data to perform definition missing data supplement processing on the header file to be analyzed to obtain the target signal definition processing data.

[0091] Optionally, the signal definition data processing device further includes a header file parsing report generating module, which is used to generate a header file parsing report according to the missing signal definition data, the signal definition supplementary data and the signal definition extraction data.

[0092] The signal definition data processing device provided in the embodiment of the present invention can execute the signal definition data processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0093] Embodiment 4

[0094] Figure 4 A schematic diagram of an electronic device that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0095] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0096] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0097] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a signal definition data processing method.

[0098] In some embodiments, the signal definition data processing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the signal definition data processing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the signal definition data processing method in any other suitable manner (e.g., by means of firmware).

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

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

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

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

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

[0104] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0105] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0106] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A signal definition data processing method, characterized in that: include: Determine the demand-side signal definition data of the user requirement document, and obtain the model-side signal definition associated data of the peer-end integration model; wherein the peer-end integration model is a communication model of the device side that feedbacks the device function, and the model-side signal definition associated data at least includes: signal definition and data definition in the model; the demand-side signal definition data is the data describing the signal definition in the user requirement document, and the signal definition is used to describe the corresponding working signals under different working states of the device; Creating signal definition specification data according to the demand-side signal definition data and the model-side signal definition associated data; wherein the signal definition specification data is standardized data describing signal definition and is used to determine the definition signal and signal attribute structure; Based on the signal definition specification data, the signal definition detection and analysis processing is performed on the header file to be analyzed to obtain target signal definition processing data; Creating signal definition specification data according to the demand-side signal definition data and the model-side signal definition associated data includes: Matching the demand-side signal definition data with the model-side signal definition data in the model-side signal definition associated data to obtain adaptation signal definition data; According to the signal definition data association relationship, the adaptation signal definition data is stored in a preset data structure to obtain the signal definition specification data; Among them, the adaptation signal definition data is the data in the demand side signal definition data that matches the model side signal definition data, the signal definition data association relationship is used to associate and store the demand side signal definition data and the model side signal definition association data, and the preset data structure is used to establish the association relationship between the demand side signal definition, the signal definition in the model and the data definition.

2. The method according to claim 1, characterized in that Determine the demand-side signal definition data of the user requirement document, including: Based on the signal definition name rule, data matching is performed on the user requirement document to obtain at least one target text segment; When it is detected that a signal definition exists in each of the target text segments, the demand-side signal definition data is determined according to the target text segment.

3. The method according to claim 1, characterized in that: Based on the signal definition specification data, the signal definition detection and analysis processing is performed on the header file to be analyzed to obtain target signal definition processing data, including: Set signal definition recognition rules; Based on the signal definition identification rule, the signal definition specification data is matched with the header file to be analyzed to obtain signal definition extraction data; Data is extracted according to the signal definition, and missing information analysis and supplement processing is performed on the header file to be analyzed to obtain the target signal definition processing data.

4. The method according to claim 3, characterized in that Extracting data according to the signal definition, performing missing information analysis and supplementation processing on the header file to be analyzed, and obtaining the target signal definition processing data, including: Performing missing information analysis on the signal definition extraction data according to the signal definition specification data to obtain missing signal definition data; According to the missing signal definition data and the signal definition specification data, the header file to be analyzed is processed to supplement the missing data and obtain the target signal definition processing data.

5. The method according to claim 4, characterized in that According to the missing signal definition data and the signal definition specification data, the header file to be analyzed is supplemented with the missing data to obtain the target signal definition processing data, including: For the missing signal definition data, generating signal definition supplementary data according to the signal definition specification data; The signal definition supplement data is used to perform definition missing data supplement processing on the header file to be analyzed to obtain the target signal definition processing data.

6. The method according to claim 5, characterized in that After obtaining the target signal definition processing data, the method further includes: A header file parsing report is generated according to the missing signal definition data, the signal definition supplementary data and the signal definition extraction data.

7. A signal definition data processing device, characterized in that: include: A data acquisition module is used to determine the demand-side signal definition data of the user demand document, and to acquire the model-side signal definition associated data of the peer-end integration model; wherein the peer-end integration model is a communication model of the device side that feedbacks the device function, and the model-side signal definition associated data at least includes: signal definition and data definition in the model; the demand-side signal definition data is data describing the signal definition in the user demand document, and the signal definition is used to describe the corresponding working signals under different working states of the device; A signal definition specification data creation module, used to create signal definition specification data according to the demand-side signal definition data and the model-side signal definition associated data; wherein the signal definition specification data is standardized data describing the signal definition, and is used to determine the definition signal and signal attribute structure; A target signal definition processing data determination module is used to perform signal definition detection and analysis processing on the header file to be analyzed based on the signal definition specification data to obtain target signal definition processing data; The signal definition specification data creation module is specifically used to match the demand-side signal definition data with the model-side signal definition data in the model-side signal definition associated data to obtain the adapted signal definition data; according to the signal definition data association relationship, the adapted signal definition data is stored in a preset data structure to obtain the signal definition specification data; wherein the adapted signal definition data is the data in the demand-side signal definition data that matches the model-side signal definition data, the signal definition data association relationship is used to associate and store the demand-side signal definition data and the model-side signal definition associated data, and the preset data structure is used to establish an association relationship between the demand-side signal definition, the signal definition in the model, and the data definition.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the signal definition data processing method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the signal definition data processing method according to any one of claims 1 to 6 when executed.

Citation Information

Patent Citations

  • Checking tool and method based on Python automatic driving vehicle interface signal

    CN114647580A

  • C code detection method and device based on security coding standard and storage medium

    CN115617352A