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.

[参考译文] LAUNCHXL-CC2650:遥控钥匙 ProxReporter TX 功率级别在初始化时设置为两次0?

Guru**** 2577385 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/591579/launchxl-cc2650-key-fob-proxreporter-tx-power-level-set-twice-to-0-at-initialization

器件型号:LAUNCHXL-CC2650

您好!

  大家好、在密钥卡示例程序中、ProxReporter TX 功率级别被两次设置为0。 将 TX 功率级别设置为0两次的目的是什么? 这是错误吗?  KeyfobProxTxPwrLevel 设置为0。

//初始化 Proximity Reporter
中的 Tx 功率级别特征{
INT8_t 初始 TxPowerLevel = 0;

ProxReporter SetParameter (PP_TX_POWER_LEVEL、sizeof (INT8_t)、
初始 TxPowerLevel);
}

keyfobAlertState = alert_State_off;

//确保蜂鸣器已关闭。
蜂鸣器_stop ();

//确保 LED 已关闭。
//HalLedSet ((HAL_LED_1 | HAL_LED_2)、HAL_LED_MODE_OFF);

//启动接近配置文件
void ProxReporter _RegisterAppCBs (&KeyFobDemo_nuthentityCBs);

//启动加速计配置文件
void Accel_RegisterAppCBs (&FobDemo_近 端属性


);//启动 ProxProxProxRept_param_sets (默认值);//将 ProxProxProxProxProxReporter 属性设置为默认值
&keyfobProxLLAlertLevel);
ProxReporter SetParameter (PP_IM_ALERT_LEVEL、sizeof (uint8_t)、
&keyfobProxIMAlertLevel);
ProxReporter SetParameter (PP_TX_POWER_LEVEL、sizeof (INT8_t)、
&keyfobProxTxPwrLevel); 

-克尔

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我们似乎意外地初始化了两次、但这不应影响项目。

    感谢您指出这一点。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    尊敬的 Christin:

    谢谢。

    我还想通知您、在 proxreporter.h 1 #define 拼写错误。

    //接近配置文件服务位字段
    #define PP_LINK_LOW_SERVICE 0x00000001 //链路丢失服务
    #define PP_IM_ALETR_SERVICE 0x00000002 //立即警报服务
    #define PP_TX_PWR_LEVEL_SERVICE 0x00000004 // Tx 功率级别服务

    -克尔