Hi to all,

I'm using tinyos1.x through cygwin(crossbow moteworks) on XP, I have taken a
program from lesson3 tutorial and I have modified that. Now I want receive
packets from pc across serial port to my base station (mib520), and I have a
problem to calculate CRC of the packet, so I want disable CRC check of my
base.

The components I use are:
components Main, MyAppM, TimerC, LedsC, Photo, GenericComm as Comm;

I went to GenericComm.nc and I saw that component use these other
components:
components AMStandard,
    RadioCRCPacket as RadioPacket,
    UARTFramedPacket as UARTPacket,
    NoLeds as Leds,
    TimerC, HPLPowerManagementM;
Then, I opened AMstandard.nc and I modified line 199, and now is this:
if (//packet->crc == 1 && Uncomment this line to check crcs
packet->group == TOS_AM_GROUP) //&& (packet->addr == TOS_BCAST_ADDR
||packet->addr == addr)

With this modification I think that I can receive packets with a wrong CRC
from my serial port but I can't. On the packet I put the broadcast address
in the address bytes, 0xFFFF and I modified the packet type to 65 value.

What do you think I'm doing wrong?

Thanks to all.

Regards,

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

Reply via email to