s3lsensor / snowfort

SnowFort: An open source wireless sensor network for infrastructure and environmental monitoring
http://www.snowfort.org
Other
6 stars 8 forks source link

MAC Frame header #10

Closed yzliao closed 11 years ago

yzliao commented 11 years ago

Current frame/packet header is hand coded. Need to be replaced with IEEE 802.15 specific bits.

yzliao commented 11 years ago

Add a new module called framer-tdma.c (core/net/mac). This module creates IEEE802.15.4 specified frame.

list of modification:

  1. add framer-tdma module
  2. remove packet data structure in tdmardc.c
  3. add new function app_conn_send() in app_conn module. This is used to transfer data from application layer to RDC layer. It is a replacement of NETSTACK_RDC.send().
  4. TX sensor id is embedded in the sender MAC address.
ronniebajwa commented 11 years ago

Code looks good, follows the 802.15.4 nicely...let's merge and test