As mentioned previously, every command sent to the host adapter will receive a response.
The Response Packets fall into one of three categories:
An ACK response from the host adapter indicates that the received command has been executed successfully. An ACK response is represented by
For example, the PING command always elicits an ACK response from the device:
A NAK response from the host adapter indicates that the received command failed to execute. This could be indicative of a spelling error/typo, invalid command name or parameter values, or the failure to successfully execute the called function. A NAK response is represented by
For example, a keyboard error caused
+PINGto be misspelled as
+PONG, which is a non-existent command:
Many of the commands sent to the host adapter result in the host adapter responding with data. In these cases, the format of the response is specific to the executed command. Typically the response contains the name of the command followed by the response data.
For example, sending the +FWVER command causes the device to respond as such:
The ASCII Command Set Reference Guide provides detailed example responses for of the host adapter commands. You can jump to that section of the guide here:
We thought you'd never ask. Interrupts aren't actually a response to a command - they are somewhat unsolicited transmissions. As such, they are worthy of their own page in this guide.