控制蓝牙与iPhone音频设备 [英] Control Bluetooth audio device with iPhone

查看:352
本文介绍了控制蓝牙与iPhone音频设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待编写应用程序的iPhone,这将能够控制收音机和CD播放器的汽车。收音机和播放器可用蓝牙连接。

I am looking to write application for iPhone which will be able to control radio and CD player in car. Radio and player have Bluetooth connection available.

我为了得到我需要为这一个一个地方所有信息开始这个问题。我有几个问题,但如果你发现任何东西,我开始开发这个应用程序,我没有问重要,请让我知道。

I started this question in order to obtain all informations I need for this one one place. I have few questions, but if you find anything I didn't ask important for me to start developing this application, please, let me know.

我看了一下汽车AVRCP协议和蓝牙设备支持AVRCP 1.3,这是对我不够好,具有在可以在协议版本进行心灵控制。

I have read about AVRCP profile and Bluetooth device in car supports AVRCP 1.3, which is good enough for me, having in mind controls which can be performed in that protocol version.

我读了很多关于人们说:苹果的设备只能互相交流,苹果的设备无法通过蓝牙非苹果设备连接,如果你想要做的MFI计划是强制性的 不需要MFI等我的第一个问题是:

I read a lot about people saying "Apple device can only interact with each other", "Apple device can't be connected via Bluetooth to non-Apple device", "MFi program is obligatory if you want to do that", "MFi is not needed", etc. My first question is:

1),它甚至有可能通过蓝牙和控制电台和音乐与汽车收音机和CD播放配对iPhone(4,4S)与任何iPhone版本?如果是的话,没有什么方法让这种成功的蓝牙连接的限制?

还有有关角色在iPhone可工作很少信息。对于AVRCP有两种角色:控制器和目标的作用。通过阅读本文: https://developer.apple.com/hardwaredrivers/BluetoothDesignGuidelines.pdf我没有找到答案,我的第二个问题:

There is also very few informations about roles in which iPhone can work. For AVRCP there are two kind of roles: controller and target role. By reading this paper: https://developer.apple.com/hardwaredrivers/BluetoothDesignGuidelines.pdf I didn't find answer to my second question:

2)的iPhone充当控制器和发布AVRCP 1.3说明所有可用的命令到目标设备(收音机和CD播放器)?

我也想知道这个特定问题提供框架。我知道有几个人,但如果有人认识到右一为我的问题,我想知道:

I would also like to know about available frameworks for this particular problem. I know there are several of them, but if anyone recognizes the right one for my problem, I'd like to know:

3)我应该使用哪种框架与目标设备交互?

但从开发商角度,我也有兴趣在可用的API用于连接的蓝牙设备进行交互。因为我做我自己的应用程序,并指定动作按钮,分配到按钮的方法里面,我需要进行消息发送到目标设备。因此,我的下一个问题是:

From developer point of view, I am also interested in available APIs for interacting with connected Bluetooth device. Since I am making my own application and assigning actions to buttons, inside of methods assigned to buttons I need to perform message sending to target device. So my next question is:

4)有没有人知道如何是否有发送到目标设备的命令的方式(启动/停止/暂停/前进/后退等),如以x code提供了一些API的一部分,或每个消息我参加通过蓝牙发送到目标设备,我需要根据协议文档(使整个消息(头部,身体,命令部分等),由我自己)做?

AVRCP是我完成这个应用程序的想法。如果我错了,请让我知道。
蓝牙有不同的配置文件,当从一个设备发送的消息,据我了解,型材本身处理的消息,跨$ P $点,并传送到目标设备,这样的目标设备可以理解。我不知道如何从iPhone发送到目标蓝牙设备的消息是从我从我的Objective-C(或C)code发送的那一刻处理。这是最主要的疑问,我已经和它与问题4相关 - 做我需要做的正确格式的原始信息,以发送AVRCP命令的设备或者我可以使用一些API,它会承认这些消息作为AVRCP(或任何其他形式),并提供给目标设备

AVRCP was my thought for accomplishing this application. If I am wrong, please let me know. Bluetooth has different profiles and when message is sent from one device, as far as I understand, profile itself handles message and interprets it and delivers to target device so target device can understand it. I do not understand how a message sent from iPhone to target Bluetooth device is handled from the moment I send it from my Objective-C (or C) code. That's the main doubt I have and it is related with question 4 - do I need to make raw messages in correct format in order to send AVRCP commands to device or I can use some API which will recognize those messages as AVRCP (or any other kind) and deliver it to target device?

这最后一个问题(如果我想有任何正面回答的所有previous)对我而言但从开发商角度之最。所以,如果有人也许与此特定问题的经验,我会AP preciate任何答案或建议。

This last question (if I suppose there is any kind of positive answer to all previous) concerns me the most from developer point of view. So, if anyone had maybe experience with this specific problem, I would appreciate any kind of answer or advice.

我真的很期待你的答案。我希望,建设性的,有益的讨论将开始关于这个主题和大量有用的信息都将被写入。

I am really looking forward to your answers. I hope that constructive and useful discussion will start on this topic and that lots of useful informations will be written.

最好的问候。

推荐答案

您可以使用它,如果CoreBluetooth设备(CD播放器)是蓝牙4.0 LE做符合

You can do it using CoreBluetooth if your device (CD Player) is Bluetooth 4.0 LE compliant

这篇关于控制蓝牙与iPhone音频设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆