问题标签 [ios-bluetooth]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
avcapturesession - AVCaptureSession 和蓝牙麦克风
我正在开发一个视频录制应用程序,并且需要能够使用蓝牙麦克风作为音频输入(如果已连接)。
我有以下代码来配置 AVCaptureSession 的音频输入:
问题是,蓝牙麦克风永远不会显示为可用的捕获设备(尽管它已正确配对)。打印出 [AVCaptureDevice devices] 结果:
所以,无论我做什么,音频总是来自 iPad 的内置麦克风。
android - iOS 上的蓝牙连接
我们正在尝试观察蓝牙设备何时与 iPhone 连接和断开连接。当某些感兴趣的设备连接时,我们本质上想要做出反应(不一定在前台)。在 Android 中,您可以接收ACL_CONNECTED
和ACL_DISCONNECTED
操作。
在 iOS 上与此行为等效的是什么?
在发现它是用于蓝牙 LE 之前,我首先查看了CoreBluetooth
它,然后查看了ExternalAccessory
,但它仅在选择器中显示 MFI 设备,并且似乎需要用户通过选择器。我们发现唯一可行的方法是通过 AppleBluetoothManager
自己,根据第 2.5 节中的AppStore 指南,这是禁止的,大概是为了让他们可以完全控制 Apple 生态系统。
等效的Android代码:
MyReceiver.java
AndroidManifext.xml
ios - iOS:蓝牙共享
我看到 iOS 7/8 的隐私设置下有一个“蓝牙共享”部分:
我对此有几个问题:
- 使用什么框架来访问它?
- 这只是 iOS 到 iOS 设备,还是 iOS 到 Android,或 iOS 到其他外围设备?
- 除了那个框架之外,是否还需要其他任何东西,例如 GameCenter 或 HomeKit;实施问题 1 中的框架?
- 使用它需要私有 API 吗?
感谢您的时间!
ios - 您可以在没有应用程序的情况下将蓝牙低功耗设备连接到 iPhone
我知道您可以创建可以在操作系统级别与 iPhone 通信的蓝牙经典设备(即它们出现在设置选项卡中)。您可以使用仅限蓝牙智能(低能耗)的设备来做到这一点吗?或者 iOS 是否需要 App 来控制 Central 模式并连接到特定设备?据我了解,iOS 需要一个应用程序来启动和启动 CBCentralManager 并发现并连接到外围设备。好奇是否有办法在不使用 BT Classic 的情况下解决这个问题。
ios - 如何使用核心蓝牙框架连接耳机/免提?
我正在开发一个 iOS 核心蓝牙应用程序,但我不知道如何与设备通信。我想在中央发送连接请求时启动配对机制。
我也看到这篇文章https://invasivecode.com/weblog/core-bluetooth-for-ios-6-core-bluetooth-was/但我不明白如何扫描和配对机制。
有人能帮我吗?谢谢你
ios - CBCentralManager not calling didDiscoverPeripheral method when iPhone is locked
I am working on an app that scans for a specific peripheral, ones peripheral is found it should send the small amount of data.
App works in the foreground and also in background. I have also add this code in the plist
UIBackgroundModes bluetooth-central When iPhone is locked and peripheral starts advertising, it doesn't call
I have done some research but couldn't find an answer.
Any help is appreciated.
Thanks
bluetooth - 在安卓设备上读取广告数据,当 iOS 设备正在做广告时
我有个问题。我的 android 代码与 iOS 蓝牙广告不兼容。我在苹果文档上读到,广告是在 iOS 设备之间进行的。
但是我认为如果iOS可以读取它,那么android为什么不可以呢?android 设备是否接收到字节数组中的 uuid?我该如何解析这些?可能吗?
当 iOS 使用此代码时,如何在 Android 设备上读取广告数据:
我尝试在 Android 上扫描 UUID,但它只读取第一个 uuid。我如何阅读其他人?
我使用此代码在 Android 上解析 UUID,但它不起作用。
swift - State Preservation and Restoration BLE- Calls didFinishLaunchingWithOptions but doesn't call any delegate method for CBCentral
I am working on an iPhone app and have implemented CBCentralManager
. Also updated plist with background modes, initialized centralmanager with an identifier.
Also have added this code in the didFinishLaunchingWithOptions
I have created a central manager in different class and that is singleton.
If i don't use my app for a day or two and then peripheral starts advertising, app wakes and fires this notification but doesn't call any CBCentral delegate method. I have also implemented willRestoreState method but thats also not getting card.
Use case: I need to connect the peripheral and send data once its starts advertising, even though app is not being used. Where should I handle connection process when app gets didFinishLaunchingWithOptions call? do i have to initialize the centralManager in the did finishlaunch method?
swift - TI SensorTag 加速度计服务不做广告
我在 Swift 环境中使用 TI SensorTag 并且能够连接,但只有温度、湿度和气压的 UUID 作为服务广告,而不是磁传感器、陀螺仪和加速度传感器。是让传感器使用 Swift 来宣传这些服务的例子吗?
bluetooth-lowenergy - 使用来自 Android 或 iOS 的 Microhip 的 MLDP 数据流
Microchip 定义了一种通过蓝牙低功耗 (BLE) 传输数据的方法,并将其称为 MLDP(Microchip 低功耗数据配置文件)。他们将其内置到他们的RN4020芯片中,甚至还有一个示例Android 应用程序。
但是,我找不到任何关于协议如何工作或应用程序来源的规范。我希望能够使用它从 Android 和/或 iOS 调试嵌入式设备。
有谁知道这个协议或实现它的软件的规范?