Hello,

in my Project I have to resend some messages over the radio (the nodes
are MicaZs). This should be done without any changes on the packets,
but the dsn-value and source-values are set automatically. Therefore I
tried to change the am-source and the dsn-value of the packet to the
right one and not of my node. I tried this with this code:

call AMRadioPacket.setSource(msg, realSource);
(call CC2420PacketBody.getHeader(msg))->dsn = realtDsn;

and also with:
(call CC2420PacketBody.getHeader(msg))->src = realSource;

The net.tinyos.tools.Listen showed me that the packets have still the
wrong AMSource. And the dsn-value changes as well. How can I set those
values myself or is it impossible?

Thanks,
Andreas H.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to