I2C SPI USB CAN eSPI Cable Testing View All Quick Start Guides User Manuals Software Downloads Knowledge Base Videos Case Studies App Notes White Papers Sales Support About Us
Products Blog Sales Support Contact Search
Can I Use the Command Prompt for Executing Commands with the Aardvark I2C/SPI Host Adapter?
Rena Ayeras

Question from the Customer:

I see there are options for running batch commands with the Control Center Serial Software, but what I want to do is run from the command prompt of a terminal. Is there a way I can run single commands like that?

I’m using the Aardvark I2C/SPI Host Adapter to access a PCA9546 EEPROM through an I2C switch.

Response from Technical Support:

Thank you for your questions! The GUI software , Flash Center Software and Control Center Serial Software, do not support executing commands from a command prompt. However, you can use Aardvark Software API to create a script specific for your requirements.

Overview of API Software

Our API supports multiple operating systems (OS) and programming languages, and includes program examples that can be used as-is or modified as needed. We recommend using the Python bindings as it is a simple language, and you can quickly execute the scripts without a compiler.

Software examples are available in C, Visual Basic, Python, and Aardvark XML batch script code. README.txt files are included in the package to explain each of the examples. The examples are designed to write/read from the Aardvark adapter to the Atmel SPI EEPROM AT25080A, which is included on the

For example, if you choose to use Python, in the API package under the python directory, you can modify aai2c_eeprom.py and aaspi_eeprom.py to create your own custom applications. The EXAMPLES.txt file in the Software API package describes the function of each example file.

For more information about API commands, please refer to the API Documentation section of the Aardvark I2C/SPI Host Adapter User Manual.

Guidelines for Creating a Script for Command Prompts

To access the EEPROM through the I2C switch, we recommend creating your own custom application. For a starting point, you can refer to and customize our API example programs aai2c_eeprom and aai2c_file.

Here is a summary of what you can do for executing commands via command prompt:

  1. Configure the Aardvark adapter as I2C using aa_configure.
  2. To select the control channel to access the EEPROM, communicate with the I2C switch using the Device address (70) and set the Control register in I2C switch to port 0 to access the EEPROM.

    1. Referring to the PCA9546 datasheet for details: select channel 0, and then send 00 to 0x70.
  3. Execute the read and write commands to the target EEPROM using the EEPROM address.
  4. Exit the program.

Additional resources that you may find helpful include the following:

We hope this answers your questions. If you have other questions about our Total Phase products, feel free to email us at sales@totalphase.com. You can also request a demo specific for your application.