You can run the Upstream application:
/win/
Upstream.exe
/src/
bin/Upstream/Upstream.py
Upstream consists of three frames:
For the SmartMesh IP Mote to go to all following states, you need to reset it before connecting this Upstream application. You can do so by
|
name of the state | description |
---|---|
WAITFORINITIALNOTIF | Wait for possible notifications, such as a BOOT notification is the SmartMesh IP Mote was just reset. This state is left after a given timeout, regardless of whether a notification was received. |
ASSESSMOTESTATE | Evaluate the current mote's state:
|
CONFIGURE | A transition state. |
CONFIGURING_DC | Configure the join duty cycle to 100%. |
CONFIGURED | A transition state. When reaching this state, the SmartMesh IP Mote is configured and ready to join the network. |
SEARCHING | Issue a join command. Wait to receive an advertisement from the network (a JOINSTART event notification). |
JOINREQUESTSENT | Wait for the SmartMesh IP Mote to become operational (an OPERATIONAL event notification). |
OPERATIONAL | Wait for the base bandwidth to be in place (a SVC_CHG event notification). |
JOINED | A transition state. When reaching this state, the SmartMesh IP Mote is part of the network. |
REQUESTINGSERVICE | Request service to the manager. Wait to receive an indication that the service was installed (a |
SERVICEGRANTED | A transition state. When reaching this state, the SmartMesh IP Mote has obtained its service and can start sending data. |
OPENSOCKET | Open a UDP socket. |
BINDSOCKET | Bind that socket to UDP port 60000. |
READYTOSEND | The final state of the joining process. |
The "sensor data to send" frame is only active when the mote has reached the READYTOSEND
state. Once that state is reached, you can set a sensor value, and decide to send:
Sending to the manager simply means sending data to the manager's well-known IPv6 address (ff02::2 , or ff020000000000000000000000000002 when written out). |
This application is meant to be used in conjunction with the SensorDataReceiver application connected to the Manager. |
For the data to be able to be sent into the Internet, the manager needs to be connected the Low-Power Border Router using the LBRConnection application. |