CN101232686B - Method for implementing multimodule mobile phone blue tooth hands-free voice switch - Google Patents

Method for implementing multimodule mobile phone blue tooth hands-free voice switch Download PDF

Info

Publication number
CN101232686B
CN101232686B CN200810081632XA CN200810081632A CN101232686B CN 101232686 B CN101232686 B CN 101232686B CN 200810081632X A CN200810081632X A CN 200810081632XA CN 200810081632 A CN200810081632 A CN 200810081632A CN 101232686 B CN101232686 B CN 101232686B
Authority
CN
China
Prior art keywords
bluetooth
data
pcm
bluetooth chip
chip
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
CN200810081632XA
Other languages
Chinese (zh)
Other versions
CN101232686A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200810081632XA priority Critical patent/CN101232686B/en
Publication of CN101232686A publication Critical patent/CN101232686A/en
Application granted granted Critical
Publication of CN101232686B publication Critical patent/CN101232686B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a method of realizing multi-module mobile phone Bluetooth Handsfree speech handover. The method comprises the following steps: directly inputting speech data received by one of a plurality of wireless modules to a Bluetooth chip through a pulse code modulation pcm voice lead foot of the module; and sending the speech data received by other wireless modules to the Bluetooth chip through a universal asynchronous receiver/transmitter UART serial port after analogue-to-digital conversion. When the invention enables the plurality of wireless modules to connect simultaneously and transmit the speech data through a Bluetooth, the Bluetooth chip only needs to configure a pcm value once and the mobile phone needs no restarting, thus solving the speech handover problem of the plurality of modules wireless chip caused by an inconsistent pcm configuration and enhancing transmitting speed of voice through the serial port UART to meet the real-time requirements of the speech data from users.

Description

The implementation method that a kind of multimodule mobile phone blue tooth hands-free voice switches
Technical field
The present invention relates to the multimode bluetooth field of wireless communication, relate in particular to the implementation method that a kind of multimodule mobile phone blue tooth hands-free voice switches.
Background technology
Because the surge of cellphone subscriber's quantity has caused the mobile communication network system to be in the overload operation state, this final result will cause mobile phone to be easy to occur being similar to when communication going offline, cross-talk, speech quality are bad, be difficult to phenomenon of the failure such as online.In order to solve top phenomenon of the failure, there are increasing mobile phone operators and manufacturer to come to realise this point now, and constantly take measures on customs clearance and come further dilatation cell phone network system, voice quality when improving mobile communication, so many mobile phone manufacturers are at the GSM of maturation (Global System for Mobile communication, global system for mobile communications) on the network foundation, released again and supported GSM network and CDMA (Code DivisionMultiple Access simultaneously, the code division multiple access access) mobile phone of network, use the GSM/CDMA dual-mode handset, the user can freely be switched between GSM and CDMA, can avoid call drop in the past effectively, problems such as conversation difficulty and lower tone only use the conversation of GSM net convenient than before.
As its name suggests, so-called " bimodulus " is exactly to be operated under two network schemers, these two mode of operations are exactly GSM network and cdma network, so-called " GSM/CDMA dual-mode handset " just is meant that mobile phone can support GSM and these two network communications technologys of CDMA simultaneously, it can therefrom make a choice according to the needs of environment or practical operation, which network technology more can play a role, just allow mobile phone switch to the work of going down of which kind of pattern, if in one mode, mobile communication is of low quality or other bad communication phenomenons occur, can freely forward on the another one network schemer and work, in fact it is exactly the voice frequency that has enlarged mobile phone, and improves the stability of communication greatly.In the area that some cellphone subscribers relatively concentrate, especially suitable use dual-mode handset, because dual-mode handset can switch between GSM network and cdma network neatly, can remain conversation constantly, and received signal simultaneously, with the signal synthesis stack that receives, noise signal is filtered then, outstanding voice signal is enjoyed thereby obtain high-quality voice.In addition, dual-mode handset adopts broadband technology, support call transfer, Call Waiting, tripartite talk, caller ID display, short message, voice mail, the multiple function of automatic roaming.
Bluetooth is a kind of wireless communication technique of short distance, and electronic installation can see through bluetooth each other and couple together, and has saved traditional electric wire.See through the wireless receiver on the chip, being furnished with the electronic product of Bluetooth technology can communicate by letter in ten meters distance each other, Bluetooth protocol is supported multiple profile (using standard), wherein handfree profile (hand-free function) can output to bluetooth earphone with the voice signal of mobile phone, thereby user's both hands are freed, make things convenient for the cellphone subscriber greatly.
Because the real-time that speech data is had relatively high expectations, so bluetooth protocol repertory generally uses the speed rates speech data of SCO (synchronous connection-oriented is synchronously towards connecting) link with constant 64kb/s.
As shown in Figure 1, pcm (the pulse code modulation of wireless module (comprising gsm wireless module and cdma wireless module), pulse code modulation) the voice pin is directly to link to each other with the pcm pin of Bluetooth chip by the pcm controller, by the pcm controller, the pcm of which module of decision multimode and the pcm pin of Bluetooth chip link to each other, when phone is come in, the user connects after the phone, speech data directly is input to Bluetooth chip by the pcm pin, send to user's bluetooth earphone then by the SCO link by Bluetooth chip, thereby make the user hear sound, obtain good sound quality and effect, the pcm of Bluetooth chip is provided with and will is provided with consistent with the pcm of wireless module.
But, in multi mode terminal, because the chip that various pattern adopted derives from different producers, the setting of its pcm is had nothing in common with each other, and when Bluetooth chip starts, a pskey (Persistent Store Keys can only be set, persistent storage is good for value) value disposes the parameter of the pcm of Bluetooth chip, if want to reset another pcm configuration, then needs to restart Bluetooth chip and protocol stack, and this time is quite long, and the user is unacceptable.When the user when answering a mould phone, have the phone of other wireless module to tap into, it is different with another mould that the current bluetooth pcm of user is provided with, then the sound heard of user will be interrupted noise.
Summary of the invention
The technical problem to be solved in the present invention is exactly to propose the implementation method that a kind of multimodule mobile phone blue tooth hands-free voice switches, overcome the problem that prior art can't use bluetooth earphone to receive calls in multimode when switching, make mobile phone when multimode is being switched, speech can pass on the bluetooth earphone by Bluetooth chip, and has the good sound effect.
In order to solve the problems of the technologies described above, the invention provides the implementation method that a kind of multimodule mobile phone blue tooth hands-free voice switches, the speech data that the mould wireless module in the multimode receives is directly imported Bluetooth chip through the pulse code modulation pcm of this module voice pin; The speech data that other wireless module is received sends to Bluetooth chip by UART Universal Asynchronous Receiver Transmitter UART serial ports after analog-to-digital conversion.
Further, the pcm controller is set, the speech data that the mould wireless module in the control multimode receives is directly imported Bluetooth chip through the pcm of this module voice pin.
Further, the described setting after the pcm controller also comprises the steps:
(1) the strong value pskey value of the parameter of bluetooth protocol repertory and persistent storage is set, direct and bluetooth is carried out the wireless module chip pcm parameter that pcm is connected write pskey;
(2) start bluetooth protocol repertory, and the pskey that will contain the pcm configuration writes Bluetooth chip, the pcm value of configuration Bluetooth chip.
Further, the speech data that receives for the wireless module that directly is connected with the pcm pin of Bluetooth chip, directly import Bluetooth chip by pcm voice pin, and by Bluetooth chip directly with data by sending on the bluetooth earphone towards connecting the SCO link synchronously; And the voice data of passing back on the bluetooth earphone directly passed to this wireless module by the pcm pin of Bluetooth chip, send.
Further, forbid that described other wireless module directly sends out data to Bluetooth chip by pcm voice pin.
Further, the described speech data that other wireless module is received sends to Bluetooth chip by the UART serial ports after analog-to-digital conversion, comprise the steps:
(A) codec is converted into digital signal data with the speech data that receives of other wireless module by analog signal data;
(B) the mobile phone central processing element leaves described digital signal data in one buffering area in;
(C) bluetooth applications program reading of data from this buffering area mails to bluetooth protocol repertory;
(D) bluetooth protocol repertory transfers data to Bluetooth chip by the UART serial ports;
(E) Bluetooth chip sends to data on the bluetooth earphone.
Further, described buffering area is mapped as an equipment in the mobile phone.
Further, in the described step (D), bluetooth protocol repertory is by the UART serial ports, and simulation transfers data to Bluetooth chip with the time of constant fixed intervals on logical link control and adaptation protocol L2CAP channel.
Further, when speech data that bluetooth earphone receives, comprise the steps:
(a) bluetooth earphone transmits speech data to Bluetooth chip by L2CAP;
(b) Bluetooth chip sends described speech data to bluetooth protocol repertory by the UART serial ports;
(c) the bluetooth applications program is monitored bluetooth protocol repertory and whether is received data, when receiving data, then writes described data in buffering area;
(d) the mobile phone central processing element takes out the data in the buffering area through the digital-to-analogue conversion codec conversion and becomes analog signal, sends to corresponding wireless module.
The method that the multimodule mobile phone blue tooth hands-free voice data that the present invention realizes are switched, a plurality of wireless modules are connected and when the Bluetooth transmission speech data at the same time, Bluetooth chip only need dispose the pcm value one time, do not need to restart, solved the multi-mode wireless chip because the inconsistent voice switching problem that causes of pcm configuration, and by serial ports UART (Universal Asynchronous Receiver Transmitter, UART Universal Asynchronous Receiver Transmitter) speed of transmission voice is very fast, can satisfy the real-time requirement of user to speech data.
Description of drawings
Fig. 1 is multi mode terminal sends data by bluetooth an overall data structure chart;
Fig. 2 is the data flowchart that UART transmits speech data that passes through of the embodiment of the invention.
Embodiment
Core concept of the present invention is: the speech data that the mould wireless module in the multimode is received uses traditional approach directly to import Bluetooth chip through the pcm of this module voice pin; And the speech data that other wireless module is received is temporarily stored in buffering area after analog-to-digital conversion, send to Bluetooth chip by the UART serial ports then.
Specifically, the pcm voice pin of the mould wireless module in the multimode is connected by the pcm pin of pcm controller and Bluetooth chip, the speech data of a mould of connecting is directly imported Bluetooth chip by pcm voice pin, and directly data are sent on the bluetooth earphone by the SCO link by Bluetooth chip, and the voice data of passing back on the bluetooth earphone directly passed to this wireless module by the pcm pin of Bluetooth chip, send;
The pcm voice pin of forbidding other wireless modules is directly sent out data to Bluetooth chip, the speech data that receives of other wireless modules (the described speech data that receives is an analog signal data) at first is converted into digital signal data by codec with analog signal data, then these digital signal datas is put in the buffering area by the mobile phone central processing element; The bluetooth applications program is reading of data from this buffering area, mails to bluetooth protocol repertory; Bluetooth protocol repertory is by the UART serial ports, and simulation transfers data to Bluetooth chip with the time of constant fixed intervals on L2CAP (Logical Link Control and Adaptation Protocol, logical link control and adaptation protocol) channel; Bluetooth chip sends to data on the bluetooth earphone.The data of passing back from bluetooth earphone then are the inverse process of said process.
The present invention is described in detail below in conjunction with accompanying drawing 2 and specific embodiment.
The embodiment of the invention comprises the steps:
1, the pcm controller at first is set, the speech data of controlling a certain mould directly passes through the pcm voice pin input Bluetooth chip of the wireless module of this pattern;
Wherein, the selection of pattern can be: the pattern that acquiescence selects a pattern, user to specify a pattern, use when selecting start, the pattern of using when perhaps selecting current talking; Make the speech data of this pattern directly import Bluetooth chip by the pcm voice pin of corresponding wireless module;
2, the parameter and the pskey value of bluetooth protocol repertory are set, write pskey directly carrying out the wireless module chip pcm parameter that pcm is connected with bluetooth;
3, start bluetooth protocol repertory, and the pskey that will contain the pcm configuration writes Bluetooth chip, the pcm value of configuration Bluetooth chip;
For the wireless module that directly is connected with the pcm pin of Bluetooth chip, the speech data of this pattern is directly imported Bluetooth chip by pcm voice pin, and directly data is sent on the bluetooth earphone by the SCO link by Bluetooth chip; And the voice data of passing back on the bluetooth earphone directly passed to this wireless module by the pcm pin of Bluetooth chip, send;
4, with the wireless module voice data transmission of the non-pcm pin that is directly connected to Bluetooth chip to analog-to-digital conversion (A/D) codec (CODEC, Coder Decoder), convert digital signal data to after the mobile phone central processing element sends in the buffering area, this buffering area is mapped as an equipment in the mobile phone;
5, thread of bluetooth applications program creation, open the said equipment, read the data that send over from buffering area, bluetooth protocol repertory sends to Bluetooth chip with the constant time interval and speed by the UART serial ports, and Bluetooth chip will send to bluetooth earphone with data by the L2CAP channel;
6, bluetooth earphone transmits speech data to the mobile phone Bluetooth chip by L2CAP, chip sends data to bluetooth protocol repertory by the UART serial ports, thread of bluetooth applications program creation, monitor bluetooth protocol repertory and receive data, in case there is Data Receiving to arrive, then open described equipment, in buffering area, write data;
7, the mobile phone central processing element takes out the data in the buffering area through digital-to-analogue conversion (D/A) codec conversion and becomes analog signal, sends to wireless module.
The speech data of so just having realized a wireless module directly is transferred to Bluetooth chip by pcm and sends to bluetooth earphone, passes on the bluetooth earphone and communicates and the speech data of other wireless modules sends to Bluetooth chip by serial ports.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (9)

1. the implementation method that multimodule mobile phone blue tooth hands-free voice switches is characterized in that, the speech data that the mould wireless module in the multimode receives is directly imported Bluetooth chip through the pulse code modulation pcm of this module voice pin; The speech data that other wireless module is received sends to Bluetooth chip by UART Universal Asynchronous Receiver Transmitter UART serial ports after analog-to-digital conversion;
Wherein, describedly send to Bluetooth chip by UART Universal Asynchronous Receiver Transmitter UART serial ports and comprise: bluetooth protocol repertory is by the UART serial ports, and simulation transfers data to Bluetooth chip with the time of constant fixed intervals on logical link control and adaptation protocol L2CAP channel.
2. the method for claim 1 is characterized in that, the pcm controller is set, and the speech data that the mould wireless module in the control multimode receives is directly imported Bluetooth chip through the pcm of this module voice pin.
3. method as claimed in claim 2 is characterized in that, the described setting after the pcm controller also comprises the steps:
(1) the strong value pskey value of the parameter of bluetooth protocol repertory and persistent storage is set, direct and bluetooth is carried out the wireless module chip pcm parameter that pcm is connected write pskey;
(2) start bluetooth protocol repertory, and the pskey that will contain the pcm configuration writes Bluetooth chip, the pcm value of configuration Bluetooth chip.
4. the method for claim 1, it is characterized in that, the speech data that receives for the wireless module that directly is connected with the pcm pin of Bluetooth chip, directly import Bluetooth chip by pcm voice pin, and by Bluetooth chip directly with data by sending on the bluetooth earphone towards connecting the SCO link synchronously; And the voice data of passing back on the bluetooth earphone directly passed to this wireless module by the pcm pin of Bluetooth chip, send.
5. the method for claim 1 is characterized in that, forbids that described other wireless module directly sends out data to Bluetooth chip by pcm voice pin.
6. the method for claim 1 is characterized in that, the described speech data that other wireless module is received sends to Bluetooth chip by the UART serial ports after analog-to-digital conversion, comprise the steps:
(A) codec is converted into digital signal data with the speech data that receives of other wireless module by analog signal data;
(B) the mobile phone central processing element leaves described digital signal data in one buffering area in;
(C) bluetooth applications program reading of data from this buffering area mails to bluetooth protocol repertory;
(D) bluetooth protocol repertory transfers data to Bluetooth chip by the UART serial ports;
(E) Bluetooth chip sends to data on the bluetooth earphone.
7. method as claimed in claim 6 is characterized in that, described buffering area is mapped as an equipment in the mobile phone.
8. method as claimed in claim 6 is characterized in that, in the described step (D), bluetooth protocol repertory is by the UART serial ports, and simulation transfers data to Bluetooth chip with the time of constant fixed intervals on logical link control and adaptation protocol L2CAP channel.
9. method as claimed in claim 6 is characterized in that, when speech data that bluetooth earphone receives, comprises the steps:
(a) bluetooth earphone transmits speech data to Bluetooth chip by L2CAP;
(b) Bluetooth chip sends described speech data to bluetooth protocol repertory by the UART serial ports;
(c) the bluetooth applications program is monitored bluetooth protocol repertory and whether is received data, when receiving data, then writes described data in buffering area;
(d) the mobile phone central processing element takes out the data in the buffering area through the digital-to-analogue conversion codec conversion and becomes analog signal, sends to corresponding wireless module.
CN200810081632XA 2008-02-27 2008-02-27 Method for implementing multimodule mobile phone blue tooth hands-free voice switch Expired - Fee Related CN101232686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810081632XA CN101232686B (en) 2008-02-27 2008-02-27 Method for implementing multimodule mobile phone blue tooth hands-free voice switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810081632XA CN101232686B (en) 2008-02-27 2008-02-27 Method for implementing multimodule mobile phone blue tooth hands-free voice switch

Publications (2)

Publication Number Publication Date
CN101232686A CN101232686A (en) 2008-07-30
CN101232686B true CN101232686B (en) 2011-01-19

Family

ID=39898802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810081632XA Expired - Fee Related CN101232686B (en) 2008-02-27 2008-02-27 Method for implementing multimodule mobile phone blue tooth hands-free voice switch

Country Status (1)

Country Link
CN (1) CN101232686B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668354A (en) * 2009-09-29 2010-03-10 青岛海信移动通信技术股份有限公司 Signal processing method in multi-mode and multi-standby mobile terminal and related device therefor
EP3076644B1 (en) 2014-01-09 2019-03-06 Huawei Device Co., Ltd. Base for cordless digital telephone set and corresponding voice data transmission method
CN104540069A (en) * 2014-11-06 2015-04-22 深圳市广和通无线通信软件有限公司 Audio debugging method and system for wireless module
CN105827791A (en) * 2015-01-09 2016-08-03 张秀雯 Remote microphone hearing aid system on intelligent mobile phone and application method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003017596A2 (en) * 2001-08-15 2003-02-27 Qualcomm, Incorporated Dual mode bluetooth/wireless device with wake-up times optimized for power control
CN1731693A (en) * 2005-09-02 2006-02-08 东南大学 Multi-mode mobile communication terminal and its signal processing method
CN201001118Y (en) * 2006-10-23 2008-01-02 中兴通讯股份有限公司 Dual-mode mobile phone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003017596A2 (en) * 2001-08-15 2003-02-27 Qualcomm, Incorporated Dual mode bluetooth/wireless device with wake-up times optimized for power control
CN1731693A (en) * 2005-09-02 2006-02-08 东南大学 Multi-mode mobile communication terminal and its signal processing method
CN201001118Y (en) * 2006-10-23 2008-01-02 中兴通讯股份有限公司 Dual-mode mobile phone

Also Published As

Publication number Publication date
CN101232686A (en) 2008-07-30

Similar Documents

Publication Publication Date Title
CN100413363C (en) Fusion terminal
CN101304449B (en) Integration type communication equipment
CN103716459B (en) A kind of audio system having mobile phone and intercom call function concurrently
CN101499824A (en) Method for connecting Bluetooth audio equipment
CN201608742U (en) Intelligent fixed phone
CN104618571A (en) Method for implementing call audio switching based on Bluetooth protocol and mobile terminal
CN101232686B (en) Method for implementing multimodule mobile phone blue tooth hands-free voice switch
WO2010145297A1 (en) Wireless fixed terminal and switching method for automatically switching calling lines
CN102695289A (en) Double-pass method for mobile terminal and mobile terminal
CN101159452B (en) Calling and called process method, process module and terminal system of multi-card terminal
CN102123214A (en) Control device and method of three-network integrated phone
CN102740507B (en) Realize system, method and dual-mode handset that dual-mode handset bimodulus is conversed simultaneously
CN101651749A (en) Coloring ring back tone (CRBT) realizing method and device
CN101123807B (en) A multi-mode terminal and its calling and called party processing method
CN101310507A (en) A base unit adapted to provide a communications connection as well as a method of providing a communications connection
CN201869269U (en) High-level multimode wireless system terminal
CN202276388U (en) Telephone integrating handset, fixed line telephone, and Internet phone
CN201332429Y (en) System fusing GSM access with analog switch
CN201345679Y (en) Double-module wireless terminal
CN202551162U (en) Telephone
CN201388302Y (en) Dual-mode handset terminal
CN101808148A (en) Dual-mode terminal and dual-mode switching method
CN201383834Y (en) 3G voice communication system
US8774775B2 (en) Method and terminal for talk recording implementation
CN201345746Y (en) Dual-mode phone

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
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: 20110119

Termination date: 20170227