Method and system for realizing calibration CAN data communication by using communication CAN bus, vehicle, equipment and medium

By receiving and verifying calibration instructions on the communication CAN bus and performing corresponding operations, the problem of high vehicle costs caused by the use of separate CAN chips in the prior art by the use of separate CAN chips, and the integration and cost reduction of calibration CAN are achieved.

CN119892550APending Publication Date: 2025-04-25DEEPAL AUTOMOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510029965.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-08
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In the prior art, communication CAN and calibration CAN use separate CAN chips respectively, resulting in high vehicle cost.

Method used

After receiving calibration instructions using the communication CAN bus, verifying them, perform corresponding calibration operations and send calibration response data to the communication CAN bus.

Benefits of technology

The integration of calibrated CAN communication is realized, reducing the use of CAN chips and reducing the cost of the entire vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892550A_ABST
    Figure CN119892550A_ABST
Patent Text Reader

Abstract

The invention provides a method and a system for realizing calibration CAN data communication by using a communication CAN bus, a vehicle, equipment and a medium, which are used for solving the problem of high vehicle cost caused by the fact that a communication CAN and a calibration CAN respectively use independent CAN chips to realize related functions in the prior art. The method for realizing calibration CAN data communication by using the communication CAN bus comprises the following steps: receiving a calibration instruction by using the communication CAN bus, and verifying the calibration instruction; after the verification of the calibration instruction is passed, executing a corresponding calibration operation according to the calibration instruction; generating calibration response data according to an execution result of the calibration operation; and configuring a sending ID and a sending CAN channel for the calibration response data, and sending the calibration response data to a communication CAN bus by using the sending CAN channel and the sending ID.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application is used in the field of vehicle CAN, specifically a method, system, vehicle, equipment and medium for calibrating CAN data communication using a communication CAN bus. Background Art

[0002] Based on the cost reduction requirements of the whole vehicle project, the motor controller used in the whole vehicle has two CAN communication channels, one for calibration and one for communication. In the prior art, the calibration CAN requires a separate calibration CAN chip to implement related functions, resulting in high cost of the whole vehicle. Summary of the invention

[0003] The present application provides a method, system, vehicle, device and medium for realizing calibration CAN data communication by using a communication CAN bus, which is used to solve the problem of high vehicle cost caused by using separate CAN chips for communication CAN and calibration CAN to realize related functions in the prior art.

[0004] The technical solution of the present invention is:

[0005] The present invention provides a method for realizing calibration CAN data communication by using a communication CAN bus, comprising:

[0006] Receive the calibration instruction by using the communication CAN bus, and verify the calibration instruction;

[0007] After the calibration instruction is verified, a corresponding calibration operation is performed according to the calibration instruction;

[0008] Generating calibration response data according to the execution result of the calibration operation;

[0009] A sending ID and a sending CAN channel are configured for the calibration response data, and the calibration response data is sent to a communication CAN bus using the sending CAN channel and the sending ID.

[0010] Preferably, the step of receiving the calibration instruction by using the communication CAN bus and verifying the calibration instruction comprises:

[0011] Receive calibration instructions using a CAN bus channel of a communication CAN bus;

[0012] The receiving ID of the calibration instruction and the CAN channel from which the calibration instruction comes are verified.

[0013] Preferably, the step of verifying the receiving ID of the calibration instruction and the CAN channel from which the calibration instruction comes includes:

[0014] Comparing the receiving ID of the calibration instruction with the preset calibration communication ID;

[0015] Comparing the CAN channel from which the calibration instruction comes with a preset calibration communication CAN channel;

[0016] When the receiving ID of the calibration instruction is the same as the preset calibration communication ID and the CAN channel from which the calibration instruction comes is the same as the preset calibration communication CAN channel, it is determined that the verification of the calibration instruction is passed.

[0017] Preferably, after the calibration instruction is verified, the step of executing the corresponding calibration operation according to the calibration instruction includes:

[0018] After the receiving ID of the calibration instruction and the CAN channel from which the calibration instruction comes are both verified, the corresponding calibration operation is performed according to the calibration instruction.

[0019] Preferably, after the calibration instruction is verified, the step of performing a corresponding calibration operation according to the calibration instruction includes:

[0020] Parsing the calibration instruction according to the CCP specification to obtain a parsed instruction;

[0021] According to the parsed instruction, the corresponding calibration response function is called to perform the calibration operation corresponding to the instruction.

[0022] The present invention also provides a system for realizing calibration CAN data communication by using a communication CAN bus, comprising: a channel judgment module, an ID judgment module, a calibration function module and a communication module;

[0023] The communication module receives the calibration instruction via the communication CAN bus, and the ID judgment module and the channel judgment module verify the calibration instruction;

[0024] After the calibration instruction is verified, the calibration function module performs the corresponding calibration operation according to the calibration instruction;

[0025] The calibration function module generates calibration response data according to the execution result of the calibration operation;

[0026] The ID judgment module configures a sending ID for the calibration response data, the channel judgment module configures a sending CAN channel for the calibration response data, and the communication module uses the sending CAN channel and the sending ID to send the calibration response data to the communication CAN bus.

[0027] Preferably, the ID judgment module compares the receiving ID of the calibration instruction with a preset calibration communication ID;

[0028] The channel determination module compares the CAN channel from which the calibration instruction comes with a preset calibration communication CAN channel.

[0029] The present invention also provides a vehicle, comprising the above-mentioned system for realizing calibration CAN data communication by utilizing the communication CAN bus.

[0030] The present invention also provides a storage medium on which a computer program is stored. When the computer program is run on a computer, the computer is enabled to execute the above-mentioned method for realizing calibration of CAN data communication by using a communication CAN bus.

[0031] The present invention also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor calls the computer program to execute the method for calibrating CAN data communication using a communication CAN bus as described above.

[0032] The beneficial effects of the present invention are:

[0033] Integrate the calibration CAN communication into the communication CAN bus to realize the calibration function; thereby, the calibration CAN of the controller can be eliminated, the use of CAN chips can be reduced, and cost reduction requirements can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A flow chart of a method for implementing calibration CAN data communication using a communication CAN bus in an embodiment of the present application;

[0035] Figure 2 It is a detailed flowchart of the method for calibrating CAN data communication using the communication CAN bus in an embodiment of the present application. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0037] The embodiment of the present invention provides a method for realizing calibration CAN data communication by using a communication CAN bus, which is mainly used in vehicles or other complex systems that require precise calibration, and realizes the communication of calibration CAN data by using a communication CAN bus.

[0038] Reference Figure 1 and Figure 2 The method for realizing calibration CAN data communication by using the communication CAN bus includes:

[0039] S1. Receive calibration instructions via the communication CAN bus and verify the calibration instructions.

[0040] The step S1 specifically includes:

[0041] S11: Receive calibration instructions.

[0042] First, calibration commands are received through a specific CAN channel (e.g., CAN0 or CAN1) of the communication CAN bus. These calibration commands are usually issued by calibration tools (e.g., ETAS INCA, etc.) to modify or query certain parameters in the vehicle system.

[0043] S12: Verify the calibration instruction.

[0044] After receiving the calibration instruction, it is necessary to verify the calibration instruction to ensure that it comes from a legitimate source and has not been tampered with. The verification process includes two parts:

[0045] Verify the calibration command receiving ID: Compare the calibration command receiving ID with the preset calibration communication ID. If the two are the same, it means that the calibration command receiving ID is correct.

[0046] CAN channel verification of calibration command: Compare the CAN channel from which the calibration command comes with the preset calibration communication CAN channel. If the two are the same, it means that the calibration command comes from the correct CAN channel.

[0047] The calibration command is considered valid only when both the receiving ID and the CAN channel of the calibration command are verified.

[0048] S2. After the calibration instruction is verified, the corresponding calibration operation is performed according to the calibration instruction.

[0049] The step S2 specifically includes:

[0050] S21, parsing the calibration instruction.

[0051] First, the calibration command is parsed according to the CCP (CAN Calibration Protocol) specification to obtain the parsed command. CCP is a standard calibration protocol that defines the format and meaning of the calibration command.

[0052] S22. Call the calibration response function.

[0053] According to the parsed instructions, the corresponding calibration response function is called. These calibration response functions are pre-written and used to perform specific calibration operations, such as modifying parameter values, reading parameter values, etc.

[0054] S3. Generate calibration response data according to the execution result of the calibration operation.

[0055] The step S3 comprises:

[0056] S31. Generate calibration response data.

[0057] After the calibration operation is completed, calibration response data needs to be generated. These response data usually include the results of the calibration operation, status information, etc.

[0058] S4. Configure a sending ID and a sending CAN channel for the calibration response data, and use the sending CAN channel and the sending ID to send the calibration response data to the communication CAN bus.

[0059] The step S4 comprises:

[0060] S41. Configure the sending ID and CAN channel for calibration response data.

[0061] After generating the calibration response data, the system needs to configure the send ID and send CAN channel for it. The send ID is used to identify the source of the calibration response data, and the send CAN channel is used to determine which CAN channel the calibration response data is sent through.

[0062] S42. Send calibration response data.

[0063] Finally, the calibration response data is sent to the communication CAN bus using the configured send ID and send CAN channel. The calibration tool or other receiving end can obtain the calibration response data by monitoring the data on the CAN bus and judge whether the calibration operation is successful.

[0064] Through the method provided by the present invention, efficient and reliable calibration data communication can be achieved. Both calibration instructions and calibration response data are transmitted through the communication CAN bus, which not only improves the real-time and reliability of data transmission, but also reduces system complexity and cost. At the same time, through a strict verification mechanism, the legality and security of the calibration instructions are ensured.

[0065] In summary, the method for implementing calibration CAN data communication using the communication CAN bus provided by the embodiment of the present invention has the advantages of high efficiency, reliability, safety, etc. The method can be widely used in calibration work in the fields of vehicles, machinery, aerospace, etc., and provides strong support for precise control and optimization of the system.

[0066] The embodiment of the present application also provides a system for realizing calibration CAN data communication by using a communication CAN bus, including: a channel judgment module, an ID judgment module, a calibration function module and a communication module; the communication module receives calibration instructions through the communication CAN bus, and the ID judgment module and the channel judgment module verify the calibration instructions; after the calibration instructions are verified, the calibration function module executes the corresponding calibration operation according to the calibration instructions; the calibration function module generates calibration response data according to the execution result of the calibration operation; the ID judgment module configures a sending ID for the calibration response data, the channel judgment module configures a sending CAN channel for the calibration response data, and the communication module uses the sending CAN channel and the sending ID to send the calibration response data to the communication CAN bus.

[0067] Among them, the following Table 1 is the function definition of the channel judgment module in the design stage.

[0068]

[0069] Table 1

[0070] For example, define the calibrated CAN communication channel as channel 2 (communication CAN channel).

[0071] Table 2 below is the functional definition of the ID judgment module in the design phase.

[0072]

[0073]

[0074] Table 2

[0075] By checking the communication ID of the vehicle CAN, it is determined that the two calibration IDs 0x28B and 0x28C are unique in PTCAN.

[0076] In the embodiment of the present application, the calibration communication ID for calibrating the CAN data is defined as 0x28B and 0x28C; wherein, the receiving ID of the calibration instruction is configured as 0x28B, so that the software can receive data of 0x28B; and the sending ID of the calibration response data is configured as 0x28C.

[0077] Table 3 below shows the functional definition of the calibration function module in the design phase.

[0078]

[0079]

[0080] Table 3

[0081] Table 4 below is the functional definition of the communication module during the design phase.

[0082]

[0083] Table 4

[0084] The present invention also provides a vehicle, comprising the above-mentioned system for realizing calibration CAN data communication by utilizing the communication CAN bus.

[0085] The present invention also provides a storage medium on which a computer program is stored. When the computer program is run on a computer, the computer is enabled to execute the above-mentioned method for realizing calibration of CAN data communication by using a communication CAN bus.

[0086] The present invention also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor calls the computer program to execute the method for calibrating CAN data communication using a communication CAN bus as described above.

[0087] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0088] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0089] It should also be noted that, in this article, the orientation or position relationship indicated by the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, relational terms such as "first" and "second" are used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations, nor can they be understood as indicating or implying relative importance. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements does not include those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0090] The technical solution provided by the present invention is described in detail above. The principle and implementation mode of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the present invention, and the content of this specification should not be understood as limiting the present invention. At the same time, for those skilled in the art, according to the present invention, there will be different forms of changes in the specific implementation mode and application scope. It is not necessary and impossible to list all the implementation modes here, and the obvious changes or modifications derived therefrom are still within the protection scope of the present invention.

Claims

1. A method for calibrating CAN data communication using a communication CAN bus, characterized in that: include: Receive the calibration instruction by using the communication CAN bus, and verify the calibration instruction; After the calibration instruction is verified, a corresponding calibration operation is performed according to the calibration instruction; Generating calibration response data according to the execution result of the calibration operation; A sending ID and a sending CAN channel are configured for the calibration response data, and the calibration response data is sent to a communication CAN bus using the sending CAN channel and the sending ID.

2. The method for realizing calibration CAN data communication by using a communication CAN bus according to claim 1, characterized in that: The steps of receiving the calibration instruction by using the communication CAN bus and verifying the calibration instruction include: Receive calibration instructions using a CAN bus channel of a communication CAN bus; The receiving ID of the calibration instruction and the CAN channel from which the calibration instruction comes are verified.

3. The method for realizing calibration CAN data communication by using a communication CAN bus according to claim 2, characterized in that: The step of verifying the receiving ID of the calibration instruction and the CAN channel from which the calibration instruction comes includes: Comparing the receiving ID of the calibration instruction with the preset calibration communication ID; Comparing the CAN channel from which the calibration instruction comes with a preset calibration communication CAN channel; When the receiving ID of the calibration instruction is the same as the preset calibration communication ID and the CAN channel from which the calibration instruction comes is the same as the preset calibration communication CAN channel, it is determined that the verification of the calibration instruction is passed.

4. The method for calibrating CAN data communication using a communication CAN bus according to claim 2 or 3, characterized in that: After the calibration instruction is verified, the steps of executing the corresponding calibration operation according to the calibration instruction include: After the receiving ID of the calibration instruction and the CAN channel from which the calibration instruction comes are both verified, the corresponding calibration operation is performed according to the calibration instruction.

5. The method for calibrating CAN data communication using a communication CAN bus according to claim 1, characterized in that: After the calibration instruction is verified, the steps of performing the corresponding calibration operation according to the calibration instruction include: Parsing the calibration instruction according to the CCP specification to obtain a parsed instruction; According to the parsed instruction, the corresponding calibration response function is called to perform the calibration operation corresponding to the instruction.

6. A system for calibrating CAN data communication using a communication CAN bus, characterized in that: include: Channel judgment module, ID judgment module, calibration function module and communication module; The communication module receives the calibration instruction via the communication CAN bus, and the ID judgment module and the channel judgment module verify the calibration instruction; After the calibration instruction is verified, the calibration function module performs the corresponding calibration operation according to the calibration instruction; The calibration function module generates calibration response data according to the execution result of the calibration operation; The ID judgment module configures a sending ID for the calibration response data, the channel judgment module configures a sending CAN channel for the calibration response data, and the communication module uses the sending CAN channel and the sending ID to send the calibration response data to the communication CAN bus.

7. The system for realizing calibration CAN data communication by using communication CAN bus according to claim 6, characterized in that: The ID judgment module compares the received ID of the calibration instruction with a preset calibration communication ID; The channel determination module compares the CAN channel from which the calibration instruction comes with a preset calibration communication CAN channel.

8. A vehicle, characterized in that: It includes the system for realizing calibration CAN data communication by using the communication CAN bus as described in claim 6 or 7.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed on a computer, the computer executes the method for calibrating CAN data communication by using a communication CAN bus as described in any one of claims 1 to 5.

10. An electronic device comprising a processor and a memory, wherein the memory stores a computer program, characterized in that: The processor is used to execute the method for calibrating CAN data communication using a communication CAN bus as described in any one of claims 1 to 5 by calling the computer program.