CN111935640A - Terminal control method and device, terminal and storage medium - Google Patents

Terminal control method and device, terminal and storage medium Download PDF

Info

Publication number
CN111935640A
CN111935640A CN202010676893.7A CN202010676893A CN111935640A CN 111935640 A CN111935640 A CN 111935640A CN 202010676893 A CN202010676893 A CN 202010676893A CN 111935640 A CN111935640 A CN 111935640A
Authority
CN
China
Prior art keywords
terminal
preset
located indoors
state
carried
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.)
Granted
Application number
CN202010676893.7A
Other languages
Chinese (zh)
Other versions
CN111935640B (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010676893.7A priority Critical patent/CN111935640B/en
Publication of CN111935640A publication Critical patent/CN111935640A/en
Application granted granted Critical
Publication of CN111935640B publication Critical patent/CN111935640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure provides a terminal control method and device, a terminal and a storage medium. The control method of the terminal comprises the following steps: determining whether the terminal is carried and is located indoors every preset time; and if the terminal is continuously determined to be carried and located indoors for n times, sending out prompt information, wherein n is a positive integer not less than 2. The control method of the terminal provided by the embodiment of the disclosure can send prompt information in time, so that the user can be prevented from staying indoors for a long time, the user is prompted to receive enough sunlight, the eyesight of the user is protected, and the eyesight is prevented from being reduced.

Description

Terminal control method and device, terminal and storage medium
Technical Field
The present disclosure relates to the field of intelligent terminal technologies, and in particular, to a terminal control method and apparatus, a terminal, and a storage medium.
Background
Along with the popularization of intelligent terminals such as mobile phones and the like, more and more teenagers begin to own the intelligent terminals, the examples are reduced when the teenagers excessively use the intelligent terminals, and scientific research shows that the teenagers can effectively reduce the myopia if the teenagers can receive outdoor sunlight for two hours every day in the growth and development process.
Disclosure of Invention
In order to solve the existing problems, the present disclosure provides a control method and apparatus for a terminal, and a storage medium.
The present disclosure adopts the following technical solutions.
In some embodiments, the present disclosure provides a control method of a terminal, including:
determining whether the terminal is carried and is located indoors every preset time;
and if the terminal is continuously carried and located indoors for n times, sending out prompt information, wherein n is a positive integer not less than 2.
In some embodiments, the present disclosure provides a control apparatus of a terminal, including:
the determining unit is used for determining whether the terminal is carried and is positioned indoors every preset time length;
and the reminding unit is used for sending out prompt information if the terminal is continuously carried and is positioned indoors for n times, wherein n is a positive integer not less than 2.
In some embodiments, the present disclosure provides a terminal comprising: at least one memory and at least one processor;
the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method.
In some embodiments, the present disclosure provides a storage medium for storing program code for performing the above-described method.
The control method of the terminal provided by the embodiment of the disclosure can determine whether the terminal is carried and located indoors every preset time, and if the terminal is determined to be carried and located indoors for n times continuously, prompt information is sent out, so that the user can be prevented from staying indoors for a long time, the user is prompted to receive enough sunlight, the eyesight of the user is protected, and the eyesight is prevented from being degraded.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent from the following detailed description, which is to be read in connection with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a flowchart of a control method of a terminal according to an embodiment of the present disclosure.
Fig. 2 is a block diagram of a control device of a terminal according to an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that various steps recited in method embodiments of the present disclosure may be performed in parallel and/or in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
More and more teenagers own intelligent terminals such as mobile phones, the vision of the teenagers is damaged by the aid of the intelligent terminals such as the mobile phones which are frequently used, and researches show that the vision decline can be reduced by receiving certain outdoor sunlight every day.
In some embodiments of the present disclosure, a control method of a terminal is provided, as shown in fig. 1, the control method of the terminal in some embodiments of the present disclosure includes the following steps.
S11: determining whether the terminal is carried and is located indoors every preset time;
in some embodiments of the present disclosure, it may be determined whether the terminal is carried and located indoors every other preset time period, or a plurality of detection time points may be preset, and it is determined whether the terminal is carried and located indoors at each detection time point, where the preset time period may be, for example, 5 minutes. The fact that the terminal is carried means that the user carries the terminal on his body, and detecting whether the terminal is located indoors can mean whether the user is located indoors, so that it is required to determine whether the terminal is carried and located indoors.
S12: and if the terminal is continuously determined to be carried and located indoors for n times, sending out prompt information.
In some embodiments of the present disclosure, n is a positive integer no less than 2, and n may be 12, for example. The terminal is determined to be carried and located indoors for n times continuously, which indicates that the user stays indoors for a certain time continuously, which is unfavorable for the eyesight of the user, for example, when the user is a teenager, the eyesight of the teenager is easily reduced because the user stays indoors for a long time without receiving outdoor sunshine. Therefore, when the preset condition is met, the prompt information is sent out, for example, the prompt information can prompt the user to move outdoors, so that the user can be ensured to receive enough sunlight, the eyesight of the user is protected, and the eyesight is prevented from being degraded.
In some embodiments, if m consecutive times that the terminal is carried and located indoors, m +1 th time that the terminal is not carried or located indoors, and m +1 is less than n, the determined number of times that the terminal is carried and located indoors needs to be counted again.
In some embodiments of the present disclosure, determining whether the terminal is carried and located indoors includes: determining a display state of the terminal, wherein the display state comprises: a bright screen state and a screen-off state; and determining whether the terminal is carried and located indoors according to the display state of the terminal. In this embodiment, it is determined whether the terminal is in the bright screen state or the screen turning-off state, and the bright screen state indicates that the user is using the terminal, so that the terminal can be considered to be carried, and at this time, it is further determined whether the terminal is indoors, but in the screen turning-off state, it does not mean that the terminal is not carried, and further determination is required, and it is determined whether the terminal is indoors.
In some embodiments of the present disclosure, determining whether the terminal is carried and located indoors according to a display state of the terminal includes: if the display state of the terminal is a bright screen state, determining that the terminal is carried; whether the terminal is located indoors is determined according to the number of available satellites of the positioning signal of the terminal, or at least one of motion data, a wireless network signal, ambient light intensity, acceleration data, or a spaced distance from a nearest object, and the number of available satellites.
Specifically, in some embodiments, the positioning signal may be, for example, a GPS signal, and the positioning signal corresponds to the number of searchable satellites and the number of available satellites, and when the terminal is located indoors, the number of available satellites is often 0, while the number of available satellites for positioning signals outdoors is often not 0, so that it may be determined whether the terminal is indoors or outdoors according to the number of available satellites for positioning signals. In some embodiments, whether the terminal is located indoors or not is determined according to at least one of motion data, a wireless network signal, an ambient light intensity, acceleration data, or a separation distance from a nearest object in combination with the number of available satellites, because the number of available satellites may not be normally searched when a terminal positioning signal is weak or interfered by other signals, and at this time, it may be erroneously determined that the terminal is located indoors or outdoors.
In some embodiments of the present disclosure, when determining whether the terminal is located indoors using the number of available satellites of the positioning signal and the motion data, when the number of available satellites of the positioning signal is less than a preset number and the motion data indicates that the number of motion steps in a last certain time period is less than a step threshold, it is determined that the terminal is located indoors, and since the amount of motion of the user tends to be small when the user is indoors, it is determined that the terminal is located indoors if the number of motion steps displayed by the motion data is less than or equal to the step threshold.
In some embodiments of the present disclosure, when determining whether the terminal is located indoors using the number of available satellites of the positioning signal and the wireless network signal, it is determined that the terminal is located indoors when the number of available satellites of the positioning signal is less than a preset number and the strength of the wireless network is greater than a preset wireless network strength. When the terminal is located indoors, a large number of wireless network signals can be detected often, the strength of the wireless network signals is high, and when the terminal is located outdoors, although a certain amount of wireless network signals can be detected, the strength of the wireless network signals can be greatly reduced, so that whether the terminal is located indoors or not can be judged in an auxiliary mode according to the strength of the wireless network signals.
In some embodiments of the present disclosure, when determining whether the terminal is located indoors using the number of available satellites of the positioning signal and the ambient light intensity, it is determined that the terminal is located indoors when the number of available satellites of the positioning signal is less than a preset number and the ambient light intensity is less than a preset light intensity. When a user carries the terminal outdoors, the terminal detects outdoor illumination, and the outdoor illumination intensity is far higher than the illumination intensity of general indoor light, so that whether the terminal is located indoors or not can be determined by combining the ambient illumination intensity.
In some embodiments of the present disclosure, whether the terminal is located indoors is determined using the number of available satellites of the positioning signal and the spaced distance from the nearest object, and when the number of available satellites of the positioning signal is less than the preset number and the spaced distance from the nearest object is less than the preset distance, it is determined that the terminal is located indoors. When the user carrying terminal is located outdoors, the distance between the user carrying terminal and the nearest object is usually larger, and when the user carrying terminal is located indoors, the distance between the user carrying terminal and the nearest object is usually smaller, so that whether the terminal is located indoors or not can be judged by detecting the distance between the terminal and the nearest object. In some embodiments, the intelligent terminal is often provided with an ultrasonic ranging device, so in this embodiment, the ultrasonic ranging device may be used to detect the distance between the terminal and the nearest object, the maximum distance that the ultrasonic ranging device can measure is 10 meters, when the terminal is located indoors, the distance between the terminal and the nearest object may be measured through the ultrasonic ranging device, and when the distance between the terminal and the nearest object exceeds 10 meters, the distance may be displayed as infinity, so the preset distance may be set to be less than 10 meters.
In some embodiments of the present disclosure, whether the terminal is carried and located indoors is determined according to a display state of the terminal, and if the display state of the terminal is a message screen state, whether the terminal is in a carry-on state is determined; if the terminal is not in the carry-on state, determining that the terminal is not carried and is located indoors; and if the terminal is in a carry-on state, determining that the terminal is carried, and determining whether the terminal is located indoors according to the available satellite number of the positioning signal of the terminal, or at least one of motion data, wireless network signals, ambient light intensity, acceleration data or the spacing distance between the terminal and the nearest object and the available satellite number.
Specifically, in some embodiments, the terminal is in the screen turning state, it cannot be directly determined whether the terminal is carried by the user at this time, it needs to be determined whether the terminal is in the carrying state, the carrying state indicates that the user is carried along with the user, and if the terminal is not in the carrying state, it does not need to be determined whether the terminal is located indoors or indoors, it can be directly determined whether the terminal is not carried and located indoors. Whether the terminal is in a portable state can be determined in multiple modes, when the terminal is an android terminal, whether the terminal is in the portable state can be determined through a personal detection function of an android 5.0 version and the above versions, a user can usually put the terminal in a pocket or hold the terminal on the hand under a screen, and therefore whether the terminal is in the portable state can be determined through a motion sensor, a light sensor, a distance sensor and an infrared sensor of the terminal, for example, the position of the user is determined through the infrared sensor, the distance between the terminal and the user is detected to be smaller than a preset distance through the distance sensor, the terminal is detected to be in the motion state through the motion sensor, and the terminal can be determined to be held by the user and carried. Or if the light sensor detects that the brightness of the environment where the terminal is located is lower than the brightness threshold, the distance between the terminal and the nearest object is smaller than the distance threshold, and the terminal detects the motion data, the terminal can be considered to be carried.
In some embodiments of the present disclosure, if the number of available satellites of the terminal is less than or equal to the preset number, it is determined that the terminal is located indoors; since the indoor positioning signal is weaker than the outdoor positioning signal, it can be determined whether the terminal is located indoors or not according to the number of available satellites of the positioning signal. In some optional embodiments, the preset number is 0, and at this time, it is determined that the terminal is located indoors in both the sniff state and the highlight state as long as the available satellites in which the positioning signals are not detected.
In some embodiments of the present disclosure, when the terminal is in a bright screen state, if the number of available satellites is greater than a preset number, it is determined whether the terminal is located indoors according to the ambient light intensity; specifically, when the terminal is on the screen, it is indicated that the terminal is used by the user, and at this time, whether the user is located indoors can be represented by whether the terminal is located indoors, and since the number of available satellites and the ambient light intensity of the positioning signal when the terminal is located indoors are both smaller than the number of available satellites and the ambient light intensity of the positioning signal when the terminal is located outdoors, whether the terminal is located indoors can be determined according to the two factors. When the number of available satellites is larger than the preset number, the terminal is located outdoors with high probability, but sometimes the number of available satellites is large to cause misjudgment when a user is located at a position close to a window, the outdoor brightness is usually far larger than the indoor brightness, and the terminal is used and is not shielded by light when the terminal is in a bright screen, so that whether the terminal is located outdoors or not can be accurately determined by combining the ambient illumination brightness.
In some embodiments of the present disclosure, when the terminal is in a screen saver state, if the number of available satellites is greater than a preset number, it is determined whether the terminal is located indoors according to motion data of the terminal. Specifically, when the terminal is turned off and is carried by the user, because the indoor positioning signal is weaker than the outdoor positioning signal, whether the terminal is located indoors can be determined according to the number of available satellites of the positioning signal, but as above, the number of available satellites is increased when the user is located near a window, so that misjudgment may be generated, the terminal is likely to be placed in a pocket when the terminal is in the screen turning state, and at this time, the position of the terminal is not suitable to be determined by adopting brightness, and the amount of motion of the user when the user is indoors is significantly less than the amount of motion when the user is located outdoors, so that whether the terminal is located indoors can be determined according to motion data, and the motion data here can be data detected by a motion sensor of the terminal itself.
In some embodiments of the present disclosure, determining whether the terminal is located indoors from motion data of the terminal includes: if the step number in the first duration is less than the preset step number, the terminal is located indoors; or, if the step number in the first time period is not less than the preset step number, the terminal is located outdoors. Specifically, when the terminal is in the screen-saving state and is carried, if the user is indoors, the amount of exercise of the terminal is often small, so whether the terminal is indoors can be reflected according to the number of steps in the first duration, and the first duration can be the first duration closest to the current time. Optionally, the first duration may be 5 minutes, and the preset number of steps may be 100 steps, at this time, when the terminal is turned off and carried, if it is detected that the number of steps in the last 5 minutes is less than 100 steps, it indicates that the terminal is located indoors.
In some embodiments of the present disclosure, determining whether the terminal is located indoors according to the ambient light intensity includes: if the ambient illumination intensity is smaller than the preset illumination intensity, the terminal is located indoors; or, if the ambient light intensity is not less than the preset light intensity, the terminal is located outdoors.
In some embodiments, when the terminal is in a bright screen state, it indicates that the user is using the terminal, and when the available star number of the positioning signal is greater than the available star number, it may be caused by the terminal being located near a window or the like, in order to prevent misjudgment, the environment illumination intensity is combined for comprehensive judgment at this time, because the illumination intensity of sunlight is much greater than the illumination intensity of indoor lighting, therefore, if the environment illumination intensity is less than the preset illumination intensity, it indicates that the terminal is actually located indoors at this time, and if the environment illumination intensity is less than the preset illumination intensity, it indicates that the terminal is actually located outdoors at this time. In some alternative embodiments, the ambient light intensity is an average light intensity over a second, consecutive period of time. For example, the ambient light intensity can be detected through a light sensor on the terminal, the second duration can be 1 second, the preset light intensity can be 1000lux, when the position of the terminal needs to be judged in combination with the ambient light intensity in an auxiliary manner, the average value of the light intensity in the previous second is obtained, and the average value is compared with the preset light intensity to determine whether the terminal is located indoors.
In some embodiments of the present disclosure, before issuing the prompt message, the method further includes: determining whether a preset condition is met; if the preset condition is met, the terminal is determined to be carried and located indoors continuously for n times to send out prompt information; when the preset condition is not met, the prompt information is not sent out, wherein the preset condition comprises the following steps: the current time is within a preset time period, the weather condition meets a preset weather condition, the weather change state meets a preset state condition or the human health state meets at least one of the preset health conditions.
Specifically, when the user is in a sleep period, the terminal is located indoors for a long time, but the terminal should not send out a reminder at this time, so a preset time period can be set, the preset time period can be, for example, a period from the rising of the sun to the falling of the sun on the current date, the position information of the terminal can be determined first, then the time from the rising of the sun to the falling of the sun is determined through the position information, the preset time period can also be a user-defined time period of the user, and the mistaken reminding can be prevented by setting the preset time period. In addition, when the weather condition is not good, for example, a geological disaster, rain, snow, cold tide, haze and other situations requiring early warning occur, in practice, the user should not send a prompt message to go outdoors, and in addition, even if the weather condition at the current moment is good, if the weather condition is poor to change immediately, the prompt message should not be sent, so that the preset weather condition and the preset state condition can be set to avoid false prompt, the weather condition can be obtained through the network, optionally, the preset weather condition can include that the current weather is clear or the air quality is at least good, and the preset state condition can be, for example, that the weather does not change in the future m minutes or the weather condition in the future m minutes also conforms to the preset weather condition. In addition, if the body state of the user is not good, for example, when the user is fractured legs and feet or is bedridden, the user cannot go out, and the prompt message should not be sent out at the moment, so that the preset health condition can be preset to prevent error reminding, for example, the preset health condition can be that the body health of the user is not painful, and the user can manually input the health condition information. In some optional embodiments, the preset condition may include at least one of that the terminal is continuously determined to be located indoors n times, that the current time is located within a preset time period, that outdoor weather conditions meet the preset weather conditions, or that human health states meet the preset health conditions, where n is not less than 2.
In order to better illustrate the method proposed by the present disclosure, a specific example is presented below. In this embodiment, a preset time period is set, the preset time period may be a time period from sunrise to sunset, the terminal may first position a determined position, determine the time period from sunrise to sunset according to the positioning, determine, in the process of executing the control method, whether the terminal is carried and located indoors every preset time period, the preset time period may be 5 minutes, and when it is determined whether the terminal is carried and located indoors, first determine whether the terminal is in a screen-off state or a screen-on state.
If the terminal is in an information screen state, determining whether the terminal is in a carry-on state, for example, determining whether the terminal is in the carry-on state through a personal detection function of an android system, after the terminal is determined to be in the carry-on state, determining the available star number of the GPS signal, if the available star number is 0, determining that the terminal is in an indoor state, if the available star number is not 0, acquiring motion data, if the last step number in the first time length is not less than the preset step number, determining that the terminal is in the outdoor state, and if the last step number in the first time length is less than the preset step number, determining that the terminal is in the indoor state.
If the terminal is in a bright screen state, determining the available star number of the GPS signal, if the available star number is 0, determining that the terminal is located indoors, if the available star number is not 0, acquiring the ambient illumination intensity, if the ambient illumination intensity is smaller than the preset illumination intensity, locating the terminal indoors, and if the ambient illumination intensity is larger than the preset illumination intensity, locating the terminal outdoors.
When the terminal is carried and located indoors for n times, a prompt message is sent out to remind the user of going out for movement, wherein n is 12 times for example.
As shown in fig. 2, an embodiment of the present disclosure further provides a control apparatus for a terminal, including
A determining unit 10, configured to determine whether the terminal is carried and located indoors every preset time period;
and the reminding unit 20 is configured to send out a prompt message if it is determined that the terminal is carried and located indoors for n consecutive times, where n is a positive integer not less than 2.
For the embodiments of the apparatus, since they correspond substantially to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative, in that modules illustrated as separate modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
In the above, the terminal control method and apparatus according to the present disclosure have been described based on the embodiments and application examples. In addition, the present disclosure also provides a terminal and a storage medium, which are described below.
Fig. 3, which is preset below, shows a schematic structural diagram of an electronic device (e.g., a terminal device or a server) 800 suitable for implementing an embodiment of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device 800 may include a processing means (e.g., central processing unit, graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, the processes described above with the preset flowcharts may be implemented as computer software programs according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods of the present disclosure as described above.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, including:
determining whether the terminal is carried and is located indoors every preset time;
and if the terminal is continuously determined to be carried and located indoors for n times, sending out prompt information, wherein n is a positive integer not less than 2.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, determining whether the terminal is carried and located indoors, including:
determining a display state of the terminal, wherein the display state comprises: a bright screen state and a screen-off state;
and determining whether the terminal is carried and located indoors according to the display state of the terminal.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, which determines whether the terminal is carried and located indoors according to a display state of the terminal, including:
if the display state of the terminal is a bright screen state, determining that the terminal is carried;
whether the terminal is located indoors is determined according to the number of available satellites of the positioning signal of the terminal, or at least one of motion data, a wireless network signal, ambient light intensity, acceleration data, or a spaced distance from a nearest object, and the number of available satellites.
Or,
if the display state of the terminal is the information screen state, determining whether the terminal is in a carry-on state;
if the terminal is not in the carry-on state, determining that the terminal is not carried and is located indoors;
and if the terminal is in a carry-on state, determining that the terminal is carried, and determining whether the terminal is located indoors according to the available satellite number of the positioning signal of the terminal, or at least one of motion data, wireless network signals, ambient light intensity, acceleration data or the spacing distance between the terminal and the nearest object and the available satellite number.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal,
if the number of the available satellites of the terminal is less than or equal to the preset number, determining that the terminal is located indoors;
or,
when the terminal is in a bright screen state, if the number of available satellites is larger than the preset number, determining whether the terminal is located indoors or not according to the ambient light intensity;
or,
and when the terminal is in a screen-off state, if the number of available satellites is greater than a preset number, determining whether the terminal is located indoors according to the motion data of the terminal.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, which determines whether the terminal is located indoors according to motion data of the terminal, including:
if the step number in the first duration is less than the preset step number, the terminal is located indoors; or,
and if the step number in the first time length is not less than the preset step number, the terminal is located outdoors.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, which determines whether the terminal is located indoors according to ambient light intensity, including:
if the ambient illumination intensity is smaller than the preset illumination intensity, the terminal is located indoors; or,
and if the ambient illumination intensity is not less than the preset illumination intensity, the terminal is located outdoors.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, where the ambient light intensity is an average light intensity in a second continuous period.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, before sending out a prompt message, the method further including: determining whether a preset condition is met;
if the preset condition is met, sending out prompt information;
wherein the preset conditions include: the current time is within a preset time period, the weather condition meets a preset weather condition, the weather change state meets a preset state condition or the human health state meets at least one of the preset health conditions.
According to one or more embodiments of the present disclosure, there is provided a control apparatus of a terminal, including:
the determining unit is used for determining whether the terminal is carried and is positioned indoors every preset time length;
and the reminding unit is used for sending out prompt information if the terminal is continuously determined to be carried and located indoors for n times, wherein n is a positive integer not less than 2.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor;
wherein the at least one memory is adapted to store program code and the at least one processor is adapted to invoke the program code stored in the at least one memory to perform the method of any of the above.
According to one or more embodiments of the present disclosure, there is provided a storage medium for storing program code for performing the above-described method.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (11)

1. A control method of a terminal, comprising:
determining whether the terminal is carried and is located indoors every preset time;
and if the terminal is continuously carried and located indoors for n times, sending out prompt information, wherein n is a positive integer not less than 2.
2. The method of claim 1, wherein determining whether the terminal is carried and located indoors comprises:
determining a display state of the terminal, wherein the display state comprises: a bright screen state and a screen-off state;
and determining whether the terminal is carried and located indoors or not according to the display state of the terminal.
3. The method of claim 2, wherein determining whether the terminal is carried and located indoors according to the display status of the terminal comprises:
if the display state of the terminal is a bright screen state, determining that the terminal is carried;
determining whether the terminal is located indoors according to the number of available satellites of the positioning signal of the terminal, or at least one of motion data, wireless network signals, ambient light intensity, acceleration data, or a spaced distance from a nearest object, and the number of available satellites.
Or,
if the display state of the terminal is the information screen state, determining whether the terminal is in a carry-on state;
if the terminal is not in the carry-on state, determining that the terminal is not carried and is located indoors;
and if the terminal is in a carry-on state, determining that the terminal is carried, and determining whether the terminal is located indoors or not according to the available satellite number of the positioning signal of the terminal, or at least one of motion data, wireless network signals, ambient light intensity, acceleration data or the spacing distance between the terminal and a nearest object and the available satellite number.
4. The method of controlling a terminal according to claim 3,
if the number of available satellites of the terminal is less than or equal to the preset number, determining that the terminal is located indoors;
or,
when the terminal is in a bright screen state, if the number of the available satellites is larger than a preset number, determining whether the terminal is located indoors or not according to the ambient light intensity;
or,
and when the terminal is in a screen-off state, if the number of the available satellites is larger than a preset number, determining whether the terminal is located indoors according to the motion data of the terminal.
5. The method of claim 4, wherein determining whether the terminal is located indoors according to the motion data of the terminal comprises:
if the step counting number in the first duration is less than the preset step counting number, the terminal is located indoors; or,
and if the step number in the first time length is not less than the preset step number, the terminal is located outdoors.
6. The method for controlling the terminal according to claim 4, wherein determining whether the terminal is located indoors according to the ambient light intensity comprises:
if the ambient illumination intensity is smaller than the preset illumination intensity, the terminal is located indoors; or,
and if the ambient illumination intensity is not less than the preset illumination intensity, the terminal is located outdoors.
7. The method according to claim 3, wherein the ambient light intensity is an average light intensity in the second continuous period.
8. The method of controlling a terminal according to claim 1,
before sending out the prompt message, the method further comprises the following steps: determining whether a preset condition is met;
if the preset condition is met, sending out prompt information;
wherein the preset conditions include: the current time is within a preset time period, the weather condition meets a preset weather condition, the weather change state meets a preset state condition or the human health state meets at least one of the preset health conditions.
9. A control apparatus of a terminal, comprising:
the determining unit is used for determining whether the terminal is carried and is positioned indoors every preset time length;
and the reminding unit is used for sending out prompt information if the terminal is continuously carried and is positioned indoors for n times, wherein n is a positive integer not less than 2.
10. A terminal, comprising:
at least one memory and at least one processor;
wherein the at least one memory is configured to store program code and the at least one processor is configured to invoke the program code stored in the at least one memory to perform the method of any of claims 1 to 8.
11. A storage medium for storing program code for performing the method of any one of claims 1 to 8.
CN202010676893.7A 2020-07-14 2020-07-14 Terminal control method and device, terminal and storage medium Active CN111935640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010676893.7A CN111935640B (en) 2020-07-14 2020-07-14 Terminal control method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010676893.7A CN111935640B (en) 2020-07-14 2020-07-14 Terminal control method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111935640A true CN111935640A (en) 2020-11-13
CN111935640B CN111935640B (en) 2023-04-07

Family

ID=73313074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010676893.7A Active CN111935640B (en) 2020-07-14 2020-07-14 Terminal control method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111935640B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112968995A (en) * 2021-03-18 2021-06-15 北京字节跳动网络技术有限公司 Eye protection control method and device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357634A (en) * 2015-09-29 2016-02-24 小米科技有限责任公司 User position change determination method and device
CN106155318A (en) * 2016-06-28 2016-11-23 广东欧珀移动通信有限公司 Sight protectio method, device and the mobile terminal of mobile terminal
CN106303939A (en) * 2015-05-18 2017-01-04 小米科技有限责任公司 The method and device of healthalert
CN106290211A (en) * 2016-08-09 2017-01-04 上海小寻科技有限公司 A kind of method and apparatus for identifying indoor and outdoor surroundings
CN106896387A (en) * 2015-12-21 2017-06-27 中国移动通信集团公司 Determine that portable terminal device is in the method and portable terminal device of indoor and outdoor
CN106973153A (en) * 2017-03-22 2017-07-21 广东小天才科技有限公司 Eyesight protection method and device
CN109003665A (en) * 2018-08-02 2018-12-14 广东小天才科技有限公司 Eyesight detection method, device, equipment and storage medium based on terminal equipment
CN109062755A (en) * 2018-06-29 2018-12-21 珠海市魅族科技有限公司 A kind of mobile terminal usage behavior monitoring based reminding method, device, medium and equipment
CN109062024A (en) * 2018-07-25 2018-12-21 广东小天才科技有限公司 Switching method, device and equipment of reminding mode of smart watch and storage medium
CN109348407A (en) * 2018-10-26 2019-02-15 广东小天才科技有限公司 Outdoor activity time reminding method, device, equipment and medium of wearable equipment
CN111290926A (en) * 2020-03-09 2020-06-16 Oppo广东移动通信有限公司 Terminal prompting method and device, storage medium and terminal

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303939A (en) * 2015-05-18 2017-01-04 小米科技有限责任公司 The method and device of healthalert
CN105357634A (en) * 2015-09-29 2016-02-24 小米科技有限责任公司 User position change determination method and device
CN106896387A (en) * 2015-12-21 2017-06-27 中国移动通信集团公司 Determine that portable terminal device is in the method and portable terminal device of indoor and outdoor
CN106155318A (en) * 2016-06-28 2016-11-23 广东欧珀移动通信有限公司 Sight protectio method, device and the mobile terminal of mobile terminal
CN106290211A (en) * 2016-08-09 2017-01-04 上海小寻科技有限公司 A kind of method and apparatus for identifying indoor and outdoor surroundings
CN106973153A (en) * 2017-03-22 2017-07-21 广东小天才科技有限公司 Eyesight protection method and device
CN109062755A (en) * 2018-06-29 2018-12-21 珠海市魅族科技有限公司 A kind of mobile terminal usage behavior monitoring based reminding method, device, medium and equipment
CN109062024A (en) * 2018-07-25 2018-12-21 广东小天才科技有限公司 Switching method, device and equipment of reminding mode of smart watch and storage medium
CN109003665A (en) * 2018-08-02 2018-12-14 广东小天才科技有限公司 Eyesight detection method, device, equipment and storage medium based on terminal equipment
CN109348407A (en) * 2018-10-26 2019-02-15 广东小天才科技有限公司 Outdoor activity time reminding method, device, equipment and medium of wearable equipment
CN111290926A (en) * 2020-03-09 2020-06-16 Oppo广东移动通信有限公司 Terminal prompting method and device, storage medium and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112968995A (en) * 2021-03-18 2021-06-15 北京字节跳动网络技术有限公司 Eye protection control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111935640B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US10278197B2 (en) Prioritizing beacon messages for mobile devices
US9582317B2 (en) Method of using use log of portable terminal and apparatus using the same
CN105099870B (en) A kind of information push method and device
EP3128793A1 (en) Method of providing route information and electronic device for processing same
CN105682057B (en) A kind of message notifying device and message prompt method
CN111310815A (en) Image recognition method and device, electronic equipment and storage medium
CN113220176B (en) Display method and device based on widget, electronic equipment and readable storage medium
KR20180094699A (en) Electronic device for measuring gas and method thereof
CN106878552A (en) A kind of based reminding method and terminal
KR20160106410A (en) Electronic device with connection and operation method thereof
CN113032172A (en) Abnormity detection method and device and electronic equipment
KR20180131863A (en) Electronic device for providing information related to a smart watch and method for operating the same
KR102598270B1 (en) Method for recognizing of boarding vehicle and electronic device for the same
CN105939517B (en) A kind of method and apparatus preventing mobile terminal access pseudo-base station
CN111935640B (en) Terminal control method and device, terminal and storage medium
CN112256371A (en) Method and device for displaying information and electronic equipment
CN113093980A (en) Terminal control method and device, terminal and storage medium
WO2022022335A1 (en) Method and apparatus for displaying weather information, and electronic device
CN110730262A (en) Environment brightness value detection method and device and electronic equipment
KR20150008653A (en) Method for utilizing Usage Log of Portable Terminal and Apparatus for using the same
CN111123326B (en) Positioning method, positioning device, storage medium and terminal
CN111930439A (en) Virtual card switching method and device and electronic equipment
CN111930228A (en) Method, device, equipment and storage medium for detecting user gesture
CN111867203B (en) Working mode switching method, device, equipment and medium of desk lamp
CN113824461B (en) Positioning method and system based on smart watch and mobile 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