A2DP蓝牙AVRCP +模块1.3+ [英] Bluetooth A2DP + AVRCP 1.3+ module

查看:2105
本文介绍了A2DP蓝牙AVRCP +模块1.3+的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有困难的时候了解如何实现AVRCP与我的项目。我寻觅颇有几分看了很多数据表,但我仍然似乎失去了一些东西...

I am having a difficult time understanding how to implement AVRCP with my project. I have searched quite a bit and read many datasheets, but I still seem to be missing something...

这是我想做的事:

简单地说,我希望能够通过蓝牙与我的Andr​​oid 4.3设备连接通过A2DP(这似乎pretty直线前进)来播放音乐,只要蓝牙模块支持A2DP。此外,我希望能够控制媒体播放器应用程序(潘多拉等)。现在,我知道,AVRCP 1.0仅支持基本的控制命令(暂停,播放,接下来,preV,FF,RW),我也发现,支持通过简单的UART AT命令或指令通过发送这些命令许多蓝牙模块在线SPI总线。不过,我也希望能够从Android设备获得元数据(这是一个AVRCP 1.3+只有能力),如曲目名称,唱片名,歌手名,曲目长度和经过时间。

Simply put, i want to be able to connect with my android 4.3 device via bluetooth to stream music via A2DP (which seems pretty straight forward) as long as the bluetooth module supports A2DP. Additionally, i want to be able to control the media player app (Pandora, etc). Now, i know that AVRCP 1.0 supports only basic control commands (pause, play, next, prev, FF, RW), and I have found many bluetooth modules online that support sending these commands via simple UART AT commands or commands via an SPI bus. However, I also want to be able to get metadata from the android device (which is an AVRCP 1.3+ only capability), such as track name, album name, artist name, track length, and elapsed time.

现在,从我的理解,要获得元数据,我需要支持AVRCP 1.3或更高版本蓝牙模块。我不明白是怎么要求的元数据!从我读,元数据,如轨道名称,艺术家,ablum和轨道长度,是在响应轨迹改变命令发送。任何人都可以证实这一点?那么如果我需要请求经过的时间?

Now, from what I understand, to get metadata, I need a bluetooth module that supports AVRCP 1.3 or higher. What I cannot understand is HOW one requests the metadata! From what I read, metadata, such as track name, artist, ablum, and track length, are are sent in response to a track change command. Can anyone confirm this? What about if I need to request the elapsed time?

在理想情况下,我要寻找支持A2DP(24位如果可用)蓝牙模块和AVRCP 1.3或更高UART或SPI或I2C接口,我可以把它播放,暂停,下一个,$ P $光伏命令来控制音乐播放器,并要求艺术家,专辑,曲目名称,经过时间,轨道长度的元数据。

Ideally, I am looking for a bluetooth module that support A2DP (24 bit if available) and AVRCP 1.3 or higher with a UART or SPI or I2C interface where I can send it play, pause, next, prev commands to control the music player and request artist, album, track name, elapsed time, track length metadata.

这是我发现,在数据表中提到的元数据的唯一单位:
<一href=\"http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Wireless/Bluetooth/Melody_5.0_Manual-RevD-RC10-Release.pdf\" rel=\"nofollow\">http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Wireless/Bluetooth/Melody_5.0_Manual-RevD-RC10-Release.pdf (pg.16)

This is the only unit that I have found that mentions metadata in the datasheet: http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Wireless/Bluetooth/Melody_5.0_Manual-RevD-RC10-Release.pdf (pg.16)

但我还不清楚这是如何工作!

But I am still unclear how this works!

在这里的任何帮助将是巨大的!

Any assistance here would be great!

推荐答案

首先,你应该看看这个文件:
https://developer.bluetooth.org/TechnologyOverview/Documents/AVRCP_SPEC.pdf

First, you should have a look at this document: https://developer.bluetooth.org/TechnologyOverview/Documents/AVRCP_SPEC.pdf

要从源获取元数据,则必须使用下面的命令:
GetElementAttributes()

To get the metadata from the source, you must use the following command: GetElementAttributes()

要知道如何使用该功能和参数设置,转到第53页的数据表英寸白衣该功能,您可以访问以下属性:标题,歌手名,专辑名称,曲目编号,曲目,流派,播放时间的总数。源将响应与期望的属性。对于其具体的ID的所有属性的列表,请参见附录E 132页。

To know how to use that function and which parameters to set, go to page 53 in the datasheet. Whit that function, you have access to the following attributes: Title, Artist Name, Album Name, Track Number, Total number of tracks, Genre, Playing time. The source will response with the desired attributes. For the list of all attributes with their specific ids, see appendix E on page 132.

对不起,我的英语:)

这篇关于A2DP蓝牙AVRCP +模块1.3+的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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