You are on page 1of 5

Capitulo

8
TinyOS
Aragonense M. de Lima, Fladson Thiago de O. Gomes, Joo Paulo de M. Dantas, Kelvin Kirk M. Cavalcante, Lucas de A. Marciano

Abstract This meta-paper describes the style to be used in articles and short papers for SBC conferences. For papers in English, you should add just an abstract and for the papers in Portuguese, we also ask for an abstract in Portuguese (resumo). In both cases, abstracts should not have more than 10 lines and must be in the first page of the paper. Resumo Ns iremos abordar neste capitulo o sistema operacional para redes sem fio TinyOs, citando suas caractersticas gerais, de uma forma que ele possa ser entendido de forma fcil e pratica. Sendo o TinyOs um sistema operacional embarcado, torna-se bastante limitado, sendo ele usado, originalmente, para um tipo de especifico de arquitetura. Tambm ser abordado seu histrico e ser feita a comparao do TinyOs com outros sistemas operacionais de Redes de Sensores sem Fio.

8.1. Apresentao
Vista como uma parte da computao Ubqua, as Redes de Sensores sem Fio (RSSF) so compostas por uma grande quantidade de pequenos sensores inteligentes e com o objetivo de detectar e transmitir alguma caracterstica do meio-fsico para dentro de um sistema que trate desta informao [Pereira et al, 2004]. Por sensores inteligentes referimos a um pequena placa de circuito integrado contendo um ou mais sensores com capacidade de processamento de sinais e comunicao de dados [Loureiro et al, 2004]. As Redes de Sensores sem Fio necessitam de sistemas operacionais para tratar de tais informaes que os sensores iram retornar. Neste capitulo iremos tratar de um sistema operacional em exclusivo, o TinyOs. O TinyOs sistema operacional dirigido a eventos voltado para RSSFs que possuem recursos de hardware limitados e necessitem economizar energia. Originalmente desenvolvido para sensores com arquitetura Mica Motes, que tipo de sensor sem fio, para ambientes externos. O TinyOs bastante simples em sua estrutura, sendo o menor entre os outros sistemas operacionais usados em RSSFs, trabalha com recurso 8 Kb de memria de programa e 512 bytes de RAM. um sistema operacional de cdigo aberto sendo implementado por uma linguagem de programao C estilizada, a NesC. TinyOS possui ainda algumas caracterstica nicas que influenciaram bastante o modelo de programao do NesC. Dentre essas caracterstica, podemos citar [Gay et al, 2003]: (1) uma arquiterura baseada em componentes, (2) um modelo de concorrncia simples baseado em eventos e (3) operaes divididas em fases.

8.2. Classificao do SO
O TinyOs um sistemas operacional embarcado, desenvolvido para ser usado nos sensores do tipo Mica Motes. Seu escalonador de tarefas em uma fila (FIFO - Firs In, Firs Out), utilizando uma estrutura de dados de tamanho limitado. O escalonador, desenvolvido para concorrncia intensiva, no preemptivo e no possui mecanismos sofisticados como fila de prioridades. Os ns sensores estaro monitorando eventos do mundo real, e estes so inerentemente concorrentes. O TinyOS tambm um modelo e uma linguagem de programao. Programas so construdos a partir de um conjunto de componentes. A especificao do comportamento dos componentes feita atravs de um conjunto de interfaces. Componentes so estaticamente conectados um ao outro via interfaces. Isto aumenta a eficincia em tempo de execuo porque as conexes entre componentes so checadas em tempo de compilao.

8.3. Histrico
O TinyOS foi desenvolvido por Jason Hill, em seu projeto de Mestrado UC Berkeley 2000 [Hill, 2000]. O TinyOS faz parte do Projeto Berkeley WEBS (Wireless Embedded System). Atualmente, as modicac oes no codigo e nos componentes do TinyOS sao feitas pelo grupo Intel-Berkeley Research Lab.

8.4. Gerenciamento de Processos/Threads


Section titles must be in boldface, 13pt, flush left. There should be an extra 12 pt of space before each title. The first paragraph of each section should not be indented; the first lines of subsequent paragraphs should be indented by 1.27 cm. 8.4.1. Gerenciamento de Memria The subsection titles must be in boldface, 12pt, flush left.

8.5. Gerenciamento de Memria


Figures and tables captions should be centered if less than one line (Figure 1.1), otherwise justified and indented by 0.8cm on both margins, as shown in Figure 1.2. The font must be Helvetica, 10 point, boldface, with 6 points of space before and after each caption.

Figure 1.1. A typical figure

In tables, do not use colored or shaded backgrounds, and avoid thick, doubled, or unnecessary framing lines. When reporting empirical data, do not use more decimal digits than warranted by their precision and reproducibility. Table caption must be placed before the table (see Table 1.1) and the font used must also be Helvetica, 10 point, boldface, with 6 points of space before and after each caption.

Figure and table references must be composed by the chapter number and a sequence number beginning in one (see the examples of Figure 1.1, Figure 1.2 and Table 1.1).

Figure 1.2. This figure is an example of a figure caption taking more than one line and justified considering margins mentioned in Section 1.4.

8.6. Sistemas de Arquivos


All images and illustrations should be in black-and-white, or gray tones. The image resolution on paper should be about 600 dpi for black-and-white images, and 150-200 dpi for grayscale images. Do not include images with excessive resolution, as they may take hours to print, without any visible difference in the result.
Table 1.1. Variables to be considered on the evaluation of interaction techniques. Tarefa Seleo Varivel Distncia do alvo Direo horizontal e vertical do alvo Distncia do objeto oculto Direo da ocluso Distncia inicial Direes iniciais horizontal e vertical Distncia final Direes finais horizontal e vertical Preciso vertical Preciso horizontal Distncia Direes horizontal e vertical Orientao inicial (3 angulos) Orientao final (3 angulos) Mtrica utilizada Virtual cubits Graus do arco Virtual cubits Esquerda/direita/cima/baixo Virtual cubits Graus do arco Virtual cubits Graus do arco Porcentagem de sobreposio Porcentagem de sobreposio Virtual cubits Graus do arco Graus do arco Graus do arco

Posicionamento

Orientao

Exatido/preciso

Graus do arco

8.7. Entrada e Saida


Bibliographic references must be unambiguous and uniform. We recommend giving the author names references in brackets, e.g. [Knuth 1984], [Kernighan and Ritchie 1990]; or dates in parentheses, e.g. Knuth (1984), Sederberg and Zundel (1989,1990).

Referncias
Pereira , Marluce R., Amorim, Cludio L. De e Castro, Maria Clicia Stelling de. Tutorial sobre Redes de Sensores. Loureiro, Antnio A. F; Nogueira, Jos Marcos S.; Ruiz, Linnyer Beatrys; Mini, Raquel Aparecida de Freitas; Nakamura, Eduardo Freire; Figuereiro , Carlos Maurcio Serdio. Redes de Sensores sem Fio. Em XXI Simpsio Brasileiro de Redes de Computadores. Gay, David, Levis, Philip, Behren, Robert Von, Welsh, Matt, Brewer, Eric e Culler, David. The NesC Language: A Holistic Approach to Networked Embedded System. San Diego, California, USA, 2003. Pag. 179226.Dyer, S., Martin, J. and Zulauf, J. (1995) Motion Capture White Paper, http://reality.sgi.com/employees/jam_sb/mocap/MoCapWP_v2.0.html, December. Holton, M. and Alexander, S. (1995) Soft Cellular Modeling: A Technique for the Simulation of Non-rigid Materials, Computer Graphics: Developments in Virtual Environments, R. A. Earnshaw and J. A. Vince, England, Academic Press Ltd., p. 449-460. Knuth, D. E., The TeXbook, Addison Wesley, 1984.

You might also like