3.2 Command-Response Pairs

The Microchip Device Firmware Update Protocol is a host driven protocol. All communications follow three sequential steps:

  1. Host Command Generation
  2. Client Command Processing and Response Generation
  3. Host Response Processing

The combination of a command with its response is called a command-response pair. Commands and responses can be identified as being associated as members of the same command-response pair through their sequence number.

The following is an example showing how a command can be used to trigger an operation on the client and retrieve data associated with that command. This example shows the host sending theGetImageState command (see Get Image State Command) to the client. The client determines whether its firmware image is valid or not and then responds to that command with information about the state of its firmware image.