CN109475034B - Laser lamp control method and device and mobile terminal - Google Patents

Laser lamp control method and device and mobile terminal Download PDF

Info

Publication number
CN109475034B
CN109475034B CN201811379250.5A CN201811379250A CN109475034B CN 109475034 B CN109475034 B CN 109475034B CN 201811379250 A CN201811379250 A CN 201811379250A CN 109475034 B CN109475034 B CN 109475034B
Authority
CN
China
Prior art keywords
laser lamp
control chip
moment
time
controlling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811379250.5A
Other languages
Chinese (zh)
Other versions
CN109475034A (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 CN201811379250.5A priority Critical patent/CN109475034B/en
Publication of CN109475034A publication Critical patent/CN109475034A/en
Application granted granted Critical
Publication of CN109475034B publication Critical patent/CN109475034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Semiconductor Lasers (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention provides a laser lamp control method and device. The method comprises the following steps: when monitoring that the control chip sends a pulse signal to the laser lamp driver, recording a corresponding first moment; acquiring a second moment corresponding to the control chip when the control chip receives a first feedback signal returned by the laser lamp; controlling the control chip to send a high-level control signal to the laser lamp driver under the condition that the laser lamp is determined to be normal according to the second moment and the first moment, and acquiring a third moment corresponding to the control chip when the control chip receives a second feedback signal returned by the laser lamp; and under the condition that a first difference value between the third moment and the second moment is greater than or equal to a first time threshold value, controlling the control chip to turn off the laser lamp. The invention can effectively monitor and control the starting time of the laser lamp to be less than the set safety threshold, and avoid unnecessary damage to human body.

Description

Laser lamp control method and device and mobile terminal
Technical Field
The invention relates to the technical field of mobile communication, in particular to a laser lamp control method, a laser lamp control device and a mobile terminal.
Background
With the gradual maturity of hardware conditions and market demands, laser lamps gradually move into consumer electronics, including smart phones, through technologies such as 3D detection. The laser lamp is a double-edged sword in application, on one hand, the technical scheme is realized by utilizing the characteristics of the laser tube, and on the other hand, laser emitted when an electronic device in a circuit fails can cause harm to a human body.
Disclosure of Invention
The embodiment of the invention provides a laser lamp control method, a laser lamp control device and a mobile terminal, and aims to solve the problem that unnecessary damage to a human body can be caused when laser is abnormal in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a laser lamp control method, including: when monitoring that the control chip sends a pulse signal to the laser lamp driver, recording a corresponding first moment; acquiring a second moment corresponding to the control chip when the control chip receives a first feedback signal returned by the laser lamp; controlling the control chip to send a high-level control signal to the laser lamp driver under the condition that the laser lamp is determined to be normal according to the second moment and the first moment, and acquiring a third moment corresponding to the control chip when the control chip receives a second feedback signal returned by the laser lamp; and under the condition that a first difference value between the third moment and the second moment is greater than or equal to the first time threshold value, controlling the control chip to turn off the laser lamp.
In a second aspect, an embodiment of the present invention provides a laser lamp control apparatus, including: the first time recording module is used for recording a corresponding first time when monitoring that the control chip sends a pulse signal to the laser lamp driver; the second moment acquisition module is used for acquiring a second moment corresponding to the control chip when receiving the first feedback signal returned by the laser lamp; the third moment acquisition module is used for controlling the control chip to send a high-level control signal to the laser lamp drive under the condition that the laser lamp is determined to be normal according to the second moment and the first moment, and acquiring a corresponding third moment when the control chip receives a second feedback signal returned by the laser lamp; and the first laser lamp turning-off module is used for controlling the control chip to turn off the laser lamp under the condition that a first difference value between the third moment and the second moment is greater than or equal to a first time threshold value.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the laser light control method described in any one of the above.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the laser light control method described in any one of the above.
In the embodiment of the invention, when the control chip is monitored to send out a pulse signal to the laser lamp drive, the corresponding first moment is recorded, and the corresponding second moment when the control chip receives the first feedback signal returned by the laser lamp is obtained; and under the condition that the laser lamp is determined to be normal according to the second moment and the first moment, controlling the control chip to send a high-level control signal to the laser lamp drive, acquiring a third moment corresponding to the control chip when receiving a second feedback signal returned by the laser lamp, and controlling the control chip to close the laser lamp under the condition that a first difference value between the third moment and the second moment is greater than or equal to a first time threshold value. The embodiment of the invention can ensure that the laser is started under the safe operation every time, can effectively monitor and control the starting time of the laser lamp to be less than the set safe threshold, and avoids unnecessary damage to human bodies.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for controlling a laser lamp according to an embodiment of the present invention;
fig. 1a is a schematic diagram of an AFE transmitting and receiving signal according to an embodiment of the present invention;
fig. 1b is a schematic view of a monitoring process during one period of laser turn-on according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a method for controlling a laser lamp according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a laser lamp control device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a laser lamp control device according to an embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of a laser light control method according to an embodiment of the present invention is shown, where the laser light control method may be applied to a mobile terminal, and specifically may include the following steps:
step 101: when the situation that the control chip sends out a pulse signal to the laser lamp drive is monitored, recording a corresponding first moment.
In the embodiment of the present invention, the mobile terminal may be a mobile electronic device such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer, and the like.
The control chip may be an analog front-End (AFE) control chip having a timing synchronization function or a phase correction function, or may be another control chip that can send a pulse to a laser lamp driver, which is not limited in this embodiment of the present invention.
The laser lamp control process is described in detail below with reference to the specific drawings.
Referring to fig. 1a, a schematic diagram of an AFE transmitting and receiving signal according to an embodiment of the present invention is shown, as shown in fig. 1 a: the control chip (AFE) can actively send a pulse to the laser Driver (Driver) to excite the laser lamp (VCSEL) to shine, and the cathode of the laser lamp can be connected to the Feedback input end (Feedback) of tal (time alignment) inside the AFE through a resistor to complete the timing correction. Therefore, the AFE can be controlled to close power supply to the laser lamp within the shortest time to determine the safe operation of the laser lamp when the abnormal condition is monitored.
The embodiment of the invention is applied to the improvement of a laser lamp control scheme installed at the side of a mobile terminal.
The first time is the time corresponding to the time when the control chip sends the pulse signal to the laser lamp driver, namely the time corresponding to the time when the control chip is about to send the pulse signal to the laser lamp driver.
In general, the sending time of the pulse signal is very short, and may be considered as the first time when the laser lamp driver receives the pulse signal, which is not limited in the embodiment of the present invention.
The mobile terminal system can monitor the information of the pulse signal sent by the control chip to the laser lamp drive in real time, and record the first moment when monitoring the pulse signal sent by the control chip to the laser lamp drive.
After the first moment is recorded, step 102 is performed.
Step 102: and acquiring a second moment corresponding to the control chip when receiving the first feedback signal returned by the laser lamp.
The first feedback signal is a signal fed back to the control chip after the laser lamp receives an excitation signal driven by the laser lamp before the laser lamp is controlled.
After receiving the rising edge signal sent by the control chip, the laser lamp may return a first feedback signal to a feedback input terminal of the TAL inside the control chip.
When monitoring a first feedback signal returned by the laser lamp, the mobile terminal system records the corresponding moment when the control chip receives the first feedback signal, namely a second moment.
After the second time is acquired, step 103 is executed.
Step 103: and controlling the control chip to send a high-level control signal to the laser lamp driver under the condition that the laser lamp is determined to be normal according to the second moment and the first moment, and acquiring a third moment corresponding to the control chip when the control chip receives a second feedback signal returned by the laser lamp.
After the second time and the first time are obtained, whether the laser lamp is abnormal or not can be judged through the second time and the first time, for example, whether the laser lamp is abnormal or not can be judged according to comparison between a difference value of the second time and the first time and a preset time threshold, for example, referring to fig. 1b, a monitoring process schematic diagram in one laser starting period provided by the embodiment of the invention is shown, as shown in fig. 1b, a control chip outputs a positive pulse to realize switching of the laser lamp through a Driver device, a feedback circuit finds a negative pulse waveform, and a device transmission delay Td exists, namely, the difference value between the second time and the first time. Specifically, the details will be described in the following example two, and the examples of the present invention will not be described in detail herein.
In the case of an abnormal laser light, the laser light may be turned off by the control chip, and an abnormality processing result (i.e., a result of the abnormal laser light) is reported to the server, and the like.
The high level control signal refers to a control signal for maintaining normal start of the laser lamp, and the specific level value for the high level may be determined according to practical situations, which is not limited in the embodiments of the present invention. The second feedback signal is a signal fed back by the laser lamp when receiving the high-level control signal sent by the control chip.
Under the condition that the laser lamp is in a normal state, the mobile terminal system can control the control chip to send a high-level control signal to the laser lamp driver, the laser lamp driver can excite the laser lamp to light after receiving the high-level control signal, and the laser lamp can return a second feedback signal to the control chip.
The mobile terminal system may monitor, in real time, a time at which the control chip receives the second feedback signal to obtain a time corresponding to the time at which the control chip receives the second feedback signal, that is, a third time.
After the third time is acquired, step 104 is performed.
Step 104: and under the condition that a first difference value between the third moment and the second moment is greater than or equal to a first time threshold value, controlling the control chip to turn off the laser lamp.
The first time threshold refers to a preset time threshold, and the first time threshold may be 30s, 5s, and the like, and specifically, may be set according to an actual situation, which is not limited in this embodiment of the present invention.
After the third time is obtained, a first difference between the third time and the second time may be calculated, for example, the third time is 12:05, the second time is 11:59, and the first difference is 6 min.
Under the condition that first difference is more than or equal to first time threshold, then it takes place unusually to show the laser lamp, then closes the laser lamp by mobile terminal system control chip, specifically speaking, can close the power supply to the laser lamp by control chip to close the laser lamp, avoid the laser lamp transmission laser to cause harm to the human body. And the control chip reports the abnormal processing result of the laser lamp, namely the processing result corresponding to the abnormal state of the laser lamp.
And if the first difference is smaller than the first time threshold, it indicates that the laser lamp is in a normal state, and the mobile terminal system may control the control chip to send a subsequent pulse operation to the laser lamp.
According to the laser lamp control method provided by the embodiment of the invention, when the pulse signal sent by the control chip to the laser lamp drive is monitored, the corresponding first moment is recorded, and the corresponding second moment when the control chip receives the first feedback signal returned by the laser lamp is obtained; and under the condition that the laser lamp is determined to be normal according to the second moment and the first moment, controlling the control chip to send a high-level control signal to the laser lamp drive, acquiring a third moment corresponding to the control chip when receiving a second feedback signal returned by the laser lamp, and controlling the control chip to close the laser lamp under the condition that a first difference value between the third moment and the second moment is greater than or equal to a first time threshold value. The embodiment of the invention can ensure that the laser is started under the safe operation every time, can effectively monitor and control the starting time of the laser lamp to be less than the set safe threshold, and avoids unnecessary damage to human bodies.
Example two
Referring to fig. 2, a flowchart illustrating steps of a laser light control method according to an embodiment of the present invention is shown, where the laser light control method may be applied to a mobile terminal, and specifically may include the following steps:
step 201: when the situation that the control chip sends out a pulse signal to the laser lamp drive is monitored, recording a corresponding first moment.
In the embodiment of the present invention, the mobile terminal may be a mobile electronic device such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer, and the like.
The control chip may be an analog front-End (AFE) control chip having a timing synchronization function or a phase correction function, or may be another control chip that can send a pulse to a laser lamp driver, which is not limited in this embodiment of the present invention.
The embodiment of the invention is applied to the improvement of a laser lamp control scheme installed at the side of a mobile terminal.
The first time is the time corresponding to the time when the control chip sends the pulse signal to the laser lamp driver, namely the time corresponding to the time when the control chip is about to send the pulse signal to the laser lamp driver.
In general, the sending time of the pulse signal is very short, and may be considered as the first time corresponding to the time when the laser lamp driver receives the pulse signal, which is not limited in the embodiment of the present invention.
The mobile terminal system can monitor the information of the pulse signal sent by the control chip to the laser lamp drive in real time, and record the first moment when monitoring the pulse signal sent by the control chip to the laser lamp drive.
After the first moment is recorded, step 202 is performed.
Step 202: and acquiring a second moment corresponding to the control chip when receiving the first feedback signal returned by the laser lamp.
The first feedback signal is a signal fed back to the control chip after the laser lamp receives an excitation signal driven by the laser lamp before the laser lamp is controlled.
After receiving the rising edge signal sent by the control chip, the laser lamp may return a first feedback signal to a feedback input terminal of the TAL inside the control chip.
When monitoring a first feedback signal returned by the laser lamp, the mobile terminal system records the corresponding moment when the control chip receives the first feedback signal, namely a second moment.
After the second time is acquired, step 203 is executed.
Step 203: and acquiring a second difference value between the second moment and the first moment.
After obtaining the second time and the first time, a difference between the second time and the first time may be calculated, i.e. a second difference, for example, the second time is 12:06:05, and the first time is: 12:05:58, the second difference is 7 s.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be taken as the only limitation of the embodiments of the present invention.
After the second difference is obtained, step 204 is performed.
Step 204: comparing the second difference to a second time threshold.
The second time threshold is a preset time threshold, and may be 7s, 5s, 8s, and so on, and a specific value of the second time threshold may be determined according to an actual situation, which is not limited in the embodiment of the present invention.
After calculating the second difference between the second time and the first time, the second difference may be compared with the second time threshold, and step 205 may be performed.
Step 205: and determining that the laser lamp is normal under the condition that the second difference value is smaller than the second time threshold value.
The comparison result may include two types, one is that the second difference is greater than or equal to the second time threshold, and the other is that the second difference is smaller than the second time threshold.
In case the second difference is smaller than the second time threshold, it may be determined that the laser lamp is in a normal state, and in case the laser lamp is normal, step 207 is performed.
If the second difference is greater than or equal to the second time threshold, it may be determined that the laser light is in an abnormal state, and if the laser light is abnormal, the subsequent step 206 is continued.
Step 206: and controlling the control chip to turn off the laser lamp and reporting an exception handling result.
Under the condition that the second difference value is larger than or equal to the second time threshold value, the laser lamp is in an abnormal state, the control chip can be controlled by the mobile terminal system to turn off the laser lamp, specifically, the control chip can turn off power supply to the laser lamp, and therefore the purpose of turning off the laser lamp is achieved. And the control chip reports the abnormal processing result of the laser lamp to remind maintenance personnel to maintain the laser lamp in time.
Step 207: and controlling the control chip to send a high-level control signal to the laser lamp drive, and acquiring a third moment corresponding to the control chip when receiving a second feedback signal returned by the laser lamp.
The high level control signal refers to a control signal for maintaining normal start of the laser lamp, and the specific level value for the high level may be determined according to practical situations, which is not limited in the embodiments of the present invention. The second feedback signal is a signal fed back by the laser lamp when receiving the high-level control signal sent by the control chip.
Under the condition that the laser lamp is in a normal state, the control chip can be controlled by the mobile terminal system to send a high-level control signal to the laser lamp driver, the laser lamp driver can excite the laser lamp to light after receiving the high-level control signal, and the laser lamp can return a second feedback signal to the control chip.
The mobile terminal system may monitor, in real time, a time at which the control chip receives the second feedback signal to obtain a time corresponding to the time at which the control chip receives the second feedback signal, that is, a third time.
After the third time is obtained, step 208 is performed.
Step 208: and under the condition that a first difference value between the third moment and the second moment is greater than or equal to a first time threshold value, controlling the control chip to turn off the laser lamp.
In the embodiment of the present invention, after the third time and the second time are obtained, a first difference between the third time and the second time may be calculated, for example, the third time is: 22:01:25, the second moment is: 22:01:18, the first difference is 7 s.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be taken as the only limitation of the embodiments of the present invention.
The first time threshold refers to a preset time threshold, and the first time threshold may be 30s, 5s, and the like, and specifically, may be set according to an actual situation, which is not limited in this embodiment of the present invention.
Under the condition that first difference is more than or equal to first time threshold, then it takes place unusually to show the laser lamp, then closes the laser lamp by mobile terminal system control chip, specifically speaking, can close the power supply to the laser lamp by control chip to close the laser lamp, avoid the laser lamp transmission laser to cause harm to the human body. And the control chip reports the abnormal processing result of the laser lamp, so that maintenance personnel can maintain the laser lamp in time.
Step 209: and under the condition that the first difference value is smaller than the first time threshold value, controlling the control chip to send a low-level control signal to the laser lamp.
In the embodiment of the invention, the low-level control signal refers to a control signal for controlling the laser lamp to be turned off. The specific level value of the low-level control signal may be determined according to actual situations, and the embodiment of the present invention is not limited thereto.
Under the condition that the first difference value is smaller than the first time threshold value, the laser lamp is in a normal state, and the mobile terminal can control the control chip to send a low-level control signal to the laser lamp so as to close the laser lamp, so that a laser light-emitting process is completed.
The laser lamp control method provided by the embodiment of the invention has the beneficial effects of the laser lamp control method disclosed in the first embodiment, and can be combined with the control of turning off the laser lamp when the first abnormity is monitored, so that the harm to a human body caused by the light emission of the laser lamp is avoided, and the use experience of a user is improved.
EXAMPLE III
Referring to fig. 3, a schematic structural diagram of a laser lamp control device provided in an embodiment of the present invention is shown, which may specifically include:
the first time recording module 310 is configured to record a corresponding first time when it is monitored that the control chip sends a pulse signal to the laser lamp driver; the second time obtaining module 320 is configured to obtain a second time corresponding to the time when the control chip receives the first feedback signal returned by the laser lamp; a third time obtaining module 330, configured to control the control chip to send a high-level control signal to the laser lamp driver when it is determined that the laser lamp is normal according to the second time and the first time, and obtain a third time corresponding to when the control chip receives a second feedback signal returned by the laser lamp; and a first laser lamp turning-off module 340, configured to control the control chip to turn off the laser lamp when a first difference between the third time and the second time is greater than or equal to a first time threshold.
According to the laser lamp control device provided by the embodiment of the invention, when the control chip is monitored to send out a pulse signal to the laser lamp drive, the corresponding first moment is recorded, and the corresponding second moment when the control chip receives a first feedback signal returned by the laser lamp is obtained; and under the condition that the laser lamp is determined to be normal according to the second moment and the first moment, the control chip is controlled to send a high-level control signal to the laser lamp drive, a third moment corresponding to the control chip when the control chip receives a second feedback signal returned by the laser lamp is obtained, and the control chip is controlled to close the laser lamp under the condition that a first difference value between the third moment and the second moment is larger than or equal to a first time threshold value. The embodiment of the invention can ensure that the laser is started under the safe operation every time, can effectively monitor and control the starting time of the laser lamp to be less than the set safe threshold, and avoids unnecessary damage to human bodies.
Example four
Referring to fig. 4, a schematic structural diagram of a laser lamp control device provided in an embodiment of the present invention is shown, which may specifically include:
the first time recording module 410 is configured to record a corresponding first time when it is monitored that the control chip sends a pulse signal to the laser lamp driver; the second time obtaining module 420 is configured to obtain a second time corresponding to the time when the control chip receives the first feedback signal returned by the laser lamp; a third time obtaining module 430, configured to control the control chip to send a high-level control signal to the laser lamp driver when it is determined that the laser lamp is normal according to the second time and the first time, and obtain a third time corresponding to when the control chip receives a second feedback signal returned by the laser lamp; and a first laser lamp turning-off module 440, configured to control the control chip to turn off the laser lamp when a first difference between the third time and the second time is greater than or equal to a first time threshold.
Preferably, the third time obtaining module 430 includes: a second difference obtaining sub-module 4301, configured to obtain a second difference between the second time and the first time; a second time comparison submodule 4302, configured to compare the second difference with a second time threshold; and the laser lamp normality determining submodule 4303 is configured to determine that the laser lamp is normal when the second difference is smaller than the second time threshold.
Preferably, the method further comprises the following steps: a laser lamp anomaly determination module 450, configured to determine that the laser lamp is anomalous if the second difference is greater than or equal to the second time threshold; and a second laser lamp turning-off module 460, configured to control the control chip to turn off the laser lamp, and report an exception handling result.
Preferably, the method further comprises the following steps: and a low level signal sending module 470, configured to control the control chip to send a low level control signal to the laser lamp when the first difference is smaller than the first time threshold.
Preferably, the method further comprises the following steps: and the abnormal result reporting module is used for controlling the control chip to report the abnormal processing result.
The laser lamp control device provided by the embodiment of the invention has the beneficial effects of the laser lamp control device shown in the third embodiment, and can be combined with the control of turning off the laser lamp when the first abnormity is monitored, so that the harm to a human body caused by the light emission of the laser lamp is avoided, and the use experience of a user is improved.
EXAMPLE five
Referring to fig. 5, a hardware structure diagram of a mobile terminal for implementing various embodiments of the present invention is shown.
The mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to record a corresponding first time when it is monitored that the control chip sends a pulse signal to the laser lamp driver; acquiring a second moment corresponding to the control chip when the control chip receives a first feedback signal returned by the laser lamp; controlling the control chip to send a high-level control signal to the laser lamp driver under the condition that the laser lamp is determined to be normal according to the second moment and the first moment, and acquiring a third moment corresponding to the control chip when the control chip receives a second feedback signal returned by the laser lamp; and under the condition that a first difference value between the third moment and the second moment is greater than or equal to a first time threshold value, controlling the control chip to turn off the laser lamp.
In the embodiment of the invention, when the control chip is monitored to send out a pulse signal to the laser lamp drive, the corresponding first moment is recorded, and the corresponding second moment when the control chip receives the first feedback signal returned by the laser lamp is obtained; and under the condition that the laser lamp is determined to be normal according to the second moment and the first moment, the control chip is controlled to send a high-level control signal to the laser lamp drive, a third moment corresponding to the control chip when the control chip receives a second feedback signal returned by the laser lamp is obtained, and the control chip is controlled to close the laser lamp under the condition that a first difference value between the third moment and the second moment is larger than or equal to a first time threshold value. The embodiment of the invention can ensure that the laser is started under the safe operation every time, can effectively monitor and control the starting time of the laser lamp to be less than the set safe threshold, and avoids unnecessary damage to human bodies.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 510, a memory 509, and a computer program stored in the memory 509 and capable of running on the processor 510, where the computer program, when executed by the processor 510, implements each process of the above-mentioned laser starting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the laser starting method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A laser lamp control method is applied to a mobile terminal and is characterized by comprising the following steps:
when monitoring that the control chip sends a pulse signal to the laser lamp driver, recording a corresponding first moment;
acquiring a second moment corresponding to the control chip when the control chip receives a first feedback signal returned by the laser lamp;
controlling the control chip to send a high-level control signal to the laser lamp driver under the condition that the laser lamp is determined to be normal according to the second moment and the first moment, and acquiring a third moment corresponding to the control chip when the control chip receives a second feedback signal returned by the laser lamp;
under the condition that a first difference value between the third moment and the second moment is larger than or equal to a first time threshold value, controlling the control chip to turn off the laser lamp;
determining that the laser lamp is normal according to the second moment and the first moment, including:
acquiring a second difference value between the second moment and the first moment;
comparing the second difference to a second time threshold;
determining that the laser lamp is normal under the condition that the second difference value is smaller than the second time threshold value;
the control chip is controlled to close the laser lamp, and the method comprises the following steps:
and controlling the control chip to close power supply to the laser lamp so as to close the laser lamp.
2. The method of claim 1, wherein after the step of obtaining a second time corresponding to the control chip when receiving a first feedback signal returned by the laser lamp, the method further comprises:
determining that the laser lamp is abnormal under the condition that the second difference value is greater than or equal to the second time threshold value;
and controlling the control chip to turn off the laser lamp and reporting an exception handling result.
3. The method according to claim 1, wherein after the step of obtaining a third time corresponding to the control chip when receiving a second feedback signal returned by the laser lamp, the method further comprises:
and under the condition that the first difference value is smaller than the first time threshold value, controlling the control chip to send a low-level control signal to the laser lamp.
4. The method of claim 1, further comprising, after the step of controlling the control chip to turn off the laser light:
and controlling the control chip to report an exception handling result.
5. A laser light control apparatus, comprising:
the first time recording module is used for recording a corresponding first time when monitoring that the control chip sends a pulse signal to the laser lamp driver;
the second moment acquisition module is used for acquiring a second moment corresponding to the control chip when receiving the first feedback signal returned by the laser lamp;
the third moment acquisition module is used for controlling the control chip to send a high-level control signal to the laser lamp drive under the condition that the laser lamp is determined to be normal according to the second moment and the first moment, and acquiring a corresponding third moment when the control chip receives a second feedback signal returned by the laser lamp;
the first laser lamp turning-off module is used for controlling the control chip to turn off the laser lamp under the condition that a first difference value between the third moment and the second moment is greater than or equal to a first time threshold value;
the third time obtaining module includes:
a second difference obtaining submodule, configured to obtain a second difference between the second time and the first time;
a second time comparison submodule for comparing the second difference with a second time threshold;
the laser lamp normality determining submodule is used for determining that the laser lamp is normal under the condition that the second difference value is smaller than the second time threshold;
the first laser lamp turning-off module is specifically used for controlling the control chip to turn off power supply to the laser lamp so as to turn off the laser lamp.
6. The apparatus of claim 5, further comprising:
the laser lamp abnormity determining module is used for determining that the laser lamp is abnormal under the condition that the second difference value is greater than or equal to the second time threshold value;
and the second laser lamp turning-off module is used for controlling the control chip to turn off the laser lamp and reporting an exception handling result.
7. The apparatus of claim 5, further comprising:
and the low-level signal sending module is used for controlling the control chip to send a low-level control signal to the laser lamp under the condition that the first difference value is smaller than the first time threshold value.
8. The apparatus of claim 5, further comprising:
and the abnormal result reporting module is used for controlling the control chip to report the abnormal processing result.
CN201811379250.5A 2018-11-19 2018-11-19 Laser lamp control method and device and mobile terminal Active CN109475034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811379250.5A CN109475034B (en) 2018-11-19 2018-11-19 Laser lamp control method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811379250.5A CN109475034B (en) 2018-11-19 2018-11-19 Laser lamp control method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN109475034A CN109475034A (en) 2019-03-15
CN109475034B true CN109475034B (en) 2020-04-17

Family

ID=65672993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811379250.5A Active CN109475034B (en) 2018-11-19 2018-11-19 Laser lamp control method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN109475034B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112466110B (en) * 2020-10-29 2024-02-23 欧普照明电器(中山)有限公司 Equipment control system and equipment control method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205919189U (en) * 2016-08-10 2017-02-01 深圳市龙侨华实业有限公司 But network deployment laser lamp and illumination network that constitutes thereof
CN206879172U (en) * 2017-06-28 2018-01-12 上海硕置光电科技有限公司 A kind of laser lamp
CN108495014A (en) * 2018-05-31 2018-09-04 维沃移动通信有限公司 A kind of camera module, mobile terminal and control method
CN108600461A (en) * 2018-05-10 2018-09-28 维沃移动通信有限公司 A kind of image collecting device and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472831B (en) * 2014-09-05 2018-06-29 深圳光启智能光子技术有限公司 A kind of method of optical drive chip controls luminescent device and its optical drive chip

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205919189U (en) * 2016-08-10 2017-02-01 深圳市龙侨华实业有限公司 But network deployment laser lamp and illumination network that constitutes thereof
CN206879172U (en) * 2017-06-28 2018-01-12 上海硕置光电科技有限公司 A kind of laser lamp
CN108600461A (en) * 2018-05-10 2018-09-28 维沃移动通信有限公司 A kind of image collecting device and mobile terminal
CN108495014A (en) * 2018-05-31 2018-09-04 维沃移动通信有限公司 A kind of camera module, mobile terminal and control method

Also Published As

Publication number Publication date
CN109475034A (en) 2019-03-15

Similar Documents

Publication Publication Date Title
US11316967B2 (en) Screen on and off state control method and mobile terminal
CN107832689B (en) Fingerprint identification method and mobile terminal
CN108234727B (en) Noise reduction method, mobile terminal and computer readable storage medium
CN108135033B (en) Bluetooth connection method and mobile terminal
CN108391008B (en) Message reminding method and mobile terminal
CN110399000B (en) Mobile terminal and temperature control method thereof
CN108600089B (en) Expression image display method and terminal equipment
CN110830861B (en) Telephone receiver control method and device and electronic equipment
US20220408190A1 (en) Audio playing apparatus, audio playing method, and electronic device
CN107835495B (en) Message prompting method and device and mobile terminal
CN107782250B (en) Depth information measuring method and device and mobile terminal
CN108307075B (en) Incoming call processing method and mobile terminal
CN110784394A (en) Prompting method and electronic equipment
CN108307048B (en) Message output method and device and mobile terminal
US11523442B2 (en) Random access resource selection method and terminal device
CN108196663B (en) Face recognition method and mobile terminal
CN110868683B (en) Ultrasonic module failure detection method and electronic equipment
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN111459447B (en) Volume adjustment display method and electronic equipment
CN109475034B (en) Laser lamp control method and device and mobile terminal
CN109660657B (en) Application program control method and device
CN108924319B (en) Proximity detection method and mobile terminal
CN107769324B (en) Charging method, charger, mobile terminal and server
CN109217883B (en) Voltage control method and mobile terminal
CN110209333B (en) Page control method and mobile terminal

Legal Events

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