[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/rf2xx/rf212 README, NONE, 1.1 RF212ActiveMessageC.nc, 1.6, 1.7 RF212DriverLayerP.nc, 1.4, 1.5 RF212Ieee154MessageC.nc, 1.1, 1.2

Miklos Maroti mmaroti at users.sourceforge.net
Wed Apr 8 15:16:22 PDT 2009


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/rf2xx/rf212
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv12072/rf212

Modified Files:
	RF212ActiveMessageC.nc RF212DriverLayerP.nc 
	RF212Ieee154MessageC.nc 
Added Files:
	README 
Log Message:
add the SendNotifier interface

--- NEW FILE: README ---

The RF212 radio driver has the following configuration options. Some of 
these are set in the platforms/xxx/chips/rf212/RadioConfig.h header file, 
see the meshbean900 platform for example, others can be set in your Makefile.

RF212_TRX_CTRL_0_VALUE:

This is the value of the TRX_CTRL_0 register which configures the output 
pin currents and the CLKM clock:

RF212_CCA_MODE_VALUE:

This is the default value of the CCA_MODE field in the PHY_CC_CCA register
which is used to configure the default mode of the clear channel assesment

RF212_CCA_THRES_VALUE:

This is the value of the CCA_THRES register that controls the energy levels 
used for clear channel assesment.

RF212_DEF_RFPOWER:

This is the default value of the TX_PWR field of the PHY_TX_PWR register. 
This can be cahanged via the PacketTransmitPower interface provided by the 
RF212ActiveMessageC.

RF212_DEF_CHANNEL:

This is the default value of the CHANNEL field of the PHY_CC_CCA register.
This can be cahanged via the RadioChannel interface provided by the 
RF212ActiveMessageC.

RF212_RSSI_ENERGY:

If you define this, then the content of the RF212_PHY_ED_LEVEL is queried 
instead of the RSSI value for eahc incoming message. This value can be 
obtained with the PacketRSSI interface.


Index: RF212ActiveMessageC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/rf2xx/rf212/RF212ActiveMessageC.nc,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** RF212ActiveMessageC.nc	7 Apr 2009 02:27:44 -0000	1.6
--- RF212ActiveMessageC.nc	8 Apr 2009 22:16:19 -0000	1.7
***************
*** 33,36 ****
--- 33,37 ----
  		interface Receive[am_id_t id];
  		interface Receive as Snoop[am_id_t id];
+ 		interface SendNotifier[am_id_t id];
  
  		interface Packet;
***************
*** 81,84 ****
--- 82,86 ----
  	Snoop = ActiveMessageLayerC.Snoop;
  	AMPacket = ActiveMessageLayerC;
+ 	SendNotifier = ActiveMessageLayerC;
  
  // -------- Lowpan Network

Index: RF212DriverLayerP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** RF212DriverLayerP.nc	7 Apr 2009 02:27:44 -0000	1.4
--- RF212DriverLayerP.nc	8 Apr 2009 22:16:19 -0000	1.5
***************
*** 960,963 ****
--- 960,967 ----
  	async command uint8_t PacketLinkQuality.get(message_t* msg)
  	{
+ 		// we have some bug in BLIP, so fix it here
+ 		if( getMeta(msg)->lqi > 120 )
+ 			return 120;
+ 
  		return getMeta(msg)->lqi;
  	}

Index: RF212Ieee154MessageC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/rf2xx/rf212/RF212Ieee154MessageC.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RF212Ieee154MessageC.nc	7 Apr 2009 02:27:44 -0000	1.1
--- RF212Ieee154MessageC.nc	8 Apr 2009 22:16:19 -0000	1.2
***************
*** 37,40 ****
--- 37,41 ----
  		interface LowPowerListening;
  		interface PacketLink;
+ 		interface SendNotifier;
  
  		interface RadioChannel;
***************
*** 72,75 ****
--- 73,77 ----
  	Ieee154Receive = LowPowerListeningLayerC;
  	Ieee154Packet = IEEE154MessageLayerC;
+ 	SendNotifier = IEEE154MessageLayerC;
  
  // -------- UniqueLayer Send part (wired twice)



More information about the Tinyos-2-commits mailing list