CN111083651A - Call processing method and device, mobile terminal and computer readable storage medium - Google Patents

Call processing method and device, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN111083651A
CN111083651A CN201811228499.6A CN201811228499A CN111083651A CN 111083651 A CN111083651 A CN 111083651A CN 201811228499 A CN201811228499 A CN 201811228499A CN 111083651 A CN111083651 A CN 111083651A
Authority
CN
China
Prior art keywords
call
wifi
bluetooth
module
data
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.)
Granted
Application number
CN201811228499.6A
Other languages
Chinese (zh)
Other versions
CN111083651B (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 CN201811228499.6A priority Critical patent/CN111083651B/en
Publication of CN111083651A publication Critical patent/CN111083651A/en
Application granted granted Critical
Publication of CN111083651B publication Critical patent/CN111083651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/16Communication-related supplementary services, e.g. call-transfer or call-hold
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Landscapes

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

Abstract

The invention discloses a call processing method, a device, a mobile terminal and a computer readable storage medium, wherein the method comprises the following steps: when the fact that a call is established is detected, determining a current call mode; if the current call mode is determined to be WiFi Calling call through a Bluetooth earphone mode, WiFi call data and Bluetooth data are obtained, and a parallel WiFi call data process and a parallel Bluetooth data process are established; and starting a polling reporting mechanism, and performing polling reporting processing on the parallel WiFi call data process and the Bluetooth data process according to a preset polling algorithm so as to synthesize the parallel WiFi call data process and the Bluetooth data process into a virtual serial process for reporting. The invention can improve the conversation quality when the user uses the Bluetooth earphone to carry out WiFi Calling conversation, thereby improving the user experience.

Description

Call processing method and device, mobile terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a call processing method and apparatus, a mobile terminal, and a computer-readable storage medium.
Background
WiFi Calling is a function that when the signal coverage of a mobile phone is poor or the quality of the mobile phone is poor (such as indoor or other special geographic environments), a user can realize high-quality voice/video call through a WiFi access mode. Currently, some operators have started or are about to start offering WiFi Calling voice service. However, since the frequency of the WiFi signal and the frequency of the bluetooth signal are both at 2.4Mhz, there is a problem of mutual interference, if a user wants to use a bluetooth headset to perform WiFi Calling, problems such as noise and interruption may occur during the call, the call quality is poor, and the user experience is poor.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a call processing method, a call processing device, a mobile terminal and a computer readable storage medium, and aims to solve the technical problem of poor call quality when a user wants to use a Bluetooth headset to carry out WiFi Calling call.
In order to achieve the above object, the present invention provides a call processing method, which is applied to a mobile terminal, and comprises the following steps:
when the fact that a call is established is detected, determining a current call mode;
if the current call mode is determined to be WiFi Calling call through a Bluetooth earphone mode, WiFi call data and Bluetooth data are obtained, and a parallel WiFi call data process and a parallel Bluetooth data process are established;
and starting a polling reporting mechanism, and performing polling reporting processing on the parallel WiFi call data process and the Bluetooth data process according to a preset polling algorithm so as to synthesize the parallel WiFi call data process and the Bluetooth data process into a virtual serial process for reporting.
Optionally, the step of determining the current call mode includes:
detecting the current call type and the paired connected equipment;
and if the current call type is detected to be WiFi call and the paired and connected equipment is a Bluetooth headset, determining that the current call mode is WiFi call through the Bluetooth headset mode.
Optionally, the mobile terminal includes a call module and a bluetooth module, and the step of detecting the current call type and pairing the connected devices includes:
detecting whether the call type parameter is a first set value or not through the call module, and detecting whether the paired equipment parameter is a second set value or not through the Bluetooth module;
if the call type parameter is detected to be a first set value through the call module and the paired device parameter is detected to be a second set value through the Bluetooth module, the current call type is determined to be a WiFi Calling call and the paired connected device is determined to be a Bluetooth headset.
Optionally, the mobile terminal further includes a WiFi module, a WiFi data transceiver module, and a bluetooth data transceiver module, and if it is determined that the current call mode is a WiFi Calling call through a bluetooth headset mode, the step of acquiring WiFi call data and bluetooth data includes:
if the current call mode is determined to be WiFi Calling call through a Bluetooth earphone mode, a first instruction is sent to a WiFi module and a WiFi data transceiver module through a call module, and a second instruction is sent to the Bluetooth data transceiver module through the Bluetooth module, so that the WiFi data transceiver module returns WiFi call data acquired from the WiFi module according to the first instruction, and the Bluetooth data transceiver module returns Bluetooth data according to the second instruction;
and receiving WiFi call data returned by the WiFi data receiving and sending module and Bluetooth data returned by the Bluetooth data receiving and sending module.
Optionally, the polling and reporting processing of the parallel WiFi call data process and the bluetooth data process according to a preset polling algorithm to combine the parallel WiFi call data process and the bluetooth data process into a virtual serial process for reporting includes:
when T is 0.2X-0.1, reporting the WiFi call data process;
and when T is 0.2X, reporting the Bluetooth data process, wherein T is polling time, the unit of T is millisecond, and X is a positive integer.
Optionally, after the step of starting a polling reporting mechanism, performing polling reporting processing on the parallel WiFi call data process and the bluetooth data process according to a preset polling algorithm, so as to combine the parallel WiFi call data process and the bluetooth data process into a virtual serial process for reporting, the method includes:
detecting whether the call type parameter is a first set value or not through the call module, and detecting whether the paired equipment parameter is a second set value or not through the Bluetooth module;
and if the call type parameter is detected not to be the first set value through the call module, or the paired equipment parameter is detected not to be the second set value through the Bluetooth module, terminating the polling reporting mechanism.
Optionally, after the step of terminating the polling reporting mechanism, the method includes:
if the call type parameter is detected not to be the first set value through the call module, releasing the WiFi call data;
and if the Bluetooth module detects that the paired equipment parameters are not the second set values, releasing the Bluetooth data.
In order to achieve the above object, the present invention also provides a call processing apparatus including:
the determining module is used for determining the current call mode when call establishment is detected;
the establishing module is used for acquiring WiFi call data and Bluetooth data and establishing a parallel WiFi call data process and a parallel Bluetooth data process if the current call mode is determined to be a WiFi Calling call in a Bluetooth earphone mode;
and the polling reporting module is used for starting a polling reporting mechanism, carrying out polling reporting processing on the parallel WiFi call data process and the Bluetooth data process according to a preset polling algorithm, and synthesizing the parallel WiFi call data process and the Bluetooth data process into a virtual serial process for reporting.
In addition, to achieve the above object, the present invention also provides a mobile terminal, including: the call processing method comprises a memory, a processor and a call processing program stored on the memory and capable of running on the processor, wherein the call processing program realizes the steps of the call processing method when being executed by the processor.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a call processing program which, when executed by a processor, implements the steps of the call processing method as described above.
The call processing method provided by the invention comprises the steps of firstly determining the current call mode when call establishment is detected; if the current call mode is determined to be WiFi Calling call through a Bluetooth earphone mode, WiFi call data and Bluetooth data are obtained, and a parallel WiFi call data process and a parallel Bluetooth data process are established; and starting a polling reporting mechanism, and performing polling reporting processing on the parallel WiFi call data process and the Bluetooth data process so as to combine the parallel WiFi call data process and the Bluetooth data process into a virtual serial process for reporting. When the mobile terminal carries out WiFi Calling conversation in a Bluetooth earphone mode, the mobile terminal can carry out polling reporting processing on the parallel WiFi conversation data process and the Bluetooth data process, so that the parallel WiFi conversation data process and the Bluetooth data process are combined into a virtual serial process to be reported, the problem of mutual interference of signals when WiFi and Bluetooth work simultaneously can be solved, the situations of noise, interruption and the like in the conversation process are avoided, the conversation quality is improved, and the user experience is improved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a call processing method according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a call processing method according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a processing procedure of a control module according to a third embodiment of the call processing method of the present invention;
fig. 5 is a functional block diagram of a call processing device according to a first embodiment of the invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: when the fact that a call is established is detected, determining a current call mode; if the current call mode is determined to be WiFi Calling call through a Bluetooth earphone mode, WiFi call data and Bluetooth data are obtained, and a parallel WiFi call data process and a parallel Bluetooth data process are established; and starting a polling reporting mechanism, and performing polling reporting processing on the parallel WiFi call data process and the Bluetooth data process according to a preset polling algorithm so as to synthesize the parallel WiFi call data process and the Bluetooth data process into a virtual serial process for reporting.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a mobile terminal such as a smart phone.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a call processing program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the call processing program stored in the memory 1005 and perform the following operations:
when the fact that a call is established is detected, determining a current call mode;
if the current call mode is determined to be WiFi Calling call through a Bluetooth earphone mode, WiFi call data and Bluetooth data are obtained, and a parallel WiFi call data process and a parallel Bluetooth data process are established;
and starting a polling reporting mechanism, and performing polling reporting processing on the parallel WiFi call data process and the Bluetooth data process according to a preset polling algorithm so as to synthesize the parallel WiFi call data process and the Bluetooth data process into a virtual serial process for reporting.
Further, the processor 1001 may call the call processing program stored in the memory 1005, and further perform the following operations:
detecting the current call type and the paired connected equipment;
and if the current call type is detected to be WiFi call and the paired and connected equipment is a Bluetooth headset, determining that the current call mode is WiFi call through the Bluetooth headset mode.
Further, the processor 1001 may call the call processing program stored in the memory 1005, and further perform the following operations:
detecting whether the call type parameter is a first set value or not through the call module, and detecting whether the paired equipment parameter is a second set value or not through the Bluetooth module;
if the call type parameter is detected to be a first set value through the call module and the paired device parameter is detected to be a second set value through the Bluetooth module, the current call type is determined to be a WiFi Calling call and the paired connected device is determined to be a Bluetooth headset.
Further, the processor 1001 may call the call processing program stored in the memory 1005, and further perform the following operations:
if the current call mode is determined to be WiFi Calling call through a Bluetooth earphone mode, a first instruction is sent to a WiFi module and a WiFi data transceiver module through a call module, and a second instruction is sent to the Bluetooth data transceiver module through the Bluetooth module, so that the WiFi data transceiver module returns WiFi call data acquired from the WiFi module according to the first instruction, and the Bluetooth data transceiver module returns Bluetooth data according to the second instruction;
and receiving WiFi call data returned by the WiFi data receiving and sending module and Bluetooth data returned by the Bluetooth data receiving and sending module.
Further, the processor 1001 may call the call processing program stored in the memory 1005, and further perform the following operations:
when T is 0.2X-0.1, reporting the WiFi call data process;
and when T is 0.2X, reporting the Bluetooth data process, wherein T is polling time, the unit of T is millisecond, and X is a positive integer.
Further, the processor 1001 may call the call processing program stored in the memory 1005, and further perform the following operations:
detecting whether the call type parameter is a first set value or not through the call module, and detecting whether the paired equipment parameter is a second set value or not through the Bluetooth module;
and if the call type parameter is detected not to be the first set value through the call module, or the paired equipment parameter is detected not to be the second set value through the Bluetooth module, terminating the polling reporting mechanism.
Further, the processor 1001 may call the call processing program stored in the memory 1005, and further perform the following operations:
if the call type parameter is detected not to be the first set value through the call module, releasing the WiFi call data;
and if the Bluetooth module detects that the paired equipment parameters are not the second set values, releasing the Bluetooth data.
Based on the hardware structure, the invention provides various embodiments of the call processing method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a call processing method according to a first embodiment of the present invention.
In this embodiment, the call processing method is applied to a mobile terminal, and the mobile terminal includes a control module, a processing module, a call module, a WiFi module, a bluetooth module, a WiFi data transceiver module, and a bluetooth data transceiver module. The control module can perform data interaction with the call module and the Bluetooth module, the call module can control the WiFi data transceiver module to perform data interaction with the control module, the Bluetooth module can control the Bluetooth data transceiver module to perform data interaction with the control module, and the processing module can be a processor of the mobile terminal and is used for processing a process reported by the control module.
The call processing method comprises the following steps:
when the fact that a call is established is detected, determining a current call mode;
if the current call mode is determined to be WiFi Calling call through a Bluetooth earphone mode, WiFi call data and Bluetooth data are obtained, and a parallel WiFi call data process and a parallel Bluetooth data process are established;
and starting a polling reporting mechanism, and performing polling reporting processing on the parallel WiFi call data process and the Bluetooth data process according to a preset polling algorithm so as to synthesize the parallel WiFi call data process and the Bluetooth data process into a virtual serial process for reporting.
In this embodiment, the call processing method is implemented by a control module of the mobile terminal.
In this embodiment, before detecting whether the mobile terminal has a call established, a process of connecting the mobile terminal to the pairing device and a process of connecting the WiFi hotspot are further included. The process of connecting the mobile terminal to the pairing device comprises the following steps: the method comprises the steps that a user triggers the operation of turning on a Bluetooth switch in a Bluetooth setting interface of the mobile terminal, a Bluetooth module of the mobile terminal searches for the devices which can be paired after detecting that Bluetooth is turned on, the device selection items which can be paired are displayed for the user to select, and when a selection instruction of the user based on the device selection items which can be paired is received, the Bluetooth module of the mobile terminal is connected with the devices corresponding to the selection instruction to carry out pairing connection. The bluetooth module of the mobile terminal is provided with a paired device parameter paired device, and an attribute value of the paired device may represent a type of the paired device connected to the mobile terminal, and the bluetooth module is preset with an association relationship between the attribute value of the paired device and the paired device, as shown in the following table:
attribute value of paired device Pairing device
0 Mobile terminal
1 Bluetooth earphone
2 Bluetooth sound box
3 Vehicle Bluetooth
4 Bluetooth adapter
5 Self-timer stem
6 Others
9 Unpaired connection of any device
Namely, the control module of the mobile terminal can detect the attribute value of the paired device parameter paired device through the bluetooth module, and determine which paired device the mobile terminal is connected to.
The process that the mobile terminal is connected with the WiFi hotspot comprises the following steps: the method comprises the steps that a user triggers the operation of turning on a WiFi switch in a WiFi setting interface of the mobile terminal, a WiFi module of the mobile terminal displays a connectable WiFi hotspot selection item for the user to select after detecting that WiFi is turned on, and when a selection instruction of the user based on the WiFi hotspot selection item is received, the WiFi module of the mobile terminal is connected with a WiFi hotspot corresponding to the selection instruction. After establishing connection with the WiFi hotspot, a user can check whether the mobile terminal has registered WiFi Calling, if not, the user can trigger a WiFi Calling registration instruction, a call module of the mobile terminal receives the WiFi Calling registration instruction and registers the WiFi Calling, so that a WiFi Calling channel is established, when WiFicalling registration is successful, the call of the mobile terminal is carried out through the WiFi Calling channel, otherwise, the call of the mobile terminal is carried out through a mobile phone signal. The call module of the mobile terminal is provided with a call type parameter call type, and an attribute value of the call type can indicate the call type of the mobile terminal, that is, when the call type is 1, it indicates that the mobile terminal is performing a WiFi call, and when the call type is 0, it indicates that the mobile terminal is performing a mobile phone call.
The following are specific steps of implementing call processing in this embodiment:
in step S10, when it is detected that the mobile terminal has a call setup, the current call mode of the mobile terminal is determined.
In this embodiment, the control module first determines the current passing mode when detecting that the mobile terminal has a call setup. Specifically, step S10 may include:
step A, detecting the current call type and the equipment connected in a matched mode;
namely, the control module detects the current call type of the mobile terminal and the paired connection device, that is, determines whether the mobile terminal is currently performing a WiFi Calling call and whether the mobile terminal establishes a paired connection with a bluetooth headset.
And step B, if the current call type is detected to be a WiFi call and the paired and connected equipment is detected to be a Bluetooth headset, determining that the current call mode is the WiFi call through the Bluetooth headset mode.
In this step, if the control module detects that the current call type is a WiFi call and the paired device is a bluetooth headset, it is determined that the mobile terminal currently performs the WiFi call in a bluetooth headset mode. Specifically, the step of detecting the current call type and pairing the connected devices includes:
step a, detecting whether a call type parameter is a first set value through a call module, and detecting whether a paired device parameter is a second set value through a Bluetooth module;
and b, if the call type parameter is detected to be a first set value through the call module and the paired equipment parameter is detected to be a second set value through the Bluetooth module, determining that the current call type is a WiFi Calling call and the paired connected equipment is a Bluetooth earphone.
That is, the control module detects whether the call type parameter call type is a first set value through the call module, in this embodiment, the first set value is set to 1, and if the call type parameter call type is the first set value, it indicates that the mobile terminal is performing a WiFi Calling call based on the foregoing; meanwhile, the control module further detects whether the paired device parameter paired device is a second set value through the bluetooth module, in this embodiment, the second set value is set to 1, and if the paired device parameter paired device is the second set value, it is described that the device connected in pairing with the mobile terminal is a bluetooth headset based on the preset association relationship between the attribute value of the paired device and the paired device, so that it can be determined that the mobile terminal currently performs a WiFi Calling call in a bluetooth headset mode.
Step S20, if the current call mode is confirmed to be WiFi Calling call through a Bluetooth headset mode, WiFi call data and Bluetooth data are obtained, and a parallel WiFi call data process and a parallel Bluetooth data process are established;
in this step, if the control module determines that the mobile terminal is currently performing WiFi calling in a bluetooth headset mode, the control module acquires WiFi call data and bluetooth data and establishes a parallel WiFi call data process and a parallel bluetooth data process.
And step S30, starting a polling reporting mechanism, and performing polling reporting processing on the parallel WiFi call data process and the Bluetooth data process according to a preset polling algorithm so as to synthesize the parallel WiFi call data process and the Bluetooth data process into a virtual serial process for reporting.
And then, the control module starts a polling reporting mechanism to carry out polling reporting processing on the parallel WiFi call data process and the Bluetooth data process so as to synthesize the parallel WiFi call data process and the Bluetooth data process into a virtual serial process to be reported to the processing module.
In the call processing method provided by this embodiment, when detecting that a call is established, the control module first determines a current call mode; if the WiFi Calling conversation is confirmed to be carried out through the Bluetooth headset mode at present, WiFi Calling data and Bluetooth data are obtained, and a WiFi Calling data process and a Bluetooth data process are established in parallel; and starting a polling reporting mechanism, and performing polling reporting processing on the parallel WiFi call data process and the Bluetooth data process according to a preset polling algorithm so as to synthesize the parallel WiFi call data process and the Bluetooth data process into a virtual serial process for reporting. In the embodiment, through the bottom control module of the mobile terminal, when the mobile terminal performs a WiFi Calling call in a bluetooth headset mode, the mobile terminal can perform polling reporting processing on a parallel WiFi call data process and a parallel bluetooth data process, so that the parallel WiFi call data process and the parallel bluetooth data process are combined into a virtual serial process to be reported, the problem of mutual interference of signals when the WiFi and the bluetooth work simultaneously can be solved, the situations of noise, interruption and the like in the call process are avoided, the call quality is improved, and the user experience is improved.
Further, a second embodiment of the call processing method of the present invention is proposed based on the first embodiment.
The difference between the second embodiment of the call processing method and the first embodiment of the call processing method is that, if it is determined that the current call mode is a WiFi call through a bluetooth headset mode, the step of acquiring WiFi call data and bluetooth data includes:
step C, if the current call mode is determined to be WiFi Calling call through a Bluetooth earphone mode, a first instruction is sent to a WiFi module and a WiFi data transceiver module through a call module, and a second instruction is sent to the Bluetooth data transceiver module through the Bluetooth module, so that the WiFi data transceiver module returns WiFi call data acquired from the WiFi module according to the first instruction, and the Bluetooth data transceiver module returns Bluetooth data according to the second instruction;
in this embodiment, if the control module determines that the mobile terminal is currently performing the WiFi calling call in the bluetooth headset mode, the control module controls the call module to send a first instruction to the WiFi module and the WiFi data transceiver module, and controls the bluetooth module to send a second instruction to the bluetooth data transceiver module, the WiFi data transceiver module obtains WiFi call data from the WiFi module according to the first instruction and sends the WiFi call data to the control module, and the bluetooth data transceiver module sends bluetooth data to the control module according to the second instruction.
And D, receiving WiFi call data returned by the WiFi data receiving and sending module and Bluetooth data returned by the Bluetooth data receiving and sending module.
The control module receives WiFi call data returned by the WiFi data receiving and sending module and Bluetooth data returned by the Bluetooth data receiving and sending module at the same time.
Further, the step of performing polling reporting processing on the parallel WiFi call data process and the bluetooth data process according to a preset polling algorithm to synthesize the parallel WiFi call data process and the bluetooth data process into a virtual serial process for reporting includes:
step E, when T is 0.2X-0.1, reporting the WiFi call data process;
and F, when T is 0.2X, reporting the Bluetooth data process, wherein T is polling time, the unit of T is millisecond, and X is a positive integer.
That is, when the control module starts the polling reporting mechanism, the WiFi call data process and the bluetooth data process are polled and reported according to the preset polling time, in this embodiment, the polling time is optionally set to 0.1 ms, and the polling processing algorithm is as follows:
when T is 0.2X-0.1, reporting the WiFi call data process to a processing module, and when T is 0.2X, reporting the Bluetooth data process to the processing module, wherein X is a positive integer, T represents polling time, and the unit of T is millisecond. For example, when X is equal to 1, the T control module reports the WiFi call data process to the processing module at 0.1 ms, and reports the bluetooth data to the processing module at 0.2 ms, so that the parallel WiFi call data process and the bluetooth data process are combined into a virtual serial process and reported to the processing module.
In this embodiment, the control module simultaneously acquires WiFi call data and bluetooth data, and starts a polling reporting mechanism to combine the parallel WiFi call data process and bluetooth data process into a virtual serial process for reporting, thereby solving the problem of mutual interference of signals when WiFi and bluetooth simultaneously work.
Further, a third embodiment of the call processing method of the present invention is proposed based on the first embodiment or the second embodiment.
The third embodiment of the call processing method differs from the first embodiment or the second embodiment of the call processing method in that, referring to fig. 3, after step S30, it includes:
step S40, detecting whether the call type parameter is a first set value through the call module, and detecting whether the paired equipment parameter is a second set value through the Bluetooth module;
in this embodiment, in the process of starting the polling reporting mechanism, the control module continuously detects whether the call type parameter is a first set value through the call module, and detects whether the paired device parameter is a second set value through the bluetooth module;
step S50, if the call module detects that the call type parameter is not the first setting value, or the bluetooth module detects that the paired device parameter is not the second setting value, the polling reporting mechanism is terminated.
If the control module detects that the call type parameter is not the first set value through the call module, or detects that the paired device parameter is not the second set value through the Bluetooth module, namely, call type! 1 or a scheduled device! When the mobile terminal is in a call state, the mobile terminal determines that the mobile terminal adopts a mobile communication signal or does not use a bluetooth headset for the call during the call, the WiFi and the bluetooth do not work simultaneously, and the problem of mutual interference does not exist, and at this time, the control module terminates the polling reporting mechanism.
After step S50, the method includes:
step G, if the conversation type parameter is detected not to be a first set value through a conversation module, releasing the WiFi conversation data;
and step H, if the Bluetooth module detects that the paired equipment parameters are not the second set value, releasing the Bluetooth data.
If the control module detects that the call type parameter is not the first set value through the call module, i.e. call type! If the control module detects that the paired equipment parameter is not the second set value through the Bluetooth module, namely the paired device! And (1), releasing the Bluetooth data, and no longer establishing a Bluetooth data process for reporting.
Certainly, if the control module detects that both the paired device and the call type are equal to 1 again, the polling reporting mechanism is started to report the bluetooth data process and the WiFi data process until the call of the mobile terminal is finished. The above process can be understood with reference to the control module process diagram shown in fig. 4.
In this embodiment, the control module continuously detects the values of the call type parameter and the paired device parameter during the process of starting the polling reporting mechanism, so as to determine the call mode of the mobile terminal according to the values of the call type parameter and the paired device parameter, so as to control the start and the stop of the polling reporting mechanism.
In addition, the embodiment of the invention also provides a call processing device.
Referring to fig. 5, fig. 5 is a functional module diagram of a call processing device according to a first embodiment of the present invention.
In this embodiment, the call processing apparatus includes:
a determining module 10, configured to determine a current call mode when a call establishment is detected;
the establishing module 20 is configured to acquire WiFi call data and bluetooth data and establish a parallel WiFi call data process and a parallel bluetooth data process if it is determined that the current call mode is a WiFi call through a bluetooth headset mode;
and the polling reporting module 30 is configured to start a polling reporting mechanism, perform polling reporting processing on the parallel WiFi call data process and the bluetooth data process according to a preset polling algorithm, and combine the parallel WiFi call data process and the bluetooth data process into a virtual serial process for reporting.
Each virtual function module of the call processing apparatus is stored in the memory 1005 of the call processing device shown in fig. 1, and is used for implementing all functions of a call processing program; when each module is executed by the processor 1001, the problem of mutual interference of signals during simultaneous working of WiFi and Bluetooth can be solved, the situations of noise, interruption and the like in the conversation process are avoided, the conversation quality is improved, and therefore the user experience is improved.
Further, the determining module 10 includes:
the device comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for detecting the current call type and the paired connected equipment;
and the confirming unit is used for confirming that the current call mode is the WiFi call through the Bluetooth headset mode if the current call type is detected to be the WiFi call and the paired and connected equipment is the Bluetooth headset.
Further, the detection unit includes:
the detection subunit is used for detecting whether the call type parameter is a first set value through the call module and detecting whether the paired equipment parameter is a second set value through the Bluetooth module;
and the confirmation subunit is used for confirming that the current call type is a WiFi Calling call and the paired and connected equipment is a Bluetooth headset if the call type parameter detected by the call module is a first set value and the paired equipment parameter detected by the Bluetooth module is a second set value.
Further, the establishing module 20 includes:
the obtaining unit is used for sending a first instruction to the WiFi module and the WiFi data transceiver module through the call module and sending a second instruction to the Bluetooth data transceiver module through the Bluetooth module if the current call mode is determined to be WiFi Calling call through the Bluetooth earphone mode, so that the WiFi data transceiver module returns WiFi call data obtained from the WiFi module according to the first instruction, and the Bluetooth data transceiver module returns Bluetooth data according to the second instruction;
and the receiving unit is used for receiving the WiFi call data returned by the WiFi data receiving and sending module and the Bluetooth data returned by the Bluetooth data receiving and sending module.
Further, the polling reporting module 30 includes:
a first reporting unit, configured to report the WiFi call data process when T is 0.2X-0.1;
and a second reporting unit, configured to report the bluetooth data process when T is 0.2X, where T is a polling time, a unit of T is millisecond, and X is a positive integer.
Further, the call processing module further includes:
the detection module is used for detecting whether the call type parameter is a first set value or not through the call module and detecting whether the paired equipment parameter is a second set value or not through the Bluetooth module;
and the polling reporting termination module is used for terminating the polling reporting mechanism if the call type parameter is detected not to be the first set value by the call module or the paired equipment parameter is detected not to be the second set value by the Bluetooth module.
Further, the call processing module further includes:
the first release module is used for releasing the WiFi call data if the call type parameter detected by the call module is not a first set value;
and the second release module is used for releasing the Bluetooth data if the Bluetooth module detects that the paired equipment parameters are not the second set values.
The function implementation of each module in the call processing apparatus corresponds to each step in the call processing method embodiment, and the function and implementation process are not described in detail here.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention stores a call processing program, which when executed by a processor, implements the following operations:
when detecting that a call is established, the control module determines a current call mode;
if the current call mode is determined to be WiFi Calling call through a Bluetooth earphone mode, WiFi call data and Bluetooth data are obtained, and a parallel WiFi call data process and a parallel Bluetooth data process are established;
and starting a polling reporting mechanism, and performing polling reporting processing on the parallel WiFi call data process and the Bluetooth data process according to a preset polling algorithm so as to synthesize the parallel WiFi call data process and the Bluetooth data process into a virtual serial process for reporting.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the call processing method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A call processing method is applied to a mobile terminal, and is characterized by comprising the following steps:
when the fact that a call is established is detected, determining a current call mode;
if the current call mode is determined to be WiFi Calling call through a Bluetooth earphone mode, WiFi call data and Bluetooth data are obtained, and a parallel WiFi call data process and a parallel Bluetooth data process are established;
and starting a polling reporting mechanism, and performing polling reporting processing on the parallel WiFi call data process and the Bluetooth data process according to a preset polling algorithm so as to synthesize the parallel WiFi call data process and the Bluetooth data process into a virtual serial process for reporting.
2. A call processing method as claimed in claim 1, wherein the step of determining the current call mode comprises:
detecting the current call type and the paired connected equipment;
and if the current call type is detected to be WiFi call and the paired and connected equipment is a Bluetooth headset, determining that the current call mode is WiFi call through the Bluetooth headset mode.
3. The call processing method according to claim 2, wherein the mobile terminal includes a call module and a bluetooth module, and the step of detecting the current call type and pairing the connected devices includes:
detecting whether the call type parameter is a first set value or not through the call module, and detecting whether the paired equipment parameter is a second set value or not through the Bluetooth module;
if the call type parameter is detected to be a first set value through the call module and the paired device parameter is detected to be a second set value through the Bluetooth module, the current call type is determined to be a WiFi Calling call and the paired connected device is determined to be a Bluetooth headset.
4. The call processing method according to claim 3, wherein the mobile terminal further comprises a WiFi module, a WiFi data transceiver module and a bluetooth data transceiver module, and the step of acquiring WiFi call data and bluetooth data if it is determined that the current call mode is a WiFi call through a bluetooth headset mode comprises:
if the current call mode is determined to be WiFi Calling call through a Bluetooth earphone mode, a first instruction is sent to a WiFi module and a WiFi data transceiver module through a call module, and a second instruction is sent to the Bluetooth data transceiver module through the Bluetooth module, so that the WiFi data transceiver module returns WiFi call data acquired from the WiFi module according to the first instruction, and the Bluetooth data transceiver module returns Bluetooth data according to the second instruction;
and receiving WiFi call data returned by the WiFi data receiving and sending module and Bluetooth data returned by the Bluetooth data receiving and sending module.
5. The call processing method according to claim 1, wherein the step of performing polling reporting processing on the parallel WiFi call data process and the bluetooth data process according to a preset polling algorithm to combine the parallel WiFi call data process and the bluetooth data process into a virtual serial process for reporting comprises:
when T is 0.2X-0.1, reporting the WiFi call data process;
and when T is 0.2X, reporting the Bluetooth data process, wherein T is polling time, the unit of T is millisecond, and X is a positive integer.
6. The call processing method according to claim 3, wherein the polling reporting mechanism is enabled to perform polling reporting processing on the parallel WiFi call data process and the bluetooth data process according to a preset polling algorithm, so as to combine the parallel WiFi call data process and the bluetooth data process into a virtual serial process reporting step, and the polling reporting mechanism comprises:
detecting whether the call type parameter is a first set value or not through the call module, and detecting whether the paired equipment parameter is a second set value or not through the Bluetooth module;
and if the call type parameter is detected not to be the first set value through the call module, or the paired equipment parameter is detected not to be the second set value through the Bluetooth module, terminating the polling reporting mechanism.
7. The call processing method according to claim 6, wherein the step of terminating the polling reporting mechanism comprises:
if the call type parameter is detected not to be the first set value through the call module, releasing the WiFi call data;
and if the Bluetooth module detects that the paired equipment parameters are not the second set values, releasing the Bluetooth data.
8. A call processing apparatus, comprising:
the determining module is used for determining the current call mode when call establishment is detected;
the establishing module is used for acquiring WiFi call data and Bluetooth data and establishing a parallel WiFi call data process and a parallel Bluetooth data process if the current call mode is confirmed to be the WiFiCalling call in the Bluetooth earphone mode;
and the polling reporting module is used for starting a polling reporting mechanism, carrying out polling reporting processing on the parallel WiFi call data process and the Bluetooth data process according to a preset polling algorithm, and synthesizing the parallel WiFi call data process and the Bluetooth data process into a virtual serial process for reporting.
9. A mobile terminal, characterized in that the mobile terminal comprises: memory, a processor and a call processing program stored on the memory and executable on the processor, the call processing program when executed by the processor implementing the steps of the call processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having a call processing program stored thereon, which when executed by a processor implements the steps of the call processing method according to any one of claims 1 to 7.
CN201811228499.6A 2018-10-22 2018-10-22 Call processing method and device, mobile terminal and computer readable storage medium Active CN111083651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811228499.6A CN111083651B (en) 2018-10-22 2018-10-22 Call processing method and device, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811228499.6A CN111083651B (en) 2018-10-22 2018-10-22 Call processing method and device, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111083651A true CN111083651A (en) 2020-04-28
CN111083651B CN111083651B (en) 2022-07-22

Family

ID=70309659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811228499.6A Active CN111083651B (en) 2018-10-22 2018-10-22 Call processing method and device, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111083651B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449511A (en) * 2022-01-20 2022-05-06 惠州Tcl移动通信有限公司 Product activation method and device, electronic equipment and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101129025A (en) * 2005-02-25 2008-02-20 诺基亚公司 Method and system for VoIP over WLAN to bluetooth headset using ACL link and sniff for alighed eSCO transmission
CN101772192A (en) * 2008-12-31 2010-07-07 联发科技股份有限公司 Method and apparatus for wireless communication
CN102695302A (en) * 2012-06-15 2012-09-26 吴芳 System and method for expanding mobile communication function of portable terminal electronic equipment
CN103124423A (en) * 2013-03-06 2013-05-29 华为终端有限公司 Method and device for transmitting and receiving wireless signals, and terminal device
CN106559738A (en) * 2015-09-30 2017-04-05 苹果公司 The short-distance wireless packet of the sensitive application of prioritization time
CN107371157A (en) * 2016-05-13 2017-11-21 北京旅信顺捷软件科技有限公司 Operator ePDG gateway accessings system and the method for realizing mobile communication
CN107995370A (en) * 2017-12-21 2018-05-04 广东欧珀移动通信有限公司 Call control method, device and storage medium and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101129025A (en) * 2005-02-25 2008-02-20 诺基亚公司 Method and system for VoIP over WLAN to bluetooth headset using ACL link and sniff for alighed eSCO transmission
CN101772192A (en) * 2008-12-31 2010-07-07 联发科技股份有限公司 Method and apparatus for wireless communication
CN102695302A (en) * 2012-06-15 2012-09-26 吴芳 System and method for expanding mobile communication function of portable terminal electronic equipment
CN103124423A (en) * 2013-03-06 2013-05-29 华为终端有限公司 Method and device for transmitting and receiving wireless signals, and terminal device
CN106559738A (en) * 2015-09-30 2017-04-05 苹果公司 The short-distance wireless packet of the sensitive application of prioritization time
CN107371157A (en) * 2016-05-13 2017-11-21 北京旅信顺捷软件科技有限公司 Operator ePDG gateway accessings system and the method for realizing mobile communication
CN107995370A (en) * 2017-12-21 2018-05-04 广东欧珀移动通信有限公司 Call control method, device and storage medium and mobile terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
PETER_520-GH: "bt和wifi共存设计", 《HTTPS://BLOG.CSDN.NET/PETER_520_GH/ARTICLE/DETAILS/53288969》 *
水木无痕: "bt和wifi共存技术", 《HTTPS://BLOG.CSDN.NET/YXFABCDEFG/ARTICLE/DETAILS/72903675》 *
随风飘落的雨滴: "bt和wifi的共存", 《HTTPS://WWW.CNBLOGS.COM/DIRT2/P/6060689.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449511A (en) * 2022-01-20 2022-05-06 惠州Tcl移动通信有限公司 Product activation method and device, electronic equipment and computer readable storage medium
CN114449511B (en) * 2022-01-20 2023-11-14 惠州Tcl移动通信有限公司 Product activation method, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN111083651B (en) 2022-07-22

Similar Documents

Publication Publication Date Title
CN111107667B (en) Bluetooth headset pairing method and device and readable storage medium
US20160295625A1 (en) Method and apparatus for network access
EP3062196A1 (en) Method and apparatus for operating and controlling smart devices with hand gestures
CN107332976B (en) Karaoke method, device, equipment and system
KR101984217B1 (en) Apparatus and method for exchange information on device in communication between devices
CN108319442B (en) Audio playing control method and mobile terminal
CN108495349B (en) Switching method of operator network and mobile terminal
CN110913455B (en) Method for forbidding abnormal cell, electronic equipment and server
CN111601323B (en) Application method of network slice and electronic equipment
CN111093133B (en) Wireless device control method, apparatus and computer readable storage medium
CN111417929A (en) Interface display method and control terminal
CN112565204A (en) Control method and device for video data transmission and computer readable storage medium
CN111885571A (en) Bluetooth device pairing method, device and storage medium
CN106792500B (en) Information output method and device and wearable device
CN108924911B (en) Method and device for starting wifi hotspot sharing network
CN111083651B (en) Call processing method and device, mobile terminal and computer readable storage medium
CN114245062A (en) Video conference control method, system, device and storage medium
JP5726008B2 (en) Display control apparatus and display control method for connected device list
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN114158019A (en) Terminal control method, terminal control system, and storage medium
CN109639905B (en) Incoming call reminding method, mobile terminal and computer readable storage medium
KR101737638B1 (en) Device and method for transmitting data in wireless terminal
CN109257739B (en) eSIM card operation method, mobile terminal and eSIM card device
CN111107589B (en) Configuration parameter negotiation method, terminal device, system and storage medium
CN109219039B (en) eSIM card operation method, mobile terminal and eSIM card device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant