This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MT_SYS_SET_TX_POWER 的返回值是多少?

Guru**** 2465890 points
Other Parts Discussed in Thread: Z-STACK, SIMPLELINK-CC13XX-CC26XX-SDK

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/1175049/what-is-the-return-value-of-mt_sys_set_tx_power

主题中讨论的其他器件:SIMPLELINK-CC13XX-CC26XX-SDKZ-STACK

您好!

我在 API SYS_SET_TX_POWER 上运行。

查看文档、SRSP 的数据为1字节:TX 功率;但查看 ZStack 代码、返回消息 Build in return 是操作的状态(MAC_SUCCESS 或 MAC_INVALID_PARAMETER)、而不是文档所述的当前 TX 功率。  

哪一个是正确的?

static void MT_SysSetTxPower(uint8_t *pBuf)
{
  /* A local variable to hold the signed dBm value of TxPower that is being requested. */
  int8_t txPower;
  uint8_t status;

  /* Parse the requested dBm from the RPC message. */
  txPower = pBuf[MT_RPC_POS_DAT0];

  status = MAP_MAC_MlmeSetReq(MAC_PHY_TRANSMIT_POWER_SIGNED, &txPower);

  // Send back response that includes the status of the set command.
  // either: MAC_SUCCESS or MAC_INVALID_PARAMETER
  MT_BuildAndSendZToolResponse( MT_SRSP_SYS, MT_SYS_SET_TX_POWER, 1,
                                &status);
}

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    信任源代码。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    为什么 TX 功率不是那么令人疯狂、但这次只是一个文档错误?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Ayman:

      已更正 SIMPLELINK-CC13XX-CC26XX-SDK 监视器和测试 API 文档、以解决对 SYS_SET_TX_POWER SRSP 的此更改。  CC253X Z-Stack 3.0.2和更早版本的文档 自2018年起至少尚未维护。

    此致、
    Ryan