How contiki-os/contiki works
Contiki is an operating system for small, low-power microcontrollers. Its principal workflow is board startup, cooperative process execution, and wireless/network communication for applications; the repository also supplies protocol services, storage, and dynamic loading. The graph emphasizes runtime subsystems and documented protocol capabilities. Some networking and kernel internals are represented at directory level because the sampled excerpts do not establish their detailed call paths.
Main entry points: lwm2m-engine.c LwM2M engine · netstack.c Network stack setup · main.c Platform startup · er-coap-engine.c CoAP engine
Components 21
OS runtime
- Process scheduler
core/sys/process.c - Timer services
core/sys/ctimer.c - Dynamic loaders
core/loader
Networking
- Network stack setup
core/net/netstack.c - IP networking
core/net/ip - IPv6 networking
core/net/ipv6 - RPL routing
core/net/rpl/rpl.c - MAC and radio links
core/net/mac - Rime protocols
core/net/rime
Application services
- CoAP engine
apps/er-coap/er-coap-engine.c - REST dispatch
apps/rest-engine/rest-engine.c - LwM2M engine
apps/oma-lwm2m/lwm2m-engine.c - LwM2M objects
apps/oma-lwm2m/lwm2m-object.h - LwM2M TLV encoding
apps/oma-lwm2m/oma-tlv.c - Embedded web servers
apps/webserver - Web client
apps/webbrowser/webclient.c - Antelope database
apps/antelope
Hardware and storage
- Platform startup
platform/econotag/main.c - CFS storage
core/cfs - Radio drivers
dev
Other components
- Microcontroller hardware
Connections 13
- Platform startup → Network stack setup: initializes
platform/econotag/main.c - Platform startup → Process scheduler: runs
platform/econotag/main.c - Network stack setup → IP networking: configures
- Network stack setup → IPv6 networking: configures
- Microcontroller hardware → Platform startup: provides platform
- Radio drivers → MAC and radio links: provides link
- LwM2M engine → LwM2M objects: uses
apps/oma-lwm2m/lwm2m-engine.c - LwM2M engine → REST dispatch: uses
apps/oma-lwm2m/lwm2m-engine.c - LwM2M engine → CoAP engine: uses
apps/oma-lwm2m/lwm2m-engine.c - LwM2M engine → LwM2M TLV encoding: uses
apps/oma-lwm2m/lwm2m-engine.c - CoAP engine → REST dispatch: dispatches services
apps/er-coap/er-coap-engine.c - Antelope database → CFS storage: persists data
apps/antelope/storage-cfs.c - Web client → IP networking: uses network APIs
apps/webbrowser/webclient.c