简体   繁体   English

iOS 作为 BLE 外围设备 - 连接问题

[英]iOS as BLE peripheral - connection issue

Have anybody experiences with Bluetooth Smart development to iOS?有没有人在 iOS 上进行蓝牙智能开发的经验? I need to use iDevice as BLE advertising peripheral according to GAP layer specification.我需要根据 GAP 层规范使用 iDevice 作为 BLE 广告外围设备。 I use LightBlue for switching to peripheral role.我使用LightBlue切换到外围角色。 Central device is based on Texas Instruments solution based on CC2541 wireless mcu.中央设备是基于德州仪器基于 CC2541 无线单片机的解决方案。 My issue is following:我的问题如下:

  • Central discover advertising iDevice中央发现广告 iDevice
  • connect it连接它
  • after circa 10 seconds iDevice send event about disconnect .大约 10 秒后,iDevice 发送有关断开连接的事件。

Session is established with connection parameters according to Apple Bluetooth LE guidelines :根据Apple 蓝牙 LE 指南使用连接参数建立会话:

  • maximum connection interval: 100ms最大连接间隔:100ms
  • minimum connection interval: 100ms最小连接间隔:100ms
  • connection timeout: 3100ms连接超时:3100ms
  • slave latency: 0从机延迟:0

Could anyone with experiences help?有经验的人可以帮忙吗? It is very important for me.这对我来说非常重要。

Thank you for any help,感谢您的任何帮助,

Martin Petrik马丁·佩特里克

Martin,马丁,

If you just connect to the iDevice it will disconnect from you.如果您只是连接到 iDevice,它将与您断开连接。 You have to discover services and/or configure a service, pairing might work too.您必须发现服务和/或配置服务,配对也可能有效。 The iDevice won't allow you to connect and "do nothing", it will disconnect after several seconds. iDevice 不允许您连接和“什么都不做”,它会在几秒钟后断开连接。 Since you are using a TI radio and I'm assuming a TI stack, I recommend using the TI E2E forums for any further questions.由于您使用的是 TI 无线电并且我假设使用的是 TI 堆栈,因此我建议您使用 TI E2E 论坛来解决任何其他问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM