Hello everyone.
I am trying to send an UDP packet back to the base station but I'm not being
successful. Here's a snippet of my code:
alert variable has been populated before sending. I can see the first
printf, but never the second. Here are the variable declarations:
I'm using msp430-gcc
So what changes do i need to make in cc2420 file or platform to be able to
work with cc2520?
And if i write make micaz, what it really does?
Can i make my own make file with cc2520 (files of sam processor that you
referred) & atm128?
___
Tinyos-help ma
I could be off here but it looks like you define alert as a pointer, and
then send it's address. Where is an actual buffer for alert allocated?
On Mon, Oct 7, 2013 at 4:05 AM, João Amaral wrote:
> Hello everyone.
>
> I am trying to send an UDP packet back to the base station but I'm not
> bein
I created a task. Here's the code: http://tny.cz/69f80f59
I populated the alert structure with dummy test values.
--
View this message in context:
http://tinyos-help.10906.n7.nabble.com/Problem-with-UDP-sendto-tp23589p23592.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
_
Stephen isn't off.
Rather I would think you want something more like...
err = call UDP.sendto(&ER_addr, alert, sizeof(Alert_t));
rather than what you had originally:
err = call UDP.sendto(&ER_addr, &alert, sizeof(Alert_t));
alert is...(Alert_t *) and you malloc a block of memory and rem
On Mon, Oct 7, 2013 at 8:50 AM, student COEP wrote:
> So what changes do i need to make in cc2420 file or platform to be able
> to work with cc2520?
>
That is way way beyond the scope of this list. Do a google search for
"tinyos create new platform". Also see TEP131 which talks about how to
make install micaz MIB520,/dev/ttyUSB0 desrial=/dev/ttyUSB0,
-dpart=ATMega128 --wr_fuse_e=ff -erase -upload
if=build/micaz/main.srec.out
Not throwing any problem but loading program to mote.
-
I tried modifying UISP parameters it worked again now there some problem
rather than