Acquisition Test Software

A program was written in C++ and the QT framework to simplify the process of testing the DAU program. It allows a number of commands to be generated, and displays the returned responses in hexadecimal. The program is able to synchronize serial baud rates through monitoring idle character responses from the DAU. The code is used in later developments.

Main Window


The main window provides a set of buttons for producing a defined command to be sent, with correct command ID and number of parameters. The parameters of the command may be entered in the lower three boxes as appropriate. The hexadecimal form of the command to be sent appears in the long edit box. This can be edited to add or change parameters or to define a new command.The response from the DAU is displayed in the central panel. If nothing has been received, an error is displayed.

On the right hand side is a section for acquiring a voltage measurement from a channel of the device.

Program Operation

When the program is started an IDLE character is sent. The DAU should be in an IDLE state, and will return an IDLE character. If the program does not receive an IDLE character, then the baud rate is changed and the process is repeated. When the program is satisfied that it has been synchronized with the DAU, it opens up the main window.

As the DAU may be running a bootloader, the program also checks for an ASCII '?' character. This is the response that the AVR109 bootloader will give to an unknown command. If this character is received, the program will stop searching for baud rate and will simply return an ASCII 'E' character that causes the bootloader to exit to the application. A further IDLE command is then sent to ensure that the DAU is ready to accept commands. Note that USB-serial adaptors may send a "?" if they detect a transmission error. This is not a problem as the program will keep searching if it does not subsequently attain synchronization.


First created 13 May 2007

Last Modified 22 July 2007