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.

Table 5-5. MSG_REQ_HANDSHAKE
FieldValuesDescription
Token0xFF
Message ID0x00
Data length10
Protocol version0x01The 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.