|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.tinyos.tinydb.CommandMsgs
Class with static functions to generate message arrays that can be used to invoke commands on Db motes.
Field Summary | |
static byte |
CMD_MSG_TYPE
AM Message ID used for command messages |
Constructor Summary | |
CommandMsgs()
|
Method Summary | |
static net.tinyos.message.Message |
addAttrCmd(short targetId,
char[] name,
byte t,
long val)
|
static net.tinyos.message.Message |
dumpLog(short targetId)
Deprecated. |
static net.tinyos.message.Message |
resetCmd(short targetId)
The reset command resets motes (like toggling the power switch |
static net.tinyos.message.Message |
setCentralized(short targetId,
boolean centralized)
Enabled "centralized" routing, where no aggregation is performed in network and data is simply forwarded to the root. |
static net.tinyos.message.Message |
setFanout(short targetId,
char fanout)
Constrains the network topology to have the specified fanout |
static net.tinyos.message.Message |
setFixedComm(short targetId,
boolean fixed)
Fixed comm means that motes transmit in in the time slot corresponding to their local id * 2; unfixed comm means mote xmit in a random slot selected uniformly in the range (0 .. |
static net.tinyos.message.Message |
setLogLen(short targetId,
short offset)
Deprecated. |
static net.tinyos.message.Message |
setPot(short targetId,
char pot)
Sets the value of the radio strength potentiometer (0 - 100), 0 is largest |
static net.tinyos.message.Message |
setSounderCmd(short targetId)
|
static net.tinyos.message.Message |
stopMagCmd(short targetId)
Stop the magnetometer from oversampling (for power conservation) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte CMD_MSG_TYPE
Constructor Detail |
public CommandMsgs()
Method Detail |
public static net.tinyos.message.Message resetCmd(short targetId)
targetId
- The id of the mote that should receive this messagepublic static net.tinyos.message.Message setLogLen(short targetId, short offset)
public static net.tinyos.message.Message dumpLog(short targetId)
public static net.tinyos.message.Message setFanout(short targetId, char fanout)
targetId
- The ID of the mote that should receive this messagefanout
- The topology fanout. Motes are constrained to choose
one of fanout parents (e.g. if fanout = 2, mote id 3 can pick motes
1 or 2 as a parent.)public static net.tinyos.message.Message setPot(short targetId, char pot)
targetId
- The recipient of this messagepot
- The value of the potentiometerpublic static net.tinyos.message.Message setCentralized(short targetId, boolean centralized)
public static net.tinyos.message.Message setFixedComm(short targetId, boolean fixed)
public static net.tinyos.message.Message stopMagCmd(short targetId)
public static net.tinyos.message.Message setSounderCmd(short targetId)
public static net.tinyos.message.Message addAttrCmd(short targetId, char[] name, byte t, long val)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |