CN110191210B - Control method of indicator light, terminal device and computer readable storage medium - Google Patents

Control method of indicator light, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN110191210B
CN110191210B CN201910428619.5A CN201910428619A CN110191210B CN 110191210 B CN110191210 B CN 110191210B CN 201910428619 A CN201910428619 A CN 201910428619A CN 110191210 B CN110191210 B CN 110191210B
Authority
CN
China
Prior art keywords
filter
processor
electromagnetic wave
light source
terminal device
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
CN201910428619.5A
Other languages
Chinese (zh)
Other versions
CN110191210A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910428619.5A priority Critical patent/CN110191210B/en
Publication of CN110191210A publication Critical patent/CN110191210A/en
Application granted granted Critical
Publication of CN110191210B publication Critical patent/CN110191210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02FOPTICAL DEVICES OR ARRANGEMENTS FOR THE CONTROL OF LIGHT BY MODIFICATION OF THE OPTICAL PROPERTIES OF THE MEDIA OF THE ELEMENTS INVOLVED THEREIN; NON-LINEAR OPTICS; FREQUENCY-CHANGING OF LIGHT; OPTICAL LOGIC ELEMENTS; OPTICAL ANALOGUE/DIGITAL CONVERTERS
    • G02F1/00Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics
    • G02F1/01Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour 
    • G02F1/23Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour  for the control of the colour
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/22Illumination; Arrangements for improving the visibility of characters on dials
    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The invention discloses a control method of an indicator light and a terminal device. The method comprises the following steps: the processor controls the first filter to filter the electromagnetic waves emitted by the light source to obtain first electromagnetic waves with the first wavelength, so that the indicator lamp outputs a first light beam corresponding to the first electromagnetic waves; and when the processor determines that the terminal equipment meets the first preset condition, the processor controls the second filter to filter the electromagnetic wave emitted by the light source to obtain a second electromagnetic wave with a second wavelength, so that the indicator lamp outputs a second light beam corresponding to the second electromagnetic wave. Through the mode, the terminal equipment can flexibly change the wavelength of the light beam output by the indicator lamp, so that different requirements of users can be met, and the user experience can be improved.

Description

Control method of indicator light, terminal device and computer readable storage medium
Technical Field
The invention relates to the technical field of terminal equipment, in particular to a control method of an indicator lamp and the terminal equipment.
Background
At present, as the functions of mobile phones are developed more and more strongly, the mobile phones are widely used and become living necessities of most users. For example, in daily life, a user can communicate with a mobile phone, or use the mobile phone for entertainment (e.g., playing games, watching a video screen, etc.), and the like.
However, the wavelength of the light beam output by the indicator light of the current mobile phone is fixed. For example, the indicator light can only output visible light with a wavelength of 390 nm to 760 nm, and is used for indicating incoming calls, receiving short messages, prompting charging and the like. Therefore, the current mobile phone cannot flexibly change the wavelength of the light beam output by the indicator light, so that the function of the indicator light of the mobile phone is limited and good experience cannot be brought to a user.
Disclosure of Invention
The embodiment of the invention provides a control method of an indicator light and terminal equipment, which are used for flexibly changing the wavelength of a light beam output by the indicator light so as to realize different requirements of a user and contribute to improving user experience.
In a first aspect, an embodiment of the present invention provides a method for controlling an indicator light, where the method is applied to a terminal device; the terminal equipment comprises a processor, an indicator light, a light source, a first filter and a second filter; the method comprises the following steps:
the processor controls the first filter to filter the electromagnetic wave emitted by the light source to obtain a first electromagnetic wave with a first wavelength, so that the indicator light outputs a first light beam corresponding to the first electromagnetic wave;
and when the processor determines that the terminal equipment meets a first preset condition, the processor controls the second filter to filter the electromagnetic wave emitted by the light source to obtain a second electromagnetic wave with a second wavelength, so that the indicator lamp outputs a second light beam corresponding to the second electromagnetic wave.
Optionally, the terminal device further includes a first switch; before the processor controls the first filter to filter the electromagnetic wave emitted by the light source, the method further includes:
the processor controls the first switch to be connected with the first filter so as to enable the first filter to be in an enabling state;
before the processor controls the second filter to filter the electromagnetic wave emitted by the light source, the method further includes:
the processor controls the first switch to disconnect from the first filter;
the processor controls the first switch to connect with the second filter so that the second filter is in an enabled state.
Optionally, the first filter is a visible light filter, and the second filter is an infrared light filter.
Optionally, before the processor controls the first filter to filter the electromagnetic wave emitted by the light source, so as to obtain a first electromagnetic wave with a first wavelength, the method further includes:
the processor determines that the brightness of the ambient environment of the terminal equipment is lower than a preset brightness; alternatively, the first and second electrodes may be,
the processor determines that the terminal device displays a viewing interface of a camera; alternatively, the first and second electrodes may be,
the processor detects a first preset operation.
Optionally, the first preset condition includes one or more of the following conditions:
the processor detects a second preset operation; alternatively, the first and second electrodes may be,
the processor determines that a display screen of the terminal device displays a specific application, and the specific application is used for controlling other devices connected with the terminal device.
In a second aspect, an embodiment of the present invention provides a terminal device, including: the device comprises a processor, an indicator light, a light source, a first filter and a second filter;
the light source is used for generating electromagnetic waves;
the processor is used for controlling the light source to generate electromagnetic waves and controlling the first filter or the second filter to filter the electromagnetic waves generated by the light source;
the first filter is used for filtering the electromagnetic wave emitted by the light source to obtain a first electromagnetic wave with a first wavelength;
the second filter is used for filtering the electromagnetic wave emitted by the light source to obtain a second electromagnetic wave with a second wavelength;
the indicator light is used for outputting a first light beam corresponding to the first electromagnetic wave or outputting a second light beam corresponding to the second electromagnetic wave.
Optionally, the terminal device further includes a first switch; the processor, before being configured to control the first filter to filter the electromagnetic waves emitted by the light source, is further configured to:
controlling the first switch to be connected with the first filter so as to enable the first filter to be in an enabling state;
the processor, before being configured to control the second filter to filter the electromagnetic waves emitted by the light source, is further configured to:
controlling the first switch to disconnect from the first filter;
and controlling the first switch to be connected with the second filter so as to enable the second filter to be in an enabling state.
Optionally, the first filter is a visible light filter, and the second filter is an infrared light filter.
Optionally, before the processor is configured to control the first filter to filter the electromagnetic wave emitted by the light source, so as to obtain a first electromagnetic wave with a first wavelength, the processor is further configured to:
determining that the ambient brightness of the terminal equipment is lower than a preset brightness; alternatively, the first and second electrodes may be,
determining a viewing interface of a display camera of the terminal equipment; alternatively, the first and second electrodes may be,
a first preset operation is detected.
Optionally, the first preset condition includes one or more of the following conditions:
the processor detects a second preset operation; alternatively, the first and second electrodes may be,
the processor determines that a display screen of the terminal device displays a specific application, and the specific application is used for controlling other devices connected with the terminal device.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, where the computer program includes program instructions, and the program instructions, when executed by a computer, cause the computer to execute the first aspect or any one of the possible design methods of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer program product, in which a computer program is stored, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the first aspect or any one of the possible design methods of the first aspect.
The invention has the following beneficial effects:
in the technical scheme of the embodiment of the invention, in the terminal equipment, the processor controls the first filter to filter the electromagnetic wave emitted by the light source to obtain the first electromagnetic wave with the first wavelength, so that the indicator lamp outputs the first light beam corresponding to the first electromagnetic wave; and when the processor determines that the terminal equipment meets the first preset condition, the processor controls the second filter to filter the electromagnetic wave emitted by the light source to obtain a second electromagnetic wave with a second wavelength, so that the indicator lamp outputs a second light beam corresponding to the second electromagnetic wave. Through the mode, the terminal equipment can flexibly change the wavelength of the light beam output by the indicator lamp, so that different requirements of users can be met, and the user experience can be improved.
Drawings
Fig. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for controlling an indicator according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, 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.
The shapes and sizes of the various elements in the drawings are not to scale and are merely intended to illustrate the invention.
Fig. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. The terminal equipment can be a mobile phone, an ipad, a remote controller and other equipment provided with an indicator lamp.
As shown in fig. 1, the terminal device 100 includes: a processor 101, a light source 102, a first filter 103, a second filter 104, and an indicator light 105. The processor 101, the first filter 103 and the second filter 104 are connected to the light source 102, and the indicator light 105 is connected to the first filter 103 and the second filter 104. The processor 101 may be a general-purpose Central Processing Unit (CPU) or an Application Specific Integrated Circuit (ASIC), and may be one or more integrated circuits for controlling program execution, which is not limited in the embodiments of the present invention.
The process of the indicator lamp 105 outputting a light beam of a specific wavelength will be described.
Alternatively, the processor 101 may control the first filter 103 to filter the electromagnetic wave emitted by the light source 102, so as to obtain the first electromagnetic wave with the first wavelength, so that the indicator lamp 105 outputs the first light beam corresponding to the first electromagnetic wave. For example, when the first electromagnetic wave is transmitted to the indicator light 105, the indicator light 105 is triggered to output a first light beam corresponding to the first electromagnetic wave.
Alternatively, when the processor 101 determines that the terminal device 100 satisfies a first preset condition (described later), the second filter 104 may be controlled to filter the electromagnetic wave emitted by the light source 102 to obtain a second electromagnetic wave with a second wavelength, so as to enable the indicator lamp 105 to output a second light beam corresponding to the second electromagnetic wave. For example, when the second electromagnetic wave is transmitted to the indicator light 105, the indicator light 105 is triggered to output a second light beam corresponding to the second electromagnetic wave.
In the embodiment of the present invention, the terminal device 100 may trigger the indicator lamp 105 to output light beams with different wavelengths by transmitting different electromagnetic waves to the indicator lamp 105. That is to say, in the embodiment of the present invention, the wavelength of the light beam output by the indicator light 105 can be flexibly changed, so that different requirements of a user can be met, and the user experience can be improved.
The first filter and the second filter are different filters. For example, the first filter may be a visible light filter, the second filter may be an infrared light filter, and the first filter and the second filter may also be other filters, which can be set by those skilled in the art according to actual needs, and the embodiment of the present invention is not limited. In the following, it is exemplified that the first filter may be a visible light filter, and the second filter may be an infrared light filter, that is, the first light beam is a visible light beam, and the second light beam is an infrared light beam.
The process of the indicator light 105 outputting the first light beam with the first wavelength may specifically be:
in some embodiments, when the processor 101 determines that the terminal device 100 satisfies the second preset condition, the processor 101 may transmit a first control command to the light source 102, the first control command being used to control the light source 102 to generate the electromagnetic wave. The second preset condition is that the brightness of the environment around the terminal device 100 is lower than the preset brightness, or the processor 101 determines that the terminal device 100 displays a view interface of the camera, or the processor 101 detects the first preset operation.
For example, when the processor 101 determines that the ambient brightness of the terminal device 100 is lower than the preset brightness (for example, the terminal device 100 is in a dark environment), the processor 101 may send a first control command to the light source 102; alternatively, when the processor 101 determines that the terminal device 100 displays a viewfinder interface of the camera (e.g., the user opens the camera application), the processor 101 sends a first control command to the light source 102; alternatively, when the processor 101 detects a first preset operation (for example, the user triggers a first control, which is a control for controlling the indicator light 105 to output the visible light beam), the processor 101 sends a first control command to the light source 102.
Alternatively, when the light source 102 receives the first control instruction, electromagnetic waves are generated, and the generated electromagnetic waves are sent to the first filter 103.
Alternatively, when the first filter 103 receives the electromagnetic wave transmitted by the light source 102, the processor 101 controls the first filter 103 to output the electromagnetic wave with the wavelength within the first wavelength range and filter out the electromagnetic wave with other wavelengths, or the first filter 103 outputs the electromagnetic wave with the wavelength within the first wavelength range and filters out the electromagnetic wave with other wavelengths according to the parameter requirement of the first filter 103. Wherein, when the first wavelength range is: 390 nm to 760 nm, the first wavelength of the first electromagnetic wave output by the first filter 103 is in a wavelength range of 390 nm to 760 nm.
Alternatively, when the first electromagnetic wave transmitted by the first filter 103 is transmitted to the indicator light 105, the indicator light 105 is triggered to output a first light beam corresponding to the first electromagnetic wave. Wherein the wavelength of the first light beam is the same as the wavelength of the first electromagnetic wave.
In embodiments of the present invention, when the indicator light 105 outputs the first light beam as visible light, the first light beam may be used for illumination in dark environments, or for indicating content on a blackboard or display screen in a conference or class instead of a PPT laser pen. Of course, in the photographing process of the camera, the first light beam can be used for supplementary lighting and the like. Embodiments of the present invention do not limit the specific use of the first beam. In the embodiment of the invention, the first light beam output by the indicator light 105 can have multiple purposes, different requirements of users can be met, and the user experience is improved.
The process of outputting the second light beam with the second wavelength by the indicator light 105 may specifically be:
in some embodiments, when the processor 101 determines that the terminal device 100 satisfies the first preset condition, the processor 101 may transmit a second control command to the light source 102, the second control command being used to control the light source 102 to generate the electromagnetic wave. The second preset condition is that the processor 101 detects a second preset operation, or the processor 101 determines that the display screen of the terminal device 100 displays a specific application, where the specific application is used to control other devices connected to the terminal device 100, or the processor 101 determines that the camera of the terminal device 100 displays a camera interface and the ambient brightness is lower than the preset brightness.
Illustratively, when the processor 101 detects a second preset operation (for example, the user triggers a second control, which is a control for controlling the indicator light 105 to output an infrared beam), the processor 101 sends a second control command to the light source 102; alternatively, when the processor 101 determines that the display screen of the terminal device 100 displays a specific application (e.g., an application for controlling an air conditioner), the processor 101 transmits a second control command to the light source 102, the specific application being for controlling other devices (e.g., an air conditioner) connected to the terminal device 100; alternatively, the processor 101 determines that the camera of the terminal device 100 displays the camera interface and the ambient brightness is lower than the preset brightness, and the processor 101 sends a second control command to the light source 102, for example, the terminal device 100 uses the camera to record a video in a dark environment.
Alternatively, when the light source 102 receives the second control instruction, electromagnetic waves are generated and the generated electromagnetic waves are transmitted to the second filter 104.
Alternatively, when the second filter 104 receives the electromagnetic wave transmitted by the light source 102, the processor 101 controls the second filter 104 to output the electromagnetic wave with the wavelength within the first wavelength range and filter out the electromagnetic wave with other wavelengths, or the second filter 104 outputs the electromagnetic wave with the wavelength within the second wavelength range and filters out the electromagnetic wave with other wavelengths according to the parameter requirement of the second filter 104. Wherein, when the second wavelength range is: 760 nm to 1 mm, the second wavelength of the second electromagnetic wave output by the second filter 104 is in the wavelength range of 760 nm to 1 mm.
Alternatively, when the second electromagnetic wave transmitted by the second filter 104 is transmitted to the indicator light 105, the indicator light 105 is triggered to output a second light beam corresponding to the second electromagnetic wave. Wherein the wavelength of the second light beam is the same as the wavelength of the first electromagnetic wave.
In the embodiment of the present invention, when the indicator light 105 outputs the second light beam as invisible light, for example, infrared light, the second light beam may be used to control other devices connected to the terminal device 100 to use corresponding functions, for example, to control the output temperature of an air conditioner connected to the terminal device 100 to decrease or increase, or to adjust the operating mode of the air conditioner, and the like; alternatively, the terminal device 100 is used to capture an image of a subject when shooting in a dark environment. Embodiments of the present invention do not limit the specific use of the second beam. In the embodiment of the present invention, the second light beam output by the indicator light 105 may have multiple purposes, which may meet different requirements of users, and improve user experience.
Alternatively, since one indicator lamp 105 is provided in the terminal device 100, the indicator lamp 105 can output only one light beam at a time, that is, either visible light or infrared light. Therefore, it is necessary to switch the wavelength of the light beam output from the indicator lamp 105. Several ways of switching the wavelength of the light beam output by the indicator lamp 105 according to the embodiments of the present invention are described below.
As an example, please refer to fig. 2, which is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 2, a first switch 106 is provided between the light source 102 and the first and second filters 103 and 104. The first switch 106 is connected to the light source 102 and the processor 101. The process 101 may control the first switch 106 to be connected to the first filter 103 to enable the indicator light 105 to output the first light beam, or control the first switch 106 to be connected to the second filter 104 to enable the indicator light 105 to output the second light beam.
For example, when the processor 101 sends a first control command to the light source 102, the processor 101 may detect the current connection state of the first switch 106. If the first switch 106 is detected to be in the off state, the processor 101 may control the first switch 106 to connect with the first filter 103; if it is detected that the first switch 106 is connected to the second filter 104, the processor 101 may control the first switch 106 to be disconnected from the second filter 104, and control the first switch 106 to be connected to the first filter 103. When the first filter 103 is connected to the first switch 106, the first filter 103 is in an enabled state. When the first filter 103 receives the electromagnetic wave transmitted by the light source 102, the first filter 103 filters the electromagnetic wave under the control of the processor 101 or automatically, outputs the first electromagnetic wave, and transmits the first electromagnetic wave to the indicator lamp 105, so that the indicator lamp 105 outputs a first light beam corresponding to the first electromagnetic wave.
When the processor 101 sends the second control command to the light source 102, the processor 101 may detect the current connection state of the first switch 106. If the first switch 106 is detected to be in the off state, the processor 101 may control the first switch 106 to connect with the second filter 104; if it is detected that the first switch 106 is connected to the first filter 103, the processor 101 may control the first switch 106 to be disconnected from the first filter 103, and control the first switch 106 to be connected to the second filter 104. When the second filter 104 is connected to the first switch 106, the second filter 104 is in an enabled state. When the second filter 104 receives the electromagnetic wave transmitted by the light source 102, the second filter 104 filters the electromagnetic wave under the control of the processor 101 or automatically, outputs the second electromagnetic wave, and transmits the second electromagnetic wave to the indicator lamp 105, so that the indicator lamp 105 outputs the first light beam corresponding to the second electromagnetic wave.
In this example, the processor 101 may control the light source 102 to be connected with the first filter 103 or with the second filter 104 via the first switch 106 such that the indicator light 105 may output the first light beam when connected with the first filter 103 or the second light beam when connected with the second filter 104. In this example, the indicator light 105 may output light beams with different wavelengths, so that different requirements of a user may be met, which is helpful for improving the experience of the user.
As another example, please refer to fig. 3, which is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 3, a second switch 107 is provided between the indicator lamp 105 and the first and second filters 103 and 104. The second switch 107 is connected to the indicator lamp 105 and the processor 101. The process 101 may control the second switch 107 to be connected to the first filter 103 to enable the indicator light 105 to output the first light beam, or control the second switch 107 to be connected to the second filter 104 to enable the indicator light 105 to output the second light beam.
For example, when the processor 101 sends a first control command to the light source 102, the processor 101 may detect the current connection state of the second switch 107. If the second switch 107 is detected to be in the off state, the processor 101 may control the second switch 107 to connect with the first filter 103; if it is detected that the second switch 107 is connected to the second filter 104, the processor 101 may control the second switch 107 to be disconnected from the second filter 104, and control the second switch 107 to be connected to the first filter 103. When the first filter 103 is connected to the second switch 107, the indicator lamp 105 may output the first light beam.
When the processor 101 sends the second control command to the light source 102, the processor 101 may detect the current connection state of the second switch 107. If the second switch 107 is detected to be in the off state, the processor 101 may control the second switch 107 to connect with the second filter 104; if it is detected that the second switch 107 is connected to the first filter 103, the processor 101 may control the second switch 107 to be disconnected from the first filter 103 and control the second switch 107 to be connected to the second filter 104. When the second filter 104 is connected to the second switch 107, the indicator lamp 105 may output a second light beam.
In this example, the processor 101 may control the indicator light 105 to be connected with the first filter 103 or with the second filter 104 through the second switch 107 so that the indicator light 105 may output the first light beam when connected with the first filter 103 or may output the second light beam when connected with the second filter 104. In this example, the indicator light 105 may output light beams with different wavelengths, so that different requirements of a user may be met, which is helpful for improving the experience of the user.
As another example, please refer to fig. 4, which is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 4, the first filter 103 is connected to the light source 102 through an interface 1 of the light source 102, and the second filter 104 is connected to the light source 102 through an interface 2 of the light source 102.
With continued reference to fig. 4, when the light source 102 receives the first control command sent by the processor 101, the light source 102 sends the generated electromagnetic wave to the first filter 103 through the interface 1. The first filter 103 filters the received electromagnetic wave under the control of the processor 101 or automatically, outputs the first electromagnetic wave, and transmits the first electromagnetic wave to the indicator lamp 105, so that the indicator lamp 105 outputs the first light beam.
When the light source 102 receives the second control command sent by the processor 101, the light source 102 sends the generated electromagnetic wave to the second filter 104 through the interface 2. The second filter 104 filters the received electromagnetic wave under the control of the processor 101 or automatically, outputs the second electromagnetic wave, and transmits the second electromagnetic wave to the indicator lamp 105, so that the indicator lamp 105 outputs the second light beam.
In this example, the processor 101 may control the light source 102 to send the generated electromagnetic wave to the first wave filter 103 through the interface 1 or to the second filter 104 through the interface 2, so that the indicator light 105 outputs the first light beam after receiving the first electromagnetic wave and outputs the second light beam after receiving the second electromagnetic wave. In this example, the indicator light 105 may output light beams with different wavelengths, so that different requirements of a user may be met, which is helpful for improving the experience of the user.
It should be noted that, the above description is taken as an example that 1 indicator light and two different filters are provided in the terminal device, but of course, the terminal device may also be provided with a plurality of indicator lights and/or a plurality of different filters, and the embodiment of the present invention is not limited thereto. When the terminal device is provided with a plurality of indicator lights and/or with a plurality of different filters, the terminal device may control the indicator lights to output light beams of specific wavelengths in the same or similar manner as described above.
Based on the same inventive concept, an embodiment of the present invention provides a method for controlling an indicator, please refer to fig. 5, which is a schematic flow chart of the method for controlling an indicator according to the embodiment of the present invention, and the method may be applied to the terminal device shown in fig. 1 to fig. 4 or similar terminal devices. The following description will be made by taking the terminal device shown in fig. 1 as an example. As shown in fig. 5, the method flow includes:
s501, the processor controls the first filter to filter the electromagnetic wave emitted by the light source to obtain a first electromagnetic wave with a first wavelength, so that the indicator light outputs a first light beam corresponding to the first electromagnetic wave.
S502, when the processor determines that the terminal equipment meets the first preset condition, the processor controls the second filter to filter the electromagnetic wave emitted by the light source to obtain a second electromagnetic wave with a second wavelength, so that the indicator light outputs a second light beam corresponding to the second electromagnetic wave.
As can be seen from the foregoing description, in the terminal device, the processor controls the first filter to filter the electromagnetic wave emitted by the light source, so as to obtain a first electromagnetic wave with a first wavelength, and enable the indicator light to output a first light beam corresponding to the first electromagnetic wave; and when the processor determines that the terminal equipment meets the first preset condition, the processor controls the second filter to filter the electromagnetic wave emitted by the light source to obtain a second electromagnetic wave with a second wavelength, so that the indicator lamp outputs a second light beam corresponding to the second electromagnetic wave. Through the mode, the terminal equipment can flexibly change the wavelength of the light beam output by the indicator lamp, so that different requirements of users can be met, and the user experience can be improved.
Based on the same inventive concept, the embodiment of the invention provides a computer-readable storage medium. The computer-readable storage medium has a computer program comprising program instructions which, when executed by a computer, cause the computer to carry out the steps of the above-mentioned method of controlling an indicator light. Since the computer program in this embodiment and the control method of the indicator shown in fig. 5 are based on the invention under the same concept, and the implementation process of the computer program in this embodiment can be clearly understood by those skilled in the art through the foregoing detailed description of the control method of the indicator, so that no further description is provided herein for the sake of brevity of the description.
Based on the same inventive concept, the embodiment of the present invention provides a computer program product. The computer program product stores a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the steps of the above-described method of controlling an indicator light. Since the computer program in this embodiment and the control method of the indicator shown in fig. 5 are based on the invention under the same concept, and the implementation process of the computer program in this embodiment can be clearly understood by those skilled in the art through the foregoing detailed description of the control method of the indicator, so that no further description is provided herein for the sake of brevity of the description.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (5)

1. A control method of an indicator light is applied to a terminal device, the terminal device comprises a processor, the indicator light, a light source, a first filter and a second filter, the first filter is a visible light filter, the second filter is an infrared light filter, and the method comprises the following steps:
when the processor determines that the terminal equipment meets a second preset condition, the processor controls the first filter to filter the electromagnetic wave emitted by the light source to obtain a first electromagnetic wave with a first wavelength, so that the indicator lamp outputs a first light beam corresponding to the first electromagnetic wave;
when the processor determines that the terminal equipment meets a first preset condition, the processor controls the second filter to filter the electromagnetic wave emitted by the light source to obtain a second electromagnetic wave with a second wavelength, so that the indicator lamp outputs a second light beam corresponding to the second electromagnetic wave;
the first preset condition and the second preset condition are different, and the first preset condition comprises one or more of the following conditions:
the processor detects a second preset operation; alternatively, the first and second electrodes may be,
the processor determines that a display screen of the terminal device displays a specific application, wherein the specific application is used for controlling other devices connected with the terminal device;
the second preset condition comprises one or more of the following conditions:
the processor determines that the brightness of the ambient environment of the terminal equipment is lower than a preset brightness; alternatively, the first and second electrodes may be,
the processor determines that the terminal device displays a viewing interface of a camera; alternatively, the first and second electrodes may be,
the processor detects a first preset operation.
2. The method of claim 1, further comprising a first switch in the terminal device; before the processor controls the first filter to filter the electromagnetic wave emitted by the light source, the method further includes:
the processor controls the first switch to be connected with the first filter so as to enable the first filter to be in an enabling state;
before the processor controls the second filter to filter the electromagnetic wave emitted by the light source, the method further includes:
the processor controls the first switch to disconnect from the first filter;
the processor controls the first switch to connect with the second filter so that the second filter is in an enabled state.
3. A terminal device, comprising: the device comprises a processor, an indicator light, a light source, a first filter and a second filter, wherein the first filter is a visible light filter, and the second filter is an infrared light filter;
the light source is used for generating electromagnetic waves;
the processor is used for controlling the light source to generate electromagnetic waves, and controlling the first filter to filter the electromagnetic waves generated by the light source when the terminal equipment is determined to meet a second preset condition, or controlling the second filter to filter the electromagnetic waves generated by the light source when the terminal equipment is determined to meet the first preset condition; the first preset condition and the second preset condition are different, and the first preset condition comprises one or more of the following conditions: the processor detects a second preset operation; or the processor determines that a display screen of the terminal device displays a specific application, wherein the specific application is used for controlling other devices connected with the terminal device; the second preset condition comprises one or more of the following conditions: the processor determines that the brightness of the ambient environment of the terminal equipment is lower than a preset brightness; or the processor determines that the terminal device displays a view interface of a camera; or the processor detects a first preset operation;
the first filter is used for filtering the electromagnetic wave emitted by the light source to obtain a first electromagnetic wave with a first wavelength;
the second filter is used for filtering the electromagnetic wave emitted by the light source to obtain a second electromagnetic wave with a second wavelength;
the indicator light is used for outputting a first light beam corresponding to the first electromagnetic wave or outputting a second light beam corresponding to the second electromagnetic wave.
4. The terminal device of claim 3, further comprising a first switch in the terminal device; the processor, before being configured to control the first filter to filter the electromagnetic waves emitted by the light source, is further configured to:
controlling the first switch to be connected with the first filter so as to enable the first filter to be in an enabling state;
the processor, before being configured to control the second filter to filter the electromagnetic waves emitted by the light source, is further configured to:
controlling the first switch to disconnect from the first filter;
and controlling the first switch to be connected with the second filter so as to enable the second filter to be in an enabling state.
5. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method of any of claims 1-2.
CN201910428619.5A 2019-05-22 2019-05-22 Control method of indicator light, terminal device and computer readable storage medium Active CN110191210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910428619.5A CN110191210B (en) 2019-05-22 2019-05-22 Control method of indicator light, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910428619.5A CN110191210B (en) 2019-05-22 2019-05-22 Control method of indicator light, terminal device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110191210A CN110191210A (en) 2019-08-30
CN110191210B true CN110191210B (en) 2020-11-03

Family

ID=67717330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910428619.5A Active CN110191210B (en) 2019-05-22 2019-05-22 Control method of indicator light, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110191210B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163223A (en) * 2019-12-27 2020-05-15 惠州Tcl移动通信有限公司 Flash lamp control method and device, storage medium and terminal equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107491743A (en) * 2017-07-31 2017-12-19 广东欧珀移动通信有限公司 Iris image acquiring method and Related product
CN107862853A (en) * 2017-10-27 2018-03-30 广东欧珀移动通信有限公司 Infrared transmitter control method, terminal and computer-readable recording medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107491743A (en) * 2017-07-31 2017-12-19 广东欧珀移动通信有限公司 Iris image acquiring method and Related product
CN107862853A (en) * 2017-10-27 2018-03-30 广东欧珀移动通信有限公司 Infrared transmitter control method, terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN110191210A (en) 2019-08-30

Similar Documents

Publication Publication Date Title
KR101859312B1 (en) Image processing method and apparatus, and computer device
CN109120863B (en) Shooting method, shooting device, storage medium and mobile terminal
EP3282644B1 (en) Timing method and device
US20160088710A1 (en) Method and apparatus for controlling smart light
CN109040524B (en) Artifact eliminating method and device, storage medium and terminal
CN104503683A (en) Eyesight protecting method and device
EP2991067A1 (en) Backlight brightness control method and device
KR20180086538A (en) Luminance adjusting method and apparatus
CN108040209B (en) Shooting method and mobile terminal
US20160187953A1 (en) Methods and devices for switching on or off socket
JP6868621B2 (en) Methods and devices for controlling the range hood, and storage media
CN105704328A (en) Message reminding method, message reminding apparatus and mobile terminal
CN105979066A (en) Screen lighting-up method and screen lighting-up device
CN110191210B (en) Control method of indicator light, terminal device and computer readable storage medium
CN111487889A (en) Method, device and equipment for controlling intelligent equipment, control system and storage medium
CN109040729B (en) Image white balance correction method and device, storage medium and terminal
CN110545387A (en) shooting method and terminal equipment
EP3163370B1 (en) Electronic device and method of controlling same for capturing digital images
CN110912830A (en) Method and device for transmitting data
CN105589601B (en) Back light brightness regulating method and device
KR20190123869A (en) Electronic device and method obtaining image using cameras through adjustment of position of external device
KR20210037188A (en) Electronic device for identifying a external electronic device and method of operating the same
CN110086990A (en) A kind of photographic method of terminal, device, portable terminal and storage medium
JP2018504732A (en) System and method for controlling lighting units
KR20150120198A (en) intelligent lumination device

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