33 | | === Installing TITAN on Sensor Nodes |
| 33 | |
| 34 | === Installing TITAN on a TelosB Sensor Nodes |
| 35 | |
| 36 | At least two TelosB nodes are needed. One of the sensor nodes will be connected via USB to the machine running the TITAN Network Manager and will act as the communication interface for the Titan Network Manager (TITAN Communication Node). The other nodes are used as service provider for the Titan Framework. Every node gets an ID which is defined during compilation time. ID 0 is reserved for the TITAN Communication Node. |
| 37 | |
| 38 | The software implementing Titan in TinyOS-2.1. for the TelosB sensor platform is located in the TITAN/TELOSB directory. Please change to this directory. |
| 39 | |
| 40 | In the file ''TitanInternal.h'' you can define the communication channel in which the network is working: |
| 41 | {{{ |
| 42 | #define TITAN_COMM_CHANNEL CC2420_DEF_CHANNEL |
| 43 | }}} |
| 44 | |
| 45 | Compile the code with the following command: |
| 46 | {{{ |
| 47 | make telosb |
| 48 | }}} |
| 49 | |
| 50 | Now plug-in one of the nodes to the USB port. With the TinyOS command ''motelist'' you should be able to see the connected sensor node: |
| 51 | {{{ |
| 52 | Reference CommPort Description |
| 53 | ---------- ---------- ---------------------------------------- |
| 54 | M4A6J3WH /dev/ttyUSB0 tmote sky |
| 55 | }}} |
| 56 | |
| 57 | We want now to install TITAN on the TelosB platform with the ID 0, to create the TITAN Communication Node. |
| 58 | {{{ |
| 59 | make telosb reinstall.<ID> bsl,/dev/<COMPORT> |
| 60 | }}} |
| 61 | where ''<ID>'' is in this case ''0'', and '''<COMPORT>''' the CommPort of the pluged-in device (use ''motelist''). |
| 62 | |
| 63 | Repeate the last step to install TITAN on the other nodes. Increase the ID number for every additional node (IDs must be unique!). |
| 64 | |