Wednesday, January 9, 2013

How to clear IEEE154_FCF_ACK_REQ to remove the ACK requirement

../cc2420/csma/CC2420CsmaP.nc :

Change line143:     header->fcf &= ( (1 << IEEE154_FCF_ACK_REQ) |

to     header->fcf &= ( (0 << IEEE154_FCF_ACK_REQ) |

Change line 151:    metadata->ack = FALSE;
to      metadata->ack = TRUE;

Sunday, January 6, 2013

CC2420 Layer Diagram


[plain] view plaincopy
  1. +--------------------------------------------------+  
  2. |               Application Layer                  |  
  3. |                                                  |  
  4. +-----------------------+--------------------------+  
  5.    
  6.  +----------------------+-------------------------+  
  7.  |             Active Message Layer               |  
  8.  +----------------------+-------------------------+  
  9.    
  10.  +----------------------+-------------------------+  
  11.  |              Unique Send Layer                 |  
  12.  +----------------------+-------------------------+  
  13.                     
  14.  +----------------------+-------------------------+  
  15.  |         Optional Packet Link Layer             |  
  16.  +----------------------+-------------------------+  
  17.                           
  18.  +----------------------+-------------------------+  
  19.  |  Optional Low Power Listening Implementations  |  
  20.  +----------------------+-------------------------+  
  21.                           
  22.  +----------------------+-------------------------+  
  23.  |        Unique Receive Filtering Layer          |  
  24.  +----------------------+-------------------------+  
  25.                           
  26.  +----------------------+-------------------------+  
  27.  |      Optional 6LowPAN TinyOS Network Layer     |  
  28.  +----------------------+-------------------------+  
  29.                           
  30.  +----------------------+-------------------------+  
  31.  |     Carrier Sense Multiple Access (CSMA)       |  
  32.  +----------------------+-------------------------+  
  33.                           
  34.                                      
  35. +----------+----------+   +----------+----------+  
  36. |      ReceiveP       |   |      TransmitP      |  
  37. +----------+----------+   +----------+----------+  
  38.                                       
  39.                           
  40. +-----------------------+-------------------------+  
  41. |    SPI bus, GPIO, Interrupts, Timer Capture     |  
  42. +-------------------------------------------------+