Control method and device for unlocking function

文档序号:1470092 发布日期:2020-02-21 浏览:8次 中文

阅读说明:本技术 解锁功能的控制方法和装置 (Control method and device for unlocking function ) 是由 温冬寒 于 2018-08-13 设计创作,主要内容包括:本发明提供一种解锁功能的控制方法和装置。该方法,包括:在检测到连接了外部设备后,获取所述外部设备的媒体访问控制MAC地址;在预设的MAC地址列表中查询是否存在所述MAC地址,其中,所述MAC地址列表中存储有至少一个可信任的MAC地址;若存在所述MAC地址,则判断所述外部设备与终端设备之间的距离是否小于预设值;所述预设值小于所述外部设备所能识别的范围;若所述外部设备与所述终端设备之间的距离小于所述预设值,则控制所述终端设备处于非锁定状态。使得用户在当前环境是安全且值得信任的情况下,可以跳过解锁操作,直接进入对应的用户界面,提高了用户使用体验度。(The invention provides a control method and device for an unlocking function. The method comprises the following steps: after detecting that the external equipment is connected, acquiring a Media Access Control (MAC) address of the external equipment; inquiring whether the MAC address exists in a preset MAC address list, wherein at least one trusted MAC address is stored in the MAC address list; if the MAC address exists, judging whether the distance between the external equipment and the terminal equipment is smaller than a preset value; the preset value is smaller than the range which can be identified by the external equipment; and if the distance between the external equipment and the terminal equipment is smaller than the preset value, controlling the terminal equipment to be in a non-locking state. Therefore, the user can skip the unlocking operation and directly enter the corresponding user interface under the condition that the current environment is safe and trustworthy, and the user experience is improved.)

1. A method for controlling an unlock function, comprising:

after detecting that the external equipment is connected, acquiring a Media Access Control (MAC) address of the external equipment;

inquiring whether the MAC address exists in a preset MAC address list, wherein at least one trusted MAC address is stored in the MAC address list;

if the MAC address exists, judging whether the distance between the external equipment and the terminal equipment is smaller than a preset value; the preset value is smaller than the range which can be identified by the external equipment;

and if the distance between the external equipment and the terminal equipment is smaller than the preset value, controlling the terminal equipment to be in a non-locking state.

2. The method of claim 1, wherein the at least one trusted MAC address comprises at least one MAC address manually selected by a user.

3. The method of claim 1 or 2, wherein the external device comprises a bluetooth headset.

4. The method according to claim 1 or 2, characterized in that the method further comprises:

if the MAC address does not exist in the MAC address list, outputting prompt information, wherein the prompt information is used for reminding a user whether to add the MAC address into the MAC address list;

receiving an adding instruction input by a user;

and adding the MAC address into the MAC address list according to the adding instruction.

5. The method according to claim 1 or 2, wherein the controlling the terminal device to be in an unlocked state comprises:

and controlling the terminal equipment to execute unlocking operation so as to enable the terminal equipment to be in an unlocked state.

6. The method according to claim 1 or 2, wherein the controlling the terminal device to be in an unlocked state comprises:

and controlling the terminal equipment to close the locking function so as to enable the terminal equipment to be in a non-locking state.

7. A control device for an unlock function, comprising:

the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a Media Access Control (MAC) address of external equipment after detecting that the external equipment is connected;

the system comprises a query module, a judging module and a judging module, wherein the query module is used for querying whether the MAC address exists in a preset MAC address list, and at least one trusted MAC address is stored in the MAC address list;

the judging module is used for judging whether the distance between the external equipment and the terminal equipment is smaller than a preset value or not if the MAC address exists; the preset value is smaller than the range which can be identified by the external equipment;

and the control module is used for controlling the terminal equipment to be in a non-locking state if the distance between the external equipment and the terminal equipment is smaller than the preset value.

8. The apparatus of claim 7, further comprising:

the output module is used for outputting prompt information if the MAC address does not exist in the MAC address list, wherein the prompt information is used for reminding a user whether to add the MAC address into the MAC address list;

the receiving module is used for receiving an adding instruction input by a user;

and the adding module is used for adding the MAC address into the MAC address list according to the adding instruction.

9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1-6.

10. A terminal, comprising:

a processor; and

a memory for storing executable instructions of the processor;

wherein the processor is configured to implement the method of any of claims 1-6 via execution of the executable instructions.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种业务对象的处理方法和系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类