[go: up one dir, main page]

CN113286281B - Emergency calling method and related device - Google Patents

Emergency calling method and related device Download PDF

Info

Publication number
CN113286281B
CN113286281B CN202110408024.0A CN202110408024A CN113286281B CN 113286281 B CN113286281 B CN 113286281B CN 202110408024 A CN202110408024 A CN 202110408024A CN 113286281 B CN113286281 B CN 113286281B
Authority
CN
China
Prior art keywords
service
message
mobile phone
command
call
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110408024.0A
Other languages
Chinese (zh)
Other versions
CN113286281A (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 CN202110408024.0A priority Critical patent/CN113286281B/en
Publication of CN113286281A publication Critical patent/CN113286281A/en
Priority to PCT/CN2022/075769 priority patent/WO2022218015A1/en
Application granted granted Critical
Publication of CN113286281B publication Critical patent/CN113286281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/90Services for handling of emergency or hazardous situations, e.g. earthquake and tsunami warning systems [ETWS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Emergency Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • Public Health (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application provides an emergency call method and a related device. The method comprises the following steps: the first equipment and the second equipment establish Bluetooth connection; when the first device meets a first preset condition and supports HFP service, sending a first message comprising a first telephone number to the second device; the second device dials the first phone number in response to the first message; when the first device meets a first preset condition, does not support HFP service and supports BLE service, sending a second message comprising a second telephone number to the second device; the second device dials a second phone number in response to the second message; when the first device meets a first preset condition, the HFP service and the BLE service are not supported, and the SPP service is supported, sending a third message including a third phone number to the second device; the second device dials the third phone number in response to the third message. Therefore, the intelligent wearable device can control terminal calling according to the services supported by the intelligent wearable device.

Description

紧急呼叫方法和相关装置Emergency calling method and related device

技术领域technical field

本申请涉及终端技术领域,尤其涉及一种紧急呼叫方法和相关装置。The present application relates to the technical field of terminals, and in particular, to an emergency calling method and related apparatus.

背景技术Background technique

随着通信技术的发展,智能穿戴设备已进入人们生活中。人们可以通过智能穿戴设备实时了解天气情况、运动情况和拨打电话等。With the development of communication technology, smart wearable devices have entered people's lives. People can learn about the weather, exercise and make calls in real time through smart wearable devices.

在用户遇到紧急情况时,用户可以通过智能耳机等支持语音电话的穿戴设备,拨打电话实现紧急呼救。When the user encounters an emergency, the user can make an emergency call through a wearable device that supports voice calls such as smart headsets.

但是,部分智能穿戴设备例如手环、智能眼镜等,不支持语音电话功能。当用户遇到紧急情况时,无法拨打电话实现紧急呼救。However, some smart wearable devices, such as bracelets, smart glasses, etc., do not support the voice calling function. When the user encounters an emergency, he cannot make a phone call for emergency help.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种紧急呼叫方法和相关装置,智能穿戴设备在满足拨打电话的预设条件时,根据其蓝牙特性,控制手机等手持设备拨打电话,实现紧急呼救。The embodiments of the present application provide an emergency calling method and related apparatus. When the smart wearable device meets the preset conditions for making a call, it controls a handheld device such as a mobile phone to make a call according to its Bluetooth feature, so as to realize an emergency call.

第一方面,本申请实施例提供一种方法,包括:第一设备和第二设备建立蓝牙连接;当第一设备满足第一预设条件,且第一设备支持免提通话HFP服务时,第一设备发送第一消息至第二设备,第一消息包括第一电话号码;第二设备响应于第一消息,拨打第一电话号码;或者,当第一设备满足第一预设条件,且第一设备不支持HFP服务,且第一设备支持蓝牙低功耗BLE服务时,第一设备发送第二消息至第二设备,第二消息包括第二电话号码;第二设备响应于第二消息,拨打第二电话号码;或者,当第一设备满足第一预设条件,且第一设备不支持HFP服务和BLE服务,且第一设备支持简并行SPP服务时,第一设备发送第三消息至第二设备,第三消息包括第三电话号码;第二设备响应于第三消息,拨打第三电话号码。In a first aspect, an embodiment of the present application provides a method, including: establishing a Bluetooth connection between a first device and a second device; when the first device satisfies a first preset condition and the first device supports a hands-free calling HFP service, the first device A device sends a first message to a second device, where the first message includes the first phone number; the second device dials the first phone number in response to the first message; or, when the first device satisfies the first preset condition and the first device When a device does not support the HFP service and the first device supports the BLE service, the first device sends a second message to the second device, and the second message includes the second phone number; the second device responds to the second message, Dial the second phone number; or, when the first device satisfies the first preset condition, and the first device does not support the HFP service and BLE service, and the first device supports the simplified parallel SPP service, the first device sends a third message to The second device, the third message includes the third phone number; the second device dials the third phone number in response to the third message.

这样,第一设备在满足拨打电话的预设条件时,可以基于HFP服务、BLE服务和SPP服务中任一种,实现控制第二设备拨号呼叫。进而,当第一设备的用户处于紧急情况时,可以实现紧急呼叫。当第一设备可以为智能穿戴设备,第二设备可以为终端设备时,用户可以通过智能穿戴设备控制终端设备拨打电话。In this way, when the first device satisfies the preset conditions for dialing a call, it can control the dialing call of the second device based on any one of the HFP service, the BLE service and the SPP service. Furthermore, when the user of the first device is in an emergency situation, an emergency call can be implemented. When the first device can be a smart wearable device and the second device can be a terminal device, the user can control the terminal device to make calls through the smart wearable device.

可选的,方法还包括:当第一设备满足第一预设条件,且第一设备不支持HFP服务、BLE服务和SPP服务时,第一设备显示提示信息,提示信息用于提示用户处于紧急情况。Optionally, the method further includes: when the first device satisfies the first preset condition and the first device does not support the HFP service, the BLE service and the SPP service, the first device displays prompt information, where the prompt information is used to prompt the user to be in an emergency. Happening.

这样,可以提示第一设备的用户处于紧急情况,方便他人进行紧急呼救。In this way, the user of the first device can be prompted to be in an emergency situation, so that others can make an emergency call for help.

可选的,第一设备满足第一预设条件包括:第一设备接收到用户操作;用户操作用于指示第一设备拨打电话。Optionally, satisfying the first preset condition by the first device includes: the first device receives a user operation; the user operation is used to instruct the first device to make a call.

可选的,第一设备满足第一预设条件包括:第一设备检测到用户的手势操作满足预设手势操作,预设手势操作用于指示第一设备拨打电话;或者,第一设备检测到用户的生理特征满足预设生理特征,预设生理特征用于指示第一设备拨打电话。Optionally, the first device satisfying the first preset condition includes: the first device detects that the user's gesture operation satisfies the preset gesture operation, and the preset gesture operation is used to instruct the first device to make a call; or, the first device detects that The physiological characteristics of the user meet the preset physiological characteristics, and the preset physiological characteristics are used to instruct the first device to make a call.

这样,当第一设备接收到用户的快捷操作时,可以控制第二设备拨打电话,实现紧急呼救,缩短呼救时间,提高紧急呼救速度。第一设备可以根据用户的生理特征,自动控制第二设备拨打电话,实现紧急呼救,缩短呼救时间,提高紧急呼救速度。In this way, when the first device receives the user's quick operation, it can control the second device to make a call to implement an emergency call, shorten the call time and improve the emergency call speed. The first device can automatically control the second device to make a call according to the physiological characteristics of the user, so as to realize an emergency call, shorten the call time and improve the emergency call speed.

可选的,第一消息为自动拨号ATD命令,ATD命令包括第一电话号码。Optionally, the first message is an automatic dialing ATD command, and the ATD command includes the first telephone number.

可选的,第二消息为通用属性配置文件GATT命令,GATT命令包括第二电话号码;或者,第二消息为广播,广播包括第二电话号码。Optionally, the second message is a general attribute configuration file GATT command, and the GATT command includes the second phone number; or, the second message is a broadcast, and the broadcast includes the second phone number.

可选的,第三消息为射频通信RFCOMM命令,RFCOMM命令包括第三电话号码。Optionally, the third message is a radio frequency communication RFCOMM command, and the RFCOMM command includes a third telephone number.

可选的,方法还包括:第二设备开启外放功能;外放功能用于将第二设备输出的声音放大。Optionally, the method further includes: enabling the external playback function on the second device; and the external playback function is used to amplify the sound output by the second device.

这样,使得用户可以听到第二设备传递的声音。In this way, the user can hear the sound transmitted by the second device.

第二方面,本申请实施例提供一种紧急呼叫方法,应用于第一设备,方法包括:In a second aspect, an embodiment of the present application provides an emergency call method, which is applied to a first device, and the method includes:

第一设备和第二设备建立蓝牙连接;当第一设备满足第一预设条件,且第一设备支持免提通话HFP服务时,第一设备发送第一消息至第二设备,第一消息包括第一电话号码;或者,当第一设备满足第一预设条件,且第一设备不支持HFP服务,且第一设备支持蓝牙低功耗BLE服务时,第一设备发送第二消息至第二设备,第二消息包括第二电话号码;或者,当第一设备满足第一预设条件,且第一设备不支持HFP服务和BLE服务,且第一设备支持简并行SPP服务时,第一设备发送第三消息至第二设备,第三消息包括第三电话号码。The first device and the second device establish a Bluetooth connection; when the first device satisfies the first preset condition and the first device supports the hands-free calling HFP service, the first device sends a first message to the second device, and the first message includes The first phone number; or, when the first device satisfies the first preset condition, and the first device does not support the HFP service, and the first device supports the Bluetooth Low Energy BLE service, the first device sends a second message to the second device, the second message includes the second phone number; or, when the first device satisfies the first preset condition, and the first device does not support the HFP service and the BLE service, and the first device supports the simplified parallel SPP service, the first device A third message is sent to the second device, the third message includes a third phone number.

可选的,方法还包括:当第一设备满足第一预设条件,且第一设备不支持HFP服务、BLE服务和SPP服务时,第一设备显示提示信息,提示信息用于提示用户处于紧急情况。Optionally, the method further includes: when the first device satisfies the first preset condition and the first device does not support the HFP service, the BLE service and the SPP service, the first device displays prompt information, where the prompt information is used to prompt the user to be in an emergency. Happening.

可选的,第一设备满足第一预设条件包括:第一设备接收到用户操作;用户操作用于指示第一设备拨打电话。Optionally, satisfying the first preset condition by the first device includes: the first device receives a user operation; the user operation is used to instruct the first device to make a call.

可选的,第一设备满足第一预设条件包括:第一设备检测到用户的手势操作满足预设手势操作,预设手势操作用于指示第一设备拨打电话;或者,第一设备检测到用户的生理特征满足预设生理特征,预设生理特征用于指示第一设备拨打电话。Optionally, the first device satisfying the first preset condition includes: the first device detects that the user's gesture operation satisfies the preset gesture operation, and the preset gesture operation is used to instruct the first device to make a call; or, the first device detects that The physiological characteristics of the user meet the preset physiological characteristics, and the preset physiological characteristics are used to instruct the first device to make a call.

可选的,第一消息为自动拨号ATD命令,ATD命令包括第一电话号码。Optionally, the first message is an automatic dialing ATD command, and the ATD command includes the first telephone number.

可选的,第二消息为通用属性配置文件GATT命令,GATT命令包括第二电话号码;或者,第二消息为广播,广播包括第二电话号码。Optionally, the second message is a general attribute configuration file GATT command, and the GATT command includes the second phone number; or, the second message is a broadcast, and the broadcast includes the second phone number.

可选的,第三消息为射频通信RFCOMM命令,RFCOMM命令包括第三电话号码。Optionally, the third message is a radio frequency communication RFCOMM command, and the RFCOMM command includes a third telephone number.

第三方面,本申请实施例提供一种智能穿戴设备,智能穿戴设备可以是蓝牙耳机、蓝牙手环、蓝牙手表和头戴式显示器(head-mounted display,简称HMD)等具有蓝牙功能可穿戴在用户身上的设备。终端设备可以是蓝牙手机、支持蓝牙功能的个人数字助理(personaldigital assistant,PDA)、平板电脑、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、蜂窝电话、增强现实(augmentedreality,AR)设备、虚拟现实(virtual reality,VR)设备等。In a third aspect, an embodiment of the present application provides a smart wearable device. The smart wearable device may be a Bluetooth headset, a Bluetooth bracelet, a Bluetooth watch, a head-mounted display (HMD for short), etc. device on the user. The terminal device may be a Bluetooth mobile phone, a Bluetooth-enabled personal digital assistant (PDA), a tablet computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, an enhanced Augmented reality (AR) devices, virtual reality (virtual reality, VR) devices, etc.

智能穿戴设备包括:处理器和存储器;存储器存储计算机执行指令;处理器执行存储器存储的计算机执行指令,使得处理器执行上述第二方面的方法。The smart wearable device includes: a processor and a memory; the memory stores computer-executed instructions; the processor executes the computer-executed instructions stored in the memory, so that the processor executes the method of the second aspect.

第四方面,本申请实施例提供一种手环,包括:处理器和存储器;存储器存储计算机执行指令;处理器执行存储器存储的计算机执行指令,使得处理器执行上述第二方面的方法。In a fourth aspect, an embodiment of the present application provides a wristband, including: a processor and a memory; the memory stores computer-executed instructions; the processor executes the computer-executed instructions stored in the memory, so that the processor executes the method of the second aspect.

第五方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序或指令,当计算机程序或指令被运行时,实现上述第二方面的方法。In a fifth aspect, embodiments of the present application provide a computer-readable storage medium, where a computer program or instruction is stored in the computer-readable storage medium, and when the computer program or instruction is executed, the method of the second aspect is implemented.

第五方面,本申请实施例提供一种一种计算机程序产品,包括计算机程序或指令,计算机程序或指令被处理器执行时,实现上述第二方面的方法。In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed by a processor, the method of the second aspect is implemented.

上述第二方面至第五方面的各可能的实现方式,其有益效果可以参见上述第一方面和第一方面的各可能的实现方式所带来的有益效果,在此不加赘述。For the beneficial effects of the possible implementations of the second aspect to the fifth aspect, reference may be made to the beneficial effects brought by the first aspect and the possible implementations of the first aspect, which will not be repeated here.

附图说明Description of drawings

图1为本申请实施例提供的一种系统架构示意图;FIG. 1 is a schematic diagram of a system architecture provided by an embodiment of the present application;

图2为本申请实施例提供的一种HF控制AG拨打电话的方法流程示意图;2 is a schematic flowchart of a method for an HF-controlled AG to make a call provided by an embodiment of the present application;

图3为本申请实施例提供的一种紧急呼叫方法流程示意图;3 is a schematic flowchart of an emergency calling method provided by an embodiment of the present application;

图4为本申请实施例提供的一种手环与手机蓝牙连接时的界面示意图;4 is a schematic diagram of an interface when a bracelet and a mobile phone are connected via Bluetooth according to an embodiment of the present application;

图5为本申请实施例提供的一种手机设置手环呼叫号码界面示意图;5 is a schematic diagram of an interface for setting a call number of a bracelet on a mobile phone according to an embodiment of the present application;

图6为本申请实施例提供的一种设置呼叫触发方式界面示意图;6 is a schematic diagram of an interface for setting a call trigger mode provided by an embodiment of the present application;

图7为本申请实施例提供的一种手环呼叫的界面示意图;7 is a schematic interface diagram of a wristband call provided by an embodiment of the present application;

图8为本申请实施例提供的手环获取手环和手机之间的业务类型方法的流程示意图;8 is a schematic flowchart of a method for obtaining a service type between a wristband and a mobile phone by a wristband according to an embodiment of the present application;

图9为本申请实施例提供的一种手环查找手机的界面示意图;FIG. 9 is a schematic interface diagram of a wristband searching for a mobile phone according to an embodiment of the present application;

图10为本申请实施例提供的一种智能穿戴设备的硬件结构示意图。FIG. 10 is a schematic diagram of a hardware structure of a smart wearable device according to an embodiment of the present application.

具体实施方式Detailed ways

为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一设备和第二设备仅仅是为了区分不同的设备,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. For example, the first device and the second device are only used to distinguish different devices, and the sequence of the first device and the second device is not limited. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like are not necessarily different.

需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplary" or "for example" are used to represent examples, illustrations or illustrations. Any embodiment or design described in this application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.

需要说明的是,本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。It should be noted that the network architecture and service scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. It can be seen that, with the evolution of the network architecture and the emergence of new service scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

通常情况下,在具有蓝牙功能的电子设备和外接设备之间进行数据传输之前,需要进行配对连接。上述电子设备与外接设备可以统称为蓝牙设备。为了使配对的蓝牙设备之间能够实现互操作,蓝牙技术联盟(bluetooth special interest group,SIG)制定了蓝牙技术规范。Usually, a pairing connection is required before data transfer between a Bluetooth-enabled electronic device and an external device. The above electronic devices and external devices may be collectively referred to as Bluetooth devices. In order to enable interoperability between paired Bluetooth devices, the Bluetooth Special Interest Group (SIG) has developed the Bluetooth specification.

蓝牙技术规范包括核心协议(protocol)和应用协议(profile)。核心协议包含蓝牙协议栈中最低的4个层(Layer)、一个基本的服务发现协议(service discoverprotocol,SDP),以及所有profile的基础通用访问配置文件(general access profile,GAP)。The Bluetooth technical specification includes a core protocol (protocol) and an application protocol (profile). The core protocol includes the lowest 4 layers (Layer) in the Bluetooth protocol stack, a basic service discovery protocol (service discover protocol, SDP), and a basic general access profile (general access profile, GAP) for all profiles.

应用协议profile,或称为应用层profile。profile可以包括电话号码簿访问协议(phonebook access profile,PBAP)、免提通话协议(hands-freeprofile,HFP)、对象传输协议(object push profile,OPP)等类型。Application protocol profile, or application layer profile. The profile may include types such as phonebook access profile (PBAP), hands-free profile (HFP), object push profile (OPP).

每一类profile可以理解为用于实现一类应用服务的协议栈。比如,PBAP是用于实现通讯录同步的协议栈。再如,HFP是用于实现通话控制(如接听、挂断、拒接、语音拨号等)的协议栈。Each type of profile can be understood as a protocol stack for implementing a type of application service. For example, PBAP is a protocol stack for implementing address book synchronization. For another example, HFP is a protocol stack for implementing call control (such as answering, hanging up, rejecting, voice dialing, etc.).

互操作的蓝牙设备之间需要使用同版本的协议栈。比如,在外接设备需对电子设备进行通话控制的情况下,电子设备和外接设备都需要使用同版本的HFP。当然,实现不同的应用服务需要不同的协议栈。比如,实现通话控制服务需要使用HFP和实现同步通讯录服务需要使用PBAP,等。Interoperable Bluetooth devices need to use the same version of the protocol stack. For example, in the case where the external device needs to perform call control on the electronic device, both the electronic device and the external device need to use the same version of HFP. Of course, implementing different application services requires different protocol stacks. For example, the implementation of the call control service requires the use of HFP and the implementation of the synchronous address book service requires the use of PBAP, and so on.

电子设备和外接设备在使用profile实现应用服务之前,双方可以就各自所支持的profile进行动态协商。可能的实现方式中,任何两个或多个蓝牙设备之间在建立了无异步连接(asynchronous connectionless,ACL)链路后,蓝牙设备可以通过蓝牙技术框架中的SDP动态地查询到对端的设备信息和对端支持的profile类型,从而在蓝牙设备间建立起相应的连接。示例性的,电子设备和外接设备建立ACL链路后,外接设备向电子设备发送SDP请求信息。电子设备在接受到来自外接设备的SDP请求信息后,电子设备发送SDP响应信息给外接设备。SDP响应信息中包括电子设备支持的profile类型。外接设备可以根据SDP响应信息确定电子设备和外接设备共同支持的最高profile版本。Before the electronic device and the external device use the profile to implement the application service, the two parties can dynamically negotiate the profiles supported by each other. In a possible implementation manner, after an asynchronous connectionless (ACL) link is established between any two or more Bluetooth devices, the Bluetooth device can dynamically query the device information of the opposite end through the SDP in the Bluetooth technology framework. and the profile type supported by the peer to establish a corresponding connection between Bluetooth devices. Exemplarily, after the electronic device and the external device establish an ACL link, the external device sends SDP request information to the electronic device. After the electronic device receives the SDP request information from the external device, the electronic device sends the SDP response information to the external device. The SDP response information includes the profile type supported by the electronic device. The external device can determine the highest profile version jointly supported by the electronic device and the external device according to the SDP response information.

在一种可能的基于蓝牙设备通信的场景中,在用户遇到紧急情况时,用户可以通过智能耳机等支持语音电话的智能穿戴设备,控制手机等终端设备拨打电话实现紧急呼叫。In a possible scenario based on Bluetooth device communication, when the user encounters an emergency, the user can control a terminal device such as a mobile phone to make an emergency call through a smart wearable device that supports voice calls such as a smart headset.

具体的,手机和智能穿戴设备建立服务连接前,智能穿戴设备通过SDP服务查询并获取手机所支持的服务,具体参照上述蓝牙设备服务查询的描述,在此不作赘述。当智能穿戴设备确认手机和智能穿戴设备均支持HFP服务时,智能穿戴设备和手机建立HFP服务连接。当支持的HFP服务的智能穿戴设备接收到用户拨打电话的触发操作时,支持的HFP服务的智能穿戴设备通过自动拨号(auto-dial,ATD)命令将电话号码传递给手机,并控制手机拨打该电话号码,进而实现紧急呼叫。Specifically, before the mobile phone and the smart wearable device establish a service connection, the smart wearable device queries and obtains the services supported by the mobile phone through the SDP service. For details, refer to the description of the above-mentioned Bluetooth device service query, which will not be repeated here. When the smart wearable device confirms that both the mobile phone and the smart wearable device support the HFP service, the smart wearable device and the mobile phone establish an HFP service connection. When the smart wearable device that supports the HFP service receives the triggering operation of the user to make a call, the smart wearable device that supports the HFP service transmits the phone number to the mobile phone through an auto-dial (ATD) command, and controls the mobile phone to dial the phone number. phone number for emergency calls.

但是,部分智能穿戴设备例如手环、智能眼镜等,不支持HFP服务,没有语音电话功能。当用户遇到紧急情况时,无法远程控制手机拨打电话实现紧急呼叫。However, some smart wearable devices, such as bracelets, smart glasses, etc., do not support HFP services and do not have voice phone functions. When the user encounters an emergency, it is impossible to remotely control the mobile phone to make a phone call to implement an emergency call.

本申请实施例提供一种方案,适用于蓝牙系统,当支持的HFP服务的智能穿戴设备接收到用户拨打电话的触发操作时,支持的HFP服务的智能穿戴设备通过自动拨号(auto-dial,ATD)命令将电话号码传递给手机等终端设备,并控制手机等终端设备拨打该电话号码,进而实现紧急呼叫。对于不支持HFP服务的智能穿戴设备,可以通过BLE服务或者简并行(simplified parallel process,SPP)服务控制手机等终端设备拨打电话,实现紧急呼叫。这样,智能穿戴设备可以根据其支持的业务类型,选择合适方式控制手机等终端设备进行紧急呼叫。The embodiment of the present application provides a solution, which is suitable for a Bluetooth system. When a smart wearable device that supports the HFP service receives a trigger operation for a user to make a call, the smart wearable device that supports the HFP service automatically dials (auto-dial, ATD). ) command to transfer the phone number to a terminal device such as a mobile phone, and control the terminal device such as a mobile phone to dial the phone number, thereby realizing an emergency call. For a smart wearable device that does not support the HFP service, the BLE service or the simplified parallel process (SPP) service can be used to control a terminal device such as a mobile phone to make a call to implement an emergency call. In this way, the smart wearable device can select an appropriate method to control terminal devices such as mobile phones to make emergency calls according to the type of services it supports.

本申请实施例中,智能穿戴设备可以是蓝牙耳机、蓝牙手环、蓝牙手表和头戴式显示器(head-mounted display,简称HMD)等具有蓝牙功能可穿戴在用户身上的设备。终端设备可以是蓝牙手机、支持蓝牙功能的个人数字助理(personaldigital assistant,PDA)、平板电脑、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personalcomputer,UMPC)、上网本、蜂窝电话、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备等。In the embodiment of the present application, the smart wearable device may be a Bluetooth headset, a Bluetooth bracelet, a Bluetooth watch, and a head-mounted display (HMD for short) that can be worn on a user's body with a Bluetooth function. The terminal device can be a Bluetooth mobile phone, a Bluetooth-enabled personal digital assistant (PDA), a tablet computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, an augmented reality (augmented reality, AR) devices, virtual reality (virtual reality, VR) devices, etc.

以智能穿戴设备为手环为例,图1为本发明实施例提供的一种紧急呼叫方法的应用场景示意图。如图1所示,该应用场景中包括手环101和终端设备102。其中,终端设备102可以为手机、平板电脑等设备。手环101和终端设备102均具备蓝牙功能,以使手环101和终端设备102可以通过蓝牙进行通信。手环101可以识别并响应用户的触发操作,并通过手环101和终端设备102的蓝牙连接控制终端设备102拨打电话、震动响铃或者弹出通知消息。Taking a smart wearable device as a wristband as an example, FIG. 1 is a schematic diagram of an application scenario of an emergency calling method provided by an embodiment of the present invention. As shown in FIG. 1 , the application scenario includes a bracelet 101 and a terminal device 102 . The terminal device 102 may be a mobile phone, a tablet computer or the like. Both the wristband 101 and the terminal device 102 have the Bluetooth function, so that the wristband 101 and the terminal device 102 can communicate via Bluetooth. The wristband 101 can recognize and respond to the user's trigger operation, and control the terminal device 102 to make a call, vibrate the ringer or pop up a notification message through the Bluetooth connection between the wristband 101 and the terminal device 102 .

上述手环101和终端设备102均可以支持多个应用程序的应用协议(profile)和核心协议(protocol)。每个协议定义了各自相应的消息格式与应用规则,以实现不同平台下的不同设备的互联互通,并满足各种可能的、有通用意义的应用场景。应用协议可以包括高级音频分发协议(advanced audio distribution profile,A2DP)、免提通话协议HFP等。核心协议包括蓝牙模组(bluetooth module,BTM)、服务发现协议SDP、逻辑信道控制和适配协议(logical link control and adaptation protocol,L2CAP)、射频通信(radiofrequency communication,RFCOMM)协议等。Both the bracelet 101 and the terminal device 102 can support application protocols (profiles) and core protocols (protocols) of multiple applications. Each protocol defines its own corresponding message format and application rules to realize the interconnection and interoperability of different devices under different platforms, and to meet various possible and general application scenarios. Application protocols may include advanced audio distribution profile (A2DP), hands-free calling protocol HFP, and the like. The core protocols include Bluetooth module (bluetooth module, BTM), service discovery protocol SDP, logical channel control and adaptation protocol (logical link control and adaptation protocol, L2CAP), radio frequency communication (radio frequency communication, RFCOMM) protocol and so on.

下面对本申请实施例中涉及的相关概念进行说明。The related concepts involved in the embodiments of the present application will be described below.

1、蓝牙连接:设备之间的一种数据传输连接方式。蓝牙连接包括基本速率(basicrate,BR)连接、增强数据速率(enhanced data rate,EDR)连接和蓝牙低功耗(Bluetoothlow energy,BLE)连接。1. Bluetooth connection: a data transmission connection method between devices. Bluetooth connections include basic rate (basicrate, BR) connections, enhanced data rate (enhanced data rate, EDR) connections, and Bluetooth low energy (Bluetooth low energy, BLE) connections.

需要说明的是,在蓝牙连接为BR/EDR连接时,蓝牙设备之间使用同步链路(synchronous connection-oriented/extended,SCO)和扩展同步链路(extendedsynchronous connection-oriented,ESCO)传输通话数据,以及使用ACL链路传输音频数据或者视频数据。在蓝牙连接为BLE连接时,蓝牙设备之间使用等时信道(isochronouschannel,ISO)传输通话数据、音频数据或者视频数据。It should be noted that when the Bluetooth connection is a BR/EDR connection, the Bluetooth devices use a synchronous connection-oriented/extended (SCO) and an extended synchronous connection-oriented (ESCO) to transmit call data. And use ACL link to transmit audio data or video data. When the Bluetooth connection is a BLE connection, an isochronous channel (ISO) is used between the Bluetooth devices to transmit call data, audio data or video data.

下面对蓝牙设备之间的蓝牙连接过程进行说明。蓝牙连接包括但不限于下述过程:配对连接、SDP服务查询和加密等。The following describes the Bluetooth connection process between Bluetooth devices. The Bluetooth connection includes but is not limited to the following processes: pairing connection, SDP service query and encryption, etc.

蓝牙设备之间的配对,可以是链路管理协议(link mangerprotocol,LMP)配对,也可以是安全简单(secure simple pairing,SSP)配对,还可以是其他非标准配对方法配对。The pairing between Bluetooth devices may be link manager protocol (LMP) pairing, secure simple pairing (SSP) pairing, or pairing by other non-standard pairing methods.

以手机和手环为例,手机和手环之间的配对连接过程可以如下:手机和手环均开启蓝牙功能,当手机接收到用户触发添加设备控件的操作时,手机查询周围的已开启蓝牙功能的蓝牙设备,并在手机界面显示已开启蓝牙功能的蓝牙设备的名称。当手机接收到用户用户触发手环名称控件的操作时,手机针对该手环的MAC地址发起寻呼(page)。当手环接收到手机发送的寻呼(page)时,手机和手环建立ACL链接,手环和手机的配对连接完成。Taking a mobile phone and a bracelet as an example, the pairing and connection process between the mobile phone and the bracelet can be as follows: Both the mobile phone and the bracelet have the Bluetooth function enabled. Bluetooth enabled device, and the name of the Bluetooth enabled device is displayed on the phone interface. When the mobile phone receives the operation of the user triggering the name control of the bracelet, the mobile phone initiates a page for the MAC address of the bracelet. When the bracelet receives the page sent by the mobile phone, the mobile phone and the bracelet establish an ACL link, and the pairing connection between the bracelet and the mobile phone is completed.

可能实现的方式中,手机和手环在一次配对连接后,手机和手环可以在一定范围内自动连接。In a possible way, after the mobile phone and the bracelet are paired and connected once, the mobile phone and the bracelet can be automatically connected within a certain range.

手环和手机之间配对完成后,可以创建出共享秘钥:链路秘钥(link key)。该链路秘钥用于认证设备并加密交换的数据。示例性的,手环和手机进行配对连接后,手环和手机共享相同的链路秘钥。手环和手机通过链路秘钥进行身份验证。在手环和手机完成身份验证后,手环和手机可以通过链路秘钥获取随机数,并将随机数导出,得到加密秘钥(encryption key)。进而,手环和手机可以通过该加密秘钥加密双方上传输的数据,实现加密通信。手环和手机之间的蓝牙连接建立完成。After the pairing between the bracelet and the mobile phone is completed, a shared secret key can be created: the link key. The link key is used to authenticate the device and encrypt the data exchanged. Exemplarily, after the bracelet and the mobile phone are paired and connected, the bracelet and the mobile phone share the same link key. The bracelet and mobile phone are authenticated by the link key. After the bracelet and the mobile phone complete the authentication, the bracelet and the mobile phone can obtain the random number through the link key, and derive the random number to obtain the encryption key. Furthermore, the bracelet and the mobile phone can encrypt the data transmitted by the two parties through the encryption key to realize encrypted communication. The Bluetooth connection between the bracelet and the phone is established.

可能的实现方式中,手环和手机之间配对完成后,手环可以通过SDP对手机支持的服务进行查询。示例性的,手环向手机发送SDP请求信息,并接收手机发送的SDP响应信息。手环通过SDP响应信息获取手机支持的服务。手机支持的服务可以包括:发送电子邮件、打印传真、音频传输和语音通话,等。In a possible implementation manner, after the pairing between the bracelet and the mobile phone is completed, the bracelet can query the services supported by the mobile phone through SDP. Exemplarily, the bracelet sends SDP request information to the mobile phone, and receives SDP response information sent by the mobile phone. The bracelet obtains the services supported by the mobile phone through the SDP response information. Services supported by the mobile phone may include: sending e-mail, printing faxes, audio transmission and voice calls, etc.

2、免提通话(HFP)服务:让蓝牙设备(如蓝牙耳机)实现通话控制的协议,通话控制包括如接听、挂断、拒接和语音拨号,等。2. Hands-free calling (HFP) service: a protocol that allows Bluetooth devices (such as Bluetooth headsets) to implement call control, such as answering, hanging up, rejecting, and voice dialing, etc.

需要说明的是,HFP服务中包括音频网关(audio gate,AG)和免提组件(handsfree,HF)。AG是音频的输入输出网关。AG可以是手机等。HF是音频网关的远程音频输入/输出机制,并可提供若干遥控功能,本申请实施例中HF可以是手环和耳机等。It should be noted that the HFP service includes an audio gateway (audio gate, AG) and a hands-free component (handsfree, HF). AG is the audio input and output gateway. AG can be a mobile phone, etc. The HF is a remote audio input/output mechanism of the audio gateway, and can provide several remote control functions. In the embodiment of the present application, the HF may be a bracelet, a headset, or the like.

下面结合图2对HF控制AG拨打电话的方法进行说明。图2为HF控制AG拨打电话的方法流程示意图,如图2所示,方法包括:The following describes the method for the HF to control the AG to make a call with reference to FIG. 2 . FIG. 2 is a schematic flowchart of a method for HF to control AG to make a call. As shown in FIG. 2 , the method includes:

S201、HF和AG建立连接。S201, HF and AG establish a connection.

HF和AG建立HFP服务连接。需要说明的是,HFP服务连接建立在蓝牙连接为BR/EDR连接的情况下,HF和AG的蓝牙连接过程可以参照上述相关概念中的蓝牙连接过程。HF and AG establish HFP service connection. It should be noted that, when the HFP service connection is established in the case that the Bluetooth connection is a BR/EDR connection, the Bluetooth connection process of HF and AG may refer to the Bluetooth connection process in the above related concepts.

下面对HF和AG建立HFP服务连接的过程进行说明。示例性的,HF和AG建立HFP服务连接流程如下:HF向AG发送AT+获取支持的特性(retrieves the supported features,BRSF)命令通知AG,HF所支持的命令,AT+BRSF命令用于指示HF所支持的特性。HF接收AG回复的BRSF命令,BRSF命令用于指示AG所支持的特性。特性可以包括下述一种或多种:连接管理、电话状态信息、音频连接处理、接听语音来电、拒接语音来电、挂断电话、通话中语音链接转移和HF侧拨打电话等。HF向AG发送AT+CIND命令,AT+CIND命令用于问询AG支持的指标以及各个指标所对应的值。指标包括:呼叫、呼叫建立、呼叫保持和漫游等。HF向AG发送AT+CMER命令,AT+CMER命令用于使能各个指标。当某个指标有变化时,后续HF接收来自于AG发送的+CIEV命令,+CIEV命令用于指示该指标的变化。这样,HF确认AG所支持的特性和AG支持的指标以及各个指标所对应的值,HF和AG之间的HFP服务连接建立。The following describes the process of establishing the HFP service connection between the HF and the AG. Exemplarily, the procedure for establishing an HFP service connection between the HF and the AG is as follows: the HF sends an AT+ Retrieves the Supported Features (BRSF) command to the AG to notify the AG of the commands supported by the HF, and the AT+BRSF command is used to indicate the HF Supported features. The HF receives the BRSF command replied by the AG, and the BRSF command is used to indicate the features supported by the AG. Features may include one or more of the following: connection management, phone status information, audio connection handling, answering voice calls, rejecting voice calls, hanging up, mid-call voice link transfer, and HF side dialing, etc. The HF sends the AT+CIND command to the AG, and the AT+CIND command is used to inquire about the indicators supported by the AG and the corresponding values of each indicator. Metrics include: call, call setup, call hold, and roaming. HF sends AT+CMER command to AG, AT+CMER command is used to enable each indicator. When a certain index changes, the subsequent HF receives the +CIEV command sent from the AG, and the +CIEV command is used to indicate the change of the index. In this way, the HF confirms the characteristics supported by the AG, the indicators supported by the AG, and the values corresponding to each indicator, and the HFP service connection between the HF and the AG is established.

S202、HF接收到用户拨打电话的触发操作。S202. The HF receives a triggering operation for the user to make a call.

用户拨打电话的触发操作用于指示HF拨打电话。触发操作可以为用户的点击或触摸操作。用户点击或触摸操作可以包括:双击主界面、三击主界面、双击电源键和长按菜单键等。示例性的,当用户在HF主界面通过点击或触摸操作触发拨打电话控件时,HF接收到用户拨打电话的触发操作。The trigger operation for the user to make a call is used to instruct the HF to make a call. The trigger operation can be a user's click or touch operation. The user's click or touch operation may include: double-clicking the main interface, triple-clicking the main interface, double-clicking the power button, long-pressing the menu button, and the like. Exemplarily, when the user triggers the dialing control by clicking or touching on the main interface of the HF, the HF receives the triggering operation for the user to dial.

S203、HF向AG发送ATD+dd…dd命令。S203, the HF sends an ATD+dd...dd command to the AG.

其中,dd…dd为AG侧触发拨打电话的电话号码。Among them, dd...dd is the phone number that triggers the call on the AG side.

S204、AG接受到ATD命令后,向HF发送OK命令。S204. After receiving the ATD command, the AG sends an OK command to the HF.

相应的,HF接收到来自于AG的OK命令。Correspondingly, the HF receives the OK command from the AG.

可能的实现方式中,HF界面显示用于提醒电话状态的标识。In a possible implementation manner, the HF interface displays an identifier for reminding the state of the phone.

S205、AG向HF发送+CIEV(呼出建立=2)命令。S205. The AG sends a +CIEV (call setup=2) command to the HF.

+CIEV命令用于指示AG当前的状态。呼出建立=2用于指示AG成功发起呼叫,向外拨打电话。The +CIEV command is used to indicate the current state of the AG. Outgoing call establishment=2 is used to indicate that the AG successfully initiates a call and makes outgoing calls.

相应的,HF接收到AG发送的+CIEV(呼出建立=2)命令。Correspondingly, the HF receives the +CIEV (call setup=2) command sent by the AG.

S206、若AG与HF的音频连接不存在,AG向HF请求音频连接建立。S206. If the audio connection between the AG and the HF does not exist, the AG requests the HF to establish an audio connection.

S207、AG与HF建立音频连接。S207, AG and HF establish audio connection.

S208、AG向HF发送+CIEV(呼出建立=3)命令。S208. The AG sends a +CIEV (call setup=3) command to the HF.

呼出建立=3用于指示AG处于寻呼中,对方响铃。Outgoing call setup=3 is used to indicate that the AG is in paging and the other party is ringing.

相应的,HF接收到AG发送的+CIEV(呼出建立=3)命令。可能的实现方式中,HF界面显示电话寻呼的标识,该电话寻呼的标识用于指示电话待接通。Correspondingly, the HF receives the +CIEV (call setup=3) command sent by the AG. In a possible implementation manner, the HF interface displays the identification of the phone paging, and the identification of the phone paging is used to indicate that the phone is to be connected.

S209、AG向HF发送+CIEV(呼叫=1)命令。S209. The AG sends a +CIEV (call=1) command to the HF.

呼叫=1用于指示AG电话接通。call=1 is used to indicate that the AG phone is connected.

相应的,HF接收到AG发送的+CIEV(呼出建立=2)命令。可能的实现方式中,HF界面显示电话接通的标识,该电话接通的标识用于指示电话已接通。Correspondingly, the HF receives the +CIEV (call setup=2) command sent by the AG. In a possible implementation manner, the HF interface displays a call-connected identifier, and the call-connected identifier is used to indicate that the call has been connected.

S210、AG向HF发送+CIEV(呼出建立=0)命令。S210. The AG sends a +CIEV (call setup=0) command to the HF.

呼出建立=0用于指示AG电话挂断或当前没有待处理电话。Outgoing call setup = 0 is used to indicate that the AG phone hangs up or that there are currently no pending calls.

相应的,HF接收到AG发送的+CIEV(呼出建立=0)命令。可能的实现方式中,HF界面显示电话挂断的标识,该电话挂断的标识用于指示电话已挂断。Correspondingly, the HF receives the +CIEV (call setup=0) command sent by the AG. In a possible implementation manner, the HF interface displays a sign of hanging up the phone, and the sign of hanging up the phone is used to indicate that the call has been hung up.

下面结合图3-图8对本申请实施例提供的紧急呼叫方法进行说明。The emergency calling method provided by the embodiment of the present application will be described below with reference to FIG. 3 to FIG. 8 .

图3为本申请实施例提供的一种紧急呼叫方法流程示意图。以AG为手机。HF为手环为例,如图3所示,该方法包括:FIG. 3 is a schematic flowchart of an emergency calling method provided by an embodiment of the present application. Take AG as the mobile phone. Taking HF as an example of a bracelet, as shown in Figure 3, the method includes:

S301、手环与手机建立蓝牙连接。S301. Establish a Bluetooth connection between the bracelet and the mobile phone.

手环和手机建立蓝牙连接过程可以参照上述相关概念说明。此处不再赘述。For the process of establishing a Bluetooth connection between the bracelet and the mobile phone, refer to the above related concept descriptions. It will not be repeated here.

下面对手环和手机的蓝牙连接过程中的界面显示进行说明。示例性的,图4为一种手环和手机的蓝牙连接时的界面示意图。如图4所示,手环和手机均开启蓝牙功能。The following describes the interface display during the Bluetooth connection between the bracelet and the mobile phone. Exemplarily, FIG. 4 is a schematic diagram of an interface when a bracelet and a mobile phone are connected via Bluetooth. As shown in Figure 4, both the bracelet and the mobile phone have the Bluetooth function enabled.

手机显示如图4中a所示的某APP主界面,当手机接收到用户打开更多功能401的操作时,手机可以进入到图4中b所示的更多功能的界面。如图4中的b所示,该更多功能的界面中可以包括扫一扫和添加设备403。当用户在图4中的b所示的更多功能的界面中通过点击、触摸等操作触发添加设备控件403时,手机接收到用户设置添加设备403的操作,手机进入到如图4中的d所示的全部设备的界面。The mobile phone displays the main interface of an APP as shown in a in FIG. 4 . When the mobile phone receives the user's operation of opening more functions 401 , the mobile phone can enter the interface of more functions shown in b in FIG. 4 . As shown in b in FIG. 4 , the interface with more functions may include scanning and adding devices 403 . When the user triggers the adding device control 403 by clicking, touching, etc. in the interface with more functions as shown in b in FIG. The interface for all devices shown.

当用户在图4中a所示的为某APP主界面中,通过点击、触摸等操作触发添加设备控件402时,手机接收到用户触发添加设备控件402的操作,手机进入到如图4中的c所示的设备的界面。该设备界面可以包括设备标签栏404和设备项。设备项可以包括下述一种或多种:已连接设备、热门活动、玩机技巧或其他类型的设备项。当用户在图4中的c所示的设备的界面中通过点击、触摸等操作触发添加设备控件405时,手机接收到用户设置添加设备405的操作,手机进入到如图4中的d所示的全部设备的界面。When the user triggers the addition of the device control 402 by clicking, touching, etc. in the main interface of an APP as shown in a in FIG. The interface of the device shown in c. The device interface may include a device tab bar 404 and device items. Equipment items may include one or more of the following: connected devices, popular activities, game tricks, or other types of equipment items. When the user triggers the adding device control 405 by clicking, touching, etc. in the interface of the device shown in c in FIG. interface for all devices.

图4中的d所示的全部设备的界面包括全部设备标签栏406和全部设备选择项。全部设备选择项包括下述一种或多种:手表、手环、耳机、体脂秤、血糖仪或其他类型的全部设备项。当用户在图4中的d所示的全部设备的界面中通过点击、触摸等操作触发手环控件407时,手机接收到用户触发手环控件407的操作,手机进入到如图4中的e所示的手环控件的界面。该手环控件的界面中可以包括手环标签栏408和手环选择项,例如,手环选择项可以包括下述的一种或多种:手环A、手环B、手环C、手环D、手环E和手环F或其他类型的手环选择项。The interface of all devices shown in d in FIG. 4 includes all device tabs 406 and all device selection items. All equipment selections include one or more of the following: watches, wristbands, headphones, body fat scales, blood glucose meters, or other types of all equipment items. When the user triggers the wristband control 407 by clicking, touching, etc. in the interface of all the devices shown in d in FIG. The interface of the wristband control shown. The interface of the wristband control may include the wristband tab bar 408 and wristband selection items. For example, the wristband selection items may include one or more of the following: wristband A, wristband B, wristband C, wristband Ring D, Bracelet E and Bracelet F or other types of wristband options.

当用户在图4中的e所示的手环控件的界面中通过点击、触摸等操作触发手环A控件409时,手机接收到用户触发手环A控件409的操作,手机进入到如图4中的f所示的手环A控件的界面。该手环A控件的界面中可以包括手环A标签栏410和开始配对411。When the user triggers the wristband A control 409 by clicking, touching, etc. in the interface of the wristband control shown in e in FIG. The interface of the bracelet A control shown in f. The interface of the wristband A control may include a wristband A tab bar 410 and start pairing 411 .

当用户在图4中的f所示的手环A控件的界面中通过点击、触摸等操作触发开始配对控件411时,手机接收到用户触发开始配对控件411的操作,手机进入到如图4中的g所示的连接设备的界面。该连接设备的界面中可以包括连接设备标签栏412和设备名称项。设备名称项包括下述一种或多种:手环aaa、手环bbb、手环ccc或其他类型的设备名称项。When the user triggers the start pairing control 411 by clicking, touching, etc. in the interface of the bracelet A control shown in f in FIG. The interface of the connected device shown in g. The interface of the connected device may include a connected device tab bar 412 and a device name item. The device name item includes one or more of the following: bracelet aaa, bracelet bbb, bracelet ccc or other types of device name items.

当用户在图4中的g所示的连接设备的界面中通过点击、触摸等操作触发手环aaa控件413时,手机接收到用户触发手环aaa控件413的操作,手机进入到如图4中的h所示的配对引导的界面。该配对引导的界面中可以包括配对引导标签栏414和配对成功415。当配对引导的界面出现配对成功415时,手环和手机建立连接。When the user triggers the wristband aaa control 413 by clicking, touching, etc. in the interface for connecting the device shown in g in FIG. The interface of the pairing bootstrap shown in h. The pairing guide interface may include a pairing guide tab bar 414 and a pairing success 415 . When pairing successful 415 appears on the interface of the pairing guide, the bracelet and the mobile phone are connected.

可能的实现方式中,手环和手机建立过蓝牙连接后,当手环和手机均开启蓝牙功能时,手环和手机在一定范围可以自动连接。In a possible implementation manner, after the bracelet and the mobile phone have established a Bluetooth connection, when the Bluetooth function is enabled on both the bracelet and the mobile phone, the bracelet and the mobile phone can be automatically connected within a certain range.

在手环和手机配对连接后,用户可以通过手机对手环中的呼叫号码和功能快捷方式等进行设置。下面结合图5对手环中的呼叫号码设置过程进行说明。After the bracelet and the mobile phone are paired and connected, the user can set the call number and function shortcuts in the mobile phone bracelet. The following describes the process of setting a calling number in the bracelet with reference to FIG. 5 .

示例性的,图5为一种手机设置手环的呼叫号码的界面示意图。手环与手机建立连接后,图5中的a所示的设备的界面中,包括;设备标签栏501和手环aaa的标志502。当用户在图5中的a所示的设备的界面中通过点击、触摸等操作触发手环aaa控件502时,手机接收到用户触发手环aaa控件502的操作,手机进入到如图5中的b所示的手环aaa的界面。该手环aaa的界面中可以包括手环aaa标签栏503和手环aaa项。手环aaa项包括下述一种或多种:查找手机、天气提醒、消息通知、自定义手环功能、呼叫或其他类型的手环aaa项。Exemplarily, FIG. 5 is a schematic diagram of an interface for setting a calling number of a bracelet on a mobile phone. After the connection between the wristband and the mobile phone is established, the interface of the device shown in a in FIG. 5 includes a device label bar 501 and a logo 502 of the wristband aaa. When the user triggers the wristband aaa control 502 by clicking, touching, etc. in the interface of the device shown in a in FIG. 5 , the mobile phone receives the operation of the user triggering the wristband aaa control 502, and the mobile phone enters the operation as shown in FIG. 5 . The interface of the bracelet aaa shown in b. The interface of the bracelet aaa may include the bracelet aaa tab bar 503 and the bracelet aaa item. The bracelet aaa items include one or more of the following: mobile phone search, weather reminders, message notifications, custom bracelet functions, calls or other types of bracelet aaa items.

当用户在图5中的b所示的手环aaa的界面中通过点击、触摸等操作触发呼叫控件504时,手机接收到用户触发呼叫控件504的操作,手机进入到如图5中的c所示的呼叫的界面。该呼叫的界面中可以包括呼叫标签栏505和呼叫项。呼叫项包括下述一种或多种:默认拨号卡、号码设置、快捷方式或其他类型的呼叫项。When the user triggers the call control 504 by clicking, touching, etc. in the interface of the bracelet aaa shown in b in FIG. 5 , the mobile phone receives the operation of the user triggering the call control 504, and the mobile phone enters the operation as shown in c in FIG. 5 . the displayed call interface. The call interface may include a call tab bar 505 and call items. Call items include one or more of the following: default dial cards, number settings, shortcuts, or other types of call items.

当用户在图5中的c所示的呼叫的界面中通过点击、触摸等操作触发默认拨号卡控件506时,手机接收到用户触发默认拨号卡控件506的操作,确定呼叫时的使用的拨号卡。当用户在图5中的c所示的呼叫的界面中通过点击、触摸等操作触发号码设置控件507时,手机接收到用户触发号码设置控件507的操作,手机进入到如图5中的d所示的号码设置的界面。该号码设置的界面中可以包括号码设置标签栏508和号码设置项。号码设置项包括下述一种或多种:快速拨号1、快速拨号2、快速拨号3、快速拨号4、快速拨号5或者其他类型的号码设置项。When the user triggers the default dialing card control 506 by clicking, touching, etc. in the calling interface shown in c in FIG. 5 , the mobile phone receives the operation of the user triggering the default dialing card control 506, and determines the dialing card used during the call . When the user triggers the number setting control 507 by clicking, touching, etc. in the call interface shown in c in FIG. 5 , the mobile phone receives the operation of the user triggering the number setting control 507, and the mobile phone enters the operation as shown in d in FIG. 5 . the displayed number setting interface. The number setting interface may include a number setting tab bar 508 and a number setting item. The number setting items include one or more of the following: speed dial 1, speed dial 2, speed dial 3, speed dial 4, speed dial 5 or other types of number setting items.

当用户在图5中的d所示的号码设置的界面中通过点击、触摸等操作触发快速拨号1控件509时,手机接收到用户触发快速拨号1控件509的操作,手机进入到如图5中的e所示的快速拨号1的界面。该快速拨号1的界面中可以包括快速拨号1标签栏508和快速拨号项。快速拨号项包括下述一种或多种:选择联系人、输入号码或者其他类型的快速拨号项。When the user triggers the speed dial 1 control 509 by clicking, touching, etc. in the number setting interface shown in d in FIG. e shows the interface of Speed Dial 1. The interface of the speed dial 1 may include a speed dial 1 tab bar 508 and a speed dial item. Speed dial entries include one or more of the following: selecting a contact, entering a number, or other types of speed dial entries.

当用户在图5中的e所示的快速拨号1界面通过点击、触摸等操作触发选择联系人控件511时,手机接收到用户触发选择联系人控件511的操作,手机进入到如图5中的f所示的选择联系人的界面。该选择联系人的界面包括选择联系人标签栏513和联系人项。联系人项包括下述一个或多个:联系人a、联系人b、联系人c、联系人d、联系人e或其他联系人。当用户在图5中的f所示的选择联系人界面通过点击、触摸等操作触发联系人a控件514时,手机接收到用户触发联系人a控件514的操作,手机确定快速拨号1关联联系人a的电话号码。When the user triggers the selection of the contact control 511 by clicking, touching, etc. on the speed dial 1 interface shown in e in FIG. f shows the interface for selecting contacts. The interface for selecting a contact includes selecting a contact tab 513 and a contact item. The contact item includes one or more of the following: contact a, contact b, contact c, contact d, contact e or other contacts. When the user triggers the contact a control 514 by clicking, touching, etc. on the contact selection interface shown in f in FIG. 5 , the mobile phone receives the operation of the user triggering the contact a control 514, and the mobile phone determines that the speed dial 1 is associated with the contact a's phone number.

当用户在图5中的e所示的快速拨号1界面通过点击、触摸等操作触发输入号码控件512时,手机接收到用户触发输入号码控件512的操作,手机提示用户输入号码,进而确定快速拨号1关联的电话号码。When the user triggers the input number control 512 by clicking, touching, etc. on the speed dial 1 interface shown in e in FIG. 5 , the mobile phone receives the operation of the user triggering the input number control 512, and the mobile phone prompts the user to input the number, and then determines the speed dial 1 Associated phone number.

当用户确定快速拨号1关联的电话号码和快速拨号2关联的电话号码时,图5中的d所示的号码设置界面变为图5中的e所示的号码设置界面中,在图5中的e所示的号码设置界面中显示有快速拨号1关联的号码和快速拨号2关联的电话号码。When the user determines the phone number associated with the speed dial 1 and the phone number associated with the speed dial 2, the number setting interface shown in d in FIG. 5 becomes the number setting interface shown in e in FIG. 5 , in FIG. 5 The number setting interface shown by e of , displays the number associated with speed dial 1 and the phone number associated with speed dial 2.

上述图4和图5所示流程及界面仅为示例,本申请实施例对手环和手机具体的连接过程和手环功能设置过程及相关界面,本申请实施例不做具体限定。The above processes and interfaces shown in FIGS. 4 and 5 are only examples. The specific connection process of the bracelet and the mobile phone, the bracelet function setting process and related interfaces in the embodiments of the present application are not specifically limited in the embodiments of the present application.

S302、手环满足拨打电话的预设条件。S302, the bracelet satisfies the preset conditions for making calls.

手环满足拨打电话的预设条件包括手环检测出用户的手势操作与预设手势操作一致,或者手环检测到用户的生理特征满足预设的用户生理特征。用户的手势操作包括:用户点击操作和用户的肢体动作等,点击操作包括但不限于双击主界面、三击主界面、双击电源键和长按菜单键等。肢体动作包括但不限于转动手腕、握拳、伸平手掌、手掌弯折等。预设的用户生理特征用户心率、心电变化速度等。预设条件还可以包括手环识别出用户摔倒等紧急情况。The wristband satisfies the preset conditions for making a call, including that the wristband detects that the user's gesture operation is consistent with the preset gesture operation, or the wristband detects that the user's physiological characteristics meet the preset user physiological characteristics. The user's gesture operation includes: the user's click operation and the user's body movement, etc. The click operation includes but is not limited to double-clicking the main interface, triple-clicking the main interface, double-clicking the power button, and long-pressing the menu button. Physical actions include but are not limited to turning the wrist, making a fist, stretching the palm, bending the palm, etc. The preset physiological characteristics of the user include the user's heart rate, the rate of change of the electrocardiogram, and the like. The preset conditions may also include that the bracelet recognizes an emergency situation such as a fall of the user.

下面结合图6对手环中呼叫触发方式设置进行说明。示例性的,图6为一种设置呼叫触发方式的界面示意图。The following describes the setting of the call triggering mode in the hand ring with reference to FIG. 6 . Exemplarily, FIG. 6 is a schematic diagram of an interface for setting a call trigger mode.

手环与手机建立连接后,图6中的a所示的呼叫的界面中,包括;呼叫标签栏601和呼叫项。呼叫项包括下述一种或多种:默认拨号卡、号码设置、快捷方式或其他类型的呼叫项。当用户在图6中的a所示的呼叫界面通过点击、触摸等操作触发快捷方式控件602时,手机接收到用户触发快捷方式控件602的操作,手机进入图6中的b所示的快捷方式界面。该快捷方式界面中包括快捷方式标签栏603和快捷方式项。快捷方式项包括下述的一种或多种:双击主界面、三击主界面、转动手腕、握拳、伸平手掌、手掌弯折或其他类型的快捷方式项。在图6中的b所示的快捷呼叫界面通过点击、触摸等操作触发转动手腕控件604时,手机接收到用户触发转动手腕控件604的操作,确定呼叫的触发方式为转动手腕。当手环接收到用户转动手腕的操作时,手环进入并显示电话呼叫界面。After the bracelet and the mobile phone are connected, the call interface shown in a in FIG. 6 includes a call label bar 601 and a call item. Call items include one or more of the following: default dial cards, number settings, shortcuts, or other types of call items. When the user triggers the shortcut control 602 by clicking, touching, etc. on the call interface shown in a in FIG. 6 , the mobile phone receives the user’s operation to trigger the shortcut control 602, and the mobile phone enters the shortcut shown in b in FIG. 6 . interface. The shortcut interface includes a shortcut tab bar 603 and a shortcut item. The shortcut items include one or more of the following: double-clicking the main interface, triple-clicking the main interface, turning the wrist, making a fist, flattening the palm, bending the palm, or other types of shortcut items. When the quick call interface shown in b in FIG. 6 triggers the wrist rotation control 604 by clicking, touching, etc., the mobile phone receives the user's triggering operation to rotate the wrist control 604, and determines that the call triggering method is wrist rotation. When the wristband receives the user's operation of turning the wrist, the wristband enters and displays the phone call interface.

S304、当手环和手机之间支持HFP服务时,手环向手机发送ATD命令。S304. When the HFP service is supported between the bracelet and the mobile phone, the bracelet sends an ATD command to the mobile phone.

ATD命令用于指示手机拨打电话。ATD命令中可以包括具体号码或者预先设置的号码标记。示例性的,ATD命令可以携带具体号码或者预先设置的号码标记。The ATD command is used to instruct the mobile phone to make a call. The ATD command may include a specific number or a preset number mark. Exemplarily, the ATD command may carry a specific number or a preset number mark.

可能的实现方式中,当手环与手机之间的蓝牙连接(或者称为业务类型)为BR或EDR时,手环通过SDP确认手环和手机之间是否均支持HFP服务。示例性的,手环可以向手机发送SDP请求信息,当手环接收到手机发送的SDP响应信息时,手环可以确定手机支持的服务,进而确认手环与手机之间是否支持HFP服务。In a possible implementation manner, when the Bluetooth connection (or service type) between the bracelet and the mobile phone is BR or EDR, the bracelet confirms through SDP whether the HFP service is supported between the bracelet and the mobile phone. Exemplarily, the bracelet can send SDP request information to the mobile phone, and when the bracelet receives the SDP response information sent by the mobile phone, the bracelet can determine the services supported by the mobile phone, and then confirm whether HFP services are supported between the bracelet and the mobile phone.

S305、手机接收并响应ATD命令。S305, the mobile phone receives and responds to the ATD command.

手机响应ATD命令进行电话拨打的流程可以参照上述图2的说明,此处不再赘述。For the process of making a phone call in response to the ATD command by the mobile phone, reference may be made to the description of FIG. 2 , which will not be repeated here.

此时,电话成功呼出,手环和手机不执行后续步骤。At this time, the phone is successfully called out, and the bracelet and mobile phone do not perform the subsequent steps.

即当手环和手机之间支持HFP服务时,手环和手机通过执行S301、S302、S304和S305,实现手环远程控制手机呼出电话。That is, when the HFP service is supported between the bracelet and the mobile phone, the bracelet and the mobile phone can remotely control the mobile phone to make outgoing calls by executing S301, S302, S304 and S305.

而当手环和手机之间不支持HFP服务,支持BLE服务时,手环和手机通过执行S301、S302和S307-S310,实现手环远程控制手机呼出电话。S301和S302可以参照上述说明,下面对S307-S310进行说明。When the HFP service is not supported between the bracelet and the mobile phone, but the BLE service is supported, the bracelet and the mobile phone can remotely control the mobile phone to make outgoing calls by executing S301, S302 and S307-S310. S301 and S302 may refer to the above description, and S307-S310 will be described below.

可能的实现方式中,当手环与手机之间的业务类型为BLE时,手环和手机之间支持BLE服务。In a possible implementation, when the service type between the bracelet and the mobile phone is BLE, the BLE service is supported between the bracelet and the mobile phone.

S307、当手环和手机之间支持BLE服务时,手环向手机发送通用属性配置文件(generic attribute profile,GATT)命令或者广播。S307. When the BLE service is supported between the bracelet and the mobile phone, the bracelet sends a generic attribute profile (generic attribute profile, GATT) command or broadcast to the mobile phone.

本申请实施例中,GATT命令和广播用于指示手机拨打电话。GATT命令中可以包括具体号码或者预先设置的号码标记。广播可以包括具体号码。In this embodiment of the present application, the GATT command and broadcast are used to instruct the mobile phone to make a call. The GATT command may include a specific number or a preset number mark. Broadcasts can include specific numbers.

可能实现的方式一中,手环向手机发送GATT命令中的句柄值指示(handle valueindication)命令,句柄值指示命令中携带具体号码或者预先设置的号码标记。In the first possible implementation, the bracelet sends a handle value indication (handle value indication) command in the GATT command to the mobile phone, and the handle value indication command carries a specific number or a preset number mark.

示例性的,句柄值指示命令如表1所示。句柄值指示命令包括属性操作码、属性句柄和属性值。属性值用于传递具体号码或者预先设置的号码标记。Exemplarily, the handle value indication command is shown in Table 1. The handle value indication command includes attribute opcodes, attribute handles, and attribute values. The attribute value is used to pass a specific number or a preset number tag.

表1句柄值指示命令Table 1 Handle value indication command

参数parameter 大小size 功能Function 属性操作码attribute opcode 11 0*1D=句柄值指示0*1D=handle value indication 属性句柄property handle 22 属性句柄property handle 属性值attribute value 0to(ATT_MTU-3)0to(ATT_MTU-3) 当前句柄值current handle value

可能实现的方式二中,手环向手机发送携带具体号码的定向广播。其中,定向广播的地址类型为公开(public)。定向广播可以包括下述一种或多种:广播长度、广播类型、手机的介质访问控制(media access control,MAC)地址、具体号码或其他类型的信息。本申请实施例对于定向广播包括的内容和格式不做具体限定。In the second possible implementation, the bracelet sends a directional broadcast carrying a specific number to the mobile phone. The address type of the directed broadcast is public (public). The directed broadcast may include one or more of the following: broadcast length, broadcast type, media access control (MAC) address of the mobile phone, specific number, or other types of information. The embodiments of the present application do not specifically limit the content and format included in the directional broadcast.

可能的实现方式三中,手环向手机发送携带具体号码的非定向广播。其中,非定向广播的地址类型为随机(random)。非定向广播可以包括下述一种或多种广播长度、广播类型、手环的MAC地址、具体号码或其他类型的信息。本申请实施例对于非定向广播包括的内容和格式不做具体限定。In the third possible implementation, the bracelet sends a non-directional broadcast carrying a specific number to the mobile phone. The address type of the non-directional broadcast is random. The non-directed broadcast may include one or more of the following broadcast length, broadcast type, MAC address of the bracelet, specific number or other types of information. The embodiments of the present application do not specifically limit the content and format included in the non-directional broadcast.

示例性的,表2为本申请实施例提供的一种广播数据格式。表2中包括广播长度、广播类型、唯一标识符(universally unique identifier,UUID)、版本、业务、类型表、MAC地址和具体号码。其中,业务和类型用于手机判断该广播是否为号码呼出的广播。MAC地址用于手机判断该广播是否为已连接设备发出或者该广播是否为自身设备接收的广播。Exemplarily, Table 2 is a broadcast data format provided by this embodiment of the present application. Table 2 includes broadcast length, broadcast type, unique identifier (universally unique identifier, UUID), version, service, type table, MAC address and specific number. Among them, the service and type are used by the mobile phone to determine whether the broadcast is a broadcast from a number called out. The MAC address is used by the mobile phone to determine whether the broadcast is sent by a connected device or whether the broadcast is received by its own device.

表2广播数据格式Table 2 Broadcast data format

Figure BDA0003023046670000101
Figure BDA0003023046670000101

S308、手机在接收到来自于手环的GATT命令后,手机向手环发送响应命令。S308, after the mobile phone receives the GATT command from the bracelet, the mobile phone sends a response command to the bracelet.

示例性的,手机向手环发送的响应命令可以为GATT中的句柄值确认(handlevalue confirmation)命令。示例性的,句柄值确认命令如表3所示。句柄值确认命令包括属性操作码。Exemplarily, the response command sent by the mobile phone to the bracelet may be a handle value confirmation command in GATT. Exemplarily, the handle value confirmation command is shown in Table 3. Handle value validation commands include attribute opcodes.

表3句柄值确认命令Table 3 Handle value confirmation command

参数parameter 大小size 功能Function 属性操作码attribute opcode 11 0*1E=句柄值确认0*1E=Handle value confirmation

S309、手机在接受到来自于手环的GATT命令或者广播或者RFCOMM命令后,解析GATT命令或者广播或者RFCOMM命令。S309, after receiving the GATT command or broadcast or RFCOMM command from the bracelet, the mobile phone parses the GATT command or broadcast or RFCOMM command.

可能的实现方式一中,手机解析GATT命令获取具体号码,并拨出。In a possible implementation manner 1, the mobile phone parses the GATT command to obtain a specific number and dials out.

可能的实现方式二中,手机在接收到定向广播后,通过定向广播中的业务和类型表判断该定向广播是否为指示号码呼出的广播,当该定向广播是指示号码呼出的广播时,手机判断该定向广播数据中携带的MAC地址是否为本手机地址。当该定向广播数据中携带的MAC地址是本手机地址时,手机解析该定向广播中紧急号码字段获取具体号码,并拨出号码。当该定向广播数据中携带的MAC地址不是本手机地址时,手机停止解析该定向广播。当该定向广播不是指示号码呼出的广播时,手机停止解析该定向广播。In the possible implementation mode 2, after the mobile phone receives the directional broadcast, it judges whether the directional broadcast is a broadcast indicating the number to call out through the service and type table in the directional broadcast, and when the directional broadcast is a broadcast that indicates the number to call out, the mobile phone determines Whether the MAC address carried in the directed broadcast data is the mobile phone address. When the MAC address carried in the directional broadcast data is the address of the mobile phone, the mobile phone parses the emergency number field in the directional broadcast to obtain a specific number, and dials the number. When the MAC address carried in the directional broadcast data is not the address of the mobile phone, the mobile phone stops parsing the directional broadcast. When the directional broadcast is not a broadcast indicating that the number is called out, the mobile phone stops parsing the directional broadcast.

可能的实现方式三中,手机在接收到非定向广播后,通过非定向广播中的业务和类型表判断该非定向广播是否为指示号码呼出的广播,当该非定向广播是指示号码呼出的广播时,手机判断该非定向广播数据中携带的MAC地址是否为手机已连接设备的MAC地址。当该非定向广播数据中携带的MAC地址是手机已连接设备的MAC地址时,手机通过解析该非定向广播中紧急号码字段获取具体号码,并拨出号码。当该非定向广播数据中携带的MAC地址不是手机已连接设备的MAC地址,手机停止解析该非定向广播。当该非定向广播不是指示号码呼出的广播时,手机停止解析该非定向广播。In the possible implementation mode 3, after receiving the non-directional broadcast, the mobile phone judges whether the non-directional broadcast is a broadcast indicating that the number is called out through the service and type table in the non-directional broadcast, and when the non-directional broadcast is a broadcast indicating that the number is called out. At the time, the mobile phone determines whether the MAC address carried in the non-directional broadcast data is the MAC address of the connected device of the mobile phone. When the MAC address carried in the non-directional broadcast data is the MAC address of the connected device of the mobile phone, the mobile phone obtains the specific number by parsing the emergency number field in the non-directional broadcast, and dials the number. When the MAC address carried in the non-directional broadcast data is not the MAC address of the connected device of the mobile phone, the mobile phone stops parsing the non-directional broadcast. When the non-directional broadcast is not a broadcast indicating that the number is called out, the mobile phone stops parsing the non-directional broadcast.

S310、手机开启外放功能,外放功能用于将手机输出的声音放大。In S310, the mobile phone enables the external playback function, and the external playback function is used to amplify the sound output by the mobile phone.

可能的实现方式中,手机开启外放功能可以包括手机开启扬声器等,通过扬声器可以将声音放大,使得用户可以听到手机传递的声音。In a possible implementation manner, turning on the external playback function of the mobile phone may include turning on the speaker of the mobile phone, etc., and the sound can be amplified through the speaker, so that the user can hear the sound transmitted by the mobile phone.

当手环和手机之间不支持HFP服务和BLE服务,支持SPP服务时,手环和手机通过执行S301、S302、S312、S309和S310,实现手环远程控制手机呼出电话。S301、S302和S310可以参照上述说明,下面对S312和S309进行说明。When the HFP service and BLE service are not supported between the bracelet and the mobile phone, but the SPP service is supported, the bracelet and the mobile phone can remotely control the mobile phone to make outgoing calls by executing S301, S302, S312, S309 and S310. S301, S302 and S310 can refer to the above description, and S312 and S309 will be described below.

S312、当手环和手机之间支持SPP服务时,手环向手机发送RFCOMM命令。S312. When the SPP service is supported between the bracelet and the mobile phone, the bracelet sends an RFCOMM command to the mobile phone.

当手环和手机之间支持SPP服务时,手环和手机的SPP连接可以在手环的SDP服务发现后建立,也可以在号码呼出时建立。When the SPP service is supported between the bracelet and the mobile phone, the SPP connection between the bracelet and the mobile phone can be established after the SDP service of the bracelet is discovered, or it can be established when the number is called out.

示例性的,若手环和手机之间支持SPP服务,手环建立SPP服务连接,并通过RFCOMMDLC参数协商命令明确消息类型并传递号码给手机,控制手机向外拨打电话,实现紧急呼叫。Exemplarily, if the SPP service is supported between the wristband and the mobile phone, the wristband establishes the SPP service connection, specifies the message type and transmits the number to the mobile phone through the RFCOMMDLC parameter negotiation command, and controls the mobile phone to make outgoing calls to implement emergency calls.

S309、手机在接受到RFCOMM命令后,解析RFCOMM命令。S309, after receiving the RFCOMM command, the mobile phone parses the RFCOMM command.

手机在接受到RFCOMM命令后,解析RFCOMM命令,获取具体号码,并拨出。After receiving the RFCOMM command, the mobile phone parses the RFCOMM command, obtains the specific number, and dials out.

可能的实现方式中,手机在接收到RFCOMM命令后,向手环回复该命令。In a possible implementation manner, after receiving the RFCOMM command, the mobile phone will reply the command to the bracelet.

当手环不支持HFP服务、BLE服务和SPP服务时,手环不能控制手机呼叫,手环执行S313。When the wristband does not support HFP service, BLE service and SPP service, the wristband cannot control mobile phone calls, and the wristband executes S313.

S313、当手环和手机之间不支持SPP服务时,手环显示提示信息。S313. When the SPP service is not supported between the wristband and the mobile phone, the wristband displays a prompt message.

本申请实施例中,提示信息用于提示用户通过其他方式尝试拨打电话或者当前用户处于紧急情况。In this embodiment of the present application, the prompt information is used to prompt the user to try to make a call by other means or the current user is in an emergency.

可能的实现方式中,手环可以通过在用户界面显示提示框,提示框中包含提示信息,提示信息可以为“请用户通过其他方式尝试拨打电话”或者“紧急情况”等。In a possible implementation manner, the bracelet can display a prompt box on the user interface, the prompt box contains prompt information, and the prompt information can be "please try to make a call by other means" or "emergency".

综上,手环可以基于HFP服务、BLE服务和SPP服务中的任意一种或多种,远程控制手机呼叫。这样,不支持HFP服务的智能穿戴设备,在支持BLE服务和/或SPP服务时,也可以实现控制手机实现远程呼叫。该紧急呼叫方法可以应用于多种智能穿戴设备,扩大了智能穿戴设备远程呼叫功能的应用范围。To sum up, the bracelet can remotely control mobile phone calls based on any one or more of HFP service, BLE service and SPP service. In this way, the smart wearable device that does not support the HFP service can also control the mobile phone to realize a remote call when it supports the BLE service and/or the SPP service. The emergency calling method can be applied to a variety of smart wearable devices, which expands the application scope of the remote calling function of the smart wearable device.

下面结合图7对手环呼叫过程进行说明。示例性的,图7为一种手环呼叫的界面示意图。The following describes the hand ring calling process with reference to FIG. 7 . Exemplarily, FIG. 7 is a schematic interface diagram of a wristband call.

如图7所示,当手环在图7中的a所示的手环主界面中,接收到用户上滑操作时,手环可以进入到图7中的b所示的更多功能界面。该更多功能界面中包括更多功能的图标701。当用户通过点击、触摸等操作触发更多功能图标控件701时,手环接收到用户触发更多功能图标控件701的操作,手环进入到图7中的c所示的呼叫界面。该呼叫界面包括呼叫图标702。As shown in FIG. 7 , when the wristband receives a user swipe up operation in the wristband main interface shown in a in FIG. 7 , the wristband can enter the more function interface shown in b in FIG. 7 . The more function interface includes more function icons 701 . When the user triggers the more function icon control 701 by clicking, touching, etc., the wristband receives the operation of the user triggering the more function icon control 701, and the wristband enters the call interface shown in c in FIG. 7 . The call interface includes a call icon 702 .

当用户通过点击、触摸等操作触发呼叫控件702时,手环接收到用户触发呼叫图标控件702的操作,手环进入到图7中的d所示的号码1界面。该号码1界面包括号码1图标703。当手环在该号码1界面接受到用户上滑操作时,手环进入到图7中的e所示的号码2界面。该号码2界面包括号码2图标704。当用户点击或者长按图7中的d所示的号码1界面中的号码1图标控件703或者图7中的e所示的号码2界面中的号码2图标控件704时,手环执行上述图3所示的方法并进入到图7中的f所示的电话呼出界面。When the user triggers the call control 702 by clicking, touching, etc., the wristband receives the operation of the user triggering the call icon control 702, and the wristband enters the number 1 interface shown in d in FIG. 7 . The number 1 interface includes a number 1 icon 703 . When the wristband receives the user's swipe up operation on the number 1 interface, the wristband enters the number 2 interface shown in e in FIG. 7 . The number 2 interface includes a number 2 icon 704 . When the user clicks or long-presses the number 1 icon control 703 in the number 1 interface shown in d in FIG. 7 or the number 2 icon control 704 in the number 2 interface shown in e in FIG. 7 , the wristband executes the above figure. 3 and enter the outgoing phone call interface shown in f in FIG. 7 .

可能的实现方式中,当手环在图7中的c所示的呼叫界面时,接收到用户按键操作时,手环可以根据按键频次,选择相应号码并拨出。示例性的,当手环在图7中的c所示的呼叫界面时,接收到用户2次按键操作时,手环选择图7中的e所示的号码2,执行上述图3所示的方法,并进入到图7中的f所示的电话呼出界面。In a possible implementation manner, when the wristband is on the call interface shown in c in FIG. 7 and receives a user key operation, the wristband can select a corresponding number and dial out according to the frequency of key presses. Exemplarily, when the bracelet is on the call interface shown in c in FIG. 7 and receives two key operations from the user, the bracelet selects the number 2 shown in e in FIG. method, and enter the outgoing phone call interface shown in f in FIG. 7 .

可能的实现方式中,手环接收到用户设置的呼叫触发操作时,例如上述图6所设置的转动手腕操作,手环进入图7中d所示的界面,在预设时间内,若手环未接收到用户退出d所示的界面操作时,手环执行上述图3所示的方法并进入到图7中的f所示的电话呼出界面。In a possible implementation, when the wristband receives a call trigger operation set by the user, such as the wrist rotation operation set in the above-mentioned Figure 6, the wristband enters the interface shown in d in Figure 7. When receiving the user exiting the interface operation shown in d, the bracelet executes the method shown in FIG. 3 and enters the phone call interface shown in f in FIG. 7 .

在图3对应的实施例的基础上,手环可以通过手环和手机之间业务类型判断手环和手机之间所支持的服务。手环和手机之间的业务类型可以在蓝牙连接前获取。下面结合图8对手环获取手环和手机之间的业务类型方法进行说明。On the basis of the embodiment corresponding to FIG. 3 , the wristband can determine the services supported between the wristband and the mobile phone by the service type between the wristband and the mobile phone. The service type between the bracelet and the mobile phone can be obtained before the Bluetooth connection. The following describes the method for obtaining the service type between the wristband and the mobile phone from the wristband with reference to FIG. 8 .

图8为本申请实施例提供的一种手环获取手环和手机之间的业务类型方法的流程示意图。如图8所示,该方法包括:FIG. 8 is a schematic flowchart of a method for a wristband to obtain a service type between a wristband and a mobile phone according to an embodiment of the present application. As shown in Figure 8, the method includes:

S801、手环获取手环自身特性。S801. The wristband obtains the characteristics of the wristband itself.

可能的实现方式中,手环通过获取UUID,获取手环自身特性。UUID用于标识蓝牙服务以及通讯特征访问属性。In a possible implementation, the bracelet obtains the characteristics of the bracelet itself by obtaining the UUID. UUID is used to identify Bluetooth service and communication feature access attributes.

S802、手机获取手机自身特性。S802, the mobile phone acquires the characteristics of the mobile phone itself.

可能的实现方式中,手机通过获取UUID,获取手机自身特性。UUID用于标识蓝牙服务以及通讯特征访问属性。In a possible implementation manner, the mobile phone obtains the characteristics of the mobile phone by obtaining the UUID. UUID is used to identify Bluetooth service and communication feature access attributes.

S803、手环寻呼手机。S803, the bracelet paging the mobile phone.

可能的实现方式中,手环对手机的MAC地址发起寻呼(page)。示例性的,手环向手机发送page,手机接收到手环发送的page后,手环和手机开始建立ACL链接。In a possible implementation manner, the bracelet initiates a page to the MAC address of the mobile phone. Exemplarily, the bracelet sends a page to the mobile phone, and after the mobile phone receives the page sent by the bracelet, the bracelet and the mobile phone start to establish an ACL link.

S804、手环向手机发送链路管理(link management protocol,LMP)标准特性请求。S804, the bracelet sends a link management protocol (LMP) standard feature request to the mobile phone.

示例性的,手环向手机发送LMP_FEATURES_REQ命令。S805、手机向手环发送LMP标准特性回复。Exemplarily, the bracelet sends the LMP_FEATURES_REQ command to the mobile phone. S805. The mobile phone sends the LMP standard feature reply to the bracelet.

示例性的,手机向手环发送LMP_FEATURES_RSP命令。Exemplarily, the mobile phone sends the LMP_FEATURES_RSP command to the bracelet.

S806、手环向手机发送LMP扩展特性请求。S806, the bracelet sends an LMP extended feature request to the mobile phone.

示例性的,手环向手机发送LMP_FEATURES_REQ_EXT命令。S807、手机向手环发送LMP扩展特性回复。Exemplarily, the bracelet sends the LMP_FEATURES_REQ_EXT command to the mobile phone. S807. The mobile phone sends the LMP extended feature reply to the bracelet.

示例性的,手机向手环发送LMP_FEATURES_RSP_EXT命令。Exemplarily, the mobile phone sends the LMP_FEATURES_RSP_EXT command to the bracelet.

S808、手环向手机发送远程终端支持的特性通知。S808, the bracelet sends a notification of the feature supported by the remote terminal to the mobile phone.

S809、手环获取手环与手机之间的业务类型。S809, the bracelet obtains the business type between the bracelet and the mobile phone.

手环和手机之间的业务类型可以包括下述一种或多种:BR、EDR和BLE。The service types between the bracelet and the mobile phone can include one or more of the following: BR, EDR, and BLE.

这样,手环可以获取手机支持的特性,进而确定手环和手机之间的业务类型,方便手环根据支持的业务类型控制手机呼叫。In this way, the wristband can obtain the features supported by the mobile phone, and then determine the service type between the wristband and the mobile phone, so that the wristband can control the mobile phone call according to the supported service type.

在图3对应的实施例的基础上,手环可以将手机的本机号码或手机的本机号码标记与手机中的振铃或者播放音乐等其他功能关联,实现手环查找手机或者手环控制手机播放音乐等。On the basis of the embodiment corresponding to FIG. 3 , the bracelet can associate the mobile phone’s own number or the mobile phone’s own number mark with other functions such as ringing or playing music in the mobile phone, so that the bracelet can search for the mobile phone or control the bracelet. mobile phone to play music, etc.

可能的实现方式中,手环接收到用户查找手机或者外放音乐功能的触发操作,当手环和手机支持HFP服务时,手环向手机发送ATD命令,其中ATD命令用于指示手机拨打电话,ATD命令可以携带号码或者号码标记,号码标记与手机中的振铃或者播放音乐等其他功能关联。相应的,手机接收手环发送的ATD命令,当手机解析ATD命令中号码或号码标记为本机号码时,手机开始振铃或者播放音乐。In a possible implementation, the wristband receives the trigger operation of the user to find the mobile phone or the function of playing music. When the wristband and the mobile phone support the HFP service, the wristband sends an ATD command to the mobile phone, where the ATD command is used to instruct the mobile phone to make a call. The ATD command can carry a number or a number mark, and the number mark is associated with other functions such as ringing or playing music in the mobile phone. Correspondingly, the mobile phone receives the ATD command sent by the bracelet, and when the mobile phone parses the number in the ATD command or the number is marked as the local number, the mobile phone starts to ring or play music.

当手环和手机之间不支持HFP服务,支持BLE服务时,手环向手机发送GATT命令或广播,其中,GATT命令和广播用于指示手机手机拨打电话,GATT命令中携带具体号码或号码标记,广播中携带具体号码。相应的,手机接收手环发送的GATT命令或广播,并解析手环发送的GATT命令或广播,当手机解析GATT命令或广播中的号码或号码标记为本机号码时,手机开始振铃或者播放音乐。当手环和手机不支持HFP服务和BLE服务,支持SPP服务时,手环向手机发送RFCOMM命令,其中RFCOMM命令携带具体号码或号码标记。相应的,手机接收手环发送的RFCOMM命令,当手机解析RFCOMM命令中的号码或号码标记为本机号码时,手机开始振铃或者播放音乐。When the HFP service is not supported between the bracelet and the mobile phone, but the BLE service is supported, the bracelet sends a GATT command or broadcast to the mobile phone. The GATT command and broadcast are used to instruct the mobile phone to make a call, and the GATT command carries a specific number or number mark. , and the specific number is carried in the broadcast. Correspondingly, the mobile phone receives the GATT command or broadcast sent by the bracelet, and parses the GATT command or broadcast sent by the bracelet. When the mobile phone parses the GATT command or the number or number in the broadcast is marked as the local number, the mobile phone starts to ring or play. music. When the bracelet and mobile phone do not support HFP service and BLE service, but support SPP service, the bracelet sends RFCOMM commands to the mobile phone, where the RFCOMM command carries a specific number or number mark. Correspondingly, the mobile phone receives the RFCOMM command sent by the bracelet, and when the mobile phone parses the number in the RFCOMM command or the number is marked as the local number, the mobile phone starts to ring or play music.

当手环和手机不支持HFP服务、BLE服务和支持SPP服务中的任一项时,手环提示用户通过其他方式控制手机振铃或者播放音乐。When the bracelet and the mobile phone do not support any of the HFP service, BLE service and SPP service, the bracelet prompts the user to control the mobile phone to ring or play music by other means.

上述手环查找手机或者手环控制手机外放音乐的具体实现过程与图3所示的方法类似,此处不再赘述。The above-mentioned specific implementation process of the bracelet searching for the mobile phone or the bracelet controlling the mobile phone to play music is similar to the method shown in FIG. 3 , and will not be repeated here.

示例性的,图9为一种手环查找手机的界面示意图。在图9中的a所示的查找手机界面中,当手环接收到用户点击或者触摸的查找手机控件901的操作时,手环执行上述图3所示的方法,使得手机振铃,方便用户寻找。并显示图9中的b所示的查找中界面。Exemplarily, FIG. 9 is a schematic diagram of an interface of a wristband searching for a mobile phone. In the mobile phone search interface shown in a in FIG. 9 , when the wristband receives the operation of searching for the mobile phone control 901 clicked or touched by the user, the wristband executes the method shown in the above-mentioned FIG. 3 to make the mobile phone ring, which is convenient for the user Look for. And the searching interface shown in b in Fig. 9 is displayed.

当手环接收到用户查找手机的触发操作时,手环进入图9中的a所示的查找手机界面,在预设时间内,若手环未接收到用户退出图9中的a所示的界面操作时,手环执行上述图3所示的方法,使得手机振铃,方便用户寻找。并进入到图9中的b所示的查找中界面。When the wristband receives the trigger operation of the user to search for the mobile phone, the wristband enters the mobile phone search interface shown in a in Figure 9, and within a preset time, if the wristband does not receive the user to exit the interface shown in a in Figure 9 During operation, the bracelet executes the method shown in Figure 3 above, so that the mobile phone rings, which is convenient for the user to find. And enter the searching interface shown in b in FIG. 9 .

上面已对本申请实施例的紧急呼叫方法进行了说明,下面对本申请实施例提供的执行上述紧急呼叫方法的相关装置进行描述。本领域技术人员可以理解,方法和装置可以相互结合和引用,本申请实施例提供的智能穿戴设备可以执行上述紧急呼叫方法中的步骤。The emergency calling method according to the embodiment of the present application has been described above, and the following describes the related apparatus for executing the above emergency calling method provided by the embodiment of the present application. Those skilled in the art can understand that the methods and apparatuses can be combined and referenced with each other, and the smart wearable device provided by the embodiments of the present application can perform the steps in the above emergency call method.

图10为本申请实施例提供的一种智能穿戴设备的硬件结构示意图。请参见图10,该装置包括:存储器1001、处理器1002和接口电路1003。该装置还可以包括显示屏1004,其中,存储器1001、处理器1002、接口电路1003和显示屏1004可以通信;示例性的,存储器1001、处理器1002、接口电路1003和显示屏1004可以通过通信总线通信,存储器1001用于存储计算机执行指令,由处理器1002来控制执行,并由接口电路1003来执行通信,从而实现本申请下述实施例提供的紧急呼叫方法。FIG. 10 is a schematic diagram of a hardware structure of a smart wearable device according to an embodiment of the present application. Referring to FIG. 10 , the apparatus includes: a memory 1001 , a processor 1002 and an interface circuit 1003 . The apparatus may further include a display screen 1004, wherein the memory 1001, the processor 1002, the interface circuit 1003 and the display screen 1004 can communicate; for example, the memory 1001, the processor 1002, the interface circuit 1003 and the display screen 1004 can communicate through a communication bus For communication, the memory 1001 is used to store computer execution instructions, which are controlled and executed by the processor 1002, and communicated by the interface circuit 1003, so as to implement the emergency calling method provided by the following embodiments of the present application.

可能的实现方式中,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。In a possible implementation manner, the computer-executed instructions in the embodiments of the present application may also be referred to as application code, which is not specifically limited in the embodiments of the present application.

可选的,接口电路1003还可以包括发送器和/或接收器。可选的,上述处理器1002可以包括一个或多个CPU,还可以是其他通用处理器、数字信号处理器(digital signalprocessor,DSP)、专用集成电路(application specific integrated circuit,ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。Optionally, the interface circuit 1003 may further include a transmitter and/or a receiver. Optionally, the above-mentioned processor 1002 may include one or more CPUs, and may also be other general-purpose processors, digital signal processors (digital signal processors, DSPs), application specific integrated circuits (application specific integrated circuits, ASICs), and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps in combination with the method disclosed in the present application can be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。如果在软件中实现,则功能可以作为一个或多个指令或代码存储在计算机可读介质上或者在计算机可读介质上传输。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。Embodiments of the present application also provide a computer-readable storage medium. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media can include both computer storage media and communication media and also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.

一种可能的实现方式中,计算机可读介质可以包括RAM,ROM,只读光盘(compactdisc read-only memory,CD-ROM)或其它光盘存储器,磁盘存储器或其它磁存储设备,或目标于承载的任何其它介质或以指令或数据结构的形式存储所需的程序代码,并且可由计算机访问。而且,任何连接被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,数字用户线(Digital Subscriber Line,DSL)或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘,激光盘,光盘,数字通用光盘(Digital Versatile Disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。上述的组合也应包括在计算机可读介质的范围内。In one possible implementation, the computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or a Any other medium or the required program code in the form of instructions or data structures and can be accessed by the computer. Also, any connection is properly termed a computer-readable medium. For example, if you use coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies (such as infrared, radio, and microwave) to transmit software from a website, server, or other remote source, coaxial Cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and disc, as used herein, includes compact disc, laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, and Blu-ray disc, where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.

本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理单元以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理单元执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processing unit of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

以上的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。The above specific embodiments further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific embodiments of the present invention, and are not intended to limit the protection scope of the present invention. On the basis of the technical solutions of the present invention, any modifications, equivalent replacements, improvements, etc. made shall be included within the protection scope of the present invention.

Claims (12)

1. An emergency call method, comprising:
the first equipment and the second equipment establish Bluetooth connection;
when the first device meets a first preset condition and supports the hands-free call HFP service, the first device sends a first message to the second device, wherein the first message comprises a first telephone number; the second device dials the first phone number in response to the first message;
when the first device does not support the HFP service and the first device supports the Bluetooth Low Energy (BLE) service, the first device sends a second message to the second device, wherein the second message comprises a second telephone number; the second device dials the second phone number in response to the second message;
when the first device does not support HFP service and BLE service and supports simple parallel SPP service, the first device sends a third message to the second device, wherein the third message comprises a third telephone number; the second device dials the third phone number in response to the third message;
the first device meeting a first preset condition comprises:
the first equipment detects that gesture operation of a user meets preset gesture operation, and the preset gesture operation is used for indicating the first equipment to make a call;
or the first device detects that the physiological characteristics of the user meet preset physiological characteristics, and the preset physiological characteristics are used for indicating the first device to make a call;
the method further comprises the following steps:
when the first device meets the first preset condition and the first device does not support HFP service, BLE service and SPP service, the first device displays prompt information, and the prompt information is used for prompting a user of emergency.
2. The method of claim 1, wherein the first message is an automatic dialing (ATD) command, and wherein the ATD command comprises the first telephone number.
3. The method of claim 1, wherein the second message is a generic attribute profile (GATT) command, the GATT command comprising the second phone number;
or, the second message is a broadcast, and the broadcast includes the second phone number.
4. The method of claim 1, wherein the third message is a Radio Frequency Communication (RFCOMM) command, wherein the RFCOMM command comprises the third phone number.
5. The method of claim 1, further comprising:
the second equipment starts a play-out function; the play-out function is used for amplifying the sound output by the second device.
6. An emergency call method, comprising:
the first equipment and the second equipment establish Bluetooth connection;
when the first device meets a first preset condition and supports the hands-free call HFP service, the first device sends a first message to the second device, wherein the first message comprises a first telephone number;
when the first device does not support the HFP service and the first device supports the Bluetooth Low Energy (BLE) service, the first device sends a second message to the second device, wherein the second message comprises a second telephone number;
when the first device does not support HFP service and BLE service and supports simple parallel SPP service, the first device sends a third message to the second device, wherein the third message comprises a third telephone number;
the first device meeting a first preset condition comprises:
the method comprises the steps that the first equipment detects that gesture operation of a user meets preset gesture operation, and the preset gesture operation is used for indicating the first equipment to make a call;
or the first device detects that the physiological characteristics of the user meet preset physiological characteristics, wherein the preset physiological characteristics are used for indicating the first device to make a call;
the method further comprises the following steps:
when the first device meets the first preset condition and the first device does not support HFP service, BLE service and SPP service, the first device displays prompt information, and the prompt information is used for prompting a user of emergency.
7. The method of claim 6, wherein the first message is an automatic dialing (ATD) command, and wherein the ATD command comprises the first telephone number.
8. The method of claim 6, wherein the second message is a generic Attribute Profile (GATT) command, the GATT command comprising the second phone number;
or, the second message is a broadcast, and the broadcast includes the second phone number.
9. The method of claim 6, wherein the third message is a Radio Frequency Communication (RFCOMM) command, and wherein the RFCOMM command comprises the third phone number.
10. An intelligence wearing equipment which characterized in that includes: a processor and a memory;
the memory stores computer-executable instructions;
the processor executing the computer-executable instructions stored by the memory causes the processor to perform the method of any of claims 6-9.
11. A bracelet, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executing the computer-executable instructions stored by the memory causes the processor to perform the method of any of claims 6-9.
12. A computer-readable storage medium, in which a computer program or instructions are stored which, when executed, implement the method of any one of claims 6-9.
CN202110408024.0A 2021-04-15 2021-04-15 Emergency calling method and related device Active CN113286281B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110408024.0A CN113286281B (en) 2021-04-15 2021-04-15 Emergency calling method and related device
PCT/CN2022/075769 WO2022218015A1 (en) 2021-04-15 2022-02-10 Emergency calling method and related apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110408024.0A CN113286281B (en) 2021-04-15 2021-04-15 Emergency calling method and related device

Publications (2)

Publication Number Publication Date
CN113286281A CN113286281A (en) 2021-08-20
CN113286281B true CN113286281B (en) 2022-09-09

Family

ID=77277082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110408024.0A Active CN113286281B (en) 2021-04-15 2021-04-15 Emergency calling method and related device

Country Status (2)

Country Link
CN (1) CN113286281B (en)
WO (1) WO2022218015A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113286281B (en) * 2021-04-15 2022-09-09 荣耀终端有限公司 Emergency calling method and related device
CN116347424A (en) * 2021-12-24 2023-06-27 荣耀终端有限公司 Method and electronic device for making a call
WO2024130593A1 (en) * 2022-12-21 2024-06-27 Qualcomm Incorporated Gatt solution for dual bluetooth stack
CN116721672A (en) * 2023-05-31 2023-09-08 拓银(深圳)数据服务有限公司 A user information processing system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203984464U (en) * 2014-07-25 2014-12-03 北京国基科技股份有限公司 Control terminal
CN105096951A (en) * 2015-05-28 2015-11-25 惠州Tcl移动通信有限公司 Voice control realizing method and system based on intelligent wearable equipment
CN106453848A (en) * 2016-09-18 2017-02-22 邦讯物联技术有限公司 Method and system to control the dialing of wearable equipment using gesture
CN209657439U (en) * 2019-03-28 2019-11-19 北京纽曼腾飞科技有限公司 Portable audio-frequence player device with emergency call function
CN112235464A (en) * 2019-06-28 2021-01-15 华为技术有限公司 A method and electronic device for calling for help based on fall detection

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009543217A (en) * 2006-07-05 2009-12-03 アギア システムズ インコーポレーテッド System and method for power management for wireless storage devices
WO2016044540A1 (en) * 2014-09-19 2016-03-24 Rapidsos, Inc. Method and system for emergency call management
CN104301524A (en) * 2014-09-22 2015-01-21 山东卡尔电气股份有限公司 Method for achieving communication between smart phone and dual-mode fixed telephone
TWI585555B (en) * 2015-11-06 2017-06-01 Princo Corp Watch, wear device, emergency method and quick dial law
US11243739B2 (en) * 2019-05-24 2022-02-08 Bose Corporation Computer-implemented tools and methods for gesture subscription
CN112037471A (en) * 2020-07-14 2020-12-04 奇酷互联网络科技(深圳)有限公司 Emergency calling method based on wearable equipment and related device
CN113286281B (en) * 2021-04-15 2022-09-09 荣耀终端有限公司 Emergency calling method and related device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203984464U (en) * 2014-07-25 2014-12-03 北京国基科技股份有限公司 Control terminal
CN105096951A (en) * 2015-05-28 2015-11-25 惠州Tcl移动通信有限公司 Voice control realizing method and system based on intelligent wearable equipment
CN106453848A (en) * 2016-09-18 2017-02-22 邦讯物联技术有限公司 Method and system to control the dialing of wearable equipment using gesture
CN209657439U (en) * 2019-03-28 2019-11-19 北京纽曼腾飞科技有限公司 Portable audio-frequence player device with emergency call function
CN112235464A (en) * 2019-06-28 2021-01-15 华为技术有限公司 A method and electronic device for calling for help based on fall detection

Also Published As

Publication number Publication date
WO2022218015A1 (en) 2022-10-20
CN113286281A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN113286281B (en) Emergency calling method and related device
CN104604259B (en) Method for providing call control from mobile phone to peripheral device
CN103636141B (en) A method for establishing a bluetooth connection, a mobile terminal, and a bluetooth connection system
CN115190197B (en) Bluetooth headset-based communication method and device and storage medium
WO2019090726A1 (en) Method for selecting bluetooth device, terminal, and system
CN113411793A (en) Bluetooth communication method and terminal
CN204069102U (en) Interactive bluetooth earphone and mobile terminal
US20100015955A1 (en) Call management between communication devices
US9172792B2 (en) Method and electronic device for wireless communication
JP2003319062A (en) Handfree portable telephone and handfree switching program
KR20150027422A (en) Method and apparatus for setting wireless communication using device name in portable terminal
JP5160598B2 (en) In-vehicle terminal and pairing method in in-vehicle terminal
US9681290B2 (en) Dummy phone numbers to manage states on mobile phones
WO2012155565A1 (en) Multimode communication method, terminal, and system
CN104796488A (en) Information push method and device, terminal and server
CN108234764A (en) Display methods, device and the terminal of terminal
KR102127864B1 (en) System for providing calling service using ip phone and method thereof
EP2654328B1 (en) Remote Request during On-Going Call
EP4366286A1 (en) Call method and apparatus based on bluetooth earphone, and storage medium
KR20120064471A (en) Communication terminal apparatus, multimedia terminal apparatus, method and system for interlocking terminal apparatus
JP4791470B2 (en) Mobile phone, notification method, and program
CN117915308A (en) A method for removing power and electronic equipment
CN118677982A (en) Incoming call processing method, device, smart wearable device and storage medium
CN117812548A (en) Distributed communication method and electronic equipment
CN119946591A (en) Bluetooth communication method, system and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
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