CAN GW Analysis
See CAN Gateway Analysis Specifications for detailed latency/loss evaluation conditions.
After combining multiple channel logs using Ch Mixing, the following analyses are available under “CAN GW Analyze” on the Analyze tab.
- Gateway latency and message loss analysis (GW Latency & Msg. Lost Analyze)
- Gateway residence analysis (GW Msg. Residence Peak Analyze)
CAN GW Analyze Tab Reference
Figure 1. CAN GW Analyze settings and execution controls.
| No. | Item | Description |
|---|---|---|
| ① | GW CAN Frame List | Shows registered frame mappings. Checked rows are analyzed. |
| ② | GW Information | Configures gateway source/destination channels and frame conditions. |
| ② | From / To | From is the gateway source; To is the destination. Configure Ch, CAN/CAN-FD, Std./Ext., and CAN ID for each. |
| ② | Ch dropdown | Selects the target channel. Specify different channels for From and To. |
| ② | CAN / CAN-FD | Selects the frame type on each side. |
| ② | Std. / Ext. | Selects standard/extended ID. |
| ② | CAN ID field | Enter the CAN ID in hexadecimal. |
| ② | + button | Adds the GW Information settings to the list. Up to 64 entries can be registered. |
| ② | Update button (circular arrow) | Updates the selected list row with the GW Information settings. |
| ② | Delete button (trash) | Deletes the selected list row. |
| ③ | GW Latency & Msg. Lost Analyze | Runs gateway latency/message loss analysis. |
| ③ | GW Msg. Residence Peak Analyze | Runs gateway residence analysis. |
| ③ | Clear | Deletes all registered frame mappings. |
CAN GW Analyze Procedure
- Open CAN GW Analyze for a combined log Combine the target logs with Ch Mixing and select “CAN GW Analyze” at the bottom of the Analyze tab.
Figure 2. CAN GW Analyze tab location.
- Configure and register source/destination frames
Set the channel, frame type, ID format, and CAN ID for From and To under GW Information. Click + to add the mapping to GW CAN Frame List and check that the checkbox for the registered target row is checked. Figure 3 registers From as
Ch1-1, CAN-FD, Std. ID310, and To asCh1-2, CAN-FD, Std. ID330.
Figure 3. Registering a frame mapping to analyze.
- Run latency and message loss analysis Check that the checkbox for the registered target row is checked, then click “GW Latency & Msg. Lost Analyze.”
Figure 4. Checking the target row and running latency/message loss analysis.
- Run residence analysis Close the latency/message loss results using Close. Check that the checkbox for the registered target row is checked, then click “GW Msg. Residence Peak Analyze” to analyze the peak resident frame count.
Figure 5. Checking the target row and running residence analysis.
Both analyses display results in the “Analyze Result” window. Click Close to close the results window.
Gateway Latency and Message Loss Results Reference
“GW Latency & Msg. Lost Analyze” results appear on the Gateway Analyze tab in Analyze Result.
Figure 6. Gateway latency/message loss analysis results.
Figure 6 shows maximum latency 10.146 ms, minimum 9.593 ms, average 9.872 ms, and Sample 607. The maximum latency timestamp is +000:00:10.927.690, and Lost Time is -.
| Item | Description |
|---|---|
| From / To | Shows source/destination channels. Protocol and ID for each side show CAN/CAN-FD, standard/extended ID, and CAN ID. |
| Max(ms) | Shows maximum latency. |
| Max TimeStamp | Shows the log timestamp at maximum latency. |
| Min(ms) | Shows minimum latency. |
| Min TimeStamp | Shows the log timestamp at minimum latency. |
| Ave(ms) | Shows average latency. |
| Recv,Ave(ms) | Shows the average reception interval at the gateway source. |
| Max Delay Rate | Shows maximum latency ÷ average reception interval at the gateway source. |
| Sample | Shows the number of matched source/destination pairs. |
| Lost Time | Shows the log timestamp of the first message loss. |
| Target Log tab | Shows the analyzed log. |
| Gateway Analyze tab | Shows analysis results. |
| Save | Saves displayed analysis results in CSV format. |
| Close | Closes the Analyze Result window. |
If message loss occurs, Max/Min/Ave/Recv,Ave/Max Delay Rate/Sample show results up to the first loss.
Opening the Corresponding Log from Results
If Max TimeStamp, Min TimeStamp, or Lost Time contains a timestamp, double-click it to switch to Target Log and select the corresponding row. Figure 7 shows the result of double-clicking Max TimeStamp in Figure 6.
Figure 7. Jumping from results to the corresponding Target Log row.
The selected row is destination Ch1-2, ID 330, at +000:00:10.927.690. Its difference from the preceding source Ch1-1, ID 310, timestamp +000:00:10.917.544 matches the maximum latency of 10.146 ms in Figure 6.
Gateway Residence Results Reference
“GW Msg. Residence Peak Analyze” results appear on the Gateway Analyze tab in Analyze Result. The upper table shows results by destination channel, and the lower table shows results by registered frame.
Figure 8. Gateway residence analysis results.
In Figure 8, ① shows results by channel and ② by frame. In the ① Ch table, Ch1-2 has GW Frame 1, Peak 1, Peak Time +000:00:00.019.246, and Sample 1214. The ② Frame table mapping Ch1-1, ID 310 → Ch1-2, ID 330 also shows Peak 1, the same Peak Time, and Sample 1214.
| Table | Item | Description |
|---|---|---|
| ① Ch | To | Shows the gateway destination channel. |
| ① Ch | GW Frame | Shows the number of gateway target frames. |
| ① Ch | Peak | Shows the maximum resident frame count for that destination channel. |
| ① Ch | Peak Time | Shows the log timestamp where the peak occurred. |
| ① Ch | Sample | Shows the number of samples used to increment/decrement the residence count. |
| ① Ch | Save | Saves per-channel results in CSV format. |
| ② Frame | From / To | Shows source/destination channels. Protocol and ID for each side show CAN/CAN-FD, standard/extended ID, and CAN ID. |
| ② Frame | Peak | Shows the maximum resident frame count for that frame mapping. |
| ② Frame | Peak Time | Shows the log timestamp where the peak occurred. |
| ② Frame | Sample | Shows the number of samples used to increment/decrement the residence count. |
| ② Frame | Save | Saves per-frame results in CSV format. |
Check the analyzed log on Target Log and results on Gateway Analyze. Click Close to close the Analyze Result window.