[英]Is possible send hexadecimal data to A2DP Bluetooth Device in swift?
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.我正在 iOS 上开发一个连接到蓝牙 A2DP 设备的应用程序,但我无法以十六进制发送指令以使其工作。 Somebody could help me?
有人可以帮助我吗? I can not find information.
我找不到信息。
With AVAudioSession.sharedInstance().currentRoute I can see the UID and the name of the device but not send data.使用 AVAudioSession.sharedInstance().currentRoute 我可以看到 UID 和设备名称,但不能发送数据。
let route = AVAudioSession.sharedInstance().currentRoute
let outPort = route.outputs.first
if let outPort = outPort {
print("out port name:\(outPort.portName)")
}
Could you help me?你可以帮帮我吗?
Thanks!谢谢!
You should check MFi and ExternalAccessory framework in order to make your device communicates with iOS A2DP.您应该检查 MFi 和 ExternalAccessory 框架,以使您的设备与 iOS A2DP 通信。 From iOS App side, it is very high level of perspective.
从 iOS App 方面来看,这是非常高水平的视角。 you only care about sending audio data using AVAudioEngine, AudioUnit, or whatever else.
您只关心使用 AVAudioEngine、AudioUnit 或其他任何方式发送音频数据。 Check these urls might help you https://mfi.apple.com/MFiWeb/getFAQ.action#1-2 https://developer.apple.com/documentation/externalaccessory
检查这些网址可能会对您有所帮助https://mfi.apple.com/MFiWeb/getFAQ.action#1-2 https://developer.apple.com/documentation/externalaccessory
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.