{"id":15345,"date":"2024-11-18T18:37:16","date_gmt":"2024-11-18T10:37:16","guid":{"rendered":"https:\/\/www.tosunai.com\/?p=15345"},"modified":"2025-02-05T15:58:36","modified_gmt":"2025-02-05T07:58:36","slug":"detailed-explanation-use-tosun-can-disturbance-interface","status":"publish","type":"post","link":"https:\/\/www.tosunai.com\/en\/detailed-explanation-use-tosun-can-disturbance-interface\/","title":{"rendered":"Sharing | A detailed explanation of the use of TOSUN CAN Disturbance interface"},"content":{"rendered":"
TH7011 is a CAN\/CAN FD bus jammer device launched by Tongxing Intelligence, which adopts RJ45 Ethernet interface to connect with PC, and the Windows system drive-free design makes the device have system compatibility. Combined with the powerful TSMaster software, it supports interfering with CAN\/CAN FD specific bit values; supports various trigger modes, such as frame trigger, error trigger, software trigger, etc.; and supports functions such as Bus-off behavior test and sampling point test.<\/p>
It can be used for conformance testing, detecting whether the nodes comply with the communication protocol specification, and guaranteeing the normal and safe operation of the CAN\/CAN FD network.<\/p>
Keywords in this article: interference meter, physical wiring, initialization, interference trigger, BUSOFF, sampling point<\/em><\/strong><\/p> With the rapid development of automotive electronics and industrial IoT, the stability and reliability of the CAN\/CAN FD bus is crucial as a key communication technology. However, communication quality and protocol consistency differences between nodes may lead to network failures and affect system performance. For this reason, TOSUN launches TH7011 Conformance Interference Tester, which ensures that the communication quality and protocol of each node conforms to the standard through efficient and accurate conformance testing, thus guaranteeing the safe and stable operation of the network.<\/p> The TH7011 has a wide range of applications in several fields, especially in scenarios where rigorous conformance testing of CAN\/CAN FD bus networks is required. The following are some typical application scenarios:<\/p> Sample point testing of the ECU:<\/strong>During the development and validation of automotive electronic control units (ECUs), the TH7011 can be used to check the accuracy of the ECU's sampling points on the CAN\/CAN FD bus, ensuring the accuracy and reliability of data transmission.<\/p> ECU Bus-off behavior test:<\/strong>In a CAN\/CAN FD network, when a node fails or has an error, it may enter the Bus-off state, resulting in interruption of network communication.The TH7011 enables a node to enter the BUSOFF state and accurately measures its recovery time, thus comprehensively evaluating the node's error handling and recovery performance.<\/p> and frame interference:<\/strong>During the testing process, TH7011 can interfere with frames on the CAN\/CAN FD bus to simulate various complex situations in the actual communication environment and to check the anti-interference ability and stability of network nodes.<\/p> Interface Description:<\/strong><\/p> RJ45 network port<\/strong><\/p><\/div> This interface is used to enable data communication and configuration settings between the TH7011 and the PC.<\/p> DC 9-32V<\/strong><\/p><\/div> This interface provides power input for the tamper to ensure its stable operation under different power supply environments.<\/p> CAN\/CAN FD<\/strong><\/p><\/div> This interface is used to connect and communicate between the interferometer and the DUT of the CAN\/CAN FD bus system.<\/p> I\/O Port<\/strong><\/p><\/div> The DO1 and GND pins of this interface enable a clear view of the interference range of the set interferometer on an oscilloscope, making it easy to evaluate and analyze the interference effect.<\/p> Typical connections for the TH7011 jammer are as follows:<\/p> First, connect the TH7011 to the network port side of the computer through the RJ45 network port, then use the special power cord to supply power to the interferometer, and then connect the CAN\/CAN FD channel of the TH7011 to the DUT as well as the CAN\/CAN FD pins of the other CAN card respectively. In this way, you can observe or record the message interaction between the DUT and TH7011 in real time in TSMaster, as shown in Figure 1.<\/p> Additionally, when performing sample point testing, the CAN card used for monitoring can optionally be temporarily removed from the bus system in order to minimize possible errors introduced by the CAN card itself.<\/p> In order to more intuitively observe the interference effect of the interferometer (TH7011) on the oscilloscope, we need to use this connection. First, connect the clamp (a.k.a. ground terminal) of one channel of the oscilloscope to the GND (ground) pin on the I\/O interface of the tamper, this is to ensure that the signal reference between the oscilloscope and the tamper is consistent. Next, use the hook end of the oscilloscope probe to make precise contact with the DO1 pin on the interferometer's I\/O interface and connect it. With this setup, the oscilloscope is able to capture the interference signal from the interferometer as shown in Figure 2.<\/p> Open the upper computer of TH7011 at [Hardware] - [Proprietary Devices] - [TH7011] of TSMaster, as shown in Figure 3.<\/p> In the [Initialization Interface], connect and initialize the selected interferometer hardware according to the process of [Network Card Selection], [Device Selection], [Obtain Device Information], [Device Communication Parameters], and [CAN Controller Parameters]. As shown in Figure 4.<\/p> Detailed Steps:<\/p> 1. Click [Scanning Network Card], if the computer has more than one network card need to select the interference instrument corresponding to the use of the network card, as shown in Figure 5.<\/p> <\/p> 2. Click [Scan Device], [Device Selection] drop-down box to get the serial number of the interferometer device (may contain multiple devices). As shown in Figure 6.<\/p> <\/p> 3. Click the [Get Device Information] button, the right side of the parameter column to get the relevant information about the device. As shown in Figure 7.<\/p> <\/p> 4. Before you start connecting the device, check and make sure that the IP address of the WIN Ethernet interface is in the same network segment as the IP of the jammer device. As shown in Figure 8.<\/p> Click \"Connect Device\", the button will be grayed out and the status bar below will show \"Network Connection Successful\". As shown in Figure 9.<\/p> 5. [CAN Controller Parameters] Select the corresponding parameters to set the parameters of the interferometer, click [Application Configuration]. As shown in Figure 10.<\/p> <\/p> Necessary engineering environment build:<\/strong>Set up the test environment according to \"Physical Wiring of TH7011\" in Section 3 and \"Initialization of TH7011\" in Section 4.<\/p> Principle:<\/strong>Whole bit jamming is the explicit and implicit state change of a bit in the entire CAN\/CAN FD message.<\/p> Generic settings for interference triggering:<\/strong> (1) Interference number setting<\/strong> <\/p> Taking cycle 2, cycle interval 3, repetition number 4, and repetition interval 1 as an example, a total of 8 error frames (cycle * repetition number) can be generated, and their interference out of the corresponding message records, as shown in Figure 12.<\/p> (2) Selection and setting of output configuration:<\/strong> \u2460 Interference patterns:<\/strong> <\/p> \u2461 Selection of the bit time:<\/strong> Arbitration segment time:<\/strong>When the interference is with CAN frames, the arbitration segment time is always selected; when the interference is with CAN FD frames, when BRS is set to 1, the bit before the BRS bit is selected as well as after the interference CRC defining character bit is selected.<\/p> Data segment time:<\/strong>When the interference is with CAN FD frames, the selection interferes with the BRS bits up to the CRC delimiter bits, all of which are data segment bit times.<\/p> <\/p> In order to jam CAN frames sent from the DUT, the jamming instrument is first used to match a specific CAN frame sent from the DUT by ID, frame type, DLC, etc., and then the bit field of the jamming is selected to implement a predetermined jamming measure on the CAN frame.<\/p> 1. In [Trigger Function] - [Trigger Configuration Panel] - [Add] - [Bit Field Trigger] open the panel as Figure 15. After configuration, select [Enable Configuration].<\/p> (1) In the process of jamming, in order to accurately match the target frame, the key information in the arbitration field and control field needs to be set. Specifically, in the operation of the upper computer of the jamming instrument, firstly, the frame ID should be converted to 11 to binary and DLC to binary, and at the same time, taking into account that the frame being processed is a CAN frame, and its specific fields, such as RTR\/RRS, IDE, FDF, and BRS, are all 0 in the standard CAN frame, as shown in Fig. 16.<\/p> <\/p> (2) Select the bit field to be disturbed as well as the specific bit: it should be noted that the offset of the panel trigger should be the previous bit to be disturbed, as shown in Fig. 17.<\/p> <\/p> 2. Interference number setting: Configure the specific number of interferences according to the demand.<\/p> <\/p> 3. CAN frame jamming output configuration: <\/p> In order to demonstrate the effect of interference on CAN frames, a scenario is set up here in which the DUT on the bus is sending a standard CAN frame. The specific parameters of the frame are: identifier (ID) 0x123, type data frame, DLC set to 8 bytes, as shown in Figure 20.<\/p> <\/p> 1. We take the CRC defining bit of the frame as the jamming target and 20 jamming times as the number of jamming, and perform the following operations:<\/p> (1) In order to implement the jamming, we first parse and convert the ID of the frame: we convert the ID 0x123 to the binary form 00100100011 and make sure that the RTR\/RRS, IDE, FDF, and BRS bits in the frame type are set to 0. At the same time, we convert the DLC value of 8 to the binary form 1000, as shown in Figure 21:<\/p> <\/p> (2) Then select the bit field of the interference is the CRC defining bit, [trigger conditions] for the CRCFIELD, [trigger offset] for the first bit is 15, as shown in Figure 22:<\/p> <\/p> (3) Set the number of disturbances to 20, as shown in Fig. 23:<\/p> <\/p> (4) Configuration of interference output is carried out because the CRC defining bit of the frame is used as the target of interference, which is a hidden bit i.e. 1, so the selection of strong apparent interference of the arbitration segment time is carried out here, as shown in Fig. 24:<\/p> <\/p> 2. Then, after clicking Start Test, the interference effects in TSMaster and the oscilloscope are shown below:<\/p> (1) The message information error frame when TC1014 on TSMaster is acting as a receiver node is 20 times, and the error message is FORM ERROR, which is identified as a form error when one or more illegal bits are present in the fixed bit field (CRC definer, ACK definer, end of frame). This is shown in Figure 25.<\/p> <\/p> (2) On the oscilloscope, according to the wiring diagram in Section 3.2 Physical Connections for the TH7011 Companion Oscilloscope, you can observe on the oscilloscope that the interference enable is pointing to the CRC defining bit and that this bit is being interfered with as a dominant bit, and that there are 20 error frames. This is shown in Figure 26 and Figure 27.<\/p> <\/p> <\/p> In order to jam CAN FD frames sent from the DUT, a jamming instrument is used to match a specific CAN FD frame sent from the DUT with its ID, frame type, DLC, etc., and then the bit field for jamming is selected to implement a predetermined jamming measure on the CAN FD frame.<\/p> 1. Click Trigger - Trigger Configuration Panel - Add - Bit Field Trigger to open the panel<\/p> (1) In the process of jamming, in order to accurately match the target frame, the key information in the arbitration field and control field needs to be set. Specifically, in the upper computer operation of the jamming instrument, firstly, the frame ID should be converted to 11 to binary and DLC to binary, and at the same time, considering the standard CAN FD frames being processed, the specific fields, such as the RTR\/RRS and IDE bits, should be set to 0, and the FDF and BRS bits should be set to 1, as shown in Fig. 28.<\/p> <\/p> (2) Select the bit field to be interfered with and the specific bit: it should be noted that the offset of the panel trigger should be the previous bit to be interfered with, as shown in Fig. 29.<\/p> <\/p> 2. Interference number setting: Configure the specific number of interferences according to the requirements, as shown in Figure 30.<\/p> <\/p> 3.CAN FD frame jamming output configuration:<\/p> The selection of [Interference Mode] is based on the selected bit. At the same time, because of the interference of CAN FD frames, the selection of the bit time is different from that of CAN frames, if the bit field of interference is selected between the areas of BRS and CRC defining bits, it is [Data segment bit time], and the other bit fields are [Arbitration segment bit time].<\/p> <\/p> In order to demonstrate the effect of interference on CAN FD frames, a scenario is set up here in which the DUT on the bus is sending a standard CAN FD frame. The specific parameters of this frame are: identifier (ID) 0x123, type FD frame, DLC set to 9 bytes, as shown in Figure 32.<\/p> <\/p> Example 1: We take the SOF bit of this frame as the jamming target, and 20 jamming as the number of jamming times, and perform the following operations:<\/strong><\/p> (1) In order to implement the jamming, we first parse and convert the ID of the frame: convert ID 0x123 to the binary form 00100100011, and make sure that RTR\/RRS and IDE in the frame type are set to 0, and that the FDF and BRS bits are set to 1. At the same time, the DLC value of 9 is converted to the binary form 1001, as shown in Figure 33.<\/p> <\/p> (2) Then select the bit field of the interference is SOF, [trigger conditions] for SOF, [trigger offset] for the first bit is 0, as shown in Figure 34.<\/p> (3) Set the number of disturbances to 20, as shown in Fig. 35.<\/p> (4) Then, after clicking Start Test, the interference effects on TSMaster and the oscilloscope are shown below:<\/p> \u2460 The message information error frame for TC1014 on TSMaster as a receiving node is 20 times, as shown in Figure 36.<\/p> <\/p> \u2461 On the oscilloscope, wired according to the diagram in Section 3.2, you can observe on the oscilloscope that the interference enable points to the SOF bit and the SOF bit is interfered with as a stealth bit with 20 error frames. This is shown in Figure 37 and Figure 38.<\/p> <\/p> <\/p> Example 2: Here, the following operation is performed with the 7th bit of the data segment of the frame as the jamming target and 20 jamming times as the number of jamming attempts:<\/strong><\/p> (1) In order to implement the jamming, we first parse and convert the ID of the frame: convert ID 0x123 to the binary form 00100100011, and make sure that RTR\/RRS and IDE in the frame type are set to 0, and that the FDF and BRS bits are set to 1. At the same time, the DLC value of 9 is converted to the binary form 1001, as shown in Figure 39.<\/p> <\/p> (2) Then select the bit field of the interference is DATA, [trigger conditions] for the DATAFIELD, [trigger offset] for the first bit is 6, as shown in Figure 40.<\/p> <\/p> (3) Set the number of disturbances to 20, as shown in Fig. 41.<\/p> <\/p> (4) Then, after clicking Start Test, the interference effects on TSMaster and the oscilloscope are shown below:<\/p> \u2460 The message information error frame when TC1014 on TSMaster is acting as a receiver node is 20 times, as shown in Figure 42.<\/p> <\/p> \u2461 On the oscilloscope, according to Section 3.2 TH7011 Mating Oscilloscope Physical Connection Methods of Diagram Wiring, you can observe on the oscilloscope that the interference enable is directed to bit 7 of DATA and that DATA bit 7 is interfered with as a dominant bit, and that there are 20 error frames. This is shown in Figure 43 and Figure 44.<\/p> <\/p> TH7011 mainly interferes with the frames sent out by the DUT to make the DUT enter the BUSOFF state. In this process, using the [Message Information] module in the TSMaster tool or the waveforms on the oscilloscope, you can observe and analyze whether the DUT has the ability to recover automatically after entering the BUSOFF state and how long it takes to recover from the BUSOFF state to the normal state.<\/p> 1. know how to interfere with frames emitted from the DUT according to Chapter 5 TH7011 Whole Bit Interference: <\/p> <\/p> (3) Configure the interference output according to the selected interference bit. 2. Use the message information or oscilloscope waveform to observe the point in time when the measured part enters BUSOFF, and record the time interval for resuming communication, which is the BUSOFF recovery time.<\/p> In order to visualize how the TH7011 can effectively test the BUSOFF behavior of the DUT, a specific test scenario was constructed. In this scenario, the DUT is sending a standard CAN frame on the CAN bus with a clear parameter configuration: its ID is set to 0x123, it follows the format specification of a standard data frame, and the DLC indicates that it contains 8 bytes of data, as in Figure 47.<\/p> The TH7011 device is then used to jam this transmitting CAN frame an unlimited number of times, with the jamming bit field in bit 7 of the data segment (the selection of this bit field can be adjusted according to the actual test requirements). Through this continuous jamming, we aim to trigger the DUT to enter the BUSOFF state continuously.<\/p> Next, we will detail the specific steps taken to implement this test and the test results in order to clearly demonstrate how the TH7011 can be utilized to evaluate the performance of the DUT in the BUSOFF state:<\/p> The TH7011 performs an unlimited number of interferences on the DUT:<\/strong><\/p> (1) According to the frame sent on the bus in Fig. 47, the [Arbitration Field] and [Control Field] of the upper unit of the jamming instrument are set as shown in Fig. 48, and the jamming bit field is selected as shown in Fig. 49.<\/p>01 | Technical background<\/strong><\/h2>
02 | typical application<\/strong><\/strong><\/h2>
03 | Physical Interface of TH7011<\/strong><\/strong><\/strong><\/h2>
<\/figure>\n\n
<\/figure>\n\n
<\/figure>\n\n
<\/figure>\n\n
3.1 <\/strong>Conventional Physical Connection of TH7011<\/strong><\/h3>
3.2 <\/strong>TH7011<\/strong>Physical Connection of Mating Oscilloscope<\/strong><\/h3>
<\/figcaption><\/figure>04 | <\/strong>Initialization of TH7011<\/strong><\/h2>
4.1 Installation of TH7011 Upper Unit<\/strong><\/h3>
<\/figcaption><\/figure><\/div>4.2 Initializing the device<\/strong><\/h3>
05 | <\/strong>Integer Bit Interference Function of TH7011<\/strong><\/h2>
<\/p>
Cycle:<\/strong>It is the disturbance cycle, usually the macrocycle.
Cycle interval:<\/strong>is the number of intervals between two macrocycles.
Number of repetitions:<\/strong>is the number of interference repetitions in a large cycle.
Repeat intervals:<\/strong>is the number of intervals between interference repetitions in a large cycle.<\/p>
In [Trigger Function] - [Output Configuration], make the selection of bit time and interference effect. Steps: First perform the clear sequence, then perform the selection of [Interference Mode] and [Bit Time], and then add segments.<\/p>
Strongly obvious:<\/strong>What was originally a recessive bit (as a 1) is interfered with to become a dominant bit as a 0.
Strong Hidden:<\/strong>What was originally a dominant bit (as 0) is interfered with to make an invisible bit as 1.
Flip:<\/strong>The interference is implemented based on the level state of the previous frame, and if the strong display interference of the previous frame can effectively trigger the generation of error frames, the subsequent frames will also take strong display interference measures. Therefore, the flip-flop jamming technique is more suitable for jamming a single frame; in multi-frame jamming application scenarios, some frames may not be effectively jammed.
No interference:<\/strong>i.e. no jamming of the specified sequence of messages
<\/p>
Whole-bit Interference At this point, either the arbitration segment time or the data segment time is selected based on the frame type and the bit field of the interference.<\/p>5.1 <\/strong>CAN frame jamming<\/strong><\/h3>
5.1.1 <\/strong>Basic configuration for CAN frame jamming<\/strong><\/h4>
The selection of [Interference Mode] is based on the selected bit. At the same time, since the interference is with CAN frames, [Arbitration segment bit time] is always selected for bit time selection, as shown in Fig. 19.<\/p>5.1.2 <\/strong>Basic configuration for CAN frame jamming<\/strong><\/h4>
5.2 <\/strong>CAN FD frame interference<\/strong><\/h3>
5.2.1 <\/strong>Basic configuration for CAN FD frame jamming<\/strong><\/h4>
5.2.2 <\/strong>Example of CAN FD frame jamming<\/strong><\/h4>
06 | <\/strong>BUSOFF test function of TH7011<\/strong><\/h2>
6.1 <\/strong>BUSOFF Test Configuration Procedure<\/strong><\/h3>
(1) Match the frames to be jammed and select the jamming bit field:
(2) Configure the number of interferences: If you need to enter the BUSOFF state several times to test whether the device under test has a fast or slow recovery and recovery time: you can carry out unlimited interferences as shown in Figure 45, you can also configure the period and the number of times of repetition, for example, if you need to carry out the BUSOFF test for ten times, then you can set the period of 10, the number of repetitions is set to 32, as shown in Figure 46.<\/p>
(4) Click Start Test to jam the frames emitted by the DUT.<\/p>6.2 <\/strong>BUSOFF Test Example<\/strong><\/h3>