[go: up one dir, main page]

CN116887388A - Communication processing method, electronic device and storage medium - Google Patents

Communication processing method, electronic device and storage medium Download PDF

Info

Publication number
CN116887388A
CN116887388A CN202311141149.7A CN202311141149A CN116887388A CN 116887388 A CN116887388 A CN 116887388A CN 202311141149 A CN202311141149 A CN 202311141149A CN 116887388 A CN116887388 A CN 116887388A
Authority
CN
China
Prior art keywords
communication terminal
bluetooth device
bluetooth
notification message
instruction
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
CN202311141149.7A
Other languages
Chinese (zh)
Other versions
CN116887388B (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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311141149.7A priority Critical patent/CN116887388B/en
Publication of CN116887388A publication Critical patent/CN116887388A/en
Application granted granted Critical
Publication of CN116887388B publication Critical patent/CN116887388B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • 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/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application provides a communication processing method, electronic equipment and a storage medium, wherein the method is used for supporting Bluetooth equipment with an In-Band Ring function, and when the residual electric quantity of the Bluetooth equipment is lower than a first preset threshold value, the Bluetooth equipment sends a first notification message to a communication terminal; notifying a communication terminal that the Bluetooth device temporarily does not support an In-Band Ring function; when the communication terminal receives the incoming call request, the Bluetooth device receives a second notification message sent by the communication terminal; responding to the second notification message, and playing a local ring for answering the call by the Bluetooth equipment; after receiving an answer instruction, the Bluetooth equipment sends a first instruction to the communication terminal, wherein the first instruction is used for indicating the communication terminal to answer an incoming call; and establishing an SOC audio data path with the communication terminal based on the first instruction. When the residual electric quantity of the Bluetooth device is low, the embodiment uses the local ring for answering the call, thereby being beneficial to reducing the power consumption.

Description

通信处理方法、电子设备及存储介质Communication processing method, electronic device and storage medium

技术领域Technical field

本申请实施例涉及通信领域,尤其涉及一种通信处理方法、电子设备及存储介质。Embodiments of the present application relate to the field of communication, and in particular, to a communication processing method, electronic device, and storage medium.

背景技术Background technique

当运动手表、手环等蓝牙设备与手机等通信终端建立蓝牙连接时,蓝牙设备可以对通信终端进行通信控制,比如接听通信终端的来电或者拒绝接听通信终端的来电等操作。When Bluetooth devices such as sports watches and bracelets establish a Bluetooth connection with communication terminals such as mobile phones, the Bluetooth device can perform communication control on the communication terminal, such as answering incoming calls from the communication terminal or refusing to answer incoming calls from the communication terminal.

由于来电后蓝牙设备的功耗较大,在蓝牙设备的电量较低时,使用蓝牙设备通信会给用户带来焦虑。Since the Bluetooth device consumes a lot of power after an incoming call, using the Bluetooth device to communicate will cause anxiety to the user when the battery of the Bluetooth device is low.

在通信终端接收到来电并通过蓝牙通知蓝牙设备后,蓝牙设备如何降低来电后的功耗,以缓解用户的焦虑是亟待解决的问题。After the communication terminal receives an incoming call and notifies the Bluetooth device through Bluetooth, how the Bluetooth device reduces the power consumption after the incoming call to alleviate the user's anxiety is an issue that needs to be solved urgently.

发明内容Contents of the invention

本申请实施例提供了一种通信处理方法、电子设备及存储介质,能够降低来电功耗。Embodiments of the present application provide a communication processing method, electronic device and storage medium, which can reduce the power consumption of incoming calls.

第一方面,本申请实施例提供了一种通信方法,所述方法用于支持In-Band Ring功能的蓝牙设备,蓝牙设备可以是手表或者手环等电子设备,所述蓝牙设备通过蓝牙与通信终端进行通信,通信终端可以是手机等电子设备,以蓝牙设备为手表,通信终端为手机为例,在手表支持In-Band Ring功能时,若手机接到来电,手表侧可以同步提醒来电信息,并且手表侧可以从手机侧获取手机侧最新的来电响铃文件并播放响铃。本申请提供的通信方法包括:在所述蓝牙设备的剩余电量低于第一预设阈值时,所述蓝牙设备向所述通信终端发送第一通知消息;所述第一通知消息用于通知所述通信终端所述蓝牙设备暂时不支持In-Band Ring功能;在蓝牙设备不支持In-Band Ring功能时,蓝牙设备响铃提示来电时,响铃文件可以不用从通信终端获取最新的响铃文件,可以使用蓝牙设备中已保存的接听电话的铃声,在通信终端接收到来电请求时,所述蓝牙设备接收所述通信终端发送的第二通知消息,所述第二通知消息包括:来电请求对应的相关信息,比如:所述来电请求对应的联系人、电话号码、以及响铃通知等;响应于所述第二通知消息,所述蓝牙设备播放本地的接听电话的铃声;在获取接听指令后,所述蓝牙设备向所述通信终端发送第一指令,所述第一指令用于指示所述通信终端接听来电;基于所述第一指令所述蓝牙设备与所述通信终端建立片上系统(System on Chip ,SOC)音频数据通路。In the first aspect, embodiments of the present application provide a communication method. The method is used for a Bluetooth device that supports the In-Band Ring function. The Bluetooth device can be an electronic device such as a watch or a bracelet. The Bluetooth device communicates with The terminal communicates. The communication terminal can be an electronic device such as a mobile phone. For example, the Bluetooth device is a watch and the communication terminal is a mobile phone. When the watch supports the In-Band Ring function, if the mobile phone receives an incoming call, the watch side can simultaneously remind the incoming call information. And the watch side can obtain the latest incoming call ring file from the mobile phone side and play the ringtone. The communication method provided by this application includes: when the remaining power of the Bluetooth device is lower than a first preset threshold, the Bluetooth device sends a first notification message to the communication terminal; the first notification message is used to notify the The Bluetooth device of the communication terminal does not support the In-Band Ring function temporarily; when the Bluetooth device does not support the In-Band Ring function, when the Bluetooth device rings to prompt an incoming call, the ring file does not need to obtain the latest ring file from the communication terminal. , the ringtone for answering calls that has been saved in the Bluetooth device can be used. When the communication terminal receives the incoming call request, the Bluetooth device receives the second notification message sent by the communication terminal, and the second notification message includes: the corresponding call request Relevant information, such as: the contact person, phone number, ring notification, etc. corresponding to the incoming call request; in response to the second notification message, the Bluetooth device plays the local ring tone for answering the call; after obtaining the answering instruction , the Bluetooth device sends a first instruction to the communication terminal, the first instruction is used to instruct the communication terminal to answer the incoming call; based on the first instruction, the Bluetooth device and the communication terminal establish a system on a chip (System on Chip, SOC) audio data path.

采用该实施例进行通信处理时,在通信终端接到来电、并且蓝牙设备剩余电量较低时,蓝牙设备使用本地的接听电话的铃声,相对于现有技术中蓝牙设备从通信终端获取接听电话的铃声来说,该实施例提供的通信处理方法降低了功耗。When using this embodiment for communication processing, when the communication terminal receives an incoming call and the remaining power of the Bluetooth device is low, the Bluetooth device uses the local ringtone for answering the call. Compared with the prior art, the Bluetooth device obtains the ringtone for answering the call from the communication terminal. For ringtones, the communication processing method provided by this embodiment reduces power consumption.

可选地,在所述蓝牙设备向所述通信终端发送第一通知消息之前,所述方法还包括:Optionally, before the Bluetooth device sends the first notification message to the communication terminal, the method further includes:

所述蓝牙设备通过免提服务级连接(hands free profle service levelconnect establishment,HFP SLC)与所述通信终端建立连接;The Bluetooth device establishes a connection with the communication terminal through a hands-free service level connection establishment (HFP SLC);

所述蓝牙设备向所述通信终端发送第三通知消息;所述第三通知消息用于通知所述通信终端所述蓝牙设备支持In-Band Ring功能;The Bluetooth device sends a third notification message to the communication terminal; the third notification message is used to notify the communication terminal that the Bluetooth device supports the In-Band Ring function;

所述蓝牙设备获取所述通信终端发送的接听电话的铃声文件作为所述本地的接听电话的铃声。The Bluetooth device obtains the ringtone file for answering calls sent by the communication terminal as the local ringtone for answering calls.

该实施例在蓝牙设备与通信终端通过HFP SLC建立连接时,从通信终端获取通信终端的接听电话的铃声文件,并将接收到的铃声文件对应的铃声作为本地的接听电话的铃声。举例来说,若建立连接时,通信终端中设置的接听电话的铃声为VOICE1文件对应的铃声,则蓝牙设备与通信终端建立连接后,蓝牙设备从通信终端获取VOICE1文件作为本地接听电话的铃声对应的铃声文件。需要说明的是,若后来通信终端将其接听电话的铃声进行了修改,设置铃声文件VOICE2文件对应的铃声为接听电话的铃声,则在通信终端接收到来电,并且蓝牙设备的剩余电量较低低于预设阈值时,蓝牙设备不从通信终端获取最新的来电铃声对应的VOICE2文件,蓝牙设备播放的铃声是VOICE1文件对应的铃声。In this embodiment, when the Bluetooth device and the communication terminal establish a connection through the HFP SLC, the ringtone file of the communication terminal for answering calls is obtained from the communication terminal, and the ringtone corresponding to the received ringtone file is used as the local ringtone for answering calls. For example, if the ringtone for answering calls set in the communication terminal is the ringtone corresponding to the VOICE1 file when the connection is established, then after the Bluetooth device establishes a connection with the communication terminal, the Bluetooth device obtains the VOICE1 file from the communication terminal as the ringtone corresponding to the local answering call. ringtone file. It should be noted that if the communication terminal later modifies the ringtone for answering calls and sets the ringtone corresponding to the ringtone file VOICE2 file as the ringtone for answering calls, then the communication terminal will receive an incoming call and the remaining power of the Bluetooth device will be low. At the preset threshold, the Bluetooth device does not obtain the VOICE2 file corresponding to the latest incoming call ringtone from the communication terminal, and the ringtone played by the Bluetooth device is the ringtone corresponding to the VOICE1 file.

可选地,在所述蓝牙设备向所述通信终端发送第一通知消息之后,所述方法还包括:在所述蓝牙设备充电后并且剩余电量不低于所述第一预设阈值时,所述蓝牙设备向所述通信终端发送第四通知消息,所述第四通知消息用于通知所述通信终端所述蓝牙设备恢复支持In-Band Ring功能。Optionally, after the Bluetooth device sends the first notification message to the communication terminal, the method further includes: after the Bluetooth device is charged and the remaining power is not lower than the first preset threshold, The Bluetooth device sends a fourth notification message to the communication terminal, and the fourth notification message is used to notify the communication terminal that the Bluetooth device resumes supporting the In-Band Ring function.

采用该实施例,在蓝牙设备充电后,若蓝牙设备的剩余电量增加,并且不低于第一预设阈值时,蓝牙设备通知通信终端蓝牙设备回复支持In-Band Ring功能。这样,当通信终端有来电时,蓝牙设备同步提醒用户时,从通信终端获取通信终端最新的接听电话的铃声,并播放接听到的通信终端最新的接听电话的铃声。举例来说,若通信终端最新设置的接听电话的铃声对应的铃声文件是VOICE2,则在通信终端接收到来电,并且蓝牙设备的剩余电量不低于于预设阈值时,蓝牙设备从通信终端获取最新的来电铃声对应的VOICE2文件,蓝牙设备播放的铃声是VOICE2文件对应的铃声。蓝牙设备可以根据自身剩余电量确定是使用已保存的铃声文件还是从通信终端下载并播放通信终端最新设置的来电铃声。Using this embodiment, after the Bluetooth device is charged, if the remaining power of the Bluetooth device increases and is not lower than the first preset threshold, the Bluetooth device notifies the communication terminal that the Bluetooth device returns to support the In-Band Ring function. In this way, when the communication terminal has an incoming call, the Bluetooth device synchronously reminds the user, obtains the communication terminal's latest ring tone for answering the call from the communication terminal, and plays the latest received ring tone for the communication terminal for answering the call. For example, if the ringtone file corresponding to the latest ringtone set by the communication terminal for answering calls is VOICE2, then when the communication terminal receives an incoming call and the remaining power of the Bluetooth device is not less than the preset threshold, the Bluetooth device obtains it from the communication terminal The latest incoming call ringtone corresponds to the VOICE2 file, and the ringtone played by the Bluetooth device is the ringtone corresponding to the VOICE2 file. The Bluetooth device can determine whether to use the saved ringtone file or download and play the latest incoming call ringtone set by the communication terminal based on its own remaining power.

可选地,在所述蓝牙设备向所述通信终端发送第四通知消息之后,所述方法还包括:在所述通信终端接收到来电请求、并且所述蓝牙设备的剩余电量不低于所述第一预设阈值时,所述蓝牙设备与所述通信终端建立SOC音频数据通路;基于建立的所述SOC音频数据通路,所述蓝牙设备获取并播放所述通信终端发送的接听电话的铃声的音频数据。Optionally, after the Bluetooth device sends a fourth notification message to the communication terminal, the method further includes: receiving an incoming call request at the communication terminal and the remaining power of the Bluetooth device is not less than the At the first preset threshold, the Bluetooth device establishes a SOC audio data path with the communication terminal; based on the established SOC audio data path, the Bluetooth device obtains and plays the ring tone sent by the communication terminal to answer the phone. audio data.

可选地,所述方法还可以包括:在获取拨号指令、并且在所述蓝牙设备的剩余电量低于第二预设阈值时,所述蓝牙设备播放本地的拨打电话的铃声;需要说明的是,第二预设阈值可以与第一预设阈值相同,也可以与第一预设阈值不同,可以根据经验确定。Optionally, the method may also include: after obtaining the dialing instruction and when the remaining power of the Bluetooth device is lower than the second preset threshold, the Bluetooth device plays a local ringtone for making a call; it should be noted that , the second preset threshold may be the same as the first preset threshold, or may be different from the first preset threshold, and may be determined based on experience.

可选地,所述方法还可以包括:在获取拨号指令后,在所述蓝牙设备的剩余电量不低于所述第二预设阈值时,所述蓝牙设备与所述通信终端建立SOC音频数据通路;Optionally, the method may also include: after obtaining the dialing instruction, when the remaining power of the Bluetooth device is not lower than the second preset threshold, the Bluetooth device establishes SOC audio data with the communication terminal. path;

基于建立的所述SOC音频数据通路,获取并播放所述通信终端的拨打电话的铃声的音频数据。Based on the established SOC audio data path, the audio data of the ring tone of the communication terminal for making a call is obtained and played.

采用该实施例进行通信处理时,在蓝牙设备利用通信终端拨打电话时,在蓝牙设备剩余电量较低并且低于第二阈值时,蓝牙设备拨打电话时响铃的时候,播放本地保存的拨打电话的铃声,也就是该场景时,蓝牙设备暂时不支持In-Band Ring功能。类似的,在蓝牙设备充电后,并且剩余电量不低于第二阈值时,蓝牙设备可以恢复支持In-Band Ring功能,也就是,当通过蓝牙设备拨电话时,从通信终端获取通信终端最新设置的拨打电话的响铃文件,并播放该响铃文件。蓝牙设备可以根据剩余电量确定是播放本地的铃声文件还是从终端设备获取最新的铃声文件,在蓝牙设备拨打电话,并且蓝牙设备剩余电量较低时,蓝牙设备实用本地的拨打电话的铃声,相对于现有技术中蓝牙设备从通信终端获取拨打电话的铃声来说,该实施例提供的通信处理方法降低了功耗。需要说明的是,第一阈值和第二阈值可以根据经验进行设置,第一阈值可以与第二阈值相等,第一阈值也可以与第二阈值不相等。举例来说,第一阈值可以是蓝牙设备的电池标定容量的10%,第二阈值也可以是蓝牙设备的电池标定容量的10%,可以理解的,第二阈值也可以是蓝牙设备的电池标定容量的8%或者15%等,都是可行的,可以根据经验和实际场景进行设定,这里不做限定。When this embodiment is used for communication processing, when the Bluetooth device uses the communication terminal to make a call, when the remaining power of the Bluetooth device is low and lower than the second threshold, when the Bluetooth device rings when making the call, the locally saved dialed call is played. ringtone, that is, in this scenario, the Bluetooth device does not currently support the In-Band Ring function. Similarly, after the Bluetooth device is charged and the remaining power is not lower than the second threshold, the Bluetooth device can resume supporting the In-Band Ring function, that is, when making a call through the Bluetooth device, the latest settings of the communication terminal are obtained from the communication terminal The ring file for the dialed call and plays the ring file. The Bluetooth device can determine whether to play the local ringtone file or obtain the latest ringtone file from the terminal device based on the remaining power. When the Bluetooth device makes a call and the remaining power of the Bluetooth device is low, the Bluetooth device uses the local ringtone for making the call. In the prior art, a Bluetooth device obtains ringtones for making calls from a communication terminal. The communication processing method provided by this embodiment reduces power consumption. It should be noted that the first threshold and the second threshold can be set based on experience, the first threshold can be equal to the second threshold, and the first threshold can also be unequal to the second threshold. For example, the first threshold can be 10% of the battery calibration capacity of the Bluetooth device, and the second threshold can also be 10% of the battery calibration capacity of the Bluetooth device. It is understandable that the second threshold can also be the battery calibration of the Bluetooth device. 8% or 15% of the capacity are all feasible and can be set based on experience and actual scenarios. There is no limit here.

第二方面,提供了一种通信装置,所述通信装置是支持In-Band Ring功能的蓝牙设备,通信装置通过蓝牙与通信终端进行通信包括:第一发送单元、第一接收单元、播放单元和处理单元;其中,第一发送单元,用于在所述蓝牙设备的剩余电量低于第一预设阈值时,向所述通信终端发送第一通知消息;所述第一通知消息用于通知所述通信终端所述蓝牙设备暂时不支持In-Band Ring功能;第一接收单元,用于在所述通信终端接收到来电请求时,所述蓝牙设备接收所述通信终端发送的第二通知消息,所述第二通知消息包括:所述来电请求对应的联系人、电话号码、以及响铃通知;播放单元,用于响应所述第二通知消息,播放本地的接听电话的铃声;处理单元,用于在获取接听指令后,向所述通信终端发送第一指令,所述第一指令用于指示所述通信终端接听来电;以及用于基于所述第一指令与所述通信终端建立SOC音频数据通路。In a second aspect, a communication device is provided. The communication device is a Bluetooth device that supports the In-Band Ring function. The communication device communicates with a communication terminal through Bluetooth and includes: a first sending unit, a first receiving unit, a playback unit and Processing unit; wherein, the first sending unit is used to send a first notification message to the communication terminal when the remaining power of the Bluetooth device is lower than a first preset threshold; the first notification message is used to notify all The communication terminal and the Bluetooth device temporarily do not support the In-Band Ring function; the first receiving unit is configured to receive the second notification message sent by the communication terminal when the communication terminal receives an incoming call request, The second notification message includes: a contact person, a phone number, and a ring notification corresponding to the incoming call request; a play unit configured to respond to the second notification message and play a local ring tone for answering the call; a processing unit configured to After obtaining the answer instruction, sending a first instruction to the communication terminal, the first instruction is used to instruct the communication terminal to answer the incoming call; and is used to establish SOC audio data with the communication terminal based on the first instruction path.

第三方面,提供了一种电子设备,包括:一个或多个处理器;所述一个或多个存储器存储有一个或多个程序,当所述一个或者多个程序被所述一个或多个处理器执行时,使得所述电子设备执行上述第一方面或者第一方面的任一可能的实施方式提供的技术方案中的任意一种方法。In a third aspect, an electronic device is provided, including: one or more processors; the one or more memories storing one or more programs, when the one or more programs are processed by the one or more When the processor executes, the electronic device is caused to execute any method in the technical solution provided by the above-mentioned first aspect or any possible implementation manner of the first aspect.

第四方面,提供了一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的电子设备执行上述第一方面或者第一方面的任一可能的实施方式提供的技术方案中的任意一种方法。In a fourth aspect, a chip is provided, including: a processor, configured to call and run a computer program from a memory, so that an electronic device equipped with the chip executes the above-mentioned first aspect or any possible implementation of the first aspect. Any method among the technical solutions provided.

第五方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储了计算机程序,当所述计算机程序被电子设备执行时,使得所述电子设备执行述第一方面或者第一方面的任一可能的实施方式提供的技术方案中的任意一种方法。In a fifth aspect, a computer-readable storage medium is provided. A computer program is stored in the computer-readable storage medium. When the computer program is executed by an electronic device, the electronic device is caused to execute the first aspect or the third aspect. Any method among the technical solutions provided by any possible implementation of one aspect.

第六方面,本申请提供了一种计算机程序产品,计算机程序产品包括:计算机程序代码,当计算机程序代码在电子设备上运行时,使得该电子设备执行第一方面的技术方案中任意一种方法。In a sixth aspect, this application provides a computer program product. The computer program product includes: computer program code. When the computer program code is run on an electronic device, it causes the electronic device to execute any method in the technical solution of the first aspect. .

可以理解的是,上述第二方面到第六方面提供的技术方案可以分别对应到如第一方面及其可能的实现中提供的任一种方案中,能够达到的有益效果类似,此处不再赘述。It can be understood that the technical solutions provided in the second to sixth aspects above can respectively correspond to any solution provided in the first aspect and its possible implementations, and the beneficial effects that can be achieved are similar, and will not be discussed here. Repeat.

附图说明Description of the drawings

图1是采用本申请通信处理方法的一个应用场景示意图;Figure 1 is a schematic diagram of an application scenario using the communication processing method of this application;

图2是本申请一实施例提供的通信处理方法的流程示意图;Figure 2 is a schematic flowchart of a communication processing method provided by an embodiment of the present application;

图3A是本申请一实施例提供的通信处理方法的流程示意图;Figure 3A is a schematic flowchart of a communication processing method provided by an embodiment of the present application;

图3B是本申请一实施例提供的通信处理方法的流程示意图;Figure 3B is a schematic flowchart of a communication processing method provided by an embodiment of the present application;

图4是现有技术中通信处理方法的交互流程示意图;Figure 4 is a schematic diagram of the interaction flow of a communication processing method in the prior art;

图5是本申请一实施例提供的通信处理方法的交互流程示意图;Figure 5 is a schematic interactive flow diagram of a communication processing method provided by an embodiment of the present application;

图6是本申请一实施例中终端设备的硬件结构示意图;Figure 6 is a schematic diagram of the hardware structure of a terminal device in an embodiment of the present application;

图7是本申请一实施例中终端设备的软件系统的示意图。Figure 7 is a schematic diagram of a software system of a terminal device in an embodiment of the present application.

具体实施方式Detailed ways

下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in this application will be described below with reference to the accompanying drawings.

在本申请实施例的描述中,除非另有说明,“ /”表示或的意思,例如,A/B可以表示A或B;本文中的“ 和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“ 多个”是指两个或多于两个。In the description of the embodiments of this application, unless otherwise stated, "/" means or, for example, A/B can mean A or B; "and/or" in this article is just a way to describe the association of related objects. Relationship means that three relationships can exist. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more than two.

以下,术语“ 第一”、“ 第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“ 第一”、“ 第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“ 多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Thus, features defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

在本申请说明书中描述的参考“ 一个实施例”或“ 一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“ 在一个实施例中”、“ 在一些实施例中”、“ 在其他一些实施例中”、“ 在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“ 一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“ 包括”、“ 包含”、“ 具有”及它们的变形都意味着“ 包括但不限于”,除非是以其他方式另外特别强调。Reference in the specification of this application to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification are not necessarily References are made to the same embodiment, but rather to "one or more but not all embodiments" unless otherwise specifically emphasized. The terms "including", "includes", "having" and their variations all mean "including but not limited to" unless otherwise specifically emphasized.

如图1所示,通信处理方法用于支持In-Band Ring功能的蓝牙设备,蓝牙设备可以是手表或者手环等电子设备,为了便于理解,下面本申请实施例以蓝牙设备以手表为例,通信终端以手机为例,结合附图对不同场景下的通信处理方法进行描述。As shown in Figure 1, the communication processing method is used for Bluetooth devices that support the In-Band Ring function. The Bluetooth device can be an electronic device such as a watch or a bracelet. For ease of understanding, the following embodiments of the present application take a Bluetooth device as a watch as an example. The communication terminal takes a mobile phone as an example, and the communication processing methods in different scenarios are described with reference to the accompanying drawings.

需要说明的是,蓝牙作为一种短距无线数据与语音传输的开放性全球规范,目前得到了很广泛的应用。它可以支持便携式计算机、移动终端以及其他电子设备之间通过建立无线电空中接口相互通信,可以方便地进行数据和语音传输。It should be noted that Bluetooth, as an open global specification for short-distance wireless data and voice transmission, is currently widely used. It can support portable computers, mobile terminals and other electronic devices to communicate with each other through the establishment of radio air interfaces, and can facilitate data and voice transmission.

In-Band Ring功能定义了如何从音频网关(audio gateway,AG)端播放声音到免提端(hand free,HF)端的协议和信令交互过程。其中AG端是指音频网关,如本申请实施例中的手机端;HF指免提设备,如本申请实施例中的手表。声音通过SOC音频数据通路进行传输。The In-Band Ring function defines the protocol and signaling interaction process of how to play sound from the audio gateway (AG) end to the hands-free end (hand free, HF) end. The AG terminal refers to the audio gateway, such as the mobile phone terminal in the embodiment of this application; HF refers to the hands-free device, such as the watch in the embodiment of this application. Sound is transmitted through the SOC audio data path.

本申请实施例中,在手表的剩余电量低于第一预设阈值(比如电池标定容量的10%)时,手表向手机发送第一通知消息,通知手机手表暂时不支持In-Band Ring功能;在手机接收到来电请求时,手表接收手机发送的第二通知消息,第二通知消息可以包括:来电请求对应的联系人、电话号码、以及响铃通知;响应于第二通知消息,手表播放手表中已经存储的本地的接听电话的铃声;手表在获取用户触发的接听指令后,手表向手机发送第一指令,用于指示手机接听来电;基于第一指令手表与手机建立SOC音频数据通路,手机将通信的语音信息发送到手表。In the embodiment of this application, when the remaining power of the watch is lower than the first preset threshold (such as 10% of the battery's calibrated capacity), the watch sends a first notification message to the mobile phone, notifying the mobile phone that the watch temporarily does not support the In-Band Ring function; When the mobile phone receives the incoming call request, the watch receives the second notification message sent by the mobile phone. The second notification message may include: the contact person, phone number, and ring notification corresponding to the incoming call request; in response to the second notification message, the watch plays the watch The local ringtone for answering the call has been stored in the watch; after the watch obtains the answer instruction triggered by the user, the watch sends the first instruction to the mobile phone to instruct the mobile phone to answer the incoming call; based on the first instruction, the watch establishes a SOC audio data path with the mobile phone, and the mobile phone Send communication voice messages to the watch.

如图5所示,手表与手机通过蓝牙方式建立绑定关系,当手机侧有来电时,手表侧响铃,手表侧播放的铃声是本地的铃声,不是从手机实时获取的铃声,然后根据用户的操作接听或者挂断指示手机侧是否接听来电。具体地,手表与手机建立HFP SLC连接,手表通知手机:手表支持In-Band Ring功能。当手表的剩余电量较低时,手表通知手机:手表暂时不支持In-Band Ring功能。当手机来电时,手机将来电场景(包括来电的联系人姓名和电话等)通知手表,并发出响铃通知,手表播放本地的铃声。本地的铃声可以是手表与手机建立蓝牙连接后从手机获取的铃声;在用户操作手表接听电话时,手表向手机发送来电应答AT+ATA接听命令,手机与手表建立SOC音频数据通路,通过该通路手机将通信音传给手表。As shown in Figure 5, the watch and the mobile phone establish a binding relationship through Bluetooth. When there is an incoming call on the mobile phone, the watch will ring. The ringtone played on the watch side is the local ringtone, not the ringtone obtained from the mobile phone in real time. Then according to the user The operation of answer or hang up indicates whether the mobile phone side answers the incoming call. Specifically, the watch establishes an HFP SLC connection with the mobile phone, and the watch notifies the mobile phone: the watch supports the In-Band Ring function. When the remaining power of the watch is low, the watch notifies the mobile phone: the watch temporarily does not support the In-Band Ring function. When a call comes from the mobile phone, the mobile phone notifies the watch of the call scene (including the name and phone number of the incoming contact), issues a ring notification, and the watch plays a local ringtone. The local ringtone can be the ringtone obtained from the mobile phone after the watch establishes a Bluetooth connection with the mobile phone; when the user operates the watch to answer the call, the watch sends the call answer AT+ATA answer command to the mobile phone, and the mobile phone and the watch establish a SOC audio data path, through which the The mobile phone transmits the communication tone to the watch.

与本申请相关的技术如图4所示,手表与手机通过蓝牙建立绑定关系,手表与手机建立HFP SLC连接,手表通知手机手表支持In-Band Ring功能;若手表电量较低,在手机接到来电时,手机将来电场景通知手表,通知消息携带来电的联系人姓名和电话号码登信息,手机通知手表响铃;手表与手机建立SOC音频数据通路,手机将手机来电时的响铃对应的音频文件传给手表并在手表侧播放;若手表获取用户接听电话的指令,则手表向手机发送AT+ATA接听指令,手机侧接通来电,手机侧将通话的音频传输给手表。可知,相关技术中,在手机侧接到来电后,手表侧从手机侧获取并播放手机侧的铃声文件。The technology related to this application is shown in Figure 4. The watch and the mobile phone establish a binding relationship through Bluetooth. The watch establishes an HFP SLC connection with the mobile phone. The watch notifies the mobile phone that the watch supports the In-Band Ring function; if the battery of the watch is low, connect the watch to the mobile phone. When a call comes, the phone notifies the watch of the incoming call scene. The notification message carries the contact name and phone number of the incoming call. The phone notifies the watch to ring. The watch establishes a SOC audio data path with the phone, and the phone records the ring corresponding to the incoming call. The audio file is transmitted to the watch and played on the watch side; if the watch obtains the user's instruction to answer the call, the watch sends an AT+ATA answer instruction to the mobile phone, the mobile phone side connects the incoming call, and the mobile phone side transmits the audio of the call to the watch. It can be seen that in the related technology, after the mobile phone side receives an incoming call, the watch side obtains and plays the ringtone file on the mobile phone side from the mobile phone side.

采用本申请实施例,在手表的电量较低时,手表通知手机:手表暂时不支持In-Band Ring功能,当手机有来电时,手表侧响铃是手表中存储的本地的铃声,不是实时从手机侧获取的铃声,由于不从手机侧获取铃声,可以减少传输铃声产生的功耗,可以环节手表电量较低给用户带来的焦虑,有利于延迟手表的工作时长。Using the embodiment of the present application, when the battery of the watch is low, the watch notifies the mobile phone that the watch temporarily does not support the In-Band Ring function. When the mobile phone receives a call, the ring on the watch side is a local ringtone stored in the watch, not a real-time ringtone. Since the ringtones obtained from the mobile phone side are not obtained from the mobile phone side, the power consumption caused by transmitting the ringtones can be reduced, which can reduce the anxiety caused by the low battery of the watch to the user and help delay the working time of the watch.

如图2所示,在一个实施例中,在通信处理方法包括步骤201至步骤205,该方法用于支持In-Band Ring功能的蓝牙设备,蓝牙设备通过蓝牙与通信终端进行通信,通信处理方法包括:As shown in Figure 2, in one embodiment, the communication processing method includes steps 201 to 205. The method is used for Bluetooth devices that support the In-Band Ring function. The Bluetooth device communicates with the communication terminal through Bluetooth. The communication processing method include:

201.在蓝牙设备的剩余电量低于第一预设阈值时,蓝牙设备向通信终端发送第一通知消息;第一通知消息用于通知通信终端所述蓝牙设备暂时不支持In-Band Ring功能。201. When the remaining power of the Bluetooth device is lower than the first preset threshold, the Bluetooth device sends a first notification message to the communication terminal; the first notification message is used to notify the communication terminal that the Bluetooth device temporarily does not support the In-Band Ring function.

在手表支持In-Band Ring功能时,若手机接到来电,手表侧可以同步提醒来电信息,并且手表侧可以从手机侧获取手机侧最新的来电响铃文件并播放响铃。在蓝牙设备不支持In-Band Ring功能时,蓝牙设备响铃提示来电时,响铃文件可以不用从通信终端获取最新的响铃文件,可以播放蓝牙设备中已保存的接听电话的铃声。When the watch supports the In-Band Ring function, if the phone receives an incoming call, the watch side can simultaneously remind the incoming call information, and the watch side can obtain the latest incoming call ring file from the phone side and play the ring. When the Bluetooth device does not support the In-Band Ring function, when the Bluetooth device rings to prompt an incoming call, the ring file does not need to obtain the latest ring file from the communication terminal, and the ringtone for answering the call that has been saved in the Bluetooth device can be played.

202.在通信终端接收到来电请求时,蓝牙设备接收通信终端发送的第二通知消息,第二通知消息包括来电请求对应的相关消息。比如第二通知消息可以包括:来电请求对应的联系人、电话号码、以及响铃通知。202. When the communication terminal receives the incoming call request, the Bluetooth device receives the second notification message sent by the communication terminal, and the second notification message includes related messages corresponding to the incoming call request. For example, the second notification message may include: the contact person corresponding to the incoming call request, the phone number, and the ring notification.

如图1中所示,手表接收手机发送的第二通知消息中包括联系人:张三,电话号码:135****181等。As shown in Figure 1, the watch receives the second notification message sent by the mobile phone including contact person: Zhang San, phone number: 135****181, etc.

203.响应于第二通知消息,蓝牙设备播放本地的接听电话的铃声。203. In response to the second notification message, the Bluetooth device plays a local ringtone for answering the call.

举例来说,若建立连接时,通信终端中设置的接听电话的铃声为VOICE1文件对应的铃声,则蓝牙设备与通信终端建立连接后,蓝牙设备从通信终端获取VOICE1文件作为本地接听电话的铃声对应的铃声文件。需要说明的是,若后来通信终端将其接听电话的铃声进行了修改,设置铃声文件VOICE2文件对应的铃声为接听电话的铃声,则在通信终端接收到来电,并且蓝牙设备的剩余电量较低低于预设阈值时,蓝牙设备不从通信终端获取最新的来电铃声对应的VOICE2文件,蓝牙设备播放的铃声是VOICE1文件对应的铃声。For example, if the ringtone for answering calls set in the communication terminal is the ringtone corresponding to the VOICE1 file when the connection is established, then after the Bluetooth device establishes a connection with the communication terminal, the Bluetooth device obtains the VOICE1 file from the communication terminal as the ringtone corresponding to the local answering call. ringtone file. It should be noted that if the communication terminal later modifies the ringtone for answering calls and sets the ringtone corresponding to the ringtone file VOICE2 file as the ringtone for answering calls, then the communication terminal will receive an incoming call and the remaining power of the Bluetooth device will be low. At the preset threshold, the Bluetooth device does not obtain the VOICE2 file corresponding to the latest incoming call ringtone from the communication terminal, and the ringtone played by the Bluetooth device is the ringtone corresponding to the VOICE1 file.

204.在获取接听指令后,蓝牙设备向通信终端发送第一指令,第一指令用于指示通信终端接听来电。204. After obtaining the answer instruction, the Bluetooth device sends a first instruction to the communication terminal, and the first instruction is used to instruct the communication terminal to answer the incoming call.

205.基于第一指令蓝牙设备与通信终端建立SOC音频数据通路。205. Establish a SOC audio data path between the Bluetooth device and the communication terminal based on the first instruction.

采用该实施例进行通信处理时,在通信终端接到来电、并且蓝牙设备剩余电量较低时,蓝牙设备使用本地的接听电话的铃声,相对于现有技术中蓝牙设备从通信终端获取接听电话的铃声来说,该实施例提供的通信处理方法降低了功耗。When using this embodiment for communication processing, when the communication terminal receives an incoming call and the remaining power of the Bluetooth device is low, the Bluetooth device uses the local ringtone for answering the call. Compared with the prior art, the Bluetooth device obtains the ringtone for answering the call from the communication terminal. For ringtones, the communication processing method provided by this embodiment reduces power consumption.

在另一实施例中,蓝牙设备本地保存的接听电话的铃声可以是蓝牙设备与通信终端建立连接后传输的通信终端当时的来电铃声。如图3A所示,该实施例包括步骤301至步骤308。其中:In another embodiment, the ringtone for answering calls stored locally by the Bluetooth device may be the current incoming call ringtone of the communication terminal that is transmitted after the Bluetooth device establishes a connection with the communication terminal. As shown in Figure 3A, this embodiment includes steps 301 to 308. in:

301. 蓝牙设备通过HFP SLC与通信终端建立连接。301. The Bluetooth device establishes a connection with the communication terminal through HFP SLC.

当通信终端接收来电的时候,可以通过蓝牙同步在蓝牙设备上进行提醒。When the communication terminal receives an incoming call, it can be reminded on the Bluetooth device through Bluetooth synchronization.

302.蓝牙设备向通信终端发送第三通知消息;第三通知消息用于通知通信终端蓝牙设备支持In-Band Ring功能。302. The Bluetooth device sends a third notification message to the communication terminal; the third notification message is used to notify the communication terminal that the Bluetooth device supports the In-Band Ring function.

303.蓝牙设备获取通信终端发送的接听电话的铃声文件作为本地的接听电话的铃声。303. The Bluetooth device obtains the ringtone file for answering calls sent by the communication terminal as the local ringtone for answering calls.

304.在蓝牙设备的剩余电量低于第一预设阈值时,蓝牙设备向通信终端发送第一通知消息;第一通知消息用于通知通信终端所述蓝牙设备暂时不支持In-Band Ring功能。304. When the remaining power of the Bluetooth device is lower than the first preset threshold, the Bluetooth device sends a first notification message to the communication terminal; the first notification message is used to notify the communication terminal that the Bluetooth device temporarily does not support the In-Band Ring function.

305.在通信终端接收到来电请求时,蓝牙设备接收通信终端发送的第二通知消息,第二通知消息包括:来电请求对应的联系人、电话号码、以及响铃通知。305. When the communication terminal receives the incoming call request, the Bluetooth device receives the second notification message sent by the communication terminal. The second notification message includes: the contact corresponding to the incoming call request, the phone number, and the ring notification.

如图1中所示,手表接收手机发送的第二通知消息中包括联系人:张三,电话号码:135****181等。As shown in Figure 1, the watch receives the second notification message sent by the mobile phone including contact person: Zhang San, phone number: 135****181, etc.

306.响应于第二通知消息,蓝牙设备播放本地的接听电话的铃声。306. In response to the second notification message, the Bluetooth device plays a local ringtone for answering the call.

307.在获取接听指令后,蓝牙设备向通信终端发送第一指令,第一指令用于指示通信终端接听来电。307. After obtaining the answer instruction, the Bluetooth device sends a first instruction to the communication terminal. The first instruction is used to instruct the communication terminal to answer the incoming call.

308.基于第一指令蓝牙设备与通信终端建立SOC音频数据通路。308. Based on the first instruction, the Bluetooth device and the communication terminal establish a SOC audio data path.

在另一实施例中,如图3B所示,在蓝牙设备发送第一通知消息后,若对蓝牙设备进行充电,并且蓝牙设备的剩余电量大于第一预设阈值时,在通信终端接收来电时,蓝牙设备可以从通信终端获取通信终端最新的来电响铃并播放接收到的来电响铃,具体地,可以参见图3B所示,该通信方法包括步骤301至步骤311。其中:In another embodiment, as shown in Figure 3B, after the Bluetooth device sends the first notification message, if the Bluetooth device is charged and the remaining power of the Bluetooth device is greater than the first preset threshold, when the communication terminal receives an incoming call , the Bluetooth device can obtain the latest incoming call ring of the communication terminal from the communication terminal and play the received incoming call ring. Specifically, as shown in Figure 3B, the communication method includes steps 301 to 311. in:

301. 蓝牙设备通过HFP SLC与通信终端建立连接。301. The Bluetooth device establishes a connection with the communication terminal through HFP SLC.

当通信终端接收来电的时候,可以通过蓝牙同步在蓝牙设备上进行提醒。When the communication terminal receives an incoming call, it can be reminded on the Bluetooth device through Bluetooth synchronization.

302.蓝牙设备向通信终端发送第三通知消息;第三通知消息用于通知通信终端蓝牙设备支持In-Band Ring功能。302. The Bluetooth device sends a third notification message to the communication terminal; the third notification message is used to notify the communication terminal that the Bluetooth device supports the In-Band Ring function.

303.蓝牙设备获取通信终端发送的接听电话的铃声文件作为本地的接听电话的铃声。303. The Bluetooth device obtains the ringtone file for answering calls sent by the communication terminal as the local ringtone for answering calls.

304.在蓝牙设备的剩余电量低于第一预设阈值时,蓝牙设备向通信终端发送第一通知消息;第一通知消息用于通知通信终端所述蓝牙设备暂时不支持In-Band Ring功能。304. When the remaining power of the Bluetooth device is lower than the first preset threshold, the Bluetooth device sends a first notification message to the communication terminal; the first notification message is used to notify the communication terminal that the Bluetooth device temporarily does not support the In-Band Ring function.

305.在通信终端接收到来电请求时,蓝牙设备接收通信终端发送的第二通知消息,第二通知消息包括:来电请求对应的联系人、电话号码、以及响铃通知。305. When the communication terminal receives the incoming call request, the Bluetooth device receives the second notification message sent by the communication terminal. The second notification message includes: the contact corresponding to the incoming call request, the phone number, and the ring notification.

如图1中所示,手表接收手机发送的第二通知消息中包括联系人:张三,电话号码:135****181等。As shown in Figure 1, the watch receives the second notification message sent by the mobile phone including contact person: Zhang San, phone number: 135****181, etc.

306.响应于第二通知消息,蓝牙设备播放本地的接听电话的铃声。306. In response to the second notification message, the Bluetooth device plays a local ringtone for answering the call.

307.在获取接听指令后,蓝牙设备向通信终端发送第一指令,第一指令用于指示通信终端接听来电。307. After obtaining the answer instruction, the Bluetooth device sends a first instruction to the communication terminal. The first instruction is used to instruct the communication terminal to answer the incoming call.

308.基于第一指令蓝牙设备与通信终端建立SOC音频数据通路。308. Based on the first instruction, the Bluetooth device and the communication terminal establish a SOC audio data path.

309.在蓝牙设备向通信终端发送第一通知消息之后,在蓝牙设备充电后并且剩余电量不低于所述第一预设阈值时,蓝牙设备向通信终端发送第四通知消息,第四通知消息用于通知通信终端蓝牙设备恢复支持In-Band Ring功能。309. After the Bluetooth device sends the first notification message to the communication terminal, and after the Bluetooth device is charged and the remaining power is not lower than the first preset threshold, the Bluetooth device sends a fourth notification message to the communication terminal. The fourth notification message Used to notify the communication terminal that the Bluetooth device resumes supporting the In-Band Ring function.

310.在通信终端接收到来电请求、并且蓝牙设备的剩余电量不低于所述第一预设阈值时,蓝牙设备与通信终端建立SOC音频数据通路。310. When the communication terminal receives an incoming call request and the remaining power of the Bluetooth device is not lower than the first preset threshold, the Bluetooth device establishes a SOC audio data path with the communication terminal.

311.基于建立的SOC音频数据通路,蓝牙设备获取并播放所述通信终端发送的接听电话的铃声的音频数据。311. Based on the established SOC audio data path, the Bluetooth device obtains and plays the audio data of the ring tone sent by the communication terminal to answer the call.

采用该实施例,在蓝牙设备充电后,若蓝牙设备的剩余电量增加,并且不低于第一预设阈值时,蓝牙设备通知通信终端蓝牙设备回复支持In-Band Ring功能。这样,当通信终端有来电时,蓝牙设备同步提醒用户时,从通信终端获取通信终端最新的接听电话的铃声,并播放接听到的通信终端最新的接听电话的铃声。举例来说,若通信终端最新设置的接听电话的铃声对应的铃声文件是VOICE2,则在通信终端接收到来电,并且蓝牙设备的剩余电量不低于于预设阈值时,蓝牙设备从通信终端获取最新的来电铃声对应的VOICE2文件,蓝牙设备播放的铃声是VOICE2文件对应的铃声。蓝牙设备可以根据自身剩余电量确定是使用已保存的铃声文件还是从通信终端下载并播放通信终端最新设置的来电铃声。Using this embodiment, after the Bluetooth device is charged, if the remaining power of the Bluetooth device increases and is not lower than the first preset threshold, the Bluetooth device notifies the communication terminal that the Bluetooth device returns to support the In-Band Ring function. In this way, when the communication terminal has an incoming call, the Bluetooth device synchronously reminds the user, obtains the communication terminal's latest ring tone for answering the call from the communication terminal, and plays the latest received ring tone for the communication terminal for answering the call. For example, if the ringtone file corresponding to the latest ringtone set by the communication terminal for answering calls is VOICE2, then when the communication terminal receives an incoming call and the remaining power of the Bluetooth device is not less than the preset threshold, the Bluetooth device obtains it from the communication terminal The latest incoming call ringtone corresponds to the VOICE2 file, and the ringtone played by the Bluetooth device is the ringtone corresponding to the VOICE2 file. The Bluetooth device can determine whether to use the saved ringtone file or download and play the latest incoming call ringtone set by the communication terminal based on its own remaining power.

类似地,在一些可能的实施方式中,在手表获取拨号指令、并且在手表的剩余电量低于第二预设阈值时,手表播放本地的拨打电话的铃声。在一些可能的实施方式中,通信方法还可以包括:在获取拨号指令后,在蓝牙设备的剩余电量不低于第二预设阈值时,蓝牙设备与通信终端建立SOC音频数据通路;基于建立的SOC音频数据通路,获取并播放通信终端的拨打电话的铃声的音频数据。Similarly, in some possible implementations, when the watch obtains the dialing instruction and the remaining power of the watch is lower than the second preset threshold, the watch plays a local ringtone for making a call. In some possible implementations, the communication method may also include: after obtaining the dialing instruction, when the remaining power of the Bluetooth device is not lower than the second preset threshold, establishing a SOC audio data path between the Bluetooth device and the communication terminal; based on the established The SOC audio data path obtains and plays the audio data of the communication terminal's ringtone for making calls.

采用该实施例进行通信处理时,在蓝牙设备利用通信终端拨打电话时,在蓝牙设备剩余电量较低并且低于第二阈值时,蓝牙设备拨打电话时响铃的时候,播放本地保存的拨打电话的铃声,也就是该场景时,蓝牙设备暂时不支持In-Band Ring功能。类似的,在蓝牙设备充电后,并且剩余电量不低于第二阈值时,蓝牙设备可以恢复支持In-Band Ring功能,也就是,当通过蓝牙设备拨电话时,从通信终端获取通信终端最新设置的拨打电话的响铃文件,并播放该响铃文件。蓝牙设备可以根据剩余电量确定是播放本地的铃声文件还是从终端设备获取最新的铃声文件,在蓝牙设备拨打电话,并且蓝牙设备剩余电量较低时,蓝牙设备实用本地的拨打电话的铃声,相对于现有技术中蓝牙设备从通信终端获取拨打电话的铃声来说,该实施例提供的通信处理方法降低了功耗。When this embodiment is used for communication processing, when the Bluetooth device uses the communication terminal to make a call, when the remaining power of the Bluetooth device is low and lower than the second threshold, when the Bluetooth device rings when making the call, the locally saved dialed call is played. ringtone, that is, in this scenario, the Bluetooth device does not currently support the In-Band Ring function. Similarly, after the Bluetooth device is charged and the remaining power is not lower than the second threshold, the Bluetooth device can resume supporting the In-Band Ring function, that is, when making a call through the Bluetooth device, the latest settings of the communication terminal are obtained from the communication terminal The ring file for the dialed call and plays the ring file. The Bluetooth device can determine whether to play the local ringtone file or obtain the latest ringtone file from the terminal device based on the remaining power. When the Bluetooth device makes a call and the remaining power of the Bluetooth device is low, the Bluetooth device uses the local ringtone for making the call. In the prior art, a Bluetooth device obtains ringtones for making calls from a communication terminal. The communication processing method provided by this embodiment reduces power consumption.

需要说明的是,第一阈值和第二阈值可以根据经验进行设置,第一阈值可以与第二阈值相等,第一阈值也可以与第二阈值不相等。举例来说,第一阈值可以是蓝牙设备的电池标定容量的10%,第二阈值也可以是蓝牙设备的电池标定容量的10%,可以理解的,第二阈值也可以是蓝牙设备的电池标定容量的8%或者15%等,都是可行的,可以根据经验和实际场景进行设定,这里不做限定。It should be noted that the first threshold and the second threshold can be set based on experience, the first threshold can be equal to the second threshold, and the first threshold can also be unequal to the second threshold. For example, the first threshold can be 10% of the battery calibration capacity of the Bluetooth device, and the second threshold can also be 10% of the battery calibration capacity of the Bluetooth device. It is understandable that the second threshold can also be the battery calibration of the Bluetooth device. 8% or 15% of the capacity are all feasible and can be set based on experience and actual scenarios. There is no limit here.

图6是本申请实施例提供的一种电子设备600的结构示意图,其具体可以是手表、手环等可以与手机等通信终端通过蓝牙进行通信的电子设备。FIG. 6 is a schematic structural diagram of an electronic device 600 provided by an embodiment of the present application. Specifically, it may be a watch, a bracelet, or other electronic device that can communicate with a communication terminal such as a mobile phone through Bluetooth.

参见图6,电子设备600可以包括处理器610,外部存储器接口620,内部存储器621,通用串行总线(universal serial bus,USB)接口630,充电管理模块640,电源管理模块641,电池642,天线1,天线2,移动通信模块650,无线通信模块660,音频模块670,扬声器670A,受话器670B,麦克风670C,耳机接口670D,传感器模块680,按键690,马达691,指示器692,摄像头693,屏幕694,以及用户标识模块(subscriber identification module,SIM)卡接口695等。其中,传感器模块680可以包括压力传感器680A,陀螺仪传感器680B,气压传感器680C,磁传感器680D,加速度传感器680E,距离传感器680F,接近光传感器680G,指纹传感器680H,温度传感器680J,触摸传感器680K,环境光传感器680L,骨传导传感器680M等。Referring to Figure 6, the electronic device 600 may include a processor 610, an external memory interface 620, an internal memory 621, a universal serial bus (USB) interface 630, a charging management module 640, a power management module 641, a battery 642, and an antenna. 1. Antenna 2, mobile communication module 650, wireless communication module 660, audio module 670, speaker 670A, receiver 670B, microphone 670C, headphone interface 670D, sensor module 680, button 690, motor 691, indicator 692, camera 693, screen 694, and subscriber identification module (SIM) card interface 695, etc. Among them, the sensor module 680 may include a pressure sensor 680A, a gyro sensor 680B, an air pressure sensor 680C, a magnetic sensor 680D, an acceleration sensor 680E, a distance sensor 680F, a proximity light sensor 680G, a fingerprint sensor 680H, a temperature sensor 680J, a touch sensor 680K, and an environment. Light sensor 680L, bone conduction sensor 680M, etc.

处理器610可以包括一个或多个处理单元,比如:处理器610可以包括AP、CP、调制解调处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(imagesignal processor,ISP)、控制器、存储器、视频编解码器、数字信号处理器(digitalsignal processor,DSP)、基带处理器、和/或神经网络处理器(neural-networkprocessing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 610 may include one or more processing units. For example, the processor 610 may include an AP, a CP, a modem processor, a graphics processing unit (GPU), and an image signal processor (ISP). , controller, memory, video codec, digital signal processor (DSP), baseband processor, and/or neural network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.

其中,控制器可以是电子设备600的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 600 . The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.

处理器610中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器610中的存储器为高速缓冲存储器。该存储器可以保存处理器610刚用过或循环使用的指令或数据。如果处理器610需要再次使用该指令或数据,可从该存储器中直接调用。避免了重复存取,减少了处理器610的等待时间,因而提高了系统的效率。处理器还可以设置低功耗存储器(比如,Island 低功耗等)以降低功耗。在电子设备600支持In-Band Ring功能时,处理器610可以根据电子设备600的剩余电量确定电子设备的剩余电量低于阈值时,暂时不支持In-Band Ring功能,以及在电子设备充电并且剩余电量超过阈值时确定恢复In-BandRing功能。The processor 610 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 610 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 610 . If the processor 610 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 610 is reduced, thus improving the efficiency of the system. The processor can also set low-power memory (for example, Island low-power, etc.) to reduce power consumption. When the electronic device 600 supports the In-Band Ring function, the processor 610 may determine based on the remaining power of the electronic device 600 that when the remaining power of the electronic device is lower than the threshold, the In-Band Ring function is temporarily not supported, and when the electronic device is charged and the remaining power is Determine to restore the In-BandRing function when the battery exceeds the threshold.

电子设备600通过GPU,屏幕694,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接屏幕694和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器610可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 600 implements display functions through a GPU, a screen 694, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the screen 694 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 610 may include one or more GPUs that execute program instructions to generate or alter display information.

屏幕694用于显示图像,视频等。屏幕694包括显示面板。显示面板可以采用液晶屏幕(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organiclight emitting diode,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、Miniled、MicroLed、Micro-OLED、量子点发光二极管(quantum dot light emittingdiodes,QLED)等。在一些实施例中,电子设备600可以包括1个或N个屏幕694,N为大于1的整数。Screen 694 is used to display images, videos, etc. Screen 694 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode). , AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-OLED, quantum dot light emitting diode (quantum dot light emittingdiodes, QLED), etc. In some embodiments, electronic device 600 may include 1 or N screens 694, N being an integer greater than 1.

电子设备600可以通过ISP,摄像头693,视频编解码器,GPU,屏幕694以及应用处理器等实现拍摄功能。The electronic device 600 can implement the shooting function through an ISP, a camera 693, a video codec, a GPU, a screen 694 and an application processor.

ISP 用于处理摄像头693反馈的数据。比如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头693中。The ISP is used to process the data fed back by the camera 693. For example, when taking a photo, the shutter is opened, the light is transmitted through the lens to the camera sensor, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise and brightness. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in camera 693.

摄像头693用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备600可以包括1个或N个摄像头693,N为大于1的整数。Camera 693 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the electronic device 600 may include 1 or N cameras 693, where N is an integer greater than 1.

外部存储器接口620可以用于连接外部存储卡,比如Micro SD卡,实现扩展电子设备600的存储能力。外部存储卡通过外部存储器接口620与处理器610通信,实现数据存储功能。比如将音乐,视频等文件保存在外部存储卡中。The external memory interface 620 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 600 . The external memory card communicates with the processor 610 through the external memory interface 620 to implement the data storage function. For example, save music, video and other files on an external memory card.

内部存储器621可以用于存储计算机可执行程序代码,计算机可执行程序代码包括指令。处理器610通过运行存储在内部存储器621的指令,来执行电子设备600的各种功能应用以及数据处理。内部存储器621可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备600在使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器621可以包括高速随机存取存储器,还可以包括非易失性存储器,比如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 621 may be used to store computer-executable program code, which includes instructions. The processor 610 executes various functional applications and data processing of the electronic device 600 by executing instructions stored in the internal memory 621 . The internal memory 621 may include a program storage area and a data storage area. Among them, the stored program area can store the operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.), etc. The storage data area can store data created during use of the electronic device 600 (such as audio data, phone book, etc.). In addition, the internal memory 621 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

加速度传感器680E可检测电子设备600在各个方向上(一般为三轴)加速度的大小。当电子设备600静止时可检测出重力的大小及方向。加速度传感器680E还可以用于识别电子设备600的姿态,应用于横竖屏切换,计步器等应用。当然,加速度传感器680E也可以结合陀螺仪传感器680B,来识别电子设备600的姿态,应用于横竖屏切换。The acceleration sensor 680E can detect the acceleration of the electronic device 600 in various directions (generally three axes). When the electronic device 600 is stationary, the magnitude and direction of gravity can be detected. The acceleration sensor 680E can also be used to identify the posture of the electronic device 600 and be used for horizontal and vertical screen switching, pedometer and other applications. Of course, the acceleration sensor 680E can also be combined with the gyro sensor 680B to identify the posture of the electronic device 600 and be used for switching between horizontal and vertical screens.

陀螺仪传感器680B可以用于确定终端设备400的运动姿态。在一些实施例中,可以通过陀螺仪传感器680B确定电子设备600围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器680B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器680B检测电子设备600抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备600的抖动,实现防抖。陀螺仪传感器680B还可以用于横竖屏切换,导航,体感游戏场景。The gyro sensor 680B may be used to determine the motion posture of the terminal device 400 . In some embodiments, the angular velocity of electronic device 600 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 680B. The gyro sensor 680B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 680B detects the angle at which the electronic device 600 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device 600 through reverse movement to achieve anti-shake. The gyro sensor 680B can also be used for horizontal and vertical screen switching, navigation, and somatosensory gaming scenarios.

可以理解的是,本申请实施例示意的结构并不构成对电子设备600的具体限定。在本申请另一些实施例中,电子设备600可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 600 . In other embodiments of the present application, the electronic device 600 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.

本申请实施例提供的电子设备可以是用户设备(user equipment,UE),例如支持In-Band Ring功能的手表或者手环等设备。The electronic device provided by the embodiment of the present application may be user equipment (UE), such as a watch or bracelet that supports the In-Band Ring function.

另外,在上述部件之上,运行有操作系统。例如可以是谷歌公司所开发的Android开源操作系统、liteos操作系统等。In addition, an operating system runs on top of the above components. For example, it can be the Android open source operating system developed by Google, the liteos operating system, etc.

电子设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构等。为了更清楚的说明本申请实施例提供的通信处理方法,本申请实施例以分层架构的安卓(Android)系统为例,对终端设备的软件系统进行示例性说明。The software system of electronic equipment can adopt layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture, etc. In order to explain the communication processing method provided by the embodiments of the present application more clearly, the embodiments of the present application take the Android system with a layered architecture as an example to illustrate the software system of the terminal device.

上述图6仅为一种电子设备的组成示例。参考图7,为本申请实施例提供的又一种电子设备的组成示例。The above-mentioned FIG. 6 is only a composition example of an electronic device. Referring to FIG. 7 , another example of the composition of an electronic device is provided according to an embodiment of the present application.

在该示例中,电子设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android®系统为例,示例性说明电子设备的软件结构。In this example, the software system of the electronic device may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of this application takes the Android® system with a layered architecture as an example to illustrate the software structure of the electronic device.

分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android®系统分为五层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime,ART)和原生C/C++库,硬件抽象层(Hardware Abstract Layer,HAL)以及内核层。The layered architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments, the Android® system is divided into five layers, from top to bottom: application layer, application framework layer, Android runtime (Android runtime, ART) and native C/C++ library, hardware abstraction layer ( Hardware Abstract Layer (HAL) and kernel layer.

应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.

如图7所示,电子设备可以包括硬件层和软件层,其中,分层架构的Android系统可以包括应用层,应用框架层,系统库层和内核层。在一些可选的实施例中,电子设备的系统还可以包括上述技术架构未提及的层级,如安卓运行时(Android Runtime)。应用程序层可以包括一系列应用程序包,如导航应用、音乐应用、视频应用、和指关节敲击屏幕应用等。应用程序包可以包括视频、聊天等应用,以及系统用户界面(system user interface,SystemUI),指关节敲击屏幕应用可以用于截屏、录屏、长截屏、区域截屏等。在本示例中,该应用程序包还包括通信方法等应用程序。As shown in Figure 7, the electronic device may include a hardware layer and a software layer, wherein the Android system with a layered architecture may include an application layer, an application framework layer, a system library layer and a kernel layer. In some optional embodiments, the system of the electronic device may also include layers not mentioned in the above technical architecture, such as Android Runtime. The application layer can include a series of application packages, such as navigation applications, music applications, video applications, and knuckle-tapping screen applications. Application packages can include video, chat and other applications, as well as system user interface (SystemUI). Knuckle tapping screen applications can be used for screenshots, screen recordings, long screenshots, regional screenshots, etc. In this example, the application package also includes applications such as communication methods.

视频、聊天等应用用于为用户提供对应的服务。例如,用户使用视频应用观看视频,使用聊天应用和其他用户聊天,使用音乐应用收听音乐等。Video, chat and other applications are used to provide users with corresponding services. For example, users use video applications to watch videos, use chat applications to chat with other users, and use music applications to listen to music, etc.

SystemUI用于管理终端设备的人机交互界面(user interface,UI),在本申请实施例中,SystemUI用于监测触控屏上的触控操作,比如接听来电或者挂断来电。SystemUI is used to manage the human-computer interaction interface (UI) of the terminal device. In this embodiment of the present application, SystemUI is used to monitor touch operations on the touch screen, such as answering an incoming call or hanging up an incoming call.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。应用程序框架层可以包括窗口管理服务模块(window manage service,WMS),显示旋转模块(又称DisplayRotation),应用管理服务模块(activity manage service,AMS)、输入管理模块(又称Input)和图像处理模块等。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. The application framework layer can include window management service module (window management service, WMS), display rotation module (also known as DisplayRotation), application management service module (activity management service, AMS), input management module (also known as Input) and image processing Modules etc.

WMS用于管理窗口程序。窗口管理器可以获取屏幕大小,判断是否有状态栏,对屏幕中的图像进行抠图截取屏幕等。本申请实施例中,WMS可以创建并管理应用对应的窗口。WMS is used to manage window programs. The window manager can obtain the screen size, determine whether there is a status bar, cut out the image on the screen to capture the screen, etc. In this embodiment of the present application, WMS can create and manage windows corresponding to applications.

显示旋转模块用于控制屏幕进行旋转,通过旋转使得屏幕呈现出竖屏或者横屏的布局。比如在确定需要进行屏幕旋转时,通知Surfaceflinger进行应用界面的横竖屏切换。The display rotation module is used to control the rotation of the screen so that the screen presents a vertical or horizontal screen layout. For example, when it is determined that screen rotation is required, Surfaceflinger is notified to switch the application interface between horizontal and vertical screens.

AMS用于根据用户的操作启动特定的应用。例如,当图像完成合成操作后,触发图像在屏幕中主键显示出来,在图像显示出来后,触发对确定需要被执行抠图操作的图像执行抠图操作,并创建视频应用对应的应用堆栈,使视频应用能够正常运行。AMS is used to launch specific applications based on user operations. For example, after the image synthesis operation is completed, the trigger image is displayed on the screen. After the image is displayed, the trigger performs a cutout operation on the image that is determined to need to be cutout, and creates an application stack corresponding to the video application, so that The video application works normally.

系统库层可以包括多个功能模块,比如:传感器模块(又称sensor)和SurfaceFlinger。The system library layer can include multiple functional modules, such as: sensor module (also known as sensor) and SurfaceFlinger.

传感器模块用于获取传感器采集的数据,比如采集屏幕下的环境光。采集终端设备的重力方向信息。或者,传感器模块也可以根据环境光调节屏幕的亮度,以及根据终端设备的重力方向信息,确定终端设备的横竖屏状态信息,横竖屏状态信息用于指示终端设备处于横屏状态还是竖屏状态。The sensor module is used to obtain data collected by the sensor, such as collecting the ambient light under the screen. Collect the gravity direction information of the terminal device. Alternatively, the sensor module can also adjust the brightness of the screen according to the ambient light, and determine the horizontal and vertical screen status information of the terminal device based on the gravity direction information of the terminal device. The horizontal and vertical screen status information is used to indicate whether the terminal device is in the horizontal or vertical screen state.

Surfaceflinger是一种系统服务,用于图层的创建、控制和管理等功能。Surfaceflinger is a system service used for layer creation, control and management functions.

另外,系统库层还可以包括:表面管理器(surface manager),媒体库(MediaLibraries),三维图形处理库(比如:OpenGL ES),2D图形引擎(比如:SGL)等。表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,比如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。In addition, the system library layer can also include: surface manager (surface manager), media libraries (MediaLibraries), 3D graphics processing libraries (such as: OpenGL ES), 2D graphics engines (such as: SGL), etc. The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing. 2D Graphics Engine is a drawing engine for 2D drawing.

内核层是硬件和软件之间的层。在本申请实施例中,内核层至少包含触控驱动模块和显示驱动模块。The kernel layer is the layer between hardware and software. In this embodiment of the present application, the core layer at least includes a touch driver module and a display driver module.

显示驱动模块用于根据应用框架层的模块和应用层的应用程序所提供的图像数据,在屏幕中显示合成的图像。例如,视频应用将视频的一帧图像数据传递给显示驱动模块,显示驱动模块根据该图像数据在触摸屏上显示视频中的一帧图像。SystemUI将图像数据传递给显示驱动模块,显示驱动模块将合成后的图像在屏幕中显示出来。The display driver module is used to display the synthesized image on the screen according to the image data provided by the module of the application framework layer and the application program of the application layer. For example, the video application transfers one frame of image data of the video to the display driver module, and the display driver module displays one frame of image in the video on the touch screen based on the image data. SystemUI passes the image data to the display driver module, and the display driver module displays the synthesized image on the screen.

触控驱动模块用于监测触摸屏各区域的容值数据。当用户在触摸屏上点击或滑动时,被点击或滑动的区域的电容值会发生变化,触控驱动模块能够监测到触摸屏上各区域电容值的变化,并向输入管理模块发送电容值变化的消息,电容值数据变化消息中携带有触摸屏各个区域的电容值的变化幅度以及发生变化的时间等信息。The touch driver module is used to monitor the capacitance data of each area of the touch screen. When the user clicks or slides on the touch screen, the capacitance value of the clicked or slid area will change. The touch driver module can detect the changes in the capacitance value of each area on the touch screen and send a message of the capacitance value change to the input management module. , the capacitance value data change message carries information such as the change amplitude of the capacitance value in each area of the touch screen and the time of change.

输入管理模块根据上报的电容值变化消息可以确定触控操作,然后将识别到的触控操作发送给其他模块。这里的触控操作可以包括指关节敲击操作、点击操作、拖拽操作、以及特定的手势操作(如上滑手势操作,横滑手势操作等)。The input management module can determine the touch operation based on the reported capacitance value change message, and then send the recognized touch operation to other modules. The touch operations here can include knuckle tapping operations, clicking operations, dragging operations, and specific gesture operations (such as upward sliding gesture operations, horizontal sliding gesture operations, etc.).

硬件层包括屏幕和环境光传感器等,环境光传感器用于检测屏幕下面的环境光信息等。应用处理器监测对触控屏的触控操作,基带处理器监听加速度数据并将监听到的加速度数据存储到存储模块,在AP监测到触控操作时,CP根据存储模块存储的加速度数据识别触控操作是否为指关节敲击动作;CP将识别结果发送给AP。The hardware layer includes the screen and ambient light sensor. The ambient light sensor is used to detect ambient light information under the screen. The application processor monitors the touch operation on the touch screen. The baseband processor monitors the acceleration data and stores the monitored acceleration data to the storage module. When the AP detects the touch operation, the CP identifies the touch based on the acceleration data stored in the storage module. Control whether the operation is a knuckle tapping action; the CP sends the recognition result to the AP.

上述技术架构列举了终端设备中本申请可能涉及的模块和器件。在实际应用中,电子设备可以包括上述技术架构的全部或部分模块和器件,以及其他上述技术架构未提及的模块和器件,当然,也可以只包括上述技术架构的模块和器件,本实施例对此不做限定。The above technical architecture lists the modules and devices in the terminal equipment that may be involved in this application. In practical applications, the electronic device may include all or part of the modules and devices of the above technical architecture, as well as other modules and devices not mentioned in the above technical architecture. Of course, it may also include only the modules and devices of the above technical architecture. This embodiment There is no restriction on this.

本申请实施例还提供了一种通信装置,通信装置是支持In-Band Ring功能的蓝牙设备,通信终端通过蓝牙与通信终端进行通信包括:第一发送单元、第一接收单元、播放单元和处理单元;其中,第一发送单元,用于在蓝牙设备的剩余电量低于第一预设阈值时,向通信终端发送第一通知消息;第一通知消息用于通知通信终端蓝牙设备暂时不支持In-Band Ring功能;第一接收单元,用于在通信终端接收到来电请求时,蓝牙设备接收通信终端发送的第二通知消息,第二通知消息包括:来电请求对应的联系人、电话号码、以及响铃通知;播放单元,用于响应第二通知消息,播放本地的接听电话的铃声;处理单元,用于在获取接听指令后,向通信终端发送第一指令,第一指令用于指示通信终端接听来电;以及用于基于第一指令与通信终端建立SOC音频数据通路。The embodiment of the present application also provides a communication device. The communication device is a Bluetooth device that supports the In-Band Ring function. The communication terminal communicates with the communication terminal through Bluetooth and includes: a first sending unit, a first receiving unit, a playback unit and a processing unit. unit; wherein, the first sending unit is used to send a first notification message to the communication terminal when the remaining power of the Bluetooth device is lower than the first preset threshold; the first notification message is used to notify the communication terminal that the Bluetooth device temporarily does not support In -Band Ring function; the first receiving unit is used for the Bluetooth device to receive the second notification message sent by the communication terminal when the communication terminal receives an incoming call request. The second notification message includes: the contact person, phone number corresponding to the incoming call request, and Ring notification; the playback unit is used to respond to the second notification message and play the local ringtone for answering the phone; the processing unit is used to send the first instruction to the communication terminal after obtaining the answer instruction, and the first instruction is used to instruct the communication terminal Answer the incoming call; and be used to establish a SOC audio data path with the communication terminal based on the first instruction.

本申请实施例还提供了一种电子设备,该电子设备是支持In-Band Ring功能的蓝牙设备,蓝牙设备通过蓝牙与通信终端进行通信,蓝牙设备包括:一个或多个处理器;一个或多个存储器存储有一个或多个程序,当一个或者多个程序被一个或多个处理器执行时,使得电子设备执行如下通信方法:在蓝牙设备的剩余电量低于第一预设阈值时,蓝牙设备向通信终端发送第一通知消息;第一通知消息用于通知通信终端蓝牙设备暂时不支持In-Band Ring功能;在通信终端接收到来电请求时,蓝牙设备接收通信终端发送的第二通知消息,第二通知消息包括:来电请求对应的联系人、电话号码、以及响铃通知;响应于第二通知消息,蓝牙设备播放本地的接听电话的铃声;在获取接听指令后,蓝牙设备向通信终端发送第一指令,第一指令用于指示通信终端接听来电;基于第一指令所述蓝牙设备与所述通信终端建立SOC音频数据通路。An embodiment of the present application also provides an electronic device. The electronic device is a Bluetooth device that supports the In-Band Ring function. The Bluetooth device communicates with the communication terminal through Bluetooth. The Bluetooth device includes: one or more processors; one or more A memory stores one or more programs. When one or more programs are executed by one or more processors, the electronic device performs the following communication method: when the remaining power of the Bluetooth device is lower than the first preset threshold, the Bluetooth The device sends a first notification message to the communication terminal; the first notification message is used to notify the communication terminal that the Bluetooth device temporarily does not support the In-Band Ring function; when the communication terminal receives an incoming call request, the Bluetooth device receives the second notification message sent by the communication terminal , the second notification message includes: the contact person, phone number, and ring notification corresponding to the incoming call request; in response to the second notification message, the Bluetooth device plays a local ringtone for answering the call; after obtaining the answering instruction, the Bluetooth device sends a message to the communication terminal Send a first instruction, the first instruction is used to instruct the communication terminal to answer the incoming call; based on the first instruction, the Bluetooth device and the communication terminal establish a SOC audio data path.

在一些可能的实施方式中,在蓝牙设备向所述通信终端发送第一通知消息之前,处理器还使得电子设备执行如下步骤:蓝牙设备通过HFP SLC与通信终端建立连接;蓝牙设备向通信终端发送第三通知消息;第三通知消息用于通知通信终端蓝牙设备支持In-BandRing功能;蓝牙设备获取通信终端发送的接听电话的铃声文件作为所述本地的接听电话的铃声。In some possible implementations, before the Bluetooth device sends the first notification message to the communication terminal, the processor also causes the electronic device to perform the following steps: the Bluetooth device establishes a connection with the communication terminal through HFP SLC; the Bluetooth device sends the communication terminal The third notification message; the third notification message is used to notify the communication terminal that the Bluetooth device supports the In-BandRing function; the Bluetooth device obtains the ringtone file for answering calls sent by the communication terminal as the local ringtone for answering calls.

在一些可能的实施方式中,在所述蓝牙设备向所述通信终端发送第一通知消息之后,处理器还使得电子设备执行如下步骤:在蓝牙设备充电后并且剩余电量不低于第一预设阈值时,蓝牙设备向通信终端发送第四通知消息,第四通知消息用于通知通信终端蓝牙设备恢复支持In-Band Ring功能。In some possible implementations, after the Bluetooth device sends the first notification message to the communication terminal, the processor also causes the electronic device to perform the following steps: after the Bluetooth device is charged and the remaining power is not lower than the first preset When the threshold is reached, the Bluetooth device sends a fourth notification message to the communication terminal. The fourth notification message is used to notify the communication terminal that the Bluetooth device resumes supporting the In-Band Ring function.

在一些可能的实施方式中,在所述蓝牙设备向所述通信终端发送第四通知消息之后,处理器还使得电子设备执行如下步骤:在通信终端接收到来电请求、并且蓝牙设备的剩余电量不低于第一预设阈值时,蓝牙设备与通信终端建立SOC音频数据通路;基于建立的SOC音频数据通路,蓝牙设备获取并播放通信终端发送的接听电话的铃声的音频数据。In some possible implementations, after the Bluetooth device sends the fourth notification message to the communication terminal, the processor also causes the electronic device to perform the following steps: the communication terminal receives an incoming call request and the remaining power of the Bluetooth device does not exceed When the value is lower than the first preset threshold, the Bluetooth device establishes a SOC audio data path with the communication terminal; based on the established SOC audio data path, the Bluetooth device obtains and plays the audio data of the ring tone sent by the communication terminal to answer the call.

在一些可能的实施方式中,处理器还使得电子设备执行如下步骤:在获取拨号指令、并且在蓝牙设备的剩余电量低于第二预设阈值时,蓝牙设备播放本地的拨打电话的铃声。In some possible implementations, the processor also causes the electronic device to perform the following steps: after obtaining the dialing instruction and when the remaining power of the Bluetooth device is lower than the second preset threshold, the Bluetooth device plays a local ringtone for making a call.

在一些可能的实施方式中,处理器还使得电子设备执行如下步骤:在获取拨号指令后,在蓝牙设备的剩余电量不低于第二预设阈值时,蓝牙设备与通信终端建立SOC音频数据通路;基于建立的SOC音频数据通路,获取并播放通信终端的拨打电话的铃声的音频数据。In some possible implementations, the processor also causes the electronic device to perform the following steps: after obtaining the dialing instruction, when the remaining power of the Bluetooth device is not lower than the second preset threshold, the Bluetooth device establishes a SOC audio data path with the communication terminal. ; Based on the established SOC audio data path, obtain and play the audio data of the ring tone of the communication terminal for making calls.

本申请实施例还提供了了一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有芯片的电子设备执行上述方法实施方式提供的技术方案中的任意一种。Embodiments of the present application also provide a chip, including: a processor, configured to call and run a computer program from a memory, so that the electronic device installed with the chip executes any one of the technical solutions provided by the above method embodiments.

本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质中存储了计算机程序,当计算机程序被电子设备执行时,使得电子设备执行上述方法实施方式提供的技术方案中的任意一种。Embodiments of the present application also provide a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by an electronic device, the electronic device is caused to execute any of the technical solutions provided by the above method embodiments. A sort of.

本申请实施例还提供了一种计算机程序产品,计算机程序产品包括:计算机程序代码,当计算机程序代码在电子设备上运行时,使得该电子设备执行上述方法实施方式提供的技术方案中的任意一种。Embodiments of the present application also provide a computer program product. The computer program product includes: computer program code. When the computer program code is run on an electronic device, it causes the electronic device to execute any one of the technical solutions provided by the above method embodiments. kind.

本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。This application implements all or part of the processes in the methods of the above embodiments, which can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program is executed by the processor. When , the steps of each of the above method embodiments can be implemented. Wherein, the computer program includes computer program code, which may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program code to the camera device/terminal device, recording media, computer memory, read-only memory (ROM), random access memory (random access memory, RAM), electrical carrier signals, telecommunications signals, and software distribution media. For example, U disk, mobile hard disk, magnetic disk or CD, etc. In some jurisdictions, subject to legislation and patent practice, computer-readable media may not be electrical carrier signals and telecommunications signals.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, each embodiment is described with its own emphasis. For parts that are not detailed or documented in a certain embodiment, please refer to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.

在本申请所提供的实施例中,应该理解到,所揭露的方法和终端设备,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed methods and terminal devices can be implemented in other ways. For example, the apparatus/network equipment embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units. Or components can be combined or can be integrated into another system, or some features can be omitted, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It will be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements and/or components but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or collections thereof.

还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference in this specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Therefore, the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in other embodiments", etc. appearing in different places in this specification are not necessarily References are made to the same embodiment, but rather to "one or more but not all embodiments" unless specifically stated otherwise. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized.

以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still implement the above-mentioned implementations. The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in the embodiments of this application, and should be included in within the protection scope of this application.

Claims (10)

1. A communication method for supporting a bluetooth device of In-Band Ring function, the bluetooth device communicating with a communication terminal through bluetooth, the method comprising:
when the residual electric quantity of the Bluetooth device is lower than a first preset threshold value, the Bluetooth device sends a first notification message to the communication terminal; the first notification message is used for notifying the communication terminal that the Bluetooth equipment does not support an In-Band Ring function temporarily;
when the communication terminal receives an incoming call request, the Bluetooth device receives a second notification message sent by the communication terminal, wherein the second notification message comprises: relevant information corresponding to the incoming call request;
Responding to the second notification message, and playing a local ring for answering a call by the Bluetooth equipment;
after receiving an answer instruction, the Bluetooth device sends a first instruction to the communication terminal, wherein the first instruction is used for indicating the communication terminal to answer an incoming call;
and establishing a system-on-chip SOC audio data path between the Bluetooth equipment and the communication terminal based on the first instruction.
2. The method of claim 1, wherein prior to the bluetooth device sending a first notification message to the communication terminal, the method further comprises:
the Bluetooth equipment establishes connection with the communication terminal through a hands-free service level connection HFP SLC;
the Bluetooth equipment sends a third notification message to the communication terminal; the third notification message is used for notifying the communication terminal that the Bluetooth device supports an In-Band Ring function;
and the Bluetooth equipment acquires a ring file of answering the call sent by the communication terminal as the local ring of answering the call.
3. The method of claim 1, wherein after the bluetooth device transmits a first notification message to the communication terminal, the method further comprises:
And when the Bluetooth device is charged and the residual electric quantity is not lower than the first preset threshold value, the Bluetooth device sends a fourth known message to the communication terminal, wherein the fourth known message is used for informing the communication terminal that the Bluetooth device resumes supporting the In-Band Ring function.
4. A method according to claim 3, wherein after the bluetooth device sends a fourth known message to the communication terminal, the method further comprises:
when the communication terminal receives an incoming call request and the residual electric quantity of the Bluetooth device is not lower than the first preset threshold value, the Bluetooth device and the communication terminal establish an SOC audio data path;
based on the established SOC audio data path, the Bluetooth device acquires and plays audio data of a ring of answering a call sent by the communication terminal.
5. The method according to any one of claims 1 to 4, further comprising:
and when the dialing instruction is acquired and the residual electric quantity of the Bluetooth equipment is lower than a second preset threshold value, the Bluetooth equipment plays a local ring for dialing a call.
6. The method as recited in claim 5, further comprising:
After a dialing instruction is acquired, when the residual electric quantity of the Bluetooth equipment is not lower than the second preset threshold value, the Bluetooth equipment and the communication terminal establish an SOC audio data path;
and acquiring and playing the audio data of the ringing of the call of the communication terminal based on the established SOC audio data path.
7. A communication device, characterized in that it comprises means for performing the method of any of claims 1 to 6.
8. An electronic device, comprising: one or more processors; the one or more memories store one or more programs that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-6.
9. A chip, comprising: a processor for calling and running a computer program from a memory, causing an electronic device on which the chip is mounted to perform the method of any one of claims 1 to 6.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by an electronic device, causes the electronic device to perform the method of any of claims 1 to 6.
CN202311141149.7A 2023-09-06 2023-09-06 Communication processing method, electronic device and storage medium Active CN116887388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311141149.7A CN116887388B (en) 2023-09-06 2023-09-06 Communication processing method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311141149.7A CN116887388B (en) 2023-09-06 2023-09-06 Communication processing method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN116887388A true CN116887388A (en) 2023-10-13
CN116887388B CN116887388B (en) 2023-12-01

Family

ID=88271913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311141149.7A Active CN116887388B (en) 2023-09-06 2023-09-06 Communication processing method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN116887388B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525721A (en) * 2003-02-26 2004-09-01 () A method for automatic call transfer of bluetooth earphones
CN104270499A (en) * 2014-09-01 2015-01-07 广东欧珀移动通信有限公司 Method, device and mobile terminal for monitoring status of bluetooth earphones
CN105764021A (en) * 2016-02-02 2016-07-13 广东小天才科技有限公司 Method and device for intelligent watch call
WO2018137197A1 (en) * 2017-01-25 2018-08-02 华为技术有限公司 Method and device for reducing power consumption of electronic apparatus
WO2019090726A1 (en) * 2017-11-10 2019-05-16 华为技术有限公司 Method for selecting bluetooth device, terminal, and system
WO2020118641A1 (en) * 2018-12-13 2020-06-18 华为技术有限公司 Microphone (mic) switching method and device
WO2021175074A1 (en) * 2020-03-02 2021-09-10 Oppo广东移动通信有限公司 Power saving control method and apparatus, and wearable device and computer-readable storage medium
US20220039179A1 (en) * 2018-11-30 2022-02-03 Huawei Technologies Co., Ltd. Bluetooth Connection Method and Device
CN114339519A (en) * 2021-12-31 2022-04-12 恒玄科技(上海)股份有限公司 Control method of wireless earphone and wireless earphone

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525721A (en) * 2003-02-26 2004-09-01 () A method for automatic call transfer of bluetooth earphones
CN104270499A (en) * 2014-09-01 2015-01-07 广东欧珀移动通信有限公司 Method, device and mobile terminal for monitoring status of bluetooth earphones
CN105764021A (en) * 2016-02-02 2016-07-13 广东小天才科技有限公司 Method and device for intelligent watch call
WO2018137197A1 (en) * 2017-01-25 2018-08-02 华为技术有限公司 Method and device for reducing power consumption of electronic apparatus
WO2019090726A1 (en) * 2017-11-10 2019-05-16 华为技术有限公司 Method for selecting bluetooth device, terminal, and system
US20220039179A1 (en) * 2018-11-30 2022-02-03 Huawei Technologies Co., Ltd. Bluetooth Connection Method and Device
WO2020118641A1 (en) * 2018-12-13 2020-06-18 华为技术有限公司 Microphone (mic) switching method and device
CN112806092A (en) * 2018-12-13 2021-05-14 华为技术有限公司 Microphone MIC switching method and device
WO2021175074A1 (en) * 2020-03-02 2021-09-10 Oppo广东移动通信有限公司 Power saving control method and apparatus, and wearable device and computer-readable storage medium
CN114339519A (en) * 2021-12-31 2022-04-12 恒玄科技(上海)股份有限公司 Control method of wireless earphone and wireless earphone

Also Published As

Publication number Publication date
CN116887388B (en) 2023-12-01

Similar Documents

Publication Publication Date Title
JP7391102B2 (en) Gesture processing methods and devices
CN110543289B (en) Method for controlling volume and electronic equipment
WO2021000803A1 (en) Method for controlling small window of screen and related device
CN116360725B (en) Display interactive system, display method and device
WO2021027725A1 (en) Method for displaying page elements and electronic device
WO2021213164A1 (en) Application interface interaction method, electronic device, and computer readable storage medium
CN111416794A (en) Data transmission method and electronic equipment
CN114397983A (en) Application display method and electronic equipment
CN109981885B (en) A method and electronic device for presenting video when an electronic device is called
WO2022161119A1 (en) Display method and electronic device
CN113688019B (en) Response time duration detection method and device
WO2021008589A1 (en) Application running mehod and electronic device
US20240237115A1 (en) Message Push Method and Apparatus
WO2023088209A1 (en) Cross-device audio data transmission method and electronic devices
CN115460445A (en) Screen projection method of electronic equipment and electronic equipment
CN116048681B (en) Icon display method, electronic device and computer-readable storage medium
CN113965643B (en) Screen state control method of mobile terminal, mobile terminal and medium
CN113805825B (en) Method for data communication between devices, device and readable storage medium
CN117135253B (en) Contact search method, terminal device and storage medium
CN115514840B (en) Method, system, device and readable storage medium for notification message prompt
CN116887388A (en) Communication processing method, electronic device and storage medium
CN114338904B (en) Incoming call prompting method, electronic equipment and readable storage medium
WO2024139934A1 (en) Multi-window presentation method for application programs, and electronic device
CN117132479A (en) Moiré elimination method, electronic equipment and readable storage media
WO2022227978A1 (en) Display method and related apparatus

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
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address