大家好,关于CC2540下位机与手机APP连接参数设置,请教个问题。
下位机是CC2540,上位机是IOS6/7下的测试APP。下位机供电串联10欧姆,示波器抓波形测试。
发现每当APP连接下位机后,就一直处于30ms的连接事件中,无法更新连接参数设置。但是采用USB DONGLE,30ms的连接事件仅经过很短一段时间,就恢复到如下设置的1s。
下位机设置如下,上位机建立连接调用的函数是connectPeripheral。
// Minimum connection interval (units of 1.25ms, 800=1000ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 800
// Maximum connection interval (units of 1.25ms, 800=1000ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL 800
// Slave latency to use if automatic parameter update request is enabled
#define DEFAULT_DESIRED_SLAVE_LATENCY 0
// Supervision timeout value (units of 10ms, 1000=10s) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_CONN_TIMEOUT 1000
// Whether to enable automatic parameter update request when a connection is formed
#define DEFAULT_ENABLE_UPDATE_REQUEST TRUE
uint8 enable_update_request = DEFAULT_ENABLE_UPDATE_REQUEST;
GAPRole_SetParameter( GAPROLE_PARAM_UPDATE_ENABLE, sizeof( uint8 ), &enable_update_request );
请问这个问题的原因是上位机还是下位机,如何解决?
谢谢,急求急求。