[go: up one dir, main page]

CN1175696C - A device and method for adding bluetooth function on cellular phone and Smart Phone platform - Google Patents

A device and method for adding bluetooth function on cellular phone and Smart Phone platform Download PDF

Info

Publication number
CN1175696C
CN1175696C CNB021599629A CN02159962A CN1175696C CN 1175696 C CN1175696 C CN 1175696C CN B021599629 A CNB021599629 A CN B021599629A CN 02159962 A CN02159962 A CN 02159962A CN 1175696 C CN1175696 C CN 1175696C
Authority
CN
China
Prior art keywords
bluetooth
application framework
phone
module
baseband processor
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CNB021599629A
Other languages
Chinese (zh)
Other versions
CN1426265A (en
Inventor
何刚
王准
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Flying Rescue Medical Technology Beijing Co ltd
Beihang University
Original Assignee
AIWEITI SOFTWARE TECHNOLOGY (BEIJING) Co Ltd
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 AIWEITI SOFTWARE TECHNOLOGY (BEIJING) Co Ltd filed Critical AIWEITI SOFTWARE TECHNOLOGY (BEIJING) Co Ltd
Priority to CNB021599629A priority Critical patent/CN1175696C/en
Publication of CN1426265A publication Critical patent/CN1426265A/en
Application granted granted Critical
Publication of CN1175696C publication Critical patent/CN1175696C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种在已有蜂窝电话和Smart Phone平台上添加蓝牙功能的方法,所述的设备包括:人机界面单元、GSM/GPRS模块、蓝牙模块、天线、编码解码器、其它外围设备,所述的方法的特征在于:已有蜂窝电话和Smart Phone的硬件结构不作大的改变,只需增加蓝牙模块和CODEC电路;在蓝牙基带处理机中集成了蓝牙协议栈和多种蓝牙应用框架(Profiles);蜂窝电话和Smart Phone的主处理机和蓝牙基带处理机之间采用通用异步收发(UART)格式的物理接口;蜂窝电话和Smart Phone的主处理机和蓝牙基带处理机之间信息交互不采用蓝牙标准的主机控制接口(HCI)协议,而采用自定义的简单消息,该方法的优点在于,由于在蓝牙基带处理机中实现了大部分蓝牙相关的功能,电子工程师可以在不熟悉蓝牙技术的情况下,通过采用蓝牙基带处理机,较快地在已有蜂窝电话和Smart Phone平台上实现满足蓝牙规范的应用。

The invention discloses a method for adding bluetooth function on the existing cellular phone and Smart Phone platform. The said equipment includes: man-machine interface unit, GSM/GPRS module, bluetooth module, antenna, codec and other peripheral equipment , the method is characterized in that: the hardware structure of existing cell phone and Smart Phone does not change greatly, only need to increase bluetooth module and CODEC circuit; Integrated bluetooth protocol stack and multiple bluetooth application frameworks in the bluetooth baseband processor (Profiles); the physical interface between the main processor of the cellular phone and the Smart Phone and the Bluetooth baseband processor adopts the universal asynchronous transceiver (UART) format; the information exchange between the main processor of the cellular phone and the Smart Phone and the Bluetooth baseband processor Instead of using the Bluetooth standard host control interface (HCI) protocol, a self-defined simple message is used. The advantage of this method is that because most of the Bluetooth-related functions are implemented in the Bluetooth baseband processor, electronic engineers can use it without familiarity with Bluetooth. In the case of technology, by adopting the Bluetooth baseband processor, the application meeting the Bluetooth specification can be quickly realized on the existing cellular phone and Smart Phone platform.

Description

一种在蜂窝电话和Smart Phone平台上 添加蓝牙功能的设备和方法A kind of equipment and method for adding bluetooth function on cellular phone and Smart Phone platform

技术领域technical field

本发明涉及无线通信领域中的蓝牙技术,具体地涉及增加蓝牙通信功能的方法。The invention relates to bluetooth technology in the field of wireless communication, in particular to a method for increasing bluetooth communication functions.

背景技术Background technique

蓝牙技术是一种无线数据与语音通信的开放性全球规范,旨在建立微功耗、低成本、短距离、小型化的无线连接,是为无线和静态通信环境提供带保护的特殊连接的短程无线电技术。蓝牙技术在工业、农业、公共事业领域,尤其是在消费类电子领域有着广阔的发展前景。蜂窝电话和Smart Phone越来越多地将蓝牙作为必须的装备。Bluetooth technology is an open global specification for wireless data and voice communication. It aims to establish a wireless connection with low power consumption, low cost, short distance and miniaturization. radio technology. Bluetooth technology has broad prospects for development in the fields of industry, agriculture, and public utilities, especially in the field of consumer electronics. Cell phones and Smart Phones increasingly include Bluetooth as a must-have.

现有的蓝牙蜂窝电话和Smart Phone,多采用外置的蓝牙基带处理机,该处理机与主处理机之间为通用异步收发(UART)格式的传输层接口,采用蓝牙规范定义的主机控制接口(HCI)协议进行信息交互。该方案的特点是,主处理机负责执行蓝牙协议栈和应用框架(Profile),蓝牙基带处理机完成蓝牙基带处理、射频收发等蓝牙规范定义的较低层功能。Existing Bluetooth cellular phones and Smart Phones mostly use an external Bluetooth baseband processor. The interface between the processor and the main processor is a transport layer interface in the format of Universal Asynchronous Receiver and Receiver (UART), and the host control interface defined by the Bluetooth specification is adopted. (HCI) protocol for information exchange. The feature of this solution is that the main processor is responsible for executing the Bluetooth protocol stack and application framework (Profile), and the Bluetooth baseband processor completes the lower-layer functions defined by Bluetooth specifications such as Bluetooth baseband processing and radio frequency transceiver.

采用上述方法给蜂窝电话和Smart Phone添加蓝牙功能,需要在主处理机上实现蓝牙协议栈和Profile。对于一般的技术人员,在短时间内全面掌握蓝牙技术,从而开发出具有蓝牙功能的产品具有相当大的难度;即使不自己开发、直接采用第三方商用的蓝牙协议栈和Profile,要达到在主处理机平台上和已有GSM/GPRS或CDMA应用协同工作的目的也很不容易。这种现象普遍存在,影响了蓝牙技术的推广。To add the Bluetooth function to the cellular phone and Smart Phone using the above method, it is necessary to implement the Bluetooth protocol stack and Profile on the main processor. For ordinary technicians, it is quite difficult to fully grasp Bluetooth technology in a short period of time, so as to develop products with Bluetooth functions; The purpose of cooperating with existing GSM/GPRS or CDMA applications on the processor platform is also not easy. This phenomenon is widespread and affects the promotion of Bluetooth technology.

发明内容Contents of the invention

本发明的目的在于克服上述的缺陷,提供一种在已有蜂窝电话和Smart Phone平台上添加蓝牙功能的设备和方法。借助该方法,应用工程师可以在不熟悉蓝牙技术的情况下,较快地在已有蜂窝电话和Smart Phone平台上实现满足蓝牙规范的应用。The purpose of the present invention is to overcome above-mentioned defective, provide a kind of equipment and the method that add bluetooth function on existing cell phone and Smart Phone platform. With this method, application engineers can quickly implement applications that meet Bluetooth specifications on existing cellular phones and Smart Phone platforms without being familiar with Bluetooth technology.

本发明的一种在已有蜂窝电话和Smart Phone平台上添加蓝牙功能的设备和方法是通过如下的技术方案实现的,所述的设备包括:A kind of equipment and method for adding bluetooth function on existing cellular phone and Smart Phone platform of the present invention are realized by following technical scheme, and described equipment comprises:

人机界面单元,用于人机交互,该人机界面单元与主处理机连接;A man-machine interface unit is used for man-machine interaction, and the man-machine interface unit is connected with the main processor;

GSM/GPRS模块,用于实现GSM/SPRS或CDMA基带的编解码、话音编码,该GSM/GPRS模块包括主处理机,主处理机内置DSP、微控制器、SRAM和闪存单元;射频模块完成射频的发送和接收相关功能;电源管理模块,用于对设备电源的管理;The GSM/GPRS module is used to implement GSM/SPRS or CDMA baseband codec and voice coding. The GSM/GPRS module includes a main processor with built-in DSP, microcontroller, SRAM and flash memory unit; the radio frequency module completes the radio frequency The sending and receiving related functions; the power management module is used to manage the power of the device;

蓝牙模块,包括基带处理机和无线收发装置,用于实现对链路管理器、基带控制器、无线收发器和链路管理协议功能模块的控制;Bluetooth module, including a baseband processor and a wireless transceiver device, used to realize the control of the link manager, baseband controller, wireless transceiver and link management protocol function module;

基带处理机同时集成了蓝牙协议栈和多种Profile,通过UART接口与主处理机相连,该基带处理机能够实现对蓝牙服务发现协议(SDP)、串口仿真协议(RFCOMM)、电话控制协议(TCS)、逻辑链接控制和适配协议(L2CAP)及HCI驱动器功能模块的控制,实现包括通用访问应用框架(GAP)、人机设备应用框架(HID)、服务发现应用框架(SDAP)、无绳电话应用框架(CTP)、内部电话应用框架(ICP)、车载免提电话应用框架(HFP)、耳机网关应用框架(HSP/AG)、串口应用框架(SPP)、对象推应用框架(OPP)在内的多种应用框架(Profile);The baseband processor integrates the Bluetooth protocol stack and various profiles at the same time, and is connected to the main processor through the UART interface. The baseband processor can implement Bluetooth service discovery protocol (SDP), serial port emulation protocol (RFCOMM), telephone control ), Logical Link Control and Adaptation Protocol (L2CAP) and control of HCI driver function modules, including Generic Access Application Framework (GAP), Human Device Application Framework (HID), Service Discovery Application Framework (SDAP), cordless phone applications Framework (CTP), Internal Phone Application Framework (ICP), Car Hands-Free Phone Application Framework (HFP), Headset Gateway Application Framework (HSP/AG), Serial Port Application Framework (SPP), Object Push Application Framework (OPP) Various application frameworks (Profile);

天线,用于对无线信号的接收和发送,并与蓝牙无线收发装置连接;The antenna is used for receiving and sending wireless signals, and is connected with the Bluetooth wireless transceiver device;

编码解码器(CODEC),其一端通过脉冲编码调制(PCM)接口与蓝牙模块相连,将蓝牙模块侧的数字话音信号转换成模拟信号,另一端通过模拟信号接口与GSM/GPRS模块相连,将GSM/GPRS模块侧的模拟信号转换成数字信号。Codec (CODEC), one end of which is connected to the Bluetooth module through a pulse code modulation (PCM) interface, converts the digital voice signal on the Bluetooth module side into an analog signal, and the other end is connected to the GSM/GPRS module through an analog signal interface, and the GSM The analog signal on the /GPRS module side is converted into a digital signal.

其它外围设备,包括SIM卡接口电路、受话器和扬声器,用于传统蜂窝电话、Smart Phone需要的功能。Other peripherals, including SIM card interface circuits, receivers and speakers, are used for functions required by traditional cellular phones and Smart Phones.

所述的人机界面单元是按钮、发光二极管、键盘、液晶显示屏或是其它可用的装置。The man-machine interface unit is a button, a light emitting diode, a keyboard, a liquid crystal display or other available devices.

所述的方法包括:The methods described include:

(a)已有蜂窝电话和Smart Phone的硬件结构不作大的改变,只需增加蓝牙模块和CODEC电路;(a) The hardware structure of the existing cellular phone and Smart Phone does not need to be greatly changed, only the Bluetooth module and the CODEC circuit need to be added;

(b)在蓝牙基带处理机中集成了蓝牙协议栈和多种应用框架;(b) Integrating the Bluetooth protocol stack and multiple application frameworks in the Bluetooth baseband processor;

(c)蜂窝电话和Smart Phone的主处理机和蓝牙基带处理机之间采用UART格式的传输层接口;(c) A transport layer interface in UART format between the main processor and the Bluetooth baseband processor of the cellular phone and the Smart Phone;

(d)蜂窝电话和Smart Phone的主处理机和蓝牙基带控制器之间信息交互不采用蓝牙标准的HCI协议,而采用自定义的简单消息。(d) The information exchange between the main processor and the Bluetooth baseband controller of the cellular phone and Smart Phone does not use the HCI protocol of the Bluetooth standard, but uses a custom simple message.

采用本发明的方法,使开发人员只需了解如何使用采用自定义的简单消息与蓝牙基带处理机进行信息交互,就可以设计出符合规范的蓝牙产品,不必了解蓝牙协议栈以及Profile的技术细节,降低了产品的设计成本,提高了产品的可靠性,并且使产品能够迅速进入市场。By adopting the method of the present invention, developers only need to know how to use self-defined simple messages to carry out information interaction with the Bluetooth baseband processor, and can design bluetooth products that meet the specifications, without knowing the technical details of the bluetooth protocol stack and Profile, The design cost of the product is reduced, the reliability of the product is improved, and the product can enter the market quickly.

通过借助附图详细描述本发明的优选实施例,将有助于理解本发明的目的和优点。其中:Objects and advantages of the invention will be facilitated by describing in detail preferred embodiments of the invention with the aid of the accompanying drawings. in:

附图说明Description of drawings

图1是蓝牙基带处理机的硬件结构图;Fig. 1 is the hardware structural diagram of bluetooth baseband processor;

图2是常规蓝牙基带处理机的功能框图;Fig. 2 is the functional block diagram of conventional Bluetooth baseband processor;

图3是根据本发明采用的蓝牙基带处理机的功能框图;Fig. 3 is the functional block diagram of the bluetooth baseband processor that adopts according to the present invention;

图4是根据本发明实现的蓝牙GSM/GPRS蜂窝电话的硬件结构图;Fig. 4 is the hardware structural diagram of the Bluetooth GSM/GPRS cellular phone realized according to the present invention;

图5解释根据本发明实现的蓝牙蜂窝电话中主处理机和蓝牙基带处理机进行信息交互的方式。Fig. 5 explains the manner of information exchange between the main processor and the Bluetooth baseband processor in the Bluetooth cellular phone realized according to the present invention.

具体实施方式Detailed ways

图1是蓝牙基带处理机的硬件结构图。如图1所示,蓝牙基带处理机300由多个硬件单元构成。其中,微处理机360是芯片的核心,是控制软件的执行平台。控制软件的程序和数据分别存放在ROM390和SRAM380中。蓝牙基带处理机的各种对外接口分别由相关的硬件单元管理。基带控制逻辑370完成基带控制中可由逻辑电路实现的功能,与外部的射频芯片相连。射频芯片也可以内置于蓝牙基带处理机中。UART310支持UART格式的传输接口。USB320支持通用串行总线(USB)格式的传输接口。UART310和USB320通常用于与外部处理机通信,传送符合蓝牙规范的HCI命令和数据。GPIO330用于与外部的硬件进行交互。音频CODEC340采用脉冲编码调制(PCM)的格式,是蓝牙基带处理机进行语音信号收发的通路。外部存储器接口用于存储器的扩充,包含数据线、地址线、片选信号等。Fig. 1 is a hardware structural diagram of the Bluetooth baseband processor. As shown in FIG. 1 , the Bluetooth baseband processor 300 is composed of multiple hardware units. Among them, the microprocessor 360 is the core of the chip and is the execution platform of the control software. The program and data of the control software are stored in ROM390 and SRAM380 respectively. Various external interfaces of the Bluetooth baseband processor are managed by relevant hardware units respectively. The baseband control logic 370 completes the functions that can be realized by the logic circuit in the baseband control, and is connected with an external radio frequency chip. The radio frequency chip can also be built into the Bluetooth baseband processor. UART310 supports the transmission interface of UART format. USB320 supports the transmission interface of Universal Serial Bus (USB) format. UART310 and USB320 are usually used to communicate with external processors and transmit HCI commands and data conforming to the Bluetooth specification. GPIO330 is used to interact with external hardware. The audio CODEC340 adopts the pulse code modulation (PCM) format, which is the channel for the Bluetooth baseband processor to send and receive voice signals. The external memory interface is used for memory expansion, including data lines, address lines, chip select signals, etc.

图2是常规蓝牙基带处理机的功能框图,基于图1所示的硬件(含有内置射频芯片)。其中,链路管理器240负责接收上层模块发送的命令和数据,并将结果返还给上层。链路管理器240通过基带控制器220和射频模块210完成相应的功能。链路管理协议230用于不同蓝牙设备链路管理器之间的相互通信。基带控制器220根据链路管理器240的命令操作。射频模块210根据标准的规格无线地发送和接收信息。可以看出,蓝牙基带处理机本身不能构成独立的产品,必须与外部处理机相连,在外部处理机上执行蓝牙应用程序。Fig. 2 is a functional block diagram of a conventional Bluetooth baseband processor, based on the hardware shown in Fig. 1 (including a built-in radio frequency chip). Among them, the link manager 240 is responsible for receiving the commands and data sent by the upper layer module, and returning the result to the upper layer. The link manager 240 completes corresponding functions through the baseband controller 220 and the radio frequency module 210 . The link management protocol 230 is used for mutual communication between link managers of different Bluetooth devices. The baseband controller 220 operates according to commands of the link manager 240 . The radio frequency module 210 wirelessly transmits and receives information according to standard specifications. It can be seen that the Bluetooth baseband processor itself cannot constitute an independent product, it must be connected with an external processor, and the Bluetooth application program is executed on the external processor.

图3是根据本发明采用的蓝牙基带处理机的功能框图。基于图1所示的硬件。其中,射频模块450、基带控制器460、链路管理器470、链路管理协议440、与图2相应模块的功能一致。SDP(服务发现协议)440、TCS(电话控制协议)480和RFCOMM(串口仿真协议)490是各种蓝牙协议。标准通信协议L2CAP(逻辑链接控制和适配协议)430多路复用上层的各种协议。蓝牙应用程序410包括了GAP(通用访问应用框架)417、HID(人机设备应用框架)418、SDAP(服务发现应用框架)416、CTP(无绳电话应用框架)415、ICP(内部电话应用框架)414、HFP(车载免提电话应用框架)413、HSP/AG(耳机网关应用框架)412、SPP(串口应用框架)411、OPP(对象推应用框架)419等。在其它可能的实施中,蓝牙基带处理机装入的应用程序可能是本图蓝牙应用程序410的一个子集。传输层接口419用于与主处理机进行通信,解释和处理主处理机发来的命令和数据,并将蓝牙基带处理机的状态和相关数据发送至主处理机。Fig. 3 is a functional block diagram of a Bluetooth baseband processor adopted according to the present invention. Based on the hardware shown in Figure 1. Among them, the functions of the radio frequency module 450, the baseband controller 460, the link manager 470, and the link management protocol 440 are consistent with those of the corresponding modules in FIG. 2 . SDP (Service Discovery Protocol) 440, TCS (Telephone Control Protocol) 480 and RFCOMM (Serial Port Emulation Protocol) 490 are various Bluetooth protocols. The standard communication protocol L2CAP (Logical Link Control and Adaptation Protocol) 430 multiplexes various protocols of the upper layer. Bluetooth application program 410 includes GAP (General Access Application Framework) 417, HID (Human Device Application Framework) 418, SDAP (Service Discovery Application Framework) 416, CTP (Cordless Telephony Application Framework) 415, ICP (Internal Telephony Application Framework) 414, HFP (car hands-free phone application framework) 413, HSP/AG (headphone gateway application framework) 412, SPP (serial port application framework) 411, OPP (object push application framework) 419, etc. In other possible implementations, the application program loaded into the Bluetooth baseband processor may be a subset of the Bluetooth application program 410 in this figure. The transport layer interface 419 is used to communicate with the main processor, interpret and process the commands and data sent by the main processor, and send the status and related data of the Bluetooth baseband processor to the main processor.

图4是根据本发明实现的蓝牙GSM/GPRS蜂窝电话的硬件结构图。其中,人机界面单元510,用于人机交互,与主处理机连接;GSM/GPRS模块520,包括主处理机521、射频522和电源管理523。主处理机521内置DSP、微控制器、SRAM和闪存等单元,主要功能为GSM/SPRS基带的编解码、声音语音编码等;此外,GSM/GPRS的应用程序也以此为执行平台。射频模块522完成射频的发送和接收相关功能。电源管理523负责各种省电模式的控制。蓝牙模块550包括基带处理机551和无线收发装置552,能够实现对链路管理器、基带控制器、无线收发器和链路管理协议功能模块的控制。基带处理机551同时集成了蓝牙协议栈和多种Profile(参照图3),通过UART接口与主处理机521相连。天线560用于对无线信号的接收和发送,并与蓝牙无线收发装置连接;编码解码器(CODEC)540,一端通过脉冲编码调制(PCM)接口与蓝牙模块550相连,将蓝牙模块侧的数字话音信号转换成模拟信号;另一端通过模拟信号接口与GSM/GPRS模块520相连,将GSM/GPRS模块侧的模拟信号转换成数字信号。其它外围设备530,包括SIM卡接口电路、受话器和扬声器等,用于传统蜂窝电话、Smart Phone需要的功能。Fig. 4 is a hardware structural diagram of a Bluetooth GSM/GPRS cellular phone realized according to the present invention. Among them, the man-machine interface unit 510 is used for man-machine interaction and is connected with the main processor; the GSM/GPRS module 520 includes the main processor 521 , radio frequency 522 and power management 523 . The main processor 521 has built-in units such as DSP, microcontroller, SRAM and flash memory, and its main functions are GSM/SPRS baseband codec, voice coding, etc.; in addition, GSM/GPRS applications also use this as an execution platform. The radio frequency module 522 completes functions related to sending and receiving radio frequency. The power management 523 is responsible for the control of various power saving modes. The Bluetooth module 550 includes a baseband processor 551 and a wireless transceiver 552, capable of controlling the link manager, baseband controller, wireless transceiver and link management protocol functional modules. The baseband processor 551 integrates the Bluetooth protocol stack and various profiles (refer to FIG. 3 ), and is connected to the main processor 521 through a UART interface. Antenna 560 is used for receiving and sending wireless signals, and is connected with Bluetooth wireless transceiver; Codec (CODEC) 540, one end is connected with Bluetooth module 550 through a pulse code modulation (PCM) interface, and the digital voice on the Bluetooth module side The signal is converted into an analog signal; the other end is connected to the GSM/GPRS module 520 through an analog signal interface, and the analog signal on the GSM/GPRS module side is converted into a digital signal. Other peripheral equipment 530, including SIM card interface circuit, receiver and loudspeaker, etc., are used for functions required by traditional cellular phones and Smart Phones.

图5解释根据本发明实现的蓝牙蜂窝电话中主处理机和蓝牙基带处理机进行信息交互的方式。首先,主处理机向蓝牙基带处理机发送命令,进行初始化配置(S100)。命令可采用AT命令的格式。如,用“ATBTCONF n0n1n2”设置一条纪录,其中,n0为以16进制表示的记录类型;n1为以16进制表示的记录长度;n2为16进制表示的纪录内容。蓝牙基带处理机在收到该命令后,进行配置操作,成功后返回“OK”,否则,返回“ERROR”。接着,实现具体的功能。这里以该蜂窝电话需要与指定的某个蓝牙耳机进行配对(Pairing)为例(S110)。主处理机向蓝牙基带处理机发送命令,要求进入等待配对状态(S120)。如:“ATBTWAITn0n1”。其中,n0为允许与之配对设备的类型,用一个数字字符表示,0为所有设备;1为耳机;2为计算机;等等。n1为此次配对所需要的个人信息码(PIN)。等待配对的时间可以用另外一个AT命令“ATBTSET”来加以设定。蓝牙基带处理机的响应是,配对成功后,返回耳机的名字和一个索引号(S140,S130)。该索引号可用于日后获取该耳机的相关信息。主处理机得到该响应后,即可经人机界面通知用户结果(S140)。Fig. 5 explains the manner of information exchange between the main processor and the Bluetooth baseband processor in the Bluetooth cellular phone realized according to the present invention. First, the main processor sends a command to the Bluetooth baseband processor to perform initial configuration (S100). The command may be in the format of an AT command. For example, use "ATBTCONF n0n1n2" to set a record, where n0 is the record type in hexadecimal; n1 is the record length in hexadecimal; n2 is the record content in hexadecimal. After receiving the command, the Bluetooth baseband processor performs the configuration operation, and returns "OK" if successful, otherwise, returns "ERROR". Next, implement specific functions. Here, it is taken as an example that the cellular phone needs to be paired with a designated Bluetooth headset (Pairing) (S110). The main processor sends a command to the Bluetooth baseband processor, requesting to enter the waiting state for pairing (S120). For example: "ATBTWAITn0n1". Among them, n0 is the type of device that is allowed to be paired with it, represented by a numeric character, 0 is all devices; 1 is earphone; 2 is computer; and so on. n1 is the personal information code (PIN) required for this pairing. The waiting time for pairing can be set with another AT command "ATBTSET". The response of the Bluetooth baseband processor is to return the name of the earphone and an index number after the pairing is successful (S140, S130). This index number can be used to obtain information about the headset at a later date. After the main processor receives the response, it can notify the user of the result via the man-machine interface (S140).

如上所述,由于与蓝牙相关的应用都集成到了蓝牙基带处理机中,主处理机的工作被极大地简化了。对于一般的技术人员,可以在短时间内掌握蓝牙基带处理机的接口规则,从而可以较迅速地开发出具有蓝牙功能的产品。As mentioned above, since the applications related to Bluetooth are integrated into the Bluetooth baseband processor, the work of the main processor is greatly simplified. For ordinary technicians, they can master the interface rules of the Bluetooth baseband processor in a short period of time, so that products with Bluetooth functions can be developed relatively quickly.

虽然本发明是参考其优选实施例示出和描述的,但本领域的普通技术人员应该理解,在不脱离附属的权利要求书所限定的本发明的精神和范围的情况下,可以进行形式和细节的各种改变。While the present invention has been shown and described with reference to preferred embodiments thereof, it will be understood by those skilled in the art that changes in form and details may be made without departing from the spirit and scope of the invention as defined in the appended claims. of various changes.

Claims (4)

1、一种在已有蜂窝电话和Smart Phone平台上添加蓝牙功能的设备,其特征在于:所述的设备包括:1, a kind of equipment that adds bluetooth function on existing cellular phone and Smart Phone platform, it is characterized in that: described equipment comprises: 人机界面单元,用于人机交互,该人机界面单元与主处理机连接;A man-machine interface unit is used for man-machine interaction, and the man-machine interface unit is connected with the main processor; GSM/GPRS模块,用于实现GSM/GPRS或CDMA基带的编解码、话音编码,该GSM/GPRS模块包括主处理机,所述主处理机内置数字信号处理器DSP、微控制器、SRAM和闪存单元;射频模块完成射频信号的发送和接收;电源管理模块,用于对设备电源的管理;GSM/GPRS module, used to realize codec and voice coding of GSM/GPRS or CDMA baseband, this GSM/GPRS module includes a main processor, and the built-in digital signal processor DSP, microcontroller, SRAM and flash memory of the said main processor unit; the radio frequency module completes the sending and receiving of radio frequency signals; the power management module is used to manage the power supply of the equipment; 蓝牙模块,包括基带处理机和无线收发装置,用于实现对链路管理器、基带控制器、无线收发器和链路管理协议功能模块的控制;Bluetooth module, including a baseband processor and a wireless transceiver device, used to realize the control of the link manager, baseband controller, wireless transceiver and link management protocol function module; 基带处理机同时集成了蓝牙协议栈和多种应用框架,通过UART接口与主处理机相连,所述基带处理机能够实现对蓝牙服务发现协议SDP、串口仿真协议RFCOMM、电话控制协议TCS、逻辑链接控制和适配协议L2CAP及主机控制接口HCI的驱动器功能模块的控制,所述多种应用框架包括通用访问应用框架GAP、人机设备应用框架HID、服务发现应用框架SDAP、无绳电话应用框架CTP、内部电话应用框架ICP、车载免提电话应用框架HFP、耳机网关应用框架HSP/AG、串口应用框架SPP和对象推应用框架OPP;The baseband processor integrates the Bluetooth protocol stack and various application frameworks at the same time, and is connected to the main processor through the UART interface. The baseband processor can implement the Bluetooth service discovery protocol SDP, serial port emulation protocol RFCOMM, telephone control The control and adaptation protocol L2CAP and the control of the driver function module of the host control interface HCI, the various application frameworks include the general access application framework GAP, the man-machine equipment application framework HID, the service discovery application framework SDAP, the cordless phone application framework CTP, Internal phone application framework ICP, car hands-free phone application framework HFP, headset gateway application framework HSP/AG, serial port application framework SPP and object push application framework OPP; 天线,用于实现对无线信号的接收和发送,并与所述无线收发装置连接;An antenna, used to realize the reception and transmission of wireless signals, and connected with the wireless transceiver device; 编解码器CODEC,其一端通过脉冲编码调制接口与蓝牙模块相连,将蓝牙模块侧的数字话音信号转换成模拟信号,另一端通过模拟信号接口与GSM/GPRS模块相连,将GSM/GPRS模块侧的模拟信号转换成数字信号;以及CODEC, one end of which is connected to the Bluetooth module through a pulse code modulation interface, converts the digital voice signal on the Bluetooth module side into an analog signal, and the other end is connected to the GSM/GPRS module through an analog conversion of analog signals into digital signals; and 其它外围设备,包括SIM卡接口电路、受话器和扬声器,用于实现传统蜂窝电话、Smart Phone需要的功能。Other peripheral devices, including SIM card interface circuits, receivers and speakers, are used to realize the functions required by traditional cellular phones and Smart Phones. 2、根据权利要求1所述的设备,其特征在于:所述的人机界面单元是按钮、发光二极管、键盘、液晶显示屏。2. The device according to claim 1, wherein the human-machine interface unit is a button, a light emitting diode, a keyboard, or a liquid crystal display. 3、一种在已有蜂窝电话和Smart Phone平台上添加蓝牙功能的方法,其特征在于:所述的方法包括:3, a kind of method that adds bluetooth function on existing cell phone and Smart Phone platform, it is characterized in that: described method comprises: (a)在已有蜂窝电话和Smart Phone的硬件结构中增加蓝牙模块和编解码器CODEC电路;(a) increase bluetooth module and codec CODEC circuit in the hardware structure of existing cellular phone and Smart Phone; (b)在蓝牙基带处理机中集成蓝牙协议栈和多种应用框架;(b) Integrating the Bluetooth protocol stack and multiple application frameworks in the Bluetooth baseband processor; (c)蜂窝电话和Smart Phone的主处理机和蓝牙基带处理机之间采用UART格式的传输层接口;(c) A transport layer interface in UART format between the main processor and the Bluetooth baseband processor of the cellular phone and the Smart Phone; (d)蜂窝电话和Smart Phone的主处理机和蓝牙基带控制器之间信息交互不采用蓝牙标准的HCI协议,而采用自定义消息。(d) The information exchange between the main processor and the Bluetooth baseband controller of the cellular phone and Smart Phone does not use the HCI protocol of the Bluetooth standard, but uses a custom message. 4、根据权利要求3所述的方法,其特征在于:所述的多种应用框架包括通用访问应用框架GAP、人机设备应用框架HID、服务发现应用框架SDAP、无绳电话应用框架CTP、内部电话应用框架ICP、车载免提电话应用框架HFP、耳机网关应用框架HSP/AG、串口应用框架SPP和对象推应用框架OPP。4. The method according to claim 3, characterized in that: said multiple application frameworks include general access application framework GAP, man-machine device application framework HID, service discovery application framework SDAP, cordless telephone application framework CTP, internal telephone Application framework ICP, vehicle hands-free phone application framework HFP, headset gateway application framework HSP/AG, serial port application framework SPP and object push application framework OPP.
CNB021599629A 2002-12-31 2002-12-31 A device and method for adding bluetooth function on cellular phone and Smart Phone platform Expired - Fee Related CN1175696C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021599629A CN1175696C (en) 2002-12-31 2002-12-31 A device and method for adding bluetooth function on cellular phone and Smart Phone platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021599629A CN1175696C (en) 2002-12-31 2002-12-31 A device and method for adding bluetooth function on cellular phone and Smart Phone platform

Publications (2)

Publication Number Publication Date
CN1426265A CN1426265A (en) 2003-06-25
CN1175696C true CN1175696C (en) 2004-11-10

Family

ID=4753376

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021599629A Expired - Fee Related CN1175696C (en) 2002-12-31 2002-12-31 A device and method for adding bluetooth function on cellular phone and Smart Phone platform

Country Status (1)

Country Link
CN (1) CN1175696C (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100463481C (en) * 2003-06-30 2009-02-18 中兴通讯股份有限公司 A method and system for realizing short-distance wireless communication in public switched telephone network
CN100454953C (en) * 2003-07-06 2009-01-21 艾威梯软件技术(北京)有限公司 An equipment for implementing automatic call forwarding of blue tooth handset and method thereof
CN100377922C (en) * 2004-02-23 2008-04-02 拍档科技股份有限公司 Control module capable of being co-constructed in vehicle audio
ATE428994T1 (en) * 2004-03-19 2009-05-15 Nokia Corp DETECTOR LOGIC AND RADIO IDENTIFICATION DEVICE AND METHOD FOR IMPROVING TERMINAL OPERATION
CN101232310B (en) * 2007-09-18 2013-01-16 福建慧翰信息技术有限公司 Blue tooth module, blue tooth equipment and information processing method thereof
CN101437139B (en) * 2007-11-16 2010-12-22 希姆通信息技术(上海)有限公司 System and method for using Bluetooth earphone in visual telephone
US8526930B2 (en) * 2011-07-07 2013-09-03 GM Global Technology Operations LLC Enhanced smartphone in-vehicle accommodation
CN104583897B (en) 2012-07-24 2017-12-26 瑞萨电子株式会社 Semiconductor devices and electronic equipment
CN108093387B (en) * 2018-01-17 2021-01-19 深圳市信锐网科技术有限公司 Enterprise-level Bluetooth network system, central controller, Bluetooth gateway and deployment method
CN114040370B (en) * 2021-11-01 2023-10-20 国芯科技(广州)有限公司 Debugging system of many bluetooth equipment

Also Published As

Publication number Publication date
CN1426265A (en) 2003-06-25

Similar Documents

Publication Publication Date Title
CN1175696C (en) A device and method for adding bluetooth function on cellular phone and Smart Phone platform
CN112996089B (en) Data transmission method, device, storage medium and electronic device
CN101163296A (en) Method for controlling printer using bluetooth function of mobile terminal
WO2011022965A1 (en) Bluetooth function providing method and terminal for computer
WO2005036906A1 (en) A mobile communication terminal and it’s radio communication module
CN100471201C (en) Mobile Phone and How to Operate It
CN103593064A (en) Stylus
US20060160569A1 (en) Cellular phone and portable storage device using the same
WO2016112626A1 (en) System and method for embedded operating system achieving bluetooth slave device function
CN101547016A (en) Split mobile terminal
CN116231815B (en) Method for controlling charging and electronic equipment
CN101651473B (en) Communication device, method of manufacturing chip and method of providing wireless communication specification
CN101997944A (en) Portable electronic device
CN108234673B (en) Vehicle distributed mapping system and mapping method
CN201207644Y (en) Wireless communication device embedded in electronic equipment
CN1262102C (en) Radio communicator matched with portable computer
CN101261534B (en) Power Saving Method for Two-way Wireless Peripheral Devices
CN201057654Y (en) Universal gateway device with Bluetooth control
CN101114846A (en) Bluetooth wireless multimedia transmission device and system and method thereof
US20070207735A1 (en) Mobile communication terminal having wireless communication module and sound output control method thereof
CN204810548U (en) Novel multi -functional audio frequency module of bluetooth
CN1262134C (en) Method of realizing instant insersion instant use of mobile phone radio communication module
JP4188830B2 (en) Modular data device
KR20080004097A (en) Bluetooth system module
CN1415502A (en) Carried global positioning and communicating system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: AIWEITI SOFTWARE TECHNOLOGY (BEIJING) CO., LTD.;

Free format text: FORMER OWNER: AIWEITI SOFTWARE TECHNOLOGY (BEIJING) CO., LTD.

Effective date: 20071207

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20071207

Address after: No. 12 information road, Beijing, Zhongguancun development building, 5 floor, zip code: 100085, Haidian District

Co-patentee after: BEIHANG University

Patentee after: IVT (BEIJING) SOFTWARE TECHNOLOGY Inc.

Address before: No. 12 information road, Beijing, Zhongguancun development building, 5 floor, zip code: 100085, Haidian District

Patentee before: IVT (BEIJING) SOFTWARE TECHNOLOGY Inc.

C56 Change in the name or address of the patentee

Owner name: IWILL LADDER TECHNOLOGY (BEIJING) CO., LTD.

Free format text: FORMER NAME: AIWEITI SOFTWARE TECHNOLOGY (BEIJING) CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: No. 12 information road, Beijing, Zhongguancun development building, 5 floor, zip code: 100085, Haidian District

Co-patentee after: BEIHANG University

Patentee after: IVT SOFTWARE TECHNOLOGY Inc.

Address before: No. 12 information road, Beijing, Zhongguancun development building, 5 floor, zip code: 100085, Haidian District

Co-patentee before: Beihang University

Patentee before: IVT (BEIJING) SOFTWARE TECHNOLOGY Inc.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100085, Beijing Haidian District information road 12, Zhongguancun development building, 5 floor

Co-patentee after: BEIHANG University

Patentee after: Flying Rescue Medical Technology (Beijing) Co.,Ltd.

Address before: 100085, Beijing Haidian District information road 12, Zhongguancun development building, 5 floor

Co-patentee before: Beihang University

Patentee before: IVT SOFTWARE TECHNOLOGY Inc.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20041110

Termination date: 20211231