前言
空中唤醒是个很酷的功能,在研究contiki的时候就见过类似的东西,ContikiMAC radio duty cycling mechanism。这种功能给那些不能错过任何无线信息的节点一些休眠的机会,得以节省一些电量。
原理简单说,就是在无线传输发生时,在有效数据前头加一段前导码,无线节点唤醒捕捉到这个前导码就进入正常的接收流程。平常无线节点唤醒,监听下网络,发现无前导码就立即休眠。为了让数据传输时,无线节点不会错过有效数据,机制上要保证前导码的持续时间要略长于节点的休眠时间。
TI CC1310在最新的RTOS_2.16上新增了这个例程,在readme上讲的很清楚。
例程readme中的解释
Packet preamble
---------------
Below is a typical radio physical layer packet format.
| Preamble | Sync word | Length byte | Payload | CRC |
------------------------------------------------------------------------
| 4 byte | 4 byte | 1 byte | X bytes | 2 bytes |
The preamble is usually set to a repeating 10101010 pattern, as the beginning
of the packet is used for several purposes in a modern radio. This usually
involves settling the Automatic Gain Control, estimating frequency error e