CN107295591B - Call method, device, computer storage medium and mobile terminal - Google Patents
Call method, device, computer storage medium and mobile terminal Download PDFInfo
- Publication number
- CN107295591B CN107295591B CN201710512241.8A CN201710512241A CN107295591B CN 107295591 B CN107295591 B CN 107295591B CN 201710512241 A CN201710512241 A CN 201710512241A CN 107295591 B CN107295591 B CN 107295591B
- Authority
- CN
- China
- Prior art keywords
- threshold
- call
- mobile terminal
- volte
- voice service
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机技术领域,特别是涉及一种通话方法、装置、计算机可存储介质和移动终端。The present invention relates to the field of computer technology, and in particular, to a calling method, device, computer storable medium and mobile terminal.
背景技术Background technique
VoLTE是基于IMS的语音业务,相对于传统的语音业务,VoLTE语音业务承载于4G网络,无需占用2G/3G网络,可实现数据与语音业务在同一网络下的统一。依赖于4G网络的VoLTE语音业务可实现接通等待时间更短、音视频通话质量更高、音视频通话更自然的效果,且语音掉线率几乎为0。VoLTE语音业务作为一种新兴语音业务正在广泛受到大众关注。VoLTE is an IMS-based voice service. Compared with traditional voice services, VoLTE voice services are carried on 4G networks without occupying 2G/3G networks, so that data and voice services can be unified under the same network. The VoLTE voice service that relies on the 4G network can achieve shorter connection waiting time, higher quality of audio and video calls, and more natural audio and video calls, and the voice drop rate is almost zero. As an emerging voice service, VoLTE voice service is widely concerned by the public.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种通话方法、装置、计算机可存储介质和移动终端,可以将VoLTE语音业务切换为2G/3G电路域语音业务。Embodiments of the present invention provide a calling method, a device, a computer storable medium and a mobile terminal, which can switch VoLTE voice services to 2G/3G circuit domain voice services.
一种通话方法,包括:A method of calling, including:
若检测到移动终端发起长期演进语音VoLTE通话请求或接收到所述VoLTE通话请求,获取所述移动终端的电量值和流量余量;If it is detected that the mobile terminal initiates a voice over long term evolution VoLTE call request or receives the VoLTE call request, obtain the power value and data allowance of the mobile terminal;
检测所述电量值是否高于第一阈值且所述流量余量是否高于第二阈值;Detecting whether the power value is higher than a first threshold and whether the flow margin is higher than a second threshold;
若所述电量值高于第一阈值且所述流量余量高于第二阈值,通过VoLTE语音业务进行通话;If the power value is higher than the first threshold and the traffic margin is higher than the second threshold, the call is made through the VoLTE voice service;
若否,通过2G/3G电路域语音业务进行通话。If not, the call is made through the 2G/3G circuit domain voice service.
一种通话装置,包括:A communication device, comprising:
获取模块,用于若检测到移动终端发起长期演进语音VoLTE通话请求或接收到所述VoLTE通话请求,获取所述移动终端的电量值和流量余量;an acquisition module, configured to acquire the power value and the flow margin of the mobile terminal if it is detected that the mobile terminal initiates a voice over long-term evolution VoLTE call request or receives the VoLTE call request;
检测模块,用于检测所述电量值是否高于第一阈值且所述流量余量是否高于第二阈值;a detection module, configured to detect whether the power value is higher than a first threshold and whether the flow margin is higher than a second threshold;
切换模块,用于若所述电量值高于第一阈值且所述流量余量高于第二阈值,通过VoLTE语音业务进行通话;若否,通过2G/3G电路域语音业务进行通话。A switching module, configured to make a call through the VoLTE voice service if the power value is higher than the first threshold and the traffic margin is higher than the second threshold; if not, make a call through the 2G/3G circuit domain voice service.
一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现以上通话方法。A computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the above calling method.
一种计算机设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以上通话方法。A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the above calling method when the processor executes the program.
附图说明Description of drawings
图1为一个实施例中通话方法的流程图;1 is a flowchart of a method for calling in an embodiment;
图2为另一个实施例中通话方法的流程图;Fig. 2 is the flow chart of the calling method in another embodiment;
图3为另一个实施例中通话方法的流程图;Fig. 3 is the flow chart of the calling method in another embodiment;
图4为另一个实施例中通话方法的流程图;Fig. 4 is the flow chart of the calling method in another embodiment;
图5为另一个实施例中通话方法的流程图;Fig. 5 is the flow chart of the calling method in another embodiment;
图6为一个实施例中通话装置的结构框图;6 is a structural block diagram of a communication device in one embodiment;
图7为与本发明实施例提供的移动终端相关的手机的部分结构的框图。FIG. 7 is a block diagram of a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
图1为一个实施例中通话方法的流程图。如图1所示,一种通话方法,包括步骤S102至步骤S106。其中:FIG. 1 is a flowchart of a calling method in one embodiment. As shown in FIG. 1 , a calling method includes steps S102 to S106. in:
S102,若检测到移动终端发起长期演进语音VoLTE通话请求或接收到VoLTE通话请求,获取移动终端的电量值和流量余量。S102 , if it is detected that the mobile terminal initiates a voice-over-long-term evolution VoLTE call request or receives a VoLTE call request, obtain a power value and a traffic margin of the mobile terminal.
具体地,VoLTE(Voice over LTE,长期演进语音)是基于IMS(IP MultimediaSubsystem,IP多媒体子系统)的语音业务,语音业务承载于4G或高于4G的数据网络上。当移动终端支持VoLTE语音通话,且移动终端能够连接4G数据网络时,移动终端可发起VoLTE通话请求或接收VoLTE通话请求。Specifically, VoLTE (Voice over LTE, Voice over Long Term Evolution) is a voice service based on IMS (IP Multimedia Subsystem, IP Multimedia Subsystem), and the voice service is carried on a 4G or higher data network. When the mobile terminal supports VoLTE voice calls and the mobile terminal can connect to a 4G data network, the mobile terminal can initiate a VoLTE call request or receive a VoLTE call request.
其中,当移动终端支持VoLTE语音通话时,可在移动终端设置VoLTE通话开关,当上述VoLTE通话开关开启时,移动终端在拨号后会自动发起VoLTE通话请求。当移动终端发起VoLTE通话请求或接收到VoLTE通话请求时,移动终端获取当前电量值和当前流量余量。当前电量值可为当前电量占总电量值的百分比或当前电量的数值;当前流量余量可为当前4G流量余量。移动终端可通过调用Battery Manager来获取电池状态,如电量值;通过读取流量监控软件中监控数据来获取4G流量余量。Wherein, when the mobile terminal supports VoLTE voice calls, a VoLTE call switch can be set on the mobile terminal. When the above VoLTE call switch is turned on, the mobile terminal will automatically initiate a VoLTE call request after dialing. When the mobile terminal initiates a VoLTE call request or receives a VoLTE call request, the mobile terminal obtains the current power value and the current traffic margin. The current power value can be the percentage of the current power to the total power value or the value of the current power; the current traffic margin can be the current 4G traffic margin. The mobile terminal can obtain the battery status by calling the Battery Manager, such as the power value; by reading the monitoring data in the traffic monitoring software, it can obtain the 4G traffic margin.
S104,检测电量值是否高于第一阈值且流量余量是否高于第二阈值。S104: Detect whether the power value is higher than the first threshold and whether the flow margin is higher than the second threshold.
具体地,当移动终端获取到当前电量值和当前流量余量时,检测当前电量值是否高于预设的第一阈值、当前流量余量是否高于预设的第二阈值。第一阈值和第二阈值可为系统预设值,也可为用户设定值。例如,预设的第一阈值为30%或2000mA,预设的第二阈值为200M,当移动终端获取到当前电量值和当前流量余量时,若获取的电量值为电量百分比,则检测电量百分比是否高于30%;若获取的电量值为电量的数值,则检测电量值是否高于2000mA;载检测流量值是否高于200M。Specifically, when the mobile terminal obtains the current power value and the current flow margin, it detects whether the current power value is higher than a preset first threshold and whether the current flow margin is higher than a preset second threshold. The first threshold value and the second threshold value may be system preset values or user-set values. For example, the preset first threshold is 30% or 2000mA, and the preset second threshold is 200M. When the mobile terminal obtains the current power value and the current flow remaining, if the obtained power value is the power percentage, the power is detected. Whether the percentage is higher than 30%; if the obtained electricity value is the value of electricity, check whether the electricity value is higher than 2000mA; whether the load detection flow value is higher than 200M.
S106,若电量值高于第一阈值且流量余量高于第二阈值,通过VoLTE语音业务进行通话。若否,通过2G/3G电路域语音业务进行通话。S106 , if the power value is higher than the first threshold and the traffic margin is higher than the second threshold, make a call through the VoLTE voice service. If not, the call is made through the 2G/3G circuit domain voice service.
具体地,当移动终端检测到电量值高于第一阈值且流量余量高于第二阈值时,通过VoLTE语音业务进行通话;当移动终端检测到电量值不高于第一阈值或流量余量不高于第二阈值时候,将VoLTE语音业务切换为2G/3G电路域语音业务,即将VoLTE语音业务切换为GSM(Global System for Mobile Communication,全球移动通信系统)语音业务。其中,通过CSFB(Circuit Switched Fallback,电路域回落)技术将VoLTE语音业务切换为GSM语音业务。Specifically, when the mobile terminal detects that the battery level is higher than the first threshold and the traffic margin is higher than the second threshold, the call is made through the VoLTE voice service; when the mobile terminal detects that the battery level is not higher than the first threshold or the traffic margin When not higher than the second threshold, the VoLTE voice service is switched to the 2G/3G circuit domain voice service, that is, the VoLTE voice service is switched to the GSM (Global System for Mobile Communication, Global System for Mobile Communication) voice service. Among them, the VoLTE voice service is switched to the GSM voice service through the CSFB (Circuit Switched Fallback, circuit domain fallback) technology.
本发明实施例中通话方法,在接收到VoLTE通话请求或发起VoLTE通话请求时,通过检测移动终端电量值和流量余量值判定移动终端通过VoLTE语音业务进行通话或通过2G/3G电路域语音业务进行通话,能够避免在移动终端电量值较低或流量余量较少时发起VoLTE通话,因VoLTE通话功耗较高导致的移动终端的关机问题,能够实现在移动终端电量较低时有更长时间的通话。In the calling method in the embodiment of the present invention, when a VoLTE call request is received or a VoLTE call request is initiated, the mobile terminal is determined by detecting the power value and the remaining traffic value of the mobile terminal to make a call through the VoLTE voice service or through the 2G/3G circuit domain voice service. To make a call, it can avoid starting a VoLTE call when the battery value of the mobile terminal is low or the data reserve is small. The shutdown problem of the mobile terminal caused by the high power consumption of VoLTE calls can be realized when the power of the mobile terminal is low. time call.
在一个实施例中,若移动终端接收到VoLTE通话请求,上述移动终端不支持VoLTE通话或移动终端未开启VoLTE通话开关,则通过CSFB技术将VoLTE语音业务切换为GSM语音业务。若移动终端发起VoLTE通话请求,但接受通话请求的移动终端不支持VoLTE通话或移动终端未开启VoLTE通话开关,则通过CSFB技术将VoLTE语音业务切换为GSM语音业务。In one embodiment, if the mobile terminal receives a VoLTE call request, the mobile terminal does not support VoLTE calls or the mobile terminal does not turn on the VoLTE call switch, the VoLTE voice service is switched to the GSM voice service through the CSFB technology. If the mobile terminal initiates a VoLTE call request, but the mobile terminal that accepts the call request does not support VoLTE calls or the mobile terminal does not turn on the VoLTE call switch, the VoLTE voice service is switched to the GSM voice service through the CSFB technology.
在一个实施例中,图2为另一个实施例中通话方法的流程图。如图2所示,上述通话方法还包括:In one embodiment, FIG. 2 is a flowchart of a calling method in another embodiment. As shown in Figure 2, the above-mentioned calling method further includes:
S202,在通过VoLTE语音业务进行通话过程中,实时检测或按照预设的时间间隔检测电量值和流量余量。S202, in the process of making a call through the VoLTE voice service, detect in real time or detect the power value and the flow margin according to a preset time interval.
S204,若电量值不高于第一阈值或流量余量不高于第二阈值,通过2G/3G电路域语音业务进行通话。S204, if the power value is not higher than the first threshold or the flow margin is not higher than the second threshold, the call is made through the 2G/3G circuit domain voice service.
具体地,在移动终端通过VoLTE语音业务进行通话过程中,可实时检测移动终端当前电量值和当前流量余量;或按照预设的是时间间隔检测当前电量值和当前流量余量。预设的时间间隔可为系统预设值,也可为用户设定值。若检测到当前电量值不高于第一阈值或流量余量不高于第二阈值,则通过2G/3G电路域语音业务进行通话,即通过CSFB技术将VoLTE语音业务切换为GSM语音业务。Specifically, when the mobile terminal is talking through the VoLTE voice service, the current battery level and the current traffic margin of the mobile terminal can be detected in real time; or the current battery level and the current traffic margin can be detected according to a preset time interval. The preset time interval can be a system preset value or a user-set value. If it is detected that the current battery level is not higher than the first threshold or the traffic margin is not higher than the second threshold, the call is made through the 2G/3G circuit domain voice service, that is, the VoLTE voice service is switched to the GSM voice service through the CSFB technology.
本发明实施例中通话方法,在VoLTE通话过程中检测移动终端的电量值和流量余量,根据电量值和流量余量进行语音业务切换。即在移动终端的电量值低于指定值或流量余量低于指定值后将通话切换为GSM语音业务,节省了终端功耗,避免因通话产生额外的流量资费。In the calling method in the embodiment of the present invention, during the VoLTE call process, the power value and the flow margin of the mobile terminal are detected, and the voice service switching is performed according to the power value and the traffic margin. That is, when the power level of the mobile terminal is lower than the specified value or the traffic margin is lower than the specified value, the call is switched to the GSM voice service, which saves the power consumption of the terminal and avoids additional traffic charges due to the call.
在一个实施例中,上述通话方法还包括:在通过VoLTE语音业务进行通话过程中,若检测到单位时间内电量消耗量高于第三阈值且持续时长达到预设时长,通过2G/3G电路域语音业务进行通话。In an embodiment, the above-mentioned calling method further includes: during the calling process through the VoLTE voice service, if it is detected that the power consumption per unit time is higher than a third threshold and the duration reaches a preset duration, the 2G/3G circuit domain voice service to make a call.
具体地,在移动终端通过VoLTE语音业务进行通话过程中,检测电量消耗量,并计算单位时间内电量消耗量,若检测到单位时间内电量消耗量高于预设的第三阈值,且持续时长达到预设时长,则通过2G/3G电路域语音业务进行通话,即通过CSFB技术将VoLTE语音业务切换为GSM语音业务。例如,在移动终端通过VoLTE语音业务进行通话时,检测到单位时间内电量消耗量达到10mA/s,且持续时长达到30s,则判定移动终端耗电异常,将VoLTE语音业务切换为GSM语音业务。Specifically, when the mobile terminal makes a call through the VoLTE voice service, the power consumption is detected, and the power consumption per unit time is calculated. If it is detected that the power consumption per unit time is higher than the preset third threshold, and the duration is long When the preset duration is reached, the call is made through the 2G/3G circuit domain voice service, that is, the VoLTE voice service is switched to the GSM voice service through the CSFB technology. For example, when the mobile terminal is making a call through the VoLTE voice service, it is detected that the power consumption per unit time reaches 10 mA/s, and the duration reaches 30s, and the mobile terminal is judged to have abnormal power consumption, and the VoLTE voice service is switched to the GSM voice service.
本发明实施例中通话方法,在VoLTE通话过程中检测到移动终端单位时间内耗电较高时,切换语音业务。即在移动终端处于耗电异常场景时,如当前区域LTE信号较差,移动终端搜索LTE信号功耗较大,则切换语音业务,避免了因VoLTE通话带来的功耗异常。In the calling method in the embodiment of the present invention, when it is detected that the mobile terminal consumes high power per unit time during the VoLTE call, the voice service is switched. That is, when the mobile terminal is in an abnormal power consumption scenario, if the LTE signal in the current area is poor and the mobile terminal consumes a lot of power to search for the LTE signal, the voice service can be switched to avoid abnormal power consumption caused by VoLTE calls.
图3为另一个实施例中通话方法的流程图。如图3所示,上述通话方法包括:FIG. 3 is a flowchart of a calling method in another embodiment. As shown in Figure 3, the above-mentioned calling method includes:
S302,若检测到移动终端发起长期演进语音VoLTE通话请求或接收到VoLTE通话请求,获取移动终端的电量值和流量余量。S302 , if it is detected that the mobile terminal initiates a voice-over-long-term evolution VoLTE call request or receives a VoLTE call request, obtain the power value and the data allowance of the mobile terminal.
S304,检测电量值是否高于第一阈值且流量余量是否高于第二阈值。S304: Detect whether the power value is higher than the first threshold and whether the flow margin is higher than the second threshold.
S306,检测移动终端的数据网络信号分值是否高于第四阈值。S306. Detect whether the data network signal score of the mobile terminal is higher than a fourth threshold.
S308,若电量值高于第一阈值、且流量余量高于第二阈值、且数据网络信号分值高于第四阈值,通过VoLTE语音业务进行通话。S308 , if the power value is higher than the first threshold, the traffic margin is higher than the second threshold, and the data network signal score is higher than the fourth threshold, the call is made through the VoLTE voice service.
具体地,在移动终端发起VoLTE通话请求或接收到VoLTE通话请求后,除检测电量值是否高于第一阈值且流量余量是否高于第二阈值外,还检测移动终端的数据网络信号分值是否高于预设的第四阈值。其中,移动终端可对数据网络信号质量进行检测。例如,通过数据网络将网络报文发送给服务器,并记录发送报文的时刻;接收服务器返回的网络报文,并记录接收报文的时刻,通过计算接收报文的时刻与发送报文的时刻之间的时间差,可获取网络延时,再根据预配置的数据网络信号评分机制对得到的网络延时进行评分,获取数据网络信号分值。当数据网络的信号分值低于预设的第四阈值时,判定当前数据网络信号较差,将VoLTE语音业务切换为GSM语音业务。仅当电量值高于第一阈值、且流量余量高于第二阈值、且数据网络信号分值高于第四阈值时,通过VoLTE语音业务进行通话。Specifically, after the mobile terminal initiates a VoLTE call request or receives a VoLTE call request, in addition to detecting whether the power value is higher than the first threshold and whether the traffic margin is higher than the second threshold, it also detects the data network signal score of the mobile terminal Is it higher than the preset fourth threshold. The mobile terminal can detect the signal quality of the data network. For example, send a network message to the server through a data network, and record the time of sending the message; receive the network message returned by the server, and record the time of receiving the message, by calculating the time of receiving the message and the time of sending the message The time difference between the two can be obtained, and the network delay can be obtained, and then the obtained network delay can be scored according to the preconfigured data network signal scoring mechanism to obtain the data network signal score. When the signal score of the data network is lower than the preset fourth threshold, it is determined that the current data network signal is poor, and the VoLTE voice service is switched to the GSM voice service. Only when the power value is higher than the first threshold, the traffic margin is higher than the second threshold, and the data network signal score is higher than the fourth threshold, the call is made through the VoLTE voice service.
本发明实施例中通话方法,检测移动终端的数据网络信号分值,当移动终端的数据网络信号分值较低,即移动终端当前数据网络信号较差时,将VoLTE语音业务切换为GSM语音业务,避免了因数据网络信号较差导致的VoLTE业务失败的情况。In the calling method in the embodiment of the present invention, the data network signal score of the mobile terminal is detected, and when the data network signal score of the mobile terminal is low, that is, when the current data network signal of the mobile terminal is poor, the VoLTE voice service is switched to the GSM voice service. , to avoid VoLTE service failure caused by poor data network signal.
图4为另一个实施例中通话方法的流程图。如图4所示,上述通话方法包括:FIG. 4 is a flowchart of a calling method in another embodiment. As shown in Figure 4, the above-mentioned calling method includes:
S402,若检测到移动终端发起长期演进语音VoLTE通话请求或接收到VoLTE通话请求,获取移动终端的电量值和流量余量。S402 , if it is detected that the mobile terminal initiates a voice over long-term evolution VoLTE call request or receives a VoLTE call request, obtain a power value and a traffic margin of the mobile terminal.
S404,检测电量值是否高于第一阈值且流量余量是否高于第二阈值。S404. Detect whether the power value is higher than the first threshold and whether the flow margin is higher than the second threshold.
S406,检测移动终端是否处于充电状态。S406: Detect whether the mobile terminal is in a charging state.
S408,若流量余量高于第二阈值且移动终端处于充电状态,通过VoLTE语音业务进行通话。S408, if the remaining traffic is higher than the second threshold and the mobile terminal is in a charging state, make a call through the VoLTE voice service.
具体地,在移动终端发起VoLTE通话请求或接收到VoLTE通话请求后,除检测电量值是否高于第一阈值且流量余量是否高于第二阈值外,还检测移动终端是否处于充电状态。移动终端可通过调用Battery Manager来获取电池状态,如电池是否在充电。当检测到移动终端处于充电状态时且流量余量高于第二阈值时,通过VoLTE语音业务进行通话。即当移动终端处于充电状态且流量余量高于第二阈值时,不论移动终端当前电量值是否高于第一阈值,均通过VoLTE语音业务进行通话。Specifically, after the mobile terminal initiates a VoLTE call request or receives a VoLTE call request, in addition to detecting whether the power value is higher than the first threshold and whether the traffic balance is higher than the second threshold, it also detects whether the mobile terminal is in a charging state. The mobile terminal can obtain the battery status by calling the Battery Manager, such as whether the battery is charging. When it is detected that the mobile terminal is in a charging state and the remaining traffic is higher than the second threshold, a call is made through the VoLTE voice service. That is, when the mobile terminal is in a charging state and the remaining traffic is higher than the second threshold, regardless of whether the current battery level of the mobile terminal is higher than the first threshold, the call is made through the VoLTE voice service.
本发明实施例中通话方法,检测移动终端是否处于充电状态,在移动终端处于充电状态时,仅流量余量高于第二阈值即可进行VoLTE通话,优先选择VoLTE语音业务进行通话,提高了通话质量。In the calling method in the embodiment of the present invention, it is detected whether the mobile terminal is in the charging state. When the mobile terminal is in the charging state, VoLTE calls can be made only if the data flow rate is higher than the second threshold, and VoLTE voice services are preferentially selected for the calls, which improves the communication efficiency. quality.
图5为另一个实施例中通话方法的示意图。如图5所示,一种通话方法,包括步骤S502至步骤S512。其中:FIG. 5 is a schematic diagram of a calling method in another embodiment. As shown in FIG. 5 , a calling method includes steps S502 to S512. in:
S502,开启VoLTE通话开关。若移动终端支持VoLTE语音业务,开启移动终端中VoLTE通话开关。S502, turn on the VoLTE call switch. If the mobile terminal supports VoLTE voice service, turn on the VoLTE call switch in the mobile terminal.
S504,移动终端发起VoLTE通话请求或接收到VoLTE通话请求。当移动终端发起VoLTE通话请求或接收到VoLTE通话请求时,获取移动终端的当前电量值和当前流量余量。S504, the mobile terminal initiates a VoLTE call request or receives a VoLTE call request. When the mobile terminal initiates a VoLTE call request or receives a VoLTE call request, the current power value and the current flow margin of the mobile terminal are obtained.
S506,检测电量值是否高于第一阈值。检测当前电量值是否高于第一阈值,第一阈值可为用户设定值。若是,进入步骤S508;若否,进入步骤S512。S506: Detect whether the electric quantity value is higher than the first threshold. It is detected whether the current power value is higher than a first threshold, and the first threshold may be a user-set value. If yes, go to step S508; if no, go to step S512.
S508,检测流量余量是否高于第二阈值。检测当前流量余量是否高于第二阈值,第二阈值可为用户设定值。若是,进入步骤S510;若否,进入步骤S512。S508: Detect whether the flow margin is higher than the second threshold. It is detected whether the current flow margin is higher than a second threshold, and the second threshold may be a user-set value. If yes, go to step S510; if no, go to step S512.
S510,通过VoLTE语音业务进行通话。S510, make a call through the VoLTE voice service.
S512,通过2G/3G电路域语音业务进行通话。S512, make a call through the 2G/3G circuit domain voice service.
图6为一个实施例中通话装置的结构框图。如图6所示,一种通话装置,包括获取模块602、检测模块604和切换模块606。其中:FIG. 6 is a structural block diagram of a communication device in an embodiment. As shown in FIG. 6 , a communication device includes an
获取模块602,用于若检测到移动终端发起长期演进语音VoLTE通话请求或接收到VoLTE通话请求,获取移动终端的电量值和流量余量。The obtaining
检测模块604,用于检测电量值是否高于第一阈值且流量余量是否高于第二阈值。The
切换模块606,用于若电量值高于第一阈值且流量余量高于第二阈值,通过VoLTE语音业务进行通话;若否,通过2G/3G电路域语音业务进行通话。The
在一个实施例中,检测模块604还用于在通过VoLTE语音业务进行通话过程中,实时检测或按照预设的时间间隔检测电量值和流量余量;切换模块606还用于若电量值不高于第一阈值或流量余量不高于第二阈值,通过2G/3G电路域语音业务进行通话。In one embodiment, the
在一个实施例中,切换模块606还用于在通过VoLTE语音业务进行通话过程中,若检测到单位时间内电量消耗量高于第三阈值且持续时长达到预设时长,通过2G/3G电路域语音业务进行通话。In one embodiment, the
在一个实施例中,检测模块604还用于在检测电量值是否高于第一阈值且流量余量是否高于第二阈值之后,检测移动终端的数据网络信号分值是否高于第四阈值;切换模块606还用于若电量值高于第一阈值、且流量余量高于第二阈值、且数据网络信号分值高于第四阈值,通过VoLTE语音业务进行通话。In one embodiment, the
在一个实施例中,检测模块604还用于在检测电量值是否高于第一阈值且流量余量是否高于第二阈值之后,检测移动终端是否处于充电状态;切换模块606还用于若流量余量高于第二阈值且移动终端处于充电状态,通过VoLTE语音业务进行通话。In one embodiment, the
在一个实施例中,若移动终端接收到VoLTE通话请求,上述移动终端不支持VoLTE通话或移动终端未开启VoLTE通话开关,则通过CSFB技术将VoLTE语音业务切换为GSM语音业务。若移动终端发起VoLTE通话请求,但接受通话请求的移动终端不支持VoLTE通话或移动终端未开启VoLTE通话开关,则通过CSFB技术将VoLTE语音业务切换为GSM语音业务。In one embodiment, if the mobile terminal receives a VoLTE call request, the mobile terminal does not support VoLTE calls or the mobile terminal does not turn on the VoLTE call switch, the VoLTE voice service is switched to the GSM voice service through the CSFB technology. If the mobile terminal initiates a VoLTE call request, but the mobile terminal that accepts the call request does not support VoLTE calls or the mobile terminal does not turn on the VoLTE call switch, the VoLTE voice service is switched to the GSM voice service through the CSFB technology.
上述通话装置中各个模块的划分仅用于举例说明,在其他实施例中,可将通话装置按照需要划分为不同的模块,以完成上述通话装置的全部或部分功能。The division of each module in the above-mentioned communication device is only used for illustration. In other embodiments, the communication device can be divided into different modules as required to complete all or part of the functions of the above-mentioned communication device.
本发明实施例还提供了一种计算机可读存储介质。一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上所述的通话方法。Embodiments of the present invention also provide a computer-readable storage medium. A computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the above-mentioned calling method.
本发明实施例还提供了一种移动终端。如图7所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以移动终端为手机为例:The embodiment of the present invention also provides a mobile terminal. As shown in FIG. 7 , for the convenience of description, only the part related to the embodiment of the present invention is shown, and the specific technical details are not disclosed, please refer to the method part of the embodiment of the present invention. The mobile terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant, personal digital assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, a wearable device, etc. Take the mobile terminal as an example of a mobile phone :
图7为与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图7,手机包括:射频(Radio Frequency,RF)电路710、存储器720、输入单元730、显示单元740、传感器750、音频电路760、无线保真(wireless fidelity,WiFi)模块770、处理器780、以及电源790等部件。本领域技术人员可以理解,图7所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 7 is a block diagram of a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention. Referring to FIG. 7 , the mobile phone includes: a radio frequency (RF)
其中,RF电路710可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器780处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路710还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The
存储器720可用于存储软件程序以及模块,处理器780通过运行存储在存储器720的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器720可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
输入单元730可用于接收输入的数字或字符信息,以及产生与手机700的用户设置以及功能控制有关的键信号输入。具体地,输入单元730可包括触控面板731以及其他输入设备732。触控面板731,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板731上或在触控面板731附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器780,并能接收处理器780发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板731。除了触控面板731,输入单元730还可以包括其他输入设备732。具体地,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The
显示单元740可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元740可包括显示面板741。在一个实施例中,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板741。在一个实施例中,触控面板731可覆盖显示面板741,当触控面板731检测到在其上或附近的触摸操作后,传送给处理器780以确定触摸事件的类型,随后处理器780根据触摸事件的类型在显示面板741上提供相应的视觉输出。虽然在图7中,触控面板731与显示面板741是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板731与显示面板741集成而实现手机的输入和输出功能。The
手机700还可包括至少一种传感器750,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板741的亮度,接近传感器可在手机移动到耳边时,关闭显示面板741和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。
音频电路760、扬声器761和传声器762可提供用户与手机之间的音频接口。音频电路760可将接收到的音频数据转换后的电信号,传输到扬声器761,由扬声器761转换为声音信号输出;另一方面,传声器762将收集的声音信号转换为电信号,由音频电路760接收后转换为音频数据,再将音频数据输出处理器780处理后,经RF电路710可以发送给另一手机,或者将音频数据输出至存储器720以便后续处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块770可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图7示出了WiFi模块770,但是可以理解的是,其并不属于手机700的必须构成,可以根据需要而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the
处理器780是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器720内的软件程序和/或模块,以及调用存储在存储器720内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器780可包括一个或多个处理单元。在一个实施例中,处理器780可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器780中。The
手机700还包括给各个部件供电的电源790(比如电池),优选的,电源可以通过电源管理系统与处理器780逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
在一个实施例中,手机700还可以包括摄像头、蓝牙模块等。In one embodiment, the
本发明实施例中,该移动终端所包括的处理器780执行存储在存储器上的计算机程序时实现如上所述的通话方法。In this embodiment of the present invention, when the
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium , when the program is executed, it may include the flow of the embodiments of the above-mentioned methods. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or the like.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present invention, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the patent of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can also be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention should be subject to the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710512241.8A CN107295591B (en) | 2017-06-28 | 2017-06-28 | Call method, device, computer storage medium and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710512241.8A CN107295591B (en) | 2017-06-28 | 2017-06-28 | Call method, device, computer storage medium and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107295591A CN107295591A (en) | 2017-10-24 |
CN107295591B true CN107295591B (en) | 2020-01-10 |
Family
ID=60098226
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710512241.8A Active CN107295591B (en) | 2017-06-28 | 2017-06-28 | Call method, device, computer storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107295591B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108966298B (en) * | 2018-06-21 | 2021-06-08 | 维沃移动通信有限公司 | Communication frequency band control method and device |
CN111083748B (en) * | 2018-10-19 | 2022-08-12 | 中兴通讯股份有限公司 | Network switching method, terminal and computer readable storage medium |
CN109257765B (en) * | 2018-11-19 | 2021-12-21 | 广东小天才科技有限公司 | Voice call adjusting method and mobile terminal |
CN109327866B (en) * | 2018-12-19 | 2022-01-04 | 惠州Tcl移动通信有限公司 | Flow control method, flow control device, mobile terminal and storage medium |
CN110557780A (en) | 2019-05-16 | 2019-12-10 | Oppo广东移动通信有限公司 | power consumption control method and device of terminal and storage medium |
CN111263017B (en) * | 2020-01-09 | 2021-03-26 | RealMe重庆移动通信有限公司 | Call mode control method and device, storage medium and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102800318A (en) * | 2012-06-27 | 2012-11-28 | 优视科技有限公司 | Device and method for transmitting and receiving audio data streams |
CN105323362A (en) * | 2014-06-27 | 2016-02-10 | 中兴通讯股份有限公司 | Terminal working mode adjustment method and device |
CN105550105A (en) * | 2015-12-08 | 2016-05-04 | 成都中科创达软件有限公司 | Selecting method and system of application programs with same function in mobile terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9531552B2 (en) * | 2014-10-21 | 2016-12-27 | Arris Enterprises, Inc. | Dynamic power reduction management of network devices |
US20170026948A1 (en) * | 2015-07-20 | 2017-01-26 | Qualcomm Incorporated | Inter-radio access technology measurement scheduling during connected mode discontinuous reception duration |
-
2017
- 2017-06-28 CN CN201710512241.8A patent/CN107295591B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102800318A (en) * | 2012-06-27 | 2012-11-28 | 优视科技有限公司 | Device and method for transmitting and receiving audio data streams |
CN105323362A (en) * | 2014-06-27 | 2016-02-10 | 中兴通讯股份有限公司 | Terminal working mode adjustment method and device |
CN105550105A (en) * | 2015-12-08 | 2016-05-04 | 成都中科创达软件有限公司 | Selecting method and system of application programs with same function in mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107295591A (en) | 2017-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10831161B2 (en) | Method and device for sending communication message | |
CN107295591B (en) | Call method, device, computer storage medium and mobile terminal | |
CN104735671B (en) | A kind of method and apparatus of identification malicious call | |
CN107896272B (en) | Call control method and device | |
CN106507289A (en) | A wireless network access method and mobile terminal | |
CN106331359B (en) | A kind of speech signal collection method, device and terminal | |
CN107465841B (en) | Fault information reporting method and terminal | |
CN107277752A (en) | Bluetooth connection method, device, computer equipment and computer-readable storage medium | |
CN106028316B (en) | A network search method and device for international roaming | |
CN105263182A (en) | Equipment control method, device and terminal | |
CN107959952A (en) | A kind of detection method and terminal of different system cell | |
CN103068016B (en) | The method of mobile terminal and reduction power consumption thereof | |
WO2018049901A1 (en) | Data migration method and related devices | |
CN104917905B (en) | Processing method, terminal and the server of Stranger Calls | |
CN109495769B (en) | Video communication method, terminal, smart television, server and storage medium | |
CN108668016B (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
CN106714279A (en) | A hotspot network switching method and terminal equipment | |
CN106126170A (en) | A terminal sound effect setting method and terminal | |
CN108901062A (en) | wireless communication transmission method, device, mobile terminal and computer readable storage medium | |
CN106648205B (en) | Sleep control method, device and terminal | |
CN106658360A (en) | A data transmission method and device | |
CN106899733B (en) | Intelligent terminal and system address book phone number processing method and device | |
CN105635379B (en) | Noise suppression method and device | |
CN108476465B (en) | A method for maintaining a CSFB network in a circuit domain fallback and a user terminal | |
CN106294528B (en) | Method and device for realizing information transmission |
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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |