Xiaohui Liu | 1 Apr 2010 01:42
Picon

Re: warning: internal error: unsupported relocation error

Anybody can provide some further suggestion? I truly appreciate your help.

On Wed, Mar 31, 2010 at 12:47 AM, Michael Schippling <schip <at> santafe.edu> wrote:
oops....I was shooting from the hip and didn't read the whole
message... Presuming that "text" is 0 it seems that the program
should fit.

Is there are way to cause gcc to cough up a link table?

Otherwise, perhaps some experimental code removal could
focus in on where the problem lies.

MS

Xiaohui Liu wrote:
Hi,

Thanks for your attention. Could you please give me some further info on what is causing the error and how to fix it? I really appreciate your help.

On Tue, Mar 30, 2010 at 5:15 PM, Philip Levis <pal <at> cs.stanford.edu <mailto:pal <at> cs.stanford.edu>> wrote:


   On Mar 30, 2010, at 1:39 PM, Michael Schippling wrote:

    > How big is your program? You may have overrun your Flash memory size.
    > MS

   0x9424 is smaller than 48K (telosb); it sounds like an msp430-gcc
   internal linker error.

    >
    >
    > Xiaohui Liu wrote:
    >> Hi,
    >>
    >> After I compile my program using "make telosb", the following
   warning
    >> pops up: "app.c:(.text+0x9424): warning: internal error: unsupported
    >> relocation error". I looked up some of the related threads, none of
    >> which gives a solution. Can anybody tell me what causes this
   warning and
    >> how to get rid of it? Thanks.
    >>
    >> --
    >> -Xiaohui Liu
    >>

   Phil




--
-Xiaohui Liu



--
-Xiaohui Liu
<div>
<p>Anybody can provide some further suggestion? I truly appreciate your help.<br><br></p>
<div class="gmail_quote">On Wed, Mar 31, 2010 at 12:47 AM, Michael Schippling <span dir="ltr">&lt;<a href="mailto:schip <at> santafe.edu">schip <at> santafe.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">oops....I was shooting from the hip and didn't read the whole<br>
message... Presuming that "text" is 0 it seems that the program<br>
should fit.<br><br>
Is there are way to cause gcc to cough up a link table?<br><br>
Otherwise, perhaps some experimental code removal could<br>
focus in on where the problem lies.<br><br>
MS<br><br>
Xiaohui Liu wrote:<br><blockquote class="gmail_quote">
<div class="im">
Hi,<br><br>
Thanks for your attention. Could you please give me some further info on what is causing the error and how to fix it? I really appreciate your help.<br><br>
</div>
<div class="im">
On Tue, Mar 30, 2010 at 5:15 PM, Philip Levis &lt;<a href="mailto:pal <at> cs.stanford.edu" target="_blank">pal <at> cs.stanford.edu</a> &lt;mailto:<a href="mailto:pal <at> cs.stanford.edu" target="_blank">pal <at> cs.stanford.edu</a>&gt;&gt; wrote:<br><br><br>
 &nbsp; &nbsp;On Mar 30, 2010, at 1:39 PM, Michael Schippling wrote:<br><br>
 &nbsp; &nbsp; &gt; How big is your program? You may have overrun your Flash memory size.<br>
 &nbsp; &nbsp; &gt; MS<br><br>
 &nbsp; &nbsp;0x9424 is smaller than 48K (telosb); it sounds like an msp430-gcc<br>
 &nbsp; &nbsp;internal linker error.<br><br>
 &nbsp; &nbsp; &gt;<br>
 &nbsp; &nbsp; &gt;<br>
 &nbsp; &nbsp; &gt; Xiaohui Liu wrote:<br>
 &nbsp; &nbsp; &gt;&gt; Hi,<br>
 &nbsp; &nbsp; &gt;&gt;<br>
 &nbsp; &nbsp; &gt;&gt; After I compile my program using "make telosb", the following<br>
 &nbsp; &nbsp;warning<br>
 &nbsp; &nbsp; &gt;&gt; pops up: "app.c:(.text+0x9424): warning: internal error: unsupported<br>
 &nbsp; &nbsp; &gt;&gt; relocation error". I looked up some of the related threads, none of<br>
 &nbsp; &nbsp; &gt;&gt; which gives a solution. Can anybody tell me what causes this<br>
 &nbsp; &nbsp;warning and<br>
 &nbsp; &nbsp; &gt;&gt; how to get rid of it? Thanks.<br>
 &nbsp; &nbsp; &gt;&gt;<br>
 &nbsp; &nbsp; &gt;&gt; --<br>
 &nbsp; &nbsp; &gt;&gt; -Xiaohui Liu<br>
 &nbsp; &nbsp; &gt;&gt;<br><br>
 &nbsp; &nbsp;Phil<br><br><br><br><br>
-- <br>
-Xiaohui Liu<br>
</div>
</blockquote>
</blockquote>
</div>
<br><br clear="all"><br>-- <br>-Xiaohui Liu<br>
</div>
Malini Manoharan | 1 Apr 2010 06:16
Picon

Reg ADC.getdata( )


Hi all,

      What will be the output of ADC.getdata( ) ? Is it the raw voltage value of the sensor  connected to the corresponding ADC channel or the calibrated sensor reading? Plz help me...

Awaiting the answer,
Malini.

<div>
<br>Hi all,<br><div class="gmail_quote">
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; What will be the output of ADC.getdata( ) ? Is it the raw voltage value of the sensor&nbsp; connected to the corresponding ADC channel or the calibrated sensor reading? Plz help me...<br><br>Awaiting the answer,<br>
Malini.<br>
</div>
<br>
</div>
Jordi Soucheiron | 1 Apr 2010 10:47
Gravatar

Re: Tinyos-help Digest, Vol 83, Issue 107

Hello Ali,
What do you mean? I've been able to use Blink to radio on multiple platforms without any problem at all.

Jordi Soucheiron
Software Engineer

DEXMA
Parc Tecnològic la Salle
Sant Joan de la Salle, 42
08022 Barcelona
t/f: [+34] 93 181 01 95
www.dexmatech.com
jsoucheiron <at> dexmatech.com
2010/3/31 ali hentati <alihentati87 <at> gmail.com>
The function sendDone of the application " BlinkToRadio" ( TinyOs 2.1) don't match , so the receive function also don't match.
Can you help me .
 

--
Ali Hentati  4ème Informatique , réseaux et télécommunications  
Vice-président Club FSSOFT
Faculté des Sciences de Sfax
Département d'Informatique et Communications
+ 216 22 287 058

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

<div>
<p>Hello Ali,<br>What do you mean? I've been able to use Blink to radio on multiple platforms without any problem at all.<br></p>
<div name="sig_d54da95bb8">Jordi Soucheiron<br>
Software Engineer<br><br>DEXMA<br>
Parc Tecnol&ograve;gic la Salle<br>
Sant Joan de la Salle, 42<br>
08022 Barcelona<br>
t/f: [+34] 93 181 01 95<br><a href="http://www.dexmatech.com" target="_blank">www.dexmatech.com</a><br><a href="mailto:jsoucheiron <at> dexmatech.com" target="_blank">jsoucheiron <at> dexmatech.com</a><br>
</div>
<div class="gmail_quote">2010/3/31 ali hentati <span dir="ltr">&lt;<a href="mailto:alihentati87 <at> gmail.com">alihentati87 <at> gmail.com</a>&gt;</span><br><blockquote class="gmail_quote">
<div dir="ltr">The function sendDone of the application " BlinkToRadio" ( TinyOs 2.1) don't match , so the&nbsp;receive&nbsp;function also don't match.<div>Can you help me .</div>
<div>&nbsp;<br><br>-- <br>Ali Hentati &nbsp;4&egrave;me Informatique , r&eacute;seaux et t&eacute;l&eacute;communications &nbsp;<br>

Vice-pr&eacute;sident Club FSSOFT <br>Facult&eacute; des Sciences de Sfax<br>D&eacute;partement d'Informatique et Communications<br>+ 216 22 287 058<br>
</div>
</div>
<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>
</blockquote>
</div>
<br>
</div>
Umay Kulsoom | 1 Apr 2010 13:04
Picon

Encoding

Hello all,

In tinyos-1.x, encoding option(s) is provided by 
  • RADIO_BYTE.comp
  • FOUR_B_RADIO_BYTE.comp
  • SEC_DED_RADIO_BYTE.comp
and all. These are not available in tinyos-2.x!!! What are the alternate of these??

Please help!!..
Thanks in advance

--
Umay Kulsoom
Islamabad, Pakistan
<div>
<p>Hello all,</p>
<div>In tinyos-1.x, encoding option(s) is provided by&nbsp;</div>
<div><ul>
<li>RADIO_BYTE.comp</li>
<li>FOUR_B_RADIO_BYTE.comp</li>
<li>SEC_DED_RADIO_BYTE.comp</li>
</ul></div>
<div>and all. These are not available in tinyos-2.x!!! What are the alternate of these??</div>
<div><br></div>
<div>Please help!!..</div>
<div>Thanks in advance<br clear="all"><br>-- <br>Umay Kulsoom<br>Islamabad, Pakistan<br>
</div>
</div>
Arik Sapojnik | 1 Apr 2010 14:27
Picon

Re: invalid operands to binary ^

What you are trying to do, is to XOR 2 pointers to message_t structs.
What is the logic here?

Arik


On Fri, Mar 26, 2010 at 19:30, Michael Schippling <schip <at> santafe.edu> wrote:
Please send messages to the help list as I am not
qualified to have a final opinion...

I tried something like this and got the XOR to compile:

       struct *x;
       struct *y;
       int z = ( (int)x ^ (int)y );

MS

t'aim . wrote:
> Hi,
> Thanks for replying ,Yea i am trying but it is still not working..I
> change every message_t to int but still facing the same problem any idea
> dude
>
> taimoor
>
>  > Date: Thu, 25 Mar 2010 11:51:39 -0600
>  > From: schip <at> santafe.edu
>  > To: gotohell38 <at> hotmail.com
>  > CC: tinyos-help <at> millennium.berkeley.edu
>  > Subject: Re: [Tinyos-help] invalid operands to binary ^
>  >
>  > hmmm, interesting....
>  >
>  > I don't know what a ONE_NOK is or what that syntax means
>  > but I think your line* variables are arrays of pointers.
>  > I just tried XORing two pointers and got your complaint,
>  > so apparently GCC thinks they are not the same as integers.
>  > Try explicitly casting them to ints, that seems to work.
>  >
>  > MS
>  >
>  > t'aim . wrote:
>  > > Hi,
>  > > I am facing error in Xor program ..It is showing invalid operands to
>  > > binary ^ error ..here is the program plzz help me guys
>  > >
>  > >
>  > >
>  > > implementation
>  > > {
>  > > message_t radioQueueBufs[2],line_aBufs[2],line_bBufs[2];
>  > > //RADIO_QUEUE_LENGTH=12
>  > > message_t * ONE_NOK radioQueue[2];
>  > > message_t * ONE_NOK line_a[2];
>  > > message_t * ONE_NOK line_b[2];
>  > > uint8_t radioIn, radioOut,c,j,z;
>  > > bool radioBusy, radioFull;
>  > >
>  > > ...............................................
>  > > .....................................................
>  > >
>  > > event void Boot.booted() {
>  > > uint8_t i;
>  > >
>  > > for (i = 0; i < 1; i++)
>  > > {
>  > > radioQueue[i] = &radioQueueBufs[i];
>  > > line_a[i]=&line_aBufs[i];
>  > > line_b[i]=&line_bBufs[i];
>  > > }
>  > > radioBusy = FALSE;
>  > > radioFull = TRUE;
>  > >
>  > > .............................
>  > > ................................
>  > >
>  > > task void radioSendTask();
>  > > event message_t *RadioReceive.receive[am_id_t id](message_t *msg,void
>  > > *payload,uint8_t len) {
>  > >
>  > > message_t *ret=msg;
>  > >
>  > > if (!radioFull)
>  > > {
>  > > ret=radioQueue[radioIn];
>  > > radioQueue[radioIn] = msg;
>  > > (++radioIn >= 2) && (radioIn = 0) ;
>  > >
>  > > }
>  > > post radioSendTask();
>  > > return ret;
>  > > }
>  > >
>  > >
>  > > task void radioSendTask() {
>  > > uint8_t len;
>  > >
>  > >
>  > > message_t* msg;
>  > >
>  > > if (radioIn == radioOut && !radioFull)
>  > > {
>  > >
>  > >
>  > >
>  > > for (j=0;j<=9;j++)
>  > > {
>  > > line_a[j]=radioQueue[radioOut];
>  > > }
>  > > //line_a=[9];
>  > >
>  > >
>  > > for (j=0;j<=18;j++)
>  > > {
>  > > line_b[j]=radioQueue[radioOut];
>  > > }
>  > > //line_b=[18];
>  > >
>  > > c=(line_a[9]) ^ (line_b[18]); // error line .I am XORing
>  > > data in buffer
>  > >
>  > >
>  > > return;
>  > > }
>  > > msg = radioQueue[c];
>  > >
>  > >
>  > >
>  > > if (call RadioSend.send[2](AM_BROADCAST_ADDR, msg, len) == SUCCESS)
>  > > call Leds.led2Toggle();
>  > > ........
>  > > ........
>  > > .......
>  > >
>  > >
> ------------------------------------------------------------------------
>  > > The New Busy is not the old busy. Search, chat and e-mail from your
>  > > inbox. Get started.
>  > >
> <http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_3>
>  > >
>  > >
>  > >
> ------------------------------------------------------------------------
>  > >
>  > > _______________________________________________
>  > > Tinyos-help mailing list
>  > > Tinyos-help <at> millennium.berkeley.edu
>  > >
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> ------------------------------------------------------------------------
> The New Busy is not the old busy. Search, chat and e-mail from your
> inbox. Get started.
> <http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_3>
_______________________________________________
Tinyos-help mailing list
Tinyos-help <at> millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



--
Best Regards,
Arik Sapojnik
<div><div dir="ltr">What you are trying to do, is to XOR 2 pointers to message_t structs.<br>What is the logic here?<br><br>Arik<br><br><br><div class="gmail_quote">On Fri, Mar 26, 2010 at 19:30, Michael Schippling <span dir="ltr">&lt;<a href="mailto:schip <at> santafe.edu">schip <at> santafe.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">Please send messages to the help list as I am not<br>
qualified to have a final opinion...<br><br>
I tried something like this and got the XOR to compile:<br><br>
 &nbsp; &nbsp; &nbsp; &nbsp;struct *x;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;struct *y;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;int z = ( (int)x ^ (int)y );<br><div class="im">
<br>
MS<br><br>
t'aim . wrote:<br>
&gt; Hi,<br>
</div>&gt; Thanks for replying ,Yea i am trying but it is still not working..I<br>
&gt; change every message_t to int but still facing the same problem any idea<br>
&gt; dude<br>
&gt;<br>
&gt; taimoor<br>
&gt;<br>
&gt; &nbsp;&gt; Date: Thu, 25 Mar 2010 11:51:39 -0600<br>
&gt; &nbsp;&gt; From: <a href="mailto:schip <at> santafe.edu">schip <at> santafe.edu</a><br>
&gt; &nbsp;&gt; To: <a href="mailto:gotohell38 <at> hotmail.com">gotohell38 <at> hotmail.com</a><br>
&gt; &nbsp;&gt; CC: <a href="mailto:tinyos-help <at> millennium.berkeley.edu">tinyos-help <at> millennium.berkeley.edu</a><br>
&gt; &nbsp;&gt; Subject: Re: [Tinyos-help] invalid operands to binary ^<br><div>
<div></div>
<div class="h5">&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; hmmm, interesting....<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; I don't know what a ONE_NOK is or what that syntax means<br>
&gt; &nbsp;&gt; but I think your line* variables are arrays of pointers.<br>
&gt; &nbsp;&gt; I just tried XORing two pointers and got your complaint,<br>
&gt; &nbsp;&gt; so apparently GCC thinks they are not the same as integers.<br>
&gt; &nbsp;&gt; Try explicitly casting them to ints, that seems to work.<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; MS<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; t'aim . wrote:<br>
&gt; &nbsp;&gt; &gt; Hi,<br>
&gt; &nbsp;&gt; &gt; I am facing error in Xor program ..It is showing invalid operands to<br>
&gt; &nbsp;&gt; &gt; binary ^ error ..here is the program plzz help me guys<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; implementation<br>
&gt; &nbsp;&gt; &gt; {<br>
&gt; &nbsp;&gt; &gt; message_t radioQueueBufs[2],line_aBufs[2],line_bBufs[2];<br>
&gt; &nbsp;&gt; &gt; //RADIO_QUEUE_LENGTH=12<br>
&gt; &nbsp;&gt; &gt; message_t * ONE_NOK radioQueue[2];<br>
&gt; &nbsp;&gt; &gt; message_t * ONE_NOK line_a[2];<br>
&gt; &nbsp;&gt; &gt; message_t * ONE_NOK line_b[2];<br>
&gt; &nbsp;&gt; &gt; uint8_t radioIn, radioOut,c,j,z;<br>
&gt; &nbsp;&gt; &gt; bool radioBusy, radioFull;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; ...............................................<br>
&gt; &nbsp;&gt; &gt; .....................................................<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; event void Boot.booted() {<br>
&gt; &nbsp;&gt; &gt; uint8_t i;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; for (i = 0; i &lt; 1; i++)<br>
&gt; &nbsp;&gt; &gt; {<br>
&gt; &nbsp;&gt; &gt; radioQueue[i] = &amp;radioQueueBufs[i];<br>
&gt; &nbsp;&gt; &gt; line_a[i]=&amp;line_aBufs[i];<br>
&gt; &nbsp;&gt; &gt; line_b[i]=&amp;line_bBufs[i];<br>
&gt; &nbsp;&gt; &gt; }<br>
&gt; &nbsp;&gt; &gt; radioBusy = FALSE;<br>
&gt; &nbsp;&gt; &gt; radioFull = TRUE;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; .............................<br>
&gt; &nbsp;&gt; &gt; ................................<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; task void radioSendTask();<br>
&gt; &nbsp;&gt; &gt; event message_t *RadioReceive.receive[am_id_t id](message_t *msg,void<br>
&gt; &nbsp;&gt; &gt; *payload,uint8_t len) {<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; message_t *ret=msg;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; if (!radioFull)<br>
&gt; &nbsp;&gt; &gt; {<br>
&gt; &nbsp;&gt; &gt; ret=radioQueue[radioIn];<br>
&gt; &nbsp;&gt; &gt; radioQueue[radioIn] = msg;<br>
&gt; &nbsp;&gt; &gt; (++radioIn &gt;= 2) &amp;&amp; (radioIn = 0) ;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; }<br>
&gt; &nbsp;&gt; &gt; post radioSendTask();<br>
&gt; &nbsp;&gt; &gt; return ret;<br>
&gt; &nbsp;&gt; &gt; }<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; task void radioSendTask() {<br>
&gt; &nbsp;&gt; &gt; uint8_t len;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; message_t* msg;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; if (radioIn == radioOut &amp;&amp; !radioFull)<br>
&gt; &nbsp;&gt; &gt; {<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; for (j=0;j&lt;=9;j++)<br>
&gt; &nbsp;&gt; &gt; {<br>
&gt; &nbsp;&gt; &gt; line_a[j]=radioQueue[radioOut];<br>
&gt; &nbsp;&gt; &gt; }<br>
&gt; &nbsp;&gt; &gt; //line_a=[9];<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; for (j=0;j&lt;=18;j++)<br>
&gt; &nbsp;&gt; &gt; {<br>
&gt; &nbsp;&gt; &gt; line_b[j]=radioQueue[radioOut];<br>
&gt; &nbsp;&gt; &gt; }<br>
&gt; &nbsp;&gt; &gt; //line_b=[18];<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; c=(line_a[9]) ^ (line_b[18]); // error line .I am XORing<br>
&gt; &nbsp;&gt; &gt; data in buffer<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; return;<br>
&gt; &nbsp;&gt; &gt; }<br>
&gt; &nbsp;&gt; &gt; msg = radioQueue[c];<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; if (call RadioSend.send[2](AM_BROADCAST_ADDR, msg, len) == SUCCESS)<br>
&gt; &nbsp;&gt; &gt; call Leds.led2Toggle();<br>
&gt; &nbsp;&gt; &gt; ........<br>
&gt; &nbsp;&gt; &gt; ........<br>
&gt; &nbsp;&gt; &gt; .......<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt; &nbsp;&gt; &gt; The New Busy is not the old busy. Search, chat and e-mail from your<br>
&gt; &nbsp;&gt; &gt; inbox. Get started.<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &lt;<a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_3" target="_blank">http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_3</a>&gt;<br>

&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; _______________________________________________<br>
&gt; &nbsp;&gt; &gt; Tinyos-help mailing list<br>
&gt; &nbsp;&gt; &gt; <a href="mailto:Tinyos-help <at> millennium.berkeley.edu">Tinyos-help <at> millennium.berkeley.edu</a><br>
&gt; &nbsp;&gt; &gt;<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; The New Busy is not the old busy. Search, chat and e-mail from your<br>
&gt; inbox. Get started.<br>
&gt; &lt;<a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_3" target="_blank">http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_3</a>&gt;<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>
</div>
</div>
</blockquote>
</div>
<br><br clear="all"><br>-- <br>Best Regards,<br>Arik Sapojnik<br>
</div></div>
Arik Sapojnik | 1 Apr 2010 14:34
Picon

Re: ways to multicast

You can't multicast. Only broadcast or unicast.

Arik


On Mon, Mar 29, 2010 at 16:07, lena psara <lena_psara <at> yahoo.com> wrote:
Hello,

I would need some help...
Does anyone know what these two AM types exactly mean? 
 1) MODE_ONE_HOP_BROADCAST
 2) AM_ANY2ANY
And if I can use them in the MhopSend Interface to multicast to some nodes?
If i cannot use them to multicast, could you help in how can i achieve that?

Thank you in advance

Best Regards,
Lena



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



--
Best Regards,
Arik Sapojnik
<div><div dir="ltr">You can't multicast. Only broadcast or unicast.<br><br>Arik<br><br><br><div class="gmail_quote">On Mon, Mar 29, 2010 at 16:07, lena psara <span dir="ltr">&lt;<a href="mailto:lena_psara <at> yahoo.com">lena_psara <at> yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<div>
<div>
<div><div>

<div>Hello,<br><br>I would need some help...<br>Does anyone know 
what these two AM types exactly mean?&nbsp; <br>&nbsp;1) MODE_ONE_HOP_BROADCAST<br>&nbsp;2)
 AM_ANY2ANY<br>And if I can use them in the MhopSend <span>Interface</span> to multicast to
 some nodes?<br>If i cannot use them to multicast, could you help in how
 can i achieve that?<br><br>Thank you in advance<br><br>Best Regards,<br>Lena<br><br>
</div>
</div></div>
</div>
<br>
</div>
<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>
</blockquote>
</div>
<br><br clear="all"><br>

-- <br>Best Regards,<br>Arik Sapojnik<br>
</div></div>
maryam cheikhi | 1 Apr 2010 17:16
Picon
Favicon

help on sending a control message to all motes on the network

Spam detection software, running on the system "mail.Millennium.Berkeley.EDU", has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
the administrator of that system for details.

Content preview:  Hello, I am new to tinyOS and NesC. I have read the documentation
   about it. it's not fairly easy to get started, so I need a little bit of
  help to get my project going. I am trying to implement a routing/aggregation
   protocol on Tmote-sky nodes. [...] 

Content analysis details:   (3.6 points, 3.3 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 3.2 FH_DATE_PAST_20XX      The date is grossly in the future.
 0.0 HTML_MESSAGE           BODY: HTML included in message
-0.7 BAYES_20               BODY: Bayesian spam probability is 5 to 20%
                            [score: 0.0822]
 1.1 DNS_FROM_OPENWHOIS     RBL: Envelope sender listed in bl.open-whois.org.

The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam.  If you wish to view
it, it may be safer to save it to a file and open it with an editor.

Picon Favicon
From: maryam cheikhi <mary999946 <at> hotmail.com>
Subject: help on sending a control message to all motes on the network
Date: 2010-04-01 15:16:45 GMT


Hello,
 
I am new to tinyOS and NesC. I have read the documentation about it. it's not fairly easy to get started, so I need a little bit of help to get my project going.
 
I am trying to implement a routing/aggregation protocol on Tmote-sky nodes.
 
first of all, i'd like to know How to send messages to all the nodes on the network. which interface should I use to create messages?
and is there a way to save a metric on the nodes individually, or any efficient way to let the motes remember that value.
 
I appreciate you help and thank you in advance.



Hotmail : une messagerie fiable avec la protection anti-spam performante de Microsoft Inscrivez-vous
<div>
<br>Hello,<br>
&nbsp;<br>
I am new to tinyOS and NesC. I have read the documentation about it.&nbsp;it's not fairly easy to get started, so I need a little bit of help to get my project going.<br>
&nbsp;<br>
I am trying to implement a routing/aggregation protocol on Tmote-sky nodes.<br>
&nbsp;<br>
first of all, i'd like to know How&nbsp;to send messages to all the nodes on the network. which interface should I use to create messages?<br>
and is there a way to save a metric on the nodes individually, or any efficient way to let the motes remember that value.<br>
&nbsp;<br>
I appreciate you help and thank you in advance.<br><br><br><br>Hotmail : une messagerie fiable avec la protection anti-spam performante de Microsoft <a href="https://signup.live.com/signup.aspx?id=60969" target="_new">Inscrivez-vous</a>
</div>
maryam cheikhi | 1 Apr 2010 17:53
Picon
Favicon

send message to all motes

Spam detection software, running on the system "mail.Millennium.Berkeley.EDU", has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
the administrator of that system for details.

Content preview:  Hello, I am new to tinyOS and NesC. I have read the documentation
   about it. it's not fairly easy to get started, so I need a little bit of
  help to get my project going. I am trying to implement a routing/aggregation
   protocol on Tmote-sky nodes. first of all, i'd like to know How to send messages
   to all the nodes on the network. which interface should I use to create messages?
   [...] 

Content analysis details:   (3.7 points, 3.3 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 3.2 FH_DATE_PAST_20XX      The date is grossly in the future.
-0.2 BAYES_40               BODY: Bayesian spam probability is 20 to 40%
                            [score: 0.2916]
 0.0 HTML_MESSAGE           BODY: HTML included in message
 1.1 DNS_FROM_OPENWHOIS     RBL: Envelope sender listed in bl.open-whois.org.
-0.4 AWL                    AWL: From: address is in the auto white-list

The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam.  If you wish to view
it, it may be safer to save it to a file and open it with an editor.

Picon Favicon
From: maryam cheikhi <mary999946 <at> hotmail.com>
Subject: send message to all motes
Date: 2010-04-01 15:53:21 GMT

Hello,

 

I am new to tinyOS and NesC. I have read the documentation about it. it's not fairly easy to get started, so I need a little bit of help to get my project going.
I am trying to implement a routing/aggregation protocol on Tmote-sky nodes.
first of all, i'd like to know How to send messages to all the nodes on the network. which interface should I use to create messages?

and is there a way to save a metric on the nodes individually, or any efficient way to let the motes remember that value.
I appreciate you help and thank you in advance.


maryam,


Hotmail : une messagerie performante et gratuite avec une sécurité signée Microsoft Profitez-en
<div>
Hello,<br><br>&nbsp;<br><br>I am new to tinyOS and NesC. I have read the documentation about it.&nbsp;it's not fairly easy to get started, so I need a little bit of help to get my project going.<br>I am trying to implement a routing/aggregation protocol on Tmote-sky nodes.<br>first of all, i'd like to know How&nbsp;to send messages to all the nodes on the network. which interface should I use to create messages?<br><br>and is there a way to save a metric on the nodes individually, or any efficient way to let the motes remember that value.<br>I appreciate you help and thank you in advance.<br><br><br>maryam,<br><br><br>Hotmail : une messagerie performante et gratuite avec une s&eacute;curit&eacute; sign&eacute;e Microsoft <a href="https://signup.live.com/signup.aspx?id=60969" target="_new">Profitez-en</a>
</div>
bharat seth | 1 Apr 2010 18:19
Picon

to use ecdh

hi ,
i have ported ecdh on tinyos 2.x but the problem is it givivng different pair of keys ,can any one help me ,as i have hard coded the keys in telosb,but still it is not working correctly ,any suggestion will be really valuable for me
--
With Regards
Maj Bharat udai seth
MTECH,IInd yr,CS DEPT
IIT MADRAS
9790900354

<div><p>hi ,<br>i have ported ecdh on tinyos 2.x but the problem is it givivng different pair of keys ,can any one help me ,as i have hard coded the keys in telosb,but still it is not working correctly ,any suggestion will be really valuable for me <br>

-- <br>With Regards<br>Maj Bharat udai seth<br>MTECH,IInd yr,CS DEPT<br>IIT MADRAS<br>9790900354<br></p></div>
Henrik Mäkitaavola | 1 Apr 2010 18:38
Picon

Re: invalid operands to binary ^

I think you should, as suggested above, explain what your code should do. Because you are doing some, in my oppinion, strage things here.
For example this line of code:
(++radioIn >= 2) && (radioIn = 0) ;
doesnt make sense when written as a statement. You will add one to radioIn and set radioIn to zero while doing a logic and (?).
And one other thing:
for (j=0;j<=9;j++)  
{  
  line_a[j]=radioQueue[radioOut];
}
You are accessing 10 elements in line_a, but it only has 2 elements?
And the final question: why do you want to xor 2 message_t struct pointers. If everything is correct then I guess casting the pointers to ints as suggested by Michael would do the job.
/Henrik


2010/3/25 t'aim . <gotohell38 <at> hotmail.com>
Hi,
I am facing error in Xor program ..It is showing invalid operands to binary ^ error ..here is the program plzz help me guys


 
implementation
{
  message_t  radioQueueBufs[2],line_aBufs[2],line_bBufs[2];               //RADIO_QUEUE_LENGTH=12
  message_t  * ONE_NOK radioQueue[2];
  message_t  * ONE_NOK line_a[2];
  message_t  * ONE_NOK line_b[2];
  uint8_t    radioIn, radioOut,c,j,z;
  bool       radioBusy, radioFull;

...............................................
.....................................................
 
event void Boot.booted() {
    uint8_t i;

    for (i = 0; i < 1; i++) 
{
  radioQueue[i] = &radioQueueBufs[i];
  line_a[i]=&line_aBufs[i];
  line_b[i]=&line_bBufs[i];
}
radioBusy = FALSE;
radioFull = TRUE;

 .............................
................................
 
task void radioSendTask(); 
event message_t *RadioReceive.receive[am_id_t id](message_t *msg,void *payload,uint8_t len) {
    
 message_t  *ret=msg;
  
      if (!radioFull)
{
 ret=radioQueue[radioIn];
 radioQueue[radioIn] = msg;
 (++radioIn >= 2) && (radioIn = 0) ; 
  
    }
 post radioSendTask();
    return ret;
    }
  

task void radioSendTask() {
    uint8_t len;
     
    
    message_t* msg;
     
     if (radioIn == radioOut && !radioFull)
{

 

for (j=0;j<=9;j++)  
{  
line_a[j]=radioQueue[radioOut];
}
//line_a=[9];


for (j=0;j<=18;j++)  
{  
line_b[j]=radioQueue[radioOut];
}
//line_b=[18];

c=(line_a[9]) ^ (line_b[18]);             //  error line .I am XORing data in buffer


 return;
}
       msg = radioQueue[c];  
   
 

 if (call RadioSend.send[2](AM_BROADCAST_ADDR, msg, len) == SUCCESS)
   call Leds.led2Toggle();
   ........
........
.......

The New Busy is not the old busy. Search, chat and e-mail from your inbox. Get started.

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

<div>
<div>I think you should, as suggested above, explain what your code should do. Because you are doing some, in my oppinion, strage things here. </div>
<div></div>
<div>For example this line of code:</div>
<div>(++radioIn &gt;= 2) &amp;&amp; (radioIn = 0) ;</div>
<div>doesnt make sense when written as a statement. You will add one to radioIn and set radioIn to zero while doing a logic and (?).</div>
<div></div>
<div>And one other thing:</div>
<div>for (j=0;j&lt;=9;j++) &nbsp;<br>{	 &nbsp;<br>&nbsp; line_a[j]=radioQueue[radioOut];<br>
}</div>
<div>You are accessing 10 elements in line_a, but it only has 2 elements?</div>
<div></div>
<div>And the final question: why do you want to xor 2 message_t struct pointers. If everything is correct then I guess casting the pointers to ints as suggested by Michael would do the job.</div>
<div></div>
<div>/Henrik<br><br>
</div>
<br><div class="gmail_quote">2010/3/25 t'aim . <span dir="ltr">&lt;<a href="mailto:gotohell38 <at> hotmail.com">gotohell38 <at> hotmail.com</a>&gt;</span><br><blockquote class="gmail_quote">

<div>
Hi,<div>I am facing error in Xor program ..It is showing&nbsp;invalid operands to binary ^ error ..here is the program plzz help me guys</div>
<div><br></div>
<div>
<div><br></div>
<div>&nbsp;</div>
<div>implementation</div>
<div>{</div>
<div>&nbsp;&nbsp;message_t &nbsp;radioQueueBufs[2],line_aBufs[2],line_bBufs[2]; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //RADIO_QUEUE_LENGTH=12</div>
<div>&nbsp;&nbsp;message_t &nbsp;* ONE_NOK radioQueue[2];</div>
<div>&nbsp;&nbsp;message_t &nbsp;* ONE_NOK line_a[2];</div>
<div>&nbsp;&nbsp;message_t &nbsp;* ONE_NOK line_b[2];</div>
<div>&nbsp;&nbsp;uint8_t &nbsp; &nbsp;radioIn, radioOut,c,j,z;</div>
<div>&nbsp;&nbsp;bool &nbsp; &nbsp; &nbsp; radioBusy, radioFull;</div>
<div><br></div>
<div>...............................................</div>
<div>.....................................................</div>
<div>&nbsp;</div>
<div>event void Boot.booted() {</div>
<div>&nbsp;&nbsp; &nbsp;uint8_t i;</div>
<div><br></div>
<div>&nbsp;&nbsp; &nbsp;for (i = 0; i &lt; 1; i++)&nbsp;</div>
<div>{</div>
<div>&nbsp;&nbsp;radioQueue[i] = &amp;radioQueueBufs[i];</div>
<div>&nbsp;&nbsp;line_a[i]=&amp;line_aBufs[i];</div>
<div>&nbsp;&nbsp;line_b[i]=&amp;line_bBufs[i];</div>
<div>}</div>
<div>
<span>	</span> radioBusy = FALSE;</div>
<div>
<span>	</span> radioFull = TRUE;</div>
<div><br></div>
<div>&nbsp;.............................</div>
<div>................................</div>
<div>&nbsp;</div>
<div>task void radioSendTask();&nbsp;</div>
<div>event message_t *RadioReceive.receive[am_id_t id](message_t *msg,void *payload,uint8_t len) {</div>
<div>&nbsp;&nbsp; &nbsp;</div>
<div>&nbsp;message_t &nbsp;*ret=msg;</div>
<div>&nbsp;&nbsp;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;if (!radioFull)</div>
<div>
<span>	</span>{</div>
<div>
<span>	</span> &nbsp;ret=radioQueue[radioIn];</div>
<div>
<span>	</span> &nbsp;radioQueue[radioIn] = msg;</div>
<div>
<span>	</span> &nbsp;(++radioIn &gt;= 2) &amp;&amp; (radioIn = 0) ;&nbsp;</div>
<div>
<span>	</span> &nbsp;&nbsp;</div>
<div>&nbsp;&nbsp; &nbsp;}</div>
<div>&nbsp;post radioSendTask();</div>
<div>&nbsp;&nbsp; &nbsp;return ret;</div>
<div>&nbsp;&nbsp; &nbsp;}</div>
<div>&nbsp;&nbsp;</div>
<div><br></div>
<div>task void radioSendTask() {</div>
<div>&nbsp;&nbsp; &nbsp;uint8_t len;</div>
<div>&nbsp;&nbsp; &nbsp;&nbsp;</div>
<div>&nbsp;&nbsp; &nbsp;</div>
<div>&nbsp;&nbsp; &nbsp;message_t* msg;</div>
<div>&nbsp;&nbsp; &nbsp;&nbsp;</div>
<div>&nbsp;&nbsp; &nbsp; if (radioIn == radioOut &amp;&amp; !radioFull)</div>
<div>
<span>	</span>{</div>
<div><br></div>
<div>&nbsp;</div>
<div><br></div>
<div>for (j=0;j&lt;=9;j++) &nbsp;</div>
<div>{<span>	</span> &nbsp;</div>
<div>line_a[j]=radioQueue[radioOut];</div>
<div>
}</div>
<div>//line_a=[9];</div>
<div><br></div>
<div><br></div>
<div>for (j=0;j&lt;=18;j++) &nbsp;</div>
<div>{<span>	</span> &nbsp;</div>
<div>line_b[j]=radioQueue[radioOut];</div>
<div>}</div>
<div>//line_b=[18];</div>
<div><br></div>
<div>c=(line_a[9]) ^ (line_b[18]); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // &nbsp;error line .I am XORing data in buffer</div>
<div><br></div>
<div><br></div>
<div>
<span>	</span> &nbsp;return;</div>
<div>
<span>	</span>}</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; msg = radioQueue[c]; &nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;</div>
<div>&nbsp;</div>
<div><br></div>
<div>&nbsp;if (call RadioSend.send[2](AM_BROADCAST_ADDR, msg, len) == SUCCESS)</div>
<div>&nbsp;&nbsp; call Leds.led2Toggle();</div>
<div>&nbsp;&nbsp; ........</div>
<div>
........</div>
<div>.......</div>
</div> 		 	   		  <br>The New Busy is not the old busy. Search, chat and e-mail from your inbox. <a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_3" target="_blank">Get started.</a>
</div>

<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>
</blockquote>
</div>
<br>
</div>

Gmane