Hello,
I have a cryptoghraphic application consisting on simulating radio
communication between two motes.the first has to Set up the key, encrypt and
send the message encoded.the second mote, receive the message , decrypt it,
then print it.
i tried to write my application by following the lesson 3 about radio
communication ( i added events ad defined what i need in a .h file)$ make
micazmkdir -p build/micaz compiling TestRC6C to a micaz binaryncc -o
build/micaz/main.exe -Os -Wall -Wshadow -Wnesc-all -target=micaz
-fnesc-cfile=build/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22
--param max-inline-insns-single=100000 -DIDENT_APPNAME=\"TestRC6C\"
-DIDENT_USERNAME=\"Administrateur\" -DIDENT_HOSTNAME=\"v8fmk15ebx5la4b\"
-DIDENT_USERHASH=0xf17b64ddL -DIDENT_TIMESTAMP=0x4c20ca78L
-DIDENT_UIDHASH=0x20764a70L -fnesc-dump=wiring
-fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
components)' -fnesc-dumpfile=build/micaz/wiring-check.xml TestRC6C.nc -lmIn
component `TestRC6C':TestRC6C.nc:22: syntax error before
`components'TestRC6C.nc: In function `Timer0.fired':TestRC6C.nc:93: warning:
passing argument 2 of `Packet.getPayload' makes integer from pointer without a
castmake: *** [exe0] Error 1
this is the pieces of code when indicating errors:
implementation{ bool busy = FALSE; message_t pkt;22:
components ActiveMessageC; components new AMSenderC(AM_BLINKTORADIO);
.... }
event void Timer0.fired() { ....
if (!busy) {93: RC6_RadioMsg * btrpkt = (RC6_RadioMsg *)(call
Packet.getPayload(&pkt, NULL)); btrpkt->nodeid = TOS_NODE_ID; if (call
AMSend.send(AM_BROADCAST_ADDR, &pkt, sizeof(RC6_RadioMsg )) == SUCCESS) {
busy = TRUE; } }}
i will be thankfull if anyone could help me to fix it !! ( i can send all the
code but it is too much longer)Regards,Sam,
_________________________________________________________________
Hotmail : une messagerie fiable avec la protection anti-spam performante de
Microsoft
https://signup.live.com/signup.aspx?id=60969
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help