Alex | 21 Jul 11:56 2014
Picon

tinyos2.1.2 & pppRouter


Hi,

    Has anyone successfully installed msp430-gcc version 4.6.3 or above and compiled PppRouter successfully?

    Which version of Ubuntu are you using?



--
Thanks for your attention.

Best regards.


<div>
<div>
<br><div>Hi,</div>
<div><br></div>
<div>&nbsp; &nbsp; Has anyone successfully installed msp430-gcc version 4.6.3 or above and compiled PppRouter successfully?</div>
<div><br></div>
<div>&nbsp; &nbsp; Which version of Ubuntu are you using?</div>
<br><br><br><div>--<br><div>
<span class="Apple-tab-span">	</span>Thanks for your attention.</div>
<div><br></div>
<div>Best regards.</div>
</div>
</div>
<br><br><span title="neteasefooter"><span><span title="neteasefooter"><span><a href="#" target="_blank"></a></span></span>
</span></span>
</div>
Alex | 21 Jul 10:43 2014
Picon

ice-insight



Hi, 

Has anyone ever used ice-insight? I am using ice-insight and encountered a problem. 

I used avr jtagice mkii and input "ice-insight ./build/micaz/main.exe" and it replied:
************************************************************************************************************
$ ice-insight ./build/micaz/main.ihex
AVaRICE version 2.4, Jan  8 2007 16:54:40


Defaulting JTAG bitrate to 1 MHz. Make sure that the target
frequency is at least 4 MHz or you will likely encounter failures
controlling the target.


JTAG ICE communication failed: Inappropriate ioctl for device
************************************************************************************************************

It is very kind of you if you give me some hint on it.

--
Thanks for your attention.

Best regards.


<div>
<div>
<br><br><div>Hi,&nbsp;</div>
<div><br></div>
<div>Has anyone ever used ice-insight? I am using ice-insight and encountered a problem.&nbsp;</div>
<div><br></div>
<div>I used avr jtagice mkii and input "ice-insight ./build/micaz/main.exe" and it replied:</div>
<div>************************************************************************************************************</div>
<div>
<div>$ ice-insight ./build/micaz/main.ihex</div>
<div>AVaRICE version 2.4, Jan &nbsp;8 2007 16:54:40</div>
<div><br></div>
<div><br></div>
<div>Defaulting JTAG bitrate to 1 MHz. Make sure that the target</div>
<div>frequency is at least 4 MHz or you will likely encounter failures</div>
<div>controlling the target.</div>
<div><br></div>
<div><br></div>
<div>JTAG ICE communication failed: Inappropriate ioctl for device</div>
</div>
<div>************************************************************************************************************</div>
<div><br></div>It is very kind of you if you give me some hint on it.<br><br><div>--<br><div>
<span class="Apple-tab-span">	</span>Thanks for your attention.</div>
<div><br></div>
<div>Best regards.</div>
</div>
</div>
<br><br><span title="neteasefooter"><span><span title="neteasefooter"><span><a href="#" target="_blank"></a></span></span>
</span></span>
</div>
Vinod Supnekar | 19 Jul 14:33 2014
Picon

Fwd: How to find parameters like THROUPUT, DELIVERY RATIO , EFFICIENCY with of AODV in TOSSIM



 In TOSSIM , i am not able to compare the results of AODV and modified AODV(paper reffered and implemented  by me).

  Everything is running fine!!!!

But to complete my thesis , i need to show factual results as you know more.

So , i request to you buddies to give me some idea about " How to find parameters like THROUPUT, DELIVERY RATIO ,EFFICIENCY with of AODV in TOSSIM ".

 It will be really helpful for me to complete my last 10 % work and  help in my submission.

Thank you.





--
Regards,

Vinod  Supnekar
MTech Software Engg.
VJTI.Mumbai.
Mob.9773583026.
<div><div dir="ltr">
<br><div class="gmail_quote"><div dir="ltr">
<div class="gmail_quote">
<br><div dir="ltr">&nbsp;In TOSSIM , i am not able to compare the results of AODV and modified AODV(paper reffered and implemented &nbsp;by me).<div>

<br><div>&nbsp; Everything is running fine!!!!</div>
<div><br></div>
<div>But to complete my thesis , i need to show factual results as you know more.</div>
<div><br></div>
<div>So , i request to you buddies to give me some idea about " How to find parameters like THROUPUT, DELIVERY RATIO ,EFFICIENCY with of AODV in TOSSIM ".<br clear="all"><div><br></div>
<div>
&nbsp;It will be really helpful for me to complete my last 10 % work and &nbsp;help in my submission.</div>

<div><br></div>
<div>Thank you.</div>
<span><span><div dir="ltr"><br></div></span></span>
</div>
</div>
</div>
</div>
<span><div>
<br>
</div></span>
</div></div>
<br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<div>
<br><div>Vinod &nbsp;Supnekar</div>
<div>MTech Software Engg.</div>
<div>VJTI.Mumbai.</div>

<div>Mob.9773583026.</div>
</div>
</div>
</div></div>
trung phạm | 19 Jul 04:03 2014
Picon

Network animator

Dear all !!

I create 3 note with wsnet and wsim ... and send information with everynote..... i want to show with Network animator...(NAM )
But i dont know how to open NAM.... please help me
<div><div dir="ltr">
<div>
<div>Dear all !!<br><br>
</div>I create 3 note with wsnet and wsim ... and send information with everynote..... i want to show with Network animator...(NAM )<br>
</div>But i dont know how to open NAM.... please help me<br>
</div></div>
Jisha Mary Jose | 18 Jul 04:10 2014
Picon

Encryption algorithms in tinyos-2.x

Hi,

I want to do encryption on data in TinyOS 2.x. But the available algorithms do not work in tinyos-2.x. How to port the algorithms like RC5 or RSA to tinyos-2.x?

Please help me..

Regards,

Jisha Mary Jose
......jMj......
<div><div dir="ltr">
<div class="gmail_default">Hi,<br><br>
</div>
<div class="gmail_default">I want to do encryption on data in TinyOS 2.x. But the available algorithms do not work in tinyos-2.x. How to port the algorithms like RC5 or RSA to tinyos-2.x?<br><br>
</div>
<div class="gmail_default">Please help me..<br><br clear="all">
</div>
<div><div dir="ltr">Regards,<br><br>Jisha Mary Jose<br>......jMj......</div></div>
</div></div>
Jisha Mary Jose | 18 Jul 04:08 2014
Picon

Re: Tinyos-help Digest, Vol 135, Issue 12

The random number problem was solved... Thank you for all the support.. I solved it using the external file ("/dev/urandom") method specified by Markus..

Thank you so much sir...

Regards,

Jisha Mary Jose
......jMj......


On 11 July 2014 06:38, <tinyos-help-request <at> millennium.berkeley.edu> wrote:
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. Re: random number (Markus Becker)
   2. Re: SHA1 error in TOSSIM (Jisha Mary Jose)
   3. Re: SHA1 error in TOSSIM (Johny Mattsson)


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

Message: 1
Date: Thu, 10 Jul 2014 20:59:57 +0200
From: Markus Becker <mab <at> comnets.uni-bremen.de>
Subject: Re: [Tinyos-help] random number
To: Michiel Konstapel <m.konstapel <at> sownet.nl>
Cc: Jisha Mary Jose <jishamary1509 <at> gmail.com>,  Tinyos-Help
        <tinyos-help <at> millennium.berkeley.edu>
Message-ID:
        <CAFvB54a_srbZwZ0m_Kvmd-poX8Y6EY1fERAuBLM15Skcko=ikw <at> mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I have been seeding TOSSIM from outside (/dev/urandom) with code like this:

#include <stdio.h>
...

  uses interface ParameterInit<uint16_t> as Seed;

...

  event void Boot.booted() {
    uint16_t seed;
    FILE *f;

    f = fopen("/dev/urandom", "r");
    fread(&seed, sizeof(seed), 1, f);
    fclose(f);

    call Seed.init(seed+TOS_NODE_ID+1);
}

Markus


On Thu, Jul 10, 2014 at 4:44 PM, Michiel Konstapel <m.konstapel <at> sownet.nl>
wrote:

>  Probably not ? I bet it compiles the same RandomC as it does for a real
> node, so it still seeds based on TOS_NODE_ID. I have no idea if you can
> access ?outside? sources of randomness from a TOSSIM node.
>
>
>
> *From:* tinyos-help-bounces <at> millennium.berkeley.edu [mailto:
> tinyos-help-bounces <at> millennium.berkeley.edu] *On Behalf Of *Michiel
> Konstapel
> *Sent:* Thursday, July 10, 2014 16:17
> *To:* Jisha Mary Jose
> *Cc:* Tinyos-Help
>
> *Subject:* Re: [Tinyos-help] random number
>
>
>
> Hi! Please keep replies on the list, so others can contribute/benefit, too.
>
>
>
> I?m not familiar with TOSSIM, so I just googled ?TOSSIM random seed? and
> looks like you can initialize its random number generator:
> http://tinyos-help.10906.n7.nabble.com/Reproducible-TOSSIM-simulations-td16341.html.
> This person has the opposite problem, trying to get reproducible run.
>
>
>
> However, I don?t know if the Tossim seed is used by the random number
> generator.
>
>
>
> *From:* Jisha Mary Jose [mailto:jishamary1509 <at> gmail.com
> <jishamary1509 <at> gmail.com>]
> *Sent:* Thursday, July 10, 2014 12:16
> *To:* Michiel Konstapel
> *Subject:* Re: [Tinyos-help] random number
>
>
>
> Hi,
>
> Thankyou for the response. I am working in TOSSIM, so there are no real
> motes. What is any other option to generate random numbers? Please guide
> me..
>
>
>   Regards,
>
> Jisha Mary Jose
> ......jMj......
>
>
>
> On 10 July 2014 15:21, Michiel Konstapel <m.konstapel <at> sownet.nl> wrote:
>
> Timer.getNow() starts over at zero after every boot, so you?re probably
> using the same seed every time unless something during the boot process
> takes a variable amount of time (and on an embedded system or in the
> simulator, it probably takes the same amount of time, every time ? at least
> down to the millisecond level).
>
> Michiel
>
>
>
> *From:* tinyos-help-bounces <at> millennium.berkeley.edu [mailto:
> tinyos-help-bounces <at> millennium.berkeley.edu] *On Behalf Of *Jisha Mary
> Jose
> *Sent:* Thursday, July 10, 2014 11:18
> *To:* Eric Decker
> *Cc:* Tinyos Help Request; Tinyos-Help
> *Subject:* Re: [Tinyos-help] random number
>
>
>
> I did that, i changed the seed. But still same numbers are generated again
> and again at a particular node.
>
>
>   Regards,
>
> Jisha Mary Jose
> ......jMj......
>
>
>
> On 10 July 2014 13:05, Eric Decker <cire831 <at> gmail.com> wrote:
>
>
>
> asked and answered.
>
>
>
> The random number generator is pseudo-random.
>
>
>
> It starts up using a SEED which you need to modify to get different
> sequences.
>
>
>
>
>
> On Wed, Jul 9, 2014 at 11:52 PM, Jisha Mary Jose <jishamary1509 <at> gmail.com>
> wrote:
>
>    Hi,
>
> I have to generate random number for a node to use in key generation. But
> i always get the same random number. So ichanged seed value using the
> current system time as shown below.
>
>
> module SecurityC{
>
>     uses interface Boot;
>     uses interface Random;
>     uses interface ParameterInit<uint16_t> as SeedInit;
>     uses interface Timer<TMilli>;
> }
>
> implementation{
>
>     uint32_t rand1;
>     uint32_t t;
>
>     event void Timer.fired() {
>
>          t=call Timer.getNow();
>         dbg("Boot", "%s Current time: %d \n", sim_time_string(), t);
>     }
>
>     event void Boot.booted()
>     {
>
>         dbg("Boot", "Application booted.\n");
>         t=call Timer.getNow();
>         call SeedInit.init(t);
>
>         rand1 = (call Random.rand32()%10)+7;
>
>         dbg("Boot", "%s Random number 1: %d \n", sim_time_string(), rand1);
>
>     }
> }
>
> But still i am getting the same number always. How to solve this?
>
> Regards,
>
> Jisha Mary Jose
> ......jMj......
>
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help <at> millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>
>
>
> --
> Eric B. Decker
> Senior (over 50 :-) Researcher
>
>
>
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help <at> millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20140710/500dfe23/attachment-0001.htm

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

Message: 2
Date: Fri, 11 Jul 2014 06:14:53 +0530
From: Jisha Mary Jose <jishamary1509 <at> gmail.com>
Subject: Re: [Tinyos-help] SHA1 error in TOSSIM
To: Christian Haas <haas <at> tm.uka.de>,    Tinyos-Help
        <tinyos-help <at> millennium.berkeley.edu>,  Tinyos Help Request
        <tinyos-help-request <at> millennium.berkeley.edu>
Message-ID:
        <CADNVx9oUeqFmWz_-Z0CyGrWKCq5b-7s-E+cMjPNROV5SwC71Dw <at> mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

#include "sha1.h"

module DisseminationC {
  uses {
            interface SHA1;
}
implementation{

void hash(){

uint8_t x=123;

call SHA1.context(context);
call SHA1.update(context, x, sizeof(x));
call SHA1.digest(context, Message_Digest[SHA1HashSize]);

dbg("All", "%s Hash is : %d \n", sim_time_string(), Message_Digest);
}

Here the three functions called are defined in TinyECC-2.0 in SHA1.nc.

This always returns different results for the same input say "123". Am I
doing it the correct way?

Please help me..



Regards,

Jisha Mary Jose
......jMj......


On 10 July 2014 16:08, Christian Haas <haas <at> tm.uka.de> wrote:

> On 07/10/2014 12:22 PM, Jisha Mary Jose wrote:
> > Hi,
> >
> > I am using TinyOS-2.1.2 and to achieve security techniques i am using
> > TinyECC-2.0. I want to use the SHA1 available in tinyecc. But,
> >
> > When i take the hash of a value say,
> >
> > uint8_t data=123;
> >
> > I use the three functions of sha given in SHA1.nc namely, SHA1.reset,
> > SHA1.update and SHA1.digest to obtain the result. But each time i run the
> > code ie. do "make micaz sim" I get different hash results for the same
> data.
> >
> > How to get a unique hash value for each data taken? Please help me...
>
> Post the code please.
>
>
> --
> Karlsruher Institut f?r Technologie (KIT) - Institut f?r Telematik
>
> Dr. Christian Haas
> Wissenschaftlicher Mitarbeiter
> Zirkel 2 / 76131 Karlsruhe
>
> Telefon: +49 721 608-46415
> Fax:     +49 721 608-46789
> E-Mail:  christian.haas <at> kit.edu
> WWW:     http://telematics.tm.kit.edu/staff_78.php
>
> http://www.kit.edu/
> KIT - Universit?t des Landes Baden-W?rttemberg und nationales
> Gro?forschungszentrum in der Helmholtz-Gemeinschaft
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20140711/ba99b453/attachment-0001.htm

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

Message: 3
Date: Fri, 11 Jul 2014 11:08:03 +1000
From: Johny Mattsson <jmattsson <at> dius.com.au>
Subject: Re: [Tinyos-help] SHA1 error in TOSSIM
To: Jisha Mary Jose <jishamary1509 <at> gmail.com>
Cc: Tinyos-Help <tinyos-help <at> millennium.berkeley.edu>
Message-ID:
        <CACTyEaNEjx4YnOFV9vavQMRwv61d66Jc5XZi5oOdpSXpA6kJOQ <at> mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On 11 July 2014 10:44, Jisha Mary Jose <jishamary1509 <at> gmail.com> wrote:

> void hash(){
>
> uint8_t x=123;
>
> call SHA1.context(context);
>

I don''t see where 'context' comes from. I'll have to assume it's defined
somewhere.



> call SHA1.update(context, x, sizeof(x));
>

That should almost certainly be &x rather than x. It looks like you're
treating the value 123 as a pointer, which would explain why you're getting
different values all the time...



> call SHA1.digest(context, Message_Digest[SHA1HashSize]);
>

Again, I don't know where Message_Digest comes from.



Cheers,
/Johny
--
Johny Mattsson
Senior Software Engineer

DiUS Computing Pty. Ltd.

*where ideas are engineered *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20140711/d4025db8/attachment.htm

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

_______________________________________________
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 135, Issue 12
********************************************

<div>
<div dir="ltr">
<div class="gmail_default">The random number problem was solved... Thank you for all the support.. I solved it using the external file ("/dev/urandom") method specified by Markus..<br><br>
</div>
<div class="gmail_default">Thank you so much sir...<br>
</div>
</div>
<div class="gmail_extra">
<br clear="all"><div>
<div dir="ltr">Regards,<br><br>Jisha Mary Jose<br>......jMj......</div>
</div>
<br><br><div class="gmail_quote">On 11 July 2014 06:38,  <span dir="ltr">&lt;<a href="mailto:tinyos-help-request <at> millennium.berkeley.edu" target="_blank">tinyos-help-request <at> millennium.berkeley.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">Send Tinyos-help mailing list submissions to<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:tinyos-help <at> millennium.berkeley.edu">tinyos-help <at> millennium.berkeley.edu</a><br><br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help" target="_blank">https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help</a><br><br>
or, via email, send a message with subject or body 'help' to<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:tinyos-help-request <at> millennium.berkeley.edu">tinyos-help-request <at> millennium.berkeley.edu</a><br><br>
You can reach the person managing the list at<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:tinyos-help-owner <at> millennium.berkeley.edu">tinyos-help-owner <at> millennium.berkeley.edu</a><br><br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Tinyos-help digest..."<br><br><br>
Today's Topics:<br><br>
&nbsp; &nbsp;1. Re: random number (Markus Becker)<br>
&nbsp; &nbsp;2. Re: SHA1 error in TOSSIM (Jisha Mary Jose)<br>
&nbsp; &nbsp;3. Re: SHA1 error in TOSSIM (Johny Mattsson)<br><br><br>
----------------------------------------------------------------------<br><br>
Message: 1<br>
Date: Thu, 10 Jul 2014 20:59:57 +0200<br>
From: Markus Becker &lt;<a href="mailto:mab <at> comnets.uni-bremen.de">mab <at> comnets.uni-bremen.de</a>&gt;<br>
Subject: Re: [Tinyos-help] random number<br>
To: Michiel Konstapel &lt;<a href="mailto:m.konstapel <at> sownet.nl">m.konstapel <at> sownet.nl</a>&gt;<br>
Cc: Jisha Mary Jose &lt;<a href="mailto:jishamary1509 <at> gmail.com">jishamary1509 <at> gmail.com</a>&gt;, &nbsp;Tinyos-Help<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:tinyos-help <at> millennium.berkeley.edu">tinyos-help <at> millennium.berkeley.edu</a>&gt;<br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;CAFvB54a_srbZwZ0m_Kvmd-poX8Y6EY1fERAuBLM15Skcko=<a href="mailto:ikw <at> mail.gmail.com">ikw <at> mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset="utf-8"<br><br>
I have been seeding TOSSIM from outside (/dev/urandom) with code like this:<br><br>
#include &lt;stdio.h&gt;<br>
...<br><br>
&nbsp; uses interface ParameterInit&lt;uint16_t&gt; as Seed;<br><br>
...<br><br>
&nbsp; event void Boot.booted() {<br>
&nbsp; &nbsp; uint16_t seed;<br>
&nbsp; &nbsp; FILE *f;<br><br>
&nbsp; &nbsp; f = fopen("/dev/urandom", "r");<br>
&nbsp; &nbsp; fread(&amp;seed, sizeof(seed), 1, f);<br>
&nbsp; &nbsp; fclose(f);<br><br>
&nbsp; &nbsp; call Seed.init(seed+TOS_NODE_ID+1);<br>
}<br><br>
Markus<br><br><br>
On Thu, Jul 10, 2014 at 4:44 PM, Michiel Konstapel &lt;<a href="mailto:m.konstapel <at> sownet.nl">m.konstapel <at> sownet.nl</a>&gt;<br>
wrote:<br><br>
&gt; &nbsp;Probably not ? I bet it compiles the same RandomC as it does for a real<br>
&gt; node, so it still seeds based on TOS_NODE_ID. I have no idea if you can<br>
&gt; access ?outside? sources of randomness from a TOSSIM node.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; *From:* <a href="mailto:tinyos-help-bounces <at> millennium.berkeley.edu">tinyos-help-bounces <at> millennium.berkeley.edu</a> [mailto:<br>
&gt; <a href="mailto:tinyos-help-bounces <at> millennium.berkeley.edu">tinyos-help-bounces <at> millennium.berkeley.edu</a>] *On Behalf Of *Michiel<br>
&gt; Konstapel<br>
&gt; *Sent:* Thursday, July 10, 2014 16:17<br>
&gt; *To:* Jisha Mary Jose<br>
&gt; *Cc:* Tinyos-Help<br>
&gt;<br>
&gt; *Subject:* Re: [Tinyos-help] random number<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi! Please keep replies on the list, so others can contribute/benefit, too.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I?m not familiar with TOSSIM, so I just googled ?TOSSIM random seed? and<br>
&gt; looks like you can initialize its random number generator:<br>
&gt; <a href="http://tinyos-help.10906.n7.nabble.com/Reproducible-TOSSIM-simulations-td16341.html" target="_blank">http://tinyos-help.10906.n7.nabble.com/Reproducible-TOSSIM-simulations-td16341.html</a>.<br>
&gt; This person has the opposite problem, trying to get reproducible run.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; However, I don?t know if the Tossim seed is used by the random number<br>
&gt; generator.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; *From:* Jisha Mary Jose [mailto:<a href="mailto:jishamary1509 <at> gmail.com">jishamary1509 <at> gmail.com</a><br>
&gt; &lt;<a href="mailto:jishamary1509 <at> gmail.com">jishamary1509 <at> gmail.com</a>&gt;]<br>
&gt; *Sent:* Thursday, July 10, 2014 12:16<br>
&gt; *To:* Michiel Konstapel<br>
&gt; *Subject:* Re: [Tinyos-help] random number<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; Thankyou for the response. I am working in TOSSIM, so there are no real<br>
&gt; motes. What is any other option to generate random numbers? Please guide<br>
&gt; me..<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; Regards,<br>
&gt;<br>
&gt; Jisha Mary Jose<br>
&gt; ......jMj......<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 10 July 2014 15:21, Michiel Konstapel &lt;<a href="mailto:m.konstapel <at> sownet.nl">m.konstapel <at> sownet.nl</a>&gt; wrote:<br>
&gt;<br>
&gt; Timer.getNow() starts over at zero after every boot, so you?re probably<br>
&gt; using the same seed every time unless something during the boot process<br>
&gt; takes a variable amount of time (and on an embedded system or in the<br>
&gt; simulator, it probably takes the same amount of time, every time ? at least<br>
&gt; down to the millisecond level).<br>
&gt;<br>
&gt; Michiel<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; *From:* <a href="mailto:tinyos-help-bounces <at> millennium.berkeley.edu">tinyos-help-bounces <at> millennium.berkeley.edu</a> [mailto:<br>
&gt; <a href="mailto:tinyos-help-bounces <at> millennium.berkeley.edu">tinyos-help-bounces <at> millennium.berkeley.edu</a>] *On Behalf Of *Jisha Mary<br>
&gt; Jose<br>
&gt; *Sent:* Thursday, July 10, 2014 11:18<br>
&gt; *To:* Eric Decker<br>
&gt; *Cc:* Tinyos Help Request; Tinyos-Help<br>
&gt; *Subject:* Re: [Tinyos-help] random number<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I did that, i changed the seed. But still same numbers are generated again<br>
&gt; and again at a particular node.<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; Regards,<br>
&gt;<br>
&gt; Jisha Mary Jose<br>
&gt; ......jMj......<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 10 July 2014 13:05, Eric Decker &lt;<a href="mailto:cire831 <at> gmail.com">cire831 <at> gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; asked and answered.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; The random number generator is pseudo-random.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; It starts up using a SEED which you need to modify to get different<br>
&gt; sequences.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jul 9, 2014 at 11:52 PM, Jisha Mary Jose &lt;<a href="mailto:jishamary1509 <at> gmail.com">jishamary1509 <at> gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; &nbsp; &nbsp;Hi,<br>
&gt;<br>
&gt; I have to generate random number for a node to use in key generation. But<br>
&gt; i always get the same random number. So ichanged seed value using the<br>
&gt; current system time as shown below.<br>
&gt;<br>
&gt;<br>
&gt; module SecurityC{<br>
&gt;<br>
&gt; &nbsp; &nbsp; uses interface Boot;<br>
&gt; &nbsp; &nbsp; uses interface Random;<br>
&gt; &nbsp; &nbsp; uses interface ParameterInit&lt;uint16_t&gt; as SeedInit;<br>
&gt; &nbsp; &nbsp; uses interface Timer&lt;TMilli&gt;;<br>
&gt; }<br>
&gt;<br>
&gt; implementation{<br>
&gt;<br>
&gt; &nbsp; &nbsp; uint32_t rand1;<br>
&gt; &nbsp; &nbsp; uint32_t t;<br>
&gt;<br>
&gt; &nbsp; &nbsp; event void Timer.fired() {<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;t=call Timer.getNow();<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; dbg("Boot", "%s Current time: %d \n", sim_time_string(), t);<br>
&gt; &nbsp; &nbsp; }<br>
&gt;<br>
&gt; &nbsp; &nbsp; event void Boot.booted()<br>
&gt; &nbsp; &nbsp; {<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; dbg("Boot", "Application booted.\n");<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; t=call Timer.getNow();<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; call SeedInit.init(t);<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; rand1 = (call Random.rand32()%10)+7;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; dbg("Boot", "%s Random number 1: %d \n", sim_time_string(), rand1);<br>
&gt;<br>
&gt; &nbsp; &nbsp; }<br>
&gt; }<br>
&gt;<br>
&gt; But still i am getting the same number always. How to solve this?<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Jisha Mary Jose<br>
&gt; ......jMj......<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Tinyos-help mailing list<br>
&gt; <a href="mailto:Tinyos-help <at> millennium.berkeley.edu">Tinyos-help <at> millennium.berkeley.edu</a><br>
&gt; <a href="https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help" target="_blank">https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Eric B. Decker<br>
&gt; Senior (over 50 :-) Researcher<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Tinyos-help mailing list<br>
&gt; <a href="mailto:Tinyos-help <at> millennium.berkeley.edu">Tinyos-help <at> millennium.berkeley.edu</a><br>
&gt; <a href="https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help" target="_blank">https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help</a><br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20140710/500dfe23/attachment-0001.htm" target="_blank">https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20140710/500dfe23/attachment-0001.htm</a><br><br>
------------------------------<br><br>
Message: 2<br>
Date: Fri, 11 Jul 2014 06:14:53 +0530<br>
From: Jisha Mary Jose &lt;<a href="mailto:jishamary1509 <at> gmail.com">jishamary1509 <at> gmail.com</a>&gt;<br>
Subject: Re: [Tinyos-help] SHA1 error in TOSSIM<br>
To: Christian Haas &lt;<a href="mailto:haas <at> tm.uka.de">haas <at> tm.uka.de</a>&gt;, &nbsp; &nbsp;Tinyos-Help<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:tinyos-help <at> millennium.berkeley.edu">tinyos-help <at> millennium.berkeley.edu</a>&gt;, &nbsp;Tinyos Help Request<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:tinyos-help-request <at> millennium.berkeley.edu">tinyos-help-request <at> millennium.berkeley.edu</a>&gt;<br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:CADNVx9oUeqFmWz_-Z0CyGrWKCq5b-7s-E%2BcMjPNROV5SwC71Dw <at> mail.gmail.com">CADNVx9oUeqFmWz_-Z0CyGrWKCq5b-7s-E+cMjPNROV5SwC71Dw <at> mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset="utf-8"<br><br>
#include "sha1.h"<br><br>
module DisseminationC {<br>
&nbsp; uses {<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; interface SHA1;<br>
}<br>
implementation{<br><br>
void hash(){<br><br>
uint8_t x=123;<br><br>
call SHA1.context(context);<br>
call SHA1.update(context, x, sizeof(x));<br>
call SHA1.digest(context, Message_Digest[SHA1HashSize]);<br><br>
dbg("All", "%s Hash is : %d \n", sim_time_string(), Message_Digest);<br>
}<br><br>
Here the three functions called are defined in TinyECC-2.0 in SHA1.nc.<br><br>
This always returns different results for the same input say "123". Am I<br>
doing it the correct way?<br><br>
Please help me..<br><br><br><br>
Regards,<br><br>
Jisha Mary Jose<br>
......jMj......<br><br><br>
On 10 July 2014 16:08, Christian Haas &lt;<a href="mailto:haas <at> tm.uka.de">haas <at> tm.uka.de</a>&gt; wrote:<br><br>
&gt; On 07/10/2014 12:22 PM, Jisha Mary Jose wrote:<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; I am using TinyOS-2.1.2 and to achieve security techniques i am using<br>
&gt; &gt; TinyECC-2.0. I want to use the SHA1 available in tinyecc. But,<br>
&gt; &gt;<br>
&gt; &gt; When i take the hash of a value say,<br>
&gt; &gt;<br>
&gt; &gt; uint8_t data=123;<br>
&gt; &gt;<br>
&gt; &gt; I use the three functions of sha given in SHA1.nc namely, SHA1.reset,<br>
&gt; &gt; SHA1.update and SHA1.digest to obtain the result. But each time i run the<br>
&gt; &gt; code ie. do "make micaz sim" I get different hash results for the same<br>
&gt; data.<br>
&gt; &gt;<br>
&gt; &gt; How to get a unique hash value for each data taken? Please help me...<br>
&gt;<br>
&gt; Post the code please.<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Karlsruher Institut f?r Technologie (KIT) - Institut f?r Telematik<br>
&gt;<br>
&gt; Dr. Christian Haas<br>
&gt; Wissenschaftlicher Mitarbeiter<br>
&gt; Zirkel 2 / 76131 Karlsruhe<br>
&gt;<br>
&gt; Telefon: +49 721 608-46415<br>
&gt; Fax: &nbsp; &nbsp; +49 721 608-46789<br>
&gt; E-Mail: &nbsp;<a href="mailto:christian.haas <at> kit.edu">christian.haas <at> kit.edu</a><br>
&gt; WWW: &nbsp; &nbsp; <a href="http://telematics.tm.kit.edu/staff_78.php" target="_blank">http://telematics.tm.kit.edu/staff_78.php</a><br>
&gt;<br>
&gt; <a href="http://www.kit.edu/" target="_blank">http://www.kit.edu/</a><br>
&gt; KIT - Universit?t des Landes Baden-W?rttemberg und nationales<br>
&gt; Gro?forschungszentrum in der Helmholtz-Gemeinschaft<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20140711/ba99b453/attachment-0001.htm" target="_blank">https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20140711/ba99b453/attachment-0001.htm</a><br><br>
------------------------------<br><br>
Message: 3<br>
Date: Fri, 11 Jul 2014 11:08:03 +1000<br>
From: Johny Mattsson &lt;<a href="mailto:jmattsson <at> dius.com.au">jmattsson <at> dius.com.au</a>&gt;<br>
Subject: Re: [Tinyos-help] SHA1 error in TOSSIM<br>
To: Jisha Mary Jose &lt;<a href="mailto:jishamary1509 <at> gmail.com">jishamary1509 <at> gmail.com</a>&gt;<br>
Cc: Tinyos-Help &lt;<a href="mailto:tinyos-help <at> millennium.berkeley.edu">tinyos-help <at> millennium.berkeley.edu</a>&gt;<br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:CACTyEaNEjx4YnOFV9vavQMRwv61d66Jc5XZi5oOdpSXpA6kJOQ <at> mail.gmail.com">CACTyEaNEjx4YnOFV9vavQMRwv61d66Jc5XZi5oOdpSXpA6kJOQ <at> mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset="utf-8"<br><br>
On 11 July 2014 10:44, Jisha Mary Jose &lt;<a href="mailto:jishamary1509 <at> gmail.com">jishamary1509 <at> gmail.com</a>&gt; wrote:<br><br>
&gt; void hash(){<br>
&gt;<br>
&gt; uint8_t x=123;<br>
&gt;<br>
&gt; call SHA1.context(context);<br>
&gt;<br><br>
I don''t see where 'context' comes from. I'll have to assume it's defined<br>
somewhere.<br><br><br><br>
&gt; call SHA1.update(context, x, sizeof(x));<br>
&gt;<br><br>
That should almost certainly be &amp;x rather than x. It looks like you're<br>
treating the value 123 as a pointer, which would explain why you're getting<br>
different values all the time...<br><br><br><br>
&gt; call SHA1.digest(context, Message_Digest[SHA1HashSize]);<br>
&gt;<br><br>
Again, I don't know where Message_Digest comes from.<br><br><br><br>
Cheers,<br>
/Johny<br>
--<br>
Johny Mattsson<br>
Senior Software Engineer<br><br>
DiUS Computing Pty. Ltd.<br><br>
*where ideas are engineered *<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20140711/d4025db8/attachment.htm" target="_blank">https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20140711/d4025db8/attachment.htm</a><br><br>
------------------------------<br><br>
_______________________________________________<br>
Tinyos-help mailing list<br><a href="mailto:Tinyos-help <at> millennium.berkeley.edu">Tinyos-help <at> millennium.berkeley.edu</a><br><a href="https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help" target="_blank">https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help</a><br><br>
End of Tinyos-help Digest, Vol 135, Issue 12<br>
********************************************≤br>
</blockquote>
</div>
<br>
</div>
</div>
Alex CP | 17 Jul 01:58 2014
Picon

Error try to clone 'tinyos-main' through git.

Hi all.

I have a problem when I try to clone tinyos-main in my raspberrypi

Please someone have any idea about how fix it?

In my Linux terminal appears the next:
----------------------------------------------------------------------------------------------
root <at> raspberrypi:/opt# git clone git://github.com/tinyos/tinyos-main.git
Cloning into 'tinyos-main'...
fatal: unable to connect to github.com:
github.com: Name or service not known
-----------------------------------------------------------------------------------------------

Thanks in advance for any idea.

Alex.
<div><div dir="ltr">
<div>
<div>
<div>Hi all.<br><br>
</div>I have a problem when I try to clone tinyos-main in my raspberrypi<br><br>
</div>Please someone have any idea about how fix it?<br><br>
</div>In my Linux terminal appears the next:<br><div>
<div>----------------------------------------------------------------------------------------------<br>root <at> raspberrypi:/opt# git clone git://<a href="http://github.com/tinyos/tinyos-main.git">github.com/tinyos/tinyos-main.git</a><br>
Cloning into 'tinyos-main'...<br>fatal: unable to connect to <a href="http://github.com">github.com</a>:<br><a href="http://github.com">github.com</a>: Name or service not known<br>-----------------------------------------------------------------------------------------------<br><br>
</div>
<div>Thanks in advance for any idea.<br><br>
</div>
<div>Alex.</div>
</div>
</div></div>
Skander Bahloul | 16 Jul 16:04 2014
Picon

CC2538


Hi,

I like to know if TinyOS support CC2538 or not.

Thank you!

Besst regards,

-----------------------------------------------------------------------------------
Skander BAHLOUL



<div>
<div><br></div>
<div>Hi, <br>
</div>
<div><br></div>
<div>I like to know if TinyOS support CC2538 or not.<br>
</div>
<div><br></div>
<div>Thank you!<br>
</div>
<div><br></div>
<div>Besst regards,<br>
</div>
<div><br></div>
<div>-----------------------------------------------------------------------------------<br><span data-mce-style="color: #0000ff;">Skander BAHLOUL</span><br>
</div>
<div><br></div>
<div><br></div>
<div><br></div>
</div>
trung phạm | 16 Jul 13:38 2014
Picon

Run Tymo ( DYmonetworkc ) with Wsim Wsnet

i create 3 node with wsnet and i can use dymonetwork with 3 node
but how to show information with Wsim and Wsnet
<div><div dir="ltr">i create 3 node with wsnet and i can use dymonetwork with 3 node<br>but how to show information with Wsim and Wsnet</div></div>
Antonis Tzounis | 16 Jul 13:21 2014
Picon

UART off

Hello,
Is there any way to completely shut-down uart in TOS2? I think there was such a functionality in TOS1. 
What I want to do is completely turn off an external sensor board that is connected through UART in order to reduce energy consumption to the levels that the node itself consumes. Unfortunately my sensor, although it is very good for prototyping, was not designed with low power in mind, it includes op-amps and leds which I don't use and adds a 40mA overhead for no reason the whole time that the node is active.
Thanks for your time.
Best regards
Antonis
<div><div dir="ltr">Hello,
<div>Is there any way to completely shut-down uart in TOS2? I think there was such a functionality in TOS1.&nbsp;</div>
<div>What I want to do is completely turn off an external sensor board that is connected through UART in order to reduce energy consumption to the levels that the node itself consumes. Unfortunately my sensor, although it is very good for prototyping, was not designed with low power in mind, it includes op-amps and leds which I don't use and adds a 40mA overhead for no reason the whole time that the node is active.</div>
<div>Thanks for your time.</div>
<div>Best regards</div>
<div>Antonis</div>
</div></div>
Cyril C | 15 Jul 16:44 2014
Picon

TinyDB : where can I find it?

Hi everybody,

I've been reading lots of papers presenting the TinyOS system and TinyDB, a database for sensor networks.
I would like to experiment this latter on WSN430 motes mesh in order to 1) get sensor values 2) configure sensing periods with the TinyDB SQL-like language.

However, i can't find any TinyDB application neither on the official Github repo (https://github.com/tinyos/tinyos-main) nor on TinyDB official website.

Can you help me ?

Thanks in advance

Cyril
<div><div>
<div class="">Hi everybody,</div>
<div class=""><br class=""></div>
<div class="">I've been reading lots of papers presenting the TinyOS system and TinyDB, a database for sensor networks.</div>
<div class="">I would like to experiment this latter on WSN430 motes mesh in order to 1) get sensor values 2) configure sensing periods with the TinyDB SQL-like language.</div>
<div class=""><br class=""></div>
<div class="">However, i can't find any TinyDB application neither on the official Github repo (https://github.com/tinyos/tinyos-main) nor on TinyDB official website.<br>
</div>
<div class=""><br></div>
<div class="">Can you help me ?</div>
<div class=""><br></div>
<div class="">Thanks in advance</div>
<div class=""><br></div>
<div class="">Cyril<br class="">
</div>
</div></div>

Gmane