本文介绍了是否可以迅速将十六进制数据发送到A2DP蓝牙设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在iOS上开发一个应用程序,该应用程序连接到Bluetooth A2DP设备,但无法发送十六进制指令来使其正常工作.有人可以帮我吗?我找不到信息.

I am developing an application on iOS that connects to a Bluetooth A2DP device but I can not send instructions in hexadecimal to make it work. Somebody could help me? I can not find information.

使用AVAudioSession.sharedInstance().currentRoute,我可以看到UID和设备名称,但无法发送数据.

With AVAudioSession.sharedInstance().currentRoute I can see the UID and the name of the device but not send data.

let route  = AVAudioSession.sharedInstance().currentRoute
    let outPort = route.outputs.first
    if let outPort = outPort {
        print("out port name:\(outPort.portName)")
   }

你能帮我吗?

谢谢!

推荐答案

您应检查MFi和ExternalAccessory框架,以使设备与iOS A2DP通信.从iOS App角度来看,这是一个很高的角度.您只关心使用AVAudioEngine,AudioUnit或其他任何方式发送音频数据.检查这些网址可能对您有帮助 https://mfi.apple.com/MFiWeb/getFAQ.action#1- 2 https://developer.apple.com/documentation/externalaccessory

You should check MFi and ExternalAccessory framework in order to make your device communicates with iOS A2DP.From iOS App side, it is very high level of perspective. you only care about sending audio data using AVAudioEngine, AudioUnit, or whatever else.Check these urls might help youhttps://mfi.apple.com/MFiWeb/getFAQ.action#1-2https://developer.apple.com/documentation/externalaccessory

这篇关于是否可以迅速将十六进制数据发送到A2DP蓝牙设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-02 15:22