Message processing method and device, chip, electronic equipment and vehicle
By using the low-latency communication engine and kernel of the message processing chip to identify illegal messages, the problem of high MCU load is solved, achieving efficient and accurate identification of illegal messages, reducing the MCU burden, and improving the stability and security of vehicle network communication.
Patent Information
- Application Number
- CN202410593991.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2025-11-14
AI Technical Summary
When the MCU receives CAN messages, the process of identifying invalid messages consumes a high load rate, which increases the burden on the MCU.
The low-latency communication engine of the message processing chip receives CAN messages transmitted via the CAN bus and uses the first core to identify invalid messages. The identification task of the MCU is then transferred to the chip core, where pre-stored message rules are used for rapid filtering.
This reduces the MCU's load rate, improves the efficiency and accuracy of message recognition, reduces the resource consumption of the MCU, and ensures the stability and security of vehicle network communication.
Smart Images

Figure CN120956728A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data security, and in particular to a message processing method, apparatus, chip, electronic device, and vehicle. Background Technology
[0002] During message exchange, especially for CAN messages, a corresponding CAN transceiver is usually set up. One end of the CAN transceiver is connected to the CAN bus, and the other end is connected to the electronic control unit (MCU) to establish message communication between the CAN bus and the MCU.
[0003] However, when the MCU receives messages from the CAN bus, if an invalid CAN message is received, it can compromise the entire MCU. Therefore, when the MCU receives CAN messages from the CAN transceiver, it first identifies each message to determine if it is invalid. This identification process relies on the MCU's built-in CAN message recognition function, consuming some of the MCU's computing power and increasing its workload. Summary of the Invention
[0004] In view of this, this application provides a message processing method, apparatus, chip, electronic device and vehicle, the main purpose of which is to solve the technical problem that when the messages received by the CAN transceiver include invalid messages, the MCU needs to occupy a high load for message identification.
[0005] To achieve the above objectives, the first aspect of this application discloses a message processing method applied to a message processing chip, the method comprising:
[0006] The low-latency communication engine of the message processing chip is controlled to receive CAN messages transmitted via the CAN bus.
[0007] The first core of the message processing chip is used to obtain invalid messages from the CAN message. The first core is the invalid message identification core of the message processing chip.
[0008] Optionally, the step of using the first core of the message processing chip to obtain invalid messages from the CAN message includes:
[0009] Enable the first core of the message processing chip;
[0010] Extract the identification data of the CAN message;
[0011] The identification data is filtered using the filtering rules of the first kernel to obtain invalid messages from the CAN messages.
[0012] Optionally, after the low-latency communication engine controlling the message processing chip receives the CAN message transmitted via the CAN bus, the method further includes:
[0013] Enable the second core of the message processing chip, wherein the second core is the legitimate message identification core of the message processing chip;
[0014] Extract the identification data of the CAN message;
[0015] The identification data is filtered using the filtering rules of the second kernel to obtain legitimate messages from the CAN messages.
[0016] Optionally, after obtaining invalid messages from the CAN messages using the first core of the message processing chip, the method further includes:
[0017] Extract the feature information of the illegal messages in the first kernel;
[0018] The characteristic information of the target message is stored in the first cache space of the message processing chip;
[0019] Identify the memory usage value of the first cache space;
[0020] If the memory usage exceeds the threshold, the first kernel controls the first cache space to upload the feature information to the cloud.
[0021] Optionally, after the first kernel controls the first cache space to upload the feature information to the cloud, the method further includes:
[0022] Obtain the updated data transmitted from the cloud;
[0023] The updated data is transmitted to the first kernel cache space of the first kernel and the second kernel cache space of the second kernel;
[0024] The updated data is used to update the cached data in the first kernel cache space and the second kernel cache space respectively, generating a new first kernel and a new second kernel.
[0025] A second aspect of this application provides a message processing apparatus applied to a message processing chip, the apparatus comprising:
[0026] The receiving module is used to control the low-latency communication engine of the message processing chip to receive CAN messages transmitted via the CAN bus.
[0027] The acquisition module is used to acquire invalid messages from the CAN messages using the first core of the message processing chip, wherein the first core is the invalid message identification core of the message processing chip.
[0028] A third aspect of this application provides an electronic device, comprising:
[0029] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the methods disclosed in the first aspect.
[0030] A fourth aspect of this application provides a chip including one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from the memory of an electronic device and send the signals to the processors, the signals including computer instructions stored in the memory, which, when executed by the processors, cause the electronic device to perform the method described in the first aspect.
[0031] A fifth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.
[0032] A sixth aspect of this application provides a vehicle in which the device as described in the second aspect or the electronic device as described in the third aspect is mounted.
[0033] In summary, based on the technical solution disclosed in this application, to address the technical problem of needing to occupy the MCU load for message identification when receiving messages including invalid messages using a CAN transceiver, this application designs a message processing chip for performing CAN message identification. Specifically, the message processing method of this application can execute a message processing approach, which first controls the low-latency communication engine of the message processing chip to receive CAN messages transmitted via the CAN bus; then, it uses the first core of the message processing chip to extract invalid messages from the CAN messages. This first core is the invalid message identification core of the message processing chip. This application designs a message processing chip that can acquire CAN messages on the CAN bus through a low-latency communication engine and extract invalid messages from the CAN messages using the first core, which serves as the invalid message identification core, within the chip. The technical solution of this application transfers the process of identifying invalid messages in CAN messages, which was originally executed in the MCU, to a dedicated message processing chip. This allows the message processing chip to quickly identify invalid messages in CAN messages based on the message rules stored in its first core, reducing the MCU's workload and lowering the MCU's load rate while ensuring the detection of invalid messages.
[0034] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0035] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0036] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 An example diagram illustrating an improved method for detecting illegitimate messages according to an embodiment of this application is shown.
[0038] Figure 2 A flowchart of a message processing method provided in an embodiment of this application is shown;
[0039] Figure 3 A structural diagram of a message processing apparatus provided in an embodiment of this application is shown. Detailed Implementation
[0040] To better understand the above-mentioned objectives, features, and advantages of this application, the solution of this application will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0041] To address the technical issue of high MCU load for message identification when receiving invalid messages via a CAN transceiver, an example diagram for invalid message detection is provided below. Figure 1 As shown, CAN stands for Controller Area Network. When acquiring CAN messages on the CAN bus, the MCU (Micro Control Unit) uses a CAN transceiver to retrieve CAN messages transmitted on the twisted-pair CAN bus (CAN_H and CAN_L). Among the acquired messages, there may be invalid messages, i.e., CAN intrusion messages. In this case, the CAN transceiver needs to upload the CAN message to the MCU, which further identifies the CAN message and determines whether there are invalid messages. During this process, whether the MCU extracts CAN messages from the CAN transceiver or performs further identification on the received CAN messages, it consumes corresponding computing power, thus increasing the MCU's load rate.
[0042] This application provides the following embodiments to solve the above problems:
[0043] This embodiment provides a message processing method, such as Figure 2 The diagram shown is a flowchart of the method in this embodiment. The method in this embodiment may specifically include the following steps:
[0044] Step 201: Control the low-latency communication engine of the message processing chip to receive CAN messages transmitted via the CAN bus.
[0045] A Low-Latency Communication Engine (LLCE) is a high-performance hardware module within a message processing chip, specifically designed for real-time and efficient processing of data packets transmitted on the Controller Area Network (CAN) bus in automotive networks. These chips integrate a low-latency engine capable of rapidly identifying, acquiring, and forwarding messages to meet the demands of modern automobiles and other real-time control systems for high-speed data exchange and immediate response. For example, the message processing chip in this embodiment can be an NXPS32G chip.
[0046] Specifically, when nodes on the CAN bus transmit messages via differential signals, the message processing chip continuously monitors the communication activity on the bus through its connected physical layer interface (such as a CAN transceiver). Once a valid CAN message start signal is detected, the low-latency communication engine immediately initiates the receiving process. During this process, the engine quickly decodes the arbitration field (containing the identifier ID), control field, and data field information of the CAN message. Because the CAN bus uses a multi-master architecture, all nodes listen simultaneously and decide whether to continue receiving or stop transmitting based on the priority of the message ID. The low-latency engine can quickly parse these identifiers, ensuring accurate processing of each message even under heavy network load, avoiding conflicts and reducing waiting time. Furthermore, to further improve efficiency, these chips typically have flexible message filtering mechanisms, allowing pre-configuration to receive only messages within a specific ID range. This allows for the extraction of only the information relevant to the target node when receiving large amounts of data, achieving near real-time data processing and action execution, which is crucial for communication between key components such as vehicle powertrain and safety systems. Through such a low-latency communication engine, the vehicle's electronic control system can achieve faster and more accurate responses, improving overall performance and safety.
[0047] Step 202: Use the first core of the message processing chip to obtain invalid messages from the CAN message. The first core is the invalid message identification core of the message processing chip.
[0048] In vehicle network communication, the CAN (Controller Area Network) bus, as a widely used serial communication protocol, carries important data exchanges between numerous ECUs (Electronic Control Units). To ensure that the system processes a large number of CAN messages efficiently and accurately, especially to identify illegitimate messages in complex network environments, the filtering function of the message processing chip is often required.
[0049] Message extraction rules are used to identify which messages on the CAN bus are invalid, i.e., messages that do not conform to the CAN protocol specification or specific application requirements. These rules are typically formulated based on the structural characteristics of CAN messages and their expected behavior patterns, and may include, but are not limited to, the following aspects:
[0050] 1. Identifier (ID) error: Invalid messages may have incorrect standard (11-bit) or extended (29-bit) identifiers, such as being outside the predefined range, not matching a known communication list, or using a reserved ID value.
[0051] 2. Data field error: The data content carried in the message violates the data format, range restrictions, or verification rules of the specific application, such as exceeding the valid value range, containing invalid control codes, or not conforming to the predetermined data length.
[0052] 3. Frame format error: The structure of the message does not conform to the standard or extended format specified by the CAN protocol, such as incorrect frame start, arbitration field, control field, data field, CRC check, ACK field, or frame end components.
[0053] 4. Abnormal protocol behavior: Illegal messages may manifest as unreasonable sending rates, violations of priority rules, incorrect response mechanisms, timeouts without response, duplicate transmissions, and other phenomena that violate the normal communication process.
[0054] 5. Error Flags: The CAN protocol itself has an error detection mechanism. When an error occurs on the bus, the node will send an error frame. Directly receiving error flags or error counter overflows from the CAN controller are also important bases for judging invalid messages.
[0055] The first core in the message processing chip can scan CAN messages passing through the interface in real time according to user-configured rules to filter CAN messages and decide whether to pass them to the cloud for further processing. The filter function in the message processing chip is designed to reduce unnecessary cloud load and improve the system's real-time response capability and overall efficiency. After setting the filtering rules for extracting invalid messages, these rules need to be programmed into the filter of the message processing chip. Filter configuration can include the following steps: Setting the filtering mode: Select whether the filter works in whitelist mode (only allowing messages that match the rules to pass), blacklist mode (blocking messages that do not match the rules to pass), or a more complex combination of multiple rules. Configuring filtering conditions: Specify the message attributes that the filter should check for each feature in the above-mentioned message extraction rules, such as identifiers and their masks, data length codes (DLC), specific data bits, etc. Enabling error frame filtering: If the chip supports it, filtering for special message types such as error frames, overload frames, and arbitration loss frames can be directly enabled. Once the first core of the filter function is configured and enabled, it will scan every CAN message entering the interface in real time at the hardware level. When a message matches a predefined rule for identifying invalid messages, the filter marks it as a target message and presents it to the host processor for further analysis or recording according to a preset strategy (such as interrupt notification or storage in a buffer). In summary, message extraction rules define the standards for identifying invalid messages on the CAN bus, while the filter using the message processing chip performs real-time screening of the high-speed CAN message stream at the hardware level, accurately capturing invalid messages that match the rules. This enables rapid response and effective management of network anomalies. This process is crucial for ensuring the stability and security of in-vehicle network communication.
[0056] This embodiment designs a message processing chip that can acquire CAN messages on the CAN bus through a low-latency communication engine, and extract invalid messages from the CAN messages using a first core that serves as an invalid message identification kernel. This embodiment's technical solution transfers the process of identifying invalid messages in CAN messages, originally executed in the MCU, to a dedicated message processing chip. This allows the message processing chip to quickly identify invalid messages in the CAN messages based on the message rules stored in its first core, reducing the MCU's workload and lowering the MCU's load rate while ensuring the detection of invalid messages.
[0057] In one possible embodiment, message extraction rules are used to extract target messages from CAN messages using the filters of the message processing chip, including:
[0058] Enable the first core of the message processing chip; extract the identification data of the CAN message; use the filtering rules of the first core to filter the identification data and obtain invalid messages from the CAN message.
[0059] In the message processing chip, a low-latency communication engine establishes an effective communication link with the first core. The first core is used to perform illegitimacy identification of CAN messages. Pre-stored message identification rules are configured in the first core, serving as its filtering rules. The first core can quickly filter messages according to these pre-configured rules. The message identification rules can be designed based on various conditions such as message ID, extended ID, and single / dual filtering modes. For example, the first core might compare the received message ID with the list of allowed IDs set in the filtering table. Only if a match is successful is the message considered legitimate and filtered; otherwise, the message is intercepted.
[0060] When a CAN message does not match the rules of the first core, the message is identified as an invalid message. In this way, the message processing chip achieves automated and intelligent message filtering, which greatly improves the efficiency and accuracy of data processing in vehicle networks and other real-time control systems, while reducing bandwidth consumption and processor overhead caused by meaningless or irrelevant messages.
[0061] In one possible embodiment, after the low-latency communication engine of the control message processing chip receives the CAN message transmitted via the CAN bus, the method further includes:
[0062] The second core of the message processing chip is enabled. The second core is the legitimate message identification core of the message processing chip. The identification data of the CAN message is extracted. The filtering rules of the second core are used to filter the identification data and obtain legitimate messages from the CAN message.
[0063] After receiving a CAN message from the CAN bus, the low-latency communication engine establishes a valid communication connection with the second core. The second core is used to perform CAN message validity verification. Pre-stored message identification rules are configured in the second core, serving as its filtering rules. The second core can quickly filter messages according to these pre-configured rules. These filtering rules may record key parameters for matching and identifying CAN messages, possibly including the CAN identifier (ID), Data Length Code (DLC), and other optional conditions. After the message rules are activated or configured in the second core of the message processor, the second core also acts as a filter during message filtering. The second core's filter compares all messages entering the low-latency communication engine in real time according to the preset rules, checking whether each message conforms to the second message rules. If a message's identifiers match the rules, the message is considered valid and marked as a "second target message." After the filtering process, messages that meet the second rules are selected and further processed, such as being forwarded to other parts of the microcontroller for decoding and application. The purpose of this is to enable the message processing chip to extract meaningful data from the CAN message first in a high-speed CAN network environment, thereby improving the system's efficiency and response speed, and avoiding the impact of the recognition and use of most messages due to the presence of invalid messages.
[0064] In one possible embodiment, after obtaining invalid messages from CAN messages using the first core of the message processing chip, the method further includes:
[0065] Extract the feature information of invalid packets from the first kernel; store the feature information in the first cache space of the packet processing chip; identify the memory usage value of the first cache space; if the memory usage value exceeds the threshold, control the first cache space through the first kernel to upload the feature information to the cloud.
[0066] This embodiment refers to the process of identifying and extracting key attributes of specific messages from a set of messages in the fields of computer networks, communication engineering, or the Internet of Things (IoT). A message is a data unit transmitted in network communication, carrying various elements necessary for the correct transmission and processing of information. The characteristic information of a message typically includes, but is not limited to, the following: 1. Message header information: In the network protocol stack, each message has a header, which contains various information such as source address, destination address, protocol version number, message length, sequence number, and acknowledgment number. For example, in the TCP / IP protocol, the IP message header contains the source IP address and destination IP address, while in a TCP message, the header contains control information such as sequence number, acknowledgment number, and window size. 2. Identifier / Identifier field: In some communication protocols, such as the CAN (Controller Area Network) bus, each message has a unique identifier (ID) used to distinguish different data streams or services. 3. Data content: The actual payload data carried by the message. This information has different meanings depending on the specific application scenario; it may be sensor readings, commands, status updates, etc. 4. Control and Status Flags: Some messages contain flags used to indicate message status or control the message transmission method. 5. Error Detection and Verification Information: Such as Cyclic Redundancy Check (CRC) and checksums, used to verify whether the message maintains its integrity during transmission. 6. Timestamp: Records the time the message was generated, which is crucial for network diagnostics, performance analysis, and systems with high real-time requirements.
[0067] If the first kernel detects that a message is invalid, further feature extraction of the invalid message can be performed using the first kernel. This can effectively identify and extract the feature information of the invalid message, enabling the cloud to accurately read the feature information of the invalid message.
[0068] After identifying invalid packets through the first core, the message processing chip stores the key characteristic information of the invalid packets (such as packet ID, data segment content, timestamp, etc.) in a temporary storage area of the chip's first cache space (SRAM) according to preset rules. Simultaneously, while continuously storing characteristic information into the first cache space, the message processing chip continuously monitors the memory usage of its first cache space, i.e., the total memory occupied by the stored characteristic information. When the memory usage of the first cache space reaches a preset upper limit threshold, it indicates that the system has captured a large number of packets that meet the criteria in a short period of time, leading to local cache resource strain. To address this memory pressure, the chip takes appropriate measures, such as controlling the first cache space through the first core to upload some or all of the packet characteristic data to a remote cloud server or system-on-a-chip (SoC) for storage and further processing. This approach aims to alleviate the pressure on local storage while utilizing the large-capacity storage and computing power of the cloud for data analysis or remote monitoring. In this way, even with limited local resources, the system can ensure continuous and efficient processing and recording of important message information.
[0069] In one possible embodiment, after uploading feature information to the cloud via the first kernel controlling the first cache space, the method further includes:
[0070] Obtain updated data transmitted from the cloud; transmit the updated data to the first kernel cache space of the first kernel and the second kernel cache space of the second kernel; use the updated data to update the cached data in the first kernel cache space and the second kernel cache space respectively, and generate a new first kernel and a new second kernel.
[0071] The message processing chip receives new data updates from a cloud server via a network connection. These updates may include revisions, additions, or other optimizations to existing message rules, and are sent to the chip by the cloud based on uploaded feature information. Upon receiving the update data from the cloud, it can be temporarily stored in a dedicated kernel cache space within the first and second kernels, where the first kernel cache space can be the same as the first cache space. This ensures that new data is securely stored locally before updating core operating mechanisms (such as the message rule engine), avoiding the risks of data inconsistency or system instability that might result from direct writes. Within the first and / or second kernel cache spaces, the chip parses and applies this update data to modify, replace, or expand the existing kernel filtering rules, generating a completely new set of filtering rules. Once this process is complete, the updated filtering rules enable the first and second kernels to quickly process subsequent message information according to the new rules, adapting to new business needs or environmental changes, and continuously updating the message processing chip's identification of legitimate and illegitimate messages.
[0072] This embodiment provides a message processing device, such as... Figure 3 The diagram shown is a structural diagram of the device in this embodiment, including:
[0073] The receiving module 31 is used to control the low-latency communication engine of the message processing chip to receive CAN messages transmitted via the CAN bus.
[0074] The acquisition module 32 is used to acquire invalid messages from the CAN messages using the first core of the message processing chip, wherein the first core is the invalid message identification core of the message processing chip.
[0075] In one possible embodiment, the acquisition module 32 is specifically used for:
[0076] Enable the first core of the message processing chip;
[0077] Extract the identification data of the CAN message;
[0078] The identification data is filtered using the filtering rules of the first kernel to obtain invalid messages from the CAN messages.
[0079] In one possible embodiment, the acquisition module 32 is further configured to:
[0080] Enable the second core of the message processing chip, wherein the second core is the legitimate message identification core of the message processing chip;
[0081] Extract the identification data of the CAN message;
[0082] The identification data is filtered using the filtering rules of the second kernel to obtain legitimate messages from the CAN messages.
[0083] In one possible embodiment, the message processing apparatus further includes a communication module 33, specifically used for:
[0084] Extract the feature information of the illegal messages in the first kernel;
[0085] The feature information is stored in the first cache space of the message processing chip;
[0086] Identify the memory usage value of the first cache space;
[0087] If the memory usage exceeds the threshold, the first kernel controls the first cache space to upload the feature information to the cloud.
[0088] Clear the feature information cached in the first cache space.
[0089] In one possible embodiment, the communication module 33 is further configured to:
[0090] Obtain the updated data transmitted from the cloud;
[0091] The updated data is transmitted to the first kernel cache space of the first kernel and the second kernel cache space of the second kernel;
[0092] The updated data is used to update the cached data in the first kernel cache space and the second kernel cache space respectively, generating a new first kernel and a new second kernel.
[0093] Based on this understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as CD-ROM, USB flash drive, mobile hard drive, etc.) and includes several instructions to cause a computer device (such as personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of this application.
[0094] Based on the above, Figure 2 The method shown, and Figure 3 To achieve the above objectives, this application also provides an electronic device, which can be configured on the end side of a vehicle (such as a new energy vehicle). This device includes at least one processor and a memory communicatively connected to the at least one processor. The memory stores instructions executable by the at least one processor. The processor executes a computer program to implement the above-described virtual device embodiments. Figure 2 The method shown.
[0095] Optionally, the aforementioned physical devices may also include a user interface, a network interface, a camera, radio frequency (RF) circuitry, sensors, audio circuitry, a Wi-Fi module, etc. The user interface may include a display screen, input units such as a keyboard, etc., and optional user interfaces may also include USB interfaces, card reader interfaces, etc. The network interface may optionally include standard wired interfaces, wireless interfaces (such as Wi-Fi interfaces), etc.
[0096] Those skilled in the art will understand that the physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or combine certain components, or have different component arrangements.
[0097] This embodiment can be applied to a chip, specifically, the chip includes one or more interface circuits and one or more processors; the interface circuits are used to receive signals from the memory of an electronic device and send the signals to the processors, the signals including computer instructions stored in the memory, and when the processor executes the computer instructions, it causes the electronic device to perform... Figure 2 The method
[0098] Based on the above, Figure 2 The method illustrated in this application also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the method corresponding to any embodiment. The storage medium may further include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the aforementioned physical device and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize communication between the components within the storage medium, as well as communication with other hardware and software in the information processing physical device.
[0099] Based on the aforementioned electronic device, this application embodiment also provides a vehicle, which may specifically include: such as Figure 3 The device shown or the electronic equipment described above. The vehicle may specifically be a new energy vehicle or a traditional vehicle, etc.
[0100] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms, or it can be implemented by hardware. By applying the solution of this embodiment, compared with the prior art, this embodiment first controls the low-latency communication engine of the message processing chip to receive CAN messages transmitted by the CAN bus; then, it uses the first core of the message processing chip to obtain invalid messages from the CAN messages. The first core is the invalid message identification core of the message processing chip. This application designs a message processing chip that can obtain CAN messages on the CAN bus through a low-latency communication engine, and extract invalid messages from the CAN messages using the first core, which is the invalid message identification core, in the chip. The technical solution of this application transfers the process of identifying invalid messages in CAN messages, which was originally executed in the MCU, to a dedicated message processing chip. This allows the message processing chip to quickly identify invalid messages in CAN messages according to the message rules stored in the first core of the message processing chip, reducing the occupation of the MCU and reducing the load rate of the MCU while ensuring the detection of invalid messages.
[0101] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the term "comprising" or any other variations thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0102] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A message processing method, characterized in that, Applications in message processing chips include: The low-latency communication engine of the control message processing chip receives CAN messages transmitted via the CAN bus. The first core of the message processing chip is used to obtain invalid messages from the CAN message. The first core is the invalid message identification core of the message processing chip.
2. The method according to claim 1, characterized in that, The step of using the first core of the message processing chip to obtain invalid messages from the CAN message includes: Enable the first core of the message processing chip; Extract the identification data of the CAN message; The identification data is filtered using the filtering rules of the first kernel to obtain invalid messages from the CAN messages.
3. The method according to claim 2, characterized in that, After obtaining invalid messages from the CAN messages using the first core of the message processing chip, the method further includes: Extract the feature information of the illegal messages in the first kernel; The feature information is stored in the first cache space of the message processing chip; Identify the memory usage value of the first cache space; If the memory usage exceeds the threshold, the first kernel controls the first cache space to upload the feature information to the cloud.
4. The method according to claim 1, characterized in that, After the low-latency communication engine controlling the message processing chip receives the CAN message transmitted via the CAN bus, the method further includes: Enable the second core of the message processing chip, wherein the second core is the legitimate message identification core of the message processing chip; Extract the identification data of the CAN message; The identification data is filtered using the filtering rules of the second kernel to obtain legitimate messages from the CAN messages.
5. The method according to claim 4, characterized in that, After the first kernel controls the first cache space to upload the feature information to the cloud, the method further includes: Obtain the updated data transmitted from the cloud; The updated data is transmitted to the first kernel cache space of the first kernel and the second kernel cache space of the second kernel; The updated data is used to update the cached data in the first kernel cache space and the second kernel cache space respectively, generating a new first kernel and a new second kernel.
6. A message processing apparatus, characterized in that, Integrated into the message processing chip, including: The receiving module is used to control the low-latency communication engine of the message processing chip to receive CAN messages transmitted via the CAN bus. The acquisition module is used to acquire invalid messages from the CAN messages using the first core of the message processing chip, wherein the first core is the invalid message identification core of the message processing chip.
7. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
8. A chip, characterized in that, The device includes one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from the memory of the electronic device and send the signals to the processors, the signals including computer instructions stored in the memory, which, when executed by the processors, cause the electronic device to perform the method of any one of claims 1-5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1-5.
10. A vehicle, characterized in that, The vehicle is equipped with the device as described in claim 6, or the electronic chip as described in claim 7.