readme

来自「tinyos-2.x.rar」· 代码 · 共 28 行

TXT
28
字号
TestAMOnOff

This application has two different versions, slave and master. The
version compiled is determined by a compile-time flag (SERVICE_MASTER
or SERVICE_SLAVE). 

To compile a master:
  CFLAGS=-DSERVICE_MASTER make <platform> <other options>

To compile a slave:
  CFLAGS=-DSERVICE_SLAVE make <platform> <other options>

A master is always on. A master broadcasts a packet every second. Four of
the five packets are data packets; every fifth packet is a control packet.
It toggles Led0 when it sends a data packet and Led1 when it sends a
control packet.

When a slave hears a data packet, it toggles Led0. When a slave
hears a control packet, it turns off its radio for a short
period of time. Led1 indicates whether the slave's radio is on.

If you install a slave and a master, you should see the slave blink
Led0 a few times, then when the master blinks Led1, the slave stops
for a little while, then resumes blinking Led0.

Philip Levis, 8/7/2005

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?