Signal processing method and system, electronic equipment and storage medium

By obtaining messages in the automotive electronic control unit, identifying and processing and data extraction, determining the target signal and port based on the preset mapping relationship, decoupling the area controller and application software components, the problem of low system flexibility is solved, and the implementation of the Improved efficient signal processing and system flexibility.

CN119011704APending Publication Date: 2024-11-22CHINA FAW CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411238164.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In modern automotive electronic control units, with the complexity of the system and the increase in functional requirements, the signal quantity managed by the regional controller continues to increase, resulting in the increase in the signal quantity processed by the application software components, the system flexibility is low, and the regional controller and application software components. The coupling is tight, making it difficult to flexibly respond to changes in demand.

Method used

By obtaining messages, identifying and processing and data extraction, determining the target signal name and port according to the preset mapping relationship sequence, signal data is encapsulated and sent, realizing the analysis and data extraction of received messages, reducing redundant signals, and unified management Signal transmission, decoupling of controllers and application software components to improve system flexibility.

Benefits of technology

It realizes accurate matching and processing of received signal data, reduces the difficulty and cost of secondary development of the system, improves the flexibility and configurability of the system, and enhances the transmission efficiency and response speed of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011704A_ABST
    Figure CN119011704A_ABST
Patent Text Reader

Abstract

The invention discloses a signal processing method and system, electronic equipment and a storage medium, and the method comprises the steps: obtaining a first message, carrying out the recognition processing of the first message, and obtaining first information corresponding to the first message; meanwhile, performing data extraction operation on the first message to obtain first signal data; performing matching operation according to the obtained first information and a preset mapping relation, and determining a target signal name corresponding to the first signal data and a corresponding communication port; mapping the first signal data to the obtained target signal name to obtain mapped second signal data; sending the obtained second signal data to a corresponding application software component for processing through the determined communication port; the parameters for subsequent processing of the signal data can be determined according to the key information of the message and the preset mapping relation, and the signal data is managed and planned according to the determined parameters, so that the transmission efficiency of the system is improved. The embodiment of the invention can be widely applied to the technical field of data processing.
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 processing method, system, electronic equipment and storage medium. Background Art

[0002] The automotive electronic control unit is one of the most important components in modern automobiles. It is responsible for managing various systems and functions of the vehicle, such as engine control, braking system, safety system, etc. The regional controller in the electronic control unit receives the signals generated in a specific area for analysis and processing, and sends the results of the analysis and processing to the corresponding application software components set in the electronic control unit for processing to achieve different functions; with the complexity of automotive electronic systems and the increase in functional requirements, the number of signals managed by the regional controller continues to increase, and the number of signals that the corresponding application software components need to process continues to increase, increasing the complexity of the application software components; at the same time, the coupling of the application software components with the regional controller, changes in the regional controller will lead to large-scale modifications of the application software components, and the flexibility of the system is low. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to provide a signal processing method, system, electronic device and storage medium, which can improve system flexibility.

[0004] To achieve the above object, an embodiment of the present application provides a signal processing method, the method comprising:

[0005] Acquire a first message, perform identification processing on the first message to obtain first information; perform a data extraction operation on the first message to obtain first signal data; wherein the first information includes a message type and message structure information of the first message;

[0006] Mapping the first information with a preset mapping relationship sequence to determine a target signal name and a target port; encapsulating the first signal data according to the target signal name to obtain second signal data; wherein the preset mapping relationship includes a port name, a signal name, and a message type;

[0007] The second signal data is sent to the application software component corresponding to the target port.

[0008] In some embodiments, the matching of the first information with a preset mapping relationship to determine the target signal name and the target port specifically includes:

[0009] Determine a preset number of times according to the size of the first information, match the first information with the initial corresponding relationships in the preset mapping relationship sequence one by one, and record the number of successful matches;

[0010] Compare the number of successful matches with the preset number; if the number of successful matches is less than the preset number, match the first information data with the next corresponding relationship in the preset mapping relationship sequence one by one until the number of successful matches is equal to the preset number, and determine the signal name and port name that are successfully matched in the preset mapping relationship sequence as the target signal name and target port.

[0011] In some embodiments, the method further comprises:

[0012] Determine a message preset parameter set according to the first message; perform a parsing operation on the first message to obtain a message parameter set of the first message; wherein the message parameter set includes a message data type, a message data length, and a message data frame format;

[0013] Match the message parameter set with the message preset parameter set; if there is a message parameter in the message parameter set that fails to match the message preset parameter set, generate first fault information according to the first message; otherwise, perform a data extraction operation on the first message.

[0014] In some embodiments, the method further comprises:

[0015] Determine a signal preset parameter set according to the first signal data; perform an analysis operation on the first signal data to determine a signal parameter set of the first signal data; wherein the signal parameter set includes a signal value and a data type of the first signal data;

[0016] The signal parameter set is compared with the signal preset parameter set. If the signal value in the signal parameter set is less than or equal to the preset range in the signal preset parameter set, and the data type in the signal parameter set satisfies the preset type in the signal preset parameter set, a comparison is performed based on the first signal data and the preset mapping relationship; otherwise, second fault information is generated based on the first signal data.

[0017] In some embodiments, the method further comprises:

[0018] A system configuration file is obtained according to a preset period, and the preset mapping relationship sequence is updated according to the system configuration file.

[0019] In some embodiments, the method further comprises,

[0020] Creating a system basic project, obtaining a first system file, and importing the first system file into the system basic project;

[0021] Determine communication information according to the first system file, create a first port set based on the communication information, establish a second port set based on the communication information, map and connect the first port set to the port of the application software component, and map and connect the second port set to the controller port.

[0022] To achieve the above object, another aspect of an embodiment of the present application provides a signal processing system, the system comprising:

[0023] A first module is used to obtain a first message, identify and process the first message to obtain first information; perform a data extraction operation on the first message to obtain first signal data; wherein the first information includes a message type and message structure information of the first message;

[0024] The second module is used to map the first information with a preset mapping relationship sequence to determine a target signal name and a target port; encapsulate the first signal data according to the target signal name to obtain second signal data; wherein the preset mapping relationship includes a port name, a signal name, and a message type;

[0025] The third module is used to send the second signal data to the application software component corresponding to the target port.

[0026] To achieve the above objective, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising:

[0027] at least one processor;

[0028] at least one memory for storing at least one program;

[0029] When the at least one program is executed by the at least one processor, the at least one processor implements the method described above.

[0030] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0031] To achieve the above objective, another aspect of an embodiment of the present application provides a vehicle, which includes the above signal processing system or the above electronic device.

[0032] Implementation of the embodiments of the present application includes the following beneficial effects: the embodiments provide a signal processing method, system, electronic system and storage medium, which obtains a first message, identifies and processes the first message, and obtains first information corresponding to the first message; at the same time, performs a data extraction operation on the first message to obtain first signal data; performs a matching operation based on the obtained first information and a preset mapping relationship sequence to determine the target signal name and the corresponding communication port corresponding to the first signal data; maps the first signal data to the obtained target signal name to obtain the mapped second signal data; sends the obtained second signal data to the corresponding application software component through the determined communication port for processing; parses and extracts data from the received message to obtain the signal data to be transmitted and the key information of the message, thereby reducing unnecessary signals and redundant signals; uniformly manages the sent message signals according to the key information of the message and the preset mapping relationship sequence, and then sends them to the corresponding application software component for processing, thereby realizing decoupling between the controller and the application software component and improving the flexibility of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a structural diagram of an execution module of a signal processing method provided in an embodiment of the present application;

[0034] Figure 2 It is a schematic diagram of the steps of a signal processing method provided in an embodiment of the present application;

[0035] Figure 3 It is a schematic flow chart of the steps of determining a target signal name and a target port in a signal processing method provided in an embodiment of the present application;

[0036] Figure 4 This is a schematic flow chart of steps for performing message verification in a signal processing method provided in an embodiment of the present application;

[0037] Figure 5 This is a schematic flow chart of steps for performing signal verification in a signal processing method provided in an embodiment of the present application;

[0038] Figure 6 It is a schematic diagram of the steps of creating a software module in a signal processing method provided in an embodiment of the present application;

[0039] Figure 7 is a structural block diagram of a signal processing system in a specific embodiment provided in the embodiment of the present application;

[0040] Figure 8 It is a schematic diagram of creating a basic project in a specific embodiment provided in the embodiment of the present application;

[0041] Fig. 9This is a schematic diagram of importing system files in a specific embodiment provided in the embodiment of the present application;

[0042] Fig.10 It is a schematic diagram of creating a signal port in a specific embodiment provided in an embodiment of the present application;

[0043] Fig.11 It is a schematic diagram of creating an internal interface in a specific embodiment provided in the embodiment of the present application;

[0044] Fig.12 is a structural block diagram of a signal processing system provided in an embodiment of the present application;

[0045] Fig.13 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0046] The present application is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0047] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0048] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0049] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the present application. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0050] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0051] Microcontroller Unit: MCU is a chip that integrates core components such as a central processing unit, memory, timer, input / output ports, etc., and is used to perform various computing and control tasks. In smart cars, MCU is usually used to control various functions of the vehicle, such as engine control, braking system, driver assistance system, etc. The performance and function of MCU play a vital role in the performance and function of the car.

[0052] Automotive Open System Architecture: Autosar is a standardized software architecture designed to simplify the development and integration of automotive electronic systems. Autosar uses a layered architecture to decouple the communication and functions between application software and underlying hardware, improving the maintainability and scalability of the system. In this architecture, the system service module can be used as a middleware component to provide standardized interfaces and services to meet the needs of different applications.

[0053] ARXML (AUTOSAR XML): ARXML files are XML format files defined in the AUTOSAR standard, which are used to describe the communication, data structure, and interface definition between various software components (AWC, ECU, etc.) in automotive electronic systems. During system design and development, ARXML files include a wealth of information, usually including: ECU description, software component description, communication description, data type description, port description, interface description, parameter description, etc.

[0054] In the related art, the zone controller is one of the important components in the automotive electronic system, responsible for managing and controlling various functions and signals in a specific designated area. For example, the MCU in the zone controller receives the signal generated in the specific area, processes the received signal, generates corresponding instructions or obtains the processed signal data, and transmits and communicates with other zone controllers through the connected bus. However, with the complexity of the automotive electronic system and the increase in functional requirements, the amount of signal data that the zone controller needs to process continues to increase, resulting in the zone controller requiring a large amount of computing resources to process the signal, affecting the real-time and response speed of the automotive system. At the same time, the formats of the signal data generated by different functions are different. The zone controller processes the signal data in different formats, facing the problems of complex processing logic and huge amount of code, thereby reducing the system efficiency. In order to process the increasing signal data, the zone controller needs to be redeveloped and maintained. The existing zone controller is highly correlated with the existing application functions. Secondary development and maintenance of the zone controller may result in the application model being redone or modified on a large scale, and the system flexibility is low.

[0055] In view of this, a signal processing method, system, electronic device and storage medium are provided in an embodiment of the present application. The scheme obtains a first message, identifies and processes the first message, and obtains first information corresponding to the first message; at the same time, performs a data extraction operation on the first message to obtain first signal data; performs a matching operation based on the obtained first information and a preset mapping relationship to determine the target signal name and the corresponding communication port corresponding to the first signal data; maps the first signal data to the obtained target signal name to obtain mapped second signal data; sends the obtained second signal data to the corresponding application software component through the determined communication port for processing; extracts and processes the signal data of the transmitted message through the preset mapping relationship, and plans the signal transmission path based on the preset mapping relationship and the information of the message, and sends it from the corresponding port to the application software component to improve system efficiency; sets a preset mapping relationship to reduce the difficulty and cost of secondary development of the system and improve the flexibility and configurability of the system.

[0056] Figure 1 is a signal processing method provided in an embodiment of the present application, Figure 2 is an optional flowchart of a signal processing method provided in an embodiment of the present application. Figure 2 The method may include but is not limited to steps S201 to S203.

[0057] Step S201, obtaining a first message, performing identification processing on the first message to obtain first information; performing a data extraction operation on the first message to obtain first signal data; wherein the first information includes a message type and message structure information of the first message;

[0058] Step S202, mapping the first information with a preset mapping relationship sequence to determine a target signal name and a target port; encapsulating the first signal data according to the target signal name to obtain second signal data; wherein the preset mapping relationship includes a port name, a signal name, and a message type;

[0059] Step S203: Send the second signal data to the application software component corresponding to the target port.

[0060] In steps S201 to S203 shown in the embodiment of the present application, by receiving a message to be sent to an application software component, the received message is first parsed to identify the message type of the current message and the structural information of the message; then, the signal data in the message is extracted according to the structural information of the message; the message information obtained by analysis is matched with a mapping relationship preset in the system to determine the logic or algorithm that needs to perform predefined processing on the extracted signal data, such as converting decimal signal data into binary; and the processed signal data is encapsulated with the corresponding signal name or ID, and sent to the target application software component, so that the target application software component can more easily access and use the processed signal data.

[0061] In step S201 of some embodiments, the message data may be received via a CAN bus, or via other methods such as a LIN bus, a FlexRay bus, etc., but is not limited thereto.

[0062] See also Figure 3 In some embodiments, step S202 may include but is not limited to steps S301 to S302:

[0063] Step S301, determining a preset number of times according to the size of the first information, matching the first information with the initial corresponding relationships in the preset mapping relationship sequence one by one, and recording the number of successful matches;

[0064] Step S302, compare the number of successful matches with the preset number; if the number of successful matches is less than the preset number, match the first information data with the next corresponding relationship in the preset mapping relationship sequence one by one until the number of successful matches is equal to the preset number, and determine the signal name and port name that have been successfully matched in the preset mapping relationship sequence as the target signal name and target port.

[0065] In step S301 of some embodiments, the received message is parsed to obtain message information such as the message type and message name of the current message, and a preset number of times is determined based on the size of the identified message information. Then, the message information is matched in sequence with the item information in the corresponding relationship in the mapping relationship sequence preset in the system. Exemplarily, the message type in the message information is matched string by string with the message type in the mapping relationship sequence preset in the system to ensure that exactly the same string is found, thereby improving the accuracy. When the message information successfully matches the current string of the item information in the mapping relationship sequence preset in the system, a counter is used to record the number of successful matches.

[0066] In step S302 of some embodiments, after all character strings are matched, the number of times recorded in the counter is compared with a determined preset number of times. If the number of times recorded in the counter is less than the determined preset number of times, it means that the message information fails to match the current item information in the preset mapping relationship sequence. The message information is matched with the next item information in the preset mapping relationship sequence until the number of times recorded in the counter is equal to the determined preset number of times. The information of the current message is determined based on the successfully matched item information in the preset mapping relationship, including the data type and transmission port corresponding to the signal data of the message.

[0067] See also Figure 4 In some embodiments, a signal processing method proposed in this embodiment may include but is not limited to steps S401 to S402:

[0068] Step S401, determining a message preset parameter set according to a first message; performing a parsing operation on the first message to obtain a message parameter set of the first message; wherein the message parameter set includes a message data type, a message data length, and a message data frame format;

[0069] Step S402, matching the message parameter set with the message preset parameter set; if there is a message parameter in the message parameter set that fails to match the message preset parameter set, generating first fault information according to the first message; otherwise, performing a data extraction operation on the first message.

[0070] In step S401 of some embodiments, before parsing the received message data, the system may first verify the received message data to determine whether the received message data is complete and valid, discard the messages that fail the verification and generate corresponding fault alarm information, thereby reducing the occupancy of computing resources and improving the efficiency of system processing; illustratively, the preset verification parameters of the received message data, or the preset length information of the message data, etc. are obtained for subsequent verification of the received message data.

[0071] In step S402 of some embodiments, verification data of the received message data or data length information of the message data is obtained, and the obtained verification data or data length information is matched with the preset parameters or preset information obtained in step S401. If the two match successfully, it means that the received message data has passed the verification and subsequent processing can be performed; if the two match unsuccessfully and fault information needs to be generated for reminder, the system can skip processing the received message data and improve the processing efficiency of the system; the source of the message data resends the message data after receiving the fault information.

[0072] See also Figure 5In some embodiments, a signal processing method proposed in this embodiment may include but is not limited to steps S501 to S502:

[0073] Step S501, determining a signal preset parameter set according to first signal data; performing a parsing operation on the first signal data to determine a signal parameter set of the first signal data; wherein the signal parameter set includes a signal value and a data type of the first signal data;

[0074] Step S502, compare the signal parameter set with the signal preset parameter set. If the signal value in the signal parameter set is less than or equal to the preset range in the signal preset parameter set, and the data type in the signal parameter set meets the preset type in the signal preset parameter set, compare according to the first signal data and the preset mapping relationship; otherwise, generate second fault information according to the first signal data.

[0075] In step S501 of some embodiments, after data extraction is performed on the verified message data to obtain the first signal data; before matching the first signal data with the preset mapping relationship to determine the target information name and the target port, and mapping the first signal data, the system performs a signal verification operation on the first signal data to determine whether the first signal data is erroneous, thereby managing the extracted signal data and improving the processing efficiency of the system; subsequent verification processing is performed on the verified signal data; and a preset signal range of the signal data and a preset data format of the extracted signal data are determined based on the first signal data in the message data for subsequent verification of the extracted signal data.

[0076] In step S502 of some embodiments, a signal value corresponding to the extracted first signal data or a data type corresponding to the first signal data is determined, and the determined signal value and / or data type is compared with a preset signal range and / or preset data format determined in step S501; if the signal value of the first signal data falls within the preset signal range, and the data type of the first signal data conforms to the preset data type, the first signal data passes the signal verification, and the system performs subsequent mapping operations on the first signal data that passes the verification; for the first signal data that fails the signal verification, the system generates corresponding fault information for reminder, and the system can skip processing the received message data, thereby improving the processing efficiency of the system.

[0077] See also Figure 6 In some embodiments, a signal processing method proposed in this embodiment may include but is not limited to steps S601 to S602:

[0078] Step S601, creating a system basic project, obtaining a first system file, and importing the first system file into the system basic project;

[0079] Step S602, determine communication information according to the first system file, create a first port set based on the communication information, establish a second port set based on the communication information, map the first port set to the port of the application software component, and map the second port set to the controller port.

[0080] In step S601 of some embodiments, the system sets a software module between the application software component and the regional controller. The software module can receive message data sent by the regional controller to the application software component, parse and process the message data, convert the message data into predefined signal data, and send it to the corresponding application software component for processing; it can also receive signal data sent by the application software component, convert and encapsulate the received signal data, obtain corresponding message data, and send it to the corresponding regional controller for processing; therefore, the software module needs to establish and connect message ports of different regional controllers and interfaces connecting different application software components; the system builds the engineering framework of the software module based on the system basic files, and then imports system communication, data structure, port and other information into the system for the creation and connection of subsequent ports or API interfaces of the software module.

[0081] In step S602 of some embodiments, the system classifies the imported communication, data structure, port and other information to obtain different regional controllers and corresponding port information, as well as corresponding data structure information, and the system creates a port set about the regional controller based on the classified information; the system classifies the imported communication, data structure, port and other information to obtain different application software components and corresponding interface information, as well as corresponding data structure information, and the system creates an interface set about the application software components based on the classified information; after creating the port set and interface set, the system establishes a communication connection between the port or interface and the corresponding regional controller or application software component, such as a CAN bus; the system can also establish a preset mapping relationship in the software module based on the classified information, and the software module processes and manages the received data according to the preset mapping relationship.

[0082] In some embodiments, the system can obtain the latest communication information file according to a preset period, and update the preset mapping relationship of the software module according to the obtained communication information file. For example, by adding an application software component through secondary development, the system's communication information file updates the interface, data structure and other information related to the application software component, and the constructed software module establishes a new interface according to the updated communication information file and establishes a communication connection with the application software component. Through the constructed software module, the system does not need to modify the original regional controller for secondary development, but only needs to establish a new interface and communication channel for the software module, which improves the flexibility and maintainability of the system.

[0083] The following is a detailed description and explanation of the solution of the embodiment of the present invention in conjunction with a specific application example:

[0084] See also Figure 7 , the system passes Figure 7 The Appnet_Route module, the RTE module and the COM interface in the controller implement a signal processing method of an embodiment of the present application, wherein the COM interface in the controller is connected to the RTE module, the RTE module is connected to the Appnet_Route module, and the Appnet_Route module is connected to the application software component; after the regional controller extracts and processes the message data, it sends the extracted signal data through the COM interface, the RTE receives the signal data and sends the signal data to the Appnet_Route module of the corresponding functional area through the software interface, the Appnet_Route module receives the sent signal data, performs full matching according to the information of the signal data and the preset mapping relationship, determines the target signal name and the interface information constructed by the target application software, the Appnet_Route module maps the received signal data to the target signal name, and encapsulates it; then sends the encapsulated signal data to the target application software component for processing through the determined interface; please refer to Figures 8 to 11 , the system passes Figures 8 to 11 Build the Appnet_Route module by following the steps shown; Figure 8 As shown, the system creates a base project; then, import the systemExtract.arxml file into the created base project, such as Fig. 9 As shown; the system extracts the communication information from the imported file, and based on the communication information, creates a port element in the created project through signal, such as Fig.10 As shown; create an internal port in the created project and get the Appnet_Route module, such as Fig.11 As shown; after completing the port creation, the system automatically creates a communication link between the Appnet_Route module and the interface of the application software component to enable signal transmission.

[0085] Implementation of the embodiments of the present application includes the following beneficial effects: The embodiments provide a signal processing method, system, electronic system and storage medium, which obtains a first message, identifies and processes the first message, and obtains first information corresponding to the first message; at the same time, performs a data extraction operation on the first message to obtain first signal data; performs a matching operation based on the obtained first information and a preset mapping relationship to determine the target signal name and the corresponding communication port corresponding to the first signal data; maps the first signal data to the obtained target signal name to obtain the mapped second signal data; sends the obtained second signal data to the corresponding application software component through the determined communication port for processing; parses and extracts data from the received message to obtain the signal data to be transmitted and the key information of the message, and the parameters for subsequent processing of the signal data can be determined based on the key information of the message and the preset mapping relationship, and the signal data is managed and planned based on the determined parameters to improve the transmission efficiency of the system; establishes a mapping relationship based on the interface information of the application software component and the port information of the regional controller, decouples the association between the regional controller and the application software component, and improves the flexibility of the system.

[0086] like Fig.12 As shown, the embodiment of the present application further provides a signal processing system, which can implement the above signal processing method, and the system includes:

[0087] A first module is used to obtain a first message, identify and process the first message to obtain first information; perform a data extraction operation on the first message to obtain first signal data; wherein the first information includes a message type and message structure information of the first message;

[0088] A second module is used to match the first information with a preset mapping relationship to determine a target signal name and a target port; perform a mapping operation on the first signal data according to the target signal name to obtain second signal data; wherein the preset mapping relationship includes a channel number, a channel name, a port name, a signal name, and a data type;

[0089] The third module is used to send the second signal data to the application software component corresponding to the target port.

[0090] It can be seen that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0091] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above signal processing method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0092] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0093] See also Fig.13 , Fig.13 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0094] The processor 1301 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0095] The memory 1302 may be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1302 may store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1302, and the processor 1301 calls and executes a signal processing method in the embodiment of this application;

[0096] Input / output interface 1303, used to implement information input and output;

[0097] The communication interface 1304 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0098] A bus 1305 that transmits information between the various components of the device (e.g., the processor 1301, the memory 1302, the input / output interface 1303, and the communication interface 1304);

[0099] The processor 1301 , the memory 1302 , the input / output interface 1303 and the communication interface 1304 are connected to each other in communication within the device via a bus 1305 .

[0100] Among them, the memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. The memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a remote memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0101] In addition, the embodiment of the present application also discloses a computer program product or a computer program, and the computer program product or the computer program is stored in a computer-readable storage medium. The processor of the computer device can read the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device performs the above method. Similarly, the contents in the above method embodiment are all applicable to the storage medium embodiment, and the functions specifically implemented by the storage medium embodiment are the same as those in the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method embodiment.

[0102] An embodiment of the present application further provides a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to implement the above-mentioned signal processing method.

[0103] The embodiment of the present application also provides a vehicle, which includes the electric drive assembly of the above-mentioned signal processing system or electronic device. Specifically, the vehicle can be a private car, such as a sedan, SUV, MPV or pickup truck. The vehicle can also be an operating vehicle, such as a van, bus, small truck or large trailer. The vehicle can be a gasoline vehicle or a new energy vehicle. When the vehicle is a new energy vehicle, it can be a hybrid vehicle or a pure electric vehicle.

[0104] It is understood that all or some steps and systems in the disclosed method above can be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0105] The embodiments of the present application provide a signal processing method, a signal processing system, an electronic device, and a storage medium, which obtain a first message, identify and process the first message, and obtain first information corresponding to the first message; at the same time, perform a data extraction operation on the first message to obtain first signal data; perform a matching operation based on the obtained first information and a preset mapping relationship to determine the target signal name and the corresponding communication port corresponding to the first signal data; map the first signal data to the obtained target signal name to obtain mapped second signal data; send the obtained second signal data to the corresponding application software component through the determined communication port for processing; parse and extract data from the received message to obtain the signal data to be transmitted and the key information of the message, and determine the parameters for subsequent processing of the signal data based on the key information of the message and the preset mapping relationship, manage and plan the signal data based on the determined parameters, and improve the transmission efficiency of the system.

[0106] The above is a specific description of the preferred implementation of the present application, but the invention of the present application is not limited to the described embodiments. Technical personnel familiar with the field can also make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.

Claims

1. A signal processing method, It is characterized in that The method comprises: Acquire a first message, perform identification processing on the first message to obtain first information; perform a data extraction operation on the first message to obtain first signal data; wherein the first information includes a message type and message structure information of the first message; Mapping the first information with a preset mapping relationship sequence to determine a target signal name and a target port; encapsulating the first signal data according to the target signal name to obtain second signal data; wherein the preset mapping relationship includes a port name, a signal name, and a message type; The second signal data is sent to the application software component corresponding to the target port.

2. The method according to claim 1, It is characterized in that The mapping of the first information with a preset mapping relationship sequence to determine the target signal name and the target port specifically includes: Determine a preset number of times according to the size of the first information, match the first information with the initial corresponding relationships in the preset mapping relationship sequence one by one, and record the number of successful matches; Compare the number of successful matches with the preset number; if the number of successful matches is less than the preset number, match the first information data with the next corresponding relationship in the preset mapping relationship sequence one by one until the number of successful matches is equal to the preset number, and determine the signal name and port name that are successfully matched in the preset mapping relationship sequence as the target signal name and target port.

3. The method according to claim 1, It is characterized in that The method further comprises: Determine a message preset parameter set according to the first message; perform a parsing operation on the first message to obtain a message parameter set of the first message; wherein the message parameter set includes a message data type, a message data length, and a message data frame format; Match the message parameter set with the message preset parameter set; if there is a message parameter in the message parameter set that fails to match the message preset parameter set, generate first fault information according to the first message; otherwise, perform a data extraction operation on the first message.

4. The method according to claim 1, It is characterized in that The method further comprises: Determine a signal preset parameter set according to the first signal data; perform an analysis operation on the first signal data to determine a signal parameter set of the first signal data; wherein the signal parameter set includes a signal value and a data type of the first signal data; The signal parameter set is compared with the signal preset parameter set. If the signal value in the signal parameter set is less than or equal to the preset range in the signal preset parameter set, and the data type in the signal parameter set satisfies the preset type in the signal preset parameter set, a comparison is performed based on the first signal data and the preset mapping relationship; otherwise, second fault information is generated based on the first signal data.

5. The method according to claim 1, It is characterized in that The method further comprises: A system configuration file is obtained according to a preset period, and the preset mapping relationship sequence is updated according to the system configuration file.

6. The method according to claim 1, It is characterized in that The method further comprises, Creating a system basic project, obtaining a first system file, and importing the first system file into the system basic project; Determine communication information according to the first system file, create a first port set based on the communication information, establish a second port set based on the communication information, map and connect the first port set to the port of the application software component, and map and connect the second port set to the controller port.

7. A signal processing system, It is characterized in that include: The first module is used to obtain a first message, identify and process the first message, and obtain first information; Performing a data extraction operation on the first message to obtain first signal data; wherein the first information includes a message type and message structure information of the first message; The second module is used to map the first information with a preset mapping relationship sequence to determine a target signal name and a target port; encapsulate the first signal data according to the target signal name to obtain second signal data; wherein the preset mapping relationship includes a port name, a signal name, and a message type; The third module is used to send the second signal data to the application software component corresponding to the target port.

8. An electronic device, It is characterized in that include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a processor-executable program stored therein, It is characterized in that The processor-executable program is used to perform the method according to any one of claims 1 to 6 when executed by the processor.

10. A vehicle, It is characterized in that The vehicle comprises the system of claim 7 or the electronic device of claim 8.

Citation Information

Cited By

  • Signal control method and device, electronic equipment and storage medium

    CN119862830A

  • Signal Control Method, Device, Electronic Device and Storage Medium

    CN119862830B