Hi,

I'm trying to receive data from pc using TOSBase, and I changed
AMStandard.nc as you suggested. However, it seems that I should
recompile AMStandard.nc.

My question is how am I gonna make to recompile a changed system
source file. Thanks for any answer.

Btw, I'm using tinyos-1.x, and tmote sky sensors.

Baris




>Hi,
>
>Could TOSBase (and hence tos/platform/mica2/RadioCRCPacket.nc) be
>sending out packets with wrong CRC?  This sounds unlikely since it
>would then break a lot of things, but here is what I observed.
>
>The platform was mica2, and the tinyos version was 1.1.7.
>
>I was trying to debug a problem that a mote (call it B) with TOSBase
>could not send a message to another mote (call it R) with
>OscilloscopeRF.  The setup was the same as the latter half of Tutorial
>6.  In the same setup, R could send data packet to B (i.e. radio
>communication in the reverse direction) without problem.
>
>
>To debug the problem, I added a third mote (call it S) to snoop on the
>packet between B and R.  The mote S was installed TOSBase (and
>attached, thru' an MIB510, to a PC running the java program
>net.tinyos.tools.listen).
>
>I found that S could not see packets from B to R, UNLESS I disabled
>CRC check in its TOSBase.  In other words, S could see these packets
>only if I changed a line in in apps/TOSBase/TOSBaseM.nc:

>  event TOS_MsgPtr RadioReceive.receive(TOS_MsgPtr Msg) {
>    TOS_MsgPtr pBuf;
>    ...
>    //LEECY disable crc checking for now
>    if (1) {
>    // if (Msg->crc) {
>      ...
>      post RadioRcvdTask();

>Furthermore, I also found that if I disabled the CRC checking in
>AMStandard.nc (implementation module for GenericComm, which is used by
>OscilloscopeRF), then R WOULD BE ABLE to receive the packet from B.
>The code change was the following, in tos/system/AMStandard.nc

>  TOS_MsgPtr received(TOS_MsgPtr packet)  __attribute__ ((C,
>  spontaneous)) {
>    //LEECY disable crc checking for now
>    //    if (packet->crc == 1 &&
>    if (
>    packet->group == TOS_AM_GROUP &&
>    (packet->addr == TOS_BCAST_ADDR ||
>     packet->addr == addr))
>      {
>        ...
>        tmp = signal ReceiveMsg.receive[type](packet);
>        ...
>      }
>    return packet;
>  }
>
>Any comments or insight?  Thanks!
>
>Clement
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to