babala 发表于 2020-11-24 18:39:56

关于ss测距例程的疑问

来自ss例程——
其中ex_06a_ss_twr_init.c里:

RESP_RX_TIMEOUT_UUS 为 210

并且 注释中又说:

* 5. This timeout is for complete reception of a frame, i.e. timeout duration must take into account the length of the expected frame. Here the value
*    is arbitrary but chosen large enough to make sure that there is enough time to receive the complete response frame sent by the responder at the
*    6.8M data rate used (around 200 us).


但是ex_06b_ss_twr_resp.c里:

POLL_RX_TO_RESP_TX_DLY_UUS 为 330

明显大于210,

但测试又是ok的,

这是怎么回事?





蓝点无限 发表于 2020-11-24 19:51:37

timeout 210 是最小值。

也就是启动接收,210个XXX单位后,如果没有接收到,就timeout了,接收器关闭。

好好理解下

babala 发表于 2020-11-24 20:45:23

那POLL_RX_TO_RESP_TX_DLY_UUS不是延迟330才回复吗?:handshake

蓝点无限 发表于 2020-11-25 08:34:09

babala 发表于 2020-11-24 20:45
那POLL_RX_TO_RESP_TX_DLY_UUS不是延迟330才回复吗?

这个你看代码吧,它具体配置给那个函数里面了
页: [1]
查看完整版本: 关于ss测距例程的疑问