dw1000-嗅探模式

4.5.1 SNIFF mode
In SNIFF mode the DW1000 alternates between the RX (on) and the IDLE (off) states. To enable SNIFF mode two parameters SNIFF_ONT (sniff on time) and SNIFF_OFFT (the off time) need to be configured in Register file: 0x1D – SNIFF Mode. The on duration is programmed in units of PAC, (these are described in section 4.1.1 – Preamble Detection), and must be set to at a minimum value of 2 for functional preamble detection. The off duration is programmed in units of 1 μs. When both on and off durations are programmed with non-zero values SNIFF will be operational from the next RX enable.
As an example if the PAC size is 8 symbols, (this is approximately 8 μs), and we want to have a 50:50 on-off duty cycle, then we could set SNIFF_ONT to its minimum of 2 PAC intervals and the SNIFF_OFFT to a value of 16 μs.

Figure 19 shows the power profile associated with SNIFF mode where the IC wakes up from SLEEP and
progress into the repeated IDLE-RX-IDLE-RX… duty-cycle of the pulsed preamble detection mode. A timeout
ends this and the DW1000 is returned to SLEEP.
Figure 19: Power profile for SNIFF where a frame is not received
Figure 20 shows a power profile for SNIFF mode, similar to Figure 19, except in this case preamble is
detected on the second period of RX sampling, and the DW1000 completes the reception of a frame.
Figure 20: Power profile for SNIFF where a frame is received

设置嗅探模式:

dwt_setrxmode(DWT_RX_SNIFF, 0x02, 0x0f); //嗅探模式2倍PAC,15uus

uus:基于dw1000内部时钟,1uus=1.056us.

开始嗅探:

/* Clear reception timeout to start next ranging process. */
    dwt_setrxtimeout(0);
        /* Activate reception immediately. */
    dwt_rxenable(0);

定时嗅探:将以上两条语句放入定时器中,即可。

接收:正常接收即可

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值