194 | | 1. Download and install Contiki-2.4 as instructed in Section 3.1. |
195 | | |
196 | | **Note: If you want to program a node with source code, please continue to step 2. If you don't need source code or you don't have access to the SENSEI SVN, you can program a node with binary file with less steps. If you choose to program a node with a binary file, please move to Section "Program Tmote Sky node with a binary file". |
197 | | |
198 | | 2. Copy coap/ and sensei/ folders from svn (node-contiki-coap/apps/) to contiki-2.4/apps/ |
199 | | * /Sensei-WP5$ cp -r node-contiki-coap/apps/sensei/ ../contiki-2.4/apps/ |
200 | | * /Sensei-WP5$ cp -r node-contiki-coap/apps/coap ../contiki-2.4/apps/ |
201 | | |
202 | | 3. Copy sicslowmac files in order to enable nodes mobility. |
203 | | |
204 | | {{{ |
205 | | sicslowmac.c |
206 | | sicslowmac.h |
207 | | |
208 | | /Sensei-WP5$ cp node-contiki/core/net/mac/sicslowmac.* ../contiki2.4/core/net/mac/ |
209 | | |
210 | | }}} |
211 | | |
212 | | 4. Change MAC driver in Contiki. |
213 | | |
214 | | * contiki-2.4$ gedit platform/sky/contiki-conf.h |
215 | | |
216 | | {{{ |
217 | | Replace a line |
218 | | #define MAC_CONF_DRIVER cxmac_driver |
219 | | with |
220 | | #define MAC_CONF_DRIVER sicslowmac_driver |
221 | | }}} |
222 | | |
223 | | 5. Copy sensei/ folder from svn (node-contiki-coap/examples/sensei) to contiki-2.4/examples/ |
224 | | |
225 | | * /Sensei-WP5$ cp -r node-contiki-coap/examples/sensei ../contiki2.4/examples/ |
226 | | |
227 | | 6. Compile and program a node. |
228 | | * contiki-2.4/examples/sensei$ make sensei.upload |
| 194 | Copy sensei-example/ folder to the to contiki-2.4/examples/ |