Sceptre Preloaded Test Application

1.00

Version

Clemens Valens, January 31, 2010

Introduction

This is a test program that will try to create some files filled with data on a preformatted SD card that shows that everything is working OK.

Note: Some SD cards need a second board reset before they work. (Why?)

Some information about the system is written to "sys_info.txt".

Some information about the SD card itself is written to "sd_info.txt".

The board will also output data on UART0 (115200n81). Instructions and initialization progress messages are transmitted.

After initialization the system will log at 10 Hz during 30 seconds the accelerometer output to the file "a_log.txt" and the thermometer output to "t_log.txt". These log files also contain a second counter that shows that the real time clock (RTC) is running. A progress indicator is transmitted on UART0.

When the data logging terminates the system will transmit a message every second with time, temperature and accelerometer data. It will also launch a USB mass storage device.

The SD card can be accessed as a USB mass storage device as soon as the USB connect LED is lighted. On-the-fly USB port switching is possible by first removing JP5, then JP4, then repositioning JP4 and finish by repositioning JP5. This works on Windows XP Pro. Switching back to USB serial port will very probably reset the board.

An LED connected between port 1.30 (anode, processor pin 52, Sceptre K7 pin 1) and GND (cathode) will blink at a rate of 1 Hz under tilmer interrupt control.

Since the basic card does not have a Bluetooth module mounted, its test is not activated by default. A test is however available To activate Bluetooth testing provide a file named "test_bt.pls" on the SD card. The file should contain the friendly name for the Bluetooth device (max 16 characters).

The Bluetooth test will put the BT module in slave connection mode (link LED will blink). It should be possible to connect to the board using the PIN or ID "1234". A connection changes the behaviour of the BT LEDs (link LED will stay on), a disconnect message is transmitted on UART0 when the connection is lost.

After data logging the system will transmit data received on UART0 to the Bluetooth peer, data received on the Bluetooth module is echoed on UART0, interlaced with the time-temperature-accelerometer message. Data reception is checked at 1 Hz.

The BT module runs at 19200n81.

 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated by  doxygen 1.6.2