TinyOS文件结构清单解析
tinyos-release-tinyos-2_1_2 文件清单及功能解析:
关键注意力还是应当关注于 应用例程apps 和 库函数tos中types头文件和chips的cc2420及msp430以及interfaces常用接口文件
apps:应用程序文件夹清单
Antitheft: 通过light sensor光强变化和accelerator运动检测小偷,以亮警示灯或响蜂鸣器形式提醒
tos
interface
Send: send a packet (address-free type message)
Receive: receive a packet (address-free & active message)AMSend: send a packet to an active message addres
ReadStream: periodic sampling of a sensor into one or more buffers
LowPowerListening:
chips
cc2420
msp430
lib
Boot.nc
SplitControl.nc
StdControl.nc
platforms
lib
net(网络路由方案): ctp, 4bitle, drip, Deluge, dip, blip
printf
timer
serial: SerialActiveMessageC.nc, SerialAMSenderC.nc, SerialAMReceiverC.nc
sensorboards
systemsAMReceiverC.nc
AMSenderC.nc
MainC.nc
LedsC.nc
TimerMilliC.nctypes
TinyError.h
messssage.hsupport:编译支持文件
make: Makerules
sdk: c -- blip ; cpp -- sf; java--tinyos.jar; python -- tos.py, tinyos
tools:
CSMA radio is externally managed
dedicated resource
– single client, no latency
– typically external power management