[Contiki-developers] COAP demo and tutorial

575 views
Skip to first unread message

Mariano Alvira

unread,
Feb 7, 2011, 10:52:31 AM2/7/11
to contiki-d...@lists.sourceforge.net, mc1...@devl.org
Hello,

I've just published a tutorial explaining how to use Contiki's COAP
demo `rest-example-server` using Econotags and RPL; it should be
useful for people using other hardware as well.

You can find it here:

http://mc1322x.devl.org/repos/contiki-mc1322x/cpu/mc1322x/doc/rest-tutorial.md

My contiki-mc1322x.git master branch as been updated with all of the
fixes to make this work. There is only one change that affects other
platforms, the make all target in rest-example needs to be changed to
rest-example-server. Once the new SCM system is online, all of these
changes will be pulled into upstream.

At somepoint these docs will make it on to the Contiki Wiki too!

Have fun,

-Mar.


------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Contiki-developers mailing list
Contiki-d...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/contiki-developers

PICHLER Harald Ing. / EVVA Wien

unread,
Feb 8, 2011, 12:56:36 AM2/8/11
to Contiki developer mailing list
Hallo Mariano Alvira

The link for the

1) Run a RPL border-router and tunnel

See the RPL HOWTO for details about running a RPL border-router.

point to a :

http://mc1322x.devl.org/rpl-tutorial.md

md file.

i think this is a bug.


Harald
________________________________________
Von: Mariano Alvira [m...@devl.org]
Gesendet: Montag, 7. Februar 2011 16:52
An: contiki-d...@lists.sourceforge.net; mc1...@devl.org
Betreff: [Contiki-developers] COAP demo and tutorial
Erleben Sie das Thema Sicherheit völlig neu - in der virtuellen Stadt www.SecurityCity.net. Jetzt einziehen und die Zukunft der Sicherheit mitgestalten!


[EVVA Disclaimer]

Diese E-Mail und allfällige Anhänge sind vertraulich und rechtlich geschützt. Sie sind nur für den Adressaten im Rahmen des konkreten Verwendungszwecks bestimmt. Sollten Sie nicht der vorgesehene Empfänger sein, bitten wir Sie, sich unverzüglich mit uns in Verbindung zu setzen und diese E-Mail (samt Anhängen) zu vernichten. Jede andere Verwendung und Weitergabe der Inhalte an Dritte ist untersagt. Jede E-Mail-Kommunikation durch unser Unternehmen unterliegt unserem unter http://www.evva.com/impressum/e-mail-disclaimer/ abrufbaren E-Mail-Disclaimer.

This e-mail and all attachments are confidential, legally protected and intended only for the use of the addressee within the scope of the specific designated use. If you are not the intended recipient, please inform us immediately and delete this e-mail (together with its attachments). Any other use or passing on of the content to third parties is prohibited. Every e-mail communication by our company shall be subject to our e-mail disclaimer which can be downloaded under http://www.evva.com/impressum/e-mail-disclaimer/en/.


E-Mail ausdrucken? Bitte denken Sie an unsere Umwelt und reduzieren Sie Ihren Papierverbrauch. Before printing, please think about the impact it has on the environment.
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb

Balestrieri Paolo

unread,
Feb 8, 2011, 3:57:11 AM2/8/11
to Contiki developer mailing list
Yes, I think the correct link is:
http://mc1322x.devl.org/repos/contiki-mc1322x/cpu/mc1322x/doc/rpl-tutorial.md

Paolo
--
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

Mariano Alvira

unread,
Feb 8, 2011, 6:19:40 AM2/8/11
to Contiki developer mailing list
On Tue, Feb 08, 2011 at 09:57:11AM +0100, Balestrieri Paolo wrote:
> Yes, I think the correct link is:
> http://mc1322x.devl.org/repos/contiki-mc1322x/cpu/mc1322x/doc/rpl-tutorial.md
>
> Paolo

Yes, thanks guys!

-Mar.

Kovatsch Matthias

unread,
Feb 8, 2011, 1:08:49 PM2/8/11
to Contiki developer mailing list
Hey there

I tried the tutorial and wanted to start porting my projects from the Ravens (with the old Jackdaw border router and Contiki-2.4) to the Econotag as it provides the resources to run RPL and CoAP REST server.

The new toolchain from Codesourcery is easy to set up and works fine, however, I have problems to get it working (in a deterministic way) although following the tutorial step by step with a fresh git clone and toolchain.

I would recommend to add the following information to ease the process:

toolchain.md:
- directly mention the packages required for mc1322x-load.pl:
sudo apt-get install libdevice-serialport-perl
sudo apt-get install libterm-readkey-perl

rpl-tutorial.md: (maybe a separate "Getting started with Contiki" would be better)
- building bbmc and adding it to the path
- building flasher and adding it to the path

Actually, I would expect both to be in the tools directory.
Also, I think something must be fixed there:
~/contiki-mc1322x/cpu/mc1322x/tests$ make BOARD=redbee-dev
git submodule update --init
You need to run this command from the toplevel of the working tree.
make: *** [submodule] Error 1

- hint to quit mc1322x-load.pl before running tunslip6
- hint explicitly that radvd is not required
I am quite confused about the current address assignment process...

====> Would be very cool, if someone could summarize the current situation of RPL vs. 6LoWPAN ND.

rest-tutorial.md:
- ping the Econotag to set up a route after programming the server
- check border router Web site for address(es)

Best regards
Matthias

Mariano Alvira

unread,
Feb 8, 2011, 1:19:36 PM2/8/11
to Contiki developer mailing list
Thanks for this excellent feedback --- I know their are gaps in some
of my docs and this will certainly help me fill some in.

Some of the notes are handled in the following pages:

http://mc1322x.devl.org/libmc1322x.html
http://mc1322x.devl.org/bbmc.html

One of the reason for the different organization is that Contiki
includes libmc1322x, which has the mc1322x specific tools. This is the
reason your flasher build didn't work --- it's not something I test in
the Contiki tree; I'm not sure if I'm going to fix it yet, or remove
it from the Contiki tree. For now, my suggestion is to just clone
libmc1322x as well and build flasher and bbmc from there.

Regardless, I'll merge in your notes soon!

(and hopefully start pushing things to the Contiki wiki)

-Mar.

David Kopf

unread,
Feb 8, 2011, 1:54:39 PM2/8/11
to Contiki developer mailing list
I have not looked into the REST server, don't the Ravens have enough flash and ram to run it? The jackdaw does have enough RAM to do
rpl border routing, with full-sized MCU and abbreviated stack or vice versa. The current contiki-2.x supports RPL on either platform
with a define in contiki-conf.h.


----- Original Message -----
From: "Kovatsch Matthias" <kova...@inf.ethz.ch>
To: "Contiki developer mailing list" <contiki-d...@lists.sourceforge.net>
Sent: Tuesday, February 08, 2011 1:08 PM
Subject: Re: [Contiki-developers] COAP demo and tutorial

> Hey there
>
> I tried the tutorial and wanted to start porting my projects from the Ravens (with the old Jackdaw border router and Contiki-2.4)
> to the Econotag as it provides the resources to run RPL and CoAP REST server.

Kovatsch Matthias

unread,
Feb 8, 2011, 4:17:57 PM2/8/11
to Contiki developer mailing list
Some time ago, I read that the Jackdaw is not powerful enough to serve as RPL border router. Both RAM size and processing power for incoming packets were issues, as far as I remember correctly. What do you mean by "full-sized MCU and abbreviated stack"? Have not stumbled upon that so far...
Thanks for the info, though! I will test it.

The Raven has enough RAM to run that configuration, however, I was not happy with the response times, so I want to try the Econotag/ARM core.


> -----Ursprüngliche Nachricht-----
> Von: David Kopf [mailto:dak...@embarqmail.com]
> Gesendet: Dienstag, 8. Februar 2011 19:55
> An: Contiki developer mailing list
> Betreff: Re: [Contiki-developers] COAP demo and tutorial

Mariano Alvira

unread,
Feb 8, 2011, 4:24:30 PM2/8/11
to Contiki developer mailing list
On Tue, Feb 08, 2011 at 09:17:57PM +0000, Kovatsch Matthias wrote:
>
> The Raven has enough RAM to run that configuration, however, I was not happy with the response times, so I want to try the Econotag/ARM core.
>

another fun thing to do is run a border-router and a a stock
webserver-ipv6 client. Then browse it's pages. The blinking red lights
will give you a good idea about how much of the latency is in the
radio vs. how much is in "other stuff".

-Mar.

David Kopf

unread,
Feb 8, 2011, 5:12:51 PM2/8/11
to Contiki developer mailing list
RPL requires the UIP stack and tcp/ip process but not TCP support itself, so contiki-conf.h can #define UIP_CONF_TCP 0 . Then the
default full sized uip buffer can be used. Only a jackdaw webserver requires TCP; with that included the uip buffer has to be cut
to roughly half the default. Currently the jackdaw webserver only puts out one page with RPL neighbors and routes, and that
information can also be obtained through the serial interface (but there is sufficient flash for a lot of other web content)

The jury is still out on processing power. USB transfers do slow it down, but some missed packets attributed to timing may have due
to it not doing a clear channel assessment before transmitting. The code has been fixed, but it is not clear to me how a packet
could ever get received in contiki when both sides want to transmit at the same time...

----- Original Message -----
From: "Kovatsch Matthias" <kova...@inf.ethz.ch>
To: "Contiki developer mailing list" <contiki-d...@lists.sourceforge.net>
Sent: Tuesday, February 08, 2011 4:17 PM
Subject: Re: [Contiki-developers] COAP demo and tutorial

Some time ago, I read that the Jackdaw is not powerful enough to serve as RPL border router. Both RAM size and processing power for
incoming packets were issues, as far as I remember correctly. What do you mean by "full-sized MCU and abbreviated stack"? Have not
stumbled upon that so far...
Thanks for the info, though! I will test it.

The Raven has enough RAM to run that configuration, however, I was not happy with the response times, so I want to try the
Econotag/ARM core.


.sourceforge.net/lists/listinfo/contiki-developers

Kovatsch Matthias

unread,
Feb 9, 2011, 3:38:06 AM2/9/11
to Contiki developer mailing list
Ah, abbreviated [network] stack. That one, now I get it.. :)
Thanks a lot, David!

> -----Ursprüngliche Nachricht-----
> Von: David Kopf [mailto:dak...@embarqmail.com]

> Gesendet: Dienstag, 8. Februar 2011 23:13


> An: Contiki developer mailing list

> Betreff: Re: [Contiki-developers] COAP demo and tutorial

asimm...@gmail.com

unread,
Aug 30, 2016, 12:45:34 AM8/30/16
to osdeve.mirror.rtos.Contiki-developers, contiki-d...@lists.sourceforge.net, mc1...@devl.org, m...@devl.org
but this link show some error "404 page not foung"

Mariano Alvira

unread,
Aug 31, 2016, 1:11:12 PM8/31/16
to asimm...@gmail.com, osdeve.mirror.rtos.Contiki-developers, contiki-d...@lists.sourceforge.net, mc1...@devl.org
Yes it is old. But mc1322x.devl.org redirects here:


And the document you are looking for is here: 


Good luck, not sure how much of this is still relevant. But maybe it will give you some hints.

-Mar.

Reply all
Reply to author
Forward
0 new messages