> For the complete documentation index, see [llms.txt](https://docs.intrepidcs.com/vspy-3-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.intrepidcs.com/vspy-3-documentation/3.9.17/vehicle-spy-tutorials/tutorial-sort-messages-by-ecu/part-4-sort-the-ecu-messages.md).

# Part 4 - Sort the ECU Messages

**\*Note:** Example file "Tutorial 4 - Part 1" can be loaded at this point if you got stuck somewhere in previous Tutorial 4 - Parts 1 to 3.

### 1. Simulate the Vehicle Hardware:

In this example we will be using a prerecorded data file to simulate our network traffic. The name of the file we will be using is [Vehicle Data.csv](https://cdn.intrepidcs.net/support/VehicleSpy/Vehicle%20Data.csv)" (click the link to download if necessary). To setup the simulation, click Tools --> Options on the main menu bar. Goto the "Vehicle Networks" tab and check the Simulation Mode box. Now open the "Vehicle Data.csv" file by clicking "Browse..." and opening the file. Click the Ok button to close the Vehicle Spy Setup dialog. The "Vehicle Networks" tab and its settings are shown in Figure 1.

![Figure 1: The Tools --> Options, Vehicle Spy Setup dialog with simulation mode enabled.](https://content.gitbook.com/content/ZqysKgxMTlY1CiNX5qrT/blobs/oaNA63IJNtyiubTGd0DH/spyExample4Part4Pic2.jpeg)

### 2. Start Vehicle Spy:

From the main menu bar select Vehicle Networks --> Messages. Click the blue start button and messages will begin to scroll on the screen. If you go to Function Blocks, you can monitor the capture process and see when it is finished. Click stop when a sufficient number of messages have been collected. (NOTE: In the simulation file there is about a 1 minute delay before the buffer begins to repeat.) When you click stop, the separated ECU messages will be in your data folder.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.intrepidcs.com/vspy-3-documentation/3.9.17/vehicle-spy-tutorials/tutorial-sort-messages-by-ecu/part-4-sort-the-ecu-messages.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
