The framework shows how the remote SPOT and the host application can locate each other by the use of broadcast packets. A point-to-point radio connection is then established and used to pass commands and replies between the host application and the remote SPOT.
The SPOT application consists of two Java classes: one to handle the radio connection to the host application, and the second to read the accelerometer and send the data to the host application.
Several auxiliary classes are also used: one to provide a basic application framework, another to locate a service, one to receive packets and dispatch them to the appropriate handler, one to queue and send packets back to the host application, and one last class to execute a periodic task.