[go: up one dir, main page]

CN110826044B - Unlocking method and electronic equipment - Google Patents

Unlocking method and electronic equipment Download PDF

Info

Publication number
CN110826044B
CN110826044B CN201911053906.9A CN201911053906A CN110826044B CN 110826044 B CN110826044 B CN 110826044B CN 201911053906 A CN201911053906 A CN 201911053906A CN 110826044 B CN110826044 B CN 110826044B
Authority
CN
China
Prior art keywords
electronic device
field communication
near field
communication module
unlocking
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
CN201911053906.9A
Other languages
Chinese (zh)
Other versions
CN110826044A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911053906.9A priority Critical patent/CN110826044B/en
Publication of CN110826044A publication Critical patent/CN110826044A/en
Priority to PCT/CN2020/125137 priority patent/WO2021083313A1/en
Application granted granted Critical
Publication of CN110826044B publication Critical patent/CN110826044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/34User authentication involving the use of external additional devices, e.g. dongles or smart cards
    • G06F21/35User authentication involving the use of external additional devices, e.g. dongles or smart cards communicating wirelessly

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Lock And Its Accessories (AREA)

Abstract

本发明提供一种解锁方法及电子设备,该方法包括:获取第二电子设备的近场通信模块的第一物理标识;在所述第一物理标识与预先设置的用于解锁所述第一电子设备的近场通信模块的第一物理标识相同的情况下,解锁所述第一电子设备;本发明实施例通过第二电子设备的近场通信模块的第一物理标识解锁第一电子设备,进一步可以通过第一电子设备的近场通信模块的虚拟标识选择解锁后显示特定信息,使解锁后的操作更加方便快捷。

Figure 201911053906

The present invention provides an unlocking method and an electronic device. The method includes: obtaining a first physical identifier of a near field communication module of a second electronic device; In the case where the first physical identifiers of the near field communication modules of the devices are the same, the first electronic device is unlocked; in this embodiment of the present invention, the first electronic device is unlocked by the first physical identifiers of the near field communication modules of the second electronic device, and further It is possible to select and display specific information after unlocking through the virtual identification of the near field communication module of the first electronic device, so that the operation after unlocking is more convenient and quicker.

Figure 201911053906

Description

一种解锁方法及电子设备An unlocking method and electronic device

技术领域technical field

本发明涉及通信技术领域,尤其是指一种解锁方法及电子设备。The present invention relates to the technical field of communications, and in particular, to an unlocking method and an electronic device.

背景技术Background technique

随着通信技术的发展,从功能机到智能机,电子设备的解锁方式更新换代,从最初的只有密码输入解锁到图案解锁,再到现在的指纹解锁、面部识别解锁、虹膜解锁等安全等级更高、更加便捷的解锁方式,层出不穷的解锁方式给人们带来了不错的体验和感觉。但这些方式都是界面式的解锁方式,解锁方式过于单一。进一步的,当发生用户忘记密码或图案、解锁手指受伤等情况时会导致无法解锁电子设备。With the development of communication technology, from functional phones to smart phones, the unlocking methods of electronic devices have been updated, from the original only password input unlocking to pattern unlocking, and now to fingerprint unlocking, facial recognition unlocking, iris unlocking and other security levels. High and more convenient unlocking methods, and endless unlocking methods have brought people a good experience and feeling. But these methods are all interface unlocking methods, and the unlocking methods are too simple. Further, when the user forgets the password or pattern, the unlocking finger is injured, etc., the electronic device cannot be unlocked.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种解锁方法及电子设备,以解决现有的解锁方式存在某些场景无法解锁的问题。Embodiments of the present invention provide an unlocking method and an electronic device to solve the problem that the existing unlocking method cannot be unlocked in some scenarios.

为了解决上述技术问题,本发明是这样实现的:一种解锁方法,应用于第一电子设备,包括:In order to solve the above-mentioned technical problems, the present invention is implemented as follows: an unlocking method, applied to the first electronic device, includes:

获取第二电子设备的近场通信模块的第一物理标识;obtaining the first physical identifier of the near field communication module of the second electronic device;

在所述第一物理标识与预先设置的用于解锁所述第一电子设备的近场通信模块的第一物理标识相同的情况下,解锁所述第一电子设备。In the case that the first physical identifier is the same as the preset first physical identifier for unlocking the near field communication module of the first electronic device, the first electronic device is unlocked.

本发明实施例还提供了一种解锁方法,应用于第二电子设备,包括:The embodiment of the present invention also provides an unlocking method, which is applied to the second electronic device, including:

通过近场通信模块搜索第一电子设备;Search for the first electronic device through the near field communication module;

在搜索到所述第一电子设备的情况下,向所述第一电子设备发送所述第二电子设备的近场通信模块的第一物理标识;In the case of finding the first electronic device, sending the first physical identifier of the near field communication module of the second electronic device to the first electronic device;

其中,所述第一物理标识用于解锁所述第一电子设备。Wherein, the first physical identifier is used to unlock the first electronic device.

本发明实施例还提供了一种第一电子设备,包括:Embodiments of the present invention also provide a first electronic device, including:

标识获取模块,用于获取第二电子设备的近场通信模块的第一物理标识;an identification acquisition module for acquiring the first physical identification of the near field communication module of the second electronic device;

解锁模块,用于在所述第一物理标识与预先设置的用于解锁所述第一电子设备的近场通信模块的第一物理标识相同的情况下,解锁所述第一电子设备。An unlocking module, configured to unlock the first electronic device when the first physical identifier is the same as a preset first physical identifier for unlocking the near field communication module of the first electronic device.

本发明实施例还提供了一种第二电子设备,包括:The embodiment of the present invention also provides a second electronic device, including:

搜索模块,用于通过近场通信模块搜索第一电子设备;a search module for searching the first electronic device through the near field communication module;

第一标识发送模块,用于在搜索到所述第一电子设备的情况下,向所述第一电子设备发送所述第二电子设备的近场通信模块的第一物理标识;a first identifier sending module, configured to send the first physical identifier of the near field communication module of the second electronic device to the first electronic device when the first electronic device is found;

其中,所述第一物理标识用于解锁所述第一电子设备。Wherein, the first physical identifier is used to unlock the first electronic device.

本发明实施例还提供了一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的解锁方法的步骤。An embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor, the computer program being executed by the processor to achieve the above The steps of the unlocking method.

本发明实施例还提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如上所述的解锁方法的步骤。An embodiment of the present invention further provides a computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the unlocking method as described above are implemented.

在本发明实施例中,通过第二电子设备的近场通信模块的第一物理标识解锁第一电子设备,进一步可以通过第一电子设备的近场通信模块的虚拟标识选择解锁后显示特定信息,使解锁后的操作更加方便快捷。In this embodiment of the present invention, the first electronic device is unlocked by the first physical identifier of the near field communication module of the second electronic device, and further specific information can be displayed after unlocking by selecting the virtual identifier of the near field communication module of the first electronic device, Make the operation after unlocking more convenient and fast.

附图说明Description of drawings

图1表示本发明实施例提供的解锁方法的步骤流程图之一;FIG. 1 shows one of the flow charts of steps of an unlocking method provided by an embodiment of the present invention;

图2表示本发明实施例提供的示例一的流程示意图;FIG. 2 shows a schematic flowchart of Example 1 provided by an embodiment of the present invention;

图3表示本发明实施例提供的示例一中电子设备的显示示意图之一;FIG. 3 shows one of the schematic display diagrams of the electronic device in Example 1 provided by an embodiment of the present invention;

图4表示本发明实施例提供的示例一中电子设备的显示示意图之二;FIG. 4 shows the second schematic diagram of the display of the electronic device in Example 1 provided by the embodiment of the present invention;

图5表示本发明实施例提供的示例一中电子设备的显示示意图之三;FIG. 5 shows the third schematic diagram of the display of the electronic device in Example 1 provided by the embodiment of the present invention;

图6表示本发明实施例提供的示例一中电子设备的显示示意图之四;FIG. 6 shows the fourth schematic diagram of the display of the electronic device in Example 1 provided by the embodiment of the present invention;

图7表示本发明实施例提供的示例一中电子设备的显示示意图之五;FIG. 7 shows the fifth schematic diagram of the display of the electronic device in Example 1 provided by the embodiment of the present invention;

图8表示本发明实施例提供的解锁方法的步骤流程图之二;FIG. 8 shows the second flow chart of the steps of the unlocking method provided by the embodiment of the present invention;

图9表示本发明实施例提供的示例二的流程示意图;FIG. 9 shows a schematic flowchart of Example 2 provided by an embodiment of the present invention;

图10表示本发明实施例提供的示例二中电子设备的显示示意图之一;FIG. 10 shows one of the schematic display diagrams of the electronic device in Example 2 provided by the embodiment of the present invention;

图11表示本发明实施例提供的示例二中电子设备的显示示意图之二;FIG. 11 shows the second schematic diagram of the display of the electronic device in the second example provided by the embodiment of the present invention;

图12表示本发明实施例提供的示例二中电子设备的显示示意图之三;FIG. 12 shows the third schematic diagram of the display of the electronic device in the second example provided by the embodiment of the present invention;

图13表示本发明实施例提供的示例二中电子设备的显示示意图之四;FIG. 13 shows the fourth schematic diagram of the display of the electronic device in the second example provided by the embodiment of the present invention;

图14表示本发明实施例提供的示例二中电子设备的显示示意图之五;FIG. 14 shows the fifth schematic diagram of the display of the electronic device in the second example provided by the embodiment of the present invention;

图15表示本发明实施例提供的示例二中电子设备的显示示意图之六;FIG. 15 shows the sixth schematic diagram of the display of the electronic device in the second example provided by the embodiment of the present invention;

图16表示本发明实施例提供的示例二中电子设备的显示示意图之七;FIG. 16 shows the seventh schematic diagram of the display of the electronic device in Example 2 provided by the embodiment of the present invention;

图17表示本发明实施例提供的示例二中电子设备的显示示意图之八;FIG. 17 shows the eighth schematic diagram of the display of the electronic device in Example 2 provided by the embodiment of the present invention;

图18表示本发明实施例提供的第一电子设备的结构示意图之一;FIG. 18 shows one of the schematic structural diagrams of a first electronic device provided by an embodiment of the present invention;

图19表示本发明实施例提供的第二电子设备的结构示意图之二;FIG. 19 shows the second schematic structural diagram of the second electronic device provided by the embodiment of the present invention;

图20表示本发明实施例提供的电子设备的结构示意图之三。FIG. 20 shows a third schematic structural diagram of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as an example, illustration or illustration. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention 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.

如图1所示,本发明实施例提供一种解锁方法,应用于第一电子设备,包括:As shown in FIG. 1, an embodiment of the present invention provides an unlocking method, which is applied to a first electronic device, including:

步骤101,获取第二电子设备的近场通信模块的第一物理标识。Step 101: Obtain a first physical identifier of a near field communication module of a second electronic device.

步骤102,在所述第一物理标识与预先设置的用于解锁所述第一电子设备的近场通信模块的第一物理标识相同的情况下,解锁所述第一电子设备。Step 102: Unlock the first electronic device when the first physical identifier is the same as the preset first physical identifier for unlocking the near field communication module of the first electronic device.

可选的,近场通信模块可以为NFC(Near Field Communication,近场通信)是一个安全等级高的磁场通讯,已经在各个领域的安全系统中占据主导地位。电子设备解锁和近场通信模块结合起来,开发出多样式、立体式的解锁方式,可以让电子设备的解锁更加丰富和有趣,增加人们对电子设备的体验感觉。且当用户忘记密码或图案、解锁手指受伤等情况时可通过第二电子设备对第一电子设备进行解锁。Optionally, the near field communication module may be NFC (Near Field Communication, near field communication), which is a magnetic field communication with a high security level, which has taken the leading position in security systems in various fields. The combination of electronic device unlocking and near field communication module has developed a multi-style and three-dimensional unlocking method, which can make the unlocking of electronic devices more abundant and interesting, and increase people's experience of electronic devices. In addition, when the user forgets the password or pattern, the unlocking finger is injured, etc., the first electronic device can be unlocked through the second electronic device.

需要说明的是,一个电子设备的近场通信模块配置有一个唯一的物理标识,且不同电子设备的近场通信模块的物理标识不同。It should be noted that the near field communication module of one electronic device is configured with a unique physical identifier, and the physical identifiers of the near field communication modules of different electronic devices are different.

本发明实施例中两个带有近场通信模块的设备(即第一电子设备和第二电子设备)能够用于互相解锁;但是各个电子设备需要预先设置能够用于解锁该电子设备的近场通信模块的物理标识;在靠近该第一电子设备的第二电子设备的近场通信模块的物理标识为预先设置用于解锁所述第一电子设备的物理标识的情况下,则解锁第一电子设备。In this embodiment of the present invention, two devices with a near field communication module (ie, the first electronic device and the second electronic device) can be used to unlock each other; however, each electronic device needs to preset a near field that can be used to unlock the electronic device The physical identifier of the communication module; if the physical identifier of the near-field communication module of the second electronic device close to the first electronic device is a physical identifier preset for unlocking the first electronic device, the first electronic device is unlocked. equipment.

作为一个可选实施例,步骤101之前,所述方法还包括:As an optional embodiment, before step 101, the method further includes:

获取用户输入的用于解锁所述第一电子设备的近场通信模块的第一物理标识。A first physical identifier input by a user for unlocking the near field communication module of the first electronic device is acquired.

例如,用户在“设置NFC解锁手机”的设置界面上输入第二物理标识,设置完成后,该第一物理标识为用于解锁所述第一电子设备的近场通信模块的物理标识。该设置方式较为简单,进行在第一电子设备侧进行设置操作即可,简化操作流程。For example, the user inputs the second physical identifier on the setting interface of "setting NFC to unlock mobile phone", and after the setting is completed, the first physical identifier is the physical identifier used to unlock the near field communication module of the first electronic device. The setting method is relatively simple, and the setting operation can be performed on the side of the first electronic device, which simplifies the operation process.

作为另一个可选实施例,步骤101之前,所述方法还包括:As another optional embodiment, before step 101, the method further includes:

通过所述近场通信模块搜索第二电子设备;searching for a second electronic device through the near field communication module;

在搜索到第二电子设备的情况下,通过所述第二电子设备的近场通信模块的第一物理标识和所述第一电子设备的近场通信模块的第二物理标识,进行所述第一电子设备和所述第二电子设备的配对;In the case where the second electronic device is found, the first physical identification of the near field communication module of the second electronic device and the second physical identification of the near field communication module of the first electronic device are used to perform the first pairing of an electronic device and the second electronic device;

其中,所述第一物理标识为用于解锁所述第一电子设备的近场通信模块的物理标识。Wherein, the first physical identifier is a physical identifier used to unlock the near field communication module of the first electronic device.

换言之,预先设置用于解锁第一电子设备的近场通信模块的物理标识的步骤为第一电子设备和第二电子设备通过近场通信模块进行配对的步骤,配对成功的第一电子设备和第二电子设备能够相互实现相互解锁。该设置方式需不同用户或相同用户分别在第一电子设备侧和第二电子设备侧进行操作,设置解锁用的物理标识的过程更为安全。In other words, the step of presetting the physical identifier for unlocking the near field communication module of the first electronic device is the step of pairing the first electronic device and the second electronic device through the near field communication module. The two electronic devices can mutually unlock each other. This setting method requires different users or the same user to operate on the first electronic device side and the second electronic device side respectively, and the process of setting the physical identifier for unlocking is more secure.

可选的,所述通过所述第二电子设备的近场通信模块的第一物理标识和所述第一电子设备的近场通信模块的第二物理标识,进行所述第一电子设备和所述第二电子设备的配对:Optionally, the first physical identification of the near field communication module of the second electronic device and the second physical identification of the near field communication module of the first electronic device, the first electronic device and all For the pairing of the second electronic device:

获取用户在第一电子设备上输入的第二电子设备的近场通信模块的第一物理标识,并在所述第二电子设备接收到用户输入的第一电子设备的近场通信模块的第二物理标识的情况下,完成第一电子设备和第二电子设备的配对。Acquiring the first physical identifier of the near field communication module of the second electronic device input by the user on the first electronic device, and receiving the second electronic device input of the user input of the second physical identifier of the near field communication module of the first electronic device on the second electronic device In the case of the physical identification, the pairing of the first electronic device and the second electronic device is completed.

其中,在第一电子设备侧输入第一物理标识的用户,和在第二电子设备侧输入第二物理标识的用户,可以是同一个用户也可以是不同的用户,在此不做具体限定。The user who inputs the first physical identifier on the first electronic device side and the user who inputs the second physical identifier on the second electronic device side may be the same user or different users, which are not specifically limited here.

作为一个可选实施例,步骤101包括:As an optional embodiment, step 101 includes:

接收处于解锁状态的所述第二电子设备发送的所述第二电子设备的近场通信模块的第一物理标识。A first physical identifier of a near field communication module of the second electronic device sent by the second electronic device in the unlocked state is received.

为了提高解锁安全性,设置在第二电子设备处于解锁状态的情况下,第二电子设备才能够解锁该第一电子设备;若第一电子设备和第二电子设备均处于锁定状态,则第一电子设备不能解锁第二电子设备,第二电子设备也无法解锁第一电子设备。In order to improve unlocking security, the second electronic device can unlock the first electronic device only when the second electronic device is in the unlocked state; if both the first electronic device and the second electronic device are in the locked state, the first electronic device The electronic device cannot unlock the second electronic device, and the second electronic device cannot unlock the first electronic device.

示例一:第一电子设备和第二电子设备靠近,设置对方的近场通信模块的物理标识可以解锁自身设备,然后通过双方的相互确认实现配对;之后两个电子设备靠近时,第一电子设备可以自动解锁。具体步骤如图2所示:Example 1: The first electronic device and the second electronic device are close to each other, setting the physical identifier of the other party's near field communication module can unlock the own device, and then realize the pairing through mutual confirmation; Can be automatically unlocked. The specific steps are shown in Figure 2:

步骤201,第一电子设备和第二电子设备分别点击设置→安全和隐私,安全和隐私界面包括NFC解锁手机按钮,如图3所示。Step 201 , the first electronic device and the second electronic device respectively click Settings→Security and Privacy, and the security and privacy interface includes an NFC unlock button, as shown in FIG. 3 .

步骤202,第一电子设备和第二电子设备点击NFC解锁手机按钮,进入如图4所示的界面,电子设备显示各自的NFC ID(即近场通信模块的物理标识),例如,第一电子设备的近场通信模块的NFC ID为:12345678;第二电子设备的近场通信模块的NFC ID为:2458113;其中第一电子设备点击搜索附近电子设备,此时第一电子设备发出信号侦测附近的第二电子设备时,第一电子设备显示附近有设备,请输入对方NFC ID;第二电子设备也显示附近有设备,请输入对方NFC ID。In step 202, the first electronic device and the second electronic device click the NFC unlock button to enter the interface shown in FIG. 4, and the electronic devices display their respective NFC IDs (that is, the physical identification of the near field communication module), for example, the first electronic device The NFC ID of the near field communication module of the device is: 12345678; the NFC ID of the near field communication module of the second electronic device is: 2458113; the first electronic device clicks to search for nearby electronic devices, and the first electronic device sends a signal to detect When the second electronic device is nearby, the first electronic device shows that there is a device nearby, please input the NFC ID of the other party; the second electronic device also shows that there is a device nearby, please input the NFC ID of the other party.

步骤203,第一电子设备输入第二电子设备的NFC ID,第二电子设备输入第一电子设备的NFC ID,第一电子设备和第二电子设备点击确认匹配,第一电子设备和第二电子设备的近场通信模块进行设备匹配,进度条行走,进度条走完显示匹配成功,如图5所示。Step 203, the first electronic device inputs the NFC ID of the second electronic device, the second electronic device inputs the NFC ID of the first electronic device, the first electronic device and the second electronic device click to confirm the match, the first electronic device and the second electronic device The near field communication module of the device performs device matching, and the progress bar walks. After the progress bar walks, it shows that the matching is successful, as shown in Figure 5.

步骤204,当需要解锁第一电子设备时,第二电子设备处于解锁后的待机界面,当第二电子设备靠近第一电子设备时,第一电子设备检测到有匹配的第二电子设备靠近,识别匹配成功后自动解锁第一电子设备,如图6所示。Step 204, when the first electronic device needs to be unlocked, the second electronic device is in the unlocked standby interface, when the second electronic device is close to the first electronic device, the first electronic device detects that a matching second electronic device is approaching, After successful identification and matching, the first electronic device is automatically unlocked, as shown in FIG. 6 .

步骤205,解锁成功后,第一电子设备显示待机界面,如图7所示。需要说明的是,解锁成功后的第一电子设备也可显示第一电子设备锁定时的显示界面,例如,第一电子设备在相册显示界面时长时间未操作导致锁定,此种情况下第一电子设备通过第二电子设备解锁之后,第一电子设备可继续显示相册显示界面。Step 205 , after the unlocking is successful, the first electronic device displays a standby interface, as shown in FIG. 7 . It should be noted that the first electronic device that has been successfully unlocked can also display the display interface when the first electronic device is locked. After the device is unlocked by the second electronic device, the first electronic device may continue to display the album display interface.

综上,本发明实施例提供了一种电子设备解锁的新的安全方式,在第一电子设备用户被锁定,或者第一电子设备用户不方便操作的情况下,可以通过第二电子设备的近场通信模块实现对第一电子设备的解锁,避免第一电子设备无法解锁的情况,并丰富用户解锁多样性的同时增加了电子设备的安全性。To sum up, the embodiment of the present invention provides a new security method for unlocking an electronic device. When the user of the first electronic device is locked, or the user of the first electronic device is inconvenient to operate, the user can use the proximity of the second electronic device. The field communication module realizes the unlocking of the first electronic device, avoids the situation that the first electronic device cannot be unlocked, and increases the security of the electronic device while enriching the unlocking diversity of users.

作为又一个可选实施例,本发明实施例中,所述第一电子设备的近场通信模块还包括:多个虚拟标识;As another optional embodiment, in this embodiment of the present invention, the near field communication module of the first electronic device further includes: a plurality of virtual identifiers;

所述方法还包括:The method also includes:

设置目标映射关系,所述目标映射关系为所述第一电子设备的近场通信模块的至少一个虚拟标识与至少一个所述第一电子设备的目标信息之间的映射关系;Setting a target mapping relationship, the target mapping relationship is a mapping relationship between at least one virtual identifier of the near field communication module of the first electronic device and at least one target information of the first electronic device;

向与所述第一电子设备完成配对的所述第二电子设备发送目标映射关系。Sending a target mapping relationship to the second electronic device that is paired with the first electronic device.

相应的,步骤101之后,在所述第一物理标识与预先设置的用于解锁所述第一电子设备的近场通信模块的第一物理标识相同的情况下,所述方法还包括:Correspondingly, after step 101, when the first physical identifier is the same as the preset first physical identifier for unlocking the near field communication module of the first electronic device, the method further includes:

接收所述第二电子设备发送的所述第一电子设备的近场通信模块的第一虚拟标识;receiving the first virtual identifier of the near field communication module of the first electronic device sent by the second electronic device;

显示与所述第一虚拟标识对应的目标信息。Target information corresponding to the first virtual identifier is displayed.

需要说明的是,电子设备的一个近场通信模块仅设置有一个物理标识,该物理标识用于标识近场通信模块的身份信息;该物理标识可以是近场通信模块的生产商家配置的,用户不能随意修改、删除或新增;而电子设备的一个近场通信模块可以设置多个虚拟标识,该虚拟标识是由用户设置的,该虚拟标识不能标识近场通信模块的身份,该虚拟标识的设置是用于标识解锁之后显示的目标信息,用户可随意修改、删除或新增,在此不做具体限定。It should be noted that a near field communication module of the electronic device is only provided with a physical identification, and the physical identification is used to identify the identity information of the near field communication module; the physical identification may be configured by the manufacturer of the near field communication module, and the user It cannot be modified, deleted or added at will; and a near field communication module of an electronic device can be set with multiple virtual signs, the virtual signs are set by the user, and the virtual signs cannot identify the identity of the near field communication module. The setting is used to identify the target information displayed after unlocking, and the user can modify, delete or add it at will, which is not specifically limited here.

由于一个近场通信模块仅设置有一个物理标识,为了让该电子设备解锁后可以显示不同的信息,本发明实施例中为第一电子设备的近场通信模块设置多个虚拟标识。基于虚拟标识的设置,该第一电子设备设置其自身解锁后可显示的不同的信息。Since a near field communication module is only provided with one physical identifier, in order to enable the electronic device to display different information after unlocking, multiple virtual identifiers are set for the near field communication module of the first electronic device in this embodiment of the present invention. Based on the setting of the virtual identification, the first electronic device sets different information that can be displayed after it is unlocked.

作为一个可选实施例,步骤101包括:As an optional embodiment, step 101 includes:

接收处于解锁状态的所述第二电子设备发送的所述第二电子设备的近场通信模块的第一物理标识。A first physical identifier of a near field communication module of the second electronic device sent by the second electronic device in the unlocked state is received.

为了提高解锁安全性,设置在第二电子设备处于解锁状态的情况下,第二电子设备才能够解锁该第一电子设备;若第一电子设备和第二电子设备均处于锁定状态,则第一电子设备不能解锁第二电子设备,第二电子设备也无法解锁第一电子设备。In order to improve unlocking security, the second electronic device can unlock the first electronic device only when the second electronic device is in the unlocked state; if both the first electronic device and the second electronic device are in the locked state, the first electronic device The electronic device cannot unlock the second electronic device, and the second electronic device cannot unlock the first electronic device.

综上,本发明实施例提供了一种通过近场通信模块的物理标识进行相互解锁的设备,进一步可以通过近场通信模块的虚拟标识快速显示指定的界面,操作便捷。To sum up, the embodiments of the present invention provide a device for mutual unlocking through the physical identification of the near field communication module, and further can quickly display a designated interface through the virtual identification of the near field communication module, which is convenient to operate.

如图8所示,本发明实施例还提供一种解锁方法,应用于第二电子设备,包括:As shown in FIG. 8 , an embodiment of the present invention further provides an unlocking method, which is applied to a second electronic device, including:

步骤801,通过近场通信模块搜索第一电子设备;Step 801, searching for a first electronic device through a near field communication module;

步骤802,在搜索到所述第一电子设备的情况下,向所述第一电子设备发送所述第二电子设备的近场通信模块的第一物理标识;Step 802, sending the first physical identifier of the near field communication module of the second electronic device to the first electronic device when the first electronic device is found;

其中,所述第一物理标识用于解锁所述第一电子设备。Wherein, the first physical identifier is used to unlock the first electronic device.

可选的,近场通信模块可以为NFC(Near Field Communication,近场通信)是一个安全等级高的磁场通讯,已经在各个领域的安全系统中占据主导地位。电子设备解锁和近场通信模块结合起来,开发出多样式、立体式的解锁方式,可以让电子设备的解锁更加丰富和有趣,增加人们对电子设备的体验感觉。且当用户忘记密码或图案、解锁手指受伤等情况时可通过第二电子设备对第一电子设备进行解锁。Optionally, the near field communication module may be NFC (Near Field Communication, near field communication), which is a magnetic field communication with a high security level, which has taken the leading position in security systems in various fields. The combination of electronic device unlocking and near field communication module has developed a multi-style and three-dimensional unlocking method, which can make the unlocking of electronic devices more abundant and interesting, and increase people's experience of electronic devices. In addition, when the user forgets the password or pattern, the unlocking finger is injured, etc., the first electronic device can be unlocked through the second electronic device.

需要说明的是,一个电子设备的近场通信模块配置有一个唯一的物理标识,且不同电子设备的近场通信模块的物理标识不同。It should be noted that the near field communication module of one electronic device is configured with a unique physical identifier, and the physical identifiers of the near field communication modules of different electronic devices are different.

本发明实施例中两个带有近场通信模块的设备(即第一电子设备和第二电子设备)能够用于互相解锁;但是各个电子设备需要预先设置能够用于解锁该电子设备的近场通信模块的物理标识;在靠近该第一电子设备的第二电子设备的近场通信模块的物理标识为预先设置用于解锁所述第一电子设备的物理标识的情况下,则解锁第一电子设备。In this embodiment of the present invention, two devices with a near field communication module (ie, the first electronic device and the second electronic device) can be used to unlock each other; however, each electronic device needs to preset a near field that can be used to unlock the electronic device The physical identifier of the communication module; if the physical identifier of the near-field communication module of the second electronic device close to the first electronic device is a physical identifier preset for unlocking the first electronic device, the first electronic device is unlocked. equipment.

可选的,本发明的上述实施例中,步骤802之前,所述方法还包括:Optionally, in the above embodiment of the present invention, before step 802, the method further includes:

获取用户在第二电子设备上输入的第一电子设备的近场通信模块的第二物理标识,并在所述第一电子设备接收到用户输入的第二电子设备的近场通信模块的第一物理标识的情况下,完成第二电子设备和第一电子设备的配对;Acquiring the second physical identifier of the near field communication module of the first electronic device input by the user on the second electronic device, and receiving the first electronic device input of the first electronic device of the near field communication module of the second electronic device at the first electronic device In the case of physical identification, the pairing of the second electronic device and the first electronic device is completed;

其中,完成配对的所述第二电子设备的近场通信模块的第一物理标识用于解锁所述第一电子设备。Wherein, the first physical identifier of the near field communication module of the second electronic device that has completed the pairing is used to unlock the first electronic device.

换言之,预先设置用于解锁第一电子设备的近场通信模块的物理标识的步骤为第一电子设备和第二电子设备通过近场通信模块进行配对的步骤,配对成功的第一电子设备和第二电子设备能够相互实现相互解锁。该设置方式需不同用户或相同用户分别在第一电子设备侧和第二电子设备侧进行操作,设置解锁用的物理标识的过程更为安全。In other words, the step of presetting the physical identifier for unlocking the near field communication module of the first electronic device is the step of pairing the first electronic device and the second electronic device through the near field communication module. The two electronic devices can mutually unlock each other. This setting method requires different users or the same user to operate on the first electronic device side and the second electronic device side respectively, and the process of setting the physical identifier for unlocking is more secure.

作为又一个可选实施例,第一电子设备设置其自身解锁后可显示的不同的信息;第二电子设备也可以为第一电子设备设置解锁后可显示的不同的信息。由于一个近场通信模块仅设置有一个物理标识,为了让该电子设备解锁后可以显示不同的信息,本发明实施例中为第一电子设备的近场通信模块设置多个虚拟标识。步骤802之后,所述方法还包括:As yet another optional embodiment, the first electronic device sets different information that can be displayed after unlocking itself; the second electronic device can also set different information that can be displayed after unlocking for the first electronic device. Since a near field communication module is only provided with one physical identifier, in order to enable the electronic device to display different information after unlocking, multiple virtual identifiers are set for the near field communication module of the first electronic device in this embodiment of the present invention. After step 802, the method further includes:

根据目标映射关系,显示至少一个指示标识;例如,指示标识可以是应用程序的图标;Display at least one indicator according to the target mapping relationship; for example, the indicator may be an icon of an application;

接收用户对所述至少一个指示标识中的目标指示标识的第一输入,向所述第一电子设备发送目标指示标识对应的第一虚拟标识;例如,第一输入可以为点击输入、长按输入、双击输入等;可选的,第一输入也可称为第一操作,在此不做具体限定。Receive the user's first input of the target indicator in the at least one indicator, and send the first virtual identifier corresponding to the target indicator to the first electronic device; for example, the first input may be a click input, a long press input , double-click input, etc.; optionally, the first input may also be called the first operation, which is not specifically limited here.

需要说明的是,电子设备的一个近场通信模块仅设置有一个物理标识,该物理标识用于标识近场通信模块的身份信息;该物理标识可以是近场通信模块的生产商家配置的,用户不能随意修改、删除或新增;而电子设备的一个近场通信模块可以设置多个虚拟标识,该虚拟标识是由用户设置的,该虚拟标识不能标识近场通信模块的身份,该虚拟标识的设置是用于标识解锁之后显示的目标信息,用户可随意修改、删除或新增,在此不做具体限定。It should be noted that a near field communication module of the electronic device is only provided with a physical identification, and the physical identification is used to identify the identity information of the near field communication module; the physical identification may be configured by the manufacturer of the near field communication module, and the user It cannot be modified, deleted or added at will; and a near field communication module of an electronic device can be set with multiple virtual signs, the virtual signs are set by the user, and the virtual signs cannot identify the identity of the near field communication module. The setting is used to identify the target information displayed after unlocking, and the user can modify, delete or add it at will, which is not specifically limited here.

其中,所述第一虚拟标识用于指示所述第一电子设备在解锁之后显示与所述第一虚拟标识对应的目标信息;所述目标映射关系为所述第一电子设备的近场通信模块的至少一个虚拟标识与至少一个所述第一电子设备的目标信息之间的映射关系;所述目标映射关系为在第一电子设备或在第二电子设备上设置的。The first virtual identifier is used to instruct the first electronic device to display target information corresponding to the first virtual identifier after unlocking; the target mapping relationship is a near field communication module of the first electronic device The mapping relationship between the at least one virtual identifier of , and at least one target information of the first electronic device; the target mapping relationship is set on the first electronic device or the second electronic device.

综上,本发明实施例提供了一种通过近场通信模块的物理标识进行相互解锁的设备,进一步可以通过近场通信模块的虚拟标识快速显示指定的界面,操作便捷。To sum up, the embodiments of the present invention provide a device for mutual unlocking through the physical identification of the near field communication module, and further can quickly display a designated interface through the virtual identification of the near field communication module, which is convenient to operate.

示例二:第一电子设备和第二电子设备靠近,设置对方的近场通信模块的物理标识可以解锁自身设备以及根据不同的虚拟标识指定解锁后的不同显示信息,然后通过双方的相互确认实现配对;之后两个电子设备靠近时,第一电子设备可以自动解锁,并显示第二电子设备选择的目标信息,具体步骤如图9所示:Example 2: The first electronic device and the second electronic device are close to each other, and setting the physical ID of each other's NFC module can unlock its own device and specify different display information after unlocking according to different virtual IDs, and then realize pairing through mutual confirmation by both parties ; When the two electronic devices are close to each other, the first electronic device can be automatically unlocked, and the target information selected by the second electronic device can be displayed, and the specific steps are shown in Figure 9:

步骤901,第一电子设备和第二电子设备分别进入设置→指纹、面部与密码界面→进入设置输入指纹、面部识别NFC ID(即近场通信模块的物理标识)界面,如图10所示。Step 901, the first electronic device and the second electronic device respectively enter the interface of setting→fingerprint, face and password→enter the interface of setting input fingerprint, face recognition NFC ID (ie the physical identification of the near field communication module), as shown in FIG. 10 .

步骤902,设置输入指纹、面部识别NFC ID界面上面显示电子设备的近场通信模块的物理标识(即图11中所示的本机NFC ID),虚拟标识为图11中所示的NFC ID1为:12254861、NFC ID2为:12185347、NFC ID3为:02442381以及NFC ID4为:35894427;点击第一电子设备上的“设置弹出界面”按钮,可以设置相应的虚拟NFC ID对应的弹出窗口;例如,点击NFC ID 1对应的“设置弹出界面”按键,第一电子设备显示图11的右侧所示的界面,点击“通讯录”按键,则设置NFC ID 1弹出界面为通讯录;进一步,可按照上述步骤继续设置NFCID 2弹出界面为信息,设置NFC ID 3弹出界面为日历等,设置完成后,点击确认,第一电子设备保存相应的映射关系,如图11所示。Step 902, set the physical identification of the near field communication module of the electronic device (that is, the local NFC ID shown in FIG. 11 ) on the NFC ID interface for inputting fingerprints and facial recognition, and the virtual identification is the NFC ID shown in FIG. 11 . : 12254861, NFC ID2 is: 12185347, NFC ID3 is: 02442381, and NFC ID4 is: 35894427; Click the "Set Pop-up Interface" button on the first electronic device to set the pop-up window corresponding to the corresponding virtual NFC ID; for example, click Press the "Set Pop-up Interface" button corresponding to NFC ID 1, the first electronic device displays the interface shown on the right side of Figure 11, click the "Address Book" button, then set the NFC ID 1 pop-up interface as the address book; further, you can follow the above Steps Continue to set the NFCID 2 pop-up interface as information, and set the NFC ID 3 pop-up interface as calendar, etc. After the setting is completed, click OK, and the first electronic device saves the corresponding mapping relationship, as shown in Figure 11.

步骤903,第一电子设备点击搜索附近设备,此时第一电子C设备发出信号搜索附近的设备,搜索到第二电子设备在附近,第一电子设备显示附近有设备,第一电子设备输入第二电子设备的NFC ID,第二电子设备输入第一电子设备的NFC ID,第一电子设备和第二电子设备点击确认匹配;如图12所示。Step 903, the first electronic device clicks to search for nearby devices, at this time the first electronic C device sends a signal to search for nearby devices, and finds that the second electronic device is nearby, the first electronic device displays that there are devices nearby, and the first electronic device inputs the The NFC ID of the second electronic device, the second electronic device inputs the NFC ID of the first electronic device, and the first electronic device and the second electronic device click to confirm the match; as shown in FIG. 12 .

步骤904,第一电子设备和第二电子设备的近场通信模块进行设备匹配,进度条行走,进度条走完显示匹配成功,同时第一电子设备把设置目标映射关系同步到第二电子设备,并提示成功,如图13所示。Step 904, the near field communication modules of the first electronic device and the second electronic device perform device matching, the progress bar walks, and the progress bar is completed to indicate that the matching is successful, and the first electronic device synchronizes the setting target mapping relationship to the second electronic device, And prompt success, as shown in Figure 13.

步骤905,当需要解锁第一电子设备时,如图14所示,第二电子设备处于解锁后的待机界面,当第二电子设备靠近第一电子设备时,第一电子设备检测到有匹配的第二电子设备靠近,识别匹配成功后第二电子设备显示第一电子设备解锁后可显示的目标信息,如图15所示。Step 905, when the first electronic device needs to be unlocked, as shown in FIG. 14, the second electronic device is in the unlocked standby interface, when the second electronic device is close to the first electronic device, the first electronic device detects that there is a matching The second electronic device approaches, and after successful identification and matching, the second electronic device displays target information that can be displayed after the first electronic device is unlocked, as shown in FIG. 15 .

步骤906,第二电子设备点击通讯录按钮,如图16所示,第一电子设备解锁成功后直接显示通讯录界面,如图17所示,这样可以有选择性的让第一电子设备解锁后弹出不同的界面。Step 906, the second electronic device clicks the address book button, as shown in FIG. 16, after the first electronic device is successfully unlocked, the address book interface is displayed directly, as shown in FIG. 17, so that the first electronic device can be selectively unlocked. A different interface pops up.

综上,本发明实施例提供了一种电子设备解锁的新的安全方式,在第一电子设备用户被锁定,或者第一电子设备用户不方便操作的情况下,可以通过第二电子设备的近场通信模块实现对第一电子设备的解锁,避免第一电子设备无法解锁的情况,进一步可以通过近场通信模块的虚拟标识快速显示指定的界面,操作便捷。To sum up, the embodiment of the present invention provides a new security method for unlocking an electronic device. When the user of the first electronic device is locked, or the user of the first electronic device is inconvenient to operate, the user can use the proximity of the second electronic device. The field communication module realizes the unlocking of the first electronic device, so as to avoid the situation that the first electronic device cannot be unlocked, and further, a designated interface can be quickly displayed through the virtual identification of the near field communication module, and the operation is convenient.

如图18所示,本发明实施例还提供一种第一电子设备300,其特征在于,包括:As shown in FIG. 18, an embodiment of the present invention further provides a first electronic device 300, which is characterized in that it includes:

标识获取模块301,用于获取第二电子设备的近场通信模块的第一物理标识;an identification acquisition module 301, configured to acquire a first physical identification of a near field communication module of a second electronic device;

解锁模块302,用于在所述第一物理标识与预先设置的用于解锁所述第一电子设备的近场通信模块的第一物理标识相同的情况下,解锁所述第一电子设备。The unlocking module 302 is configured to unlock the first electronic device when the first physical identifier is the same as the preset first physical identifier for unlocking the near field communication module of the first electronic device.

可选的,本发明的上述实施例中,所述第一电子设备还包括:Optionally, in the above embodiment of the present invention, the first electronic device further includes:

设置模块,用于获取用户输入的用于解锁所述第一电子设备的近场通信模块的第一物理标识。The setting module is configured to obtain the first physical identifier of the near field communication module input by the user for unlocking the first electronic device.

可选的,本发明的上述实施例中,所述第一电子设备还包括:Optionally, in the above embodiment of the present invention, the first electronic device further includes:

设备搜索模块,用于通过所述近场通信模块搜索第二电子设备;a device search module, configured to search for a second electronic device through the near field communication module;

配对模块,用于在搜索到第二电子设备的情况下,通过所述第二电子设备的近场通信模块的第一物理标识和所述第一电子设备的近场通信模块的第二物理标识,进行所述第一电子设备和所述第二电子设备的配对;A pairing module, configured to pass the first physical identifier of the near field communication module of the second electronic device and the second physical identifier of the near field communication module of the first electronic device when the second electronic device is found , pairing the first electronic device and the second electronic device;

其中,所述第一物理标识为用于解锁所述第一电子设备的近场通信模块的物理标识。Wherein, the first physical identifier is a physical identifier used to unlock the near field communication module of the first electronic device.

可选的,本发明的上述实施例中,所述配对模块包括:Optionally, in the above embodiment of the present invention, the pairing module includes:

配对子模块,用于获取用户在第一电子设备上输入的第二电子设备的近场通信模块的第一物理标识,并在所述第二电子设备接收到用户输入的第一电子设备的近场通信模块的第二物理标识的情况下,完成第一电子设备和第二电子设备的配对对。The pairing submodule is configured to acquire the first physical identifier of the near field communication module of the second electronic device input by the user on the first electronic device, and receive the near field communication module of the first electronic device input by the user on the second electronic device. In the case of the second physical identification of the field communication module, the pairing of the first electronic device and the second electronic device is completed.

可选的,本发明的上述实施例中,所述解锁模块包括:Optionally, in the above embodiment of the present invention, the unlocking module includes:

标识接收模块,用于接收所述第二电子设备发送的所述第一电子设备的近场通信模块的第一虚拟标识;an identification receiving module, configured to receive the first virtual identification of the near field communication module of the first electronic device sent by the second electronic device;

显示模块,用于显示与所述第一虚拟标识对应的目标信息。A display module, configured to display target information corresponding to the first virtual identifier.

可选的,本发明的上述实施例中,所述标识获取模块包括:Optionally, in the above-mentioned embodiment of the present invention, the identity acquisition module includes:

标识接收子模块,用于接收处于解锁状态的所述第二电子设备发送的所述第二电子设备的近场通信模块的第一物理标识。The identification receiving sub-module is configured to receive the first physical identification of the near field communication module of the second electronic device sent by the second electronic device in the unlocked state.

本发明实施例提供的第一电子设备能够实现图1至图17的方法实施例中第一电子设备实现的各个过程,为避免重复,这里不再赘述。The first electronic device provided in the embodiment of the present invention can implement each process implemented by the first electronic device in the method embodiments of FIG. 1 to FIG. 17 , which is not repeated here to avoid repetition.

综上,本发明实施例提供了一种电子设备解锁的新的安全方式,在第一电子设备用户被锁定,或者第一电子设备用户不方便操作的情况下,可以通过第二电子设备的近场通信模块实现对第一电子设备的解锁,避免第一电子设备无法解锁的情况,进一步可以通过近场通信模块的虚拟标识快速显示指定的界面,操作便捷。To sum up, the embodiment of the present invention provides a new security method for unlocking an electronic device. When the user of the first electronic device is locked, or the user of the first electronic device is inconvenient to operate, the user can use the proximity of the second electronic device. The field communication module realizes the unlocking of the first electronic device, so as to avoid the situation that the first electronic device cannot be unlocked, and further, a designated interface can be quickly displayed through the virtual identification of the near field communication module, and the operation is convenient.

需要说明的是,本发明实施例提供的第一电子设备是能够执行上述解锁方法的第一电子设备,则上述解锁方法的所有实施例均适用于该第一电子设备,且均能达到相同或相似的有益效果。It should be noted that, the first electronic device provided by the embodiment of the present invention is the first electronic device capable of executing the above-mentioned unlocking method, and all the embodiments of the above-mentioned unlocking method are applicable to the first electronic device, and can achieve the same or similar beneficial effects.

优选的,本发明实施例还提供一种电子设备,该电子设备为第一电子设备,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述应用于第一电子设备的解锁方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides an electronic device, which is a first electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, the computer program being When executed by the processor, each process of the above-mentioned embodiment of the unlocking method applied to the first electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述应用于第一电子设备的解锁方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(RandomAccess Memory,简称RAM)、磁碟或者光盘等。An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process of the above-mentioned embodiments of the unlocking method applied to the first electronic device is implemented, And can achieve the same technical effect, in order to avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

如图19所示,本发明实施例还提供一种第二电子设备400,包括:As shown in FIG. 19, an embodiment of the present invention further provides a second electronic device 400, including:

搜索模块401,用于通过近场通信模块搜索第一电子设备;a search module 401, configured to search for a first electronic device through a near field communication module;

第一标识发送模块402,用于在搜索到所述第一电子设备的情况下,向所述第一电子设备发送所述第二电子设备的近场通信模块的第一物理标识;A first identifier sending module 402, configured to send the first physical identifier of the near field communication module of the second electronic device to the first electronic device when the first electronic device is searched;

其中,所述第一物理标识用于解锁所述第一电子设备。Wherein, the first physical identifier is used to unlock the first electronic device.

可选的,本发明的上述实施例中,所述第二电子设备还包括:Optionally, in the above embodiment of the present invention, the second electronic device further includes:

设备配对模块,用于获取用户在第二电子设备上输入的第一电子设备的近场通信模块的第二物理标识,并在所述第一电子设备接收到用户输入的第二电子设备的近场通信模块的第一物理标识的情况下,完成第二电子设备和第一电子设备的配对;The device pairing module is configured to acquire the second physical identifier of the near field communication module of the first electronic device input by the user on the second electronic device, and receive the near field communication module of the second electronic device input by the user at the first electronic device. In the case of the first physical identification of the field communication module, the pairing of the second electronic device and the first electronic device is completed;

其中,完成配对的所述第二电子设备的近场通信模块的第一物理标识用于解锁所述第一电子设备。Wherein, the first physical identifier of the near field communication module of the second electronic device that has completed the pairing is used to unlock the first electronic device.

可选的,本发明的上述实施例中,所述第二电子设备还包括:Optionally, in the above embodiment of the present invention, the second electronic device further includes:

显示模块,用于根据目标映射关系,显示至少一个指示标识;a display module, used for displaying at least one indicator according to the target mapping relationship;

第二标识发送模块,用于接收用户对所述至少一个指示标识中的目标指示标识的第一输入,向所述第一电子设备发送目标指示标识对应的第一虚拟标识;a second identifier sending module, configured to receive a first input from a user to a target indicator in the at least one indicator, and send a first virtual identifier corresponding to the target indicator to the first electronic device;

其中,所述第一虚拟标识用于指示所述第一电子设备在解锁之后显示与所述第一虚拟标识对应的目标信息;所述目标映射关系为所述第一电子设备的近场通信模块的至少一个虚拟标识与至少一个所述第一电子设备的目标信息之间的映射关系;所述目标映射关系为在第一电子设备或在第二电子设备上设置的。The first virtual identifier is used to instruct the first electronic device to display target information corresponding to the first virtual identifier after unlocking; the target mapping relationship is a near field communication module of the first electronic device The mapping relationship between the at least one virtual identifier of , and at least one target information of the first electronic device; the target mapping relationship is set on the first electronic device or the second electronic device.

本发明实施例提供的第二电子设备能够实现图1至图17的方法实施例第二电子设备实现的各个过程,为避免重复,这里不再赘述。The second electronic device provided in this embodiment of the present invention can implement the various processes implemented by the second electronic device in the method embodiments of FIGS. 1 to 17 , which are not repeated here to avoid repetition.

综上,本发明实施例提供了一种电子设备解锁的新的安全方式,在第一电子设备用户被锁定,或者第一电子设备用户不方便操作的情况下,可以通过第二电子设备的近场通信模块实现对第一电子设备的解锁,避免第一电子设备无法解锁的情况,进一步可以通过近场通信模块的虚拟标识快速显示指定的界面,操作便捷。To sum up, the embodiment of the present invention provides a new security method for unlocking an electronic device. When the user of the first electronic device is locked, or the user of the first electronic device is inconvenient to operate, the user can use the proximity of the second electronic device. The field communication module realizes the unlocking of the first electronic device, so as to avoid the situation that the first electronic device cannot be unlocked, and further, a designated interface can be quickly displayed through the virtual identification of the near field communication module, and the operation is convenient.

需要说明的是,本发明实施例提供的第二电子设备是能够执行上述解锁方法的电子设备,则上述解锁方法的所有实施例均适用于该第二电子设备,且均能达到相同或相似的有益效果。It should be noted that, the second electronic device provided in the embodiment of the present invention is an electronic device capable of executing the above unlocking method, and all embodiments of the above unlocking method are applicable to the second electronic device, and can achieve the same or similar beneficial effect.

优选的,本发明实施例还提供一种电子设备,该电子设备为第二电子设备,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述应用于第二电子设备的解锁方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides an electronic device, the electronic device is a second electronic device, comprising a processor, a memory, a computer program stored in the memory and running on the processor, the computer program being When executed by the processor, each process of the above-mentioned embodiment of the unlocking method applied to the second electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述应用于第二电子设备的解锁方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(RandomAccess Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process of the foregoing embodiments of the unlocking method applied to the second electronic device is implemented, And can achieve the same technical effect, in order to avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

图20为实现本发明各个实施例的一种电子设备的硬件结构示意图,该电子设备500包括但不限于:NFC单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。本领域技术人员可以理解,图20中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。20 is a schematic diagram of the hardware structure of an electronic device implementing various embodiments of the present invention. The electronic device 500 includes but is not limited to: an NFC unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, and a display unit 506 , a user input unit 507 , an interface unit 508 , a memory 509 , a processor 510 , and a power supply 511 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 20 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

其中,NFC单元501,用于获取第二电子设备的近场通信模块的第一物理标识;处理器510,用于在所述第一物理标识与预先设置的用于解锁所述第一电子设备的近场通信模块的第一物理标识相同的情况下,解锁所述第一电子设备;Wherein, the NFC unit 501 is used to obtain the first physical identifier of the near field communication module of the second electronic device; the processor 510 is used to match the first physical identifier with a preset value for unlocking the first electronic device. Unlock the first electronic device when the first physical identifiers of the near field communication modules are the same;

或者,or,

NFC单元501用于通过近场通信模块搜索第一电子设备;处理器510,用于在搜索到所述第一电子设备的情况下,向所述第一电子设备发送所述第二电子设备的近场通信模块的第一物理标识;其中,所述第一物理标识用于解锁所述第一电子设备。The NFC unit 501 is configured to search for the first electronic device through the near field communication module; the processor 510 is configured to send the information of the second electronic device to the first electronic device when the first electronic device is found. The first physical identification of the near field communication module; wherein, the first physical identification is used to unlock the first electronic device.

综上,本发明实施例提供了一种电子设备解锁的新的安全方式,在第一电子设备用户被锁定,或者第一电子设备用户不方便操作的情况下,可以通过第二电子设备的近场通信模块实现对第一电子设备的解锁,避免第一电子设备无法解锁的情况,进一步可以通过近场通信模块的虚拟标识快速显示指定的界面,操作便捷。To sum up, the embodiment of the present invention provides a new security method for unlocking an electronic device. When the user of the first electronic device is locked, or the user of the first electronic device is inconvenient to operate, the user can use the proximity of the second electronic device. The field communication module realizes the unlocking of the first electronic device, so as to avoid the situation that the first electronic device cannot be unlocked, and further, a designated interface can be quickly displayed through the virtual identification of the near field communication module, and the operation is convenient.

需要说明的是,本发明实施例提供的电子设备是能够执行上述解锁方法的电子设备,则上述解锁方法的所有实施例均适用于该电子设备,且均能达到相同或相似的有益效果。It should be noted that, the electronic device provided by the embodiment of the present invention is an electronic device capable of executing the above unlocking method, and all embodiments of the above unlocking method are applicable to the electronic device, and can achieve the same or similar beneficial effects.

应理解的是,本发明实施例中,NFC单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,NFC单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,NFC单元501还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the NFC unit 501 can be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 510; The uplink data is sent to the base station. Typically, the NFC unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the NFC unit 501 can also communicate with the network and other devices through a wireless communication system.

电子设备通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides the user with wireless broadband Internet access through the network module 502, such as helping the user to send and receive emails, browse web pages, access streaming media, and the like.

音频输出单元503可以将NFC单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与电子设备500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。The audio output unit 503 may convert audio data received by the NFC unit 501 or the network module 502 or stored in the memory 509 into audio signals and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic device 500 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.

输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由NFC单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由NFC单元501发送到移动通信基站的格式输出。The input unit 504 is used to receive audio or video signals. The input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processor 5041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode data is processed. The processed image frames may be displayed on the display unit 506 . The image frames processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the NFC unit 501 or the network module 502 . The microphone 5042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the NFC unit 501 and output in the case of a phone call mode.

电子设备500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在电子设备500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 5061 and the display panel 5061 when the electronic device 500 is moved to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 505 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.

显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。The display unit 506 is used to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.

用户输入单元507可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 507 may be used to receive input numerical or character information, and generate key signal input related to user setting and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072 . The touch panel 5071, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 5071). operate). The touch panel 5071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 510, the command sent by the processor 510 is received and executed. In addition, the touch panel 5071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 5071 , the user input unit 507 may also include other input devices 5072 . Specifically, other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图20中,触控面板5071与显示面板5061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 5071 can be covered on the display panel 5061. When the touch panel 5071 detects a touch operation on or near it, it transmits it to the processor 510 to determine the type of the touch event, and then the processor 510 determines the type of the touch event according to the touch The type of event provides a corresponding visual output on display panel 5061. Although in FIG. 20, the touch panel 5071 and the display panel 5061 are used as two independent components to realize the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.

接口单元508为外部装置与电子设备500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备500内的一个或多个元件或者可以用于在电子设备500和外部装置之间传输数据。The interface unit 508 is an interface for connecting an external device to the electronic device 500 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 508 may be used to receive input (eg, data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 500 or may be used between the electronic device 500 and external Transfer data between devices.

存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of electronic equipment (such as audio data, phone book, etc.), etc. Additionally, memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

处理器510是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器510可包括一个或多个处理单元;优选的,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The processor 510 is the control center of the electronic device, using various interfaces and lines to connect various parts of the entire electronic device, by running or executing the software programs and/or modules stored in the memory 509, and calling the data stored in the memory 509. , perform various functions of electronic equipment and process data, so as to monitor electronic equipment as a whole. The processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 510.

电子设备500还可以包括给各个部件供电的电源511(比如电池),优选的,电源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 500 may also include a power supply 511 (such as a battery) for supplying power to various components. Preferably, the power supply 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system and other functions.

另外,电子设备500包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 500 includes some functional modules not shown, which will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (9)

1. An unlocking method is applied to a first electronic device and comprises the following steps:
acquiring a first physical identification of a near field communication module of second electronic equipment;
under the condition that the first physical identification is the same as a preset first physical identification used for unlocking a near field communication module of the first electronic equipment, unlocking the first electronic equipment;
before the obtaining of the first physical identity of the near field communication module of the second electronic device, the method further comprises:
searching for a second electronic device through the near field communication module;
under the condition that a second electronic device is searched, pairing the first electronic device and the second electronic device through a first physical identification of a near field communication module of the second electronic device and a second physical identification of the near field communication module of the first electronic device;
wherein the first physical identifier is a physical identifier for unlocking a near field communication module of the first electronic device;
the near field communication module of the first electronic device further comprises: a plurality of first virtual identifications; the method further comprises the following steps:
setting a target mapping relation; sending a target mapping relation to the second electronic equipment matched with the first electronic equipment;
the first virtual identification is used for indicating the first electronic equipment to display target information corresponding to the first virtual identification after unlocking; the target mapping relation is a mapping relation between at least one virtual identifier of a near field communication module of the first electronic device and at least one target information of the first electronic device;
after the first physical identifier of the near field communication module of the second electronic device is obtained, in a case that the first physical identifier is the same as a preset first physical identifier for unlocking the near field communication module of the first electronic device, the method further includes:
receiving a first virtual identifier of a near field communication module of the first electronic device, which is sent by the second electronic device;
and displaying target information corresponding to the first virtual identification.
2. The method of claim 1, wherein prior to obtaining the first physical identity of the near field communication module of the second electronic device, the method further comprises:
a first physical identification input by a user for unlocking a near field communication module of the first electronic device is obtained.
3. The method of claim 2, wherein pairing the first electronic device and the second electronic device through the first physical identification of the near field communication module of the second electronic device and the second physical identification of the near field communication module of the first electronic device comprises:
the method comprises the steps of obtaining a first physical identification, input by a user, of a near field communication module of second electronic equipment on first electronic equipment, and completing pairing of the first electronic equipment and the second electronic equipment under the condition that the second electronic equipment receives a second physical identification, input by the user, of the near field communication module of the first electronic equipment.
4. The method of claim 1, wherein obtaining the first physical identity of the near field communication module of the second electronic device comprises:
receiving a first physical identification of a near field communication module of the second electronic device sent by the second electronic device in an unlocked state.
5. An unlocking method applied to a second electronic device is characterized by comprising the following steps:
searching for a first electronic device through a near field communication module;
in the case that the first electronic device is searched, sending a first physical identification of a near field communication module of the second electronic device to the first electronic device;
wherein the first physical identifier is used for unlocking the first electronic device;
in case the first electronic device is searched, before sending the first physical identity of the near field communication module of the second electronic device to the first electronic device, the method further comprises:
acquiring a second physical identification of the near field communication module of the first electronic equipment, which is input by a user on the second electronic equipment, and completing pairing of the second electronic equipment and the first electronic equipment under the condition that the first electronic equipment receives the first physical identification of the near field communication module of the second electronic equipment, which is input by the user;
the first physical identification of the near field communication module of the second electronic equipment which is paired is used for unlocking the first electronic equipment;
after the transmitting the first physical identity of the near field communication module of the second electronic device to the first electronic device in the case that the first electronic device is searched, the method further includes:
displaying at least one indication mark according to the target mapping relation;
receiving first input of a user to a target indication identifier in the at least one indication identifier, and sending a first virtual identifier corresponding to the target indication identifier to the first electronic device;
the first virtual identification is used for indicating the first electronic equipment to display target information corresponding to the first virtual identification after unlocking; the target mapping relationship is a mapping relationship between at least one virtual identifier of a near field communication module of the first electronic device and at least one target information of the first electronic device.
6. A first electronic device, comprising:
the pairing module searches for second electronic equipment through the near field communication module;
under the condition that a second electronic device is searched, pairing the first electronic device and the second electronic device through a first physical identification of a near field communication module of the second electronic device and a second physical identification of the near field communication module of the first electronic device;
wherein the first physical identifier is a physical identifier for unlocking a near field communication module of the first electronic device;
the identification acquisition module is used for acquiring a first physical identification of the near field communication module of the second electronic equipment;
the unlocking module is used for unlocking the first electronic equipment under the condition that the first physical identification is the same as a preset first physical identification used for unlocking a near field communication module of the first electronic equipment;
the unlocking module includes:
the setting module is used for setting a target mapping relation; sending a target mapping relation to the second electronic equipment matched with the first electronic equipment;
the identification receiving module is used for receiving a first virtual identification of the near field communication module of the first electronic equipment, which is sent by the second electronic equipment;
the display module is used for displaying target information corresponding to the first virtual identification;
the first virtual identification is used for indicating the first electronic equipment to display target information corresponding to the first virtual identification after unlocking; the target mapping relationship is a mapping relationship between at least one virtual identifier of a near field communication module of the first electronic device and target information of at least one first electronic device.
7. A second electronic device, comprising:
the pairing module is used for acquiring a second physical identifier of the near field communication module of the first electronic equipment, which is input by a user on the second electronic equipment, and completing pairing of the second electronic equipment and the first electronic equipment under the condition that the first electronic equipment receives a first physical identifier of the near field communication module of the second electronic equipment, which is input by the user;
the first physical identification of the near field communication module of the second electronic equipment which is paired is used for unlocking the first electronic equipment;
a search module for searching for a first electronic device through the near field communication module;
the first identification sending module is used for sending a first physical identification of the near field communication module of the second electronic equipment to the first electronic equipment under the condition that the first electronic equipment is searched;
wherein the first physical identifier is used for unlocking the first electronic device;
the display module is used for displaying at least one indication mark according to the target mapping relation;
the second identifier sending module is used for receiving a first input of a user to a target identifier in the at least one identifier, and sending a first virtual identifier corresponding to the target identifier to the first electronic device;
the first virtual identification is used for indicating the first electronic equipment to display target information corresponding to the first virtual identification after unlocking; the target mapping relationship is a mapping relationship between at least one virtual identifier of a near field communication module of the first electronic device and at least one target information of the first electronic device.
8. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the unlocking method according to any one of claims 1 to 4; alternatively, the computer program realizes the steps of the unlocking method as claimed in claim 5 when executed by the processor.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the unlocking method according to any one of claims 1 to 4; alternatively, the computer program realizes the steps of the unlocking method as claimed in claim 5 when being executed by a processor.
CN201911053906.9A 2019-10-31 2019-10-31 Unlocking method and electronic equipment Active CN110826044B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911053906.9A CN110826044B (en) 2019-10-31 2019-10-31 Unlocking method and electronic equipment
PCT/CN2020/125137 WO2021083313A1 (en) 2019-10-31 2020-10-30 Unlocking method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911053906.9A CN110826044B (en) 2019-10-31 2019-10-31 Unlocking method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110826044A CN110826044A (en) 2020-02-21
CN110826044B true CN110826044B (en) 2021-08-10

Family

ID=69551832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911053906.9A Active CN110826044B (en) 2019-10-31 2019-10-31 Unlocking method and electronic equipment

Country Status (2)

Country Link
CN (1) CN110826044B (en)
WO (1) WO2021083313A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110826044B (en) * 2019-10-31 2021-08-10 维沃移动通信有限公司 Unlocking method and electronic equipment
CN114626845A (en) * 2022-03-08 2022-06-14 维沃移动通信有限公司 Near field communication control method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674367A (en) * 2009-09-17 2010-03-17 宇龙计算机通信科技(深圳)有限公司 Unlocking method of NFC mobile terminal and system thereof
CN102946484A (en) * 2012-11-16 2013-02-27 Tcl通讯(宁波)有限公司 Method for unlocking mobile terminal by near-filed communication and system
CN104980274A (en) * 2014-04-09 2015-10-14 海拉胡克双合有限公司 Smart phone, vehicle control system with the smart phone and control method
CN105700910A (en) * 2015-12-31 2016-06-22 王江飞 Method and system for starting application based on NFC
CN106548060A (en) * 2016-10-18 2017-03-29 珠海市魅族科技有限公司 Electronic equipment unlocking method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8726371B2 (en) * 2011-07-18 2014-05-13 Cisco Technology, Inc. Enhanced security for devices enabled for wireless communications
CN103916162B (en) * 2012-12-31 2017-05-03 比亚迪股份有限公司 Terminal equipment and NFC method for same
CN109788463B (en) * 2018-12-17 2022-11-18 平安科技(深圳)有限公司 Method and device for controlling terminal unlocking, computer equipment and storage medium
CN110826044B (en) * 2019-10-31 2021-08-10 维沃移动通信有限公司 Unlocking method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674367A (en) * 2009-09-17 2010-03-17 宇龙计算机通信科技(深圳)有限公司 Unlocking method of NFC mobile terminal and system thereof
CN102946484A (en) * 2012-11-16 2013-02-27 Tcl通讯(宁波)有限公司 Method for unlocking mobile terminal by near-filed communication and system
CN104980274A (en) * 2014-04-09 2015-10-14 海拉胡克双合有限公司 Smart phone, vehicle control system with the smart phone and control method
CN105700910A (en) * 2015-12-31 2016-06-22 王江飞 Method and system for starting application based on NFC
CN106548060A (en) * 2016-10-18 2017-03-29 珠海市魅族科技有限公司 Electronic equipment unlocking method and device

Also Published As

Publication number Publication date
WO2021083313A1 (en) 2021-05-06
CN110826044A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
CN111143005B (en) Application sharing method, electronic equipment and computer readable storage medium
CN111130817B (en) Group creation method, electronic device and server
CN108052819B (en) Face recognition method, mobile terminal and computer readable storage medium
CN108376096B (en) A message display method and mobile terminal
CN108664818B (en) Unlocking control method and device
CN111124706A (en) Application sharing method and electronic device
CN107609363B (en) An unlocking method and mobile terminal
CN108958582A (en) A kind of application program launching method and terminal
CN109446794B (en) A password input method and mobile terminal thereof
CN108305342A (en) A kind of Work attendance method and mobile terminal
CN110536253A (en) A kind of group's Adding Way and mobile terminal
CN110826044B (en) Unlocking method and electronic equipment
CN111310250A (en) Application sharing method and electronic device
CN109828668A (en) A kind of display control method and electronic equipment
CN110096893B (en) Object limiting method and terminal equipment
CN108549807B (en) Screen unlocking method and mobile terminal
CN108062465B (en) Unlocking method and mobile terminal
CN107491685B (en) Face recognition method and mobile terminal
CN111586889A (en) Equipment connection method and device and electronic equipment
CN108897467B (en) A display control method and terminal device
CN111460537A (en) Method for hiding page content and electronic equipment
CN108495276B (en) Method and device for sharing digital business card
CN111381753A (en) Multimedia file playback method and electronic device
CN108881481A (en) A file retrieval method, device and terminal equipment thereof
CN109286723A (en) A wallpaper replacement method and terminal

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