A bus filtering method and apparatus for calibration.
By detecting the CAN ID of the calibration message in the bus filtering device, forwarding it only to the CAN controller and blocking it on the bus, the problems of message loss and untimely response during vehicle calibration are solved, thus improving the efficiency of calibration work.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WENZHOU CHANGJIANG AUTOMOBILE ELECTRONICS SYST
- Filing Date
- 2023-01-05
- Publication Date
- 2026-05-26
AI Technical Summary
During vehicle calibration, excessively high bus load rates can lead to lost calibration messages or delayed responses, affecting calibration efficiency.
By detecting the CAN ID of the calibration message in the bus filtering device, the calibration message is forwarded only to the CAN controller and blocked from being forwarded to the vehicle CAN bus, ensuring that the calibration message does not occupy the bus capacity and preventing irrelevant messages from entering the CAN controller.
It improves calibration efficiency, prevents calibration messages from being lost or not responding in time on the vehicle's CAN bus, and ensures a smooth calibration process.
Smart Images

Figure CN116069708B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle communication technology, and in particular to a bus filtering method and apparatus used in calibration. Background Technology
[0002] Currently, during vehicle calibration, due to the high bus load rate, too many or short-cycle calibration messages cannot be set. Otherwise, because the CAN ID priority of the calibration message is relatively low, it will be lost or not responded to in a timely manner, which will seriously affect the efficiency of the calibration work.
[0003] Therefore, it is necessary to improve the situation of lost calibration messages or untimely response during vehicle calibration in order to improve the efficiency of calibration work. Summary of the Invention
[0004] The technical problem to be solved by the embodiments of the present invention is to provide a bus filtering method and apparatus for calibration, which can improve the situation of calibration message loss or untimely response during vehicle calibration, thereby improving the efficiency of calibration work.
[0005] To address the aforementioned technical problems, this invention provides a bus filtering method for calibration, implemented on a bus filtering device used in calibration. One end of the bus filtering device is connected to a vehicle CAN bus, and the other end is connected to a calibration device and a CAN controller. The method includes the following steps:
[0006] Detect whether a calibration message generated when the calibration device calibrates the CAN controller is received;
[0007] If the calibration message is detected, the calibration message is forwarded only to the CAN controller, and the forwarding of the calibration message to the vehicle CAN bus is blocked.
[0008] In addition to the calibration message, other CAN messages on the CAN controller include diagnostic messages, network management messages, and application messages.
[0009] Specifically, blocking the forwarding of the calibration message to the vehicle CAN bus is achieved by filtering the CAN ID of the calibration message.
[0010] The calibration message consists of a CAN ID, an 11-bit standard CAN message, and a 29-bit extended CAN message.
[0011] This invention also provides a bus filtering device for calibration, one end of which is connected to a vehicle CAN bus, and the other end is connected to a calibration device and a CAN controller, comprising:
[0012] The message detection unit is used to detect whether a calibration message is received when the calibration device calibrates the CAN controller.
[0013] The message filtering unit is configured to, if it detects that the calibration message has been received, forward only the calibration message to the CAN controller and block the forwarding of the calibration message to the vehicle CAN bus.
[0014] In addition to the calibration message, other CAN messages on the CAN controller include diagnostic messages, network management messages, and application messages.
[0015] Specifically, blocking the forwarding of the calibration message to the vehicle CAN bus is achieved by filtering the CAN ID of the calibration message.
[0016] The calibration message consists of a CAN ID, an 11-bit standard CAN message, and a 29-bit extended CAN message.
[0017] Implementing the embodiments of the present invention has the following beneficial effects:
[0018] This invention detects that when a calibration message is received, it only forwards the calibration message to the CAN controller and blocks forwarding it to the vehicle CAN bus. This prevents the calibration message from reaching the vehicle CAN bus and increasing its load. At the same time, it prevents irrelevant messages from entering the CAN controller at the filtering backend, thus avoiding calibration message blockage and loss. This improves the situation of calibration message loss or untimely response during vehicle calibration and increases calibration efficiency. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, obtaining other drawings based on these drawings without creative effort still falls within the scope of the present invention.
[0020] Figure 1 A flowchart illustrating a bus filtering method used during calibration, provided in an embodiment of the present invention;
[0021] Figure 2 This invention provides a network topology diagram of a bus filtering device used for calibration timing, a vehicle CAN bus, a calibration device, and a CAN controller in a bus filtering method for calibration timing provided in an embodiment of the invention.
[0022] Figure 3This is a schematic diagram of a bus filtering device used for calibration according to an embodiment of the present invention. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings.
[0024] The inventors discovered that if a CAN controller (or other CAN node device requiring calibration) is directly connected to the vehicle's CAN bus, although the CAN controller has message filtering capabilities, if the vehicle's CAN bus load rate is too high, low-priority messages (XCP / CCP messages) will be blocked due to the vehicle's CAN bus arbitration mechanism. Therefore, the inventors hope that designated messages (such as calibration messages) received and sent by the CAN controller do not need to be transmitted to the vehicle's CAN bus to preempt the vehicle's CAN bus capacity.
[0025] Therefore, such as Figure 1 As shown in the embodiment of the present invention, the inventor proposes a bus filtering method for calibration, which is implemented on a bus filtering device for calibration. One end of the bus filtering device for calibration is connected to the vehicle CAN bus, and the other end is connected to a calibration device and a CAN controller, such as... Figure 2 As shown;
[0026] The specific implementation method of the bus filtering device used in this calibration includes the following steps:
[0027] Step S1: Detect whether a calibration message generated by the calibration device during the calibration of the CAN controller has been received;
[0028] Step S2: If the calibration message is detected to be received, the calibration message is forwarded only to the CAN controller, and the forwarding of the calibration message to the vehicle CAN bus is blocked.
[0029] The specific process is as follows: before step S1, the corresponding filtering mechanism is set in advance for the bus filtering device used during calibration, including the filtering mechanism that only forwards the calibration message to the CAN controller when the calibration message is received, and blocks the forwarding of the calibration message.
[0030] In step S1, the bus filtering device used during calibration has a preset detection period (e.g., once every 5 seconds) and periodically checks whether it receives calibration messages generated when the calibration device calibrates the CAN controller. The calibration message consists of a CAN ID, an 11-bit standard CAN message, and a 29-bit extended CAN message. The calibration message is blocked from being forwarded to the vehicle's CAN bus by filtering the CAN ID of the calibration message.
[0031] In step S2, if the bus filtering device used during calibration detects that a calibration message has been received, it will only forward the calibration message to the CAN controller and block the forwarding of the calibration message to the vehicle CAN bus. This ensures the normal working environment of the calibration message and prevents the calibration message from being sent to the vehicle CAN bus and occupying bus capacity. It should be noted that the calibration message frequency varies depending on the DAQ, such as 10ms, 20ms, 50ms, etc. If a large amount of data is monitored simultaneously, it will occupy 50%-80% of the bus bandwidth.
[0032] In this embodiment of the invention, except for the calibration message, the CAN controller and the vehicle CAN bus maintain continuous message transmission and reception; that is, messages other than the calibration message maintain normal communication. These other CAN messages on the CAN controller, besides the calibration message, include, but are not limited to, diagnostic messages, network management messages, and application messages.
[0033] like Figure 3 As shown in the illustration, a bus filtering device for calibration is provided in an embodiment of the present invention. One end of the device is connected to the vehicle's CAN bus, and the other end is connected to a calibration device and a CAN controller. Please refer to the diagram for the connection details. Figure 2 As shown;
[0034] At this time, the bus filtering device used in the calibration specifically includes:
[0035] The message detection unit 110 is used to detect whether a calibration message is received when the calibration device calibrates the CAN controller.
[0036] The message filtering unit 120 is configured to, if it detects that the calibration message has been received, forward only the calibration message to the CAN controller and block the forwarding of the calibration message to the vehicle CAN bus.
[0037] In addition to the calibration message, other CAN messages on the CAN controller include diagnostic messages, network management messages, and application messages.
[0038] Specifically, blocking the forwarding of the calibration message to the vehicle CAN bus is achieved by filtering the CAN ID of the calibration message.
[0039] The calibration message consists of a CAN ID, an 11-bit standard CAN message, and a 29-bit extended CAN message.
[0040] Implementing the embodiments of the present invention has the following beneficial effects:
[0041] This invention detects that when a calibration message is received, it only forwards the calibration message to the CAN controller and blocks forwarding it to the vehicle CAN bus. This prevents the calibration message from reaching the vehicle CAN bus and increasing its load. At the same time, it prevents irrelevant messages from entering the CAN controller at the filtering backend, thus avoiding calibration message blockage and loss. This improves the situation of calibration message loss or untimely response during vehicle calibration and increases calibration efficiency.
[0042] It is worth noting that the various units included in the above system embodiments are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.
[0043] Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as ROM / RAM, disk, optical disk, etc.
[0044] The above description is merely a preferred embodiment of the present invention and should not be construed as limiting the scope of the invention. Therefore, any equivalent variations made in accordance with the claims of the present invention are still within the scope of the present invention.
Claims
1. A bus filtering method for use in calibration, characterized by, It is implemented on a bus filtering device used during calibration, one end of which is connected to the vehicle's CAN bus, and the other end is connected to a calibration device and a CAN controller; the method includes the following steps: Detect whether a calibration message generated when the calibration device calibrates the CAN controller is received; If the calibration message is detected, the calibration message is forwarded only to the CAN controller, and the forwarding of the calibration message to the vehicle CAN bus is blocked.
2. The bus filtering method for use in calibration as claimed in claim 1, wherein, Other CAN messages on the CAN controller besides the calibration message include diagnostic messages, network management messages, and application messages.
3. The bus filtering method used in calibration as described in claim 1, characterized in that, The blocking of the calibration message from being forwarded to the vehicle CAN bus is achieved by filtering the CAN ID of the calibration message.
4. The bus filtering method used in calibration as described in claim 3, characterized in that, The calibration message consists of a CAN ID, an 11-bit standard CAN message, and a 29-bit extended CAN message.
5. A bus filtering device used for calibration, characterized in that, One end connects to the vehicle's CAN bus, and the other end connects to calibration equipment and a CAN controller, including: The message detection unit is used to detect whether a calibration message is received when the calibration device calibrates the CAN controller. The message filtering unit is configured to, if it detects that the calibration message has been received, forward only the calibration message to the CAN controller and block the forwarding of the calibration message to the vehicle CAN bus.
6. The bus filtering device used for calibration as described in claim 5, characterized in that, Other CAN messages on the CAN controller besides the calibration message include diagnostic messages, network management messages, and application messages.
7. The bus filtering device used for calibration as described in claim 5, characterized in that, The blocking of the calibration message from being forwarded to the vehicle CAN bus is achieved by filtering the CAN ID of the calibration message.
8. The bus filtering device used for calibration as described in claim 7, characterized in that, The calibration message consists of a CAN ID, an 11-bit standard CAN message, and a 29-bit extended CAN message.