微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > IOS Light Blue 连接马上断开,提示The connection has timed out unexpectedly.

IOS Light Blue 连接马上断开,提示The connection has timed out unexpectedly.

时间:10-02 整理:3721RD 点击:

我用CC2541做的一个蓝牙外设,用了几天后就连接不上去了,是一直连接不上去,广播都是正常广播的,但是用安卓的BLE去连接是可以的,用IOS的Light Blue去连接都连接不上,换了其他的IOS设备去连接也是连接不上的,把蓝牙外设也掉完电后再上电广播,还是连接不上去;有时自已这到底是什么问题呢?请高手指点!

蓝牙下位机的连接参数如下:

// What is the advertising interval when device is discoverable (units of 625us, 160=100ms)
#define DEFAULT_ADVERTISING_INTERVAL 160

// Limited discoverable mode advertises for 30.72s, and then stops
// General discoverable mode advertises indefinitely
#define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_GENERAL

// Minimum connection interval (units of 1.25ms, 80=100ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 100

// 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 600

// Whether to enable automatic parameter update request when a connection is formed
#define DEFAULT_ENABLE_UPDATE_REQUEST TRUE

// Connection Pause Peripheral time value (in seconds)
#define DEFAULT_CONN_PAUSE_PERIPHERAL 6

IOS的Light Blue的Log截图:

用LightBlue连接外设时抓的数据包,IOS连接不上去;请教TI的高手,这是什么问题?

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top