This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
proiecte:coap-sparrow [2017/01/23 19:02] dan.dragan |
proiecte:coap-sparrow [2017/01/26 23:33] (current) iulia.manda [Porting CoAP on Sparrow v4] |
||
---|---|---|---|
Line 13: | Line 13: | ||
6LoWPAN is a networking technology or adaptation layer that allows IPv6 packets to be carried efficiently within small link layer frames. It has defined encapsulation and header compression mechanisms that allow IPv6 packets to be sent and received over IEEE 802.15.4 based networks. | 6LoWPAN is a networking technology or adaptation layer that allows IPv6 packets to be carried efficiently within small link layer frames. It has defined encapsulation and header compression mechanisms that allow IPv6 packets to be sent and received over IEEE 802.15.4 based networks. | ||
- | {{: | + | In the figure below, one may see an IPv6 network, including |
- | = IPv6 network | + | * the data exchange between |
+ | * local data exchange between devices inside the 6LoWPAN | ||
+ | * generation and maintenance of the radio subnet | ||
- | {{: | + | {{ : |
- | = Previous | + | |
+ | The starting point CoAP implementation was supported by 6LoWPAN mesh networks that used as Coordinator a development board with an Atmel ARM-based microcontroller and the Routers and Devices were development boards with Atmel ATMega128rfa1 microcontrollers. In this model the Coordinator contained | ||
+ | |||
+ | {{ :proiecte: coaprtos.png? | ||
===== Implementation and setup configuration ===== | ===== Implementation and setup configuration ===== | ||
- | {{: | + | The new approach required using Sparrow v4 for all three types of nodes. Porting the Device and Router applications was not very difficult because the previous model used the same microcontroller, |
- | = 6LoWPAN mesh network on Sparrow = | + | On the Coordinator side the effort was more consistent. The figure below shows the new model with a redesigned network. First of all, the build configuration files needed to be rewritten, because of the switch from ARM to AVR, not only for the CoAP application, |
+ | |||
+ | {{ :proiecte: coapbaremetal.png?600 | 6LoWPAN mesh network without RTOS support}} | ||
+ | |||
+ | 6LoWPAN | ||
+ | |||
+ | |||
+ | In order to set up a new Sparrow wireless sensor network using COAP the following instructions should be used: | ||
+ | |||
+ | * Request access to Dresden Elektronik 6LoWPAN stack repository [1]. | ||
+ | * Install the next packages | ||
+ | < | ||
+ | sudo apt-get install avr-libc avrdude binutils-avr gcc-avr | ||
+ | </ | ||
+ | * Clone the git repository | ||
+ | < | ||
+ | git clone https:// | ||
+ | </ | ||
+ | * Switch to sparrow_support git branch | ||
+ | < | ||
+ | cd dde-stack/ | ||
+ | git checkout sparrow_support | ||
+ | </ | ||
+ | * Build ROM static library for Coordinator with MAC address support | ||
+ | < | ||
+ | cd ROM/ | ||
+ | make all | ||
+ | </ | ||
+ | * Build SLOW static library for Coordinator with MAC address support | ||
+ | < | ||
+ | cd SLOW/ | ||
+ | make all | ||
+ | </ | ||
+ | * Build the COAPEcho Application for Coordinator and upload it on a Sparrow | ||
+ | < | ||
+ | cd Applications/ | ||
+ | make all | ||
+ | cd bin | ||
+ | sudo ~/ | ||
+ | </ | ||
+ | * Build the COAPEcho Application for Router and upload it on a Sparrow node | ||
+ | < | ||
+ | cd Applications/ | ||
+ | make all | ||
+ | cd bin | ||
+ | sudo ~/ | ||
+ | </ | ||
+ | * Build the COAPEcho Application for Device and upload it on a Sparrow node | ||
+ | < | ||
+ | cd Applications/ | ||
+ | make all | ||
+ | cd bin | ||
+ | sudo ~/ | ||
+ | </ | ||
+ | |||
+ | The image below represents the output of a serial monitoring of the Coordinator when three other Sparrow nodes joined the network. The Coordinator assigns MAC addresses and short addresses to the routers and devices and registers them in a children table. | ||
+ | |||
+ | {{ :proiecte: serialmonitor.png | Serial monitor for Coordinator}} | ||
+ | |||
+ | The below topology presents a coordinator, | ||
+ | |||
+ | {{ :proiecte: topology.jpg? | ||
+ | |||
+ | ===== Resources ===== | ||
+ | * [1] https:// | ||
+ | * [2] Jonas Olsson, 6LoWPAN demystified, | ||
+ | * [3] https:// |