Sun SPOT Telemetry Demo -- SPOT-side
v1.1

org.sunspotworld.demo
Interface PacketTypes

All Known Implementing Classes:
AccelMonitor, TelemetryMain

public interface PacketTypes

Packet types for Telemetry app

Author:
Ron Goldman
Date: January 15, 2007, revised: August 1, 2007

Field Summary
static byte ACCEL_2G_DATA_REPLY
          Client reply with current accelerometer readings taken using the 2G scale.
static byte ACCEL_6G_DATA_REPLY
          Client reply with current accelerometer readings taken using the 6G scale.
static byte BLINK_LEDS_REQ
          Host command to blink the remote SPOT's LEDs.
static java.lang.String BROADCAST_PORT
          Port to use to locate the host application.
static byte CALIBRATE_ACCEL_REPLY
          Client reply to indicate the current accelerometer rest offsets.
static byte CALIBRATE_ACCEL_REQ
          Host command to request the accelerometer be calibrated.
static java.lang.String CONNECTED_PORT
          Port to use for sending commands and replies between the SPOT and the host application.
static byte DISPLAY_SERVER_AVAIL_REPLY
          Host reply to indicate it is available.
static byte DISPLAY_SERVER_QUITTING
          Host command to indicate it is quiting.
static byte DISPLAY_SERVER_RESTART
          Host command to indicate it is restarting.
static byte GET_ACCEL_INFO_REPLY
          Client reply to indicate the current accelerometer scale & zero offsets.
static byte GET_ACCEL_INFO_REQ
          Host command to request the current accelerometer scale & calibration.
static byte GET_ACCEL_INFO2_REPLY
          Client reply to return the accelerometer gains.
static byte LOCATE_DISPLAY_SERVER_REQ
          Client command to locate a display server.
static byte MESSAGE_REPLY
          Client reply with any error message for the host to display.
static byte PING_REPLY
          Client reply to a ping includes the radio signal strength & battery level.
static byte PING_REQ
          Host command to ping the remote SPOT and get the radio signal strength.
static byte SEND_ACCEL_DATA_REQ
          Host command to request accelerometer data be sent.
static byte SET_ACCEL_SCALE_REPLY
          Client reply to indicate the current accelerometer scale being used.
static byte SET_ACCEL_SCALE_REQ
          Host command to specify the accelerometer scale to be used.
static byte STOP_ACCEL_DATA_REQ
          Host command to request accelerometer data stop being sent.
 

Field Detail

BROADCAST_PORT

static final java.lang.String BROADCAST_PORT
Port to use to locate the host application.

See Also:
Constant Field Values

CONNECTED_PORT

static final java.lang.String CONNECTED_PORT
Port to use for sending commands and replies between the SPOT and the host application.

See Also:
Constant Field Values

LOCATE_DISPLAY_SERVER_REQ

static final byte LOCATE_DISPLAY_SERVER_REQ
Client command to locate a display server.

See Also:
Constant Field Values

DISPLAY_SERVER_RESTART

static final byte DISPLAY_SERVER_RESTART
Host command to indicate it is restarting.

See Also:
Constant Field Values

DISPLAY_SERVER_QUITTING

static final byte DISPLAY_SERVER_QUITTING
Host command to indicate it is quiting.

See Also:
Constant Field Values

GET_ACCEL_INFO_REQ

static final byte GET_ACCEL_INFO_REQ
Host command to request the current accelerometer scale & calibration.

See Also:
Constant Field Values

SET_ACCEL_SCALE_REQ

static final byte SET_ACCEL_SCALE_REQ
Host command to specify the accelerometer scale to be used.

See Also:
Constant Field Values

CALIBRATE_ACCEL_REQ

static final byte CALIBRATE_ACCEL_REQ
Host command to request the accelerometer be calibrated.

See Also:
Constant Field Values

SEND_ACCEL_DATA_REQ

static final byte SEND_ACCEL_DATA_REQ
Host command to request accelerometer data be sent.

See Also:
Constant Field Values

STOP_ACCEL_DATA_REQ

static final byte STOP_ACCEL_DATA_REQ
Host command to request accelerometer data stop being sent.

See Also:
Constant Field Values

PING_REQ

static final byte PING_REQ
Host command to ping the remote SPOT and get the radio signal strength.

See Also:
Constant Field Values

BLINK_LEDS_REQ

static final byte BLINK_LEDS_REQ
Host command to blink the remote SPOT's LEDs.

See Also:
Constant Field Values

DISPLAY_SERVER_AVAIL_REPLY

static final byte DISPLAY_SERVER_AVAIL_REPLY
Host reply to indicate it is available.

See Also:
Constant Field Values

GET_ACCEL_INFO_REPLY

static final byte GET_ACCEL_INFO_REPLY
Client reply to indicate the current accelerometer scale & zero offsets.

See Also:
Constant Field Values

GET_ACCEL_INFO2_REPLY

static final byte GET_ACCEL_INFO2_REPLY
Client reply to return the accelerometer gains.

See Also:
Constant Field Values

SET_ACCEL_SCALE_REPLY

static final byte SET_ACCEL_SCALE_REPLY
Client reply to indicate the current accelerometer scale being used.

See Also:
Constant Field Values

CALIBRATE_ACCEL_REPLY

static final byte CALIBRATE_ACCEL_REPLY
Client reply to indicate the current accelerometer rest offsets.

See Also:
Constant Field Values

ACCEL_2G_DATA_REPLY

static final byte ACCEL_2G_DATA_REPLY
Client reply with current accelerometer readings taken using the 2G scale.

See Also:
Constant Field Values

ACCEL_6G_DATA_REPLY

static final byte ACCEL_6G_DATA_REPLY
Client reply with current accelerometer readings taken using the 6G scale.

See Also:
Constant Field Values

PING_REPLY

static final byte PING_REPLY
Client reply to a ping includes the radio signal strength & battery level.

See Also:
Constant Field Values

MESSAGE_REPLY

static final byte MESSAGE_REPLY
Client reply with any error message for the host to display.

See Also:
Constant Field Values

Sun SPOT Telemetry Demo -- SPOT-side
v1.1

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