Part Number:CC2640R2F
使用2个模块,一个购买,一个自制,购买的模块在使用APP更新连接参数时基本正常,使用自制的模块更新蓝牙连接参数时出现app status =0x22 状态,然后蓝牙断开;
请问更新蓝牙连接参数会收硬件的影响吗,具体受哪方面的影响;
测试工具 APP NRF CONNECT 和cc2640r2f ;
连接设置
// it's last parameter set to a static random address
#define DEFAULT_ADDRESS_MODE ADDRMODE_PUBLIC
// General discoverable mode: advertise indefinitely
#define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_GENERAL
// Minimum connection interval (units of 1.25ms, 80=100ms) for parameter update request
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 80
// Maximum connection interval (units of 1.25ms, 104=130ms) for parameter update request
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL 104
// Slave latency to use for parameter update request
#define DEFAULT_DESIRED_SLAVE_LATENCY 0
// Supervision timeout value (units of 10ms, 300=3s) for parameter update request
#define DEFAULT_DESIRED_CONN_TIMEOUT 300
// Pass parameter updates to the app for it to decide.
#define DEFAULT_PARAM_UPDATE_REQ_DECISION GAP_UPDATE_REQ_PASS_TO_APP
// How often to perform periodic event (in ms)
#define SP_PERIODIC_EVT_PERIOD 300
// How often to read current current RPA (in ms)
#define SP_READ_RPA_EVT_PERIOD 3000
// Delay (in ms) after connection establishment before sending a parameter update requst
#define SP_SEND_PARAM_UPDATE_DELAY 6000
Kevin Qiu1:
不确定具体是什么引起的, status =0x22是什么错误,最好能抓包看一下更新失败的原因