|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sentilla.net.CollectionProtocol
public class CollectionProtocol
Collection protocol for receiving multi-hop messages from a mote network.
This class contains the message formats used by the collection protocol.
This protocol requires the presence of a host server to operate. The host server will send messages periodically, allowing the motes to build routes back to that server. These routes will then be used to send messages to the server. Note that only one host server is permitted to exist in a network. If two or more host servers are present, unpredictable routing behavior will result.
The time to receive a message from a mote will vary with the number of hops in the network. It can take up to 60 seconds per hop for a message to be successfully transmitted. Care should be taken to account for this delay when developing mote applications. In addition, the when using the CollectionProtocol, the Sender.send command can take up to 60 seconds to return. This command block until a transmission is succesful, which will include all retries and backoffs. Note that if a route is not available, this command will block indefinitely until a route is available.
The maximum payload size availabe when using the collection protocol is 58 bytes. The default number of message retries is 9, the default neighbor timeout is 5 mins, the default backoff interval is 2s, and the default ACK timeout is 1.6s.
The only valid address for the collection protocol is the BroadcastAddress.
see com.sentilla.platform.[tmote|cmote|vmote].Protocol
BroadcastAddress
,
Mac64Address
Nested Class Summary | |
---|---|
static class |
CollectionProtocol.CollectionProtocolAck
Ack message sent by motes to acknowledge the receipt of a DataMessage. |
static class |
CollectionProtocol.CollectionProtocolDataMessage
Data message sent by the motes when transmitting to host. |
static class |
CollectionProtocol.CollectionProtocolHostMessage
Message class sent by the host when building a routing table. |
static class |
CollectionProtocol.DebugMessage
For Sentilla internal use only. |
Field Summary | |
---|---|
static short |
TIME_TO_LIVE
|
Constructor Summary | |
---|---|
CollectionProtocol()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short TIME_TO_LIVE
Constructor Detail |
---|
public CollectionProtocol()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |