[英]How can I find which version of a2dp is used by my Bluetooth headset device?
I know that one way to find this out is to have a look at the device specification. 我知道找出这种情况的一种方法是查看设备规格。 Most device specifications are reporting just that A2DP is supported. 大多数设备规范仅报告支持A2DP。 Is there another way to find which version of A2DP is used from a headset device? 是否有另一种方法可以找到耳机设备使用的A2DP版本?
I recommend using linux with either built in bluetooth or with a bluetooth dongle. 我建议将Linux与内置的蓝牙或蓝牙软件狗一起使用。 Then you can use the bluez tool sdptool from the command line to get this information. 然后,您可以从命令行使用bluez工具sdptool来获取此信息。
A protocol sniffer is not necessary as all a protocol sniffer does is decode the packets over the air (which is exactly what sdptool does already), and it is more difficult as you will need to find out the link key as well which, depending on the devices you are using, can be quite difficult. 协议嗅探器不是必需的,因为所有协议嗅探器所做的就是通过无线方式解码数据包(这正是sdptool已经完成的工作),而且难度更大,因为您还需要找出链接密钥,具体取决于您正在使用的设备可能会非常困难。
Currently there are only 2 versions of A2DP - 1.0 and 1.2 The differences are only minor optimizations / adaptations. 当前只有2个版本的A2DP-1.0和1.2。不同之处仅在于较小的优化/改编。 So from a user's point of view it really does not matter. 因此,从用户的角度来看,这确实没有关系。 Both versions are compatible and will talk to each other. 两种版本都兼容,并且可以互相通信。
Since the differences are minor technical documentation changes in the spec it is not marketed as different versions to the end user. 由于差异仅是规范中技术文件的细微变化,因此最终用户不能将其作为不同版本进行销售。 (Its just A2DP) To really know the versions you will have to hook up with a Protocol sniffer and look at the SDP (Service Discovery) Query which typically happens after pairing / initial connection. (仅A2DP)要真正了解版本,您必须使用协议嗅探器,然后查看通常在配对/初始连接之后发生的SDP(服务发现)查询。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.