[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/wustl/apps/Agilla/types ExpLogger.h, NONE, 1.1

Chien-Liang Fok chien-liang at users.sourceforge.net
Wed Apr 5 19:08:14 PDT 2006


Update of /cvsroot/tinyos/tinyos-1.x/contrib/wustl/apps/Agilla/types
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11387

Added Files:
	ExpLogger.h 
Log Message:


--- NEW FILE: ExpLogger.h ---
#ifndef AGILLA_EXP_LOGGER_H_INCLUDED
#define AGILLA_EXP_LOGGER_H_INCLUDED

#include "TOSTime.h"
#include "Agilla.h"

enum {
  AM_AGILLAEXPQUERYRESULTSMSG           = 0x90,
  AM_AGILLAEXPLATENCYMSG                = 0x91,
  AM_AGILLAEXPRESULTSMSG                = 0x92,
  AM_AGILLATRACEMSG                     = 0x93,
};

/**
 * This is sent from the base station to a mote
 * to get the experimental results.
 */
typedef struct AgillaExpQueryResultsMsg {
  uint16_t dummy;
} AgillaExpQueryResultsMsg;

/**
 * This is sent from the mote to the base station
 * whenever a latency is measured.
 */
typedef struct AgillaExpLatencyMsg {
  uint32_t latency;
} AgillaExpLatencyMsg;       

/**
 * This is sent from the mote to the base station
 * after the base station queries for the experimental
 * results.
 */
typedef struct AgillaExpResultsMsg {
  uint16_t numQueries;
  uint16_t numUpdates;
} AgillaExpResultsMsg;       


enum {
  AGENT_MOVED   = 0,
  QUERY_ISSUED  = 1,
  QUERY_RESULTS_RECEIVED = 2,
} AgillaTraceConstants;

/**
 * This is sent from the mote to the base station
 * after the base station queries for the experimental
 * results.
 */
typedef struct AgillaTraceMsg {
  tos_time_t timestamp;           // 8 bytes
  uint16_t agentID;
  uint16_t nodeID;
  uint16_t action;
  uint16_t success;    
  AgillaLocation loc;             // 4 bytes
} AgillaTraceMsg;       

#endif



More information about the Tinyos-contrib-commits mailing list