Sunday, November 13, 2016

Setting node ID for the re-mote (zoul)

Objective

The objective of this tutorial is to set up the id of the re-motes from Zolertia using Contiki-3.0. I am using the RIME stack for this example.

Procedure

To find a comprehensive explanation of how to set up the node ID of the re-motes please go to this link and see section Node IEEE/RIME/IPv6 Addresses

https://github.com/contiki-os/contiki/tree/master/platform/zoul

If you want to set up the re-mote address at compilation time you could simply add NODEID=YOUR_ADDRESS when uploading the code to the node, as follows:

make NODEID=0x0001 TARGET=zoul sink-channelQuality.upload

This line configured the rime address to 00:01, and when you reset the node, then you can see the following:

Contiki-2.6-4041-gaad203e
Zolertia RE-Mote revision B platform
CC2538: ID: 0xb964, rev.: PG2.0, Flash: 512 KiB, SRAM: 32 KiB, AES/SHA: 1, ECC/RSA: 1
System clock: 16000000 Hz
I/O clock: 16000000 Hz
Reset cause: External reset
Rime configured with address 00:01
Net: Rime
MAC: CSMA
RDC: ContikiMAC

It is important to notice the line Rime configured with address 00:01, which says that we just changed the rime address of the re-mote.

No comments:

Post a Comment