Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Porting Contiki OS to Discovery Board

No description
by

Ayaz Akram

on 25 August 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Porting Contiki OS to Discovery Board

Porting Contiki OS to Discovery Board
Events
Event types: timer events, external events, internal events
Event Sender: kernel or process
Event Receiver: Process event handler
Asynchronous Events (deffered procedure calls)
Synchronous Events
Run to Completion Semantics
Event queue structure is maintained
Event number, pointer to data, pointer to process structure of receiver
Process
Conclusion
Open Source OS
Design for Resource Constrained Environment
Adam Dunkels
Cisco,Atmel,ETH,SICS, Thingsquare
Contiki: The Open Source OS for Internet of things
Hello World of Contiki
#include "contiki.h"
#include <stdio.h> /* For printf() */
#include <leds.h> //for leds_toggle.c
/*---------------------------------------------------------------------------*/
PROCESS(hello_world_process, "Hello world process");
AUTOSTART_PROCESSES(&hello_world_process);
/*---------------------------------------------------------------------------*/ //Event handler
PROCESS_THREAD(hello_world_process, ev, data)
{ static struct etimer timer;
PROCESS_BEGIN(); etimer_set(&timer,CLOCK_CONF_SECOND) while(1){
PROPROCESS_WAIT_EVENT(ev == PROCESS_EVENT_TIMER);
printf("Hello World \n");
leds_toggle(LEDS_ALL);
}
PROCESS_END();
}
Structural Overview
Changes in contiki main
Changes in leds-arch.c
Prepare Ubuntu System
OpenOCD
ST-link firmware
LEDs based application runs successfully
COAP based server application testing in Progress
Contiki OS

Process Declaration
Autostart List
Event Handler
Benjamin's Robotics
A contiki port for my custom cc2520+stm32f4 board
Minimum functionality: Radio Chip Drivers,RIME,IPv6 with lowPan,Border Router Implementation,LEDS, Printing
Porting
Contiki/cpu/arm/stm32f4

Hardware Libraries
Clock
rtimer
USB-SLIP
Startup Code
System Calls
Watchdog
Interrupts
Linker Script
Makefile
Contiki/platform/stm32-bv
Contiki main
LED drivers
Other Drivers
Configuration
Makefile
Notes
Hybrid approach: Event driven kernel with application level multi-threading







No hardware abstraction layer
TCP/IP stack support
6lowPan,RPL,COAP,Restful API
Power awareness
Thread

Thread

Event

Event

Event

Event

Kernel

Contiki: implementing threads on top of an event-based kernel

Has associated Event handler
core/sys/process.c
Process structure
Next,name,thread,pt, state,needspoll
Lightweight scheduler
Premptive multithreading, scheduled by Contiki provided library
Questions ??
Full transcript