Ring control method, ring control device, storage medium and electronic equipment

文档序号:1722482 发布日期:2019-12-17 浏览:21次 中文

阅读说明:本技术 响铃控制方法、装置、存储介质及电子设备 (Ring control method, ring control device, storage medium and electronic equipment ) 是由 梁昆 于 2017-06-30 设计创作,主要内容包括:本发明公开了一种响铃控制方法,其中包括:获取电子设备中响铃停止时对应的停止时间;若停止时间位于预设时间段内,获取所在的第一位置;若响铃停止时长超过第一阈值,获取所在的第二位置;判断两个位置之间的距离是否小于预设距离;若是,则再次进行响铃。本发明还涉及一种响铃控制装置、存储介质及电子设备。(The invention discloses a ring control method, which comprises the following steps: acquiring the corresponding stopping time when ringing stops in the electronic equipment; if the stopping time is within the preset time period, acquiring a first position of the stopping time; if the ringing stop time exceeds a first threshold value, acquiring a second position where the ringing stop time is located; judging whether the distance between the two positions is smaller than a preset distance or not; if yes, ringing is performed again. The invention also relates to a ring control device, a storage medium and an electronic device.)

A ring control method is applied to electronic equipment, and comprises the following steps:

acquiring the corresponding stopping time when the ringing stops in the electronic equipment;

when the stop time is detected to be within a preset time period, acquiring a first position of the electronic equipment;

when detecting that the ringing stop time length exceeds a first threshold value, acquiring a second position where the electronic equipment is located, wherein the ringing stop time length is the time length from the current time to the stop time;

judging whether the distance between the first position and the second position is smaller than a preset distance or not;

and if so, controlling the electronic equipment to ring again.

The ring control method according to claim 1, wherein before said obtaining the first position of the electronic device when said stop time is detected to be within a preset time period, further comprises:

acquiring a plurality of target ringing time points in preset days;

and generating the preset time period according to a preset rule according to a plurality of target ringing time points.

The ring control method according to claim 2, wherein before said obtaining a plurality of target ring time points in a preset number of days, further comprising:

acquiring a third position where the ringing stops in the electronic equipment;

when detecting that the ringing stop time exceeds a second threshold value, acquiring a fourth position where the electronic equipment is located;

judging whether the distance between the third position and the fourth position is greater than a preset distance;

and if so, determining the ringing time point corresponding to the stopping ringing as the target ringing time point.

The ring control method according to claim 1, wherein after controlling the electronic device to ring again, further comprising:

acquiring a fifth position of the electronic equipment;

judging whether the distance between the fifth position and the first position is greater than a preset distance;

and if so, controlling the electronic equipment to stop ringing.

The ring control method according to claim 1, wherein the controlling the electronic device to ring again further comprises:

and if so, controlling the electronic equipment to perform voice broadcast on the backlog of the current day.

The ring control method according to claim 1, wherein if yes, controlling the electronic device to ring again comprises:

and if so, controlling the electronic equipment to ring, vibrate and/or emit light.

The ring control method according to claim 1 or 6, wherein the ring volume of the ring is increased according to an increase in the duration.

A ring control device, wherein the ring control device comprises:

the first acquisition unit is used for acquiring the corresponding stop time when the ringing stops in the electronic equipment;

the second acquisition unit is used for acquiring a first position of the electronic equipment when the stop time is detected to be within a preset time period;

the third acquiring unit is used for acquiring a second position where the electronic equipment is located when detecting that the ringing stop time length exceeds a first threshold value, wherein the ringing stop time length is the time length from the current time to the stop time;

the first judging unit is used for judging whether the distance between the first position and the second position is smaller than a preset distance or not; and

and the control unit is used for controlling the electronic equipment to ring again if the alarm is received.

The ring control device according to claim 8, wherein the ring control device further comprises:

the fourth acquisition unit is used for acquiring a plurality of target ringing time points in preset days; and

and the generating unit is used for generating the preset time period according to a preset rule according to the plurality of target ringing time points.

The ring control device according to claim 9, wherein the ring control device further comprises:

a fifth obtaining unit, configured to obtain a third position where a ringing of the electronic device is stopped;

the sixth obtaining unit is used for obtaining a fourth position where the electronic equipment is located when the fact that the ringing stop time length exceeds a second threshold value is detected;

a second judging unit, configured to judge whether a distance between the third position and the fourth position is greater than a preset distance; and

and the determining unit is used for determining the ringing time point corresponding to the stop ringing as the target ringing time point if the target ringing time point is the stop ringing.

The ring control device according to claim 8, wherein the ring control device further comprises:

a seventh acquiring unit, configured to acquire a fifth position where the electronic device is located;

a third judging unit, configured to judge whether a distance between the fifth position and the first position is greater than a preset distance; and

and the stopping unit is used for controlling the electronic equipment to stop ringing if the electronic equipment stops ringing.

The ring control device according to claim 8, wherein the control unit comprises:

and the control subunit is used for controlling the electronic equipment to perform voice broadcast on the backlog of the current day.

A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the ring control method according to any one of claims 1 to 7.

An electronic device comprising a processor, a memory, the processor electrically connected to the memory, the memory for storing instructions and data, the processor for performing the steps of:

acquiring the corresponding stopping time when the ringing stops in the electronic equipment;

when the stop time is detected to be within a preset time period, acquiring a first position of the electronic equipment;

when detecting that the ringing stop time length exceeds a first threshold value, acquiring a second position where the electronic equipment is located, wherein the ringing stop time length is the time length from the current time to the stop time;

judging whether the distance between the first position and the second position is smaller than a preset distance or not;

and if so, controlling the electronic equipment to ring again.

The electronic device of claim 14, wherein the processor is further configured to perform the steps of:

acquiring a plurality of target ringing time points in preset days;

and generating the preset time period according to a preset rule according to a plurality of target ringing time points.

The electronic device of claim 14, wherein the processor is further configured to perform the steps of:

acquiring a third position where the ringing stops in the electronic equipment; when detecting that the ringing stop time exceeds a second threshold value, acquiring a fourth position where the electronic equipment is located;

judging whether the distance between the third position and the fourth position is greater than a preset distance;

and if so, determining the ringing time point corresponding to the stopping ringing as the target ringing time point.

The electronic device of claim 14, wherein the processor is further configured to perform the steps of:

acquiring a fifth position of the electronic equipment;

judging whether the distance between the fifth position and the first position is greater than a preset distance;

and if so, controlling the electronic equipment to stop ringing.

The electronic device of claim 14, wherein in controlling the electronic device to ring again, the processor is configured to perform the steps of:

and controlling the electronic equipment to carry out voice broadcast on the backlog of the current day.

The electronic device of claim 14, wherein in controlling the electronic device to ring again, the processor is configured to perform the steps of:

controlling the electronic device to ring, vibrate and/or emit light.

The electronic device of claim 14 or 19, wherein the ring volume of the ring increases as the duration increases.

Technical Field

The present invention relates to the field of electronic device technologies, and in particular, to a ring control method and apparatus, a storage medium, and an electronic device.

Background

At present, for people, in order to get up on time to avoid delayed work or delay schedule, an alarm time is usually set on an alarm clock, and when the alarm clock reaches the preset alarm time, people can be reminded to get up in a ringing mode.

Along with intelligent Mobile terminal's development, more and more people can carry out the alarm clock setting on intelligent Mobile terminal, and intelligent Mobile terminal can be like traditional alarm clock, rings at the alarm clock time of predetermineeing. However, for some users, after the first ring, the user may intentionally or unintentionally turn off the alarm, and then sleep again for a while, at this time, the alarm is turned off and does not ring again to remind the user, and the user may easily fall asleep over to cause a delay in work or delay in schedule of the day, which may have a great influence on the work of the user.

Technical problem

The invention provides a ringing control method, a ringing control device, a storage medium and electronic equipment, which can realize intelligent reminding of a user by an alarm.

Technical solution

In a first aspect, an embodiment of the present invention provides a ring control method, which is applied to an electronic device, and includes the following steps:

acquiring the corresponding stopping time when the ringing stops in the electronic equipment;

when the stop time is detected to be within a preset time period, acquiring a first position of the electronic equipment;

when detecting that the ringing stop time length exceeds a first threshold value, acquiring a second position where the electronic equipment is located, wherein the ringing stop time length is the time length from the current time to the stop time;

judging whether the distance between the first position and the second position is smaller than a preset distance or not;

and if so, controlling the electronic equipment to ring again.

In a second aspect, an embodiment of the present invention provides a ring control device, where the ring control device includes:

the first acquisition unit is used for acquiring the corresponding stop time when the ringing stops in the electronic equipment;

the second acquisition unit is used for acquiring a first position of the electronic equipment when the stop time is detected to be within a preset time period;

the third acquiring unit is used for acquiring a second position where the electronic equipment is located when detecting that the ringing stop time length exceeds a first threshold value, wherein the ringing stop time length is the time length from the current time to the stop time;

the first judging unit is used for judging whether the distance between the first position and the second position is smaller than a preset distance or not; and

and the control unit is used for controlling the electronic equipment to ring again if the alarm is received.

In a third aspect, embodiments of the present invention provide a storage medium having stored therein a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the ring control method as described above.

In a fourth aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, where the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the following steps:

acquiring the corresponding stopping time when the ringing stops in the electronic equipment;

when the stop time is detected to be within a preset time period, acquiring a first position of the electronic equipment;

when detecting that the ringing stop time length exceeds a first threshold value, acquiring a second position where the electronic equipment is located, wherein the ringing stop time length is the time length from the current time to the stop time;

judging whether the distance between the first position and the second position is smaller than a preset distance or not;

and if so, controlling the electronic equipment to ring again.

Advantageous effects

The invention provides a ringing control method, a ringing control device, a storage medium and electronic equipment, which can realize intelligent reminding of a user by an alarm.

Drawings

Fig. 1 is an application scenario diagram of a ring control method according to an embodiment of the present invention.

Fig. 2 is a flowchart of an implementation of a ring control method according to an embodiment of the present invention.

Fig. 3 is a diagram of another application scenario of the ring control method according to the embodiment of the present invention.

Fig. 4 is a flowchart of another implementation of the ring control method according to the embodiment of the present invention.

Fig. 5 is a flowchart of an implementation of determining a target ring time point according to an embodiment of the present invention.

Fig. 6 is a schematic structural diagram of a ring control device according to an embodiment of the present invention.

Fig. 7 is another schematic structural diagram of the ring control device according to the embodiment of the present invention.

Fig. 8 is a schematic view of another structure of the ring control device according to the embodiment of the present invention.

Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

Fig. 10 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.

1页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于将PBX分机与云服务应用的用户账户相关联的方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类