A vehicle network communication event filtering method, device, equipment and medium

By selectively filtering packets in vehicle network communication, the problem of excessive controller load caused by high concurrent and large traffic packets is solved, and real-time and security are improved.

CN115550265BActive Publication Date: 2025-02-21CHINA FAW CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211218044.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2025-02-21
Estimated Expiration
2042-09-30

AI Technical Summary

Technical Problem

In the on-board AUTOSAR architecture, high concurrent and high traffic network packets cause excessive load on the controller's computing core, which may cause message sending frames, resolution failure, program execution abnormalities and even downtime. The prior art event triggering sending method fails to effectively solve the problem of high load.

Method used

By obtaining the pending packets sent by the communication bus, and identifying their corresponding message filtering category. When the message filtering category is the category to be filtered, the target message filtering policy is matched for the pending message, and the to be processed messages are selectively filtered according to the policy.

Benefits of technology

It reduces the load on the controller's computing core by network communication messages, improves the real-time nature of the controller's events and the safety of vehicle driving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115550265B_ABST
    Figure CN115550265B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a vehicle network communication event filtering method, device, equipment and medium, wherein the method includes: obtaining a to-be-processed message sent by any communication bus, and identifying the message filtering category corresponding to the to-be-processed message; when the message filtering category is a to-be-filtered message category, matching the to-be-processed message with a target message filtering strategy; filtering the to-be-processed message according to the target message filtering strategy. The technical solution of the embodiment of the present invention solves the problems in the prior art that network communication messages have a high load on the controller computing core, the filtering effect of network communication messages is insufficient, and there is compatibility with the vehicle communication architecture. The network communication messages can be selectively filtered according to the configured filtering strategy, thereby reducing the load of the network communication messages on the controller computing core, and improving the real-time performance of the controller in processing events and the safety of vehicle driving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of communication technology, and in particular to a method, device, equipment and medium for filtering vehicle network communication events. Background Art

[0002] In the automotive AUTOSAR (AUTomotive Open System Architecture) architecture, the amount of computing power of the on-board controller is growing exponentially. The occupation of the computing core power by the on-board network communication has become a problem that cannot be ignored. When receiving high-concurrency and high-traffic messages, it is easy to cause insufficient core computing power, resulting in frame loss in message sending, failure in parsing received messages, failure to execute established programs as expected, and even restarting of downed programs.

[0003] In the prior art, some methods have begun to adopt the method of setting lower priority messages as event-triggered sending to reduce the load on the receiver. However, due to the different software architectures of various controllers on the market, compatibility issues will arise, and this method does not fundamentally solve the problem of high load caused by high-traffic and high-concurrency network messages. Summary of the invention

[0004] The embodiments of the present invention provide a method, device, equipment and medium for filtering vehicle-mounted network communication events, which can selectively filter network communication messages according to the configured filtering strategy, reduce the load of network communication messages on the controller computing core, and improve the real-time performance of the controller in processing events and the safety of vehicle driving.

[0005] In a first aspect, an embodiment of the present invention provides a method for filtering vehicle network communication events, the method comprising:

[0006] Obtain a message to be processed sent by any communication bus, and identify a message filtering category corresponding to the message to be processed;

[0007] When the message filtering category is the message category to be filtered, matching the target message filtering policy for the message to be processed;

[0008] The to-be-processed messages are filtered according to the target message filtering policy.

[0009] In a second aspect, an embodiment of the present invention provides a vehicle network communication event filtering device, the device comprising:

[0010] A message filtering category determination module, used to obtain a message to be processed sent by any communication bus, and identify the message filtering category corresponding to the message to be processed;

[0011] A message filtering policy matching module, used for matching a target message filtering policy for the message to be processed when the message filtering category is a message category to be filtered;

[0012] The message filtering processing module is used to filter the message to be processed according to the target message filtering policy.

[0013] In a third aspect, an embodiment of the present invention provides a computer device, the computer device comprising:

[0014] one or more processors;

[0015] A memory for storing one or more programs;

[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle network communication event filtering method described in any embodiment.

[0017] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the vehicle network communication event filtering method described in any embodiment.

[0018] The technical solution provided by the embodiment of the present invention obtains the pending message sent by any communication bus and identifies the message filtering category corresponding to the pending message; when the message filtering category is the to-be-processed message category, matches the pending message with the target message filtering strategy; and filters the pending message according to the target message filtering strategy. The technical solution of the embodiment of the present invention solves the problems in the prior art that network communication messages have a high load on the controller computing core, the filtering effect of network communication messages is insufficient, and there is compatibility with the vehicle communication architecture. The network communication messages can be selectively filtered according to the configured filtering strategy, thereby reducing the load of the network communication messages on the controller computing core and improving the real-time performance of the controller in processing events and the safety of vehicle driving. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flow chart of a vehicle network communication event filtering method provided by an embodiment of the present invention;

[0020] Figure 2 It is a structural diagram of a vehicle network communication message transmission device provided by an embodiment of the present invention;

[0021] Figure 3 It is a flow chart of a vehicle network communication event filtering method provided by an embodiment of the present invention;

[0022] Figure 4 It is a flow chart of vehicle network communication message filtering provided by an embodiment of the present invention;

[0023] Figure 5 It is a structural schematic diagram of a vehicle network communication event filtering device provided by an embodiment of the present invention;

[0024] Figure 6 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] According to the AUTOSAR architecture, the path for messages from the physical layer to the application layer is: from the bus driver module to the bus interface module, then to other AUTOSAR basic software modules, then to the RTE (Runtime environment) interface, and finally to the application layer.

[0027] Among them, the bus driver module is used to identify the specified bus frame and convert the electrical signal into a digital signal; the bus interface module is used to isolate the other layers of the basic software from the driver layer and receive the physical signals transmitted by the driver layer; the RTE interface is used for the virtual data bus to isolate the basic software from the application layer; the application layer is used to process the message and implement corresponding strategies.

[0028] Figure 1 It is a flow chart of a vehicle network communication event filtering method provided by an embodiment of the present invention. The embodiment of the present invention can be applied to the scenario of filtering vehicle network communication messages. The method can be executed by a vehicle network communication event filtering device, which can be implemented by software and / or hardware.

[0029] like Figure 1 As shown, the vehicle network communication event filtering method includes the following steps:

[0030] S110: Obtain a message to be processed sent by any communication bus, and identify a message filtering category corresponding to the message to be processed.

[0031] Among them, the communication bus is used to transmit the pending messages sent by the physical layer. The pending messages represent each message that originally needs to be sent from the physical layer to the application layer, and are messages that have not been judged whether they need to be filtered. The pending messages can represent vehicle network communication events; the pending messages include CAN (Controller Area Network) messages, LIN (Local Interconnect Network) messages, and ETH (Ethernet) messages. The message filtering category represents the filtering category corresponding to the pending message. The message filtering category includes filtering category and non-filtering category. The pending messages belonging to the filtering category need to be filtered, and the pending messages belonging to the non-filtering category do not need to be filtered. Specifically, the data in the pending message can be identified to determine the preset message type corresponding to the pending message, and the message filtering category corresponding to the pending message can be determined.

[0032] Specifically, Figure 2 is a structural diagram of a vehicle network communication message transmission device provided by an embodiment of the present invention, such as Figure 2 As shown, the vehicle network communication message transmission device includes an EDF (Event-Driven Filter) module, a CANIF (Controller Area Network Interface) module, an ETHIF (Ethernet Interface) module, and a LINIF (Local Interconnect Network Interface) module. Among them, the CANIF module is used to transmit CAN messages, the ETHIF module is used to transmit ETH messages, the LINIF module is used to transmit LIN messages, and the EDF module is used to filter CAN messages, ETH messages, and LIN messages.

[0033] S120: When the message filtering category is a message category to be filtered, match the message to be processed with a target message filtering policy.

[0034] Among them, the message filtering category includes the non-filtered message category and the to-be-filtered message category. The to-be-processed messages of the non-filtered message category do not need to be filtered, and the to-be-processed messages of the to-be-filtered message category need to be further determined to determine whether they need to be filtered. The target message filtering policy indicates that when the message filtering category of the to-be-processed message is the to-be-filtered message category, the message filtering policy corresponding to the to-be-processed message can be further determined through the target message filtering policy whether the to-be-processed message needs to be filtered.

[0035] S130: Filter the to-be-processed message according to the target message filtering policy.

[0036] Among them, it can be judged whether the message to be processed meets the message filtering condition in the target message filtering policy. If the target message filtering policy is met, there is no need to filter the message to be processed. If the message filtering condition is not met, the message to be processed needs to be filtered. For example, when the message to be processed represents the collected driving mileage, the message filtering condition in the target message filtering policy can be set to: whether the difference between the driving mileage collected this time and the mileage collected last time is greater than 0.1 kilometers. If the difference between the driving mileage collected this time and the mileage collected last time is greater than 0.1 kilometers, then there is no need to filter the message to be processed. If the difference between the driving mileage collected this time and the mileage collected last time is not greater than 0.1 kilometers, then there is no need to filter the message to be processed.

[0037] The technical solution provided by the embodiment of the present invention obtains the pending message sent by any communication bus and identifies the message filtering category corresponding to the pending message; when the message filtering category is the message category to be filtered, the pending message is matched with the target message filtering strategy; according to the target message filtering strategy, the pending message is filtered. The technical solution of the embodiment of the present invention solves the problems in the prior art that the network communication message has a high load on the controller computing core, the filtering effect of the network communication message is insufficient, and there is compatibility with the vehicle communication architecture. The network communication message can be selectively filtered according to the configured filtering strategy, thereby reducing the load of the network communication message on the controller computing core, improving the real-time performance of the controller in processing events and the safety of vehicle driving.

[0038] Figure 3 It is a flow chart of a vehicle network communication event filtering method provided by an embodiment of the present invention. The embodiment of the present invention can be applied to the scenario of filtering vehicle network communication messages. Based on the above embodiment, this embodiment further illustrates how to identify the message filtering category corresponding to the message to be processed and filter the message to be processed. The device can be implemented by software and / or hardware and integrated in a computer device with application development function.

[0039] like Figure 3 As shown, the vehicle network communication event filtering method includes the following steps:

[0040] S210: Obtain a message to be processed sent by any communication bus, and determine a message filtering category corresponding to the message to be processed according to an event type corresponding to the message to be processed.

[0041] Among them, the message to be processed refers to the message that has not been judged whether it needs to be filtered. The message to be processed can represent an in-vehicle network communication event. The messages to be processed include CAN messages, LIN messages and ETH messages. The event type indicates the type of in-vehicle network communication event corresponding to the message to be processed. The event types include oil temperature report events, door status report events, mileage data report events and remaining fuel report events. The event type can be preset according to filtering needs. The message filtering category indicates the filtering category corresponding to the message to be processed. Different message filtering categories correspond to different filtering strategies. Specifically, the event type corresponding to the message to be processed can be determined by identifying the data in the message to be processed, and then the message filtering category corresponding to the message to be processed can be determined.

[0042] S220. According to the same corresponding event type, match the corresponding event message filtering policy for the message to be processed as the target message filtering policy.

[0043] Among them, the event message filtering policy represents the strategy for filtering the messages to be processed. The event type corresponds to the corresponding event message filtering policy. The event type corresponding to the message to be processed can be used to match the event message filtering policy corresponding to the event type, and then the event message filtering policy corresponding to the message to be processed can be determined and used as the target message filtering policy for the message to be processed.

[0044] Specifically, Table 1 is a vehicle network communication event filtering strategy table provided by an embodiment of the present invention.

[0045] Table 1

[0046]

[0047]

[0048] As shown in Table 1, the event type of the message can be determined according to the meaning of the message, and then the filtering strategy of the message can be determined. "Always update" means that the message does not need to be filtered, and "event driven" means that when the message meets the "update condition event", it does not need to be filtered, otherwise it needs to be filtered.

[0049] Among them, the filtering strategy for vehicle speed message, air bag status message and brake command message is always updated without filtering; the filtering strategy for oil temperature message is event-driven, and the update condition event of the message is: the data collected by the bus differs from the data analyzed last time by more than 1 degree Celsius; the filtering strategy for door status message is event-driven, and the update condition event of the message is: there is a difference between the data collected by the bus and the data analyzed last time; the filtering strategy for mileage message is event-driven, and the update condition event of the message is: the data collected by the bus differs from the data analyzed last time by more than 0.1 kilometers; the filtering strategy for remaining fuel message is event-driven, and the update condition event of the message is: update every 10 seconds.

[0050] S230: Compare the target message data in the message to be processed with the reference message data obtained by parsing the message of the same event type last time.

[0051] Among them, the target message data represents the data that needs to be analyzed in the message to be processed, and the reference message data represents the data in the message with the same event type as the message to be processed that was parsed last time. According to the target message filtering strategy, based on the comparison result of the target message data in the message to be processed and the reference message data obtained from the previous parsing of the message with the same event type, it can be determined whether the message to be processed needs to be filtered.

[0052] S240: When the difference between the target message data and the reference message data is less than a preset value, filter the message to be processed.

[0053] Among them, the preset value represents a preset value determined according to the target message filtering strategy. When the difference between the target message data and the reference message data is less than the preset value, it indicates that the message to be processed is a repeated and redundant message, and the message to be processed is filtered. When the difference between the target message data and the reference message data is greater than the preset value, the message to be processed is not filtered. For example, when the message to be processed is an oil temperature report message, 1 degree Celsius can be set as the preset value to determine whether the difference between the oil temperature value in the message to be processed and the oil temperature value in the last oil temperature report message is less than 1 degree Celsius. When the difference between the oil temperature value in the message to be processed and the oil temperature value in the last oil temperature report message is less than 1 degree Celsius, the message to be processed is filtered; when the difference between the oil temperature value in the message to be processed and the oil temperature value in the last oil temperature report message is greater than 1 degree Celsius, the message to be processed is not filtered.

[0054] In an optional implementation, the time of the message to be processed can also be obtained to determine the time interval of the message with the same event type as the message to be processed in the previous analysis; when the time interval is less than the preset time threshold, the message to be processed is filtered. Different judgment strategies can be set according to different message contents.

[0055] Among them, when the time interval is less than the preset time threshold, it means that the message to be processed is a repeated and redundant message, and the message to be processed is filtered; when the time interval is greater than the preset time threshold, the message to be processed is not filtered. For example, when the message to be processed is a remaining fuel report message, 10 seconds can be set as the preset time threshold to determine whether the time interval between the message to be processed and the last received remaining fuel report message is greater than 10 seconds. When the time interval is less than 10 seconds, the remaining fuel report message is filtered; when the time interval is greater than 10 seconds, the remaining fuel report message is not filtered.

[0056] In an optional implementation, when the message filtering category is a non-filtering message category, the message to be processed is sent to the target application interface.

[0057] Among them, the event types of messages corresponding to the non-filtered message category include vehicle speed reporting events, airbag status reporting events and brake command reporting events. The target application interface is used to receive unfiltered pending messages and send unfiltered pending messages to the application layer for further processing.

[0058] Specifically, Figure 4 is a vehicle network communication message filtering flow chart provided by an embodiment of the present invention, such as Figure 4 As shown, the message is sent by the bus driver module to the bus interface module, that is, the EDF module. When the vehicle speed message is identified, the update condition is directly met and released to other modules, and the data is passed to APP (APPLICATION) for processing and corresponding strategies; when the oil temperature message is identified, it is determined whether the update condition is met. If the update condition is met, it is released to other modules and the data is passed to APP for processing and corresponding strategies; when the remaining fuel message is identified, it is determined whether the update condition is met. If it does not meet the update condition, the remaining fuel message is filtered, and the data of the remaining fuel message is not passed to the upper layer, and other processes are executed next.

[0059] The technical solution provided by the embodiment of the present invention obtains the message to be processed sent by any communication bus, and determines the message filtering category corresponding to the message to be processed according to the event type corresponding to the message to be processed; matches the corresponding event message filtering strategy for the message to be processed according to the event type corresponding to the message to be processed as the target message filtering strategy; compares the target message data in the message to be processed with the reference message data obtained from the previous analysis of the message of the same event type; when the difference between the target message data and the reference message data is less than a preset value, the message to be processed is filtered. The technical solution of the embodiment of the present invention solves the problems in the prior art that the network communication message has a high load on the controller computing core, the filtering effect of the network communication message is insufficient, and there is compatibility with the vehicle communication architecture. The network communication message can be selectively filtered according to the configured filtering strategy to reduce the load of the network communication message on the controller computing core, improve the real-time performance of the controller in processing events and the safety of vehicle driving.

[0060] Figure 5 It is a structural schematic diagram of a vehicle network communication event filtering device provided by an embodiment of the present invention. The embodiment of the present invention can be applied to the scenario of filtering vehicle network communication messages. The device can be implemented by software and / or hardware and integrated into a computer device with application development function.

[0061] like Figure 5 As shown, the vehicle network communication event filtering device includes: a message filtering category determination module 310, a message filtering strategy matching module 320 and a message filtering processing module 330.

[0062] The message filtering category determination module 310 is used to obtain a message to be processed sent by any communication bus and identify a message filtering category corresponding to the message to be processed;

[0063] The message filtering policy matching module 320 is used to match the target message filtering policy for the message to be processed when the message filtering category is the message category to be filtered;

[0064] The message filtering processing module 330 is used to filter the messages to be processed according to the target message filtering policy.

[0065] The technical solution provided by the embodiment of the present invention obtains the pending message sent by any communication bus and identifies the message filtering category corresponding to the pending message; when the message filtering category is the message category to be filtered, the pending message is matched with the target message filtering strategy; according to the target message filtering strategy, the pending message is filtered. The technical solution of the embodiment of the present invention solves the problems in the prior art that the network communication message has a high load on the controller computing core, the filtering effect of the network communication message is insufficient, and there is compatibility with the vehicle communication architecture. The network communication message can be selectively filtered according to the configured filtering strategy, thereby reducing the load of the network communication message on the controller computing core, improving the real-time performance of the controller in processing events and the safety of vehicle driving.

[0066] In an optional implementation, the message filtering category determination module 310 is specifically used to determine the message filtering category corresponding to the message to be processed according to the event type corresponding to the message to be processed, wherein different event types correspond to different message filtering categories.

[0067] In an optional implementation, the message filtering policy matching module 320 is specifically used to: match the message to be processed with the corresponding event message filtering policy as the target message filtering policy according to the event type corresponding to the message to be processed.

[0068] In an optional implementation, the message filtering policy matching module 320 is specifically used to: compare the target message data in the message to be processed with the reference message data obtained by parsing the message of the same event type last time;

[0069] When the difference between the target message data and the reference message data is less than a preset value, the message to be processed is filtered.

[0070] In an optional implementation, the message filtering policy matching module 320 is further used to: determine the time interval of the message with the same event type as the message to be processed as parsed last time according to the time when the message to be processed is acquired;

[0071] When the time interval is less than the preset time threshold, the message to be processed is filtered.

[0072] In an optional implementation, the vehicle network communication event filtering device further includes a non-filtered message uploading module, which is used to send the message to be processed to the target application interface when the message filtering category is a non-filtered message category;

[0073] Among them, the event types of the messages corresponding to the non-filtered message category include vehicle speed report events, airbag status report events and brake command report events.

[0074] In an optional implementation, the event type includes: one or more of an oil temperature reporting event, a vehicle door status reporting event, a mileage data reporting event, and a remaining fuel reporting event.

[0075] The vehicle network communication event filtering device provided in the embodiment of the present invention can execute the vehicle network communication event filtering method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0076] Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Figure 6 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 6 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention. The computer device 12 can be any terminal device with computing capability and can be configured in the vehicle network communication event filtering device.

[0077] like Figure 6 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0078] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0079] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0080] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0081] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0082] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be understood that although Figure 6 Not shown, other hardware and / or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0083] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing the vehicle network communication event filtering method provided by the embodiment of the present invention, the method comprising:

[0084] Obtain a message to be processed sent by any communication bus, and identify a message filtering category corresponding to the message to be processed;

[0085] When the message filtering category is the message category to be filtered, matching the target message filtering policy for the message to be processed;

[0086] The to-be-processed messages are filtered according to the target message filtering policy.

[0087] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the vehicle network communication event filtering method provided by any embodiment of the present invention is implemented, including:

[0088] Obtain a message to be processed sent by any communication bus, and identify a message filtering category corresponding to the message to be processed;

[0089] When the message filtering category is the message category to be filtered, matching the target message filtering policy for the message to be processed;

[0090] The to-be-processed messages are filtered according to the target message filtering policy.

[0091] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0092] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0093] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0094] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or combinations thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0095] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0096] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A vehicle network communication event filtering method, applied to the communication interface layer of the automotive open system architecture, characterized in that: include: Obtain a message to be processed sent by any communication bus, and identify a message filtering category corresponding to the message to be processed; When the message filtering category is a message category to be filtered, matching the target message filtering policy for the message to be processed; Filtering the to-be-processed message according to the target message filtering strategy; The step of identifying the message filtering category corresponding to the message to be processed includes: Determine the message filtering category corresponding to the message to be processed according to the event type corresponding to the message to be processed; wherein the event type indicates the type of the vehicle network communication event corresponding to the message to be processed; different event types correspond to different message filtering categories; The filtering strategy for matching the to-be-processed message with a target message includes: According to the event type corresponding to the message to be processed, the message to be processed is matched with a corresponding event message filtering strategy as a target message filtering strategy; The filtering of the to-be-processed message according to the target message filtering policy includes: Comparing the target message data in the message to be processed with the reference message data obtained by parsing the message of the same event type last time; When the difference between the target message data and the reference message data is less than a preset value, filtering the message to be processed; and / or; Determine, according to the time when the message to be processed is obtained, the time interval between the last parsing of the message with the same event type as the message to be processed; When the time interval is less than a preset time threshold, the message to be processed is filtered.

2. The method according to claim 1, characterized in that The method further comprises: When the message filtering category is a non-filtering message category, sending the message to be processed to a target application interface; The event types of the messages corresponding to the non-filtered message category include vehicle speed report events, airbag status report events and brake command report events.

3. The method according to any one of claims 1-2, characterized in that: The event types include: One or more of an oil temperature reporting event, a vehicle door status reporting event, a mileage data reporting event, and a remaining fuel reporting event.

4. A vehicle network communication event filtering device, characterized in that: include: A message filtering category determination module, used to obtain a message to be processed sent by any communication bus, and identify the message filtering category corresponding to the message to be processed; A message filtering policy matching module, used for matching a target message filtering policy for the message to be processed when the message filtering category is a message category to be filtered; A message filtering processing module, used for filtering the message to be processed according to the target message filtering policy; The message filtering category determination module is specifically used to: determine the message filtering category corresponding to the message to be processed according to the event type corresponding to the message to be processed; wherein the event type indicates the type of the vehicle network communication event corresponding to the message to be processed; different event types correspond to different message filtering categories; The message filtering policy matching module is specifically used to: match the event message filtering policy corresponding to the message to be processed according to the event type corresponding to the message to be processed, as the target message filtering policy; The message filtering strategy matching module is specifically used to: compare the target message data in the message to be processed with the reference message data obtained by parsing the message of the same event type last time; when the difference between the target message data and the reference message data is less than a preset value, filter the message to be processed; The message filtering policy matching module is also used to: determine the time interval of messages with the same event type as the message to be processed as parsed last time according to the time when the message to be processed is obtained; when the time interval is less than a preset time threshold, filter the message to be processed.

5. A computer device, characterized in that: The computer device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle network communication event filtering method as described in any one of claims 1-3.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the vehicle network communication event filtering method as described in any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • RR frame filtering method and system

    CN106656652A

  • Message filtering method and device, terminal, and readable storage medium

    CN107708194A

  • LED street lamp information terminal with remote transmission function and information acquisition and processing method

    CN108107794A

  • CAN message data processing method and device

    CN114826818A