[Tinyos-devel] src address over serial link
Omprakash Gnawali
gnawali at usc.edu
Wed Sep 19 13:48:43 PDT 2007
SerialActiveMessageP does assign any value to src field. Right now
this field is not being used for packets bridged from the radio to
serial. It makes sense for BaseStationP to set the src field.
It would look something like this (in BaseStationP):
task void uartSendTask() {
...
addr = call RadioAMPacket.destination(msg);
** src = call RadioAMPacket.source(msg);
** call UartAMPacket.setSource(msg, src);
if (call UartSend.send[id](addr, uartQueue[uartOut], len) == SUCCESS)
...
}
The proposed lines are marked as **.
We probably don't want to do the same for packets bridged from serial
to the radio so let the radio stack set the src field.
Thoughts?
- om_p
More information about the Tinyos-devel
mailing list