From: Andrea Pacini <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: sun yi <[EMAIL PROTECTED]>
CC: [email protected]
Subject: Re: [Tinyos-help] help
Date: Tue, 13 Dec 2005 10:38:38 +0100
Probably you have to swap the second and the third argument of
AMSend.send(AM_BROADCAST_ADDR, &packet, sizeof(RadioSenseMsg)
like this:
*AMSend.send(AM_BROADCAST_ADDR, sizeof(RadioSenseMsg),&packet);*
Andrea
sun yi wrote:
> hi all,
> I have a question to ask.
> I wrote a program about sampling data from sensor and send to another
> mote by RF.
> But when I “make tmote”,appear the mistakes as follows:
>
> $ make tmote
> mkdir -p build/telosb
> compiling RadiosensorTotmoteAppC to a telosb binary
> ncc -o build/telosb/main.exe -Os -O -I%T/lib/oski -mdisable-hwmul
> -I/opt/tinyos-
> 2.x/tos/lib/CC2420Radio -I/opt/tinyos-2.x/tos/../beta/STM25P/STM25P
> -Wall -Wshad
> ow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb
> -fnesc-cfile=build/telosb/a
> pp.c -board= RadiosensorTotmoteAppC.nc -lm
> In file included from RadiosensorTotmoteAppC.nc:13:
> In component `RadiosensorTotmoteC':
> RadiosensorTotmoteC.nc: In function `AcquireData.dataReady':
> RadiosensorTotmoteC.nc:61: subscripted value is neither array nor
pointer
> RadiosensorTotmoteC.nc: In function `AcquireData.error':
> RadiosensorTotmoteC.nc:83: subscripted value is neither array nor
pointer
> make: *** [exe0] Error 1
>
> where,the RadiosensorTotmoteC line 61 and line 83 are both:
>
> if (call AMSend.send(AM_BROADCAST_ADDR, &packet,
> sizeof(RadioSenseMsg)) == SUCCESS) {
> locked = TRUE;}
>
> I want to know Why?
>
I try it according to your suggestion,but not successful.
thank you very much in any case.
> _________________________________________________________________
> 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help