CN106937462A - A kind of control method and terminal of terminal indicator lamp - Google Patents
A kind of control method and terminal of terminal indicator lamp Download PDFInfo
- Publication number
- CN106937462A CN106937462A CN201710170258.XA CN201710170258A CN106937462A CN 106937462 A CN106937462 A CN 106937462A CN 201710170258 A CN201710170258 A CN 201710170258A CN 106937462 A CN106937462 A CN 106937462A
- Authority
- CN
- China
- Prior art keywords
- charging device
- sensor
- indicator lamp
- terminal
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000013459 approach Methods 0.000 claims abstract description 97
- 230000005684 electric field Effects 0.000 claims description 23
- 238000001514 detection method Methods 0.000 claims description 17
- 238000004364 calculation method Methods 0.000 claims description 12
- 230000005611 electricity Effects 0.000 claims description 12
- 238000009434 installation Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 238000004590 computer program Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000005286 illumination Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003760 hair shine Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
- H05B47/11—Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
This application discloses a kind of control method and terminal of terminal indicator lamp, due to obtaining the approach signal produced by event based on charging device;According to the approach signal open instruction lamp, wherein, the indicator lamp is used for the charge port of lamp terminal.So, as long as user is by charging device close to electronic product, indicator lamp may turn on, and be easy to user to find charge port.Especially in the weaker environment of light (such as night turn off the light after room), it is easy to user to find equipment and charge port with charging.So, user just can be by the light of indicator lamp, it is easy to which ground finds charge port, facilitates charging operations, improves Consumer's Experience.
Description
Technical field
The application is related to technical field of information processing, more particularly to a kind of control method and terminal of terminal indicator lamp.
Background technology
With the high speed development of science and technology, each electronic product (such as mobile phone, panel computer etc.) and contacting that people live
Also all the more tight.Charged to each electronic product, into a part for people's daily life.
At present, when in the weaker environment of light (such as room after night turns off the light), user wants electron product to charge,
Due to dark, it is difficult to find charge port, so charging operations are inconvenient.Puzzlement, poor user experience are caused to user.
The content of the invention
The embodiment of the present application provides a kind of control method and terminal of terminal indicator lamp, is used to solve exist in the prior art
In the weaker environment of light (such as night turn off the light after room), user wants electron product to charge.Due to dark, it is difficult to look for
To charge port, cause charging operations inconvenience, puzzlement, the problem of poor user experience are caused to user.
On the one hand, the embodiment of the present application provides a kind of control method of terminal indicator lamp, including:
Obtain the approach signal produced by event based on charging device;
According to the approach signal open instruction lamp, wherein, the indicator lamp is used for the charge port of lamp terminal.
On the other hand, the embodiment of the present application provides a kind of terminal, including is arranged on the charge port on terminal body, also wraps
Include:Processor, sensor and the indicator lamp for illuminating charge port;
The sensor, for obtaining the approach signal produced by event based on charging device;
The processor, for opening the indicator lamp according to the approach signal.
On the other hand, the embodiment of the present application provides a kind of control device of terminal indicator lamp, and described device includes:
Acquisition module, for obtaining the approach signal produced by event based on charging device;
Opening module, for according to the approach signal open instruction lamp, wherein, the indicator lamp is used for lamp terminal
Charge port.
The application has the beneficial effect that:In the technical scheme that the embodiment of the present application is provided, filled based on charging due to obtaining
The approach signal produced by event put;According to the approach signal open instruction lamp, wherein, the indicator lamp is used to shine
The charge port of bright terminal.So, as long as user is by charging device close to electronic product, indicator lamp may turn on is easy to user to find
Charge port.Especially in the weaker environment of light (such as night turn off the light after room), it is easy to user to find equipment to be charged
And charge port.So, user just can be by the light of indicator lamp, it is easy to which ground finds charge port, facilitates charging operations, carries
Consumer's Experience high.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in the embodiment of the present application, below will be to make needed for embodiment description
Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present application, for this
For the those of ordinary skill in field, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 show the control method schematic flow sheet of the terminal indicator lamp of the offer of the embodiment of the present application one;
Fig. 2 show the indicator lamp schematic diagram of the offer of the embodiment of the present application one;
Fig. 3 show the indicator lamp schematic diagram of the offer of the embodiment of the present application one;
Fig. 4 show the control method schematic flow sheet of the terminal indicator lamp of the offer of the embodiment of the present application two;
Fig. 5 show the terminal structure schematic diagram of the offer of the embodiment of the present application three;
Fig. 6 show the indicator lamp schematic diagram of the offer of the embodiment of the present application three;
The flow of the control method that the terminal that Fig. 7 show the offer of the embodiment of the present application three performs terminal indicator lamp is illustrated
Figure;
Fig. 8 show the control device structure chart of the terminal indicator lamp of the offer of the embodiment of the present application five.
Specific embodiment
In order that the purpose, technical scheme and advantage of the application are clearer, below in conjunction with accompanying drawing the application is made into
One step ground is described in detail, it is clear that described embodiment is only some embodiments of the present application, rather than whole implementation
Example.Based on the embodiment in the application, what those of ordinary skill in the art were obtained under the premise of creative work is not made
All other embodiment, belongs to the scope of the application protection.
Embodiment one:
As described in Figure 1, the schematic flow sheet of the control method of the terminal indicator lamp for being provided for the embodiment of the present application, the method
Comprise the following steps:
Step 101:Obtain the approach signal produced by event based on charging device.
Step 102:The indicator lamp is opened according to the approach signal, wherein, the indicator lamp is used to illuminate the end
The charge port at end.
Wherein, charging device can be charge cable or adapter etc..Certainly, in the prior art can electron product fill
The device of electricity, suitable for the present embodiment, in the protection domain of the embodiment of the present application, the application is not limited this.
Wherein, for ease of the charge port of lamp terminal, such as Fig. 2, indicator lamp is set around charge port;Or, such as Fig. 3,
The point-like indicator lamp of indicator lamp including predetermined number, and the point-like indicator lamp of predetermined number fills in the homonymy or point be listed in of charge port
The both sides of power port.Wherein, around when setting, indicator lamp can be annular etc., such as one lamp, or point of circle shape
The bulb of shape.Point-like indicator lamp can be distributed in the surrounding of charge port.Certainly, the method to set up of indicator lamp has various, this
Application is not limited this.
For ease of understanding, the control method of the terminal indicator lamp for providing the embodiment of the present application below is described further,
May include herein below:
Wherein, in one embodiment, due to (such as the room or outdoor on daytime), user in the case of light is preferable
Charge port can be clearly seen, easily electron product can be charged.So, in the embodiment of the present application, can use
One of in the following manner reduces the power consumption of electronic product, saves process resource:
Mode one:
Before the indicator lamp is opened, following steps can be performed:
Step A1:Obtain the light intensity of ambient light.
Step A2:Determine the light intensity whether less than default light intensity.
Step A3:If less than default light intensity, opening the indicator lamp.
Wherein, light intensity can be the thing of the bright-dark degree that intensity of illumination (illumination), brightness etc. can measure light
Reason amount.Default light intensity such as illumination is 0.5 lux.During specific implementation, default light can be according to actual needs determined
Intensity, the application is not limited this.So, only get based on charging device produced by event close to letter
Number and determine surrounding environment light intensity it is weaker constantly, indicator lamp can just be opened, and around the light intensity of environment compared with
When good, such as, on daytime, even if charging device is close to charge port, indicator lamp will not also be opened.So as to reduce electronic product
Power consumption, has saved process resource.
Mode two:
Obtain based on charging device close to before the approach signal produced by event, removable execution following steps:
Step B1:Detect the light intensity of ambient light.
Step B2:Whether the light intensity is judged less than default light intensity, if so, then further obtain to be based on charging
The approach signal produced by event of device;If it is not, not obtaining the connecing produced by event based on charging device then
Nearly signal.
So, only when the light intensity that surrounding environment is determined is weaker, can just obtain close based on charging device
Approach signal produced by event;And when the light intensity of surrounding environment is preferable, then do not obtain close based on charging device
Approach signal produced by event.The power consumption of electronic product can be further reduced, process resource is saved.
It should be noted that during specific implementation, can simultaneously obtain the connecing produced by event based on charging device
The light intensity of nearly signal and detection ambient light.Can also first obtain based on charging device produced by event close to letter
Number, after the approach signal produced by event based on charging device is got, then the light intensity for detecting ambient light.Also
The light intensity of ambient light can be first detected, after it is determined that light intensity is less than default light intensity, then is obtained based on the dress that charges
The approach signal produced by event put.The power consumption of electronic product can be reduced, process resource has been saved.Specific implementation
When, can implement according to actual needs, the application is not limited this.
Wherein, in one embodiment, if user is for electronic product fills electricity with, then obtain based on the dress that charges
The approach signal produced by event put is nonsensical with the light intensity of detection ambient light, and wastes process resource.Therefore,
In the embodiment of the present application, can one of in the following manner or it combines to save process resource:
Mode one:
Before step 101 (obtaining based on charging device close to approach signal produced by event), can also carry out with
Lower step:
Step C1:When the battery dump energy of the terminal is less than default electricity, judge the charging device whether with
The charge port connection;If so, then performing step C2:If it is not, then performing step C3.
Step C2:The approach signal produced by event based on charging device is not obtained.
Step C3:Obtain the approach signal produced by event based on charging device.
So, the approach signal produced by event based on charging device is obtained to have ready conditions execution, relative to
Unconditional execution can save process resource.
Mode two:
Before step B1 (light intensity of detection ambient light), following operation is can also carry out, i.e.,:Judge the charging device
Whether it is connected with the charge port;If so, not obtaining the light intensity of ambient light then;If it is not, the light for then obtaining ambient light is strong
Degree.
So, the light intensity of detection ambient light is had ready conditions execution, and treatment can be saved relative to unconditional execution
Resource.
When above two method combination, before step A1 (obtaining the light intensity of ambient light), can perform following
Step:
Step D1:When the battery dump energy of the terminal is less than default electricity, judge the charging device whether with
The charge port connection;If so, then performing step D2:If it is not, then performing step D3.
Step D2:The approach signal produced by event based on charging device is not obtained;And do not obtain ambient light
Light intensity.
Step D3:Obtain the approach signal produced by event based on charging device;And obtain the light of ambient light
Intensity.
Wherein, in one embodiment, for the ease of obtaining the approach signal, step 101 (is obtained and is based on charging device
The approach signal produced by event) can specifically to perform be various ways.For example can one of in the following manner:
Mode one:
Typically, if charging device and electronic product are apart from close, it is believed that user thinks to be that electronic product charges.So,
In the embodiment of the present application, can be by judging that charging device is obtained based on charging device close to thing with the distance of electronic product
Approach signal produced by part.Such as following three kinds of methods:
Method 1:Sensor emission infrared light simultaneously detects the luminous intensity that the charging device is reflected, according to the light intensity
Degree calculates the distance of the terminal and charging device, and the approach signal is produced if the distance meets predeterminable range threshold value.
It should be noted that sensor can launch infrared light and detect luminous intensity during specific execution, then by with meter
The processor of calculation ability calculates the distance of the terminal and charging device to perform according to the luminous intensity, if the distance meets pre-
If distance threshold then produces the operation of the approach signal.
Method 2:Sensor emission light pulse simultaneously detects that the charging device reflects the time of light pulse, according to described
Terminal described in Time Calculation and the distance of charging device, the approach signal is produced if the distance meets predeterminable range threshold value.
It should be noted that specific sensor when performing can launch light pulse and detecting reflect light pulse when
Between, the distance of terminal and charging device according to the Time Calculation is then performed as the processor with computing capability,
The operation of the approach signal is produced if the distance meets predeterminable range threshold value.
Method 3:Sensor emission ultrasonic wave simultaneously detects that the charging device reflects the time of ultrasonic wave, according to described
Terminal described in Time Calculation and the distance of charging device, the approach signal is produced if the distance meets predeterminable range threshold value.
It should be noted that specific sensor when performing can launch ultrasonic wave and detecting reflect ultrasonic wave when
Between, the distance of terminal and charging device according to the Time Calculation is then performed as the processor with computing capability,
The operation of the approach signal is produced if the distance meets predeterminable range threshold value.
Wherein, predeterminable range threshold value is, for example, 0-5cm.During specific implementation, predeterminable range threshold value can be according to the actual requirements
Setting, the present embodiment is not limited this.
Wherein, in one embodiment, the bar of predeterminable range threshold value is met in the distance that terminal and charging device is determined
Under part, if the distance constantly diminishes in preset duration, charging device close to electronic product can be further determined that, you can
To further determine that user wants to be charged for electronic product.So, in the embodiment of the present application, before producing the approach signal, also
Following operation can be performed:
Judge that whether the distance is in reduction trend in preset duration;If so, then producing the approach signal;If it is not, then
The approach signal is not produced.
During specific implementation, the detection of above-mentioned distance can be carried out using range sensor.Certainly, in the prior art can
The device of detecting distance is applied to the present embodiment, and in the protection domain of the application, the embodiment of the present application is not limited this
It is fixed.
Mode two:
Magnet can be placed on charging device, surrounding environment is detected by the sensor being arranged on electronic product
Magnetic field intensity.Because magnet is closer to electronic product, the magnetic field intensity of electronic product surrounding environment is stronger, if so when default
Magnetic field intensity constantly becomes big in long, then can determine that charging device close to electronic product, you can to determine that user wants to be produced for electronics
Product charge.
So, in the embodiment of the present application, sensor detects the variable quantity of magnetic field intensity, if the variable quantity meets default magnetic field
Intensity threshold then produces the approach signal.
Wherein, presetting magnetic field intensity threshold value can be set according to actual needs, and the embodiment of the present application is not limited this.
Mode three:
The electric-field intensity of capacitance sensor can be detected by the capacitance sensor being arranged on electronic product.If due to
Charging device is closer to electronic product, and the electric-field intensity of capacitance sensor is stronger, if so in preset duration capacitance sensor
Electric-field intensity constantly become big, then can determine that charging device close to electronic product, you can to determine that user thinks be electronic product
Charge.
Therefore, in the embodiment of the present application, sensor produces electric field and detects the variable quantity of electric-field intensity, if the variable quantity meets
Default electric-field intensity threshold value then produces the approach signal.
Wherein, presetting electric-field intensity threshold value can be set according to actual needs, and the embodiment of the present application is not limited this.
Wherein, in one embodiment, after filling electricity with for electronic product due to user, in this way it is no longer necessary to which indicator lamp shines for it
Bright surrounding environment.So, in order to save process resource, in the embodiment of the present application, after open instruction lamp, the finger can also be worked as
After showing that the duration of lamp unlatching reaches specified duration, the indicator lamp is closed.
Wherein, in one embodiment, to improve Consumer's Experience, after open instruction lamp, indicator lamp Chang Liang can be controlled,
Indicator lamp can also be controlled to be flashed with predeterminated frequency.And indicator lamp can send different colours light reached vision attraction,
It is easy to user to find the purpose of charge port.If indicator lamp includes the point-like indicator lamp of predetermined number, and predetermined number can be many
In one, then can be that all indicator lamps of control are flashed with identical predeterminated frequency, can also be that control wherein at least one refers to
Show that the flicker frequency of lamp is different from other indicator lamps.
In the technical scheme that the embodiment of the present application is provided, due to obtaining based on produced by charging device close to event
Approach signal;According to the approach signal open instruction lamp, wherein, the indicator lamp is used for the charge port of lamp terminal.So,
As long as user is by charging device close to electronic product, indicator lamp may turn on is easy to user to find charge port.Especially light compared with
In weak environment (such as night turn off the light after room), it is easy to user to find equipment and charge port to be charged.So, user
Just can be by the light of indicator lamp, it is easy to which ground finds charge port, facilitates charging operations, improves Consumer's Experience.
Embodiment two:
For ease of further understanding the control method of the terminal indicator lamp of the application offer, the embodiment of the present application is to the method
It is described further.As shown in figure 4, comprising the following steps:
Step 401:When it is determined that the battery dump energy of terminal is less than default electricity, and charging device does not have and charge port
During connection, the light intensity of ambient light is obtained.
Step 402:Judge light intensity whether less than default light intensity;If so, then performing step 404;Otherwise, then hold
Row step 403.
Step 403:Continue the light intensity of acquisition ambient light.
Step 404:Sensor detects the variable quantity of magnetic field intensity, judges whether the variable quantity meets default magnetic field intensity threshold
Value;If so, step 406 is performed, if it is not, then performing step 405.
Step 405:Sensor continues to detect the variable quantity of magnetic field intensity.
Step 406:Produce approach signal.
Step 407:According to approach signal open instruction lamp.
Step 408:Control indicator lamp is flashed with predeterminated frequency.
Step 409:After the duration that indicator lamp is opened reaches specified duration, indicator lamp is closed.
In the technical scheme that the embodiment of the present application is provided, due to detecting the light intensity of ambient light first, if ambient light
Light intensity be less than default light intensity, then sensor detects the variable quantity of magnetic field intensity, if the variable quantity meets default magnetic
Field intensity threshold value, then produce approach signal, so that according to approach signal open instruction lamp, and then indicator lamp is controlled with predeterminated frequency
Flicker.So, as user in the weaker environment of light (such as room after night turns off the light), as long as charging device is close electric
Sub- product, indicator lamp may turn on is easy to user to find charge port.So, user just can be by the light of indicator lamp, it is easy to
Find charge port, facilitate charging operations, improve Consumer's Experience.And in the case of light is preferable, even if there is charging to fill
Put close to charge port, indicator lamp will not also be opened, can so save process resource.
Embodiment three
Based on identical inventive concept, the embodiment of the present application also provides a kind of terminal, the control of the terminal indicator lamp of the terminal
Principle processed is similar with the control principle of the terminal indicator lamp of the control method of above-mentioned terminal indicator lamp.Specifically reference can be made to above-mentioned side
The content of method, does not repeat here.
As shown in figure 5, being the structural representation of the terminal, the terminal includes:
The charge port 501 on terminal body is arranged on, is also included:Processor 502, sensor 503 and for illuminate fill
The indicator lamp 504 of power port;
The sensor 503:For obtaining the approach signal produced by event based on charging device.
The processor 502:For opening the indicator lamp according to the approach signal.
It should be noted that Fig. 5 is merely illustrative the terminal in the embodiment of the present application.The indicator lamp shown in Fig. 5
The quantity and position of 504 quantity and position, the position of processor 502, and sensor 503 can set according to the actual requirements
Fixed, the application is not limited this.
Wherein, in one embodiment, indicator lamp 504 is set (as shown in earlier figures 2) around the charge port 501.
Wherein, in one embodiment, the indicator lamp 504 may include the point-like indicator lamp of predetermined number, and described pre-
If the point-like indicator lamp of quantity is listed in described filling in the homonymy (as shown in Figure 6) of the charge port 501, or 504 points of indicator lamp
The both sides (as shown in earlier figures 3) of power port 501.
Wherein, in one embodiment, the processor 502 is additionally operable to if it is determined that battery dump energy is less than default electricity
When, determine whether whether the charging device is connected with the charge port, if so, not obtaining close based on charging device then
Approach signal produced by event;
If it is not, then obtaining the approach signal produced by event based on charging device.
Wherein, in one embodiment, the terminal also includes:Light sensor 505;
The light sensor 505, for obtain based on charging device the approach signal produced by event it
Before, the light intensity of ambient light is obtained, and the light intensity is sent to the processor 502;
The processor 502, for whether judging the ambient light intensity less than default light intensity, if so, then entering one
Step obtains the approach signal produced by event based on charging device.
Wherein, in one embodiment, the sensor 503, specifically for:
If the sensor is range sensor, the range sensor launches infrared light to the charging device, and
The luminous intensity that the infrared light is reflected by the charging device is detected, the terminal and charging device are calculated according to the luminous intensity
Distance;Or,
If the sensor is range sensor, the range sensor launches light pulse to the charging device, and
Detect the time that the light pulse is reflected by the charging device, according to the Time Calculation terminal and charging device away from
From;Or,
If the sensor is range sensor, the range sensor launches ultrasonic wave to the charging device, and
Detection time for being reflected by the charging device of ultrasonic wave, according to the Time Calculation terminal and charging device away from
From;Or,
If the sensor is Hall sensor, the Hall sensor detects the variable quantity of magnetic field intensity, if the change
Change amount meets default magnetic field intensity threshold value and then produces the approach signal;Or,
If the sensor is capacitance sensor, the capacitance sensor produces electric field and detects the change of electric-field intensity
Amount, the approach signal is produced if the variable quantity meets default electric-field intensity threshold value.
It should be noted that during specific implementation, can be communicated by processor and sensor, completed to calculate by processor.Example
Such as, variable quantity of distance, the variable quantity of calculating magnetic field intensity or electric-field intensity of processor computing terminal and charging device etc..Tool
Body, as described in following (1)-(3):
(1) if the sensor is range sensor, the range sensor, specifically for:In detection preset duration
With the distance of charging device;The processor 502, specifically for judging that whether the distance is in reduction trend in preset duration;
If, it is determined that get the approach signal produced by event based on charging device;If not, it is determined that do not get base
In the approach signal produced by event of charging device;
(2) if the sensor is Hall sensor, the Hall sensor, specifically for detection preset duration inner circumferential
The magnetic field intensity in collarette border;Whether the processor 502, the variable quantity specifically for judging the magnetic field in preset duration meets
Default magnetic field intensity threshold value;If, it is determined that get the approach signal produced by event based on charging device;If
It is no, it is determined that not get the approach signal produced by event based on charging device;
(3) if the sensor is capacitance sensor, the capacitance sensor, specifically for electricity in detection preset duration
Hold the electric-field intensity of sensor;The processor 502, the variable quantity specifically for judging the electric-field intensity in preset duration is
It is no to meet default electric-field intensity threshold value;If, it is determined that get based on charging device produced by event close to letter
Number;If not, it is determined that do not get the approach signal produced by event based on charging device.
Wherein, in one embodiment, if the approach signal is analog signal, the terminal also includes the first converter
With the second converter;
First converter, analog signal is sent for receiving the sensor, and the analog signal is converted into number
The processor is sent to after word signal;
Second converter is strong by the light for receiving the light intensity that the light sensor sends
Degree is sent to the processor after being converted to data signal.
Wherein, in one embodiment, the terminal also includes the 3rd converter;
The processor, specifically for according to the approach signal, generating control instruction, controls the indicator lamp to open.
If the control instruction is data signal, the 3rd converter, for receiving described in the processor transmission
Data signal, the indicator lamp is sent to after the data signal is converted into analog signal.
Wherein, above-mentioned each converter for example can be MCU.
Wherein, in one embodiment, the processor 502, is additionally operable to be reached when the duration that the indicator lamp 504 is opened
After specifying duration, the indicator lamp 504 is closed.
Wherein, in one embodiment, the charging device is charge cable or adapter.
Additionally, the processor 502 in the embodiment of the present application, can be the main control processor of the electronic product for needing charging.
Certainly, during specific implementation, terminal, or be totally independent of the electronic product that needs charge that the embodiment of the present application is provided
Device.For example, it may be the mobile phone shell of the control function provided with the embodiment of the present application.
In a kind of application scenarios, a kind of hand of the simple control function provided with the embodiment of the present application can be provided
Casing.The range sensor and light sensor of such as mobile phone shell can be detected periodically (for example, at interval of 15 minutes
Detection is once), default light intensity is less than when the processor of mobile phone shell detects light intensity by light sensor, and pass through
Range sensor is detected when approaching the approach signal produced by event, can be according to approach signal open instruction lamp.Together
When mobile phone shell processor can close range sensor and light sensor.Afterwards, the processor of mobile phone shell is it is determined that indicate
Lamp closes the indicator lamp after opening preset duration.And after a period of time for closing indicator lamp, mobile phone shell is reopened
Range sensor and light sensor, and control the two cycle sensors to be detected.
Certainly, the embodiment of the present application can also provide a kind of hand with the communication capacity of the electronic product for needing to charge
Casing.The mobile phone shell can communicate with determining to need by the main control processor with the electronic product charged the need for needs charging
Dump energy and charged state of the terminal to be charged etc..Such as Fig. 7, so that the electronic product for needing to charge is mobile phone as an example, to this
Illustrate, comprise the following steps:
Step 701:The processor 502 of mobile phone shell receives the dump energy and charging device of the battery of mobile phone that mobile phone sends
With the connection status of charge port 501, and it is determined that battery dump energy be less than default electricity and charging device with charge port 501 not
During connection, the first detection instruction is sent to light sensor.
Step 702:After light sensor 505 receives the first detection instruction, the light intensity of ambient light is detected, and by light
Line strength is sent to processor 502.
Step 703:Whether processor 502 judges the light intensity less than default light intensity;If so, then performing step
704;Otherwise, then terminate.
Step 704:Processor 502 sends the second detection instruction to Hall sensor.
Step 705:After Hall sensor receives the second detection instruction, the variable quantity of magnetic field intensity is detected, and if judging
The variable quantity meets default magnetic field intensity threshold value;If so, then performing step 706;If it is not, then terminating.
Step 706:Hall sensor produces approach signal, and is sent to processor 502.
Wherein, in one embodiment, if light intensity is not less than default light intensity, the embodiment of the present application can be with
Return to step 702;If the variable quantity of magnetic field intensity is unsatisfactory for default magnetic field intensity threshold value in preset duration, the embodiment of the present application
Can be with return to step 705.I.e. triggering light sensor and range sensor proceed detection.
Step 707:When processor 502 gets the approach signal of Hall sensor generation, open instruction lamp 504.
Step 708:Processor 502 controls indicator lamp 504 to be flashed with predeterminated frequency.
Step 709:After processor 502 determines that the duration that indicator lamp 504 is opened reaches specified duration, indicator lamp 504 is closed.
In the terminal that the embodiment of the present application is provided, because Hall sensor detection charging device is close to event, and will produce
Raw approach signal is sent to processor;Processor if it is determined that when getting approach signal, open instruction lamp.So, user is only
By charging device close to electronic product, indicator lamp may turn on is easy to user to find charge port.Especially in the ring that light is weaker
In border (such as night turn off the light after room), it is easy to user to find equipment and charge port to be charged.So, user just can be with
By the light of indicator lamp, it is easy to which ground finds charge port, charging operations are facilitated, improve Consumer's Experience.
Example IV
Based on identical inventive concept, the embodiment of the present application also provides a kind of control device of terminal indicator lamp, the device
Charge control principle it is similar with the control principle of the terminal indicator lamp of the control method of above-mentioned terminal indicator lamp.Can specifically join
See the content of the above method, do not repeat here.
As shown in figure 8, being the structural representation of the device, described device includes:
Acquisition module 810:For obtaining the approach signal produced by event based on charging device.
Opening module 820:For according to the approach signal open instruction lamp, wherein, the indicator lamp is used to illuminate end
The charge port at end.
Wherein, in one embodiment, described device also includes:
Ambient light acquisition module, before opening the indicator lamp for the opening module, the light for obtaining ambient light is strong
Degree;
Determining module, for determining the light intensity whether less than default light intensity;
The opening module, if being additionally operable to, less than default light intensity, open the indicator lamp.
Wherein, in one embodiment, the ambient light acquisition module is additionally operable to:Obtained in acquisition module and filled based on charging
Put close to before the approach signal produced by event, detect ambient light light intensity.
Described device also includes:
First judge module, for whether judging the light intensity less than default light intensity, if so, then further obtaining
Take the approach signal produced by event based on charging device;If it is not, not obtaining based on charging device close to event then
Produced approach signal.
Wherein, in one embodiment, described device also includes:
Second judge module, for the acquisition module obtain based on charging device produced by event close to letter
Number before, when the battery dump energy of the terminal is less than default electricity, judge the charging device whether with the charging
Mouth connection:
If so, not obtaining the approach signal produced by event based on charging device then;
If it is not, then obtaining the approach signal produced by event based on charging device.
Wherein, in one embodiment, described device also includes:
3rd judge module, before detecting the light intensity of ambient light for the ambient light acquisition module, judges described
Whether charging device is connected with the charge port:
If so, not obtaining the light intensity of ambient light then;
If it is not, then obtaining the light intensity of ambient light.
Wherein, in one embodiment, the acquisition module, specifically for:
Sensor emission infrared light simultaneously detects the luminous intensity that the charging device is reflected, and is calculated according to the luminous intensity
The terminal and the distance of charging device, the approach signal is produced if the distance meets predeterminable range threshold value;Or,
Sensor emission light pulse simultaneously detects that the charging device reflects the time of light pulse, is counted according to the time
The distance of the terminal and charging device is calculated, the approach signal is produced if the distance meets predeterminable range threshold value;Or,
Sensor emission ultrasonic wave simultaneously detects that the charging device reflects the time of ultrasonic wave, is counted according to the time
The distance of the terminal and charging device is calculated, the approach signal is produced if the distance meets predeterminable range threshold value;Or,
Sensor detects the variable quantity of magnetic field intensity, and described connecing is produced if the variable quantity meets default magnetic field intensity threshold value
Nearly signal;Or,
Sensor produces electric field and detects the variable quantity of electric-field intensity, if the variable quantity meets default electric-field intensity threshold value
Produce the approach signal.
Wherein, in one embodiment, described device also includes:
Closedown module, for the opening module open instruction lamp after, when the indicator lamp open duration reach finger
When regularly long, the indicator lamp is closed.
In the battery charge controller that the embodiment of the present application is provided, because acquisition module obtains close based on charging device
Approach signal produced by event;Opening module according to the approach signal open instruction lamp, wherein, the indicator lamp be used for shine
The charge port of bright terminal.So, as long as user is by charging device close to electronic product, indicator lamp may turn on is easy to user to find
Charge port.Especially in the weaker environment of light (such as night turn off the light after room), it is easy to user to find the equipment with charging
And charge port.So, user just can be by the light of indicator lamp, it is easy to which ground finds charge port, facilitates charging operations, carries
Consumer's Experience high.
Embodiment six
The embodiment of the present application six provides a kind of nonvolatile computer storage media, the computer-readable storage medium storage
There are computer executable instructions, the computer executable instructions can perform the terminal indicator lamp in above-mentioned any means embodiment
Control method.
The method that the executable the embodiment of the present application of the said goods is provided, possesses the corresponding functional module of execution method and has
Beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
It will be understood by those skilled in the art that embodiments herein can be provided as method, device (equipment) or computer journey
Sequence product.Therefore, in terms of the application can be using complete hardware embodiment, complete software embodiment or combination software and hardware
The form of embodiment.And, the application can be used and wherein include the calculating of computer usable program code at one or more
The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is the flow chart with reference to method, device (equipment) and computer program product according to the embodiment of the present application
And/or block diagram is described.It should be understood that each flow during flow chart and/or block diagram can be realized by computer program instructions
And/or the combination of the flow and/or square frame in square frame and flow chart and/or block diagram.These computer programs can be provided to refer to
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is made to produce
One machine so that produced for realizing by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the application scope.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the application to the application
God and scope.So, if these modifications of the application and modification belong to the scope of the application claim and its equivalent technologies
Within, then the application is also intended to comprising these changes and modification.
Claims (14)
1. a kind of control method of terminal indicator lamp, it is characterised in that methods described includes:
Obtain the approach signal produced by event based on charging device;
According to the approach signal open instruction lamp, wherein, the indicator lamp is used for the charge port of lamp terminal.
2. method according to claim 1, it is characterised in that before opening the indicator lamp, methods described also includes:
Obtain the light intensity of ambient light;
Determine the light intensity whether less than default light intensity;
If less than default light intensity, opening the indicator lamp.
3. method according to claim 1, it is characterised in that obtain the connecing produced by event based on charging device
Also include before nearly signal:
Detect the light intensity of ambient light;
Whether the light intensity is judged less than default light intensity, if so, then further obtaining close based on charging device
Approach signal produced by event;If it is not, not obtaining the approach signal produced by event based on charging device then.
4. method according to claim 1, it is characterised in that obtain the connecing produced by event based on charging device
Before nearly signal, methods described also includes:
When the battery dump energy of the terminal is less than default electricity, judge whether the charging device connects with the charge port
Connect:
If so, not obtaining the approach signal produced by event based on charging device then;
If it is not, then obtaining the approach signal produced by event based on charging device.
5. method according to claim 3, it is characterised in that before the light intensity of detection ambient light, methods described is also
Including:
Judge whether the charging device is connected with the charge port:
If so, not obtaining the light intensity of ambient light then;
If it is not, then obtaining the light intensity of ambient light.
6. method according to claim 1, it is characterised in that obtain the connecing produced by event based on charging device
Nearly signal, specifically includes:
Sensor emission infrared light simultaneously detects the luminous intensity that the charging device is reflected, according to the luminous intensity is calculated
Terminal and the distance of charging device, the approach signal is produced if the distance meets predeterminable range threshold value;Or,
Sensor emission light pulse simultaneously detects that the charging device reflects the time of light pulse, according to the Time Calculation institute
The distance of terminal and charging device is stated, the approach signal is produced if the distance meets predeterminable range threshold value;Or,
Sensor emission ultrasonic wave simultaneously detects that the charging device reflects the time of ultrasonic wave, according to the Time Calculation institute
The distance of terminal and charging device is stated, the approach signal is produced if the distance meets predeterminable range threshold value;Or,
Sensor detects the variable quantity of magnetic field intensity, is produced if the variable quantity meets default magnetic field intensity threshold value described close to letter
Number;Or,
Sensor produces electric field and detects the variable quantity of electric-field intensity, is produced if the variable quantity meets default electric-field intensity threshold value
The approach signal.
7. according to any described method in claim 1-6, it is characterised in that after open instruction lamp, methods described is also wrapped
Include:
When the duration that the indicator lamp is opened reaches specified duration, the indicator lamp is closed.
8. a kind of terminal, including it is arranged on the charge port on terminal body, it is characterised in that also include:Processor, sensor with
And for illuminating the indicator lamp of charge port;
The sensor, for obtaining the approach signal produced by event based on charging device;
The processor, for opening the indicator lamp according to the approach signal.
9. terminal according to claim 8, it is characterised in that the indicator lamp is set around the charge port;Or,
The point-like indicator lamp of the indicator lamp including predetermined number, and the point-like indicator lamp the charge port homonymy or point
It is listed in the both sides of the charge port.
10. terminal according to claim 8, it is characterised in that the processor is additionally operable to if it is determined that battery dump energy
During less than default electricity, determine whether whether the charging device is connected with the charge port, if so, do not obtain then to be based on filling
The approach signal produced by event of electric installation;
If it is not, then obtaining the approach signal produced by event based on charging device.
11. terminals according to claim 8, it is characterised in that the terminal also includes light sensor:
The light sensor, for obtaining based on charging device before the approach signal produced by event, obtains
The light intensity of ambient light, and the light intensity is sent to the processor;
The processor, for whether judging the light intensity less than default light intensity, if so, then further obtain being based on
The approach signal produced by event of charging device.
12. terminals according to claim 8, it is characterised in that the sensor, specifically for:
If the sensor is range sensor, the range sensor launches infrared light to the charging device, and detects
The luminous intensity that the infrared light is reflected by the charging device, according to the luminous intensity calculate the terminal and charging device away from
From;Or,
If the sensor is range sensor, the range sensor launches light pulse to the charging device, and detects
The time that the light pulse is reflected by the charging device, the distance of terminal and charging device according to the Time Calculation;
Or,
If the sensor is range sensor, the range sensor launches ultrasonic wave to the charging device, and detects
The time that ultrasonic wave is reflected by the charging device, the distance of terminal and charging device according to the Time Calculation;Or,
If the sensor is Hall sensor, the Hall sensor detects the variable quantity of magnetic field intensity, if the variable quantity
Meet default magnetic field intensity threshold value and then produce the approach signal;Or,
If the sensor is capacitance sensor, the capacitance sensor produces electric field and detects the variable quantity of electric-field intensity,
The approach signal is produced if the variable quantity meets default electric-field intensity threshold value.
13. terminals according to claim 8, it is characterised in that the processor is additionally operable to when indicator lamp unlatching
When duration reaches specified duration, the indicator lamp is closed.
14. terminal according to claim any one of 8-13, it is characterised in that the charging device is charge cable or suitable
Orchestration.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710170258.XA CN106937462A (en) | 2017-03-21 | 2017-03-21 | A kind of control method and terminal of terminal indicator lamp |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710170258.XA CN106937462A (en) | 2017-03-21 | 2017-03-21 | A kind of control method and terminal of terminal indicator lamp |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106937462A true CN106937462A (en) | 2017-07-07 |
Family
ID=59433587
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710170258.XA Withdrawn CN106937462A (en) | 2017-03-21 | 2017-03-21 | A kind of control method and terminal of terminal indicator lamp |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106937462A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109246901A (en) * | 2018-08-01 | 2019-01-18 | 深圳市沃特沃德股份有限公司 | The light-emitting control method and system of data line |
| CN109950955A (en) * | 2019-03-29 | 2019-06-28 | 努比亚技术有限公司 | Charging method, device and terminal device based on cradle |
| CN113438778A (en) * | 2021-07-19 | 2021-09-24 | 北京小米移动软件有限公司 | Portable terminal, charging guide method and device thereof, and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100235667A1 (en) * | 2009-09-02 | 2010-09-16 | Apple Inc. | Motion sensor data processing using various power management modes |
| CN103220417A (en) * | 2013-04-03 | 2013-07-24 | 广东欧珀移动通信有限公司 | Method for automatically brightening screen of mobile terminal and mobile terminal thereof |
| CN104679674A (en) * | 2013-11-29 | 2015-06-03 | 联想(北京)有限公司 | Information processing method and electronic device |
| CN104811546A (en) * | 2015-04-02 | 2015-07-29 | 深圳市金立通信设备有限公司 | Terminal |
| CN104871393A (en) * | 2014-06-24 | 2015-08-26 | 华为技术有限公司 | Light control method, device and user terminal for user equipment |
-
2017
- 2017-03-21 CN CN201710170258.XA patent/CN106937462A/en not_active Withdrawn
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100235667A1 (en) * | 2009-09-02 | 2010-09-16 | Apple Inc. | Motion sensor data processing using various power management modes |
| CN103220417A (en) * | 2013-04-03 | 2013-07-24 | 广东欧珀移动通信有限公司 | Method for automatically brightening screen of mobile terminal and mobile terminal thereof |
| CN104679674A (en) * | 2013-11-29 | 2015-06-03 | 联想(北京)有限公司 | Information processing method and electronic device |
| CN104871393A (en) * | 2014-06-24 | 2015-08-26 | 华为技术有限公司 | Light control method, device and user terminal for user equipment |
| CN104811546A (en) * | 2015-04-02 | 2015-07-29 | 深圳市金立通信设备有限公司 | Terminal |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109246901A (en) * | 2018-08-01 | 2019-01-18 | 深圳市沃特沃德股份有限公司 | The light-emitting control method and system of data line |
| CN109950955A (en) * | 2019-03-29 | 2019-06-28 | 努比亚技术有限公司 | Charging method, device and terminal device based on cradle |
| CN113438778A (en) * | 2021-07-19 | 2021-09-24 | 北京小米移动软件有限公司 | Portable terminal, charging guide method and device thereof, and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106506794A (en) | Condition monitoring method and device of terminal equipment and terminal equipment | |
| CN106740176B (en) | A kind of charging device of electric automobile and its charge control method | |
| CN106937462A (en) | A kind of control method and terminal of terminal indicator lamp | |
| CN105228313B (en) | Lighting control method and related equipment | |
| CN103179748A (en) | Remote control, and backlight control method and backlight control system thereof | |
| CN112046310A (en) | Control method and device for charging indicator lamp of electric vehicle | |
| CN105957215A (en) | Intelligent remote key | |
| CN105282140B (en) | A kind of control method of smart home system, equipment and system | |
| CN108471160A (en) | Charging control circuit, method and the intelligent domestic system of single firewire switch | |
| CN101908844A (en) | solar powered device | |
| CN104333651A (en) | Control method and device of terminal device and mobile terminal | |
| CN106453930A (en) | Method for lightening screen of mobile terminal and mobile terminal | |
| CN207118048U (en) | A kind of excavator Light Control Unit | |
| CN205344560U (en) | Car of infrared human response solar energy LED illumination fills electric pile | |
| CN105276747B (en) | Air-conditioner control method based on intensity of illumination and control device | |
| CN106970338A (en) | A kind of digital tube detection devices of LED and detection method | |
| JP2013044171A (en) | Power generation quantity monitoring system for photovoltaic generation type electronic key | |
| CN205811182U (en) | A kind of power-off recharges the data wire that can show state automatically | |
| CN116729089A (en) | Automatic control method, system, electronic device, storage medium and automobile for awning | |
| CN105827982A (en) | Triggering method and device of LED (Light-Emitting Diode) flash light, and controller used for triggering method | |
| CN105529776B (en) | A kind of lighting device and its application method of charge connector | |
| CN209746638U (en) | multifunctional vehicle key control system | |
| CN109246901A (en) | The light-emitting control method and system of data line | |
| CN105975231A (en) | Terminal screen displaying state adjusting method and device | |
| CN107426851A (en) | A kind of socket and its lighting 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 | ||
| WW01 | Invention patent application withdrawn after publication | ||
| WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170707 |