[Tinyos-help] Tinyos-help Digest, Vol 63, Issue 138

kashif.saghar kashif.saghar at unn.ac.uk
Fri Aug 1 01:44:49 PDT 2008


Thanks for the links for TOSSIM help but I have already gone through them and as I have asked in my mail I was asking is there any book on TOSSIM as I have already read the available documents.
Thanks

________________________________

From: tinyos-help-bounces at millennium.berkeley.edu on behalf of tinyos-help-request at millennium.berkeley.edu
Sent: Thu 7/31/2008 9:24 PM
To: tinyos-help at millennium.berkeley.edu
Subject: Tinyos-help Digest, Vol 63, Issue 138



Send Tinyos-help mailing list submissions to
        tinyos-help at millennium.berkeley.edu

To subscribe or unsubscribe via the World Wide Web, visit
        https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

or, via email, send a message with subject or body 'help' to
        tinyos-help-request at millennium.berkeley.edu

You can reach the person managing the list at
        tinyos-help-owner at millennium.berkeley.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tinyos-help digest..."


Today's Topics:

   1. default event problem - not implemented (Jack Travis)
   2. Re: TinyOS and Eclipse (Rasmus Ulslev Pedersen)
   3. Re: Reading Serial Packets with TOSSIM Live (Paul Stickney)
   4. Re: TOSSIM help (Paul Stickney)
   5. Re: Limited number of timers? (Paul Stickney)
   6. Re: Is it possible for each node send/receive     messages with
      different AM id? (Paul Stickney)
   7. Re: Limited number of timers? (Nicola Wegner)
   8. Re: making a loop sleep. (Paul Stickney)
   9. Re: TinyOS Question (Paul Stickney)


----------------------------------------------------------------------

Message: 1
Date: Thu, 31 Jul 2008 15:12:29 -0400
From: "Jack Travis" <jacktravisthefirst at gmail.com>
Subject: [Tinyos-help] default event problem - not implemented
To: "tiny help" <tinyos-help at millennium.berkeley.edu>
Message-ID:
        <ef6d814c0807311212p4c459b48g7d860d792fe1b8f0 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi

I have a problem defining the default events for my interface.

The module implementation contains:
****************
signal Interface.Receive(msg, payload, len);
...
default async event message_t* Interface.Receive(message_t* msg, void*
payload, uint8_t len) {
        return msg;
}
****************

And the interface contains:
****************
async event message_t* Receive(message_t* msg, void* payload, uint8_t len);
****************

But When I wire an application to this Interface I always get the
following error:
****************
TestC.nc:32: `Interface.Receive' not implemented
****************

I cant see why the default does not work.
Thanks
J


------------------------------

Message: 2
Date: Thu, 31 Jul 2008 21:22:47 +0200
From: Rasmus Ulslev Pedersen <rasmus.ulslev.pedersen at gmail.com>
Subject: Re: [Tinyos-help] TinyOS and Eclipse
To: Michael Schippling <schip at santafe.edu>
Cc: tinyos-help at millennium.berkeley.edu
Message-ID: <48921107.8040104 at gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi MS and Jim,
It is nice that you try to use it.
The immediate goal for me when starting the project was to code faster
and having to remember less when coding. Code completion (even though it
is sorrowful simple) in nescdt helps some. Syntax highlighting is a must
so that is done. The next step is maybe to get some sort of code
navigation going so if you press F3 then you go to the definition of a
certain variable. Another place where I found myself spending (ie.
wasting) some time was trying to remember if a file was a module or a
configuration. So I implemented an outline that uses the same symbols as
nesdoc to show what type a file is before you open it. Small things, but
still it saves some time.

Other plugins are probably more comprehensive and requires perhaps more
maintenance. This UI centric plugin does not tinker with the build
process (yet:-)), so that is why you did not get so much success there.
My reason for this is to lower the barrier of entry for those who like
to invoke make from a shell as they do today, but just want an Eclipse
based editor for nesC.

However, I think an easy way to do something useful is to invoke make
from within nescdt and hook into the output produced by the build
process. It would be possible to read the line number that causes
trouble I think and provide a few of the features that make Eclipse a
really nice Java IDE. My best guess is that it would take up to two
years more before this plugin is fully developed.
Best, Rasmus

PS: Jim: thanks for the picture
(http://www.enlightenedcode.net/temp/eclipse_screen_capture.JPG). Good
documentation of what you meant. It (nescdt) will at *most* do what you
see here:
http://docs.tinyos.net/index.php/NESCDT-_An_editor_for_nesC_in_Eclipse
and the target things are not done.



Michael Schippling wrote:
> I tried the dcg.ethz.ch version sometime ago with less than stellar
> results. I don't remember the details but I think I got basically
> nothing...
>
> I also tried this one:  http://sourceforge.net/projects/tinydt/
> and again, my memory is it sort-of worked exactly once, then
> stopped and no amount of reinstalling had any effect.
>
> As I said, I'm not good at following instructions so I probably
> missed some important detail. But I have tried both of the above
> a couple times thinking that might be the problem...
>
> I believe Ramus said that the nescdt plugin just does code highlighting
> and completion now. At least he said it doesn't do any config parsing
> to make it easy to navigate TOS code. So I suppose the build options
> are there to make it tantalizing enough that someone might implement
> them...
>
> MS
>
>
> Jim Fell wrote:
>> Hello Ramus,
>>
>> Nescdt was the first TinyOS plug-in I tried.  After linking in "
>> C:\Program Files\UCB\cygwin\opt\tinyos-2.x\tos" to my project, I added a
>> new file, main.c:
>>
>> void main(void)
>> {
>>     _NOP();
>> }
>>
>> However, the Create and Build options under Project -> Make Target are
>> greyed out
>> (http://www.enlightenedcode.net/temp/eclipse_screen_capture.JPG), and if
>> I click the Make Target button in the Make Targets pane on the right,
>> nothing happens.  It's as if there is a path error in linking the nescdt
>> plug-in with the installed tinyos on cygwin.
>>
>> I'm also working on installing the TinyOS Plug-in for Eclipse from DCG
>> (http://dcg.ethz.ch/projects/tos_ide/).  Is anyone familiar with this
>> plug-in?
>>
>> -Jim
>>
>>
>> Date: Wed, 30 Jul 2008 21:28:07 +0200
>> From: Rasmus Ulslev Pedersen <rasmus.ulslev.pedersen at gmail.com>
>> Subject: [Tinyos-help]  TinyOS and Eclipse
>> To: tinyos-help at millennium.berkeley.edu
>> Message-ID: <4890C0C7.5030303 at gmail.com>
>> Content-Type: text/plain; charset=windows-1252; format=flowed
>>
>> Hi Jim and MS,
>>
>> There is perhaps a way to do it: An editor (Eclipse plugin) project
>> for nesC was started some weeks ago. It was committed to contrib a few
>> days ago, and it is not tested so much yet...
>> But if you go to the contrib index;
>> http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x-contrib/c
>> ontrib.html
>> and look for "nescdt" in the "Tools" column; and then follow the links
>> you will find the page in the TinyOS wiki that describes how to use
>> (and extend (or fix
>> bugs)) the editor (or go directly to the home page
>> http://docs.tinyos.net/index.php/NESCDT-_An_editor_for_nesC_in_Eclipse).
>>
>> Good luck, Rasmus
>>
>> PS: Perhaps drop me a note if you have time to give nescdt a try?
>>
>>> I have been unsuccessful in repeated attempts to make either
>>> of the Eclipse TOS plugins work, perhaps due to my inability
>>> to follow instructions...if anyone has been successful I'd
>>> love to hear about it.
>>
>>> However I do use Eclipse with TOS as a big search engine.
>>> I create an Eclipse Project at the top of the tinyos tree
>>> and make some sub-search components (I forget what they are
>>> called, but under Search-File you can select areas to search).
>>> Unfortunately Eclipse will only allow you to have one Project
>>> in any directory tree. I haven't found a way to make sub-
>>> projects for individual apps because TOS seems to insist on
>>> having it's devel tree tightly integrated.
>>> MS
>>>
>>> 
>>>
>> Jim Fell wrote:
>>>> / Hello.  I?m hoping to develop with TinyOS using Eclipse on a Windows
>> XP />/> platform.  In installed the recommended MSP430 RPMs from this
>> page:
>> />/> />/>  />>/ />>/
>> http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html
>> />>/ />>/  />>/ />>/ Now, in Eclipse I?m unsure as to which directory
>> I should link my />>/ Eclipse TinyOS project to for a proper build. 
>> I currently have it />>/ linked to here:
>> />>/ />>/  />>/ />>/ C:\Program Files\UCB\cygwin\opt\msp430
>> />>/ />>/  />/> />/> Is this correct, or is there a better folder?
>> />/> />/>  />>/ />/> Thanks,
>> />/> />/>  />>/ />/> *Jim Fell*


------------------------------

Message: 3
Date: Thu, 31 Jul 2008 12:50:45 -0700
From: "Paul Stickney" <pstickne at gmail.com>
Subject: Re: [Tinyos-help] Reading Serial Packets with TOSSIM Live
To: tinyos-help at millennium.berkeley.edu
Message-ID:
        <1c87b9080807311250p6086aa8bl2b4933d9a87c2b04 at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

TOSSIM Live provides the SerialForwarder module:
from TOSSIM import SerialForwarder
sf = SerialForwarder(9002)

Then it's just a matter of listening to a SF connection on port 9002
(good luck ;-).
It should be connectible using sflisten, et al.
However, the standard sim-sf time synchronization does not play nice
with python threads and sf works on a poll-basis.
There is some python code to read from an SF connection distributed in
support/sdk/python, IIRC.
I think I tried to use it once, but dropped it for issues with my design.

I am using a custom (thread-friendly) time synchronizer and a basic
asyncore wrapper (understands enough SF to dispatch) with threads and
Queues.

HTH,
Paul

On Thu, Jul 31, 2008 at 9:38 AM, Raymond Paxton <raymond.paxton at crc.ca> wrote:
> I'm sure this is somewhere on the forum already but I can not find it.  Does
> anyone have a code snippet on how read a serial packet from TOSSIM live.  I
> can inject them into the Mote but can not receive them back in the python
> code.
>
> Raymond
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


------------------------------

Message: 4
Date: Thu, 31 Jul 2008 12:56:31 -0700
From: "Paul Stickney" <pstickne at gmail.com>
Subject: Re: [Tinyos-help] TOSSIM help
To: tinyos-help <tinyos-help at millennium.berkeley.edu>
Message-ID:
        <1c87b9080807311256r22e8799bje88a8c864ae8cb35 at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

It varies by version, some links to see:

http://docs.tinyos.net/index.php/TOSSIM
http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson5.html
http://www.tinyos.net/tinyos-1.x/doc/tython/manual.html
http://www.cs.berkeley.edu/~pal/pubs/nido.pdf

On Tue, Jul 29, 2008 at 2:22 AM, kashif.saghar <kashif.saghar at unn.ac.uk> wrote:
> Dear all
> I am new to TOSSIM. I have read some help documents and manuals for TOSSIM.
> I want to ask if there any Book on TOSSIM that can help.
> Thanks
>
> ________________________________
> This e-mail is intended solely for the addressee. It may contain private and
> confidential information. If you are not the intended addressee, please take
> no action based on it nor show a copy to anyone. Please reply to this e-mail
> to highlight the error. You should also be aware that all electronic mail
> from, to, or within Northumbria University may be the subject of a request
> under the Freedom of Information Act 2000 and related legislation, and
> therefore may be required to be disclosed to third parties.
>
> This e-mail and attachments have been scanned for viruses prior to leaving
> Northumbria University. Northumbria University will not be liable for any
> losses as a result of any viruses being passed on.
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


------------------------------

Message: 5
Date: Thu, 31 Jul 2008 13:01:46 -0700
From: "Paul Stickney" <pstickne at gmail.com>
Subject: Re: [Tinyos-help] Limited number of timers?
To: "Tinyos-help at millennium.berkeley.edu"
        <Tinyos-help at millennium.berkeley.edu>
Message-ID:
        <1c87b9080807311301n5af2c4cesb6e172fd49f84557 at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

I must be evil.
I have used VirtualizeTimerC, wired to a new TimerMilliC as the source, IIRC.
It worked nice for parameterization.

HTH,
Paul


------------------------------

Message: 6
Date: Thu, 31 Jul 2008 13:08:29 -0700
From: "Paul Stickney" <pstickne at gmail.com>
Subject: Re: [Tinyos-help] Is it possible for each node send/receive
        messages with different AM id?
To: "weiping SONG" <w.song at cs.ucc.ie>
Cc: tinyos-help at millennium.berkeley.edu
Message-ID:
        <1c87b9080807311308m24be6f4eo5c4748f14c4daf9d at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

I would look for a logic-level bug.
What results do you get from the send?
SUCCESS? EBUSY? EFAIL?
Are there any guards?
If so, how and where?

HTH,
Paul

On Tue, Jul 29, 2008 at 4:40 AM, weiping SONG <w.song at cs.ucc.ie> wrote:
> weiping SONG wrote:
>> Hi all,
>>
>> I uploaded an application to nodes, which is to make each node
>> send/recieve normal messages with a special AM id, and there is a
>> component can send/receive message wtih another Am id for managing nodes.
>>
>> But I found nodes can  recieve managing messages once in a while and
>> they can not receive  messages any more if they send a managing
>> messages. I don't know why, could you give some advice?
>>
>> Regards,
>>
>> Weiping
>> _______________________________________________
>> Tinyos-help mailing list
>> Tinyos-help at millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>>
> I have also found that the rxFrameLength = 0 after I sending the
> managing packets and receiving  next packets, so all packets can not
> send to upper components.
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


------------------------------

Message: 7
Date: Thu, 31 Jul 2008 22:14:36 +0200
From: "Nicola Wegner" <nicola.wegner at googlemail.com>
Subject: Re: [Tinyos-help] Limited number of timers?
To: "Tinyos-help at millennium.berkeley.edu"
        <Tinyos-help at millennium.berkeley.edu>
Message-ID:
        <e4f0690f0807311314rcfdefefofafc52615e3fb422 at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

2008/7/31 Paul Stickney <pstickne at gmail.com>:
> I must be evil.
> I have used VirtualizeTimerC, wired to a new TimerMilliC as the source, IIRC.
> It worked nice for parameterization.
>
> HTH,
> Paul

Yes you seem to be very evil ;)

In my case it worked too. But I did not know if it was necessary for
my usage. In special cases I think you are right.

Nicola


------------------------------

Message: 8
Date: Thu, 31 Jul 2008 13:16:05 -0700
From: "Paul Stickney" <pstickne at gmail.com>
Subject: Re: [Tinyos-help] making a loop sleep.
To: tinyos-help at millennium.berkeley.edu
Message-ID:
        <1c87b9080807311316lcc73264i4eb6f6f7959a718e at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

TOSSIM is a discreet-event simulator.
It will only run things as they need to be run (e.g. events) and
normally in "the loop", it runs them as fast as they can be processed.
You can tell Tossim to run an event at a specific time by using
newPacket().deliver() to trigger an event and then overlay that with a
state-machine based on time.
SimX/Event is such a wrapper.

To run things "in real-world time", see sim-sf (or simx/tsync).

HTH,
Paul


------------------------------

Message: 9
Date: Thu, 31 Jul 2008 13:23:45 -0700
From: "Paul Stickney" <pstickne at gmail.com>
Subject: Re: [Tinyos-help] TinyOS Question
To: tinyos-help at millennium.berkeley.edu
Message-ID:
        <1c87b9080807311323o52231122k61174f0d57409b06 at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Just my depreciating two cents: use the cygwin (or linux?) shell
environment to make and install the your TinyOS code to the motes.
Eclipse should be just fine as an editor using C rules.

HTH,
Paul

On Wed, Jul 30, 2008 at 6:53 AM, Jim Fell <jfell at lsr.com> wrote:
> Hello.  How do I write a program to run TinyOS on the TelosB mote?  I've
> installed Eclipse, but I can't figure out how to install the proper plugin
> to get it to work with the mote.  Any guidance here would be appreciated.
>
>
>
> Jim Fell
> Software Engineer
> LS Research, LLC
> Email: jfell at lsr.com
> http://www.lsr.com/
>
>
>
> Notice:  This message and any included attachments are intended only for the
> use of the addressee, and may contain information that is privileged or
> confidential.  If you are not the intended recipient, you are hereby
> notified that any review, copying or distribution of this communication is
> strictly prohibited.  If you have received this e-mail in error, please
> destroy the original message and any copies or printouts hereof.  Any views
> or opinions presented are solely those of the author of this e-mail, and do
> not necessarily represent those of LS Research, LLC, unless otherwise
> specifically stated.
>
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


------------------------------

_______________________________________________
Tinyos-help mailing list
Tinyos-help at millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

End of Tinyos-help Digest, Vol 63, Issue 138
********************************************

--
This message has been scanned for viruses and dangerous
content by the NorMAN MailScanner Service and is believed
to be clean.

The NorMAN MailScanner Service is operated by Information
Systems and Services, Newcastle University.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 22044 bytes
Desc: not available
Url : https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080801/80f8fbec/attachment-0001.bin 


More information about the Tinyos-help mailing list