> For the complete documentation index, see [llms.txt](https://docs.spadnext.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spadnext.com/extending-and-apis/serial-connection/command-2.md).

# Device SPAD.neXt Events (2)

The channel 2 is used by SPAD.neXt to inform the device about events. There are some events that the device might ignore, and some that it should react to.

`2,START;` -> The device can send data updates now , if any\
`2,STOP;`-> The device should stop sending data updates\
`2,AIRCRAFTCHANGED,<new name>;` -> the loaded aircraft changed

`2,PROFILECHANGING,<new pofile name>;` -> the profile is about to change\
`2,PROFILECHANGED,<new profile name>;` -> the loaded SPAD.neXt profile changed and is active\
`2,CONNECT,<simulation name>;` -> a simulation connected to SPAD.neXt\
`2,DISCONNECT,<simulation name>;` -> a simulation disconnected from SPAD.neXt

2,PAGE,\<GUID>,\<completed>,\<name>; -> Switch to page

2,VIRTUALPOWER,\<onoff>

2,LABEL,\<index>,\<newlabel>;

2,PROVIDER,\<name>,\<status>; -> The status of a provider has changed

When the profile is switched in SPAD.neXt the following events will be sent to the device:

1. PROFILECHANGING
2. PAGE (completed = 0)
3. PAGE (completed = 1)
4. PROFILECHANGED

(2 and 3 only if device supported pages)<br>


---

# 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.spadnext.com/extending-and-apis/serial-connection/command-2.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.
