5.2.1.4.2 Initialization
After setting up the hardware (e.g., initializing the serial interface, setting up the ADC and I/O ports), the application is ready to start sending the ADP messages. The first message sent is a MSG_REQ_HANDSHAKE.
Field | Values | Description |
---|---|---|
Token | 0xFF | |
Message ID | 0x00 | |
Data length | 10 | |
Protocol version | 0x01 | The ADP example uses ADP protocol version 1 |
Options |
0x01 |
GPIO is in use in this application |
Token | {0x58, 0x99, 0xAB, 0xC9, 0x0F, 0xE2, 0xF7, 0xAA} | Token used to verify ADP protocol |
This message is repeated until a MSG_RES_HANDSHAKE (MSG_RES_HANDSHAKE) is received, indicating the host is ready to receive messages.