CN108702417B - Terminal control method and terminal - Google Patents

Terminal control method and terminal Download PDF

Info

Publication number
CN108702417B
CN108702417B CN201780012406.3A CN201780012406A CN108702417B CN 108702417 B CN108702417 B CN 108702417B CN 201780012406 A CN201780012406 A CN 201780012406A CN 108702417 B CN108702417 B CN 108702417B
Authority
CN
China
Prior art keywords
light
rule
terminal
intensity value
light intensity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201780012406.3A
Other languages
Chinese (zh)
Other versions
CN108702417A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN108702417A publication Critical patent/CN108702417A/en
Application granted granted Critical
Publication of CN108702417B publication Critical patent/CN108702417B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a terminal control method and a terminal. The method comprises the following steps: under the condition that the protective shell is in an open state, the terminal controls the light-emitting device to be switched on and off according to a first rule, and when the change rule of the first light intensity value received by the light sensor is detected to be in accordance with the first rule, the terminal executes a first operation; under the condition that the protective shell is in the closed state, the terminal performs on-off control on the light-emitting device according to the second rule, and when the change rule of the second light intensity value received by the light sensor is detected to be inconsistent with the second rule, the terminal executes the second operation, wherein the protective shell is provided with the light guide strip, and the light guide strip covers the light-emitting device and the light sensor which are arranged on the terminal when the protective shell is in the closed state. The invention also provides a terminal control method and a terminal. By the method provided by the embodiment of the invention, the terminal can be controlled by the protective shell through the light-emitting device and the light sensor without depending on a Hall sensor.

Description

Terminal control method and terminal
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a terminal control method and a terminal.
Background
At present, various terminals, such as smart phones, tablet computers and the like, have become essential communication, entertainment and living tools in people's lives. Accessory products of the terminal, such as a protective case, are also widely used in the terminal with functions of falling prevention, scratch prevention, beauty and the like. At present, the protective shell of the terminal can protect the terminal and also has other auxiliary functions, such as controlling the terminal through the protective shell. For example, the screen locking function of the protective case: when a user closes the protective shell of the terminal, the terminal locks the screen; the leather sheath is opened by the user, the terminal wakes up the screen, so that the power consumption of the terminal is saved, and the operation of the user is facilitated.
The control principle of the existing protective shell on the terminal is mainly that a magnetic field generated by a magnet of a turnover cover of a leather sheath is sensed through a Hall sensor arranged in the terminal so as to identify the state of the protective shell. However, in order to reduce the cost, reduce the thickness of the terminal, and the like, the hall sensor is partially omitted from the terminal, and thus the control of the protective case over the terminal cannot be realized.
Disclosure of Invention
The embodiment of the invention provides a terminal control method and a terminal, which can realize the control of a protective shell on the terminal without depending on a Hall sensor.
In a first aspect, an embodiment of the present invention provides a terminal control method, including:
under the condition that the protective shell is in an open state, the terminal controls the light-emitting device to be switched on and off according to a first rule, and when the change rule of the first light intensity value received by the light sensor is detected to be in accordance with the first rule, the terminal executes a first operation;
under the condition that the protective shell is in a closed state, the terminal controls the light-emitting device to be switched on and off according to a second rule, and when the change rule of a second light intensity value received by the light sensor is detected to be inconsistent with the second rule, the terminal executes a second operation;
the protective shell is provided with a light guide strip, and the light guide strip covers the light-emitting device and the light sensor which are arranged on the terminal when the protective shell is in a closed state.
As can be seen, in the terminal control method provided in the embodiment of the present invention, when the protective cover is in the open state, the terminal performs on-off control on the light emitting device according to the first rule, and when it is detected that a change rule of the first light intensity value received by the light sensor matches the first rule, it indicates that the terminal detects a closing operation of the protective cover, and the terminal may perform the first operation, such as a sleep operation; the terminal controls the light-emitting device according to the second rule under the condition that the protective shell is in a closed state, and when the change rule of the second light intensity value received by the light sensor is detected to be inconsistent with the second rule, the terminal detects the opening operation of the protective shell and can execute the second operation.
In an embodiment of the present invention, an implementation manner of the terminal performing on-off control on the light emitting device according to the first rule with the protective case in the open state may be: the terminal acquires a light intensity value through a light sensor; when the light intensity value is larger than the first light intensity threshold value and the change of the light intensity value acquired from the moment T1 to the moment T0 is detected to be larger than the second light intensity threshold value, the terminal controls the light-emitting device to be switched on and off for N periods according to a first rule; n is a positive integer; time T0 is the current time, T1 is the time of the first duration before the current time;
when detecting that the change rule of the light intensity value received by the light sensor conforms to the first rule, one embodiment of the terminal performing the first operation may be: when detecting that the change rule of the first light intensity value received by the light sensor is in accordance with the first rule, the terminal executes a first operation.
Therefore, in the embodiment of the invention, the terminal identifies that the current state of the protective shell is the open state by detecting that the light intensity value is greater than the first light intensity threshold value, and the on-off control of the light-emitting device is performed only when the change of the light intensity value is greater than the second light intensity threshold value, so that the interference to the user of the terminal caused by frequent light emission of the light-emitting device when the protective shell is in the open state is avoided, and the energy consumption of the terminal is further saved.
In one embodiment of the present invention, the method may further comprise:
when the light intensity value is not greater than the first light intensity threshold value, the terminal detects whether a user operation is received within a time period from a time T0 to a time T2; time T0 is the current time, T2 is the time of a second duration after the current time;
when the terminal does not receive the user operation from the time T0 to the time T2, the terminal performs on-off control on the light-emitting device for N periods according to a first rule;
and when detecting that the change rule of the first light intensity value received by the light sensor is in accordance with the first rule, the terminal executes a first operation.
Therefore, the embodiment of the invention provides a state detection method of a protective shell in a dark environment, when a terminal is in the dark environment, the terminal identifies the state of the protective shell by detecting user operation, namely when the terminal detects the user operation, the protective shell is in an open state, and when no user operation time is detected to be longer than a second time length, the terminal is triggered to carry out on-off control on a light-emitting device, so that whether the closed operation of the protective shell occurs or not is detected.
In an embodiment of the present invention, an implementation manner of the terminal performing on-off control on the light emitting device for N periods according to the first rule may be: the terminal controls the light-emitting device to be switched on and off for N periods at a first frequency;
when detecting that the change rule of the first light intensity value received by the light sensor conforms to the first rule, one embodiment of the terminal performing the first operation may be: detecting whether the change frequency of the first light intensity value received by the light sensor is a first frequency; when the change frequency of the first light intensity value received by the light sensor is the first frequency, the terminal executes a first operation.
Therefore, the terminal can send the optical signal at a certain frequency by controlling the light-emitting device, the confusion with the optical signal in the environment received by the optical sensor can be avoided, and the accuracy of state identification of the protective shell by the terminal can be improved.
In one embodiment of the present invention, the terminal performing on-off control of the light emitting device according to the second rule with the protective case in the closed state includes: the terminal controls the light-emitting device to be switched on and off at a second frequency;
when detecting that the change rule of the second light intensity value received by the light sensor does not accord with the second rule, the terminal executes a second operation comprising: detecting whether the change frequency of the second light intensity value received by the light sensor is the second frequency; when the change frequency of the second light intensity value received by the light sensor is the second frequency, the terminal executes the second operation.
Therefore, the terminal can send the optical signal at a certain frequency by controlling the light-emitting device, the confusion with the optical signal in the environment received by the optical sensor can be avoided, and the accuracy of state identification of the protective shell by the terminal can be improved.
In a second aspect, an embodiment of the present invention further discloses a terminal, where the terminal includes a functional module, and the functional module is configured to execute some or all of the steps described in any method in the first aspect of the present invention.
In a third aspect, an embodiment of the present invention further discloses a terminal, where the terminal includes: a processor, a memory, a light sensor, a light emitting device, and a communication bus; the processor is connected to the memory, the light sensor and the light emitting device through the communication bus;
the processor is configured to call the program code and data stored in the memory, and to perform some or all of the steps described in any of the methods of the first aspect.
In a fourth aspect, an embodiment of the present invention further discloses various terminal control methods, including:
the terminal controls the on-off of the light-emitting device according to a first rule;
when detecting that the change rule of the light intensity value received by the light sensor is changed from not meeting the first rule to meeting the first rule, the terminal executes a first operation;
when the change rule of the light intensity value received by the light sensor is detected to be changed from being in accordance with the first rule to being out of accordance with the first rule, the terminal executes a second operation;
the protective shell is provided with a light guide strip, and the light guide strip covers the light-emitting device and the light sensor which are arranged on the terminal when the protective shell is in a closed state.
It can be seen that, the terminal control method provided by the embodiment of the present invention performs on-off control on the light emitting device according to the first rule, and executes the first operation when detecting that the change rule of the light intensity value received by the light sensor changes from not conforming to the first rule to conforming to the first rule; and when the change rule of the light intensity value received by the light sensor is detected to be changed from being in accordance with the first rule to being not in accordance with the first rule, the terminal executes a second operation. According to the terminal control method provided by the embodiment of the invention, the Hall sensor is not relied on, the terminal can be controlled by the protective shell through the light-emitting device and the light sensor, and the problem that the energy consumption is increased because the terminal continues to run programs after a user buckles the protective shell is avoided.
In one embodiment of the present invention,
one embodiment of the terminal performing on-off control on the light-emitting device according to the first rule may be: the terminal controls the light-emitting device to be switched on and off at a first frequency;
when detecting that the change rule of the light intensity value received by the light sensor changes from not meeting the first rule to meeting the first rule, the terminal executes the first operation in an embodiment mode that: when the frequency of the light intensity value received by the light sensor is detected to be changed from the non-first frequency to the first frequency, the terminal executes a first operation;
when detecting that the change of the light intensity value received by the light sensor changes from being in accordance with the first rule to being out of accordance with the first rule, the terminal may perform the second operation in an embodiment that: the terminal performs a second operation when it is detected that the frequency of the light intensity value received by the light sensor is changed from the first frequency to a non-first frequency.
Therefore, the terminal can send the optical signal at a certain frequency by controlling the light-emitting device, the confusion with the optical signal in the environment received by the optical sensor can be avoided, and the accuracy of state identification of the protective shell by the terminal can be improved.
In a fifth aspect, an embodiment of the present invention further discloses a terminal, where the terminal includes a functional module, and the functional module is configured to execute some or all of the steps described in any method in the fourth aspect of the present invention.
In a sixth aspect, an embodiment of the present invention further discloses a terminal, where the terminal includes: a processor, a memory, a light sensor, a light emitting device, and a communication bus; the processor is connected to the memory, the light sensor and the light emitting device through the communication bus;
the processor is configured to call the program code and data stored in the memory, and perform some or all of the steps described in any of the methods of the fourth aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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.
Fig. 1 is a front view of a terminal and a protective case when the protective case is in an open state according to an embodiment of the present invention;
FIG. 2 is a schematic cross-sectional view illustrating the working principle of a light guide bar according to an embodiment of the present invention;
FIG. 3 is a schematic cross-sectional view illustrating another working principle of a light guide bar according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a setting manner of a light guide bar according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another arrangement of light guide bars according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 7 is a terminal control method according to an embodiment of the present invention;
fig. 8 is another terminal control method according to an embodiment of the present invention;
fig. 9 is a schematic diagram illustrating a detection principle of a variation law of a first light intensity value according to an embodiment of the present invention;
fig. 10 is a flowchart illustrating a further terminal control method according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of another terminal provided in the embodiment of the present invention;
fig. 12 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
Fig. 1 is a front view of a terminal and a protective case when the protective case is in an open state according to an embodiment of the present invention. The embodiments of the terminal control method of the present invention may be implemented based on a system composed of the terminal 11 and the protective case 12. Among them, the terminal 11 may include a light emitting device 111 and a light sensor 112; the protective case 12 may include: a base plate 121 for fixing the terminal and a flip cover 122. Alternatively, the base plate 121 and the flip cover 122 may be an integral structure. Light guide strips 1221 are provided at positions of flip cover 122 corresponding to light emitting device 111 and light sensor 112. When the protective case is in the closed state, the light guiding strip 1221 covers the light emitting device 111 and the light sensor 112 on the terminal 11, so that light emitted from the light emitting device 111 is transmitted to the light sensor 112 through the light guiding strip 1221. The light emitting device 111 is used for emitting visible light, infrared light, ultraviolet light, and the like, and may be an indicator lamp, an infrared light emitting diode, a laser, and the like. The optical sensor 112 is used for receiving an external optical signal, and may also process the received optical signal.
In an embodiment of the application, can realize transmitting the light that light emitting device emitted to light sensor through the leaded light strip through the principle of specular reflection. Referring to fig. 2, fig. 2 is a schematic cross-sectional view illustrating a working principle of a light guide bar according to an embodiment of the present invention. When the protective case is in the closed state, the protective case 122 covers over the terminal 11, and the light guide bar 1221 on the flip cover 122 covers the light emitting device 111 and the light sensor 112 of the terminal 11. The light guiding strip 1221 may be composed of a light guiding material (e.g., glass, a transparent resin material, a transparent polymer material, etc.). The light guiding strip 1221 is a trapezoidal body, and the first side 12211 and the second side 12212 of the light guiding strip 1221 include a reflective layer, and the material of the reflective layer may be a metal film. The first side 12211 and the second side 12212 are at an angle of 45 ° to the third side 12213 of the light guiding strip, and the first side 12211 and the second side 12212 are located above the light emitting device 111 and the light sensor 112, respectively, in the closed state of the protective cover. It is understood that when the protective case is in the closed state, the light emitted from the light-emitting device 111 is reflected by the first side surface 12211 and the second side surface 12212, respectively, and then transmitted to the light sensor 112, as shown by the propagation path of the light shown by the dotted line in fig. 2.
In another embodiment of the present application, the light emitted from the light emitting device can be transmitted to the light sensor through the light guide bar by the principle of diffuse reflection or total reflection. Referring to fig. 3, fig. 3 is a schematic cross-sectional view illustrating another working principle of a light guide bar according to an embodiment of the present invention. When the protective case is in the closed state, the cover 122 of the protective case is over the terminal 11, and the light guiding strip 1221 on the flip cover 122 covers the light emitting device 111 and the light sensor 112 of the terminal 11. The light guiding strip 1221 may be a rectangular parallelepiped structure or a cylindrical structure, and the light guiding strip 1221 may include a first material layer 12211 and a second material layer 12212, where the second material layer 12212 partially covers the first material layer 12211, and the positions of the second material layer 12212 relative to the light emitting device 111 and the light sensor 112 are provided with a first through hole 122121 and a second through hole 122122. The first material layer 12211 may be made of a light guide material (e.g., glass, a transparent resin material, a transparent polymer material, etc.), and the second material layer 12212 may be a coating made of a non-light guide material, such as a metal coating, a polymer coating, etc. It will be appreciated that when the protective case is in the closed state, light emitted by the light emitting device 111 is reflected by the second material layer 12212 and transmitted to the light sensor 112.
Alternatively, the light guiding strip 1221 may be an optical fiber, the first material layer 12211 constituting a core, and the second material layer 12212 constituting a cladding. It is understood that the refractive index of the first material layer 12211 is greater than the refractive index of the second material layer 12212. It is understood that when the protective case is in the closed state, the light emitted from the light emitting device 111 is totally reflected at the interface between the first material layer 12211 and the second material layer 12212, and is transmitted to the light sensor 112 through the fiber core.
Wherein d1 is more than 0, d2 is more than 0, d3 is more than 0, d4 is more than 0, and L is more than d1+ d2+ d3+ d 4. It can be understood that after the protective case is used for a long time, abrasion, aging, etc. may occur, and at this time, when the protective case is in the closed state, slight misalignment may occur when the flip cover 122 covers the terminal, which may be ensured by setting the sizes of d1, d2, d3, and d4, and when the protective case is in the closed state, the first through hole 122121 and the second through hole 122122 are respectively located above the light emitting device 111 and the light sensor 112, so that the light emitted by the light emitting device 111 may be transmitted to the light sensor 112.
It should be noted that the light guide bar shown in fig. 2 or 3 may be embedded in the flip cover or embedded in the flip cover. Please refer to fig. 4 and 5.
Fig. 4 is a schematic structural diagram of an arrangement manner of a light guide bar according to an embodiment of the present invention. The light guide strip 401, which may serve as a decoration, is embedded in flip cover 402.
Fig. 5 is a schematic structural diagram of another arrangement of light guide bars according to an embodiment of the present invention. The light guide strip 401 is embedded in the flip cover 402.
It should also be noted that the terminal may include at least two light emitting devices, such as a first indicator light and a second indicator light, where the first indicator light is used to implement the mobile terminal control method described in the embodiments of the present application in cooperation with the light sensor. The second indicator light may be used to indicate power, information, missed calls, etc. It can be understood that when the protective housing is in the closed state, the light guide strip covers the first indicator light and does not cover the second indicator light, so that the light emitted by the second indicator light does not influence the identification of the terminal on the state of the protective housing.
It should be noted that the light-emitting device may emit light with different wavelengths, and the light with different wavelengths may prompt the user of the terminal for different prompting contents. For example, the indicator light displays that the residual capacity of the red indicating terminal is less than 10%; the indicating lamp displays green to indicate that the terminal receives a new message or has a missed call; the light emitted by the indicator light used in the terminal control method of the present application may be light having a wavelength different from the above-mentioned wavelength, for example, non-visible light (e.g., infrared light), so as to avoid confusion with the function and use of the indicator light in the prior art.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal includes at least one processor 610, a memory 620, an input device 630, an output device 640, and a communication module 650, the processor may be connected to the memory 620, the input device 630, the output device 640, and the communication module 650 through a communication bus 660. The input device 630 includes a light sensor 6301. The output device 640 may include a light-emitting apparatus 6401.
The processor 610 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing computer programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby integrally monitoring the terminal. Optionally, processor 610 may include one or more processing cores; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The memory 620 may be used to store computer programs and modules, and the processor 610 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the terminal (such as a parking lot map, a geographical position, and the like described in the embodiment of the present invention), and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 620 may also include a memory controller to provide the processor 610 and the input device 630 access to the memory 620.
The input device 630 may be used to receive entered numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. The input device 630 includes a light sensor 6301, and the light sensor 6301 is used to acquire light signals in the environment, so as to implement the terminal control method described in each embodiment of the present invention. Input device 630 may also include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display panel or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, and can receive and execute commands sent by the processor 610. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. Input device 630 may include other input devices in addition to touch-sensitive surfaces. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The input device 630 may further include other sensors or means, such as at least one of a gyro sensor for detecting information of a moving direction of the terminal, an acceleration sensor, a gravity sensor, an image sensor, a distance detection means, and the like; the acceleration sensor is used for detecting the change information of the moving speed of the terminal; the distance detection device may be a laser distance measurement device, an acoustic distance measurement device, an image distance measurement device, or the like, and may be used to detect a distance value or the like according to an embodiment of the present invention; as for other sensors, which can be configured in the terminal, the detailed description is omitted here.
The output device 640 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal (such as the movement trace display interface described in the embodiments of the present invention, etc.) which may be composed of graphics, text, icons, video, and any combination thereof. The output device 640 may include a light-emitting apparatus 6401, a display panel, and the like, and the light-emitting apparatus 6401 may be an indicator lamp, an infrared light-emitting diode, a laser, and the like. Alternatively, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 610 to determine the type of touch event, and then the processor 610 provides a corresponding visual output on the display panel according to the type of touch event. The touch-sensitive surface and the display panel may implement input and output functions as two separate components, but in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
Optionally, the terminal may further include a communication module 650, and the communication module 650 is configured to establish a communication channel, enable the terminal to connect to a correspondent node through the communication channel, and interact data with the correspondent node through the communication channel. The communication module may include a bluetooth module, an NFC module, a mobile communication module, a WiFi module, a positioning module (e.g., a GPS module), and the like. The terminal may assist the user in e-mailing, browsing web pages, accessing streaming media, etc. through the communication module 650.
It should be noted that although fig. 6 shows the communication module 650, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted as needed within a range not changing the essence of the invention.
Specifically, in the embodiment of the present invention, the processor 610 is configured to call the program code stored in the memory 620 (non-volatile memory) to execute the steps of the embodiment of the present invention:
the processor 610 in the terminal can be coupled to the at least one memory 620, and can call the executable program code in the at least one memory 620 to execute the terminal processing method shown in fig. 7, 8 and 10 disclosed in the embodiment of the present invention. The following discusses the terminal control method provided by the embodiment of the present invention in detail.
Referring to fig. 7, fig. 7 is a terminal control method according to an embodiment of the present invention.
Step S100: the terminal detects the current state of the protective case.
Specifically, the state of the protective case includes an open state and a closed state, and when the terminal detects that the current state of the protective case is the open state, the terminal may perform step S200 and step S300; when the terminal detects that the current state of the protective case is the closed state, the terminal may perform steps S400 and S500.
Referring to fig. 8, fig. 8 is a flowchart illustrating another terminal control method according to an embodiment of the present invention. Wherein electronically detecting a current state of the protective case may comprise: steps S101, S102, S103, S104, S105, and the like.
Step S101: the terminal obtains the light intensity value through the light sensor.
It is understood that the light sensor can acquire light energy in the environment and convert the light energy into an electrical signal to acquire a light intensity value.
Step S102: the terminal judges whether the light intensity value is larger than the first light intensity threshold value.
Specifically, in a case where light is sufficient in the environment, the light intensity value detected by the light sensor when the protection covers are respectively in the open state is much larger than the light intensity value detected by the light sensor when the protection covers are respectively in the closed state. And under the condition that the light is insufficient in the environment, the light intensity value detected by the terminal through the light sensor is smaller when the protective shell is respectively in the open state and the closed state. The first light intensity threshold value is not less than a light intensity value obtained by the terminal through the light sensor when the ambient light is sufficient and the protective shell is in a closed state.
When the light intensity value is greater than the first light intensity threshold value, it indicates that the protective case is in an open state and the light is sufficient in the current environment, and the terminal may execute step S103; when the light intensity value is not greater than the first light intensity threshold, it indicates that the protective case is in the closed state, or indicates that the protective case is in the open state and there is no light source or insufficient light in the current environment, and the terminal may execute step S104.
Step S103: the terminal detects whether or not the change in the light intensity value acquired from the time T1 to the time T0 is larger than the second light intensity threshold.
The time T0 is the current time, and T1 is the time a first time period before the current time. The first time period may be 0.5s, 1s, 2s, or the like.
When the light is sufficient in the environment, and the protective shell is changed from the open state to the closed state, the light intensity value detected by the terminal in the state change time of the protective shell can send strong fluctuation, that is, the change of the light intensity value acquired in the time period is greater than the second light intensity threshold value. The second light intensity threshold may be a difference between a minimum light intensity value obtained by the terminal when the light is sufficient in the environment and the protective case is in the open state and a maximum light intensity value obtained by the terminal when the light is sufficient in the environment and the protective case is in the closed state.
If the detected change of the light intensity value is larger than the second light intensity threshold value, it indicates that a shelter shelters the light sensor of the terminal, or the environment is changed from sufficient light to insufficient light, the shelter may be a hand of a user or a turnover cover of the protective shell, and at this time, the terminal may execute step 200; if the detected change of the light intensity value is not larger than the second light intensity threshold value, the state of the protective shell does not change greatly, and the terminal can execute the step S101 to obtain the light intensity value again through the light sensor.
Step S104: the terminal detects whether a user operation is received within a time T0 to a time T2.
Specifically, under the condition that the terminal receives user operation, the protective shell is in an open state; when the terminal does not receive the user operation, the terminal may be in an open state or a closed state. The terminal may monitor the user operation in real time, and when the terminal detects that the user operation is not received from the time T0 to the time T2, the terminal may be triggered to perform the step S200.
Where the time T0 is the current time, and T2 is a time after the current time by a second time period, which may be 5s, 10s, 16s, etc. The second duration may be less than a no-operation response duration set by the terminal to enter the auto sleep. The user operation may be an operation input by a user through a keyboard, a mouse, a key, a touch screen, a remote controller, or the like, for example, a click operation on a target on the touch screen of the terminal.
When the terminal detects that the user operation is received within the time T0 to the time T2, the user is considered to be using the terminal, and the protective case of the terminal is in an open state, at this time, the terminal may perform the step S101, and may also continue to perform the step S104; when the terminal detects that the user operation is not received within the time T0 to the time T2, it is considered that the user stops the operation on the terminal, and the user may perform a closing operation on the protective case, at this time, the terminal may perform step S200 to further verify whether the protective case is closed.
It will be appreciated that the terminal may also identify or assist in identifying the current state of the protective case by other means or methods. For example, the terminal may include a pressure sensor, when the protective case of the terminal is in the closed state, the pressure sensor may detect pressure information generated by the flip cover of the protective case covering the pressure sensor, and when the terminal detects that the pressure information is greater than a preset pressure threshold value through the pressure sensor, the protective case is identified to be in the closed state; otherwise, the protective case is in an open state.
For another example, the terminal may include a distance detection device disposed on a front surface of the terminal, and the distance of the object located directly above the terminal may be detected by the distance detection device. When the protective housing is in the closed state, the turnover cover is tightly attached to the distance detection device, and the distance value detected by the terminal is far smaller than the distance value detected by the distance detection device when the protective housing is in the open state. When the distance value detected by the distance detection device is smaller than a preset distance threshold value, such as 1cm, identifying that the protective shell is in a closed state; otherwise, the protective case is in an open state.
For another example, the terminal may also recognize the current state of the protective case through a hall sensor.
Step S200: the terminal controls the light-emitting device to be switched on and off according to a first rule, and detects whether a change rule of a first light intensity value received by the light sensor is consistent with the first rule.
Specifically, referring to the light guiding principle of the light guiding strip in the protective shell shown in fig. 2 or fig. 3, it can be seen that when the protective shell is in an open state, almost all light emitted by the light emitting device is diffused into the surrounding environment, and light which can be captured by the light sensor is little enough to represent information carried by regular opening and closing of the light emitting device; only when the protective shell is in the closed state, the light sensor can detect the regular change of the first light intensity value or the change rule of the first light intensity value which is consistent with the first rule.
The first rule may be a rule that the terminal forms by controlling the turn-on time and the turn-off time of the light emitting device. The first law may be periodic on-off control, such as turning on the indicator light after 1s, turning off the indicator light after 2s, and turning on the indicator light after 2s, and the on-off control of the light emitting device is performed periodically.
For example, referring to fig. 9, fig. 9 is a schematic diagram illustrating a detection principle of a variation law of a first light intensity value according to an embodiment of the present invention, and the terminal may perform on-off control on the light emitting device to exhibit the first law as shown by a square wave 901, where a high level indicates that the light emitting device is in an on state, and a low level indicates that the light emitting device is in an off state. It will be appreciated that the square wave has a certain frequency, duty cycle, etc.
The first light intensity value received by the light sensor when the protective cover is in the closed state forms an image as shown by waveform 902. In the first aspect, the terminal may analyze whether the waveform 902 is a regularly changing waveform, for example, whether a specific frequency is included, and when the waveform 902 is a regularly changing waveform, a change rule of the first light intensity value received by the light sensor conforms to the first rule. In a second aspect, the terminal may analyze the frequency of the waveform 902, and when the frequency of the waveform 902 is equal to or different from the frequency of the square wave 901 by a preset threshold (e.g., 1Hz, etc.), a change rule of the first light intensity value received by the light sensor is consistent with the first rule. In a third aspect, the terminal may calculate a duty ratio of the waveform 902 and a duty ratio of the square wave 901, and when a difference between the duty ratio of the waveform 902 and the duty ratio of the square wave 901 is smaller than a preset threshold, for example, 0.05, a change rule of the first light intensity value received by the light sensor coincides with the first rule. In the fourth aspect, the terminal may perform filtering processing on the waveform 902, for example, after performing comparison operation, to form a waveform 903, and determine whether a variation rule of the first light intensity value received by the sensor matches the first rule by comparing whether the frequencies of the square wave 901 and the waveform 903 are equal to each other or whether a difference between duty ratios of the square wave 901 and the waveform 903 is smaller than a preset threshold, as described in the second aspect and the third aspect.
It can be understood that when the terminal is placed in a user pocket or a running vehicle, the protective shell may be opened and closed continuously at a small angle due to regular walking of a user or regular bumping of the vehicle, and the terminal can detect regular change of the first light intensity value, and at the moment, whether the frequency or duty ratio of the first light intensity value is consistent with the first rule can be further judged, and if so, the change rule of the first light intensity value received by the light sensor is consistent with the first rule.
It is understood that when the protective case is in the open state, in step S200, the terminal may perform on-off control of the light-emitting device for 1 cycle, or may perform on-off control for multiple cycles.
When the change rule of the first light intensity value received by the light sensor conforms to the first rule, the protective shell enters a closed state, and the terminal can execute the step S300; otherwise, the protective shell is in an open state, the terminal may execute step S100, step S101, or step S104, and the terminal may also control the terminal to enter the sleep state when it is monitored that the non-operation duration of the terminal exceeds the non-operation response duration of the terminal that is set to enter the automatic sleep.
Step S300: the terminal performs a first operation.
Specifically, when it is detected that a change rule of the first light intensity value received by the light sensor conforms to the first rule, the terminal detects a closing operation of the protective shell, and the terminal can execute the first operation. The first operation may be a sleep operation or a screen-off operation to reduce power consumption of the terminal.
Step S400: and the terminal controls the light-emitting device to be switched on and off according to the second rule and detects whether the change rule of the second light intensity value received by the light sensor is consistent with the second rule.
Specifically, when the protective case is identified to be in the closed state by the terminal, the terminal may perform on-off control on the light-emitting device according to the second rule, where the description of the second rule and the detection principle of the change rule of the second light intensity value may be referred to in step S200 for the description of the detection principle of the first rule and the change rule of the first light intensity value, which is not repeated herein. The second law may be the same as or different from the first law, that is, the frequency, duty ratio, and the like included in the second law may be the same as or different from the frequency, duty ratio, and the like included in the first law.
It can be understood that the terminal continuously performs on-off control on the light emitting device according to the second rule until the terminal detects that the change rule of the second light intensity value does not conform to the second rule, at which point the terminal may perform step S500.
Step 500: the terminal performs a second operation.
Specifically, when it is detected that a change rule of the second light intensity value received by the light sensor does not conform to the second rule, the terminal detects an opening operation of the protective case, and the terminal can execute the second operation. The second operation may be a wake-up system or a screen wake-up operation.
Step S600: the terminal turns off the light emitting device.
It is understood that, while or after the terminal performs the second operation, the terminal may turn off the light emitting device and perform step S101 to prevent the light emitted by the light emitting device from affecting the recognition of the protective case state.
In the embodiment of the application, the terminal performs on-off control on the light-emitting device according to a first rule under the condition that the protective shell is in an open state, and executes a first operation when detecting that the change rule of a first light intensity value received by the light sensor is consistent with the first rule; under the condition that the protective shell is in a closed state, the terminal performs on-off control on the light-emitting device according to the second rule, and when the change rule of the second light intensity value received by the light sensor is detected to be inconsistent with the second rule, the terminal executes the second operation, so that the protective shell controls the terminal.
In addition, the terminal controls the light-emitting device to send the optical signal according to a certain rule, so that confusion with the optical signal in the environment received by the optical sensor can be avoided, and the accuracy of state identification of the protective shell by the terminal is improved.
Referring to fig. 10, fig. 10 is a schematic flowchart of another terminal control method according to an embodiment of the present invention, where the terminal control method includes:
step S1010: the terminal controls the on-off of the light-emitting device according to a first rule.
Specifically, referring to the light guiding principle of the light guiding strip in the protective shell shown in fig. 2 or fig. 3, it can be seen that when the protective shell is in an open state, almost all light emitted by the light emitting device is diffused into the surrounding environment, and light which can be captured by the light sensor is little enough to represent information carried by regular opening and closing of the light emitting device; only when the protective shell is in the closed state, the light sensor can detect the regular change of the first light intensity value or the change rule of the first light intensity value which is consistent with the first rule.
The terminal can always switch the light-emitting device in a first rule. For a description of the first rule, reference may be made to the description of the first rule in step S200 of the method embodiment shown in fig. 7, which is not repeated herein.
Step S1020: and when detecting that the change rule of the light intensity value received by the light sensor is changed from not conforming to the first rule to conforming to the first rule, the terminal executes a first operation.
For the detection principle of the change rule of the light intensity value, reference may be made to the related description of the detection principle of the change rule of the first light intensity value in step S200 of the embodiment of the method shown in fig. 7 or fig. 8, which is not repeated herein.
It can be understood that the terminal detects the change rule of the light intensity value received by the light sensor in real time. When the change rule of the light intensity value currently received by the light sensor does not accord with the first rule, the protective shell is currently in an open state; when the change rule of the light intensity value currently received by the light sensor accords with the first rule, the protective shell is currently in an open state.
When the change rule of the light intensity value received by the light sensor is detected to be changed from the first rule to the first rule, the protective shell is changed from the open state to the closed state, namely, the closed operation aiming at the protective shell is detected, and at the moment, the terminal can execute the first operation. The first operation may be a sleep operation to reduce power consumption of the terminal.
For example, when the terminal performs on-off control of the light emitting device at the first frequency, the terminal may perform the first operation when the terminal detects that the frequency of the light intensity value received by the light sensor is changed from the non-first frequency to the first frequency.
Step S1030: and when the change rule of the light intensity value received by the light sensor is detected to be changed from being in accordance with the first rule to being not in accordance with the first rule, the terminal executes a second operation.
When the change rule of the light intensity value received by the light sensor is detected to be changed from being in accordance with the first rule to being not in accordance with the first rule, the protective shell is changed from the closed state to the open state, namely, the opening operation of the protective shell is detected, and at the moment, the terminal can execute the second operation. The second operation may be waking up the system.
For example, when the terminal performs on-off control of the light emitting device at the first frequency, the terminal may perform the second operation when the terminal detects that the frequency of the light intensity value received by the light sensor is changed from the first frequency to the non-first frequency.
In the embodiment of the application, the terminal performs on-off control on the light-emitting device according to a first rule, and executes a first operation when the change rule of the light intensity value received by the light sensor is detected to be changed from the first rule to the first rule; when the change rule of the light intensity value received by the light sensor is detected to be changed from being accordant with the first rule to being not accordant with the first rule, the terminal executes the second operation so as to control the terminal by the protective shell.
In addition, the terminal controls the light-emitting device to send the optical signal according to a certain rule, so that confusion with the optical signal in the environment received by the optical sensor can be avoided, and the accuracy of state identification of the protective shell by the terminal is improved.
It should be further noted that in the present application, in the method embodiments shown in fig. 7, fig. 8, and fig. 10, the terminal may include a display screen, the first operation may be a screen-off operation, and the second operation may be a screen-wakeup operation; the first operation can also be screen locking operation, and the second operation can be unlocking operation or operation of entering an unlocking interface and the like; the first operation may also be a closing operation for the specified application, and the second operation may be an opening operation for the specified application, for example, the first operation is an exit operation of Facebook, and the second operation is a login operation of Facebook; the first operation may also be a shutdown operation, and the second operation may be a startup operation; when there is a call, the first operation can also be a hang-up operation of the current call, and the second operation can be an answering operation of the current call; when the current display interface is a display interface of a video application, the first operation may be a pause operation for the current display video, and the second operation may be a play operation for the current display video. The first operation and the second operation may also be other operations, which are not described in detail herein.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal may include:
a detection unit 1101 for detecting the current state of the protective case;
a control unit 1102, configured to perform on-off control on a light-emitting device according to a first rule when the protective case is in an open state;
the terminal comprises a processing unit 1103 and a control unit, wherein the processing unit is used for executing a first operation when the protective shell is in an open state and when a change rule of a first light intensity value received by a light sensor is detected to be consistent with the first rule;
the control unit 1102 is further configured to: under the condition that the protective shell is in a closed state, on-off control is carried out on the light-emitting device according to a second rule;
the processing unit 1103 is further configured to: under the condition that the protective shell is in a closed state and when the change rule of the second light intensity value received by the light sensor is detected to be inconsistent with the second rule, the terminal executes a second operation;
the protective shell is provided with a light guide strip, and the light guide strip covers the light-emitting device and the light sensor which are arranged on the terminal when the protective shell is in a closed state.
Optionally, the processing unit 1103 is further configured to: acquiring a light intensity value through a light sensor;
the control unit 1102 is further configured to: when the light intensity value is larger than a first light intensity threshold value and the change of the light intensity value acquired from the moment T1 to the moment T0 is detected to be larger than a second light intensity threshold value, the light-emitting device is controlled to be switched on and off for N periods according to a first rule; n is a positive integer; the time T0 is the current time, and the time T1 is the time which is a first duration before the current time;
the processing unit 1103 is further configured to: and executing a first operation when detecting that the change rule of the first light intensity value received by the light sensor conforms to the first rule.
Optionally, the processing unit 1103 is further configured to: detecting whether a user operation is received within a time T0 to a time T2 when the light intensity value is not greater than the first light intensity threshold; the time T0 is the current time, and the time T2 is the time of a second duration after the current time;
triggering the control unit to perform the on-off control of the light emitting device at the first law for N cycles when no user operation is received within a time T0 to a time T2;
and executing a first operation when detecting that the change rule of the first light intensity value received by the light sensor conforms to the first rule.
Optionally, the performing, by the processing unit 1103, the on-off control of the light emitting device according to the first rule for N periods includes: performing on-off control on the light-emitting device for N periods at a first frequency;
the processing unit 1103 performs a first operation when it is detected that the change rule of the first light intensity value received by the light sensor conforms to the first rule, including: detecting whether the change frequency of the first light intensity value received by the light sensor is the first frequency or not; and executing a first operation when the change frequency of the first light intensity value received by the light sensor is the first frequency.
Optionally, the performing, by the processing unit 1103, the on-off control of the light-emitting device according to the second rule includes: performing on-off control on the light-emitting device at a second frequency;
the processing unit 1103 performs a second operation when it is detected that the change rule of the second light intensity value received by the light sensor does not conform to the second rule, including: detecting whether the change frequency of the second light intensity value received by the light sensor is the second frequency or not; and executing a second operation when the change frequency of the second light intensity value received by the light sensor is the second frequency.
In the embodiment of the application, the terminal performs on-off control on the light-emitting device according to a first rule under the condition that the protective shell is in an open state, and executes a first operation when detecting that the change rule of a first light intensity value received by the light sensor is consistent with the first rule; under the condition that the protective shell is in a closed state, the terminal performs on-off control on the light-emitting device according to the second rule, and when the change rule of the second light intensity value received by the light sensor is detected to be inconsistent with the second rule, the terminal executes the second operation, so that the protective shell controls the terminal.
In addition, the terminal controls the light-emitting device to send the optical signal at a certain frequency, so that confusion with the optical signal in the environment received by the optical sensor can be avoided, and the accuracy of state identification of the protective shell by the terminal can be improved.
Referring to fig. 12, fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal may include:
a control unit 1201 for performing on-off control of the light emitting device by a first rule;
the processing unit 1202 is configured to execute a first operation when detecting that a change rule of the light intensity value received by the light sensor changes from not conforming to the first rule to conforming to the first rule; and the number of the first and second groups,
executing a second operation when the change rule of the light intensity value received by the light sensor is detected to be changed from being in accordance with the first rule to being not in accordance with the first rule;
the protective shell is provided with a light guide strip, and the light guide strip covers the light-emitting device and the light sensor which are arranged on the terminal when the protective shell is in a closed state.
Alternatively,
the control unit 1201 is specifically configured to: the terminal controls the light-emitting device to be switched on and off at a first frequency;
the processing unit 1202 performs a first operation when the change rule of the detected light intensity value received by the light sensor is changed from not conforming to the first rule to conforming to the first rule, including: executing a first operation when the frequency of the light intensity value received by the light sensor is detected to be changed from a non-first frequency to the first frequency;
the processing unit 1202 performs a second operation when the change of the detected light intensity value received by the light sensor is changed from being in accordance with the first rule to being out of accordance with the first rule, wherein the second operation comprises: the second operation is performed when the frequency at which the light intensity value received by the light sensor is detected is changed from the first frequency to a non-first frequency.
In the embodiment of the application, the terminal performs on-off control on the light-emitting device according to a first rule, and executes a first operation when the change rule of the light intensity value received by the light sensor is detected to be changed from the first rule to the first rule; when the change rule of the light intensity value received by the light sensor is detected to be changed from being accordant with the first rule to being not accordant with the first rule, the terminal executes the second operation so as to control the terminal by the protective shell.
In addition, the terminal controls the light-emitting device to send the optical signal according to a certain rule, so that confusion with the optical signal in the environment received by the optical sensor can be avoided, and the accuracy of state identification of the protective shell by the terminal is improved.
Technical terms used in the embodiments of the present invention are only used for illustrating specific embodiments and are not intended to limit the present invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Further, the use of "including" and/or "comprising" in the specification is intended to specify the presence of stated features, integers, steps, operations, elements, and/or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, and/or components.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below, if any, are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed.

Claims (21)

1. A terminal control method, comprising:
the terminal obtains a light intensity value through a light sensor, the terminal judges that the protective shell is in an open state under the condition that the light intensity value is larger than a first light intensity threshold value, the terminal detects whether the change of the light intensity value of the light sensor is larger than a second light intensity threshold value under the condition that the protective shell is in the open state, if yes, the terminal performs on-off control on the light-emitting device according to a first rule, and when the change rule of the first light intensity value received by the light sensor is detected to be consistent with the first rule, the terminal determines that the protective shell is in a closed state and executes a first operation;
under the condition that the protective shell is in a closed state, the terminal controls the light-emitting device to be switched on and off according to a second rule, and when the change rule of a second light intensity value received by the light sensor is detected to be inconsistent with the second rule, the terminal detects the opening operation of the protective shell and executes a second operation;
the protective housing is provided with a light guide strip, the light guide strip covers the light-emitting device and the optical sensor which are arranged on the terminal when the protective housing is in a closed state, and the light guide strip is used for transmitting light emitted by the light-emitting device to the optical sensor.
2. The method of claim 1, wherein the terminal detecting whether the change in the light intensity value of the light sensor is greater than a second light intensity threshold comprises:
under the condition that the protective housing is in an open state, the terminal on-off control of the light-emitting device according to a first rule comprises: when the light intensity value is larger than a first light intensity threshold value and the change of the light intensity value acquired from the time T1 to the time T0 is detected to be larger than a second light intensity threshold value, the terminal controls the light-emitting device to be switched on and off for N periods according to a first rule; n is a positive integer; the time T0 is the current time, and the time T1 is the time which is a first duration before the current time;
when detecting that the change rule of the light intensity value received by the light sensor conforms to the first rule, the method comprises the following steps: and when detecting that the change rule of the first light intensity value received by the light sensor is in accordance with the first rule, the terminal executes a first operation.
3. The method of claim 2, wherein the method further comprises:
when the light intensity value is not greater than the first light intensity threshold, the terminal detects whether a user operation is received within a time T0 to a time T2; the time T0 is the current time, and the time T2 is the time of a second duration after the current time;
when the terminal does not receive user operation from time T0 to time T2, the terminal performs on-off control on a light-emitting device for N periods according to a first rule;
when detecting that the change rule of the first light intensity value received by the light sensor is in accordance with the first rule, the terminal determines that the protective shell is in a closed state and executes a first operation.
4. The method of claim 2 or 3,
the terminal on-off controlling the light emitting device for N periods according to a first rule comprises: the terminal controls the light-emitting device to be switched on and off for N periods at a first frequency;
when detecting that the change rule of the first light intensity value received by the light sensor conforms to the first rule, the terminal executes a first operation, including: detecting whether the change frequency of the first light intensity value received by the light sensor is the first frequency or not; and when the change frequency of the first light intensity value received by the light sensor is the first frequency, the terminal executes a first operation.
5. The method according to any one of claims 1 to 3,
under the condition that the protective case is in the closed state, the terminal carries out on-off control to the light-emitting device according to a second rule and comprises the following steps: the terminal controls the light-emitting device to be switched on and off at a second frequency;
when detecting that the change rule of the second light intensity value received by the light sensor does not accord with the second rule, the terminal executes a second operation, which comprises the following steps: detecting whether the change frequency of the second light intensity value received by the light sensor is the second frequency or not; and when the change frequency of the second light intensity value received by the light sensor is not the second frequency, the terminal executes a second operation.
6. A terminal, comprising:
the detection unit is used for acquiring a light intensity value through a light sensor, and the terminal judges that the protective shell is in an open state under the condition that the light intensity value is greater than a first light intensity threshold value;
the control unit is used for detecting whether the change of the light intensity value of the light sensor is larger than a second light intensity threshold value or not under the condition that the protective shell is in an open state, and if so, the light-emitting device is controlled to be switched on and off according to a first rule;
the processing unit is used for determining that the protective shell is in a closed state and executing a first operation when the protective shell is in an open state and when the change rule of the first light intensity value received by the light sensor is detected to be consistent with the first rule;
the control unit is further configured to: under the condition that the protective shell is in a closed state, on-off control is carried out on the light-emitting device according to a second rule;
the processing unit is further to: under the condition that the protective shell is in a closed state and when the change rule of the second light intensity value received by the light sensor is detected to be inconsistent with the second rule, the opening operation of the protective shell is detected, and the second operation is executed;
the protective housing is provided with a light guide strip, the light guide strip covers the light-emitting device and the optical sensor which are arranged on the terminal when the protective housing is in a closed state, and the light guide strip is used for transmitting light emitted by the light-emitting device to the optical sensor.
7. The terminal of claim 6,
the processing unit is further to: acquiring a light intensity value through a light sensor;
the control unit is further configured to: when the light intensity value is larger than a first light intensity threshold value and the change of the light intensity value acquired from the moment T1 to the moment T0 is detected to be larger than a second light intensity threshold value, the light-emitting device is controlled to be switched on and off for N periods according to a first rule; n is a positive integer; the time T0 is the current time, and the time T1 is the time which is a first duration before the current time;
the processing unit is further to: and executing a first operation when detecting that the change rule of the first light intensity value received by the light sensor conforms to the first rule.
8. The terminal of claim 7,
the processing unit is further to: detecting whether a user operation is received within a time T0 to a time T2 when the light intensity value is not greater than the first light intensity threshold; the time T0 is the current time, and the time T2 is the time of a second duration after the current time;
triggering the control unit to perform the on-off control of the light emitting device at the first law for N cycles when no user operation is received within a time T0 to a time T2;
and executing a first operation when detecting that the change rule of the first light intensity value received by the light sensor conforms to the first rule.
9. The terminal according to claim 7 or 8, wherein said processing unit performing said on-off control of the light emitting means for N periods with the first law comprises: performing on-off control on the light-emitting device for N periods at a first frequency;
the processing unit executes a first operation when detecting that a change rule of a first light intensity value received by the light sensor conforms to the first rule, wherein the first operation comprises: detecting whether the change frequency of the first light intensity value received by the light sensor is the first frequency or not; and executing a first operation when the change frequency of the first light intensity value received by the light sensor is the first frequency.
10. The terminal according to any of claims 6-8,
the processing unit executing the on-off control of the light emitting device according to the second rule includes: performing on-off control on the light-emitting device at a second frequency;
the processing unit executes a second operation when detecting that the change rule of the second light intensity value received by the light sensor does not accord with the second rule, wherein the second operation comprises: detecting whether the change frequency of the second light intensity value received by the light sensor is the second frequency or not; and executing a second operation when the change frequency of the second light intensity value received by the light sensor is the second frequency.
11. A terminal, characterized in that the terminal comprises: a processor, a memory, a light sensor, a light emitting device, and a communication bus; the processor is connected to the memory, the light sensor and the light emitting device through the communication bus;
the processor is used for calling the program codes and data stored in the memory and executing the following steps:
under the condition that the protective shell is in an open state, on-off control is carried out on the light-emitting device according to a first rule, and when the change rule of the first light intensity value received by the light sensor is detected to be in accordance with the first rule, a first operation is executed;
under the condition that the protective shell is in a closed state, on-off control is carried out on the light-emitting device according to a second rule, and when the change rule of a second light intensity value received by the light sensor is detected to be inconsistent with the second rule, a second operation is executed;
the protective housing is provided with a light guide strip, the light guide strip covers the light-emitting device and the optical sensor which are arranged on the terminal when the protective housing is in a closed state, and the light guide strip is used for transmitting light emitted by the light-emitting device to the optical sensor.
12. The terminal of claim 11,
the processor performs on-off control of the light emitting device according to a first rule under the condition that the protective case is in the open state, and the on-off control includes: acquiring a light intensity value through a light sensor; when the light intensity value is larger than the first light intensity threshold value and the change of the light intensity value acquired from the moment T1 to the moment T0 is detected to be larger than the second light intensity threshold value, the light-emitting device is controlled to be switched on and off for N periods according to a first rule; n is a positive integer; the time T0 is the current time, and the time T1 is the time which is a first duration before the current time;
the processor executes a first operation when detecting that the change rule of the light intensity value received by the light sensor conforms to the first rule, wherein the first operation comprises: and executing a first operation when detecting that the change rule of the first light intensity value received by the light sensor conforms to the first rule.
13. The terminal of claim 12, wherein the processor is further configured to perform:
detecting whether a user operation is received within a time T0 to a time T2 when the light intensity value is not greater than the first light intensity threshold; the time T0 is the current time, and the time T2 is the time of a second duration after the current time;
performing on-off control of a light emitting device for N cycles on a first rule when the processor does not receive the user operation within a time T0 to a time T2; n is a positive integer;
and executing a first operation when detecting that the change rule of the first light intensity value received by the light sensor conforms to the first rule.
14. The terminal according to claim 12 or 13,
the processor performing the on-off control of the light emitting device for N periods according to the first law includes: performing on-off control on the light-emitting device for N periods at a first frequency;
the processor executing the first operation when detecting that the change rule of the first light intensity value received by the light sensor conforms to the first rule comprises: detecting whether the change frequency of the first light intensity value received by the light sensor is the first frequency or not; and executing a first operation when the change frequency of the first light intensity value received by the light sensor is the first frequency.
15. The terminal according to any of claims 11-13,
the processor executes the switching control of the light-emitting device by the terminal according to the second rule under the condition that the protective shell is in the closed state, and the switching control comprises the following steps: performing on-off control on the light-emitting device at a second frequency;
the processor executes a second operation when detecting that the change rule of the second light intensity value received by the light sensor does not accord with the second rule, wherein the second operation comprises: detecting whether the change frequency of the second light intensity value received by the light sensor is the second frequency or not; and executing a second operation when the change frequency of the second light intensity value received by the light sensor is the second frequency.
16. A terminal control method, comprising:
the terminal controls the on-off of the light-emitting device according to a first rule;
when detecting that the change rule of the light intensity value received by the light sensor is changed from not conforming to the first rule to conforming to the first rule, the terminal executes a first operation;
when the change rule of the light intensity value received by the light sensor is detected to be changed from being in accordance with the first rule to being not in accordance with the first rule, the terminal executes a second operation;
the protective housing is provided with a light guide strip, the light guide strip covers the light-emitting device and the optical sensor which are arranged on the terminal when the protective housing is in a closed state, and the light guide strip is used for transmitting light emitted by the light-emitting device to the optical sensor.
17. The method of claim 16,
the terminal on-off control of the light emitting device according to the first rule comprises: the terminal controls the light-emitting device to be switched on and off at a first frequency;
when detecting that the change rule of the light intensity value received by the light sensor is changed from not meeting the first rule to meeting the first rule, the terminal executes a first operation comprising: the terminal executes a first operation when detecting that the frequency of the light intensity value received by the light sensor is changed from a non-first frequency to the first frequency;
when the change of the detected light intensity value received by the light sensor is changed from being in accordance with the first rule to being out of accordance with the first rule, the terminal executes a second operation comprising: the terminal performs a second operation when it is detected that the frequency of the light intensity value received by the light sensor is changed from the first frequency to a non-first frequency.
18. A terminal, comprising:
the control unit is used for carrying out on-off control on the light-emitting device according to a first rule;
the processing unit is used for executing a first operation when the change rule of the light intensity value received by the light sensor is detected to be changed from the first rule to the first rule; and the number of the first and second groups,
executing a second operation when the change rule of the light intensity value received by the light sensor is detected to be changed from being in accordance with the first rule to being not in accordance with the first rule;
the protective housing is provided with a light guide strip, the light guide strip covers the light-emitting device and the optical sensor which are arranged on the terminal when the protective housing is in a closed state, and the light guide strip is used for transmitting light emitted by the light-emitting device to the optical sensor.
19. The terminal of claim 18,
the control unit is specifically configured to: the terminal controls the light-emitting device to be switched on and off at a first frequency;
the processing unit executes a first operation when the change rule of the light intensity value received by the light sensor is detected to change from not conforming to the first rule to conforming to the first rule, wherein the first operation comprises the following steps: executing a first operation when the frequency of the light intensity value received by the light sensor is detected to be changed from a non-first frequency to the first frequency;
when the processing unit detects that the change of the light intensity value received by the light sensor is changed from being in accordance with the first rule to being out of accordance with the first rule, the terminal executes a second operation comprising: the second operation is performed when the frequency at which the light intensity value received by the light sensor is detected is changed from the first frequency to a non-first frequency.
20. A terminal, characterized in that the terminal comprises: a processor, a memory, a light sensor, a light emitting device, and a communication bus; the processor is connected to the memory, the light sensor and the light emitting device through the communication bus;
the processor is used for calling the program codes and data stored in the memory and executing the following steps:
performing on-off control on the light-emitting device according to a first rule;
executing a first operation when detecting that the change rule of the light intensity value received by the light sensor is changed from not conforming to the first rule to conforming to the first rule;
executing a second operation when the change rule of the light intensity value received by the light sensor is detected to be changed from being in accordance with the first rule to being not in accordance with the first rule;
the protective housing is provided with a light guide strip, the light guide strip covers the light-emitting device and the optical sensor which are arranged on the terminal when the protective housing is in a closed state, and the light guide strip is used for transmitting light emitted by the light-emitting device to the optical sensor.
21. The terminal of claim 20,
the processor performing the on-off control of the light emitting device according to the first rule includes: performing on-off control on the light-emitting device at a first frequency;
the processor executes a first operation when the change rule of the light intensity value received by the light sensor is detected to change from not conforming to the first rule to conforming to the first rule, wherein the first operation comprises the following steps: executing a first operation when the frequency of the light intensity value received by the light sensor is detected to be changed from a non-first frequency to the first frequency;
the processor executes a second operation when the change of the detected light intensity value received by the light sensor is changed from being in accordance with the first rule to being out of accordance with the first rule, wherein the second operation is executed by the terminal and comprises the following steps: the second operation is performed when the frequency at which the light intensity value received by the light sensor is detected is changed from the first frequency to a non-first frequency.
CN201780012406.3A 2016-12-19 2017-03-17 Terminal control method and terminal Active CN108702417B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN2016111770131 2016-12-19
CN201611177013 2016-12-19
PCT/CN2017/077029 WO2018113111A1 (en) 2016-12-19 2017-03-17 Terminal control method and terminal

Publications (2)

Publication Number Publication Date
CN108702417A CN108702417A (en) 2018-10-23
CN108702417B true CN108702417B (en) 2022-04-12

Family

ID=62624271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780012406.3A Active CN108702417B (en) 2016-12-19 2017-03-17 Terminal control method and terminal

Country Status (2)

Country Link
CN (1) CN108702417B (en)
WO (1) WO2018113111A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067609A (en) * 2013-01-23 2013-04-24 广东欧珀移动通信有限公司 Unlock method and system and device of mobile terminal
CN103516902A (en) * 2013-09-18 2014-01-15 广东欧珀移动通信有限公司 Method and device for controlling screen state of electronic equipment through protection cover
CN103546645A (en) * 2013-10-30 2014-01-29 上海斐讯数据通信技术有限公司 System, method and mobile terminal for achieving smart cover function of mobile terminal
CN204316574U (en) * 2014-12-31 2015-05-06 华森科技(深圳)有限公司 Leather cover for handset
CN104834497A (en) * 2015-05-15 2015-08-12 北京智膜科技有限公司 On screen display control method and controller
US9122392B2 (en) * 2010-08-13 2015-09-01 Lg Electronics Inc. Mobile terminal, display device and controlling method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201222323A (en) * 2010-11-30 2012-06-01 Hon Hai Prec Ind Co Ltd Electronic device having proximity detection function
CN103309572A (en) * 2012-03-16 2013-09-18 联想(北京)有限公司 Method and device for state switching

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9122392B2 (en) * 2010-08-13 2015-09-01 Lg Electronics Inc. Mobile terminal, display device and controlling method thereof
CN103067609A (en) * 2013-01-23 2013-04-24 广东欧珀移动通信有限公司 Unlock method and system and device of mobile terminal
CN103516902A (en) * 2013-09-18 2014-01-15 广东欧珀移动通信有限公司 Method and device for controlling screen state of electronic equipment through protection cover
CN103546645A (en) * 2013-10-30 2014-01-29 上海斐讯数据通信技术有限公司 System, method and mobile terminal for achieving smart cover function of mobile terminal
CN204316574U (en) * 2014-12-31 2015-05-06 华森科技(深圳)有限公司 Leather cover for handset
CN104834497A (en) * 2015-05-15 2015-08-12 北京智膜科技有限公司 On screen display control method and controller

Also Published As

Publication number Publication date
CN108702417A (en) 2018-10-23
WO2018113111A1 (en) 2018-06-28

Similar Documents

Publication Publication Date Title
KR101478477B1 (en) Mobile device and method for proximity detection verification
EP3525123B1 (en) Method and apparatus for fingerprint unlocking
CN108881620B (en) Mobile terminal awakening method and device and mobile terminal
EP2840462A1 (en) Method and apparatus for saving battery of portable terminal
US9159293B2 (en) Electronic device, control method, and storage medium storing control program
US20080266083A1 (en) Method and algorithm for detecting movement of an object
US10698541B2 (en) Electronic device, recording medium, and control method
US20150277720A1 (en) Systems and Methods for Managing Operating Modes of an Electronic Device
KR20140140891A (en) Apparatus and Method for operating a proximity sensor function in an electronic device having touch screen
KR102070116B1 (en) Method for controlling portable device by using humidity sensor and portable device thereof
KR20150144666A (en) Mobile terminal and method for controlling the same
CN106598444B (en) Control method of mobile terminal and mobile terminal
CN111405110B (en) Screen control method and device, storage medium and mobile terminal
KR20120009851A (en) Method for setting private mode in mobile terminal and mobile terminal using the same
JP2018018503A (en) Electronic device
JP2017135510A (en) Electronic apparatus, control method and control program
JP2019030000A (en) Electronic apparatus, program, and control method
JP2018018288A (en) Electronic device
US20120068958A1 (en) Portable electronic device and control method thereof
CN104348962A (en) Mobile phone unlocking method based on laser distance measuring and mobile phone with laser distance measuring function
CN108702417B (en) Terminal control method and terminal
CN110166618A (en) Screen control method and device
US20150339028A1 (en) Responding to User Input Gestures
CN104280787A (en) Device and method for detecting object approaching
WO2015085745A1 (en) Liquid crystal display backlight management method, device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant