CN113992552A - Automobile CAN/CANFD physical layer system testing device and method - Google Patents

Automobile CAN/CANFD physical layer system testing device and method Download PDF

Info

Publication number
CN113992552A
CN113992552A CN202111227398.9A CN202111227398A CN113992552A CN 113992552 A CN113992552 A CN 113992552A CN 202111227398 A CN202111227398 A CN 202111227398A CN 113992552 A CN113992552 A CN 113992552A
Authority
CN
China
Prior art keywords
test
sampling
unit
canfd
busoff
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111227398.9A
Other languages
Chinese (zh)
Inventor
吴浩
雷永富
杨华
周定华
赵松岭
陶华胜
韩嵩嵬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chery Automobile Co Ltd
Original Assignee
Chery Commercial Vehicle Anhui Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chery Commercial Vehicle Anhui Co Ltd filed Critical Chery Commercial Vehicle Anhui Co Ltd
Priority to CN202111227398.9A priority Critical patent/CN113992552A/en
Publication of CN113992552A publication Critical patent/CN113992552A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention relates to the technical field of automobile bus communication, and provides an automobile CAN/CANFD physical layer system testing device, which comprises: the test unit of integration on CANOE software, the test unit passes through CAN/CANFD and is connected with electrical apparatus module ECU communication, and wherein the test unit carries out the sampling rate test, includes: the sampling rate testing unit is used for periodically sending messages with set length to the arbitration field ID; the recording unit is used for periodically sampling at the arbitration field ID, recording a sampling position and sending the sampling position to the electrical appliance module ECU; and the electrical module ECU acquires the maximum value C1 of the sampling positions, the minimum value C2 of the sampling positions and the average value C3 of the sampling positions in the test period. The sampling rate and the fast and slow reset time values of the CAN/CANFD physical layer of each electrical module ECU are automatically tested on the rack, so that the automatic test of the automobile CAN/CANFD physical layer system is realized, the test efficiency is greatly improved, the test scene CAN be changed by changing parameters, and the test scene is flexibly changed.

Description

Automobile CAN/CANFD physical layer system testing device and method
Technical Field
The invention relates to the technical field of automobile bus communication, and provides an automobile CAN/CANFD physical layer system testing device and method.
Background
Along with the appearance of intelligent automobiles, the requirements of customers on intelligent services of the automobiles are higher and higher, the integration of the ECU modules of the electrical modules is higher and higher, the test requirements of the CAN/CANFD physical layers of the ECUs of the electrical modules are higher and higher, and the problems of limited test scenes and low test efficiency exist in the traditional manual bench test.
Disclosure of Invention
The invention provides a device for testing an automobile CAN/CANFD physical layer system, aiming at improving the problems.
The invention is realized in this way, a kind of car CAN/CANFD physical layer system testing device, the said device includes:
the test unit of integration on CANOE software, the test unit passes through CAN/CANFD and is connected with electrical apparatus module ECU communication, and wherein the test unit carries out the sampling rate test, includes:
a sampling rate testing unit and a recording unit, wherein the recording unit is connected with the electrical appliance module ECU in a communication way,
the sampling rate testing unit is used for periodically sending messages with set length to the arbitration field ID;
the recording unit is used for periodically sampling at the arbitration field ID, recording a sampling position and sending the sampling position to the electrical appliance module ECU;
and the electrical module ECU acquires the maximum value C1 of the sampling positions, the minimum value C2 of the sampling positions and the average value C3 of the sampling positions in the test period.
Further, the test unit performs a BUSOFF recovery time test, and the test unit further includes:
the BUSOFF recovery time testing unit is in communication connection with the electrical module ECU;
and the BUSOFF recovery time testing unit sends an interference signal to the interference arbitration field ID within a set time length, and the electrical module ECU feeds back the BUSOFF recovery time.
Further, the BUSOFF recovery time test unit includes:
and the interference arbitration field setting module is used for setting the number and the address of the interference arbitration field IDs in the BUSOFF recovery time test unit.
Further, the apparatus further comprises:
and the test frequency setting unit is used for setting the test frequency of each CAN/CANFD physical layer system, and each test comprises a sampling rate test and a BUSOFF recovery test.
Further, the apparatus further comprises:
the display unit is used for outputting test data of the sampling rate test and the BUSOFF recovery test in each test period by the electrical module ECU after the test times reach the set test times;
further, the apparatus further comprises:
and the time interval setting unit is used for setting the time interval between the sampling rate test and the BUSOFF recovery test in each test period.
The invention is realized in this way, a method for testing an automobile CAN/CANFD physical layer system, which comprises the following steps:
and (3) testing the sampling rate: periodically sending messages with set length to the arbitration field ID, periodically sampling at the arbitration field ID, recording sampling positions, and sending the sampling positions to an electrical appliance module ECU; the electrical appliance module ECU acquires the maximum value C1, the minimum value C2 and the average value C3 of the sampling positions in the test period;
BUSOFF recovery time test: and sending an interference signal to the interference arbitration field ID within a set time length, and feeding back BUSOFF recovery time by the electric appliance module ECU.
According to the invention, the sampling rate and the fast and slow reset time values of the CAN/CANFD physical layer of each electrical module ECU are automatically tested on the rack, so that the automatic test of the automobile CAN/CANFD physical layer system is realized, the test efficiency is greatly improved, meanwhile, the test scene CAN be changed by changing parameters, and in addition, the test data is automatically output, so that an engineer CAN conveniently carry out design analysis based on the sampling data.
Drawings
Fig. 1 is a schematic structural diagram of an automotive CAN/CANFD physical layer system testing apparatus according to an embodiment of the present invention.
Detailed Description
The following description of preferred embodiments of the invention will be made in further detail with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of an automotive CAN/CAN fd physical layer system testing apparatus provided in an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is shown, where the apparatus includes:
the test unit of integration on CANOE software, the test unit passes through CAN/CANFD and is connected with electrical apparatus module ECU communication, and wherein the test unit carries out the sampling rate test, includes:
sampling rate test unit and record unit, record unit and electrical apparatus module ECU communication are connected, wherein:
the sampling rate testing unit is used for periodically sending messages with set length to the arbitration field ID, the recording unit is used for periodically sampling at the arbitration field ID, recording sampling positions and sending the sampling positions to the electrical appliance module ECU;
the electrical module ECU acquires the maximum value C1, the minimum value C2, and the average value C3 of the sampling positions in the test period.
In the embodiment of the present invention, the test unit performs a BUSOFF recovery time test, and the test unit further includes:
the BUSOFF recovery time testing unit is in communication connection with the electrical module ECU;
and the BUSOFF recovery time testing unit sends an interference signal to the interference arbitration field ID within a set time length, and the electrical module ECU feeds back the BUSOFF recovery time.
In an embodiment of the present invention, the BUSOFF recovery time test unit includes:
and the interference arbitration field setting module is used for setting the number and the address of the interference arbitration field IDs in the BUSOFF recovery time test unit.
In the embodiment of the invention, each CAN/CANFD physical layer system needs to perform sampling rate test and BUSOFF recovery test, the two tests have no obvious sequence, the sampling rate test CAN be performed first and then the BUSOFF recovery test CAN be performed, or the BUSOFF recovery test CAN be performed first and then the sampling rate test CAN be performed, but after the last test is finished, the control program needs to wait for a set time length and then perform the next test.
In an embodiment of the present invention, the apparatus further includes:
and the test frequency setting unit is used for setting the test frequency (for example, 4 times) of each CAN/CANFD physical layer system, and each test comprises a sampling rate test and a BUSOFF recovery test.
In an embodiment of the present invention, the apparatus further includes:
the display unit is used for outputting test data of the sampling rate test and the BUSOFF recovery test in each test period by the electrical module ECU after the test times reach the set test times;
the test data for the sample rate test includes: the maximum value of the positions C1, the minimum value of the sampling positions C2 and the average value of the sampling positions C3; test data for the BUSOFF resume test include: time of BUSOFF resume.
In an embodiment of the present invention, the apparatus further includes:
and a time interval setting unit for setting a time interval (e.g. 2s) between the sampling rate test and the BUSOFF recovery test in each test period.
The method for testing the automobile CAN/CANFD physical layer system provided by the embodiment of the invention comprises the following steps:
and (3) testing the sampling rate: periodically sending messages with set length to the arbitration field ID, periodically sampling at the arbitration field ID, recording sampling positions, and sending the sampling positions to an electrical appliance module ECU; the electrical appliance module ECU acquires the maximum value C1, the minimum value C2 and the average value C3 of the sampling positions in the test period;
BUSOFF recovery time test: and sending an interference signal to the interference arbitration field ID within a set time length, and feeding back BUSOFF recovery time by the electric appliance module ECU.
In the embodiment of the present invention, a test period in a sampling rate test is 4s, a message sending period is 1ms, a byte length of a message is 8 bytes, a sampling period is 16ms, the sampling period is an integer multiple of the message sending period, and the sampling period is much longer than the message sending period, assuming that an arbitration field ID value is 100, the whole sampling rate test process is specifically as follows:
sending a message with the length of 8 bytes to an arbitration field ID (100) every 1ms, sampling at the arbitration field ID every 16ms, recording a sampling position, sending the sampling position to an electrical appliance module ECU, and running the whole test for 4s, wherein the electrical appliance module ECU acquires the maximum value C1 of the sampling position, the minimum value C2 of the sampling position and the average value C3 of the sampling position in the test period;
in the embodiment of the invention, in the BUSOFF recovery time test, the number of the ID of the interference arbitration field is 3, and the ID values are respectively as follows: ID 1-430, ID 2-410, ID 3-420; and sending a jamming signal to the jamming arbitration field ID for 4s, and feeding back the BUSOFF recovery time by the electric appliance module ECU.
According to the invention, the sampling rate and the fast and slow reset time values of the CAN/CANFD physical layer of each electrical module ECU are automatically tested on the rack, so that the automatic test of the automobile CAN/CANFD physical layer system is realized, the test efficiency is greatly improved, meanwhile, the test scene CAN be changed by changing parameters, and the change of the test scene is flexible; in addition, test data are automatically output, and engineers can conveniently carry out design analysis based on the sampling data.
It is clear that the specific implementation of the invention is not restricted to the above-described embodiments, but that various insubstantial modifications of the inventive process concept and technical solutions are within the scope of protection of the invention.

Claims (7)

1. An automotive CAN/CAN FD physical layer system testing device, the device comprising:
the test unit of integration on CANOE software, the test unit passes through CAN/CANFD and is connected with electrical apparatus module ECU communication, and wherein the test unit carries out the sampling rate test, includes:
a sampling rate testing unit and a recording unit, wherein the recording unit is connected with the electrical appliance module ECU in a communication way,
the sampling rate testing unit is used for periodically sending messages with set length to the arbitration field ID;
the recording unit is used for periodically sampling at the arbitration field ID, recording a sampling position and sending the sampling position to the electrical appliance module ECU;
and the electrical module ECU acquires the maximum value C1 of the sampling positions, the minimum value C2 of the sampling positions and the average value C3 of the sampling positions in the test period.
2. The CAN/CANFD physical layer system testing apparatus of claim 1, wherein said testing unit performs a BUSOFF recovery time test, said testing unit further comprising:
the BUSOFF recovery time testing unit is in communication connection with the electrical module ECU;
and the BUSOFF recovery time testing unit sends an interference signal to the interference arbitration field ID within a set time length, and the electrical module ECU feeds back the BUSOFF recovery time.
3. The CAN/CANFD physical layer system testing apparatus of claim 2, wherein the BUSOFF recovery time testing unit comprises:
and the interference arbitration field setting module is used for setting the number and the address of the interference arbitration field IDs in the BUSOFF recovery time test unit.
4. The automotive CAN/CANFD physical layer system testing apparatus of claim 1 or 2, further comprising:
and the test frequency setting unit is used for setting the test frequency of each CAN/CANFD physical layer system, and each test comprises a sampling rate test and a BUSOFF recovery test.
5. The automotive CAN/CANFD physical layer system testing apparatus of claim 1 or 2, further comprising:
and the display unit outputs the test data of the sampling rate test and the BUSOFF recovery test in each test period by the electrical module ECU after the test frequency reaches the set test frequency.
6. The automotive CAN/CANFD physical layer system testing apparatus of claim 1 or 2, further comprising:
and the time interval setting unit is used for setting the time interval between the sampling rate test and the BUSOFF recovery test in each test period.
7. A method for testing an automobile CAN/CANFD physical layer system is characterized by comprising the following steps:
and (3) testing the sampling rate: periodically sending messages with set length to the arbitration field ID, periodically sampling at the arbitration field ID, recording sampling positions, and sending the sampling positions to an electrical appliance module ECU; the electrical appliance module ECU acquires the maximum value C1, the minimum value C2 and the average value C3 of the sampling positions in the test period;
BUSOFF recovery time test: and sending an interference signal to the interference arbitration field ID within a set time length, and feeding back BUSOFF recovery time by the electric appliance module ECU.
CN202111227398.9A 2021-10-21 2021-10-21 Automobile CAN/CANFD physical layer system testing device and method Pending CN113992552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111227398.9A CN113992552A (en) 2021-10-21 2021-10-21 Automobile CAN/CANFD physical layer system testing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111227398.9A CN113992552A (en) 2021-10-21 2021-10-21 Automobile CAN/CANFD physical layer system testing device and method

Publications (1)

Publication Number Publication Date
CN113992552A true CN113992552A (en) 2022-01-28

Family

ID=79739982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111227398.9A Pending CN113992552A (en) 2021-10-21 2021-10-21 Automobile CAN/CANFD physical layer system testing device and method

Country Status (1)

Country Link
CN (1) CN113992552A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2953585A1 (en) * 2022-03-30 2023-11-14 Seat Sa TEST BENCH AND METHOD FOR VEHICLES WITH ELECTRIC MOTOR (Machine-translation by Google Translate, not legally binding)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002012909A2 (en) * 2000-08-09 2002-02-14 Teradyne, Inc. Capturing and evaluating high speed data streams
EP0841538B1 (en) * 1996-05-24 2003-02-19 Seiko Epson Corporation Position detector, encoder board, position detecting method, timer and electronic device
CN107948020A (en) * 2017-12-22 2018-04-20 上汽通用五菱汽车股份有限公司 A kind of method and device of CAN bus sampled point test
CN107959599A (en) * 2017-12-05 2018-04-24 上汽通用五菱汽车股份有限公司 A kind of Bus_Off fault test systems and test method
CN108737187A (en) * 2018-05-23 2018-11-02 哈尔滨工业大学 A kind of CAN bus fault simulation system and failure simulation method
CN109861795A (en) * 2019-02-28 2019-06-07 广州小鹏汽车科技有限公司 CANFD bus system sampled point configures and test method and corresponding data transmission method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0841538B1 (en) * 1996-05-24 2003-02-19 Seiko Epson Corporation Position detector, encoder board, position detecting method, timer and electronic device
WO2002012909A2 (en) * 2000-08-09 2002-02-14 Teradyne, Inc. Capturing and evaluating high speed data streams
CN107959599A (en) * 2017-12-05 2018-04-24 上汽通用五菱汽车股份有限公司 A kind of Bus_Off fault test systems and test method
CN107948020A (en) * 2017-12-22 2018-04-20 上汽通用五菱汽车股份有限公司 A kind of method and device of CAN bus sampled point test
CN108737187A (en) * 2018-05-23 2018-11-02 哈尔滨工业大学 A kind of CAN bus fault simulation system and failure simulation method
CN109861795A (en) * 2019-02-28 2019-06-07 广州小鹏汽车科技有限公司 CANFD bus system sampled point configures and test method and corresponding data transmission method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2953585A1 (en) * 2022-03-30 2023-11-14 Seat Sa TEST BENCH AND METHOD FOR VEHICLES WITH ELECTRIC MOTOR (Machine-translation by Google Translate, not legally binding)

Similar Documents

Publication Publication Date Title
CN113259210B (en) Intelligent testing system for car networking terminal
CN210041853U (en) Automatic test system for automobile CAN/LIN bus
CN102929274B (en) In-vehicle networking ground skewed redundant test macro, method and apparatus
CN103728968A (en) Automatic test system for CAN network and ECU functions
CN111045416B (en) Method and device for analyzing CAN (controller area network) signal of whole vehicle by using diagnosis message
CN103439961B (en) Automobile electronic control unit diagnostic function test method and system
CN113992552A (en) Automobile CAN/CANFD physical layer system testing device and method
CN109753043A (en) The test device and method of CAN bus communication matrix
US20090153315A1 (en) Method for diagnosing error of vehicle electronic component
CN114089713A (en) Communication method based on UDS, ECU and upper computer
CN109815073B (en) PXI platform-based high-speed serial port SRIO test method
CN110266774A (en) The method of inspection, device, equipment and the storage medium of the car networking quality of data
CN105334768A (en) Method for obtaining baud rate and device
CN110514931B (en) Electromagnetic compatibility test system and method for equipment with vehicle-mounted Ethernet function
CN111708661A (en) Pressure testing system and method suitable for central gateway
CN116224871A (en) Vehicle data acquisition and processing device
CN216391061U (en) Gigabit vehicle-mounted Ethernet testing device and system
CN215219509U (en) Entertainment system test bench based on domain controller electrical architecture
CN112526395B (en) Vehicle-mounted display screen signal transmission detection device, method and system
CN201113099Y (en) Data bus signal dispenser
Novak et al. Automated testing of electronic control units compatibility in vehicle CAN networks
CN216565601U (en) Working state detection circuit and vehicle-mounted equipment
CN103425120A (en) Code reading card testing system and method
CN216981928U (en) Communication testing device for electronic control unit of whole vehicle
EP4175224B1 (en) Method and device for operating a secure data communication between functional units for a vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240415

Address after: 241000 No. 8, Changchun Road, Wuhu economic and Technological Development Zone, Anhui, China

Applicant after: CHERY AUTOMOBILE Co.,Ltd.

Country or region after: China

Address before: 241000 Building 8, science and Technology Industrial Park, 717 Zhongshan South Road, Yijiang District, Wuhu City, Anhui Province

Applicant before: Chery Commercial Vehicles (Anhui) Co., Ltd.

Country or region before: China