A method, system, device and medium for multi-channel testing of CAN devices

By configuring single-channel and multi-channel test rules, the connection between CAN devices and battery cells and CAN bus is automatically switched, solving the problem of low efficiency in multi-channel testing of CAN devices in the existing technology, realizing efficient and flexible battery cell testing, and reducing testing costs.

CN116500471BActive Publication Date: 2026-06-23FUJIAN NEBULA ELECTRONICS CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
FUJIAN NEBULA ELECTRONICS CO LTD
Filing Date
2023-03-13
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

Existing technologies cannot efficiently and flexibly perform multi-channel testing of CAN devices, resulting in low testing efficiency and increased costs, and failing to meet the data transmission rate requirements of different battery cells.

Method used

By configuring single-channel and multi-channel test rules, the connection between CAN devices and battery units and CAN bus can be automatically switched to match different models of CAN devices, enabling flexible adjustment of test channels.

Benefits of technology

It improves the efficiency and flexibility of CAN equipment for battery cell testing, reduces testing costs, and enables the automatic acquisition of multiple sets of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116500471B_ABST
    Figure CN116500471B_ABST
Patent Text Reader

Abstract

The application provides a kind of CAN equipment multi-channel test method, system, device and medium in the field of automobile electronics, method includes the following steps: step S10, configuration a single-channel test rule and a multi-channel test rule;Step S20, based on the received battery unit test requirement matches the single-channel test rule or multi-channel test rule;Step S30, based on the single-channel test rule or multi-channel test rule automatically switches the communication connection of each CAN equipment and battery unit and CAN bus, and then obtains the test data of the test channel collection corresponding battery unit.The application has the advantages that: greatly improve the efficiency and flexibility of CAN equipment for testing battery unit, greatly reduce the test cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automotive electronics technology, and in particular to a multi-channel testing method, system, device, and medium for CAN devices. Background Technology

[0002] As a reliable automotive computer network bus, the CAN bus has been applied in many advanced vehicles. Applying the CAN bus to the intelligent sensors of the vehicle enables the signals obtained by the intelligent sensors to be transmitted in real time, reliably, at high speed and accurately through the CAN bus, allowing the various computer control units of the vehicle to share all information and resources through the CAN bus.

[0003] The various battery cells in a car are also connected via a CAN bus. When testing large quantities of battery cells, battery manufacturers and vehicle manufacturers need to use CAN devices to simultaneously monitor and collect data from the CAN bus through multiple channels to improve testing efficiency. Based on this data, they can then perform in-depth diagnostics on the health status of the battery cells. Since different battery cells have different data transmission rate requirements, and high-configuration CAN devices are expensive, using a uniform model would significantly increase costs. Therefore, it is necessary to differentiate the needs of different battery cells and use different models of CAN devices for testing to reduce costs.

[0004] However, existing software can only test one battery cell at a time, resulting in limited data acquisition. Repeatedly rewiring to switch channels for testing is inefficient, and each test can only use the same type of CAN device, significantly increasing costs and failing to meet diverse testing needs.

[0005] Therefore, how to provide a multi-channel testing method, system, equipment, and medium for CAN devices to improve the efficiency and flexibility of CAN devices in testing battery cells and reduce testing costs has become an urgent technical problem to be solved. Summary of the Invention

[0006] The technical problem to be solved by the present invention is to provide a multi-channel testing method, system, device and medium for CAN devices, so as to improve the efficiency and flexibility of CAN devices in testing battery cells and reduce testing costs.

[0007] In a first aspect, the present invention provides a multi-channel testing method for CAN devices, comprising the following steps:

[0008] Step S10: Configure a single-channel test rule and a multi-channel test rule;

[0009] Step S20: Match the single-channel test rule or multi-channel test rule based on the received battery cell test requirements;

[0010] Step S30: Automatically switch the communication connection between each CAN device and the battery unit and CAN bus based on the single-channel test rule or the multi-channel test rule, and then obtain the test data of the corresponding battery unit collected by the test channel.

[0011] Furthermore, in step S10, the single-channel test rule includes a single CAN device test sub-rule, a first CAN device of the same model with multiple channels test sub-rule, and a first CAN device of different models with multiple channels test sub-rule.

[0012] The multi-channel test rules include a second multi-channel test sub-rule for the same type of CAN device and a second multi-CAN device test sub-rule for different types.

[0013] In the single CAN device test sub-rule, the CAN devices are respectively connected to the battery unit and the CAN bus; in the first same-model CAN device multi-channel test sub-rule, one end of each CAN device of the same model is connected to the CAN bus, and the battery unit is connected to the other end of one of the CAN devices; in the first different-model multi-CAN device test sub-rule, one end of each CAN device of different models is connected to the CAN bus, and the other end is connected to a battery unit; in the second same-model CAN device multi-channel test sub-rule, one end of each channel of each CAN device of the same model is connected to the CAN bus, and the other end is connected to a battery unit; in the second different-model multi-CAN device test sub-rule, one end of each CAN device of different models is connected to the CAN bus, and the other end is connected to a battery unit.

[0014] Further, step S20 specifically includes:

[0015] After verifying the received battery cell test requirements, the battery cell test requirements are parsed to obtain the carried test tasks, and the single-channel test rules or multi-channel test rules are matched based on the test tasks.

[0016] Furthermore, step S30 also includes:

[0017] The test data is hashed to obtain a hash value. The test data, hash value, and test time are bound together to obtain bound data. The bound data is then encrypted using a preset key and stored in the database.

[0018] Secondly, the present invention provides a multi-channel testing system for CAN devices, comprising the following modules:

[0019] The test rule configuration module is used to configure a single-channel test rule and a multi-channel test rule.

[0020] The test requirement parsing module is used to match the single-channel test rule or the multi-channel test rule based on the received battery cell test requirements;

[0021] The battery cell testing module is used to automatically switch the communication connection between each CAN device and the battery cell and CAN bus based on the single-channel test rule or the multi-channel test rule, thereby acquiring the test data of the corresponding battery cell collected by the test channel.

[0022] Furthermore, in the test rule configuration module, the single-channel test rule includes a single CAN device test sub-rule, a first CAN device of the same model with multiple channels test sub-rule, and a first CAN device of different models with multiple CAN devices test sub-rule;

[0023] The multi-channel test rules include a second multi-channel test sub-rule for the same type of CAN device and a second multi-CAN device test sub-rule for different types.

[0024] In the single CAN device test sub-rule, the CAN devices are respectively connected to the battery unit and the CAN bus; in the first same-model CAN device multi-channel test sub-rule, one end of each CAN device of the same model is connected to the CAN bus, and the battery unit is connected to the other end of one of the CAN devices; in the first different-model multi-CAN device test sub-rule, one end of each CAN device of different models is connected to the CAN bus, and the other end is connected to a battery unit; in the second same-model CAN device multi-channel test sub-rule, one end of each channel of each CAN device of the same model is connected to the CAN bus, and the other end is connected to a battery unit; in the second different-model multi-CAN device test sub-rule, one end of each CAN device of different models is connected to the CAN bus, and the other end is connected to a battery unit.

[0025] Furthermore, the test requirement parsing module is specifically used for:

[0026] After verifying the received battery cell test requirements, the battery cell test requirements are parsed to obtain the carried test tasks, and the single-channel test rules or multi-channel test rules are matched based on the test tasks.

[0027] Furthermore, the battery cell testing module is also used for:

[0028] The test data is hashed to obtain a hash value. The test data, hash value, and test time are bound together to obtain bound data. The bound data is then encrypted using a preset key and stored in the database.

[0029] Thirdly, the present invention provides a multi-channel test device for CAN devices, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described in the first aspect.

[0030] Fourthly, the present invention provides a multi-channel test medium for a CAN device, on which a computer program is stored, which, when executed by a processor, implements the method described in the first aspect.

[0031] One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:

[0032] By configuring single-channel and multi-channel test rules, with single-channel test rules including single CAN device test sub-rules, multi-channel test sub-rules for the first CAN device of the same model, and multi-CAN device test sub-rules for the first different models; and multi-channel test rules including multi-channel test sub-rules for the second CAN device of the same model and multi-CAN device test sub-rules for the second different models, the test equipment matches the single-channel or multi-channel test rules based on the received battery cell test requirements to automatically switch the communication connection between each CAN device and the battery cell and CAN bus, thereby acquiring the test data of the corresponding battery cell collected by the test channel. In actual testing, the test channel can be flexibly adjusted based on the single-channel and multi-channel test rules to match different models of CAN devices, and the whole process is automated. Multiple sets of test data can be acquired in one test, which greatly improves the efficiency and flexibility of CAN devices in testing battery cells and greatly reduces testing costs.

[0033] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0034] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0035] Figure 1 This is a flowchart of a multi-channel testing method for CAN devices according to the present invention.

[0036] Figure 2 This is a schematic diagram of the structure of a multi-channel test system for CAN devices according to the present invention.

[0037] Figure 3 This is a schematic diagram of the structure of a multi-channel test device for CAN devices according to the present invention.

[0038] Figure 4This is a schematic diagram of the structure of a multi-channel test medium for a CAN device according to the present invention.

[0039] Figure 5 This is a schematic diagram of the single CAN device test sub-rule of the present invention.

[0040] Figure 6 This is a schematic diagram of the multi-channel test sub-rule for the first CAN device of the same model according to the present invention.

[0041] Figure 7 This is a schematic diagram of the first test sub-rule for multiple CAN devices of different models in this invention.

[0042] Figure 8 This is a schematic diagram of the multi-channel test sub-rule for the second CAN device of the same model according to the present invention.

[0043] Figure 9 This is a schematic diagram of the second test sub-rule for different types of multi-CAN devices in this invention. Detailed Implementation

[0044] This application provides a multi-channel testing method, system, device, and medium for CAN devices, thereby improving the efficiency and flexibility of testing battery cells using CAN devices and reducing testing costs.

[0045] The technical solution in this application embodiment has the following general idea: By configuring single-channel test rules and multi-channel test rules, the test equipment matches the corresponding test rules based on the battery cell test requirements, so as to automatically switch the wiring between each CAN device and the battery cell and CAN bus, and then automatically adjust the test channel. The test channel can be flexibly adjusted based on single-channel test rules and multi-channel test rules to match different models of CAN devices, thereby improving the efficiency and flexibility of CAN devices in testing battery cells and reducing test costs.

[0046] Example 1

[0047] This embodiment provides a multi-channel testing method for CAN devices, such as... Figure 1 , Figure 5-9 As shown, it includes the following steps:

[0048] Step S10: Configure a single-channel test rule and a multi-channel test rule; the single-channel test rule and the multi-channel test rule are used to switch between different test channels and different models of CAN devices to match actual test requirements, improve test efficiency and flexibility, and reduce test costs.

[0049] Step S20: Match the single-channel test rule or multi-channel test rule based on the received battery cell test requirements;

[0050] Step S30: Automatically switch the communication connection between each CAN device and the battery unit and CAN bus based on the single-channel test rule or the multi-channel test rule, and then obtain the test data of the corresponding battery unit collected by the test channel.

[0051] In step S10, the single-channel test rule includes a single CAN device test sub-rule, a first CAN device of the same model multi-channel test sub-rule, and a first multi-CAN device of different models test sub-rule.

[0052] The multi-channel test rules include a second multi-channel test sub-rule for the same type of CAN device and a second multi-CAN device test sub-rule for different types.

[0053] In the single CAN device test sub-rule, the CAN devices are respectively connected to the battery unit and the CAN bus; in the first same-model CAN device multi-channel test sub-rule, one end of each CAN device of the same model is connected to the CAN bus, and the battery unit is connected to the other end of one of the CAN devices; in the first different-model multi-CAN device test sub-rule, one end of each CAN device of different models is connected to the CAN bus, and the other end is connected to a battery unit; in the second same-model CAN device multi-channel test sub-rule, one end of each channel of each CAN device of the same model is connected to the CAN bus, and the other end is connected to a battery unit; in the second different-model multi-CAN device test sub-rule, one end of each CAN device of different models is connected to the CAN bus, and the other end is connected to a battery unit.

[0054] Step S20 specifically involves:

[0055] After verifying the received battery cell test requirements, the battery cell test requirements are parsed to obtain the carried test tasks, and the single-channel test rules or multi-channel test rules are matched based on the test tasks.

[0056] Step S30 further includes:

[0057] The test data is hashed to obtain a hash value. The test data, hash value, and test time are bound together to obtain bound data. The bound data is then encrypted using a preset key and stored in the database.

[0058] By performing hash calculations on the test data to obtain a hash value, the integrity of the test data can be quickly verified using the hash value, preventing the test data from being tampered with. By binding the test data, hash value, and test time to obtain bound data, the test data can be traced back to its source using the test time. The bound data is encrypted using the key to prevent it from being stolen in plaintext, ultimately greatly improving the security and traceability of the test data.

[0059] Example 2

[0060] This embodiment provides a multi-channel testing system for CAN devices, such as... Figure 2 , Figure 5-9 As shown, it includes the following modules:

[0061] The test rule configuration module is used to configure a single-channel test rule and a multi-channel test rule; the single-channel test rule and the multi-channel test rule are used to switch between different test channels and different models of CAN devices to match actual test requirements, improve test efficiency and flexibility, and reduce test costs.

[0062] The test requirement parsing module is used to match the single-channel test rule or the multi-channel test rule based on the received battery cell test requirements;

[0063] The battery cell testing module is used to automatically switch the communication connection between each CAN device and the battery cell and CAN bus based on the single-channel test rule or the multi-channel test rule, thereby acquiring the test data of the corresponding battery cell collected by the test channel.

[0064] In the test rule configuration module, the single-channel test rule includes a single CAN device test sub-rule, a first CAN device of the same model with multiple channels test sub-rule, and a first CAN device of different models with multiple CAN devices test sub-rule;

[0065] The multi-channel test rules include a second multi-channel test sub-rule for the same type of CAN device and a second multi-CAN device test sub-rule for different types.

[0066] In the single CAN device test sub-rule, the CAN devices are respectively connected to the battery unit and the CAN bus; in the first same-model CAN device multi-channel test sub-rule, one end of each CAN device of the same model is connected to the CAN bus, and the battery unit is connected to the other end of one of the CAN devices; in the first different-model multi-CAN device test sub-rule, one end of each CAN device of different models is connected to the CAN bus, and the other end is connected to a battery unit; in the second same-model CAN device multi-channel test sub-rule, one end of each channel of each CAN device of the same model is connected to the CAN bus, and the other end is connected to a battery unit; in the second different-model multi-CAN device test sub-rule, one end of each CAN device of different models is connected to the CAN bus, and the other end is connected to a battery unit.

[0067] The test requirement parsing module is specifically used for:

[0068] After verifying the received battery cell test requirements, the battery cell test requirements are parsed to obtain the carried test tasks, and the single-channel test rules or multi-channel test rules are matched based on the test tasks.

[0069] The battery cell testing module is also used for:

[0070] The test data is hashed to obtain a hash value. The test data, hash value, and test time are bound together to obtain bound data. The bound data is then encrypted using a preset key and stored in the database.

[0071] By performing hash calculations on the test data to obtain a hash value, the integrity of the test data can be quickly verified using the hash value, preventing the test data from being tampered with. By binding the test data, hash value, and test time to obtain bound data, the test data can be traced back to its source using the test time. The bound data is encrypted using the key to prevent it from being stolen in plaintext, ultimately greatly improving the security and traceability of the test data.

[0072] Based on the same inventive concept, this application provides an electronic device embodiment corresponding to Embodiment 1, as detailed in Embodiment 3.

[0073] Example 3

[0074] This embodiment provides a multi-channel testing device for CAN devices, such as... Figure 3 As shown, it includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it can implement any of the embodiments in Example 1.

[0075] Since the electronic device described in this embodiment is the device used to implement the method in Embodiment 1 of this application, those skilled in the art can understand the specific implementation method and various variations of the electronic device in this embodiment based on the method described in Embodiment 1 of this application. Therefore, how the electronic device implements the method in the embodiment of this application will not be described in detail here. Any device used by those skilled in the art to implement the method in the embodiment of this application falls within the scope of protection of this application.

[0076] Based on the same inventive concept, this application provides a storage medium corresponding to Embodiment 1, as detailed in Embodiment 4.

[0077] Example 4

[0078] This embodiment provides a multi-channel test medium for CAN devices, such as... Figure 4 As shown, a computer program is stored thereon, which, when executed by a processor, can implement any of the embodiments in Example 1.

[0079] Since the storage medium described in this embodiment is the same storage medium used to implement the method in Embodiment 1 of this application, those skilled in the art can understand the specific implementation methods and various variations of the storage medium in this embodiment based on the method described in Embodiment 1 of this application. Therefore, how the storage medium implements the method in this application embodiment will not be described in detail here. Any storage medium used by those skilled in the art to implement the method in this application embodiment falls within the scope of protection of this application.

[0080] The technical solutions provided in this application embodiment have at least the following technical effects or advantages:

[0081] By configuring single-channel and multi-channel test rules, with single-channel test rules including single CAN device test sub-rules, multi-channel test sub-rules for the first CAN device of the same model, and multi-CAN device test sub-rules for the first different models; and multi-channel test rules including multi-channel test sub-rules for the second CAN device of the same model and multi-CAN device test sub-rules for the second different models, the test equipment matches the single-channel or multi-channel test rules based on the received battery cell test requirements to automatically switch the communication connection between each CAN device and the battery cell and CAN bus, thereby acquiring the test data of the corresponding battery cell collected by the test channel. In actual testing, the test channel can be flexibly adjusted based on the single-channel and multi-channel test rules to match different models of CAN devices, and the whole process is automated. Multiple sets of test data can be acquired in one test, which greatly improves the efficiency and flexibility of CAN devices in testing battery cells and greatly reduces testing costs.

[0082] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0083] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0084] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0085] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0086] While specific embodiments of the present invention have been described above, those skilled in the art should understand that the specific embodiments described are merely illustrative and not intended to limit the scope of the present invention. Equivalent modifications and variations made by those skilled in the art in accordance with the spirit of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A multi-channel testing method for CAN devices, characterized in that: Includes the following steps: Step S10: Configure a single-channel test rule and a multi-channel test rule; the single-channel test rule includes a single CAN device test sub-rule, a first CAN device of the same model multi-channel test sub-rule, and a first multi-CAN device of different models test sub-rule. The multi-channel test rules include a second multi-channel test sub-rule for the same type of CAN device and a second multi-CAN device test sub-rule for different types. In the single CAN device test sub-rule, the CAN devices are respectively connected to the battery unit and the CAN bus; in the first same-model CAN device multi-channel test sub-rule, one end of each CAN device of the same model is connected to the CAN bus, and the battery unit is connected to the other end of one of the CAN devices; in the first different-model multi-CAN device test sub-rule, one end of each CAN device of different models is connected to the CAN bus, and the other end is connected to a battery unit; in the second same-model CAN device multi-channel test sub-rule, one end of each channel of each CAN device of the same model is connected to the CAN bus, and the other end is connected to a battery unit; in the second different-model multi-CAN device test sub-rule, one end of each CAN device of different models is connected to the CAN bus, and the other end is connected to a battery unit. Step S20: After verifying the received battery cell test requirements, parse the battery cell test requirements to obtain the carried test tasks, and match the single-channel test rules or multi-channel test rules based on the test tasks. Step S30: Automatically switch the communication connection between each CAN device and the battery unit and CAN bus based on the single-channel test rule or the multi-channel test rule, and then obtain the test data of the corresponding battery unit collected by the test channel; The test data is hashed to obtain a hash value. The test data, hash value, and test time are bound together to obtain bound data. The bound data is then encrypted using a preset key and stored in the database.

2. A multi-channel testing system for CAN devices, characterized in that: Includes the following modules: The test rule configuration module is used to configure a single-channel test rule and a multi-channel test rule; the single-channel test rule includes a single CAN device test sub-rule, a first CAN device of the same model multi-channel test sub-rule, and a first multi-CAN device of different models test sub-rule. The multi-channel test rules include a second multi-channel test sub-rule for the same type of CAN device and a second multi-CAN device test sub-rule for different types. In the single CAN device test sub-rule, the CAN devices are respectively connected to the battery unit and the CAN bus; in the first same-model CAN device multi-channel test sub-rule, one end of each CAN device of the same model is connected to the CAN bus, and the battery unit is connected to the other end of one of the CAN devices; in the first different-model multi-CAN device test sub-rule, one end of each CAN device of different models is connected to the CAN bus, and the other end is connected to a battery unit; in the second same-model CAN device multi-channel test sub-rule, one end of each channel of each CAN device of the same model is connected to the CAN bus, and the other end is connected to a battery unit; in the second different-model multi-CAN device test sub-rule, one end of each CAN device of different models is connected to the CAN bus, and the other end is connected to a battery unit. The test requirement parsing module is used to verify the received battery cell test requirements, parse the battery cell test requirements to obtain the carried test tasks, and match the single-channel test rules or multi-channel test rules based on the test tasks. The battery cell testing module is used to automatically switch the communication connection between each CAN device and the battery cell and CAN bus based on the single-channel test rule or the multi-channel test rule, so as to obtain the test data of the corresponding battery cell collected by the test channel; The test data is hashed to obtain a hash value. The test data, hash value, and test time are bound together to obtain bound data. The bound data is then encrypted using a preset key and stored in the database.

3. A multi-channel testing device for CAN devices, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method as described in claim 1.

4. A multi-channel test medium for a CAN device, on which a computer program is stored, characterized in that, When the program is executed by the processor, it implements the method as described in claim 1.