简体   繁体   中英

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. 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.

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. 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 you https://mfi.apple.com/MFiWeb/getFAQ.action#1-2 https://developer.apple.com/documentation/externalaccessory

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM