Yeah, you can write the control registers of the radio chip to change transmit and receive modes but it seems that tinyos does not support any other mode than default one. As i said i solved my problem using another firmware that belongs to EMBER and it is independent of tinyos.
I think that tinyos developers will be more appropriate in order to answer if this OS supports or how can be supported test modes of the cc2420 radio chip. Regards, ------- Rodolfo -----Original Message----- From: Min Guo [mailto:[EMAIL PROTECTED] Sent: Wed 11/06/2008 3:16 PM To: rodolfo de paz Cc: [email protected] Subject: Re: [Tinyos-help] PER/BER measurements In CC2420ControP.nc, there is part of code to set MDMCTRL0. However I tried to copy this code and set Mdmctrl1, but that does not work void writeMdmctrl0() { atomic { call MDMCTRL0.write( ( 1 << CC2420_MDMCTRL0_RESERVED_FRAME_MODE ) | ( addressRecognition << CC2420_MDMCTRL0_ADR_DECODE ) | ( 2 << CC2420_MDMCTRL0_CCA_HYST ) | ( 3 << CC2420_MDMCTRL0_CCA_MOD ) | ( 1 << CC2420_MDMCTRL0_AUTOCRC ) | ( (autoAckEnabled && hwAutoAckDefault) << CC2420_MDMCTRL0_AUTOACK ) | ( 0 << CC2420_MDMCTRL0_AUTOACK ) | ( 2 << CC2420_MDMCTRL0_PREAMBLE_LENGTH ) ); } // Jon Green: // MDMCTRL1.CORR_THR is defaulted to 20 instead of 0 like the datasheet says // If we add in changes to MDMCTRL1, be sure to include this fix. On Wed, Jun 11, 2008 at 2:44 PM, rodolfo de paz <[EMAIL PROTECTED]> wrote: > Hi Min, > > That's the only difference i found as well between mode 2 and normal > buffered mode which is referred as 0 in the register. > > My experience doing PER/BER measurements is that i didn't find how to do > change receive mode in Tinyos. So i finally did it with the Ember Rangetest > firmware and two EM2420 radio chips. This firmware will give you directly > the PER. > > Hope this helps, > > ------- > Rodolfo > > -----Original Message----- > From: Min Guo [mailto:[EMAIL PROTECTED] > Sent: Wed 11/06/2008 11:41 AM > To: rodolfo de paz > Cc: [email protected] > Subject: Re: [Tinyos-help] PER/BER measurements > > Actually, I also want to ask a related question, is the the following > the ONLY difference between mode 2 and mode 1: > > with mode 2: there is no validity checking for the received > information, the receiver simply put any received message into the > RXFIFO buffer in a cyclic way. And The buffer overflow is ignored. > > > On Wed, May 7, 2008 at 3:57 PM, rodolfo de paz <[EMAIL PROTECTED]> wrote: >> Hi all, >> >> I would need to do BER/PER measurements using 2 micaz motes. In cc2420 >> says >> that this could be done using test mode 2 but it doesn't say specifically >> how to do that, anyone knows more about this? >> >> Thanks for any help, >> >> Rodolfo. >> >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> > > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
