Sun SPOT Telemetry Demo -- Host side
v1.1
A B C D G I L M O P R S T W

A

ACCEL_2G_DATA_REPLY - Static variable in interface org.sunspotworld.demo.PacketTypes
Client reply with current accelerometer readings taken using the 2G scale.
ACCEL_6G_DATA_REPLY - Static variable in interface org.sunspotworld.demo.PacketTypes
Client reply with current accelerometer readings taken using the 6G scale.
AccelerometerListener - Class in org.sunspotworld.demo
Simple example class to locate a remote service (on a SPOT), to connect to it and send it a variety of commands.
AccelerometerListener() - Constructor for class org.sunspotworld.demo.AccelerometerListener
Create a new AccelerometerListener to connect to the remote SPOT over the radio.
AXIS_WIDTH - Static variable in class org.sunspotworld.demo.GraphView
Specifies the width of the y-axis display.

B

BLINK_LEDS_REQ - Static variable in interface org.sunspotworld.demo.PacketTypes
Host command to blink the remote SPOT's LEDs.
BROADCAST_PORT - Static variable in interface org.sunspotworld.demo.PacketTypes
Port to use to locate the host application.

C

CALIBRATE_ACCEL_REPLY - Static variable in interface org.sunspotworld.demo.PacketTypes
Client reply to indicate the current accelerometer rest offsets.
CALIBRATE_ACCEL_REQ - Static variable in interface org.sunspotworld.demo.PacketTypes
Host command to request the accelerometer be calibrated.
clear() - Method in class org.sunspotworld.demo.AccelerometerListener
Routine to reset after old data has been cleared from the GUI display.
clearGraph() - Method in class org.sunspotworld.demo.GraphView
Flush any current data and clear the display.
CONNECTED_PORT - Static variable in interface org.sunspotworld.demo.PacketTypes
Port to use for sending commands and replies between the SPOT and the host application.

D

DISPLAY_SERVER_AVAIL_REPLY - Static variable in interface org.sunspotworld.demo.PacketTypes
Host reply to indicate it is available.
DISPLAY_SERVER_QUITTING - Static variable in interface org.sunspotworld.demo.PacketTypes
Host command to indicate it is quiting.
DISPLAY_SERVER_RESTART - Static variable in interface org.sunspotworld.demo.PacketTypes
Host command to indicate it is restarting.
doBlink() - Method in class org.sunspotworld.demo.AccelerometerListener
Send a request to the remote SPOT to blink its LEDs.
doCalibrate() - Method in class org.sunspotworld.demo.AccelerometerListener
Send a request to the remote SPOT to calibrate the accelerometer.
doGetScale() - Method in class org.sunspotworld.demo.AccelerometerListener
Send a request to the remote SPOT to report on which accelerometer scale it is using.
doPing() - Method in class org.sunspotworld.demo.AccelerometerListener
Send a request to the remote SPOT to report on radio signal strength.
doQuit() - Method in class org.sunspotworld.demo.AccelerometerListener
Stop running.
doSendData(boolean, GraphView) - Method in class org.sunspotworld.demo.AccelerometerListener
Send a request to the remote SPOT to start or stop sending accelerometer readings.
doSetScale(int) - Method in class org.sunspotworld.demo.AccelerometerListener
Send a request to the remote SPOT to set which accelerometer scale it will use.

G

GET_ACCEL_INFO2_REPLY - Static variable in interface org.sunspotworld.demo.PacketTypes
Client reply to return the accelerometer gains.
GET_ACCEL_INFO_REPLY - Static variable in interface org.sunspotworld.demo.PacketTypes
Client reply to indicate the current accelerometer scale & zero offsets.
GET_ACCEL_INFO_REQ - Static variable in interface org.sunspotworld.demo.PacketTypes
Host command to request the current accelerometer scale being used.
getMaxWidth() - Method in class org.sunspotworld.demo.GraphView
Return the width that the current telemetry data occupies.
GraphView - Class in org.sunspotworld.demo
A simple class to store up to 10 minutes of telemetry data, display it on the screen, do some simple filtering of the data and read/write it to a file.
GraphView() - Constructor for class org.sunspotworld.demo.GraphView
Creates a new instance of GraphPanel.

I

is2G() - Method in class org.sunspotworld.demo.GraphView
Returns whether the accelerometer data using the 2G or 6G scales.
is2GScale() - Method in class org.sunspotworld.demo.AccelerometerListener
Report which scale is the accelerometer is using.

L

LOCATE_DISPLAY_SERVER_REQ - Static variable in interface org.sunspotworld.demo.PacketTypes
Client command to locate a display server.

M

main(String[]) - Static method in class org.sunspotworld.demo.TelemetryFrame
Create an initial new window and display it.
MESSAGE_REPLY - Static variable in interface org.sunspotworld.demo.PacketTypes
Client reply with any error message for the host to display.

O

org.sunspotworld.demo - package org.sunspotworld.demo
Host side of a simple telemetry application.

P

PacketTypes - Interface in org.sunspotworld.demo
Packet types for Telemetry app
paintComponent(Graphics) - Method in class org.sunspotworld.demo.GraphView
Paint the X-axis & the G forces recorded.
paintYaxis(Graphics) - Method in class org.sunspotworld.demo.GraphView
Draw the tick marks on the acceleration axis (= y-axis).
PING_REPLY - Static variable in interface org.sunspotworld.demo.PacketTypes
Client reply to a ping includes the radio signal strength & battery level.
PING_REQ - Static variable in interface org.sunspotworld.demo.PacketTypes
Host command to ping the remote SPOT and get the radio signal strength.
print(Graphics, PageFormat, int) - Method in class org.sunspotworld.demo.TelemetryFrame
Routine to print out each page of the current graph with a footer.

R

readTelemetryFile(File) - Method in class org.sunspotworld.demo.GraphView
Read in acceleration telemetry data from a file.
reconnect() - Method in class org.sunspotworld.demo.AccelerometerListener
Send a request to the remote SPOT to report on radio signal strength.
repaint() - Method in class org.sunspotworld.demo.GraphView
Cause the display to be repainted.
run() - Method in class org.sunspotworld.demo.AccelerometerListener
Main runtime loop to connect to a remote SPOT.

S

SEND_ACCEL_DATA_REQ - Static variable in interface org.sunspotworld.demo.PacketTypes
Host command to request accelerometer data be sent.
SET_ACCEL_SCALE_REPLY - Static variable in interface org.sunspotworld.demo.PacketTypes
Client reply to indicate the current accelerometer scale being used.
SET_ACCEL_SCALE_REQ - Static variable in interface org.sunspotworld.demo.PacketTypes
Host command to specify the accelerometer scale to be used.
setAxisPanel(JPanel) - Method in class org.sunspotworld.demo.GraphView
Specify the panel displaying the Y-axis.
setConnectionStatus(boolean, String) - Method in class org.sunspotworld.demo.TelemetryFrame
Display the current connection status to a remote SPOT.
setFiltertype(boolean) - Method in class org.sunspotworld.demo.GraphView
Select which filter to use when smoothing the data.
setFilterWidth(int) - Method in class org.sunspotworld.demo.GraphView
Specify the filter's window size.
setGOffset(double, double, double) - Method in class org.sunspotworld.demo.GraphView
Set the rest offsets used by the accelerometer.
setGUI(TelemetryFrame) - Method in class org.sunspotworld.demo.AccelerometerListener
Specify the GUI window that shows whether connected to a remote SPOT.
setIncludeGravity(boolean) - Method in class org.sunspotworld.demo.GraphView
Specify whether the forces displayed should include gravity or not.
setMaxGLabel(JLabel) - Method in class org.sunspotworld.demo.GraphView
Label to use to display maximum G force recorded.
setShowG(boolean) - Method in class org.sunspotworld.demo.GraphView
Enable/disable the display of the combined G forces.
setShowX(boolean) - Method in class org.sunspotworld.demo.GraphView
Enable/disable the display of the x-axis G forces.
setShowY(boolean) - Method in class org.sunspotworld.demo.GraphView
Enable/disable the display of the y-axis G forces.
setShowZ(boolean) - Method in class org.sunspotworld.demo.GraphView
Enable/disable the display of the z-axis G forces.
setSmooth(boolean) - Method in class org.sunspotworld.demo.GraphView
Enable/disable the smoothing of the data with a filter.
setViewport(JViewport) - Method in class org.sunspotworld.demo.GraphView
Connect us with the view port that is displaying us.
setZoomX(int) - Method in class org.sunspotworld.demo.GraphView
Set the scale factor for the x-axis.
setZoomY(int) - Method in class org.sunspotworld.demo.GraphView
Set the scale factor for the y-axis.
STOP_ACCEL_DATA_REQ - Static variable in interface org.sunspotworld.demo.PacketTypes
Host command to request accelerometer data stop being sent.

T

takeData(String, long, int, double, double, double, double, boolean) - Method in class org.sunspotworld.demo.GraphView
Add new telemetry data from remote SPOT.
TelemetryFrame - Class in org.sunspotworld.demo
GUI creating code to make a window to display accelerometer data gathered from a remote SPOT.
TelemetryFrame() - Constructor for class org.sunspotworld.demo.TelemetryFrame
Creates a new TelemetryFrame window.
TelemetryFrame(File) - Constructor for class org.sunspotworld.demo.TelemetryFrame
Creates a new TelemetryFrame window with an associated file.

W

writeData(File) - Method in class org.sunspotworld.demo.GraphView
Write the current acceleration telemetry data out to a file.

A B C D G I L M O P R S T W
Sun SPOT Telemetry Demo -- Host side
v1.1

Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.