User manual

AOAA Kit – Software User’s Guide
Page 19
Copyright 2012 © Embedded Artists AB
Figure 14 - List of detected XBee nodes
Figure 15 - Controlling XBee Node 1
Each discovered node sends its capabilities to the gateway which forwards the information to the
Android application which in turn alters the user interface to reflect this. In Figure 15 there is no light
sensor compared to Figure 9 even if it is the same application.
The Android application detects when the USB cable is disconnected and changes the appearance to
reflect this. See Figure 10.
3.4 FreeRTOS
FreeRTOS (see [11]) has been ported to the AOAA Board. As it is not used in any of the AOA demos,
there is a separate demo for it. The demo shows two tasks – one sender and one receiver.
3.4.1 Setup
This demo only needs one AOAA Board.
1) Flash the FreeRTOS_demo project on the AOAA Board using the LPCXpresso IDE as
explained in section 4.3
2) Connect the USB cable between the AOAA Board and the PC.
3) Start a terminal program on the PC to see the messages sent from the receiving task.
3.4.2 Running the Demo
The receiving task will send the string “Receive Task” on the UART once every second.
3.5 Web Server
lwIP v1.4.0 (see [17]) has been ported to the AOAA Board. The httpserver_raw (webserver) application
from the lwIP contrib package is available with a small modification to use the on-board SD-card
interface instead of the ROM based file system.
3.5.1 Setup
1) Add one or more files to an SD card and then insert it into the slot on the AOAA Board.
2) Open the lwip_httpd project in the LPCXpresso IDE as described in section 4.3