﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-Tinyos-随笔分类-TinyOS</title><link>http://www.cnitblog.com/arthas/category/555.html</link><description /><language>zh-cn</language><lastBuildDate>Sun, 02 Oct 2011 20:02:49 GMT</lastBuildDate><pubDate>Sun, 02 Oct 2011 20:02:49 GMT</pubDate><ttl>60</ttl><item><title>Surge_Reliable不能通讯的问题</title><link>http://www.cnitblog.com/arthas/archive/2006/01/16/6192.html</link><dc:creator>记忆中的深蓝</dc:creator><author>记忆中的深蓝</author><pubDate>Sun, 15 Jan 2006 18:53:00 GMT</pubDate><guid>http://www.cnitblog.com/arthas/archive/2006/01/16/6192.html</guid><wfw:comment>http://www.cnitblog.com/arthas/comments/6192.html</wfw:comment><comments>http://www.cnitblog.com/arthas/archive/2006/01/16/6192.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnitblog.com/arthas/comments/commentRss/6192.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/arthas/services/trackbacks/6192.html</trackback:ping><description><![CDATA[在tinyos－help上面找到的，也是一个困扰了我们一个多月的东西<BR><BR>TMD的crossbow<BR><BR><BR><BR><BR><BR><BR>Thanks to everyone,<BR>the problem was with PhotoTempM.nc - after copying it to micasb directory I can finally see my other MICAz motes with Surge Reliable app.<BR><BR>In MPR users guide there is mentioned where the correct PhotoTempM.nc is located, but nobody tells what to do with it - maybe in the next version it can be mentioned that it should be copied to micasb directory, otherwise users - like me - don't pay much attention to it.<BR><BR>Thanks once again.<BR><BR>Libor.<BR><BR>______________________________________________________________<BR>&gt;<I> Od: Matt miller &lt;<A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">amattmiller at earthlink.net</A>&gt;<BR></I>&gt;<I> Komu: "Libor Roubal" &lt;<A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">libor.roubal at centrum.cz</A>&gt;, &lt;<A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">mbaleri at xbow.com</A>&gt;<BR></I>&gt;<I> CC: <A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">tinyos-help at Millennium.Berkeley.EDU</A><BR></I>&gt;<I> Datum: Sat, 29 Jan 2005 20:38 -0800<BR></I>&gt;<I> Předmět: RE: [Tinyos-help] Re:MICAz+SurgeReliable+MIB600 problem<BR></I>&gt;<I><BR></I>&gt;<I> the version of phototempM.nc is in tos/platform/micaz. Copy into your sensorboard directory (micasb) after renaming the standard version.<BR></I>&gt;<I> <BR></I>&gt;<I> You can verify correct operation with a simpler application - e.g. Oscilloscope.<BR></I>&gt;<I> <BR></I>&gt;<I> ___<BR></I>&gt;<I> Matt Miller<BR></I>&gt;<I> <BR></I>&gt;<I>&nbsp; ..... Original Message .......<BR></I>&gt;<I> On Sat, 29 Jan 2005 22:37:50 +0100 "Libor Roubal" &lt;<A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">libor.roubal at centrum.cz</A>&gt; wrote:<BR></I>&gt;<I> &gt;Hi Giri,<BR></I>&gt;<I> &gt;I tried to comment the TINYSEC line before, but it didn't help.<BR></I>&gt;<I> &gt;Couldn't the problem be related to INT2 signal used by SurgeReliable application for the temperature measurement and by CC2420 radio stack at the same time, as mentioned in the MPR-MIB users (p.27/28) guide? I just don't know where to find the correct PhotoTempM.nc file with this problem solved.<BR></I>&gt;<I> &gt;<BR></I>&gt;<I> &gt;Thanks,<BR></I>&gt;<I> &gt;<BR></I>&gt;<I> &gt;Libor.<BR></I>&gt;<I> &gt;<BR></I>&gt;<I> &gt;______________________________________________________________<BR></I>&gt;<I> &gt;&gt; Od: <A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">mbaleri at xbow.com</A><BR></I>&gt;<I> &gt;&gt; Komu: <A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">libor.roubal at centrum.cz</A>, <A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">tinyos-help-bounces at Millennium.Berkeley.EDU</A>, <A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">msmith at xbow.com</A><BR></I>&gt;<I> &gt;&gt; CC: <A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">tinyos-help at now.CS.Berkeley.EDU</A><BR></I>&gt;<I> &gt;&gt; Datum: Sat, 29 Jan 2005 09:47:17 -0800<BR></I>&gt;<I> &gt;&gt; Předmět: RE: [Tinyos-help] Re:MICAz+SurgeReliable+MIB600 problem<BR></I>&gt;<I> &gt;&gt;<BR></I>&gt;<I> &gt;&gt; Libor,<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; One thing you might want to try is comment the line,<BR></I>&gt;<I> &gt;&gt; TINYSEC=true<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; This was network security intended for MICA2, so I am not sure if it would<BR></I>&gt;<I> &gt;&gt; work for MICAz. I don't know if this is the problem, but worth a try.<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; Also, make sure that you are using TinyOS 1.1.7 or later and confirm that<BR></I>&gt;<I> &gt;&gt; you are not getting any errors during compilation.<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; Let me know how it goes!<BR></I>&gt;<I> &gt;&gt; Giri<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; -----Original Message-----<BR></I>&gt;<I> &gt;&gt; From: <A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">tinyos-help-bounces at Millennium.Berkeley.EDU</A><BR></I>&gt;<I> &gt;&gt; To: <A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">msmith at xbow.com</A><BR></I>&gt;<I> &gt;&gt; Cc: <A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">tinyos-help at now.CS.Berkeley.EDU</A><BR></I>&gt;<I> &gt;&gt; Sent: 1/29/05 8:08 AM<BR></I>&gt;<I> &gt;&gt; Subject: [Tinyos-help] Re:MICAz+SurgeReliable+MIB600 problem<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; Thanks Mike,<BR></I>&gt;<I> &gt;&gt; but I still can't get my MICAz's to work. <BR></I>&gt;<I> &gt;&gt; I have taken all the necessary steps according to manuals from XBow, but<BR></I>&gt;<I> &gt;&gt; still it does not work.<BR></I>&gt;<I> &gt;&gt; I definitely need some step-by-step guide to check if I'm doing<BR></I>&gt;<I> &gt;&gt; everything correctly. I will start by showing my Makefiles, so please<BR></I>&gt;<I> &gt;&gt; verify them:<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; 1. Makefile from Contrib/Crossbow/apps/Surge_Reliable directory:<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; COMPONENT=Surge<BR></I>&gt;<I> &gt;&gt; SENSORBOARD=micasb<BR></I>&gt;<I> &gt;&gt; TINYSEC=true<BR></I>&gt;<I> &gt;&gt; PFLAGS= -I../../../beta/tos/lib/CC2420RadioAck<BR></I>&gt;<I> &gt;&gt; -I../../tos/lib/ReliableRoute -I%T/lib/Queue -I%T/lib/Broadcast<BR></I>&gt;<I> &gt;&gt; -I%T/lib/Attributes<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; include ../MakeXbowlocal<BR></I>&gt;<I> &gt;&gt; include ${TOSROOT}/tools/make/Makerules <BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; 2. MakeXbowlocal file from Contrib/Crossbow/apps/ directory (uncommented<BR></I>&gt;<I> &gt;&gt; lines only):<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; DEFAULT_LOCAL_GROUP=0x69<BR></I>&gt;<I> &gt;&gt; CFLAGS +=-DCC2420_DEF_CHANNEL=20<BR></I>&gt;<I> &gt;&gt; CFLAGS += -DRADIO_XMIT_POWER=0xFF<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; 3. Makerules file from {TOSROOT}/tools/make/ - not necessary to copy<BR></I>&gt;<I> &gt;&gt; here, I'll just put ver. info here:<BR></I>&gt;<I> &gt;&gt; Makerules,v 1.12 2004/07/28 18:47:13 cssharp <BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; Does anybody see any problem with these files? I'm going mad from this<BR></I>&gt;<I> &gt;&gt; problem. I still do not see any data but from node 0 installed on<BR></I>&gt;<I> &gt;&gt; MIB600.<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; What are the other applications in /contrib/xbow/beta directory? There<BR></I>&gt;<I> &gt;&gt; is another version of Surge_Reliable application, but it doesn't work<BR></I>&gt;<I> &gt;&gt; either.<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; There is also o note in MPR user manual concerning MICAz and TinyOS<BR></I>&gt;<I> &gt;&gt; compatibility issues - Timer2 and INT2.<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; Where can I get PhotoTemp.nc file with correct handling of INT2 signal<BR></I>&gt;<I> &gt;&gt; so that it will not disrupt the CC2420 communication?<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; Thanks a lot to everybody.<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; Libor.<BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; <BR></I>&gt;<I> &gt;&gt; ______________________________________________________________<BR></I>&gt;<I> &gt;&gt; &gt; Od: <A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">msmith at xbow.com</A><BR></I>&gt;<I> &gt;&gt; &gt; Komu: <A href="http://mail.millennium.berkeley.edu/mailman/listinfo/tinyos-help">tinyos-help at Millennium.Berkeley.EDU</A><BR></I>&gt;<I> &gt;&gt; &gt; Datum: Mon, 24 Jan 2005 10:34:39 -0800<BR></I>&gt;<I> &gt;&gt; &gt; Predmet: [Tinyos-help] Re:MICAz+SurgeReliable+MIB600 problem<BR></I>&gt;<I> &gt;&gt; &gt;<BR></I>&gt;<I> &gt;&gt; &gt; In order to program the MICAz with Surge Reliable you will need to<BR></I>&gt;<I> &gt;&gt; uncomment<BR></I>&gt;<I> &gt;&gt; &gt; a line in the "Makefile" as described in the Getting Started Guide<BR></I>.<BR>&gt;<I> &gt;&gt; Page 39<BR></I>&gt;<I> &gt;&gt; &gt; of the manual describes this in detail. Please use the link below to<BR></I>&gt;<I> &gt;&gt; access<BR></I>&gt;<I> &gt;&gt; &gt; the Getting Started Guide.<BR></I>&gt;<I> &gt;&gt; &gt; <BR></I>&gt;<I> &gt;&gt; &gt;<BR></I>&gt;<I> &gt;&gt; <A href="http://www.xbow.com/Support/Support_pdf_files/Getting_Started_Guide_7430">http://www.xbow.com/Support/Support_pdf_files/Getting_Started_Guide_7430</A><BR></I>&gt;<I> &gt;&gt; -002<BR></I>&gt;<I> &gt;&gt; &gt; 2-05_B.pdf<BR></I>&gt;<I> &gt;&gt; &gt; Please also note that the latest xbow.tgz file can be found on our<BR></I>&gt;<I> &gt;&gt; website<BR></I>&gt;<I> &gt;&gt; &gt; or on sourceforge which includes a new MakeXbowlocal file that will<BR></I>&gt;<I> &gt;&gt; allow<BR></I>&gt;<I> &gt;&gt; &gt; you to select different channels for the MICAz. <BR></I>&gt;<I> &gt;&gt; &gt; <BR></I>&gt;<I> &gt;&gt; &gt; Mike (Crossbow)<BR></I><img src ="http://www.cnitblog.com/arthas/aggbug/6192.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/arthas/" target="_blank">记忆中的深蓝</a> 2006-01-16 02:53 <a href="http://www.cnitblog.com/arthas/archive/2006/01/16/6192.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>TMD的crossbow</title><link>http://www.cnitblog.com/arthas/archive/2006/01/16/6191.html</link><dc:creator>记忆中的深蓝</dc:creator><author>记忆中的深蓝</author><pubDate>Sun, 15 Jan 2006 18:32:00 GMT</pubDate><guid>http://www.cnitblog.com/arthas/archive/2006/01/16/6191.html</guid><wfw:comment>http://www.cnitblog.com/arthas/comments/6191.html</wfw:comment><comments>http://www.cnitblog.com/arthas/archive/2006/01/16/6191.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/arthas/comments/commentRss/6191.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/arthas/services/trackbacks/6191.html</trackback:ping><description><![CDATA[micaz的MAC就是一个CSMA，15.4的东西是用来收费的<BR>TMD crossbow<img src ="http://www.cnitblog.com/arthas/aggbug/6191.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/arthas/" target="_blank">记忆中的深蓝</a> 2006-01-16 02:32 <a href="http://www.cnitblog.com/arthas/archive/2006/01/16/6191.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>The structure of the TOS_Msg </title><link>http://www.cnitblog.com/arthas/archive/2005/08/11/1482.html</link><dc:creator>记忆中的深蓝</dc:creator><author>记忆中的深蓝</author><pubDate>Thu, 11 Aug 2005 10:45:00 GMT</pubDate><guid>http://www.cnitblog.com/arthas/archive/2005/08/11/1482.html</guid><wfw:comment>http://www.cnitblog.com/arthas/comments/1482.html</wfw:comment><comments>http://www.cnitblog.com/arthas/archive/2005/08/11/1482.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.cnitblog.com/arthas/comments/commentRss/1482.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/arthas/services/trackbacks/1482.html</trackback:ping><description><![CDATA[<P><FONT size=3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 看了一个下午，终于明白了Tinyos下的Message packet ——TOS_Msg其实就是用typede声明的一个结构体，完整的说明在头文件AM．h这个文件里面找到。以下是TOS_Msg的结构：<BR>typedef struct TOS_Msg<BR>{<BR>&nbsp; /* The following fields are transmitted/received on the radio. */<BR>&nbsp; uint16_t addr;<BR>&nbsp; uint8_t type;<BR>&nbsp; uint8_t group;<BR>&nbsp; uint8_t length;<BR>&nbsp; int8_t data[TOSH_DATA_LENGTH];&nbsp;&nbsp;&nbsp; //TOSH_DATA_LENGTH=29<BR>&nbsp; uint16_t crc;<BR>&nbsp; </FONT>/* The following fields are not actually transmitted or received <BR>&nbsp;&nbsp; * on the radio! They are used for internal accounting only.<BR>&nbsp;&nbsp; * The reason they are in this structure is that the AM interface<BR>&nbsp;&nbsp; * requires them to be part of the TOS_Msg that is passed to<BR>&nbsp;&nbsp; * send/receive operations.<BR>&nbsp;&nbsp; */<BR>&nbsp; uint16_t strength;<BR>&nbsp; uint8_t ack;<BR>&nbsp; uint16_t time;<BR>&nbsp; uint8_t sendSecurityMode;<BR>&nbsp; uint8_t receiveSecurityMode;&nbsp; <BR>} TOS_Msg;<BR>The <STRONG><EM>addr</EM> </STRONG>field specifies the destination address (a moteID or the broadcast address). The <STRONG><EM>group</EM></STRONG> field specifies a channel for motes on a network. If a mote receives a packet with a different group ID, the packet is dropped. The <STRONG><EM>type</EM></STRONG> field specifies which handler to be called at the AM level when a packet is received. The <STRONG><EM>length</EM></STRONG> field specifies the length of the data portion of the TOS_Msg. Packets have a maximum payload of 29 bytes. The <STRONG><EM>data</EM></STRONG> portion consists of an array of 29 bytes (as specified by TOSH_DATA_LENGTH). The unsigned two byte field <STRONG><EM>crc</EM></STRONG> follows. When sending, the <STRONG><EM>crc</EM></STRONG> is incrementally calculated as each byte of the packet is transmitted.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; So, the maximum length of a transmitted TOS_Msg is 36 bytes (addr(2 bytes) + type(1 bytes) + group(1 bytes) + length(13 bytes) + data(29 bytes) + crc(2 bytes) = 36 bytes).<BR><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </STRONG>虽然最大长度是36个字节，但是除去各种开销，有效字节只有29个<BR><FONT size=4>• sendingNode (2 bytes) – the node that has sent the packet.<BR>• originNode (2 bytes) – the node that generated the packet.<BR>• seqNo (2 bytes) – the sequence number of the packet.<BR>• hopCount (2 bytes) – the number of hops the packet has travelled.<BR>• data[21] (8 bytes) – the payload field of length 21 bytes.<BR></FONT></P><img src ="http://www.cnitblog.com/arthas/aggbug/1482.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/arthas/" target="_blank">记忆中的深蓝</a> 2005-08-11 18:45 <a href="http://www.cnitblog.com/arthas/archive/2005/08/11/1482.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>What is TinyOS? </title><link>http://www.cnitblog.com/arthas/archive/2005/08/10/1452.html</link><dc:creator>记忆中的深蓝</dc:creator><author>记忆中的深蓝</author><pubDate>Tue, 09 Aug 2005 16:34:00 GMT</pubDate><guid>http://www.cnitblog.com/arthas/archive/2005/08/10/1452.html</guid><wfw:comment>http://www.cnitblog.com/arthas/comments/1452.html</wfw:comment><comments>http://www.cnitblog.com/arthas/archive/2005/08/10/1452.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.cnitblog.com/arthas/comments/commentRss/1452.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/arthas/services/trackbacks/1452.html</trackback:ping><description><![CDATA[<P>开张了&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 哈哈<BR><BR><FONT face=Verdana size=2>TinyOS is an <I>open-source operating system</I> designed for <I>wireless embedded sensor networks</I>. It features a <I>component-based architecture</I> which enables rapid innovation and implementation while minimizing code size as required by the severe memory constraints inherent in sensor networks. TinyOS's <I>component library </I>includes network protocols, distributed services, sensor drivers, and data acquisition tools – all of which can be used as-is or be further refined for a custom application. TinyOS's event-driven execution model enables fine-grained power management yet allows the scheduling flexibility made necessary by the unpredictable nature of wireless communication and physical world interfaces. </FONT></P>
<P>TinyOS has been ported to over a dozen platforms and numerous sensor boards. A wide community uses it in simulation to develop and test various algorithms and protocols. New releases see over 10,000 downloads. Over 500 research groups and companies are using TinyOS on the Berkeley/Crossbow Motes. Numerous groups are actively contributing code to the sourceforge site and working together to establish standard, interoperable network services built from a base of direct experience and honed through competitive analysis in an open environment.&nbsp;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 原文转自<A href="http://www.tinyos.net/special/mission">http://www.tinyos.net/special/mission</A>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </P><img src ="http://www.cnitblog.com/arthas/aggbug/1452.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/arthas/" target="_blank">记忆中的深蓝</a> 2005-08-10 00:34 <a href="http://www.cnitblog.com/arthas/archive/2005/08/10/1452.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>