Q: I am using the Aardvark I2C/SPI Host Adapter while testing slave devices. I enable the I2C or SPI slave and start receiving messages. After I disable the slave device, I receive the status code AA_COMMUNICATION_ERROR. It seems I cannot disable the slave device - can you advise how to remedy this?
Thanks for your question! The status code AA_COMMUNICATION_ERROR indicates that after the computer sent the disable request to the slave, the computer did not receive an acknowledgment from the Aardvark I2C/SPI Host Adapter. In the scenario you described, the master was probably sending large amounts of data that saturated the host PC receive buffer for the Aardvark I2C/SPI Host Adapter. Most likely the slave was disabled, but the acknowledgement from the Aardvark adapter was not received.
If the Aardvark I2C/SPI Host Adapter did disable the slave, there would be no more incoming data to saturate the link. In this case, if you send another call to disable the slave, the slave should return without error.
To improve your setup, following are suggestions to optimize communication with the I2C/SPI slave device.
For more information about the Aardvark I2C/SPI Host Adapter and other products, please refer to the following:
We hope this answers your question. If you have other questions about our host adapters, API and software tools or other Total Phase products, feel free to email us at sales@totalphase.com or support@totalphase.com.