WO2011022965A1 - 一种为计算机提供蓝牙功能的方法及终端 - Google Patents

一种为计算机提供蓝牙功能的方法及终端 Download PDF

Info

Publication number
WO2011022965A1
WO2011022965A1 PCT/CN2010/071293 CN2010071293W WO2011022965A1 WO 2011022965 A1 WO2011022965 A1 WO 2011022965A1 CN 2010071293 W CN2010071293 W CN 2010071293W WO 2011022965 A1 WO2011022965 A1 WO 2011022965A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
module
hci
computer
terminal
Prior art date
Application number
PCT/CN2010/071293
Other languages
English (en)
French (fr)
Inventor
王涛
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP10811131.1A priority Critical patent/EP2472733B1/en
Priority to ES10811131.1T priority patent/ES2561433T3/es
Priority to US13/391,784 priority patent/US8718557B2/en
Publication of WO2011022965A1 publication Critical patent/WO2011022965A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Definitions

  • the present invention relates to Bluetooth technology, and more particularly to a method and terminal for providing a Bluetooth function to a computer. Background technique
  • Bluetooth is a short-range wireless communication technology that enables point-to-point or point-to-multipoint connection of information through low-bandwidth radio waves.
  • Bluetooth functions are provided for desktop computers through Bluetooth adapters, but this requires users to purchase Bluetooth adapters. Increase user funds and labor input, affecting user experience. Summary of the invention
  • the main object of the present invention is to provide a method and terminal for providing a Bluetooth function to a computer, which can provide a Bluetooth function to a computer without a Bluetooth adapter.
  • the terminal After receiving the upload configuration parameter command of the computer, the terminal transmits the stored configuration parameters to the computer, and enumerates the terminal as a Bluetooth adapter; The terminal sends the host control interface HCI command sent by the computer through the USB interface through its own Bluetooth chip, and converts the radio frequency signal received by its own Bluetooth chip into an HCI event, and sends it to the computer through the USB interface.
  • the terminal includes a main control module, and the main control module is provided with an HCI protocol layer and a Bluetooth driver layer. Before the operating mode is switched to the Bluetooth adapter mode, the method further includes: setting a Bluetooth adaptation task module on the terminal ;
  • the switching the working mode of the terminal to the Bluetooth adapter mode comprises: stopping the Bluetooth task of the terminal, establishing a connection between the Bluetooth driver layer and the Bluetooth adapter task module on the main control module.
  • An HCI module, an HCI protocol layer, a baseband module, and a radio frequency module are disposed on the Bluetooth chip; the HCI module is further disposed on the main control module;
  • the terminal sends the HCI command sent by the computer through the USB interface through its own Bluetooth chip to:
  • the Bluetooth adaptation task module acquires an HCI command sent by the computer through the USB interface module, and sends the obtained HCI command to the main control module;
  • the Bluetooth driver layer and the HCI module on the main control module send the HCI command sent by the Bluetooth adaptation task module to the Bluetooth chip in the form of bit data;
  • the HCI module on the Bluetooth chip receives the bit data, and the HCI protocol layer parses the HCI command, and then the baseband module and the radio frequency module convert the parsed command into a radio frequency signal and then send it.
  • the RF signal received by the Bluetooth chip is converted into an HCI event and sent to the computer through the USB interface:
  • the radio frequency module on the Bluetooth chip converts and receives the received radio frequency signal into an HCI event through the baseband module and the HCI protocol layer, and sends the HCI event to the main control through the HCI module in the form of bit data.
  • Module The HCI module on the main control module receives the bit data, and the received bit data is returned to the HCI event by the Bluetooth driver layer, and then sent to the Bluetooth adapter task module;
  • the Bluetooth adaptation task module sends the received HCI event to the computer through the USB interface.
  • the method further includes: the Bluetooth protocol stack acquires an HCI event by the USB interface, and converts the HCI event into Bluetooth.
  • the format that the application layer can recognize is sent to the Bluetooth application layer.
  • the enumerating the terminal as a Bluetooth adapter is:
  • the computer runs a Bluetooth application layer and a Bluetooth protocol stack in the operating system according to the configuration information from the terminal, and establishes a connection between the USB interface and the Bluetooth protocol stack;
  • the HCI command sent by the computer through the USB interface includes: the Bluetooth protocol stack encapsulates the command sent by the Bluetooth application layer into an HCI command, and sends the command to the terminal through the USB interface.
  • the present invention also provides a terminal for providing a Bluetooth function to a computer, the terminal comprising: a switching module, an enumeration module, and a Bluetooth module;
  • a switching module configured to switch the working mode of the terminal to the Bluetooth adapter mode
  • An enumeration module configured to receive an upload configuration parameter command sent by the computer, and transmit the stored configuration parameter to the computer, and enumerate the terminal as a Bluetooth adapter;
  • the Bluetooth module including the Bluetooth chip, is used to send the HCI command sent by the computer through the USB interface through its own Bluetooth chip, and convert the RF signal received by its Bluetooth chip into an HCI event, and send it to the computer through the USB interface.
  • the Bluetooth chip is provided with an HCI module, an HCI protocol layer, a baseband module, and a radio frequency module;
  • the HCI module is configured to receive the bit data sent by the main control module, and send the HCI command to the HCI protocol layer, and then convert the parsed command into a radio frequency signal by the baseband module and the radio frequency module. Issue
  • the radio frequency module converts and receives the received radio frequency signal into an HCI event through the baseband module and the HCI protocol layer, and sends the HCI event to the main control module in the form of bit data through the HCI module;
  • the Bluetooth module further includes: a Bluetooth adaptation task module, a main control module; wherein, the Bluetooth adaptation task module is configured to obtain an HCI command from the USB interface module on the terminal, and send the obtained HCI command to the main control module; And sending the received HCI event sent by the main control module to the computer through the USB interface;
  • the main control module is provided with a Bluetooth driver layer and an HCI module; wherein, the Bluetooth driver layer and the HCI module send the HCI command sent by the Bluetooth adaptation task module to the Bluetooth chip in the form of bit data; the HCI module receives the Bluetooth chip The incoming bit data is sent to the Bluetooth Adaptation Task Module after the received bit data is returned to the HCI event by the Bluetooth driver layer.
  • the switching module includes: a task termination module and a connection establishment module; wherein
  • a task termination module configured to stop a Bluetooth task of the terminal
  • connection establishing module configured to establish a connection between the Bluetooth driver layer of the main control module and the Bluetooth adapter task module.
  • the present invention connects a Bluetooth-enabled terminal to a computer through a universal serial bus (USB) interface, and enumerates the terminal as a Bluetooth adapter, thereby providing a computer through the terminal's Bluetooth chip.
  • USB universal serial bus
  • the Bluetooth function does not require Bluetooth adapters to provide Bluetooth functionality to the computer. It does not increase the user's capital and labor input, and does not affect the user experience.
  • the invention also has the following advantages and features:
  • 1 is a flow chart of an embodiment of a method for providing a Bluetooth function to a computer of the present invention
  • 2 is a schematic structural diagram of an embodiment of a terminal for providing a Bluetooth function to a computer according to the present invention.
  • 1 is a method for providing a Bluetooth function to a computer according to the present invention.
  • the terminal used is a Bluetooth-enabled mobile phone, including: a user interface (UI), a main control module, and a Bluetooth chip;
  • the main control module is provided with a Bluetooth application layer, a host control interface (HCI) protocol layer, a Bluetooth driver layer, and an HCI module.
  • HCI host control interface
  • the Bluetooth chip is provided with an HCI module, an HCI protocol layer, a baseband module, and a radio frequency module; the HCI module includes HCI and The HCI driver is specifically: Asynchronous Transceiver (UART) and UART driver, Secure Digital Input/Output (SDIO) hardware and SDIO driver, or Universal Serial Bus (USB) and USB driver.
  • UART Asynchronous Transceiver
  • SDIO Secure Digital Input/Output
  • USB Universal Serial Bus
  • Step 100 Enter the switching indication via the UI of the phone.
  • Step 101 to Step 102 The mobile phone determines whether its current working mode is Bluetooth mode or Bluetooth adapter mode. If the mobile phone is currently working in Bluetooth mode, the mobile phone switches its working mode to Bluetooth adapter mode, and steps 103 to 105 are performed; In the Bluetooth adapter mode, go to step 106.
  • switching the working mode of the mobile phone to the Bluetooth adapter mode includes:
  • Step 103 Connect the mobile phone to the computer through the USB interface; wherein the USB interface includes a USB task and a USB driver.
  • the method further includes: the computer discovering the USB device, and sending the upload configuration parameter command to the USB device; in this embodiment, the USB device is the mobile phone.
  • Step 104 Receiving the upload configuration parameter command sent by the computer, the mobile phone transmits the stored configuration parameter to the computer, and enumerates the mobile phone as a Bluetooth adapter, that is, causes the computer to recognize the mobile phone as a Bluetooth adapter.
  • the computer recognizes the mobile phone as a Bluetooth adapter specifically includes:
  • the computer runs the Bluetooth application layer and the Bluetooth protocol stack in the operating system according to the configuration information sent by the mobile phone, and establishes a connection between the USB interface and the Bluetooth protocol stack.
  • Step 105 The mobile phone sends the HCI command sent by the computer through the USB interface through its own Bluetooth chip, converts the radio frequency signal received by the Bluetooth chip into an HCI event, and sends it to the computer through the USB interface, thereby providing Bluetooth to the computer.
  • the mobile phone sends the HCI command sent by the computer through the USB interface through its own Bluetooth chip, and specifically includes:
  • the Bluetooth adaptation task module acquires the HCI command sent by the computer through the USB interface module, and sends the obtained HCI command to the The main control module; the Bluetooth driver layer on the main control module, the HCI module sends the HCI command sent by the Bluetooth adaptation task module to the Bluetooth chip in the form of bit data; the HCI module on the Bluetooth chip receives the bit data,
  • the HCI command is parsed by the HCI protocol layer, and the parsed command is converted into a radio frequency signal by the baseband module and the radio frequency module.
  • the computer sends the HCI command via the USB interface:
  • the Bluetooth protocol stack encapsulates the commands sent by the Bluetooth application layer into HCI commands and sends them to the mobile phone through the USB interface.
  • the USB signal is sent to the computer through the USB interface:
  • the RF module on the Bluetooth chip converts and receives the RF signal through the baseband module and the HCI protocol layer into an HCI event, and sends the HCI event to the main control module in the form of bit data through the HCI module;
  • the HCI module receives the bit data, and sends the received bit data to the Bluetooth adaptation task module after being restored to the HCI event by the Bluetooth driver layer;
  • the Bluetooth adaptation task module sends the received HCI event through the USB interface.
  • step 105 after the radio frequency signal received by the Bluetooth chip is converted into an HCI event and sent to the computer through the USB interface, the step further includes:
  • the Bluetooth protocol stack obtains the HCI event through the USB interface, and converts the HCI event to a Bluetooth application layer in a format recognizable by the Bluetooth application layer.
  • Step 106 The mobile phone switches its working mode to the Bluetooth mode, and implements the Bluetooth function of the mobile phone through the main control module of the mobile phone and the Bluetooth chip.
  • the step specifically includes: disconnecting the Bluetooth driver layer of the main control module from the Bluetooth adapter task module, and enabling the Bluetooth task of the terminal; the main control module and the Bluetooth chip implement the Bluetooth function of the mobile phone.
  • FIG. 2 is a schematic structural diagram of an embodiment of a terminal for providing a Bluetooth function to a computer according to the present invention. As shown in FIG. 2, the method includes: a switching module, an enumeration module, and a Bluetooth module;
  • a switching module configured to switch the working mode of the terminal to the Bluetooth adapter mode
  • An enumeration module configured to receive an upload configuration parameter command sent by the computer, and transmit the stored configuration parameter to the computer, and enumerate the terminal as a Bluetooth adapter;
  • the Bluetooth module including the Bluetooth chip, is used to send the HCI command sent by the computer through the USB interface through its own Bluetooth chip, and convert the RF signal received by its Bluetooth chip into an HCI event, and send it to the computer through the USB interface.
  • the HCI module, the HCI protocol layer, the baseband module and the radio frequency module are disposed in the Bluetooth chip; wherein, the HCI module receives the bit data sent by the main control module, and the HCI protocol layer parses the HCI command, and then the baseband module and The RF module converts the parsed command into a radio frequency signal, and the RF module converts and receives the RF signal through the baseband module and the HCI protocol layer into an HCI event, and passes the HCI event through the HCI module in the form of bit data.
  • the Bluetooth module further includes: a Bluetooth adaptation task module and a main control module; wherein
  • the Bluetooth adaptation task module is configured to obtain an HCI command sent by the computer through the USB interface module, send the obtained HCI command to the main control module, and send the received HCI event sent by the main control module to the USB interface. Send to computer
  • the main control module is provided with a Bluetooth driver layer and an HCI module; wherein, the Bluetooth driver layer and the HCI module send the HCI command sent by the Bluetooth adaptation task module to the Bluetooth chip in the form of bit data; the HCI module receives the Bluetooth chip Bit data, and pass the received bit data to Bluetooth After the driver layer is restored to the HCI event, it is sent to the Bluetooth Adaptation Task Module.
  • the switching module includes: a task termination module and a connection establishment module; wherein, the task termination module is configured to stop the Bluetooth task of the terminal;
  • a connection establishment module is used to establish a connection between the Bluetooth driver layer of the main control module and the Bluetooth adapter task module.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Communication Control (AREA)

Description

一种为计算机提供蓝牙功能的方法及终端 技术领域
本发明涉及蓝牙技术, 尤其涉及一种为计算机提供蓝牙功能的方法及 终端。 背景技术
蓝牙是一种短距离无线通信技术, 通过低带宽电波实现点对点, 或点 对多点连接之间的信息交流。
目前, 绝大多数中高端终端具有蓝牙功能, 而蓝牙技术在终端中的普 及, 也促进了蓝牙技术在其它电子设备上的应用, 例如, 个人数码助理 ( PDA, Personal Digital Assistant ), 笔记本电脑等大都具有蓝牙功能, 也有 一些电子设备没有集成蓝牙芯片, 自身不具有蓝牙功能, 需要蓝牙适配器 为其提供蓝牙功能, 例如, 通过蓝牙适配器为台式计算机提供蓝牙功能, 但这需要用户购买蓝牙适配器, 会增加用户资金及劳力的投入, 影响用户 体验。 发明内容
有鉴于此, 本发明的主要目的在于提供一种为计算机提供蓝牙功能的 方法及终端, 不需要蓝牙适配器即能够为计算机提供蓝牙功能。
为达到上述目的, 本发明的技术方案是这样实现的:
一种为计算机提供蓝牙功能的方法, 将终端工作模式切换为蓝牙适配 器模式, 该方法还包括:
终端接收到计算机的上传配置参数命令后, 向计算机传输自身存储的 配置参数, 将终端枚举为蓝牙适配器; 终端将计算机通过 USB接口发来的主机控制接口 HCI命令通过自身的 蓝牙芯片发出, 并将自身的蓝牙芯片接收到的射频信号转化为 HCI事件, 通过 USB接口发送至计算机。
所述终端包括主控模块,主控模块上设置有 HCI协议层和蓝牙驱动层; 所述将工作模式切换为蓝牙适配器模式前, 该方法进一步包括: 在所 述终端上设置蓝牙适配任务模块;
所述将终端的工作模式切换为蓝牙适配器模式包括: 停止所述终端的 蓝牙任务, 在所述主控模块上的蓝牙驱动层与蓝牙适配任务模块间建立连 接。
所述蓝牙芯片上设置有 HCI模块、 HCI协议层、基带模块和射频模块; 所述主控模块上还设置有 HCI模块;
所述终端将计算机通过 USB接口发来的 HCI命令通过自身的蓝牙芯片 发出具体为:
所述蓝牙适配任务模块通过 USB接口模块获取计算机发来的 HCI命 令, 并将获取到的 HCI命令发至主控模块;
主控模块上的蓝牙驱动层、 HCI模块将所述蓝牙适配任务模块发来的 HCI命令以位数据的形式发至蓝牙芯片;
蓝牙芯片上的 HCI模块接收所述位数据, 并交由 HCI协议层解析出 HCI命令, 再由基带模块和射频模块将解析出的命令转换为射频信号后发 出。
所述将自身的蓝牙芯片接收到的射频信号转化为 HCI 事件, 并通过 USB接口发送至计算机为:
所述蓝牙芯片上的射频模块将接收到的射频信号, 通过所述基带模块 和 HCI协议层转换并封装成 HCI事件,并将该 HCI事件通过所述 HCI模块 以位数据的形式发至主控模块; 所述主控模块上的 HCI模块接收所述位数据, 并将接收到的位数据交 由蓝牙驱动层恢复为 HCI事件后, 发送至所述蓝牙适配任务模块;
所述蓝牙适配任务模块将接收到的 HCI事件通过 USB接口发送至计算 机。
所述将自身的蓝牙芯片接收到的射频信号转化为 HCI 事件, 并通过 USB接口发送至计算机后, 该方法进一步包括: 所述蓝牙协议栈由 USB接 口获取 HCI事件, 并将 HCI事件转换为蓝牙应用层能够识别的格式发至蓝 牙应用层。
所述将终端枚举为蓝牙适配器为:
所述计算机根据来自终端的配置信息, 运行操作系统中的蓝牙应用层 和蓝牙协议栈, 并在所述 USB接口与蓝牙协议栈间建立连接;
所述计算机通过 USB接口发来 HCI命令包括:所述蓝牙协议栈将所述 蓝牙应用层发来的命令封装成 HCI命令, 通过 USB接口发至终端。
本发明还提供一种为计算机提供蓝牙功能的终端, 该终端包括: 切换 模块、 枚举模块和蓝牙模块; 其中,
切换模块, 用于将终端的工作模式切换为蓝牙适配器模式;
枚举模块, 用于接收计算机发来的上传配置参数命令, 并向计算机传 输自身存储的配置参数, 将终端枚举为蓝牙适配器;
蓝牙模块, 包括蓝牙芯片, 用于将计算机通过 USB接口发来的 HCI命 令通过自身的蓝牙芯片发出, 并将自身的蓝牙芯片接收到的射频信号转化 为 HCI事件, 并通过 USB接口发送至计算机。
所述蓝牙芯片中设置有 HCI模块、 HCI协议层、基带模块和射频模块; 其中,
HCI模块, 用于接收主控模块发来的位数据, 并交由 HCI协议层解析 出 HCI命令, 再由基带模块和射频模块将解析出的命令转换为射频信号后 发出;
射频模块将接收到的射频信号, 通过基带模块和 HCI协议层转换并封 装成 HCI事件,并将该 HCI事件通过 HCI模块以位数据的形式发至主控模 块;
所述蓝牙模块还包括: 蓝牙适配任务模块、 主控模块; 其中, 蓝牙适配任务模块, 用于从终端上的 USB接口模块获取 HCI命令, 将 获取到的 HCI命令发至主控模块; 并将接收到的所述主控模块发来的 HCI 事件通过 USB接口发送至计算机;
主控模块, 设置有蓝牙驱动层和 HCI模块; 其中, 蓝牙驱动层、 HCI 模块将所述蓝牙适配任务模块发来的 HCI命令以位数据的形式发至蓝牙芯 片; HCI模块接收蓝牙芯片发来的位数据, 并将接收到的位数据交由蓝牙 驱动层恢复为 HCI事件后, 发送至蓝牙适配任务模块。
所述切换模块包括: 任务终止模块和连接建立模块; 其中,
任务终止模块, 用于停止终端的蓝牙任务;
连接建立模块, 用于在所述主控模块的蓝牙驱动层与所述蓝牙适配任 务模块间建立连接。
从上述本发明提供的技术方案可见, 本发明通过通用串行总线(USB ) 接口将具有蓝牙功能的终端连接至计算机上, 并将终端枚举为蓝牙适配器, 实现通过终端的蓝牙芯片为计算机提供蓝牙功能, 不需要借助蓝牙适配器 为计算机提供蓝牙功能, 不会增加用户资金及劳力的投入, 不会影响用户 体验。 本发明还具有以下的优点和特点:
大多操作系统集成了通用的蓝牙协议栈和蓝牙应用层, 使用蓝牙功能 时无需另行安装, 实现了即插即用, 且不需额外增加硬件, 成本较低。 附图说明
图 1为本发明为计算机提供蓝牙功能的方法的实施例的流程图; 图 2为本发明为计算机提供蓝牙功能的终端的实施例的结构示意图。 具体实施方式 图 1 为本发明为计算机提供蓝牙功能的实施例的方法, 本实施例中, 采用的终端为具有蓝牙功能的手机, 包括: 用户界面 (UI )、 主控模块和蓝 牙芯片; 其中, 主控模块上设置有蓝牙应用层、 主机控制接口 (HCI )协议 层、 蓝牙驱动层和 HCI模块, 蓝牙芯片上设置有 HCI模块、 HCI协议层、 基带模块和射频模块; HCI模块包括 HCI和 HCI驱动, 具体为: 异步收发 器(UART )和 UART驱动、 安全数字输入 /输出 (SDIO )硬件和 SDIO驱 动、 或通用串行总线(USB )和 USB驱动。 如图 1所示, 首先在手机上设 置蓝牙适配任务模块, 还包括以下步骤:
步骤 100: 通过手机的 UI输入切换指示。
步骤 101~步骤 102: 手机确定自身当前的工作模式是蓝牙模式、 还是 蓝牙适配器模式, 如果当前工作在蓝牙模式, 手机将自身工作模式切换为 蓝牙适配器模式, 执行步骤 103 ~ 105; 如果当前工作在蓝牙适配器模式, 执行步骤 106。
其中, 将手机的工作模式切换为蓝牙适配器模式包括:
停止终端的蓝牙任务, 在主控模块上的蓝牙驱动层与蓝牙适配任务模 块间建立连接。
步骤 103: 通过 USB接口将手机连接至计算机上; 其中, USB接口包 括 USB任务和 USB驱动。
本步骤还包括:计算机发现 USB设备,向 USB设备发送上传配置参数 命令; 本实施例中, USB设备为手机。
步骤 104: 接收到计算机发来的上传配置参数命令, 手机向计算机传输 自身存储的配置参数, 将手机枚举为蓝牙适配器, 也就是说, 使计算机将 手机认作蓝牙适配器。 其中, 计算机将手机认作蓝牙适配器具体包括:
计算机根据手机发来的配置信息运行操作系统中的蓝牙应用层和蓝牙 协议栈, 并在 USB接口与蓝牙协议栈间建立连接。
步骤 105: 手机将计算机通过 USB接口发来的 HCI命令通过自身的蓝 牙芯片发出, 并将自身的蓝牙芯片接收到的射频信号转化为 HCI事件后, 通过 USB接口发送至计算机, 从而为计算机提供蓝牙功能。
本步骤中,手机将计算机通过 USB接口发来的 HCI命令通过自身的蓝 牙芯片发出具体包括: 蓝牙适配任务模块通过 USB接口模块获取计算机发 来的 HCI命令, 并将获取到的 HCI命令发至主控模块; 主控模块上的蓝牙 驱动层、 HCI模块将所述蓝牙适配任务模块发来的 HCI命令以位数据的形 式发至蓝牙芯片; 蓝牙芯片上的 HCI模块接收所述位数据, 并交由 HCI协 议层解析出 HCI命令, 再由基带模块和射频模块将解析出的命令转换为射 频信号后发出。 其中, 计算机通过 USB接口发来 HCI命令为: 蓝牙协议栈 将蓝牙应用层发来的命令封装成 HCI命令, 通过 USB接口发至手机。
本步骤中, 将自身的蓝牙芯片接收到的射频信号转化为 HCI事件后, 通过 USB接口发送至计算机具体为:
蓝牙芯片上的射频模块将接收到的射频信号, 通过基带模块和 HCI协 议层转换并封装成 HCI事件,并将该 HCI事件通过 HCI模块以位数据的形 式发至主控模块; 主控模块上的 HCI模块接收所述位数据, 并将接收到的 位数据交由蓝牙驱动层恢复为 HCI事件后, 发送至蓝牙适配任务模块; 蓝 牙适配任务模块将接收到的 HCI事件通过 USB接口发送至计算机。
步骤 105中, 将自身的蓝牙芯片接收到的射频信号转化为 HCI事件, 并通过 USB接口发送至计算机后, 本步骤还包括:
蓝牙协议栈通过 USB接口获取 HCI事件,并将 HCI事件转换为蓝牙应 用层能够识别的格式发至蓝牙应用层。 步骤 106: 手机将自身工作模式切换为蓝牙模式, 通过手机的主控模块 与蓝牙芯片实现手机的蓝牙功能。
本步骤具体包括: 断开主控模块的蓝牙驱动层与蓝牙适配任务模块间 的连接, 开启终端的蓝牙任务; 主控模块与蓝牙芯片实现手机的蓝牙功能。
图 2为本发明为计算机提供蓝牙功能的终端的实施例的结构示意图, 如图 2所示, 包括: 切换模块、 枚举模块和蓝牙模块; 其中,
切换模块, 用于将终端的工作模式切换为蓝牙适配器模式;
枚举模块, 用于接收计算机发来的上传配置参数命令, 并向计算机传 输自身存储的配置参数, 将终端枚举为蓝牙适配器;
蓝牙模块, 包括蓝牙芯片, 用于将计算机通过 USB接口发来的 HCI命 令通过自身的蓝牙芯片发出, 并将自身的蓝牙芯片接收到的射频信号转化 为 HCI事件, 并通过 USB接口发送至计算机。
其中, 蓝牙芯片中设置有 HCI模块、 HCI协议层、 基带模块和射频模 块; 其中, HCI模块接收主控模块发来的位数据, 并交由 HCI协议层解析 出 HCI命令, 再由基带模块和射频模块将解析出的命令转换为射频信号后 发出; 射频模块将接收到的射频信号, 通过基带模块和 HCI协议层转换并 封装成 HCI事件,并将该 HCI事件通过 HCI模块以位数据的形式发至主控 模块;
蓝牙模块还包括: 蓝牙适配任务模块和主控模块; 其中,
蓝牙适配任务模块,用于通过 USB接口模块获取计算机发来的 HCI命 令, 将获取到的 HCI命令发至主控模块; 并将接收到的所述主控模块发来 的 HCI事件通过 USB接口发送至计算机;
主控模块, 设置有蓝牙驱动层和 HCI模块; 其中, 蓝牙驱动层、 HCI 模块将所述蓝牙适配任务模块发来的 HCI命令以位数据的形式发至蓝牙芯 片; HCI模块接收蓝牙芯片发来的位数据, 并将接收到的位数据交由蓝牙 驱动层恢复为 HCI事件后, 发送至蓝牙适配任务模块。
进一步地, 切换模块包括: 任务终止模块和连接建立模块; 其中, 任务终止模块, 用于停止终端的蓝牙任务;
连接建立模块, 用于在主控模块的蓝牙驱动层与蓝牙适配任务模块间 建立连接。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。

Claims

权利要求书
1、 一种为计算机提供蓝牙功能的方法, 其特征在于, 将终端工作模式 切换为蓝牙适配器模式, 该方法还包括:
终端接收到计算机的上传配置参数命令后, 向计算机传输自身存储的 配置参数, 将终端枚举为蓝牙适配器;
终端将计算机通过 USB接口发来的主机控制接口 HCI命令通过自身的 蓝牙芯片发出, 并将自身的蓝牙芯片接收到的射频信号转化为 HCI事件, 通过 USB接口发送至计算机。
2、根据权利要求 1所述的方法, 其特征在于,所述终端包括主控模块, 主控模块上设置有 HCI协议层和蓝牙驱动层;
所述将工作模式切换为蓝牙适配器模式前, 该方法进一步包括: 在所 述终端上设置蓝牙适配任务模块;
所述将终端的工作模式切换为蓝牙适配器模式包括: 停止所述终端的 蓝牙任务, 在所述主控模块上的蓝牙驱动层与蓝牙适配任务模块间建立连 接。
3、 根据权利要求 2所述的方法, 其特征在于, 所述蓝牙芯片上设置有 HCI模块、 HCI协议层、 基带模块和射频模块; 所述主控模块上还设置有 HCI模块;
所述终端将计算机通过 USB接口发来的 HCI命令通过自身的蓝牙芯片 发出具体为:
所述蓝牙适配任务模块通过 USB接口模块获取计算机发来的 HCI命 令, 并将获取到的 HCI命令发至主控模块;
主控模块上的蓝牙驱动层、 HCI模块将所述蓝牙适配任务模块发来的 HCI命令以位数据的形式发至蓝牙芯片;
蓝牙芯片上的 HCI模块接收所述位数据, 并交由 HCI协议层解析出 HCI命令, 再由基带模块和射频模块将解析出的命令转换为射频信号后发 出。
4、 根据权利要求 2所述的方法, 其特征在于, 所述将自身的蓝牙芯片 接收到的射频信号转化为 HCI事件, 并通过 USB接口发送至计算机为: 所述蓝牙芯片上的射频模块将接收到的射频信号, 通过所述基带模块 和 HCI协议层转换并封装成 HCI事件,并将该 HCI事件通过所述 HCI模块 以位数据的形式发至主控模块;
所述主控模块上的 HCI模块接收所述位数据, 并将接收到的位数据交 由蓝牙驱动层恢复为 HCI事件后, 发送至所述蓝牙适配任务模块;
所述蓝牙适配任务模块将接收到的 HCI事件通过 USB接口发送至计算 机。
5、 根据权利要求 4所述的方法, 其特征在于, 所述将自身的蓝牙芯片 接收到的射频信号转化为 HCI事件, 并通过 USB接口发送至计算机后, 该 方法进一步包括: 所述蓝牙协议栈由 USB接口获取 HCI事件, 并将 HCI 事件转换为蓝牙应用层能够识别的格式发至蓝牙应用层。
6、 根据权利要求 1至 5任一项所述的方法, 其特征在于, 所述将终端 枚举为蓝牙适配器为:
所述计算机根据来自终端的配置信息, 运行操作系统中的蓝牙应用层 和蓝牙协议栈, 并在所述 USB接口与蓝牙协议栈间建立连接;
所述计算机通过 USB接口发来 HCI命令包括:所述蓝牙协议栈将所述 蓝牙应用层发来的命令封装成 HCI命令, 通过 USB接口发至终端。
7、 一种为计算机提供蓝牙功能的终端, 其特征在于, 该终端包括: 切 换模块、 枚举模块和蓝牙模块; 其中,
切换模块, 用于将终端的工作模式切换为蓝牙适配器模式;
枚举模块, 用于接收计算机发来的上传配置参数命令, 并向计算机传 输自身存储的配置参数, 将终端枚举为蓝牙适配器;
蓝牙模块, 包括蓝牙芯片, 用于将计算机通过 USB接口发来的 HCI命 令通过自身的蓝牙芯片发出, 并将自身的蓝牙芯片接收到的射频信号转化 为 HCI事件, 并通过 USB接口发送至计算机。
8、 根据权利要求 7所述的终端, 其特征在于, 所述蓝牙芯片中设置有 HCI模块、 HCI协议层、 基带模块和射频模块; 其中,
HCI模块, 用于接收主控模块发来的位数据, 并交由 HCI协议层解析 出 HCI命令, 再由基带模块和射频模块将解析出的命令转换为射频信号后 发出;
射频模块将接收到的射频信号, 通过基带模块和 HCI协议层转换并封 装成 HCI事件,并将该 HCI事件通过 HCI模块以位数据的形式发至主控模块;
9、 根据权利要求 8所述的终端, 其特征在于, 所述蓝牙模块还包括: 蓝牙适配任务模块、 主控模块; 其中,
蓝牙适配任务模块, 用于从终端上的 USB接口模块获取 HCI命令, 将 获取到的 HCI命令发至主控模块; 并将接收到的所述主控模块发来的 HCI 事件通过 USB接口发送至计算机;
主控模块, 设置有蓝牙驱动层和 HCI模块; 其中, 蓝牙驱动层、 HCI 模块将所述蓝牙适配任务模块发来的 HCI命令以位数据的形式发至蓝牙芯 片; HCI模块接收蓝牙芯片发来的位数据, 并将接收到的位数据交由蓝牙 驱动层恢复为 HCI事件后, 发送至蓝牙适配任务模块。
10、 根据权利要求 9所述的终端, 其特征在于, 所述切换模块包括: 任务终止模块和连接建立模块; 其中,
任务终止模块, 用于停止终端的蓝牙任务;
连接建立模块, 用于在所述主控模块的蓝牙驱动层与所述蓝牙适配任 务模块间建立连接。
PCT/CN2010/071293 2009-08-27 2010-03-25 一种为计算机提供蓝牙功能的方法及终端 WO2011022965A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP10811131.1A EP2472733B1 (en) 2009-08-27 2010-03-25 Bluetooth function providing method and terminal for computer
ES10811131.1T ES2561433T3 (es) 2009-08-27 2010-03-25 Procedimiento y terminal que proporcionan funcionalidad Bluetooth a un ordenador
US13/391,784 US8718557B2 (en) 2009-08-27 2010-03-25 Bluetooth function providing method and terminal for computer

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910090585.X 2009-08-27
CN200910090585XA CN101634976B (zh) 2009-08-27 2009-08-27 一种为计算机提供蓝牙功能的方法及终端

Publications (1)

Publication Number Publication Date
WO2011022965A1 true WO2011022965A1 (zh) 2011-03-03

Family

ID=41594169

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/071293 WO2011022965A1 (zh) 2009-08-27 2010-03-25 一种为计算机提供蓝牙功能的方法及终端

Country Status (6)

Country Link
US (1) US8718557B2 (zh)
EP (1) EP2472733B1 (zh)
CN (1) CN101634976B (zh)
ES (1) ES2561433T3 (zh)
PT (1) PT2472733E (zh)
WO (1) WO2011022965A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427617A (zh) * 2019-01-09 2020-07-17 阿里巴巴集团控股有限公司 数据处理方法、装置及设备
CN112804672A (zh) * 2021-01-08 2021-05-14 湖北亿咖通科技有限公司 蓝牙接口的适配方法和车载娱乐信息系统
CN113242536A (zh) * 2021-04-14 2021-08-10 深圳市绘王动漫科技有限公司 蓝牙通信方法及蓝牙手写通信系统

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101634976B (zh) * 2009-08-27 2012-02-29 中兴通讯股份有限公司 一种为计算机提供蓝牙功能的方法及终端
FR2987471B1 (fr) * 2012-02-23 2015-03-27 Edevice Equipement electronique pour la replication de ports et le routage de signaux numeriques
CN103236096B (zh) * 2013-04-02 2016-06-08 深圳市文鼎创数据科技有限公司 蓝牙型智能密码钥匙
TW201525696A (zh) * 2013-12-19 2015-07-01 Unigrand Ltd 人機輸入信號的橋接系統與方法
CN105162498B (zh) * 2015-09-28 2018-09-25 飞天诚信科技股份有限公司 蓝牙适配器及其通信方法
CN105573926B (zh) * 2015-12-11 2018-12-14 联想(北京)有限公司 一种信息处理方法及电子设备
CN108738000A (zh) * 2018-03-30 2018-11-02 晨星半导体股份有限公司 基于安卓(Android)系统的蓝牙适配方法及终端设备
CN109874129B (zh) * 2019-03-31 2021-11-16 联想(北京)有限公司 一种数据处理方法及电子设备
CN110191228B (zh) * 2019-05-22 2022-01-14 努比亚技术有限公司 终端场景模式控制方法、终端以及计算机可读存储介质
CN112787982B (zh) * 2019-11-08 2024-09-27 中兴通讯股份有限公司 协议切换方法及装置、电子设备、计算机可读介质
CN114040370B (zh) * 2021-11-01 2023-10-20 国芯科技(广州)有限公司 一种多蓝牙设备的调试系统
CN113886164B (zh) * 2021-11-08 2024-09-03 广东乐心医疗电子股份有限公司 蓝牙产品的测试方法、装置以及电子设备
CN114173315B (zh) * 2022-02-14 2022-06-14 荣耀终端有限公司 蓝牙回连方法及终端设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004017575A2 (en) * 2002-08-14 2004-02-26 Tdk Systems Europe Ltd Bluetooth serial adapters
CN1564476A (zh) * 2004-04-15 2005-01-12 金纯� 集成蓝牙耳机和蓝牙usb适配器的装置
US20060025074A1 (en) * 2004-07-30 2006-02-02 Chih-Ming Liang Bluetooth-based headset
CN1937438A (zh) * 2005-09-23 2007-03-28 三星电子株式会社 多功能蓝牙耳机
CN101163296A (zh) * 2006-10-12 2008-04-16 三星电子株式会社 使用移动终端的蓝牙功能来控制打印机的方法
CN101232310A (zh) * 2007-09-18 2008-07-30 上海慧翰信息技术有限公司 蓝牙模块、蓝牙设备及其信息处理方法
CN101634976A (zh) * 2009-08-27 2010-01-27 中兴通讯股份有限公司 一种为计算机提供蓝牙功能的方法及终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040233901A1 (en) * 2003-05-22 2004-11-25 Kevin Sung Method and apparatus for establishing a wireless voice-over-IP telecommunication
JP2005210261A (ja) * 2004-01-21 2005-08-04 Renesas Technology Corp 無線通信システムおよび高周波ic
TWI238605B (en) * 2004-07-27 2005-08-21 Quanta Comp Inc Method for transmitting and receiving blue-tooth data and its apparatus
GB0423696D0 (en) * 2004-10-26 2004-11-24 M I E Medical Res Ltd Apparatus and method for transmitting data by radio
CN201266934Y (zh) * 2008-09-11 2009-07-01 四川大学 蓝牙无线集线器与基于蓝牙无线传输的装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004017575A2 (en) * 2002-08-14 2004-02-26 Tdk Systems Europe Ltd Bluetooth serial adapters
CN1564476A (zh) * 2004-04-15 2005-01-12 金纯� 集成蓝牙耳机和蓝牙usb适配器的装置
US20060025074A1 (en) * 2004-07-30 2006-02-02 Chih-Ming Liang Bluetooth-based headset
CN1937438A (zh) * 2005-09-23 2007-03-28 三星电子株式会社 多功能蓝牙耳机
CN101163296A (zh) * 2006-10-12 2008-04-16 三星电子株式会社 使用移动终端的蓝牙功能来控制打印机的方法
CN101232310A (zh) * 2007-09-18 2008-07-30 上海慧翰信息技术有限公司 蓝牙模块、蓝牙设备及其信息处理方法
CN101634976A (zh) * 2009-08-27 2010-01-27 中兴通讯股份有限公司 一种为计算机提供蓝牙功能的方法及终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2472733A4 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427617A (zh) * 2019-01-09 2020-07-17 阿里巴巴集团控股有限公司 数据处理方法、装置及设备
CN111427617B (zh) * 2019-01-09 2023-05-30 斑马智行网络(香港)有限公司 数据处理方法、装置及设备
CN112804672A (zh) * 2021-01-08 2021-05-14 湖北亿咖通科技有限公司 蓝牙接口的适配方法和车载娱乐信息系统
CN112804672B (zh) * 2021-01-08 2024-03-15 亿咖通(湖北)技术有限公司 蓝牙接口的适配方法和车载娱乐信息系统
CN113242536A (zh) * 2021-04-14 2021-08-10 深圳市绘王动漫科技有限公司 蓝牙通信方法及蓝牙手写通信系统
CN113242536B (zh) * 2021-04-14 2023-07-28 深圳市绘王动漫科技有限公司 蓝牙通信方法及蓝牙手写通信系统

Also Published As

Publication number Publication date
EP2472733B1 (en) 2015-11-11
EP2472733A1 (en) 2012-07-04
US20120190304A1 (en) 2012-07-26
US8718557B2 (en) 2014-05-06
PT2472733E (pt) 2016-03-08
CN101634976B (zh) 2012-02-29
EP2472733A4 (en) 2014-12-31
CN101634976A (zh) 2010-01-27
ES2561433T3 (es) 2016-02-26

Similar Documents

Publication Publication Date Title
WO2011022965A1 (zh) 一种为计算机提供蓝牙功能的方法及终端
US9414147B2 (en) Method and device for earphone and USB to share micro-USB interface
US8832345B2 (en) System for communicating between two electrical devices and method therefore
EP2453713B1 (en) Communication terminal and communication control method
KR101767262B1 (ko) UPnP를 이용한 입력 시스템에서 입력 방식을 변경하기 위한 방법 및 장치
EP2466480B1 (en) Dongle and method for operating external input means, and external input system with the dongle
EP1916830A1 (en) Method of controlling printer using bluetooth function of mobile terminal
US20090296723A1 (en) Multi-computer switch with function of transmitting data between computers
WO2005036906A1 (en) A mobile communication terminal and it’s radio communication module
CN103593064A (zh) 一种触控笔
TWI238605B (en) Method for transmitting and receiving blue-tooth data and its apparatus
US7970352B2 (en) Wireless communication device
US8943244B2 (en) Mobile device and USB system including the same
EP2018023A2 (en) Communication system and data adapter
CN103187991A (zh) 数据传输系统及其数据传输方法
WO2007012257A1 (fr) Procédé et appareil de contrôle distant sans fil du lecteur multimédia en diffusion continue dans le système hôte et système correspondant
TW201319821A (zh) 應用於至少二部人機介面裝置主機之間之無線傳輸方法、系統及其無線傳輸轉換裝置
WO2014106371A1 (zh) 一种数据终端、数据传输系统及热插拔控制方法
CN102447505A (zh) 通讯装置与信号处理方法
KR100866239B1 (ko) 블루투스 외장형 모뎀 겸용 헤드셋 및 그 제어 방법
CN113314117A (zh) 集语音识别和蓝牙ble于一体的遥控模块及遥控方法
CN101557652A (zh) 提高手机无线传输速率的装置及方法
WO2012167520A1 (zh) 自动功耗控制方法及系统
KR20120008216U (ko) 스마트폰 원격제어 애플리케이션 및 디스플레이 장치
CN101794231A (zh) 一种设备驱动加载装置及方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10811131

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 13391784

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2010811131

Country of ref document: EP