蓝牙 模式和规格

来源:互联网 发布:bs软件开发工具 编辑:程序博客网 时间:2024/04/29 22:17

HFP and HSP

Hands free profile - HFP defines how mobile communication devices will interact with automobiles to allow for hands free operation. HFP specifies the hands free kit gateway communicates with the mobile device (the audio gateway) that communicates with the mobile communication network. The hands free kit may include several features such as voice activated dialingmemory dialing, andecho canceling.

This figure shows how the Bluetooth Car Kit profile allows a mobile telephone to provide for handsfree operation by interacting with the automobiles audio system. This example shows a mobile telephone that has discovered the car’s Bluetooth signal and has established a connection with the car. This connection allows incoming calls to alert the car’s audio system that the radio should be muted and the external microphone to be activated.


蓝牙接口说明:

拨号网络配置文件 - DUN

  DUN 提供了通过 Bluetooth 无线技术接入 Internet 和其它拨号服务的标准。最常见的情况是在手机上拨号,从膝上型计算机以无线方式接入 Internet 。

文件传输配置文件 - FTP

  FTP 定义了客户端设备如何浏览服务器设备上的文件夹和文件。一旦客户端找到了文件或位置,客户端即可从服务器拉取文件,或通过 GOEP 从客户端推送文件至服务器。

通用对象交换配置文件 - GAP

  GAP 是所有其它配置文件的基础,它定义了在 Bluetooth 设备间建立基带链路的通用方法。此配置文件定义了一些通用的操作,这些操作可供引用 GAP 的配置文件以及实施多个配置文件的设备使用。GAP 确保了两个 Bluetooth 设备(不管制造商和应用程序)可以通过 Bluetooth 技术交换信息,以发现彼此支持的应用程序。不符合任何其它 Bluetooth 配置文件的 Bluetooth 设备必须与 GAP 符合以确保基本的互操作性和共存。

免提配置文件 - HFP

  HFP 描述了网关设备如何用于供免提设备拨打和接听呼叫。典型配置如汽车使用手机作为网关设备。在车内,立体声系统用于电话音频,而车内安装的麦克风则用于通话时发送输出音频。HFP 还可用于个人计算机在家中或办公环境中作为手机扬声器的情况。

SIM 卡接入配置文件 (SAP)

  SAP 允许带有内置 GSM 收发器的车载电话之类的设备连接到蓝牙电话中的 SIM 卡。因此车载电话本身并不需要单独的 SIM 卡。

服务发现应用配置文件 (SDAP)

  SDAP 描述了应用程序如何使用 SDP 发现远程设备上的服务。由于 GAP 的要求,任何蓝牙设备都应当能够连接至其它蓝牙设备。基于此,SDAP 要求任何应用程序都应能够发现它要连接的其它蓝牙设备上的可用服务。此配置文件可以承担搜索已知和特定服务以及搜索一般服务的任务。SDAP 涉及了称为“服务发现用户应用程序”的一个应用程序,这是蓝牙设备查找服务所必需的。此应用程序可以与向/从其它蓝牙设备发送/接收服务查询的 SDP 相接。SDAP 依赖于 GAP,并可以重新使用部分 GAP 。

串行端口配置文件 (SPP)

  SPP 定义了如何设置虚拟串行端口及如何连接两个蓝牙设备。SPP 基于 ETSI TS07.10 规格,使用 RFCOMM 协议提供串行端口仿真。SPP 提供了以无线方式替代现有的 RS-232 串行通信应用程序和控制信号的方法。SPP 为 DUN、FAX、HSP 和 LAN 配置文件提供了基础。此配置文件可以支持最高 128 kbit/sec 的数据率。SPP 依赖于 GAP。

(转载自:http://code.google.com/p/sharesh/wiki/BlutetoothInterface)

HFP模式,通过移动设备与车机建立蓝牙链接,建立两者的通讯。应用场景包括,利用车载麦克风接受通话语音输入,扬声器用于播放通话对方的声音;亦可以建立免提,

拨号,重拨等服务。

HFP for Linux is a Bluetooth Hands-Free Profile server.

It allows your Linux system to act as a speakerphone for your mobile phone. It aims to be a compliant Bluetooth HFP 1.5 Hands Free implementation, supporting all required commands and notifications, as well as streaming audio.

HFP for Linux was designed specifically for automotive computing applications, but it can be used just as well in a desktop environment.

Features
  • Supports device scanning, connection, disconnection, and automatic reconnection
  • Supports multiple concurrently connected audio gateway devices
  • Resilient to loss of Bluetooth service
  • Supports the ALSA and OSS audio hardware interfaces
  • Supports microphone input cleanup, including echo cancelation and noise reduction.
Components
  • libhfp, a modular, toolkit-independent backend library with rich C++ APIs. Online documentation is available for the libhfp C++ APIs.
  • hfpd, a D-Bus service daemon providing D-Bus APIs. Online documentation is available for the D-Bus APIs.
  • hfconsole, a PyGTK console application for controlling the D-Bus service daemon.

hfconsole Screenshot

The HFP for Linux package also includes hfstandalone, a demonstration monolithic speakerphone program built with Trolltech Qt. hfstandalone uses its own instance of libhfp and operates independently of hfpd.

The developer of HFP for Linux believes that HFP is most useful in embedded devices, each with unique user interface requirements. Because of this, emphasis is placed on the internals and backend interfaces of libhfp, and the D-Bus interfaces of hfpd, so that it may be useful as a toolkit for building HFP applications and integrating HFP functionality into other applications.

(转载自http://nohands.sourceforge.net/)

蓝牙规格:

HSP(手机规格)– 提供手机(移动电话)与耳机之间通信所需的基本功能。 
HFP(免提规格)– 在 HSP 的基础上增加了某些扩展功能,原来只用于从固定车载免提装置来控制移动电话。 
A2DP(高级音频传送规格)– 允许传输立体声音频信号。 (相比用于 HSP 和 HFP 的单声道加密,质量要好得多)。 
AVRCP(音频/视频遥控规格)–用于从控制器(如立体声耳机)向目标设备(如装有 Media Player 的电脑)发送命令(如前跳、暂停和播放)。

(转载自:http://bokeid.blog.163.com/blog/static/9310278620116710395422/)

原创粉丝点击