This tar ball contains two directories: 1. macsim4_bs 2. base-station macsim4_bs implements the base station MAC layer code that's to be run on the base station mote. It actually does not perform any FSM but simply does CRC checks on packets and send it to base station FSM (running on Linux) through serial ports. base-station implements the MAC protocol FSM, in addition to all the communication necessary to perform base station coordination. How to Make ----------- 1. macsim4_bs Simply type "make -f Makefile.fullpc" at prompt to make the base station mote code. 2. base-station Type "makeBS" at prompt to run a simple script to make base station binary on Linux How to Run ---------- 1) open up at least two xterms a) one in macsim directory: ./bssim/macsim4_bs/experiments/bs_test b) one in base-station directory: ./bssim/base-station 2) start macsim first: a) USAGE: macsim [space cfg] [time cfg] simulationTime b) where space.cfg file contains number of motes to simulate. c) right now macsim is two directories up from bs_test directory so USAGE: ../../macsim [space cfg] [time cfg] simulationTime 3) start same number of base-stations as defined in space.cfg file for mote-base-station (base-station and mote-base-station are 1-to-1): a) USAGE: BaseStation b) myID should be unique for each process (starting at 1).