Terminal control method, device, terminal and storage medium

文档序号:1337222 发布日期:2020-07-17 浏览:16次 中文

阅读说明:本技术 终端控制方法、装置、终端及存储介质 (Terminal control method, device, terminal and storage medium ) 是由 左梁 于 2020-03-12 设计创作,主要内容包括:本申请属于终端技术领域,具体而言,涉及一种终端控制方法、装置、终端及存储介质。其中,一种终端控制方法,包括:获取监控信息;其中,所述监控信息包括终端的输入状态信息、所述终端的移动状态信息和用户的生命特征信息中的一种或多种;在所述监控信息符合预设条件时,关闭音视频应用程序的音视频输出和/或断开蓝牙耳机的连接。因此,用户处于睡眠状态时,终端可以关闭音视频应用程序的音视频输出和/或断开蓝牙耳机的连接,可以减少终端电量的消耗,进而可以节省终端的电量。(The application belongs to the technical field of terminals, and particularly relates to a terminal control method, a terminal control device, a terminal and a storage medium. The terminal control method comprises the following steps: acquiring monitoring information; the monitoring information comprises one or more of input state information of a terminal, moving state information of the terminal and vital sign information of a user; and when the monitoring information meets the preset condition, closing the audio and video output of the audio and video application program and/or disconnecting the connection of the Bluetooth headset. Therefore, when the user is in a sleep state, the terminal can close the audio and video output of the audio and video application program and/or disconnect the connection of the Bluetooth headset, the power consumption of the terminal can be reduced, and the power of the terminal can be saved.)

1. A terminal control method, comprising:

acquiring monitoring information; the monitoring information comprises one or more of input state information of a terminal, moving state information of the terminal and vital sign information of a user;

and when the monitoring information meets the preset condition, closing the audio and video output of the audio and video application program and/or disconnecting the connection of the Bluetooth headset.

2. The terminal control method according to claim 1, wherein when the monitoring information meets a preset condition, the closing of audio/video output of an audio/video application program and/or the disconnection of a bluetooth headset comprises:

in a preset time, when one or more of a touch event of the terminal display screen, a movement distance of the terminal being smaller than a preset movement distance and vital sign information of the user is not acquired within a preset range, closing an audio and video playing source;

and when the audio and video playing source is closed, disconnecting the Bluetooth headset.

3. The terminal control method according to claim 1, wherein the acquiring the monitoring information includes:

collecting the breathing sound of the user within a preset time through an audio collection unit;

monitoring the respiratory frequency of the user based on the breath sound.

4. The terminal control method according to claim 1, wherein before the acquiring the monitoring information, the method further comprises:

establishing a connection with the Bluetooth headset;

wherein the acquiring of the monitoring information includes:

collecting breathing sound of the user within a preset time through the Bluetooth headset;

monitoring the respiratory frequency of the user based on the breath sound.

5. The terminal control method according to claim 1, wherein the acquiring the monitoring information includes:

detecting whether the position of the terminal is changed or not through a gyroscope of the terminal within preset time;

and if so, acquiring the moving distance information of the terminal.

6. The terminal control method according to claim 1, wherein after the audio/video output of the audio/video application program is closed and/or the connection of the bluetooth headset is disconnected when the monitoring information meets the preset condition, the method further comprises:

and when the data output by the audio and video application program is video data, adjusting the display screen of the terminal to a screen extinguishing state.

7. The terminal control method according to claim 1, wherein the acquiring the monitoring information includes:

acquiring the pulse number of the user within preset time through a pulse acquisition unit;

monitoring a pulse frequency of the user based on the pulse number.

8. A terminal control apparatus, comprising:

an information acquisition unit for acquiring monitoring information; the monitoring information comprises one or more of input state information of a terminal, moving state information of the terminal and vital sign information of a user;

and the connection disconnection unit is used for closing the audio and video output of the audio and video application program and/or disconnecting the connection of the Bluetooth headset when the monitoring information accords with the preset condition.

9. A terminal comprising a memory, a processor and a monitoring machine program stored in the memory and executable on the processor, characterized in that the processor implements the terminal control method of any of the preceding claims 1 to 7 when executing the monitoring machine program.

10. A monitoring machine readable storage medium on which a monitoring machine program is stored, characterized in that the program, when executed by a processor, implements the terminal control method of any one of the preceding claims 1 to 7.

Technical Field

The application belongs to the technical field of terminals, and particularly relates to a terminal control method, a terminal control device, a terminal and a storage medium.

Background

With the rapid development of terminal technology, more and more functions are supported by the terminal, and the life of a user can be enriched continuously. For example, a user may listen to music using the terminal, and the user may also watch videos using the terminal.

At present, when a user sleeps, the user can listen to music with a Bluetooth headset to achieve the effect of assisting the user in sleeping. When the user falls asleep, the terminal and the bluetooth headset continue to operate, so that the music application program of the terminal can continue to play music through the bluetooth headset, and the user can be awakened by the music in the bluetooth headset. Only when the terminal or the bluetooth headset is powered off, the terminal can interrupt music in the bluetooth headset. However, when the user needs to use the terminal the next day, the user recharges the terminal. Therefore, when a user is in a sleep state, the terminal outputs audio and video information through the Bluetooth headset, and the problem that the electric quantity of the terminal is too large is caused.

Disclosure of Invention

The embodiment of the application provides a terminal control method, a terminal control device, a terminal and a storage medium, which can save the electric quantity of the terminal.

In a first aspect, an embodiment of the present application provides a terminal control method, including:

acquiring monitoring information; the monitoring information comprises one or more of input state information of a terminal, moving state information of the terminal and vital sign information of a user;

and when the monitoring information meets the preset condition, closing the audio and video output of the audio and video application program and/or disconnecting the connection of the Bluetooth headset.

According to some embodiments, when the monitoring information meets a preset condition, the closing of the audio/video output of the audio/video application and/or the disconnection of the bluetooth headset includes:

in a preset time, when one or more of a touch event of the terminal display screen, a movement distance of the terminal being smaller than a preset movement distance and vital sign information of the user is not acquired within a preset range, closing an audio and video playing source;

and when the audio and video playing source is closed, disconnecting the Bluetooth headset.

According to some embodiments, the obtaining monitoring information comprises:

collecting the breathing sound of the user within a preset time through an audio collection unit;

monitoring the respiratory frequency of the user based on the breath sound.

According to some embodiments, before the obtaining the monitoring information, the method further comprises:

establishing a connection with the Bluetooth headset;

wherein the acquiring of the monitoring information includes:

collecting breathing sound of the user within a preset time through the Bluetooth headset;

monitoring the respiratory frequency of the user based on the breath sound.

According to some embodiments, the obtaining monitoring information comprises:

detecting whether the position of the terminal is changed or not through a gyroscope of the terminal within preset time;

and if so, acquiring the moving distance information of the terminal.

According to some embodiments, after the audio/video output of the audio/video application program is closed and/or the connection of the bluetooth headset is disconnected when the monitoring information meets the preset condition, the method further includes:

and when the data output by the audio and video application program is video data, adjusting the display screen of the terminal to a screen extinguishing state.

According to some embodiments, the obtaining monitoring information comprises:

acquiring the pulse number of the user within preset time through a pulse acquisition unit;

monitoring a pulse frequency of the user based on the pulse number.

In a second aspect, an embodiment of the present application provides a terminal control apparatus, including:

an information acquisition unit for acquiring monitoring information; the monitoring information comprises one or more of input state information of a terminal, moving state information of the terminal and vital sign information of a user;

and the connection disconnection unit is used for closing the audio and video output of the audio and video application program and/or disconnecting the connection of the Bluetooth headset when the monitoring information accords with the preset condition.

In a third aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method of any one of the above first aspects when executing the computer program.

In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program is used for implementing any one of the methods described above when executed by a processor.

In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.

The embodiment of the application provides a terminal control method, which comprises the steps of obtaining monitoring information; the monitoring information comprises one or more of input state information of the terminal, moving state information of the terminal and vital sign information of a user; and when the monitoring information meets the preset condition, the audio and video output of the audio and video application program can be closed and/or the connection of the Bluetooth headset can be disconnected. Therefore, when the user is in a sleep state, the terminal can close the audio and video output of the audio and video application program and/or disconnect the connection of the Bluetooth headset, the power consumption of the terminal can be reduced, and the power of the terminal can be saved. In addition, when the terminal closes the audio and video output of the audio and video application program, the user does not need to operate, and the sleep quality of the user can be improved.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a flowchart illustrating a terminal control method according to an embodiment of the present application;

FIG. 2 is a schematic diagram illustrating an example of a terminal interface according to an embodiment of the present disclosure;

FIG. 3 is a schematic diagram illustrating an example of a terminal interface according to an embodiment of the present application;

FIG. 4 is a schematic diagram illustrating an example of a terminal interface according to an embodiment of the present application;

fig. 5 is a flowchart illustrating a terminal control method according to an embodiment of the present application;

fig. 6 is a flowchart illustrating a terminal control method according to an embodiment of the present application;

fig. 7 is a flowchart illustrating a terminal control method according to an embodiment of the present application;

fig. 8 is a flowchart illustrating a terminal control method according to an embodiment of the present application;

fig. 9 is a flowchart illustrating a terminal control method according to an embodiment of the present application;

fig. 10 is a schematic structural diagram of a terminal control device according to an embodiment of the present application;

fig. 11 shows a schematic structural diagram of a terminal according to an embodiment of the present application.

Detailed Description

In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

With the rapid development of terminal technology, more and more functions are supported by the terminal, and the life of a user can be enriched continuously. For example, a user may listen to music using the terminal, and the user may also watch videos using the terminal.

At present, before a user goes to sleep, the user can click a play control of a music application program of a terminal and play favorite music by using the terminal. When the terminal detects that the user clicks the playing control of the music application program of the terminal, the terminal can use the music application program to play the corresponding music audio. When the user sleeps, the user can wear the Bluetooth earphone to listen to music output by the music application program of the terminal so as to achieve the effect of assisting the user in sleeping. When the user sleeps heavily, the user can take the terminal to turn off the music output of the music application program in order to improve the sleeping quality of the user in the sleeping state and save the electric quantity of the terminal, at the moment, music cannot be played in the Bluetooth headset, and the user cannot hear the music output of the music application program of the terminal in the sleeping state. However, when the user picks up the terminal to turn off the music output of the music application, the drowsiness of the user is reduced, and the sleep quality of the user is affected.

According to some embodiments, when a user listens to music output by a music application of a terminal wearing a bluetooth headset and the user is in a sleep state, the terminal and the bluetooth headset continue to operate, so that the music application of the terminal continues to play music through the bluetooth headset, and the user is awakened by the music in the bluetooth headset, which affects the sleep quality of the user. Only when the electric quantity of the terminal or the Bluetooth headset is insufficient and the terminal or the Bluetooth headset is powered off, the terminal can interrupt music in the Bluetooth headset. However, when the user needs to use the terminal the next day, the user recharges the terminal. Therefore, when a user is in a sleep state, the terminal can output audio and video information through the Bluetooth headset, and the problem of terminal electric quantity consumption can occur.

The terminal of the embodiment of the application can be a smart phone, a tablet computer, a game device, an AR (augmented reality) device, a data storage device, an audio playing device, a video playing device, a notebook, a desktop computing device, a wearable device such as an electronic watch, an electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, an electronic garment, and the like. The terminal of the embodiment of the application is introduced by taking a smart phone as an example.

Fig. 1 shows a flowchart of a terminal control method according to an embodiment of the present application.

As shown in fig. 1, the terminal control method includes:

and S101, acquiring monitoring information.

According to some embodiments, when a user sleeps, the user can play favorite audio and video by using an audio and video application program of the terminal so as to achieve the effect of assisting sleep. For example, a user may click on a music application icon of a terminal display interface. When the terminal detects that the user clicks the music application icon of the terminal display interface, the terminal may open the music application. The user may click on a play control of the music application. When the terminal detects that the user clicks the playing control of the music application program, the terminal can play corresponding audio. At this time, the display interface of the terminal may be as shown in fig. 2. The audio played by the terminal music application program can be the audio stored in the terminal memory, or the audio downloaded by the terminal from the server.

It is easy to understand that when the terminal is not connected to the bluetooth headset, the terminal may output the audio and video through a speaker of the terminal. When the terminal detects that the Bluetooth headset is connected to the terminal, the terminal can output the audio and video through the Bluetooth headset.

Optionally, the monitoring information includes one or more of input state information of the terminal, movement state information of the terminal, and vital sign information of the user. The input state information of the terminal includes, but is not limited to, a touch event of a display screen of the terminal, and click information of a button of the terminal. The vital sign information of the user includes, but is not limited to, respiratory rate, pulse rate, and the like.

According to some embodiments, when the audio/video application program of the terminal plays the audio/video selected by the user, the terminal may acquire the monitoring information. For example, the user may click on the B music application icon of the a smartphone display interface. When the smart phone A detects that the user clicks the B music application icon on the display interface of the smart phone A, the smart phone A can open the B music application. The user may click on the play control of the B music application. When the smart phone A detects that the user clicks the playing control of the C music audio, the smart phone A can play the corresponding C music audio. When the D Bluetooth headset is connected to the A smart phone, the A smart phone can play the C music audio through the D Bluetooth headset. When the smart phone A plays the music audio through the Bluetooth headset D, the smart phone A can acquire monitoring information. The monitoring information acquired by the smart phone a may be, for example, that a touch event is detected through a display screen of the smart phone a within 10 minutes, the moving distance of the smart phone a is 5m, and the breathing rate of the user is 18 times/minute.

And S102, when the monitoring information meets the preset conditions, closing the audio and video output of the audio and video application program and/or disconnecting the connection of the Bluetooth headset.

According to some embodiments, when the terminal acquires the monitoring information, whether the monitoring information meets the preset condition or not can be judged. When the terminal judges that the monitoring information accords with the preset condition, the terminal can close the audio and video output of the audio and video application program and/or disconnect the connection of the Bluetooth headset.

It is easy to understand that when the terminal is not connected with the bluetooth headset and the terminal acquires the monitoring information, the terminal can judge whether the monitoring information meets the preset condition. When the terminal judges that the monitoring information accords with the preset condition, the terminal can close the audio and video output of the audio and video application program, so that the electric quantity of the terminal can be saved when a user is in a sleep state.

Optionally, when the smartphone a is not connected to the bluetooth headset, the preset conditions set by the smartphone a may be, for example, that the input state information of the smartphone is acquired within a preset time, the input state information of the smartphone is smaller than a preset movement distance, and the breathing frequency of the user is 16 times/minute to 20 times/minute. For example, when the smart phone a plays the music audio C selected by the user through the music application B, the monitoring information acquired by the smart phone a may be, for example, that a touch event is detected through the display screen of the smart phone a within 10 minutes, the moving distance of the smart phone a is 5m, and the breathing rate of the user is 18 times/minute. The smart phone A can judge whether the acquired monitoring information meets preset conditions. When the intelligent mobile phone A judges that the input state information of the intelligent mobile phone, the input state information of the intelligent mobile phone and the breathing frequency of the user all accord with preset conditions, the intelligent mobile phone A can close the audio and video of the audio application program B and output C music audio.

According to some embodiments, when the terminal is connected to the bluetooth headset and the terminal acquires the monitoring information, the terminal may determine whether the monitoring information meets a preset condition. When the terminal judges that the monitoring information accords with the preset condition, the terminal can close the connection of the disconnected Bluetooth earphone. When the terminal is disconnected from the Bluetooth headset, the terminal can automatically close audio and video output of the audio and video application program, so that the electric quantity of the terminal and the Bluetooth headset can be saved when a user is in a sleep state.

It is easy to understand that when the terminal is connected to the bluetooth headset and the terminal acquires the monitoring information, the terminal can determine whether the monitoring information meets the preset condition. When the terminal judges that the monitoring information accords with the preset condition, the terminal can close audio and video output of the audio and video application program, and at the moment, audio and video cannot be output in the Bluetooth headset, so that the electric quantity of the terminal and the Bluetooth headset can be saved when a user is in a sleep state.

Optionally, when the terminal is connected to the bluetooth headset and the terminal acquires the monitoring information, the terminal may determine whether the monitoring information meets a preset condition. When the terminal judges that the monitoring information accords with the preset condition, the terminal can cut off the connection of the Bluetooth headset after closing the audio and video output of the audio and video application program, so that the electric quantity of the terminal and the Bluetooth headset can be saved when a user is in a sleep state.

It is easy to understand that when the a smartphone is connected to the bluetooth headset, the preset conditions set by the a smartphone may be, for example, that the input state information of the smartphone is acquired within a preset time, the input state information of the smartphone is less than a preset movement distance, and the breathing rate of the user is 16 times/minute to 20 times/minute. For example, a smartphone plays the user-selected C music audio through a B music application. At this time, the display interface of the terminal may be as shown in fig. 3. The monitoring information acquired by the smart phone a may be, for example, that a touch event is detected through a display screen of the smart phone a within 10 minutes, the moving distance of the smart phone a is 5m, and the breathing rate of the user is 18 times/minute. The smart phone A can judge whether the acquired monitoring information meets preset conditions. When the intelligent mobile phone A judges that the input state information of the intelligent mobile phone A, the input state information of the intelligent mobile phone A and the breathing frequency of the user all accord with preset conditions, the intelligent mobile phone A can close the music of the music application program B and disconnect the Bluetooth headset.

The embodiment of the application provides a terminal control method, which comprises the steps of obtaining monitoring information; the monitoring information comprises one or more of input state information of the terminal, moving state information of the terminal and vital sign information of a user; and when the monitoring information meets the preset condition, the audio and video output of the audio and video application program can be closed and/or the connection of the Bluetooth headset can be disconnected. Therefore, when the user is in a sleep state, the terminal can close the audio and video output of the audio and video application program and/or disconnect the connection of the Bluetooth headset, the power consumption of the terminal can be reduced, and the power of the terminal can be saved. In addition, the terminal is disconnected with the Bluetooth headset, so that the user can not hear audio and video sound when in a sleep state, and the sleep quality of the user can be improved.

Fig. 4 is a flowchart illustrating a terminal control method according to an embodiment of the present application.

As shown in fig. 4, the terminal control method includes:

s201, connection with the Bluetooth headset is established.

According to some embodiments, the terminal may establish a connection with the bluetooth headset when the user turns on the bluetooth headset. When a user needs to listen to a video by using the Bluetooth headset, the user can click the Bluetooth control of the display screen of the terminal. When the terminal detects that the user clicks the Bluetooth control, the terminal can open a Bluetooth connection. When the terminal opens the bluetooth connection, the terminal can acquire the bluetooth connection record. When the terminal acquires the connection record of the Bluetooth headset, the terminal can directly establish connection with the Bluetooth headset. When the terminal does not acquire the connection record of the bluetooth headset, the terminal may display the name and model of the connectable bluetooth headset. The user can input the connection password corresponding to the Bluetooth headset on the display screen of the terminal. When the terminal acquires the connection password, the terminal can establish connection with the Bluetooth headset.

It is easy to understand that the user can listen to music using the Q bluetooth headset, and the user clicks the bluetooth control of the W smart phone display. When the W smart phone detects that the user clicks the Bluetooth control, the W smart phone can open a Bluetooth connection. When the W smart phone opens the Bluetooth connection, the W smart phone can acquire the Bluetooth connection record. When the W smart phone obtains the connection record of the Q Bluetooth headset, the W smart phone can directly establish connection with the Q Bluetooth headset.

And S202, acquiring monitoring information.

According to some embodiments, when the terminal establishes a connection with the bluetooth headset, the audio and video application of the terminal may output audio and video through the bluetooth headset. At this time, the terminal can acquire the monitoring information. The monitoring information includes one or more of input state information of the terminal, movement state information of the terminal, and vital sign information of the user.

The specific process is as described above, and is not described herein again.

According to some embodiments, fig. 5 shows a flowchart of a terminal control method according to an embodiment of the present application. As shown in fig. 5, the terminal control method includes: s301, collecting breathing sound of a user within a preset time through a Bluetooth headset; and S302, monitoring the breathing frequency of the user based on the breathing sound.

It is easy to understand that the vital sign information of the user in the terminal acquisition monitoring information may be, for example, the breathing frequency of the user. Because the voiceprint characteristics of the expiration sound and the inspiration sound of the user are different, the terminal can collect the respiration sound of the user in the preset time through the Bluetooth headset. When the terminal collects the breathing sound of the user, the terminal can monitor the breathing frequency of the user based on the obtained breathing sound. For example, the breath sound of the user is collected 18 times by the W smart phone within 1 minute. The W smart phone monitors that the breathing frequency of the user is 18 times/minute based on the acquired breathing sound.

According to some embodiments, fig. 6 shows a flowchart of a terminal control method according to an embodiment of the present application. As shown in fig. 6, the terminal control method includes: s401, collecting breathing sound of a user within preset time through an audio collection unit; s402, monitoring a breathing frequency of the user based on the breathing sound.

It is easy to understand that the vital sign information of the user in the terminal acquisition monitoring information may be, for example, the breathing frequency of the user. Because the voiceprint characteristics of the expiration sound and the inspiration sound of the user are different, when the vital sign information of the user in the terminal acquired monitoring information is the breathing frequency of the user, the terminal can acquire the breathing sound of the user within the preset time through the audio acquisition unit of the terminal. When the terminal collects the breathing sound of the user, the terminal can monitor the breathing frequency of the user based on the obtained breathing sound. For example, the breath sound of the user is collected 18 times by the W smart phone through the microphone of the W smart phone for 1 minute. The W smart phone monitors that the breathing frequency of the user is 18 times/minute based on the acquired breathing sound.

According to some embodiments, fig. 7 shows a flowchart of a terminal control method according to an embodiment of the present application. As shown in fig. 7, the terminal control method includes: s501, acquiring the pulse number of a user within preset time through a pulse acquisition unit; s502, monitoring the pulse frequency of the user based on the pulse rate.

It is easy to understand that the vital sign information of the user in the terminal acquisition monitoring information may be, for example, the pulse frequency of the user. When the vital sign information of the user in the monitoring information acquired by the terminal can be, for example, the pulse frequency of the user, the terminal can acquire the pulse frequency of the user within a preset time by connecting a pulse monitoring unit with the terminal. The terminal can monitor the pulse frequency of the user based on the obtained pulse frequency. For example, the number of pulse times of the user collected for 30 seconds by the W smart phone through the pulse monitoring bracelet connected with the W smart phone is 40. And monitoring the respiratory frequency of the user by the W smart phone to be 80 times/minute based on the acquired pulse frequency.

According to some embodiments, fig. 8 shows a flowchart of a terminal control method according to an embodiment of the present application. As shown in fig. 8, the terminal control method includes: s601, detecting whether the position of the terminal is changed or not through a gyroscope of the terminal within preset time; and S602, if yes, acquiring the moving distance information of the terminal.

It is easily understood that when the terminal acquires the movement state information of the terminal, the terminal may detect whether the location of the terminal is changed. For example, the terminal may detect whether the position of the terminal is changed through a gyroscope of the terminal within a preset time. When the terminal detects that the position of the terminal changes through a gyroscope of the terminal, the terminal can acquire the moving distance of the terminal. The preset time set by, for example, a W smartphone may be, for example, 5 minutes. Within 5 minutes, the W smart phone can detect whether the position of the W smart phone changes through an E gyroscope of the W smart phone. When the W smart phone detects that the position of the W smart phone changes through an E gyroscope of the W smart phone, the W smart phone can acquire the moving distance of the W smart phone. The movement distance acquired by the W smartphone may be, for example, 2 m.

And S203, in a preset time, when one or more of the touch event of the terminal display screen, the movement distance of the terminal being smaller than the preset movement distance and the vital sign information of the user are not acquired in a preset range, closing the audio and video playing source.

According to some embodiments, when the terminal acquires the monitoring information, the terminal may determine whether the monitoring information meets a preset condition. For example, the terminal may detect whether the terminal acquires a touch event of the terminal display screen, whether the movement distance of the terminal is smaller than a preset movement distance, and whether one or more of the vital sign information of the user are within a preset range within a preset time. When the terminal judges that the monitoring information meets the preset condition, the terminal can close the audio and video playing source, namely the terminal can close the audio and video output of the audio and video application program.

It is easy to understand that the preset conditions set by, for example, the W smart phone may be, for example, a touch event that is not acquired to the display screen of the terminal within 5 minutes, a moving distance of the terminal being less than 2m, and a breathing frequency of the user being 60-80 times/minute. When the W smart phone plays music through the Q bluetooth headset, the monitoring information acquired by the W smart phone may be, for example, a touch event that the terminal display screen is not acquired within 10 minutes, the moving distance of the terminal is 1m, and the breathing frequency of the user is 65 times/minute. When the W smart phone judges that the monitoring information meets the preset condition, the W smart phone can close the music playing source. The display interface of the terminal at this time may be as shown in fig. 9.

And S204, when the audio and video playing source is closed, disconnecting the Bluetooth headset.

According to some embodiments, when the terminal outputs the audio and video through the bluetooth headset, the terminal can close the audio and video playing source when the terminal judges that the monitoring information acquired by the terminal meets the preset condition. When the terminal detects that the audio and video playing source is closed, the terminal can disconnect the connection of the Bluetooth headset.

It is easy to understand that, for example, when the W smart phone plays music through the Q bluetooth headset, the monitoring information acquired by the W smart phone may be, for example, a touch event that the display screen of the terminal is not acquired within 10 minutes, the moving distance of the terminal is 1m, and the breathing rate of the user is 65 times/minute. When the W smart phone judges that the acquired monitoring information meets the preset conditions, the W smart phone can close the music playing source. When the W smart phone detects that the music playing source is closed, the connection of the Q Bluetooth headset can be disconnected.

And S205, when the data output by the audio and video application program is video data, adjusting the display screen of the terminal to a screen-off state.

According to some embodiments, when the terminal detects that the data output by the audio and video application program is video data, the terminal completes the closing of the audio and video playing source and adjusts the display screen of the terminal to a screen extinguishing state after the connection of the Bluetooth headset is disconnected. The terminal adjusts the display screen to the screen-off state, so that the electric quantity consumed by the display screen of the terminal for displaying the video data can be reduced, and the electric quantity of the terminal can be saved.

It is easy to understand that when the video application program of the W smart phone plays video data, and the W smart phone determines that the acquired monitoring information meets the preset condition, the W smart phone may close the video playing source, that is, the W smart phone may play the video application program. When the W smart phone detects that the video playing source is closed, the connection of the Q Bluetooth headset can be disconnected. When the W smart phone is disconnected from the Q Bluetooth headset, the W smart phone can adjust the display screen of the W smart phone to a screen extinguishing state.

The embodiment of the application provides a terminal control method, which includes the steps of obtaining monitoring information by establishing connection with a Bluetooth headset, closing an audio and video playing source when one or more of a touch event of a terminal display screen, a moving distance of a terminal is smaller than a preset moving distance and vital sign information of a user are not obtained within a preset range within preset time, and disconnecting the Bluetooth headset when the audio and video playing source is closed. Therefore, when the user is in the sleep state, the terminal can disconnect the Bluetooth headset when the audio and video playing source is closed, the power consumption of the terminal and the Bluetooth headset can be reduced, and the power of the terminal and the Bluetooth headset can be saved. In addition, the terminal is disconnected with the Bluetooth headset, so that the user can not hear the sound of the audio and video when in a sleep state, and the sleep quality of the user can be improved. In addition, when the data output by the audio and video application program of the terminal is video data, the terminal can adjust the display screen of the terminal to a screen-off state after the connection of the Bluetooth headset is disconnected, so that the electric quantity of the display screen of the terminal for displaying the video data can be reduced, and the electric quantity of the terminal can be saved.

The above description mainly introduces the scheme of the embodiment of the present application from the perspective of executing processes on the method side. It is understood that the terminal and the server include hardware structures and/or software modules for performing the respective functions in order to implement the above functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.

In the embodiment of the present application, the server may be divided into the functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.

Fig. 10 shows a schematic structural diagram of a terminal control device according to an embodiment of the present application.

As shown in fig. 10, the terminal control apparatus 1000 includes an information acquisition unit 1001 and a connection disconnection unit 1002, wherein:

an information acquisition unit 1001 for acquiring monitoring information; the monitoring information comprises one or more of input state information of the terminal, moving state information of the terminal and vital sign information of a user;

and the connection disconnection unit 1002 is configured to close audio and video output of the audio and video application program and/or disconnect a connection of the bluetooth headset when the monitoring information meets a preset condition.

According to some embodiments, the disconnection unit 1002 is configured to, when the monitoring information meets a preset condition, close audio and video output of the audio and video application program and/or disconnect a connection of the bluetooth headset, specifically:

in a preset time, when one or more of a touch event of a terminal display screen, a movement distance of a terminal being smaller than a preset movement distance and vital sign information of a user are not acquired in a preset range, closing an audio and video playing source;

and when the audio and video playing source is closed, the connection of the Bluetooth earphone is disconnected.

According to some embodiments, the information obtaining unit 1001 is configured to, when obtaining the monitoring information, specifically:

collecting the breathing sound of a user within a preset time through an audio collection unit;

based on the breathing sound, the breathing frequency of the user is monitored.

According to some embodiments, the terminal control device 1000 further includes a connection establishing unit 1003 for establishing a connection with a bluetooth headset before acquiring the monitoring information;

wherein obtain monitoring information, include:

collecting breathing sound of a user within a preset time through a Bluetooth headset;

based on the breathing sound, the breathing frequency of the user is monitored.

According to some embodiments, the information obtaining unit 1001 is configured to, when obtaining the monitoring information, specifically:

detecting whether the position of the terminal is changed or not through a gyroscope of the terminal within preset time;

and if so, acquiring the moving distance information of the terminal.

According to some embodiments, the terminal control device 1000 further includes a display screen adjusting unit 1004, configured to, when the monitoring information meets a preset condition, close audio and video output of the audio and video application program and/or disconnect a connection of a bluetooth headset, and when data output by the audio and video application program is video data, adjust the terminal display screen to a screen-off state.

According to some embodiments, when acquiring the monitoring information, the embodiments are specifically configured to:

acquiring the pulse rate of a user within preset time through a pulse acquisition unit;

based on the pulse rate, the pulse frequency of the user is monitored.

The embodiment of the application provides a terminal control device, which acquires monitoring information through an information acquisition unit; the monitoring information comprises one or more of input state information of the terminal, mobile state information of the terminal and vital sign information of a user, and the connection disconnection unit closes audio and video output of the audio and video application program and/or disconnects the connection of the Bluetooth headset when the monitoring information meets preset conditions. Therefore, when the user is in a sleep state, the terminal control device can close the audio and video output of the audio and video application program and/or disconnect the connection of the Bluetooth headset, the power consumption of the terminal control device can be reduced, and the power of the terminal control device can be saved. In addition, the terminal control device disconnects the Bluetooth headset, so that the user can not hear audio and video sound when in a sleep state, and the sleep quality of the user can be improved.

Please refer to fig. 11, which is a schematic structural diagram of a terminal according to an embodiment of the present disclosure. As shown in fig. 11, the terminal 1100 may include: at least one processor 1101, at least one network interface 1104, a user interface 1103, a memory 1105, at least one communication bus 1102.

Wherein a communication bus 1102 is used to enable connective communication between these components.

The user interface 1103 may include a Display screen (Display) and a GPS, and the optional user interface 1103 may also include a standard wired interface and a wireless interface.

The network interface 1104 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).

Processor 1101 connects various portions of the overall terminal 1100 using various interfaces and wires, and performs various functions and processes on data of terminal 1100 by executing or executing instructions, programs, code sets, or instruction sets stored in memory 1105, and calling up data stored in memory 1105. alternatively, processor 1101 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable gate array (FPGA), Programmable logic array (Programmable L geographic array, P L a).

The Memory 1105 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1105 includes non-transitory computer-readable storage media. The memory 1105 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1105 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1105 may alternatively be at least one storage device located remotely from the processor 1101. As shown in fig. 11, a memory 1105, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an application program for terminal control.

In the terminal 1100 shown in fig. 11, the user interface 1103 is mainly used as an interface for providing input for a user, and acquiring data input by the user; and the processor 1101 may be configured to invoke an application program of the terminal control method stored in the memory 1105, and specifically perform the following operations:

acquiring monitoring information; the monitoring information comprises one or more of input state information of the terminal, moving state information of the terminal and vital sign information of a user;

and when the monitoring information meets the preset conditions, closing the audio and video output of the audio and video application program and/or disconnecting the connection of the Bluetooth headset.

According to some embodiments, the processor 1101 is configured to, when the monitoring information meets the preset condition, close the audio/video output of the audio/video application and/or disconnect the connection of the bluetooth headset, specifically perform the following steps:

in a preset time, when one or more of a touch event of a terminal display screen, a movement distance of a terminal being smaller than a preset movement distance and vital sign information of a user are not acquired in a preset range, closing an audio and video playing source;

and when the audio and video playing source is closed, the connection of the Bluetooth earphone is disconnected.

According to some embodiments, the processor 1101, when being configured to obtain the monitoring information, is specifically configured to perform the following steps:

collecting the breathing sound of a user within a preset time through an audio collection unit;

based on the breathing sound, the breathing frequency of the user is monitored.

According to some embodiments, before the processor 1101 is configured to obtain the monitoring information, it is further configured to perform the following steps:

establishing connection with a Bluetooth headset;

wherein obtain monitoring information, include:

collecting breathing sound of a user within a preset time through a Bluetooth headset;

based on the breathing sound, the breathing frequency of the user is monitored.

According to some embodiments, the processor 1101, when being configured to obtain the monitoring information, is specifically configured to perform the following steps:

detecting whether the position of the terminal is changed or not through a gyroscope of the terminal within preset time;

and if so, acquiring the moving distance information of the terminal.

According to some embodiments, the processor 1101 is configured to, after closing the audio/video output of the audio/video application and/or disconnecting the bluetooth headset when the monitoring information meets the preset condition, further perform the following steps:

and when the data output by the audio and video application program is video data, adjusting the display screen of the terminal to a screen extinguishing state.

According to some embodiments, the processor 1101, when being configured to obtain the monitoring information, is specifically configured to perform the following steps:

acquiring the pulse rate of a user within preset time through a pulse acquisition unit;

based on the pulse rate, the pulse frequency of the user is monitored.

The embodiment of the application provides a terminal, which acquires monitoring information; the monitoring information comprises one or more of input state information of the terminal, moving state information of the terminal and vital sign information of a user; and when the monitoring information meets the preset condition, the audio and video output of the audio and video application program can be closed and/or the connection of the Bluetooth headset can be disconnected. Therefore, when the user is in a sleep state, the terminal can close the audio and video output of the audio and video application program and/or disconnect the connection of the Bluetooth headset, the power consumption of the terminal can be reduced, and the power of the terminal can be saved. In addition, the terminal is disconnected with the Bluetooth headset, so that the user can not hear audio and video sound when in a sleep state, and the sleep quality of the user can be improved.

The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.

Embodiments of the present application also provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform part or all of the steps of any one of the terminal control methods as described in the above method embodiments.

"Unit" and "module" in this specification refer to software and/or hardware that can perform a particular function, either independently or in conjunction with other components, such as a Field Programmable Gate Array (FPGA), Integrated Circuit (IC), etc.

It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some service interfaces, devices or units, and may be an electrical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.

Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program, which is stored in a computer-readable memory, and the memory may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.

The above description is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure should not be limited thereby. That is, all equivalent changes and modifications made in accordance with the teachings of the present disclosure are intended to be included within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

24页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种MCU实现外设自主动态联动降功耗的方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!