直接命令CMD_PROP_RESTART_RX发送不成功
各位TI工程师:
最近在使用直接命令时遇到点问题,希望能给予解决。在应用程序中检测到Rx_Abort时发送CMD_PROP_RESTART_RX命令,查看寄存器CMDSTA Register 中的值为0x83(UnknownDirCommand)。
1、RFC_sendDirectCmd(CMD_PROP_RESTART_RX);是我发送的命令不正确吗?
2、还是发送上面命令的时机不对?
你对这个命令的理解可能有误。
在TRM文档中,对于CMD_PROP_RESTART_RX的描述如下:
23.7.6.2 Restart Packet RX Command, CMD_PROP_RESTART_RX
The CMD_PROP_RESTART_RX command is a direct command that takes no parameters. CMD_PROP_RESTART_RX must only be sent while a CMD_PROP_RX or CMD_PROP_RX_ADV command is running. If a packet is being received, reception is aborted, as described in Section 23.7.5.4 and the packet returns to sync search. If the command is issued without an RX command running, the radio CPU returns the result ContextError in CMDSTA. Otherwise, the radio CPU returns DONE.
这个命令必须在RX命令正在运行的时候发出,而且,应该是因为发出了CMD_PROP_RESTART_RX命令才有RX_ABORTED,而不是在检测到RX_ABORTED后再发CMD_PROP_RESTART_RX命令。