> If possible can you explain how possible is IoTivity-Constrained
> + Contiki + 6LoWPAN ?.

Sure. The IoTivity-Constrained stack and sample apps
(client/server) are together built as a Contiki application.
The Contiki port for IoTivity-Constrained simply uses Contiki?s
application APIs.

If you look inside the ipadapter for eg. it currently uses
Contiki?s simple-udp APIs to establish a UDP connection with
remote endpoints. The samples
(client_contiki/server_contiki) create a Contiki process to
(as is customary for Contiki applications) to launch themselves.

port/contiki/Makefile builds the entire bundle much like any
Contiki application, only that in this case the application also
includes all of the required IoTivity-Constrained sources.

The behavior of Contiki?s APIs and supported
features (IPV6/6LoWPAN, RPL etc.) however depend on the
target you build for, and how that platform is configured. In
Contiki, this configuration is specified in a contiki-
conf.h file. This configuration is unrelated to/separate from
the Contiki application (or IoTivity-Constrained in this case),
except that IoTivity-Constrained needs some form of IP networking
to work underneath.

I?m not an expert at the internals of Contiki, but it seems that
the IPV6 and RPL are enabled by default in its build (unless you
explicitly choose otherwise) and include the 6LoWPAN layer. So,
buffers that pass through simple-udp?s send/recv functions would
also be processed by Contiki?s sicslowpan module.

> Do we need to change the IP Adapter file to make it work with
> 6LoWPAN?.

No.

Have you tried building any Contiki examples for your target that
use the simple-udp module? (Look in contiki/examples/ipv6/simple-udp-rpl)

If you haven?t, then that might be a good place to start.

If they work, then you should be able to likewise build
IoTivity-Constrained for your target.



-
Kishen Maloor
Intel Open Source Technology Center




From:  Karthikeyan P <[email protected]>
Date:  Tuesday, October 4, 2016 at 7:14 PM
To:  Kishen Maloor <kishen.maloor at intel.com>,
"iotivity-dev at lists.iotivity.org" <iotivity-dev at lists.iotivity.org>
Subject:  Re: [dev] IoTivity with Contiki


Hi Kishen,
Thanks for the detail. I need to build for STM 32 Nucleo board. I'll
update my IoTivity-Constrained today and check the port files.
If possible can you explain how possible is IoTivity-Constrained + Contiki
+ 6LoWPAN ?.

Do we need to change the IP Adapter file to make it work with 6LoWPAN?.
It could be helpful for me if you can throw some light on this.
Regards, 
Karthikeyan Prakash
Blog: http://goo.gl/mN65Dl

From: Maloor, Kishen
Sent: Wednesday, 5 October, 2:33 AM
Subject: Re: [dev] IoTivity with Contiki
To: Karthikeyan P, iotivity-dev at lists.iotivity.org

Hello Karthikeyan, Please update your IoTivity-Constrained source tree and
review the recently added code under port/contiki. Also, please review the
client/server_contiki samples for Contiki under apps/. The sample apps
each define an (autostart) Contiki process
 to run the application. The port (clock, random, ipadapter
implementations) uses Contiki?s high-level APIs for those functionalities.
The included Makefile lets you build either the client or the server
sample (along with the rest of the stack underneath)
 using command-line options (look in README). What hardware are you
targeting? I do not have the relevant hardware at the moment the test this
completely, so would appreciate your feedback. Please feel free to submit
patches where necessary. Thanks, -Kishen.
 - Kishen Maloor Intel Open Source Technology Center From: on behalf of
Karthikeyan P Date: Monday, October 3, 2016 at 11:47 PM To:
"iotivity-dev at lists.iotivity.org" Subject: [dev] IoTivity with Contiki

Reply via email to