Tinyos操作系统简介

上传人:宝路 文档编号:17050907 上传时间:2017-11-10 格式:DOC 页数:2 大小:30.47KB
返回 下载 相关 举报
Tinyos操作系统简介_第1页
第1页 / 共2页
Tinyos操作系统简介_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《Tinyos操作系统简介》由会员分享,可在线阅读,更多相关《Tinyos操作系统简介(2页珍藏版)》请在金锄头文库上搜索。

1、Tinyos 简介最近看了篇关于 TinyOS 简介的文章,摘录出来保存下,介绍 tinyos 编程入门的资料不少,但从操作系统的角度分析 tinyos 是有必要的,毕竟 TinyOS 做为无线传感网络操作系统中最重要的一种,也是最常用的一种,分析它的实现机制有助于以后改进针对无线传感网络的操作系统,也是嵌入式操作系统的一类。An open-source operating system designed for wireless embedded sensor network. More specifically, it is designed to support the concurre

2、ncy intensive operations required by networked sensors with minimal hardware requirements.TinyOS Features No Kernel: Direct hardware manipulation. No Process Management: Only one process on the fly. No Virtual Memory: Single linear physical address space. No S/w Signal or Exception: Function call in

3、stead. No User Interface, power constrained. Unusually application specific H/w and S/w. Multiple flows, concurrency intensive bursts. Extremely passive vigilance (power saving). Tightly coupled with the application. Simulator: TOSSIM, PowerTOSSIM Written in “nesC” Language, a dialect of the C langu

4、age.TinyOS uses multi-hop routing instead of point-to-point connections to save transmission power. Route discovery is done by 2-hop broadcast and topology discovery is based on shortest path from each node to the base station. The paradigm for network transmissions in TinyOS is active messaging. Me

5、ssages contain a handler address and on arrival this handler is called. TinyOS Architecture Component Based Architecture: enables rapid innovation and implementation while minimizing code size as required by the severe memory constraints inherent in sensor networks. Small footprint: fits in 178 Byte

6、s of memory. Event based instead of threaded architecture.start and stop are commands.fired is a event invoked by Timer.The interface specifies: Timer must implement startand stop, Application must implement fired.o Propagates events in time it takes to copy 1.25 Bytes.o Switches context in the time

7、 to copy 6 Bytes ofMemory. Radio and Clock have interrupts. Non-blocking/Non-preemptive Scheduling: Tasks will not preempts other tasks and run in FIFO order but only interrupts and associated events can preempt tasks. Toavoid blocking scenarios, events and commands are expected to do only state tra

8、nsmissions and leave complex computations to tasks that can be preempted if necessary. This simple concurrency model is typically sufficient for I/O centric applications, but its difficulty with CPU-heavy applications has led to severalproposals for incorporating threads into the OS. TinyOS has a Si

9、ngle Stack: TinyOS uses a simple queue with length 7 and a two level scheduling. Therefore, all I/O operations that last longer than a few hundred microseconds are asynchronous and have a callback. A TinyOS component can post a task, which the OS will schedule to run later. To support larger computa

10、tions, TinyOS provides tasks, which are similar to a Deferred Procedure Call and interrupt handler bottom halves. Latest version of TinyOS has numerous improvements such as: Safe TinyOS , a compile-time option that lets us incorporate run-time memory safety checks into oour application, TOSThreads , a threading library that runs on top of a standard TinyOS core etc.

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号