Hi Gaurav,
After I made that change and run the Listen tool, it is giving the following
error-
---------------------------------------------------
Received message:08 00 00 00 00 00 7E 00 65 7D 00 00 00 00 00 00 00 00
08 00 00 00 00
TOS_Msg length is invalid: header_length=5,real_length=18 ... modifying msg to
fit
-------------------------------------------------------------------------------------
I have changed the message length in the AM.h file in the CC2420 dir to:
#define TOSH_DATA_LENGTH 76
#define TOSH_MAX_DATA_LENGTH (156 - 10 - 2)
Do I have to change the message length somewhere else also?
Thank you
Manu
[EMAIL PROTECTED] wrote: Hi Manu,
I am not sure but you can try this: take postdata() out from atomic statement.
Gaurav
---- Original message ----
>Date: Thu, 8 Mar 2007 12:04:22 -0800 (PST)
>From: manu suryavansh
>Subject: [Tinyos-help] Code not working on tmote
>To: [email protected]
>
> Hi,
> I am using tmote and boomerang, I want to send more
> readings in one message using multihop, I am using
> Delta(similar to surge) application from moteiv,
> I store the reading in an array and then send the
> whole array the change I made is:
> ---------------------------------------------------
> async event result_t ADC.dataReady(uint16_t data) {
>
> result_t rv = FAIL;
> atomic
> {
> DeltaMsg* dmsg ;
> dmsg->count++;
> if( dmsg->index < BUFFER_SIZE )
> {
> dmsg->reading[ dmsg->index++ ] = data;
> if( dmsg->index >= BUFFER_SIZE )
> post sendData();
> rv = SUCCESS;
> }
> }
> return rv;
>
> //m_adc = data;
> //post sendData();
> //return SUCCESS;
> }
> -------------------------------------------
> where reading is an array of the structure dmsg,
> the whole program is also attached, the program is
> compiling but when I install it on my motes it is
> not receiving any reading in the trawler application
> if somebody can please tell me what I have done
> wrong it will be very helpful
> Thank you
> Manu
>
>
>
> ------------------------------------------------
>
> Be a PS3 game guru.
> Get your game face on with the latest PS3 news and
> previews at Yahoo! Games.
>________________
>Delta.h (2k bytes)
>________________
>Delta.nc (5k bytes)
>________________
>DeltaM.nc (6k bytes)
>________________
>_______________________________________________
>Tinyos-help mailing list
>[email protected]
>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta._______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help