- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
请问可否用20706实现HFP Client,同时关闭通话和媒体音频功能,仅仅使用HFP获取手机端电量(之所以如此设计,不希望在手机端安装app),另外可否同时实现获取未接来电功能?
谢谢!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
HFP下是支持交换BatteryLevel的。但需要手机和设备都支持。
在您的假设中,既然20706作为HFP Client(官方称作Hands-Free Unit,HF),那手机端自然需要是作为HFP Server(官方称作Audio Gateway,AG)。这个时候,若手机系统支持HF Indicators中的Battery Level特性的话,那设备端便可以参照官方的HFP_SPEC说明文档中的4.7节“Transfer of Battery Level Indication of AG”,发送相应的AT command去获取AG端的电量指示。
需要注意的是,目前绝大部分的例程和实现中,都是HF端推送自己的电量指示给AG端的,所以您的需求可以参考的代码实现很少。
若使用WICED芯片来实现,您或许需要参考WICED HCI UART Protocol中的4.4节“Hands-Free Commands— HCI_CONTROL_GROUP_HF”,特别是4.4.6小节“HF AT Commands”。您可以结合WICED STUDIO提供的ClientControl工具的“HF Advanced”选项卡的演示,来理解其工作原理。
关于Android对HFP中电量的处理,请参考:
- https://stackoverflow.com/questions/53002816/how-to-get-bluetooth-headset-battery-level
- BluetoothHeadset | Android Developers
- core/java/android/bluetooth/BluetoothHeadset.java - platform/frameworks/base - Git at Google
蓝牙官方提供的关于HFP的一些您或许会感兴趣的资料:
- https://www.bluetooth.com/specifications/assigned-numbers/hands-free-profile/
- https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=238193
WICED芯片资料:
<<<<<<<<<<<<<>>>>>>>>>>>>>
Sincere regards from C. L.
<<<<<<<<<<<<<>>>>>>>>>>>>>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
另外求教下, CYW89702是否支持同样的操作?谢谢!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
HFP下是支持交换BatteryLevel的。但需要手机和设备都支持。
在您的假设中,既然20706作为HFP Client(官方称作Hands-Free Unit,HF),那手机端自然需要是作为HFP Server(官方称作Audio Gateway,AG)。这个时候,若手机系统支持HF Indicators中的Battery Level特性的话,那设备端便可以参照官方的HFP_SPEC说明文档中的4.7节“Transfer of Battery Level Indication of AG”,发送相应的AT command去获取AG端的电量指示。
需要注意的是,目前绝大部分的例程和实现中,都是HF端推送自己的电量指示给AG端的,所以您的需求可以参考的代码实现很少。
若使用WICED芯片来实现,您或许需要参考WICED HCI UART Protocol中的4.4节“Hands-Free Commands— HCI_CONTROL_GROUP_HF”,特别是4.4.6小节“HF AT Commands”。您可以结合WICED STUDIO提供的ClientControl工具的“HF Advanced”选项卡的演示,来理解其工作原理。
关于Android对HFP中电量的处理,请参考:
- https://stackoverflow.com/questions/53002816/how-to-get-bluetooth-headset-battery-level
- BluetoothHeadset | Android Developers
- core/java/android/bluetooth/BluetoothHeadset.java - platform/frameworks/base - Git at Google
蓝牙官方提供的关于HFP的一些您或许会感兴趣的资料:
- https://www.bluetooth.com/specifications/assigned-numbers/hands-free-profile/
- https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=238193
WICED芯片资料:
<<<<<<<<<<<<<>>>>>>>>>>>>>
Sincere regards from C. L.
<<<<<<<<<<<<<>>>>>>>>>>>>>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
好的,非常感谢!