iOS作为BLE外设 - 连接问题

时间:2022-09-06 19:02:56

Have anybody experiences with Bluetooth Smart development to iOS? I need to use iDevice as BLE advertising peripheral according to GAP layer specification. I use LightBlue for switching to peripheral role. Central device is based on Texas Instruments solution based on CC2541 wireless mcu. My issue is following:

有没有人体验到iOS智能蓝牙智能开发?我需要根据GAP层规范使用iDevice作为BLE广告外围设备。我使用LightBlue切换到外围角色。*设备基于德州仪器基于CC2541无线mcu的解决方案。我的问题如下:

  • 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 Bluetooth 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

马丁佩特里克

1 个解决方案

#1


0  

Martin,

马丁,

If you just connect to the iDevice it will disconnect from you. 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. 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.

如果您只是连接到iDevice,它将与您断开连接。您必须发现服务和/或配置服务,配对也可能有效。 iDevice不允许你连接和“什么都不做”,它会在几秒钟后断开连接。由于您正在使用TI无线电并且我正在假设TI堆栈,因此我建议您使用TI E2E论坛来解决任何其他问题。

#1


0  

Martin,

马丁,

If you just connect to the iDevice it will disconnect from you. 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. 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.

如果您只是连接到iDevice,它将与您断开连接。您必须发现服务和/或配置服务,配对也可能有效。 iDevice不允许你连接和“什么都不做”,它会在几秒钟后断开连接。由于您正在使用TI无线电并且我正在假设TI堆栈,因此我建议您使用TI E2E论坛来解决任何其他问题。