CN112073259A - Communication test method for batch Can controllers - Google Patents

Communication test method for batch Can controllers Download PDF

Info

Publication number
CN112073259A
CN112073259A CN202010804344.3A CN202010804344A CN112073259A CN 112073259 A CN112073259 A CN 112073259A CN 202010804344 A CN202010804344 A CN 202010804344A CN 112073259 A CN112073259 A CN 112073259A
Authority
CN
China
Prior art keywords
controllers
controller
batch
card
channels
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
CN202010804344.3A
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 Maiteng Iot Technology Co ltd
Original Assignee
Shanghai Maiteng Iot 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 Maiteng Iot Technology Co ltd filed Critical Shanghai Maiteng Iot Technology Co ltd
Priority to CN202010804344.3A priority Critical patent/CN112073259A/en
Publication of CN112073259A publication Critical patent/CN112073259A/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
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller
    • 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)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a batch Can controller communication and a communication test method of a plurality of channels of Can controllers, which is characterized by comprising the following steps: s01, setting a temporary number for the CAN controller by the CAN card test control module; s02, connecting the CAN cards with a plurality of CAN controllers simultaneously; s03, the CAN card tests a plurality of CAN controllers simultaneously; and S05, completing the CAN controller communication test. The invention uses one CAN card device to test a plurality of CAN controllers simultaneously and tests a plurality of channels in the plurality of CAN controllers simultaneously.

Description

Communication test method for batch Can controllers
Technical Field
The invention relates to the field of production detection of Internet of things equipment, in particular to a communication test method for batch Can controllers.
Background
CAN: controller Area Network, Controller Area Network: developed by BOSCH, germany, which is well known for the development and production of automotive electronics, and finally became the international standard (ISO 11898). Is one of the most widely used field buses internationally. In north america and western europe, the CAN bus protocol has become the standard bus for automotive computer control systems and embedded industrial control area networks, and possesses the J1939 protocol designed for large trucks and heavy work machinery vehicles with CAN as the underlying protocol. When the traditional CAN controller is used for communication test, a plurality of channels need to be covered, one channel is less, and four channels are more. The common CAN card used for testing in cooperation with CAN control generally has at most four channels, and when a CAN controller is tested, a CAN card device must be matched with the CAN card device. If long-time communication test, such as reliability test, needs to be performed on a large number of CAN controllers, and long-time communication test needs to be performed on a large number of CAN controllers, then a number of CAN card devices corresponding to the number of CAN card devices is needed, and thus great cost investment is needed for purchasing the CAN card devices.
Disclosure of Invention
In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is to use one CAN card device to test multiple CAN controllers simultaneously.
In order to achieve the purpose, the invention provides a batch Can controller communication test method, which comprises the following steps:
s01, setting a temporary number for the CAN controller by the CAN card test control module;
s02, connecting the CAN cards with a plurality of CAN controllers simultaneously;
s03, the CAN card tests a plurality of CAN controllers simultaneously;
and S05, completing the CAN controller communication test.
Further, the temporary number of step S01 includes a request Can ID and a response Can ID.
Furthermore, the CAN card test control module comprises an instruction setting module, an instruction query module and a CAN communication test module.
Further, the CAN card test control module is arranged in the middle T-BOX.
Further, step S02 further includes that the CAN card test control module allocates a request CAN id and a response CAN id to the CAN controller, the CAN controller requests the CAN id identification through the CAN card, the CAN controller sends a corresponding response CAN id message, and the CAN card connects a plurality of CAN controllers.
Further, the CAN card test control module restarts the CAN controller after the test is finished, and the temporary serial number set for the CAN controller by the CAN card test control module disappears.
Further, the number of the plurality of CAN controllers is one of 4, 5, 6, 7, and 8.
Further, the instruction setting module is used for setting a request CANID and a response CANID.
Further, the instruction query module is used for querying the request CANID and responding to the CANID.
Further, the CAN communication test module is used for testing a plurality of CAN controllers.
The invention also discloses a multi-channel communication test method of the batch CAN controllers, which comprises the following steps:
s01, the CAN card test control module sets temporary numbers for a plurality of channels of the CAN controller;
s02, connecting the CAN card with a plurality of channels of a plurality of CAN controllers simultaneously;
s03, the CAN card tests a plurality of channels of a plurality of CAN controllers simultaneously;
and S05, completing the multi-channel communication test of the CAN controller.
Further, the temporary number of step S01 includes a request Can ID and a response Can ID.
Furthermore, the CAN card test control module comprises an instruction setting module, an instruction query module and a CAN communication test module.
Further, the CAN card test control module is arranged in the middle T-BOX.
Further, step S02 includes that the CAN card test control module allocates a request CAN id and a response CAN id to a plurality of channels of the CAN controller, the plurality of channels of the CAN controller request a CAN id through the CAN card, the plurality of channels of the CAN controller send a corresponding response CAN id message, and the CAN card connects the plurality of channels of the plurality of CAN controllers.
Further, the CAN card test control module restarts the plurality of channels of the CAN controller after the test is completed, and the temporary serial numbers set for the plurality of channels of the CAN controller by the CAN card test control module disappear.
Further, the number of the plurality of channels of the plurality of CAN controllers is one of 1, 2, 3, 4, 5, 6, 7, and 8.
Further, the instruction setting module is used for setting a request CANID and a response CANID.
Further, the instruction query module is used for querying the request CANID and responding to the CANID.
Further, the CAN communication test module is used for testing a plurality of channels of the multi-channel CAN controller.
The invention aims to solve the technical problems that one CAN card device is used for simultaneously testing a plurality of CAN controllers and simultaneously testing a plurality of channels in the plurality of CAN controllers.
The conception, the specific structure and the technical effects of the present invention will be further described with reference to the accompanying drawings to fully understand the objects, the features and the effects of the present invention.
Drawings
FIG. 1 is an embodiment of an instruction set module in accordance with a preferred embodiment of the present invention;
FIG. 2 is an embodiment of an instruction query module in accordance with a preferred embodiment of the present invention;
fig. 3 is an embodiment of a CAN communication test module according to a preferred embodiment of the present invention.
Detailed Description
The technical contents of the preferred embodiments of the present invention will be more clearly and easily understood by referring to the drawings attached to the specification. The present invention may be embodied in many different forms of embodiments and the scope of the invention is not limited to the embodiments set forth herein.
In the drawings, structurally identical elements are represented by like reference numerals, and structurally or functionally similar elements are represented by like reference numerals throughout the several views. The size and thickness of each component shown in the drawings are arbitrarily illustrated, and the present invention is not limited to the size and thickness of each component. The thickness of the components may be exaggerated where appropriate in the figures to improve clarity.
One embodiment of the invention provides a batch Can controller communication testing method, which comprises the following steps:
s01, setting a temporary number for the CAN controller by the CAN card test control module;
s02, connecting the CAN cards with a plurality of CAN controllers simultaneously;
s03, the CAN card tests a plurality of CAN controllers simultaneously;
and S05, completing the CAN controller communication test.
The temporary number of step S01 includes a request Can ID and a response Can ID.
The CAN card test control module comprises an instruction setting module, an instruction inquiry module and a CAN communication test module.
The CAN card test control module is arranged in the T-BOX.
Step S02 further includes that the CAN card test control module allocates a request CAN id and a response CAN id to the CAN controller, the CAN controller requests the CAN id identification through the CAN card, the CAN controller sends a corresponding response CAN id message, and the CAN card is connected to a plurality of CAN controllers.
And the CAN card test control module restarts the CAN controller after the test is finished, and the temporary serial number set for the CAN controller by the CAN card test control module disappears.
The number of the plurality of CAN controllers is one of 4, 5, 6, 7 and 8.
The instruction setting module is used for setting request CANID and response CANID.
The command inquiry module is used for inquiring the request CANID and responding the CANID.
The CAN communication test module is used for testing the multi-path CAN controller.
Another embodiment of the present invention provides a method for testing multi-channel communication of a batch of CAN controllers, where the number of channels of a CAN controller is a natural number (1, 2, 3, 4, 5, 6, 7, 8), and the method includes the following steps:
s01, the CAN card test control module sets temporary numbers for a plurality of channels of the CAN controller;
s02, connecting the CAN card with a plurality of channels of a plurality of CAN controllers simultaneously;
s03, the CAN card tests a plurality of channels of a plurality of CAN controllers simultaneously;
and S05, completing the multi-channel communication test of the CAN controller.
The temporary number of step S01 includes a request Can ID and a response Can ID.
The CAN card test control module comprises an instruction setting module, an instruction inquiry module and a CAN communication test module.
The CAN card test control module is arranged in the T-BOX.
Step S02 further includes that the CAN card test control module allocates a request CAN id and a response CAN id to the plurality of channels of the CAN controller, the plurality of channels of the CAN controller request a CAN id identification through the CAN card, the plurality of channels of the CAN controller send a corresponding response CAN id message, and the CAN card connects the plurality of channels of the plurality of CAN controllers.
And the CAN card test control module restarts a plurality of channels of the CAN controller after the test is finished, and the CAN card test control module sets temporary numbers for the plurality of channels of the CAN controller to disappear.
There is no upper limit to the number of channels of the plurality of CAN controllers.
The instruction setting module is used for setting request CANID and response CANID.
The command inquiry module is used for inquiring the request CANID and responding the CANID.
The CAN communication test module is used for testing a plurality of channels of the multi-channel CAN controller.
Fig. 1 shows an embodiment of an instruction setting module according to the present invention:
DPV CanID Set (instruction Set module): this command is used to set the request/response CanID, CAN1 REQ ID: request ID for CAN1, CAN1 REQP ID: respond to the ID for CAN 1; CAN2 REQ ID: request ID for CAN2, CAN2 REQP ID: respond to the ID for CAN 2; CAN3 REQ ID: request ID for CAN3, CAN3 REQP ID: CAN ring ID.
Fig. 2 shows an embodiment of an instruction query module according to the present invention, wherein the DPV CanID Get (instruction query module): the instruction is for a query request/response CANID.
Fig. 3 shows a CAN Test (CAN communication Test module) according to an embodiment of the CAN communication Test module of the present invention: the CAN card is used for communication test of all channels of the CAN controller, as shown in the figure, one CAN card CAN test 3 CAN controller devices, and each CAN controller has 6 channels.
The foregoing detailed description of the preferred embodiments of the invention has been presented. It should be understood that numerous modifications and variations could be devised by those skilled in the art in light of the present teachings without departing from the inventive concepts. Therefore, the technical solutions available to those skilled in the art through logic analysis, reasoning and limited experiments based on the prior art according to the concept of the present invention should be within the scope of protection defined by the claims.

Claims (20)

1. A communication test method for batch Can controllers is characterized by comprising the following steps:
s01, setting a temporary number for the CAN controller by the CAN card test control module;
s02, connecting the CAN cards with a plurality of CAN controllers simultaneously;
s03, the CAN card tests a plurality of CAN controllers simultaneously;
and S05, completing the CAN controller communication test.
2. The batch Can controller communication testing method of claim 1, wherein the temporary number of step S01 includes a request Can ID and a response Can ID.
3. The batch Can controller communication test method of claim 1, wherein the CAN card test control module comprises a command setting module, a command query module, and a CAN communication test module.
4. The batch Can controller communication test method of claim 3, wherein the CAN card test control module is built into a medium T-BOX.
5. The batch Can controller communication test method according to claim 1, further comprising step S02, in which the Can card test control module assigns a request Can id and a response Can id to the Can controller, the Can controller requests the Can id identification through the Can card, the Can controller sends a corresponding response Can id message, and the Can card connects a plurality of Can controllers.
6. The batch Can controller communication test method of claim 1, wherein the CAN card test control module restarts the CAN controller after the test is completed, and the temporary serial number set for the CAN controller by the CAN card test control module disappears.
7. The batch Can controller communication test method of claim 1, wherein the number of the plurality of Can controllers is one of 4, 5, 6, 7, and 8.
8. The batch Can controller communication testing method of claim 3, wherein the instruction setting module is configured to set a request Can id and a response Can id.
9. The batch Can controller communication testing method of claim 3, wherein the instruction query module is configured to query for a request Can id and to respond to a Can id.
10. The batch Can controller communication test method of claim 3, wherein the Can communication test module is configured to test multiple Can controllers.
11. A multi-channel communication test method for batch CAN controllers is characterized by comprising the following steps:
s01, the CAN card test control module sets temporary numbers for a plurality of channels of the CAN controller;
s02, connecting the CAN card with a plurality of channels of a plurality of CAN controllers simultaneously;
s03, the CAN card tests a plurality of channels of a plurality of CAN controllers simultaneously;
and S05, completing the multi-channel communication test of the CAN controller.
12. The method for multiple channel communication testing of batch CAN controllers of claim 1, wherein said temporary numbering of step S01 comprises a request CAN ID and a response CAN ID.
13. The method for testing multi-channel communication of the batch of CAN controllers of claim 1, wherein the CAN card test control module comprises an instruction setting module, an instruction query module, and a CAN communication test module.
14. The method for multiple channel communication testing of a batch of CAN controllers of claim 3 wherein the CAN card test control module is built into the mid-T-BOX.
15. The method for testing multi-channel communication of a plurality of CAN controllers in batch according to claim 1, further comprising step S02, wherein the CAN card test control module assigns a request CAN id and a response CAN id to the plurality of channels of the CAN controllers, the plurality of channels of the CAN controllers request CAN id identification through the CAN cards, the plurality of channels of the CAN controllers send corresponding response CAN id messages, and the CAN cards are connected with the plurality of channels of the plurality of CAN controllers.
16. The method of claim 1 wherein the CAN card test control module restarts the plurality of channels of the CAN controllers after the testing is completed and the CAN card test control module sets the temporary serial numbers for the plurality of channels of the CAN controllers to disappear.
17. The method for multi-channel communication testing of a batch of CAN controllers of claim 1, wherein the number of the plurality of channels of the plurality of CAN controllers is one of 1, 2, 3, 4, 5, 6, 7, 8.
18. The multi-channel communication testing method of the batch CAN controller of claim 3, wherein the command setting module is configured to set a request CAN id and a response CAN id.
19. The multi-channel communication test method of the batch CAN controller of claim 3, wherein the command query module is configured to query for a request CAN id and to respond to a CAN id.
20. The method for multi-channel communication testing of a batch of CAN controllers of claim 3, wherein the CAN communication test module is used for testing a plurality of channels of a multi-channel CAN controller.
CN202010804344.3A 2020-08-11 2020-08-11 Communication test method for batch Can controllers Pending CN112073259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010804344.3A CN112073259A (en) 2020-08-11 2020-08-11 Communication test method for batch Can controllers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010804344.3A CN112073259A (en) 2020-08-11 2020-08-11 Communication test method for batch Can controllers

Publications (1)

Publication Number Publication Date
CN112073259A true CN112073259A (en) 2020-12-11

Family

ID=73661304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010804344.3A Pending CN112073259A (en) 2020-08-11 2020-08-11 Communication test method for batch Can controllers

Country Status (1)

Country Link
CN (1) CN112073259A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631247A (en) * 2012-08-20 2014-03-12 北汽福田汽车股份有限公司 A usage life test system for an electric control product of an automobile
CN203490534U (en) * 2013-09-23 2014-03-19 北汽福田汽车股份有限公司 CAN bus test box and testing device for testing CAN network of automobile
US20150235714A1 (en) * 2014-02-20 2015-08-20 SK Hynix Inc. Semiconductor device for parallel bit test and test method thereof
CN104914845A (en) * 2014-03-14 2015-09-16 深圳市赛格导航科技股份有限公司 Vehicle body controller fault test method and system based on industrial personal computer
CN106325235A (en) * 2015-07-03 2017-01-11 深圳市赛格导航科技股份有限公司 Automotive electronic product production test system and method based on CAN bus
CN206115264U (en) * 2016-09-23 2017-04-19 北京精密机电控制设备研究所 Multibus multi -channel control ware tester
CN110543164A (en) * 2019-08-26 2019-12-06 中国第一汽车股份有限公司 test system and method of automatic driving controller and upper computer

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631247A (en) * 2012-08-20 2014-03-12 北汽福田汽车股份有限公司 A usage life test system for an electric control product of an automobile
CN203490534U (en) * 2013-09-23 2014-03-19 北汽福田汽车股份有限公司 CAN bus test box and testing device for testing CAN network of automobile
US20150235714A1 (en) * 2014-02-20 2015-08-20 SK Hynix Inc. Semiconductor device for parallel bit test and test method thereof
CN104914845A (en) * 2014-03-14 2015-09-16 深圳市赛格导航科技股份有限公司 Vehicle body controller fault test method and system based on industrial personal computer
CN106325235A (en) * 2015-07-03 2017-01-11 深圳市赛格导航科技股份有限公司 Automotive electronic product production test system and method based on CAN bus
CN206115264U (en) * 2016-09-23 2017-04-19 北京精密机电控制设备研究所 Multibus multi -channel control ware tester
CN110543164A (en) * 2019-08-26 2019-12-06 中国第一汽车股份有限公司 test system and method of automatic driving controller and upper computer

Similar Documents

Publication Publication Date Title
US4630224A (en) Automation initialization of reconfigurable on-line automatic test system
US20030167360A1 (en) Address assignment method for at least one bus device that has recently been connected to a bus system
CN110083088A (en) Signal controls conversion equipment and signal controls conversion method
CN110519144B (en) Method and device for establishing communication between automobile diagnosis equipment and vehicle and automobile communication interface equipment
CN102780713A (en) Vehicle diagnostic system and vehicle diagnostic method
CN113406946B (en) Automobile diagnosis method and device and automobile diagnosis equipment
CN111224917B (en) Automobile gateway firewall message health check method, gateway device and automobile
CN108445860B (en) Diagnostic apparatus, diagnostic request processing method, and computer-readable storage medium
CN105592157A (en) Vehicle network signal access device and method, vehicle communication terminal and vehicle
CN112073259A (en) Communication test method for batch Can controllers
CN108919788A (en) A kind of remote monitoring system and method for the automobile bench test based on vehicle-mounted CAN bus
US6731125B2 (en) Multi-channel semiconductor test system
KR20160117811A (en) Vehicle network system and protocol communication method thereof
CN107231314A (en) CAN channel adaptives method, device, system and automobile
US20030084216A1 (en) Hybrid change of state protocol for CANOpen networks
CN115980554A (en) Chip testing method and electronic equipment thereof
CN113411788B (en) Bluetooth grid network system with unassigned communication mechanism and communication method thereof
CN105959393A (en) Automatic card production method and device
CN214544348U (en) Network communication system based on FlexRay
CN114900390B (en) Data transmission method, device, electronic equipment and storage medium
EP4087290A1 (en) Control unit, vehicle comprising the control unit, method and computer program
CN116381452B (en) Chip testing method, device and system and readable storage medium
CN106954226A (en) The feedback method and system of a kind of base station module configuring condition
CN113341938B (en) Automobile controller testing system and control method thereof
CN220603633U (en) Chip testing machine and chip testing system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201211

RJ01 Rejection of invention patent application after publication