CN105828497A - Indicating lamp color switching method for electronic device and electronic device - Google Patents

Indicating lamp color switching method for electronic device and electronic device Download PDF

Info

Publication number
CN105828497A
CN105828497A CN201510679992.XA CN201510679992A CN105828497A CN 105828497 A CN105828497 A CN 105828497A CN 201510679992 A CN201510679992 A CN 201510679992A CN 105828497 A CN105828497 A CN 105828497A
Authority
CN
China
Prior art keywords
display lamp
color
infrared sensor
switching
indicator light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510679992.XA
Other languages
Chinese (zh)
Other versions
CN105828497B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201510679992.XA priority Critical patent/CN105828497B/en
Publication of CN105828497A publication Critical patent/CN105828497A/en
Application granted granted Critical
Publication of CN105828497B publication Critical patent/CN105828497B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention provides an indicating lamp color switching method for an electronic device and the electronic device. The electronic device comprises at least an indicating lamp, and an infrared sensor. The method comprises the steps of when the indicating lamp is in the working state, detecting the working state of the infrared sensor; on the condition that the infrared sensor is in the switched-off state, switching on the infrared sensor; acquiring infrared pulse parameters generated by the infrared sensor; generating an indicating lamp switching instruction according to the infrared pulse parameters; and switching the color of the indicating lamp according to the indicating lamp switching instruction. According to the technical scheme of the invention, based on the infrared sensor in the electronic device, the color of the indicating lamp can be automatically switched, so that the color switching efficiency of the indicating lamp is improved. Meanwhile, since users no loner need to enter the interior of the electronic device, search and set a function menu to switch the color of the indicating lamp, the resource consumption during the above process, namely entering the system and setting the function menu, is reduced. Moreover, the loss of the device is reduced and the service life of the device is prolonged.

Description

The indicator light colors changing method of a kind of electronic equipment and electronic equipment
Technical field
The present invention relates to technical field of electronic equipment, particularly relate to the indicator light colors changing method of a kind of electronic equipment and a kind of electronic equipment switching indicator light colors.
Background technology
Along with the development of Information technology, the electronic equipment carrying display lamp device is gradually popularized, wherein, display lamp is used for reminding the running status of some functions of user, such as: display lamp Chang Liang during mobile phone charging, display lamp flicker when having missed call, unread short messages, display lamp Chang Liang during mobile phone low electricity.In order to distinguish the running status of difference in functionality, display lamp generally includes multiple color, such as: red, green, yellow.Electronic equipment would generally be a certain a kind of color of display lamp event distribution, such as: during mobile phone charging, display lamp is shown in red, and when having missed call, display lamp is shown in green.
In the prior art, user can be operated by software under the display lamp of electronic equipment arranges menu and change indicator light colors scheme, and its setting up procedure is as follows:
When display lamp lights, if user needs to change indicator light colors, he needs entrance system to find display lamp to arrange menu, then changes color.For example, it is assumed that current phone is in sleep state, mobile phone receives a note rear indicator light and lights, and color is shown in green.If user wants the color of this display lamp to change to other colors, he, firstly the need of lighting mobile phone screen, then unlocks, then finds display lamp to arrange menu to carry out color setting.
But, in general, it is deeper that display lamp arranges this kind of function menu path being of little use of menu, user needs repeatedly intermediary operation to get to specified path, and intermediary operation repeatedly often expends more system resource, acceleration equipment is lost, and reduces equipment life.Further, user needs to spend bigger energy just can find this specified path, complex operation.
Summary of the invention
In order to overcome the above-mentioned problems in the prior art, embodiments provide the indicator light colors changing method of a kind of a kind of electronic equipment overcoming the problems referred to above and a kind of electronic equipment switching indicator light colors, solve the specified path that user needs to spend bigger energy just can find switching indicator light colors, complex operation, acceleration equipment is lost, the problem reducing equipment life.
In order to solve the problems referred to above, the invention discloses the indicator light colors changing method of a kind of electronic equipment, described electronic equipment at least includes display lamp, and infrared sensor, and described method includes:
When described display lamp is in running order, detect the duty of described infrared sensor, if described infrared sensor is closed, start described infrared sensor;
Obtain the infrared pulse parameter that described infrared sensor generates;
Display lamp switching command is generated according to described infrared pulse parameter;
The color of described display lamp is switched based on described display lamp switching command.
The invention also discloses a kind of electronic equipment switching indicator light colors, described electronic equipment at least includes display lamp, and infrared sensor, and described electronic equipment also includes:
Infrared sensor starts module, for when described display lamp is in running order, detects the duty of described infrared sensor, if described infrared sensor is closed, starts described infrared sensor;
Pulse parameter acquisition module, for obtaining the infrared pulse parameter that described infrared sensor generates;
Switching command generation module, for generating display lamp switching command according to described infrared pulse parameter;
Color handover module, for switching the color of described display lamp based on described display lamp switching command.
Compared with prior art, the present invention includes advantages below:
In embodiments of the present invention, when the display lamp of electronic equipment is in running order, the duty of detection infrared sensor, if starting infrared sensor when infrared sensor is closed, make infrared sensor in running order, the infrared pulse parameter generated according to the infrared sensor obtained subsequently generates display lamp switching command, and the color of display lamp is switched based on this display lamp switching command, according to embodiments of the present invention, carry out the automatic switchover of indicator light colors based on the infrared sensor in electronic equipment, improve the efficiency of indicator light colors switching.Further, owing to user is without entering inside electronic apparatus system, search and arrange function menu to switch indicator light colors, thus decrease and enter internal system the consuming of resource during menu is set, reduce equipment loss, improve equipment life.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of the indicator light colors changing method embodiment one of a kind of electronic equipment of the present invention;
Fig. 2 is the flow chart of steps of the indicator light colors changing method embodiment two of a kind of electronic equipment of the present invention;
Fig. 3 is the interface of mobile terminal schematic diagram of the indicator light colors changing method embodiment two of a kind of electronic equipment of the present invention;
Fig. 4 is the structured flowchart of a kind of electronic equipment embodiment switching indicator light colors of the present invention.
Detailed description of the invention
Understandable for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from, the present invention is further detailed explanation with detailed description of the invention below in conjunction with the accompanying drawings.
With reference to Fig. 1, show the flow chart of steps of the indicator light colors changing method embodiment one of a kind of electronic equipment of the present invention, wherein said electronic equipment can include mobile phone, PDA (PersonalDigitalAssistant, personal digital assistant), laptop computer, panel computer etc., and, described electronic equipment at least can include the devices such as display lamp, and infrared sensor.
The embodiment of the present invention specifically may include steps of:
Step 101, when described display lamp is in running order, detects the duty of described infrared sensor, if described infrared sensor is closed, starts described infrared sensor.
In implementing, the scene promoting display lamp in running order may include that electronic equipment charging, has missed call, unread short messages, unread mail, the low electricity of electronic equipment etc..When electronic equipment detects that above-mentioned scene occurs, display lamp event can be generated, and this display lamp event is sent to display lamp, after display lamp receives display lamp event, open display lamp according to this display lamp event.
Display lamp event at least can include normal bright display lamp event and flashing indicator light event.When the display lamp event that display lamp receives is normal bright display lamp event, then open the normal bright state that display lamp enters, if the display lamp event that display lamp receives is flashing indicator light event, then open the flicker state that display lamp enters.
It is applied to the embodiment of the present invention, when detecting that display lamp is in running order, can detect the duty of infrared sensor further, if detecting, infrared sensor is closed, then can start infrared sensor so that infrared sensor is in running order.
Step 102, obtains the infrared pulse parameter that described infrared sensor generates.
After infrared sensor starts, infrared sensor can detect whether self is blocked by obstructions, and generates infrared pulse parameter according to testing result.
Infrared sensor can by infrared pulse parameter send to electronic equipment, or, electronic equipment can at infrared sensor active obtaining infrared pulse parameter.
Step 103, generates display lamp switching command according to described infrared pulse parameter.
After electronic equipment gets infrared pulse parameter, based on infrared pulse parameter, display lamp switching command can be generated.
Step 104, switches the color of described display lamp based on described display lamp switching command.
After electronic equipment generates display lamp switching command, based on this display lamp switching command, the switching of the color of display lamp can be controlled.
In embodiments of the present invention, when the display lamp of electronic equipment is in running order, the duty of detection infrared sensor, if starting infrared sensor when infrared sensor is closed, make infrared sensor in running order, the infrared pulse parameter generated according to the infrared sensor obtained subsequently generates display lamp switching command, and the color of display lamp is switched based on this display lamp switching command, according to embodiments of the present invention, carry out the automatic switchover of indicator light colors based on the infrared sensor in electronic equipment, improve the efficiency of indicator light colors switching.Further, owing to user is without entering inside electronic apparatus system, search and arrange function menu to switch indicator light colors, thus decrease and enter internal system the consuming of resource during menu is set, reduce equipment loss, improve equipment life.
With reference to Fig. 2, it is shown that the flow chart of steps of the indicator light colors changing method embodiment two of a kind of electronic equipment of the present invention.
In embodiments of the present invention, electronic equipment at least can include the device such as display lamp and infrared sensor, such as, in the interface of mobile terminal schematic diagram shown in Fig. 3, mobile terminal can include infrared sensor 1.1, display lamp 1.2.
The embodiment of the present invention specifically may include steps of:
Step 201, when described display lamp is in running order, detects the duty of described infrared sensor, if described infrared sensor is closed, starts described infrared sensor.
In implementing, the sight promoting electronic equipment unlatching display lamp to make it into duty at least may include that electronic equipment charging, has missed call, unread short messages, unread mail, the low electricity of electronic equipment etc..When electronic equipment detects that above-mentioned sight occurs, then start display lamp.
In practice, display lamp can be opened by the central processing unit of electronic equipment, when electronic equipment charging occurring, having the scenes such as missed call, unread short messages, unread mail, the low electricity of electronic equipment, central processing unit can start display lamp by sending display lamp event to display lamp, wherein, display lamp event at least can include normal bright display lamp event and flashing indicator light event.When the display lamp event that display lamp receives is normal bright display lamp event, then open the normal bright state that display lamp enters, if the display lamp event that display lamp receives is flashing indicator light event, then open the flicker state that display lamp enters.
Such as, when there being missed call, central processing unit generates flashing indicator light event, and this flashing indicator light event is sent to display lamp.After display lamp receives flashing indicator light event, enter flicker duty.
After display lamp enters duty, electronic equipment can detect the duty of infrared sensor further, if be detected that infrared sensor is closed, then starts infrared sensor, and now, infrared sensor is in running order.
Step 202, obtains the infrared pulse parameter that described infrared sensor generates.
In implementing, infrared pulse parameter is the signal parameter that infrared sensor generates according to the situation that is blocked of self.As a kind of preferred exemplary of the present embodiment, infrared pulse parameter can include the number etc. of infrared pulse signal.Wherein, one infrared pulse signal is that infrared sensor detects that shelter occurs once near away from generation during event, concrete, one infrared pulse signal is the primary occlusion event of shelter, one infrared pulse signal can include high level signal and low level signal, wherein, high level signal can be the level signal that infrared sensor sends when detecting and be blocked by obstructions (the close event of shelter), low level signal can be the level signal (shelter away from event) that infrared sensor sends when shelter being detected away from described infrared sensor.
In one embodiment, can detect whether infrared sensor is blocked by obstructions in the following way:
Infrared emission tube and infrared receiver tube can be included inside infrared sensor.Assuming that infrared emission tube send ultrared time gap infrared receiver tube to receive the ultrared time is t, and the light velocity is c, then distance s=c*t/2 of shelter distance infrared sensor.As 0cm≤s≤1cm, it is believed that infrared sensor is blocked;As s > 1cm, it is believed that infrared sensor is not blocked,.
Certainly, the mode whether above-mentioned detection infrared sensor is blocked by obstructions is only a kind of example of the embodiment of the present invention, those skilled in the art adopt carry out in other ways judging also possible, the embodiment of the present invention to this without being any limitation as.
It should be noted that high level signal can also be set to situation about not being blocked according to practical situation by those skilled in the art, low level signal is set to situation about being blocked, the embodiment of the present invention to this without being any limitation as.
Step 203, if it is determined that the number of described infrared pulse signal reaches predetermined number threshold value, then generates display lamp switching command.
In embodiments of the present invention, predetermined number threshold value can be set to inspire the generation of display lamp switching command, when the number of times (i.e. the number of infrared pulse signal) that infrared sensor is blocked by shelter reaches predetermined number threshold value, trigger electronic equipment and generate display lamp switching command.
Such as, if the predetermined number threshold value arranged is 2, and to arrange high level signal be infrared sensor expression when being blocked, and low level signal is that shelter is away from expression during infrared sensor.After infrared sensor is opened, when infrared sensor detects and is blocked by obstructions, then produce high level signal, when detecting that shelter leaves, then produce low level signal, a high level signal and low level signal one infrared pulse signal of composition.When again detect infrared sensor detect be blocked by obstructions time, produce high level signal, when detecting that shelter leaves, then produce low level signal, and so on, when number infrared pulse signal that infrared sensor produces being detected reaches predetermined number threshold value 2, then can generate display lamp switching command.
It should be noted that, the embodiment of the present invention can be to the time T1 of shelter primary occlusion infrared sensor, and, T2 interval time that shelter blocks between infrared sensor for twice is defined, such as, T1 is set as 300ms, T2 is set as 500ms, when the operating time (can be presented as the time between length and two high level signals of high level signal) of user exceeds the above-mentioned setting time, it is judged to maloperation, to avoid the time the shortest operation easier that may cause user to increase, time is oversize, easily produces maloperation, improve operation possibility and judgment accuracy.
On the other hand, if it is decided that the number of described infrared pulse signal is not reaching to predetermined number threshold value, the most do not generate display lamp switching command, and continue waiting for the infrared pulse signal that infrared sensor produces.
In implementing, display lamp switching command can be generated and sent to the central processing unit of electronic equipment by infrared sensor, can also be to be detected by the central processing unit of electronic equipment to generate after infrared pulse signal, the embodiment of the present invention to this without being any limitation as.
Step 204, switches the color of described display lamp based on described display lamp switching command.
After generating display lamp switching command, the color switching of display lamp can be controlled according to this display lamp switching command.
In one embodiment, step 204 may include that based on display lamp switching command, randomly selects a kind of color in addition to current indicator light colors from default colour sequential, as the indicator light colors after switching;And the color of display lamp is switched to the indicator light colors after described switching.
Being applied to the embodiment of the present invention, when carrying out indicator light colors switching, the color after display lamp switching can be random, concrete, the colour sequential that the system that is preset with in electronic equipment carries, or the colour sequential that user formerly selectes.After generating display lamp switching command, the colour sequential that can carry from this or formerly selected colour sequential randomly select a kind of color differing from current indicator light colors, as the indicator light colors after switching, and generate the transmission of color switching command to display lamp according to the indicator light colors after switching, after display lamp receives this color switching command, current color is switched to the indicator light colors after this switching.
In another embodiment, step 204 may include that based on described display lamp switching command, selects one to remove the current preceding color of indicator light colors external sorting, as the indicator light colors after switching from default colour sequential;The color of described display lamp is switched to the indicator light colors after described switching.
Specifically, the colour sequential that the system that is preset with in electronic equipment carries, or the colour sequential that user formerly selectes.After generating display lamp switching command, select one except the current preceding color of indicator light colors external sorting from default colour sequential, as the indicator light colors after switching, and generate the transmission of color switching command to display lamp according to the indicator light colors after switching, after display lamp receives this color switching command, current color is switched to the indicator light colors after this switching.
In implementing, in order to reduce the repeatability of color selecting when indicator light colors switches, select one except the current preceding color of indicator light colors external sorting in default colour sequential, after the indicator light colors after switching, the color currently selected can be adjusted the afterbody to described colour sequential so that next color is ranked in first place.
It is applied to the embodiment of the present invention, within the survival phase that display lamp is in running order, if the indicator light colors after current switching is unsatisfied with by user, user can repeat and infrared sensor is blocked operation, with the color of continuous change instruction lamp, until indicator light colors switching is satisfied.
In another embodiment, the numbering of correspondence can also be set for each color in colour sequential, be multiplied by according to numbering and block frequency threshold value, obtain object run number of times, this object run number of times, for indicator light colors switches to color of object, needs to block the number of times of infrared sensor.Then infrared sensor detects the object run number of times that this user performs, generate display lamp switching command according to this object run number of times to send to central processing unit, central processing unit is according to this object run number of times and blocks frequency threshold value, calculate Target indication lamp color code, and according to the Target indication lamp color of this Target indication lamp color code location correspondence, generate color switching command according to this Target indication lamp color to send to display lamp, after display lamp receives this color switching command, display lamp current color switched to this Target indication lamp color.This mode can be switched to Target indication lamp color with settling at one go, reduces the number of times of user's intermediary operation, and the data volume reducing system processes.
In implementing, in order to save the electricity consumption of electronic equipment, when detecting that display lamp is closed, infrared sensor can be closed.
In order to make those skilled in the art better understood when the embodiment of the present invention, below by way of an object lesson to embodiment of the present invention exemplary illustration in addition.
(1) when detecting that display lamp is opened, the duty of detection infrared sensor, if infrared sensor is closed, open infrared sensor.
(2) judge whether infrared inductor is blocked, if being blocked, producing high level signal, and performing step (3);If be not blocked, then circulation performs step (2).
(3) judge whether shelter was removed within the T1 time.If removed, producing low level signal, this low level signal forms an infrared pulse signal with above-mentioned high level signal, and performs step (5), if do not removed, performs step (4).
(4) it is judged as maloperation, waits that shelter is removed, after removing, return step (2).
(5) judge that infrared inductor is blocked within the T2 time the most again.If be blocked, then producing high level signal, and perform step (6), if be not blocked, returning step (2).
(6) judge whether shelter was removed within the T1 time.If removed, producing low level signal, this low level signal forms an infrared pulse signal with above-mentioned high level signal, and performs step (8), if do not removed, performs step (7).
(7) it is judged as maloperation, waits that shelter is removed, after removing, return step (2).
(8) number judging infrared pulse signal is 2, equal to predetermined number threshold value 2, then generates display lamp switching command.
(9) color of described display lamp is switched based on described display lamp switching command.
In embodiments of the present invention, take full advantage of electronic equipment existing device infrared sensor, when infrared sensor is in running order, the situation blocking infrared sensor according to shelter produces infrared pulse signal, if it is determined that the number of infrared pulse signal reaches predetermined number threshold value, then generate display lamp switching command, and the color of display lamp is switched based on display lamp switching command, the infrared pulse signal produced by blocking infrared sensor is switched fast indicator light colors, enter in system without user, the position of menu is set also without user's memory indicator, convenience has had and has promoted greatly, and expend less system resource, improve the electronic equipment life-span.
Based on same inventive concept, with reference to Fig. 4, show the structured flowchart of a kind of electronic equipment embodiment switching indicator light colors of the present invention, described electronic equipment can include mobile phone, computer, projector, printer, router, PDA (PersonalDigitalAssistant, palm PC) etc..
Described electronic equipment at least can include that the devices such as display lamp, and infrared sensor, described electronic equipment can also include such as lower module.
Infrared sensor starts module 401, for when described display lamp is in running order, detects the duty of described infrared sensor, if described infrared sensor is closed, starts described infrared sensor;
Pulse parameter acquisition module 402, for obtaining the infrared pulse parameter that described infrared sensor generates;
Switching command generation module 403, for generating display lamp switching command according to described infrared pulse parameter;
Color handover module 404, for switching the color of described display lamp based on described display lamp switching command.
In a kind of preferred embodiment of the embodiment of the present invention, described infrared pulse parameter includes the number of infrared pulse signal, wherein, one infrared pulse signal includes high level signal and low level signal, described high level signal is that described infrared sensor detects that the level signal sent when being blocked by obstructions, described low level signal are the level signal that described infrared sensor sends when described shelter being detected away from described infrared sensor;
Described switching command generation module 403 includes:
Instruction generates submodule, during for reaching predetermined number threshold value in the number judging described infrared pulse signal, generates display lamp switching command.
In a kind of preferred embodiment of the embodiment of the present invention, described color handover module 404 includes:
First color selecting submodule, for based on described display lamp switching command, randomly selects a kind of color in addition to current indicator light colors from default colour sequential, as the indicator light colors after switching;
First switching submodule, the indicator light colors after the color of described display lamp is switched to described switching.
In the another kind of preferred embodiment of the embodiment of the present invention, described color handover module 404 includes:
Second color selecting submodule, for based on described display lamp switching command, selects one to remove the current preceding color of indicator light colors external sorting, as the indicator light colors after switching from default colour sequential;
Second switching submodule, the indicator light colors after the color of described display lamp is switched to described switching.
In a kind of preferred embodiment of the embodiment of the present invention, described color handover module 304 also includes:
Adjust submodule, in described colour sequential, the color currently selected is adjusted the afterbody to described colour sequential.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, and between each embodiment, identical similar part sees mutually.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present invention can be provided as method, device or computer program.Therefore, the form of the embodiment in terms of the embodiment of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware.And, the embodiment of the present invention can use the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The embodiment of the present invention is to describe with reference to method, terminal unit (system) and the flow chart of computer program according to embodiments of the present invention and/or block diagram.It should be understood that can be by the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminal equipment so that the instruction performed by the processor of computer or other programmable data processing terminal equipment is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing terminal equipment work in a specific way, the instruction making to be stored in this computer-readable memory produces the manufacture including command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment, make to perform sequence of operations step on computer or other programmable terminal equipment to produce computer implemented process, thus the instruction performed on computer or other programmable terminal equipment provides the step of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame for realization.
Although having been described for the preferred embodiment of the embodiment of the present invention, but those skilled in the art once know basic creative concept, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of range of embodiment of the invention.
Finally, it can further be stated that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation or sequentially that there is any this reality between these entities or operation.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include that the process of a series of key element, method, article or terminal unit not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or terminal unit.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or terminal unit.
Indicator light colors changing method and electronic equipment to a kind of electronic equipment provided by the present invention are described in detail above, principle and the embodiment of the present invention are set forth by specific case used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, the most all will change, in sum, this specification content should not be construed as limitation of the present invention.

Claims (10)

1. the indicator light colors changing method of an electronic equipment, it is characterised in that described electronic equipment at least includes display lamp, and infrared sensor, described method includes:
When described display lamp is in running order, detect the duty of described infrared sensor, if described infrared sensor is closed, start described infrared sensor;
Obtain the infrared pulse parameter that described infrared sensor generates;
Display lamp switching command is generated according to described infrared pulse parameter;
The color of described display lamp is switched based on described display lamp switching command.
Method the most according to claim 1, it is characterized in that, described infrared pulse parameter includes the number of infrared pulse signal, wherein, one infrared pulse signal includes high level signal and low level signal, described high level signal is that described infrared sensor detects that the level signal sent when being blocked by obstructions, described low level signal are the level signal that described infrared sensor sends when described shelter being detected away from described infrared sensor;
The described step according to described infrared pulse parameter generation display lamp switching command is:
If it is determined that the number of described infrared pulse signal reaches predetermined number threshold value, then generate display lamp switching command.
Method the most according to claim 1 and 2, it is characterised in that the step of the described color switching described display lamp based on described display lamp switching command includes:
Based on described display lamp switching command, from default colour sequential, randomly select a kind of color in addition to current indicator light colors, as the indicator light colors after switching;
The color of described display lamp is switched to the indicator light colors after described switching.
Method the most according to claim 1 and 2, it is characterised in that the step of the described color switching described display lamp based on described display lamp switching command includes:
Based on described display lamp switching command, one is selected to remove the current preceding color of indicator light colors external sorting, as the indicator light colors after switching from default colour sequential;
The color of described display lamp is switched to the indicator light colors after described switching.
Method the most according to claim 4, it is characterized in that, described based on described display lamp switching command, select one except the current preceding color of indicator light colors external sorting from default colour sequential, after step as the indicator light colors after switching, also include:
In described colour sequential, the color currently selected is adjusted the afterbody to described colour sequential.
6. the electronic equipment switching indicator light colors, it is characterised in that described electronic equipment at least includes display lamp, and infrared sensor, described electronic equipment also includes:
Infrared sensor starts module, for when described display lamp is in running order, detects the duty of described infrared sensor, if described infrared sensor is closed, starts described infrared sensor;
Pulse parameter acquisition module, for obtaining the infrared pulse parameter that described infrared sensor generates;
Switching command generation module, for generating display lamp switching command according to described infrared pulse parameter;
Color handover module, for switching the color of described display lamp based on described display lamp switching command.
Electronic equipment the most according to claim 6, it is characterized in that, described infrared pulse parameter includes the number of infrared pulse signal, wherein, one infrared pulse signal includes high level signal and low level signal, described high level signal is that described infrared sensor detects that the level signal sent when being blocked by obstructions, described low level signal are the level signal that described infrared sensor sends when described shelter being detected away from described infrared sensor;
Described switching command generation module includes:
Instruction generates submodule, during for reaching predetermined number threshold value in the number judging described infrared pulse signal, generates display lamp switching command.
8. according to the electronic equipment described in claim 6 or 7, it is characterised in that described color handover module includes:
First color selecting submodule, for based on described display lamp switching command, randomly selects a kind of color in addition to current indicator light colors from default colour sequential, as the indicator light colors after switching;
First switching submodule, the indicator light colors after the color of described display lamp is switched to described switching.
9. according to the electronic equipment described in claim 6 or 7, it is characterised in that described color handover module includes:
Second color selecting submodule, for based on described display lamp switching command, selects one to remove the current preceding color of indicator light colors external sorting, as the indicator light colors after switching from default colour sequential;
Second switching submodule, the indicator light colors after the color of described display lamp is switched to described switching.
Electronic equipment the most according to claim 9, it is characterised in that described color handover module also includes:
Adjust submodule, in described colour sequential, the color currently selected is adjusted the afterbody to described colour sequential.
CN201510679992.XA 2015-10-19 2015-10-19 The indicator light colors switching method and electronic equipment of a kind of electronic equipment Active CN105828497B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510679992.XA CN105828497B (en) 2015-10-19 2015-10-19 The indicator light colors switching method and electronic equipment of a kind of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510679992.XA CN105828497B (en) 2015-10-19 2015-10-19 The indicator light colors switching method and electronic equipment of a kind of electronic equipment

Publications (2)

Publication Number Publication Date
CN105828497A true CN105828497A (en) 2016-08-03
CN105828497B CN105828497B (en) 2019-02-15

Family

ID=56514637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510679992.XA Active CN105828497B (en) 2015-10-19 2015-10-19 The indicator light colors switching method and electronic equipment of a kind of electronic equipment

Country Status (1)

Country Link
CN (1) CN105828497B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294200A (en) * 2013-06-27 2013-09-11 深圳市中兴移动通信有限公司 Mobile terminal and method for switching patterns thereof
CN103796394A (en) * 2014-02-19 2014-05-14 厦门灿弘光电有限公司 Infrared induction LED lamp
CN104812127A (en) * 2015-03-25 2015-07-29 小米科技有限责任公司 Light emission control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294200A (en) * 2013-06-27 2013-09-11 深圳市中兴移动通信有限公司 Mobile terminal and method for switching patterns thereof
CN103796394A (en) * 2014-02-19 2014-05-14 厦门灿弘光电有限公司 Infrared induction LED lamp
CN104812127A (en) * 2015-03-25 2015-07-29 小米科技有限责任公司 Light emission control method and device

Also Published As

Publication number Publication date
CN105828497B (en) 2019-02-15

Similar Documents

Publication Publication Date Title
US10285106B2 (en) User equipment and method for ensuring continuous service reception in wireless network
CN107231489B (en) Terminal and screen projection method thereof
CN104125344B (en) Reminding method and system
CN103310763B (en) Method, device and a kind of equipment that a kind of mobile device show state switches
CN105224227B (en) A kind of display control method and mobile terminal for shooting interface
CN105208056B (en) Information interaction method and terminal
CN105611605B (en) It searches network control method, search net control device and terminal
CN107111882B (en) Stripe set searching method, device and system
CN103345355A (en) Screen-locking interface display control method, device and terminal device
CN106131345A (en) The control method of a kind of proximity transducer, device and mobile terminal
EP4255054A1 (en) Cell handover method and apparatus
JP2006352479A (en) Electronic equipment and control method thereof
CN104063381A (en) Multilevel tree menu display method and terminal
CN103207778A (en) Method, device and mobile terminal for modifying icons
JP7374131B2 (en) Cell management method, terminal and network side equipment
CN104898930B (en) The setting method and system of intelligent terminal operative scenario
CN102932595A (en) Method and device for sound-control photographing and terminal
CN103905717A (en) Switching method and device and electronic device
CN108087970A (en) Air purification method, system and computer readable storage medium
CN106445970B (en) Loading processing method and device for placeholder map
CN104582192B (en) Remote control method for controlling backlight thereof and system
CN105959473A (en) Screen brightness adjusting method and device
CN109284186A (en) Mobile terminal and its method and apparatus for detecting frame rate adjustment mobile terminal performance
CN106452644B (en) Control method for playing back, device and terminal
CN104836912A (en) Information processing method and mobile terminal

Legal Events

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