CN102236354A - Method for testing CAN (Controller Area Network) bus data link layer - Google Patents

Method for testing CAN (Controller Area Network) bus data link layer Download PDF

Info

Publication number
CN102236354A
CN102236354A CN2010101680413A CN201010168041A CN102236354A CN 102236354 A CN102236354 A CN 102236354A CN 2010101680413 A CN2010101680413 A CN 2010101680413A CN 201010168041 A CN201010168041 A CN 201010168041A CN 102236354 A CN102236354 A CN 102236354A
Authority
CN
China
Prior art keywords
tested
testing
link layer
data link
tester
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
CN2010101680413A
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.)
SHANGHAI GUTAI TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI GUTAI TECHNOLOGY 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 SHANGHAI GUTAI TECHNOLOGY Co Ltd filed Critical SHANGHAI GUTAI TECHNOLOGY Co Ltd
Priority to CN2010101680413A priority Critical patent/CN102236354A/en
Publication of CN102236354A publication Critical patent/CN102236354A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention relates to a method for testing a CAN (Controller Area Network) bus data link layer, and the method is used for testing whether the CAN bus data link layer meets the consistency requirements of a CAN protocol. In order to test whether the CAN bus data link layer meets the consistency requirements of the CAN protocol, the invention provides a cooperative testing method of the method for testing the CAN bus data link layer, and the cooperative testing method is used for realizing the concrete embodiment of testing the tested CAN bus data link layer by directly testing the CAN transceiver of a tested CAN bus. In the method provided by the invention, a logic analyzer and a waveform generator are directly and respectively connected with the pins of tested CAN controllers RX and TX; the logic analyzer, the waveform generator and an upper mechanism which controls and analyzes the logic analyzer and the waveform generator form a lower tester; the part except for the tested CAN controller in a testing module which comprises the tested CAN controller forms an upper tester; and the cooperative operation of the upper tester and the lower tester is utilized to test whether the tested CAN bus data link layer meets the consistency requirements of the CAN protocol or not.

Description

A kind of CAN bus data link layer method of testing
Technical field
The present invention relates to the method for a kind of CAN of being used for (Controller Area Network controller local area network) bus data link layer test, this method is used for checking tested CAN bus data link layer whether to satisfy the coherence request of CAN agreement.
Background technology
The CAN bus is because its high-performance and reliability are widely used in aspects such as industrial automation, boats and ships, Medical Devices.Especially at vehicle electric field, the CAN bus often is used as in the power system network directly related with safety, owing to exist subjective factor for understanding by the described CAN agreement of natural language, therefore, particularly important for the testing protocol consistency checking work of CAN bus data link layer.In order to check CAN bus data link layer whether to satisfy the coherence request of CAN agreement, need to propose a kind of CAN bus data link layer method of testing.
Summary of the invention
In order to check CAN bus data link layer whether to satisfy the requirement of CAN protocol conformance, the present invention proposes a kind of collaborative method of testing of CAN bus data link layer method of testing, on concrete enforcement, realize by direct test to the CAN controller of tested CAN bus for the test of tested CAN bus data link layer.This method directly utilizes logic analyser to be electrically connected with tested CAN controller RX, TX pin in the tested CAN bus, waveform generator is electrically connected with tested CAN controller TX pin, logic analyser, waveform generator and its host computer of controlling, analyzing constituted tester down, comprising in the test module of tested CAN controller part except tested CAN controller constitutes and goes up tester, by the collaborative work of last tester and following tester, check tested CAN bus data link layer whether to satisfy the coherence request of CAN agreement.
Description of drawings
A kind of CAN bus data of Fig. 1 link layer test principle figure
Embodiment
The present invention---a kind of CAN bus data link layer method of testing realizes by the direct test to the CAN controller of tested CAN bus on concrete enforcement for the test of tested CAN bus data link layer.This method of testing directly utilizes logic analyser to be electrically connected with tested CAN controller RX, TX pin in the tested CAN bus, waveform generator is electrically connected with tested CAN controller TX pin, logic analyser, waveform generator and its host computer of controlling, analyzing constituted tester down, comprising in the test module of tested CAN controller part except tested CAN controller constitutes and goes up tester, by the collaborative work of last tester and following tester, check tested CAN bus data link layer whether to satisfy the coherence request of CAN agreement.Make up a kind of as shown in Figure 1 CAN bus data link layer test macro according to this method.
Among the figure, the direct and last tester interactive information of the tested CAN controller in the test module, its RX and TX two pins are connected to the logic analysis instrument probe, and the Rx pin is electrically connected with the output terminal of waveform generator.Between taking place, host computer, logic analyser and waveform can carry out the mutual of relevant information.Host computer carries out information interaction with last tester simultaneously.The trigger pip output of logic analyser is electrically connected to the trigger pip input of waveform generator.
In the test, host computer is sent to logic analyser, waveform generator and test module with test case and related command, burst on logic analyser monitoring TX and RX two signal wires, thus and whether satisfy trigger condition triggering waveform generator according to the signal determining on the TX signal wire and export desired cycle tests to the RX signal wire.Whole signals of TX and RX all will give record by logic analyser, and send back host computer, host computer compares, analyzes by information and the last tester biography tested CAN controller information together that following tester is passed back, draws the result whether tested CAN bus data link layer satisfies the CAN testing protocol consistency.

Claims (2)

1. CAN bus data link layer method of testing, it is characterized in that: this method is a kind of collaborative method of testing, to the test of tested CAN bus data link layer by test implementation to CAN controller in the tested CAN bus, this method is directly utilized the tested CAN controller RX in logic analyser and the tested CAN bus, the TX pin is electrically connected, waveform generator is electrically connected with tested CAN controller TX pin, logic analyser, waveform generator and it is controlled, the host computer of analyzing constitutes tester down, comprising in the test module of tested CAN controller part except tested CAN controller constitutes and goes up tester, last tester and following tester collaborative work.
2. according to the described tester down of claim 1, it is characterized in that: host computer is sent to logic analyser, waveform generator and test module with test case and related command, burst on logic analyser monitoring TX and RX two signal wires, thus and whether satisfy trigger condition triggering waveform generator according to the signal determining on the TX signal wire and export desired cycle tests to the RX signal wire.Whole signals of TX and RX all will give record by logic analyser, and send back host computer, the tested CAN controller information that host computer is passed back by information that following tester is passed back and last tester compares, analyzes, and draws the result whether tested CAN bus data link layer satisfies the CAN testing protocol consistency.
CN2010101680413A 2010-05-06 2010-05-06 Method for testing CAN (Controller Area Network) bus data link layer Pending CN102236354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101680413A CN102236354A (en) 2010-05-06 2010-05-06 Method for testing CAN (Controller Area Network) bus data link layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101680413A CN102236354A (en) 2010-05-06 2010-05-06 Method for testing CAN (Controller Area Network) bus data link layer

Publications (1)

Publication Number Publication Date
CN102236354A true CN102236354A (en) 2011-11-09

Family

ID=44887091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101680413A Pending CN102236354A (en) 2010-05-06 2010-05-06 Method for testing CAN (Controller Area Network) bus data link layer

Country Status (1)

Country Link
CN (1) CN102236354A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873310A (en) * 2012-12-10 2014-06-18 北汽福田汽车股份有限公司 Gateway testing method and system for CAN network
CN105515911A (en) * 2015-12-21 2016-04-20 惠州市德赛西威汽车电子股份有限公司 Gateway automatic test system and method of CAN network
CN107231278A (en) * 2016-03-24 2017-10-03 宝沃汽车(中国)有限公司 The method of testing of CAN nodes, apparatus and system
CN111104272A (en) * 2019-12-10 2020-05-05 北京振兴计量测试研究所 CAN bus controller testing method based on RX and TX

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201116928Y (en) * 2007-08-22 2008-09-17 合肥工业大学 Simple digital circuit logic analyzer
US20090175395A1 (en) * 2008-01-04 2009-07-09 Agere Systems, Inc. Data alignment method for arbitrary input with programmable content deskewing info
CN101677280A (en) * 2008-09-17 2010-03-24 中国科学院自动化研究所 Optical fiber field bus communication system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201116928Y (en) * 2007-08-22 2008-09-17 合肥工业大学 Simple digital circuit logic analyzer
US20090175395A1 (en) * 2008-01-04 2009-07-09 Agere Systems, Inc. Data alignment method for arbitrary input with programmable content deskewing info
CN101677280A (en) * 2008-09-17 2010-03-24 中国科学院自动化研究所 Optical fiber field bus communication system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
朱双华,王随平: "汽车控制器局域网的波形检测法", 《汽车电器》 *
高照亮: "《大众车系CAN数据传输系统的故障诊断技术》", 《浙江水利水电专科学校学报》 *
鲁植雄(主编): "《汽车CAN总线故障诊断图解》", 31 January 2009, 江苏科学技术出版社 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873310A (en) * 2012-12-10 2014-06-18 北汽福田汽车股份有限公司 Gateway testing method and system for CAN network
CN105515911A (en) * 2015-12-21 2016-04-20 惠州市德赛西威汽车电子股份有限公司 Gateway automatic test system and method of CAN network
CN107231278A (en) * 2016-03-24 2017-10-03 宝沃汽车(中国)有限公司 The method of testing of CAN nodes, apparatus and system
CN111104272A (en) * 2019-12-10 2020-05-05 北京振兴计量测试研究所 CAN bus controller testing method based on RX and TX
CN111104272B (en) * 2019-12-10 2023-04-18 北京振兴计量测试研究所 CAN bus controller testing method based on RX and TX

Similar Documents

Publication Publication Date Title
CN106444712B (en) A kind of CAN/LIN network interferences automatization test system
CN102393738B (en) Diagnostic device and test method of automobile electronic control unit (ECU)
CN107122304B (en) JTAG remote debugging method
US20120131403A1 (en) Multi-chip test system and test method thereof
CN104656632A (en) Integrated interface test system and detection method for aircraft semi-physical simulation tests
CN102621436B (en) Single vehicle debugging test stand and debugging method
CN202903935U (en) A multifunctional portable line detector
CN110161331B (en) Detection platform for primary and secondary fusion complete equipment and control method
CN103019940A (en) Electric energy meter embedded software semi-simulation test device
CN102176699B (en) Testing platform based on time-division command/response type multiplex bus
CN102236354A (en) Method for testing CAN (Controller Area Network) bus data link layer
US8509057B2 (en) Communication system, test apparatus, communication apparatus, communication method and test method
TWI440571B (en) Communication interface conversion device
CN111090556A (en) System on chip and USB physical layer test method
CN102288849B (en) Highway addressable remote transducer (HART) loop fault diagnosis instrument and method
CN103913728B (en) A kind of method of testing based on portable radar comprehensive tester
CN115454751A (en) FPGA chip testing method and device and computer readable storage medium
CN109470974A (en) A kind of testing lines system and method based on wireless technology
CN103529829A (en) Test system for electric vehicle controller
CN109254214B (en) Automatic test system and method for valve-based electronic equipment
CN116540681A (en) Controller interface function test system and test method
CN203720647U (en) Air data computer testing system
CN102435914B (en) Portable aircraft wire comprehensive performance tester
CN102890494A (en) Functional verification method of automobile diagnosis instrument
CN211264169U (en) Automatic testing device for logic control unit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
DD01 Delivery of document by public notice

Addressee: Shanghai Gutai Technology Co., Ltd.

Document name: Notification of an Office Action

C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 200092 Shanghai city Yangpu District Guokang Road No. 46 Tongji Science and Technology Building Room 406

Applicant after: Shanghai Gutai Technology Co., Ltd.

Address before: 200092 room 510, science and Technology Park, Tongji University, 65 Chifeng Road, Shanghai, Yangpu District

Applicant before: Shanghai Gutai Technology Co., Ltd.

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111109