【问题标题】:Discovering RN4020 BLE Services from a Mac从 Mac 发现 RN4020 BLE 服务
【发布时间】:2014-10-30 17:17:42
【问题描述】:

我想我误解了私人服务的概念。 我有一个使用 Apple CoreBluetooth 的程序,似乎一切都很好发现服务:

Found Characteristic 'Appearence' for service 'Generic Access Profile' 
Found Characteristic 'Peripheral Preferred Connection Parameters' for service 'Generic Access Profile' 
Found Characteristic 'Serial Number String' for service 'Device Information' 
Found Characteristic 'Hardware Revision String' for service 'Device Information' 
Found Characteristic 'Firmware Revision String' for service 'Device Information' 
Found Characteristic 'Software Revision String' for service 'Device Information' 
Found Characteristic 'Manufacturer Name String' for service 'Device Information' 
Found Characteristic 'Model Number String' for service 'Device Information' 
Found Characteristic 'Battery Level' for service 'Battery'

然后我在 RN4020 中设置私有服务和特性,所以当我在终端中输入 LS 时,我可以看到它们:

123456789012345678901234567890FF
  12345678901234567890123456789011,000B,02,01
  12345678901234567890123456789011,000C,10,02
  12345678901234567890123456789022,000E,02,02

然后我开始做广告,重新启动......但我无法从我的应用程序中看到此服务(?)。就因为他们是私人的?那么我怎样才能让它公开呢? 当我输入 LS 时,我不应该在终端中看到所有这些服务(电池、设备信息和通用访问配置文件)吗????

谢谢!

【问题讨论】:

  • 你解决了吗?令人难以置信的是 Microchip 是如何让这种情况发生的,我们苦苦挣扎的日子无法解决。

标签: objective-c macos bluetooth-lowenergy core-bluetooth


【解决方案1】:

我不确定 MAC,但我在 Android 中遇到了类似的问题,远程设备必须从 androids 内存中清除,然后才能显示新的服务/特性

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-12
    • 2023-03-17
    • 2015-08-19
    • 1970-01-01
    相关资源
    最近更新 更多