CN112839405A - Pulse LED based on surface emitting laser diode and control method thereof - Google Patents

Pulse LED based on surface emitting laser diode and control method thereof Download PDF

Info

Publication number
CN112839405A
CN112839405A CN202110198681.7A CN202110198681A CN112839405A CN 112839405 A CN112839405 A CN 112839405A CN 202110198681 A CN202110198681 A CN 202110198681A CN 112839405 A CN112839405 A CN 112839405A
Authority
CN
China
Prior art keywords
sensor
time
setting information
user equipment
led
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110198681.7A
Other languages
Chinese (zh)
Other versions
CN112839405B (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.)
Shenzhen Helianju Electronic Technology Co ltd
Original Assignee
Shenzhen Helianju Electronic Technology 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 Shenzhen Helianju Electronic Technology Co ltd filed Critical Shenzhen Helianju Electronic Technology Co ltd
Priority to CN202110198681.7A priority Critical patent/CN112839405B/en
Publication of CN112839405A publication Critical patent/CN112839405A/en
Application granted granted Critical
Publication of CN112839405B publication Critical patent/CN112839405B/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
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/32Pulse-control circuits
    • 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

Abstract

The invention belongs to the technical field of LEDs, and discloses a pulse LED based on a surface emitting laser diode and a control method thereof. The method comprises the following steps: acquiring setting information of user equipment, binding the user equipment according to the setting information, and configuring a sensor according to the setting information; when the sensor is triggered for the first time, a pulse LED switch is turned on to enable the pulse LED to be lightened; and when the sensor is triggered for the second time, the pulse LED switch is closed so that the pulse LED is extinguished. In this way, utilize triggering of sensor to come the light and going out of control pulse LED, do not need manual control switch to realize the switch to the night-light to make the use to the LED night-light more convenient, the old person need not manual operation pulse LED's switch, has strengthened user's use and has experienced.

Description

Pulse LED based on surface emitting laser diode and control method thereof
Technical Field
The invention relates to the technical field of LEDs, in particular to a pulse LED based on a surface emitting laser diode and a control method thereof.
Background
The light emitting diode, referred to as LED for short, is a commonly used light emitting device, emits light by energy released by recombination of electrons and holes, and is widely applied in the field of illumination. The light emitting diode can efficiently convert electric energy into light energy, and has wide application in modern society, such as illumination, flat panel display, medical devices and the like.
With the development of science and technology, the proportion of pulse LEDs in the public life is getting larger, wherein the application of pulse LEDs in the illumination field is one of the most common forms, night lights made of pulse LEDs are also common,
but the night light on the market is mostly by on-off control at present, and it is very troublesome that old person's activity is all manual control switch each time alone night, and it is very inconvenient that old person uses the LED night-light at the room activity alone night to forget in time to close the night-light and also can cause the waste of the energy.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a pulse LED based on a surface emitting laser diode and a control method thereof, and aims to solve the technical problems that the old people cannot move conveniently and safely in a room alone at night in the prior art.
In order to achieve the above object, the present invention provides a pulsed LED based on a surface emitting laser diode and a method for controlling the same, the method comprising the steps of:
acquiring setting information of user equipment, binding the user equipment according to the setting information, and configuring a sensor according to the setting information;
when the sensor is triggered for the first time, a pulse LED switch is turned on to enable the pulse LED to be lightened;
and when the sensor is triggered for the second time, the pulse LED switch is closed so that the pulse LED is extinguished.
Optionally, after the pulse LED switch is turned off when the sensor is triggered for the second time, the method further includes:
recording the triggering times of the sensor;
and when the triggering times are even numbers, carrying out zero clearing operation on the triggering times.
Optionally, the obtaining of the setting information of the user equipment, and binding with the user equipment according to the setting information includes:
when an access network request of user equipment is acquired, pushing a binding page to the user equipment according to the access network request so that the user equipment inputs setting information according to the binding page and feeds back the setting information;
and when the setting information is received, binding with the user equipment.
Optionally, the configuring the sensor according to the setting information includes:
carrying out information identification on the setting information to obtain effective setting information;
acquiring sensor label information, and extracting sensor parameters from the effective setting information according to the sensor label information;
configuring a sensor according to the sensor parameters.
Optionally, the configuring the sensor according to the sensor parameter includes:
extracting sensor sleep time, a sensor switching time threshold and a sensor alarm time threshold in the sensor parameters;
and configuring the sensor according to the sensor sleep time, the sensor switching time threshold and the alarm time threshold of the sensor.
Optionally, before turning on the pulse LED switch when the sensor is triggered for the first time to light the pulse LED, the method further includes:
calling a clock application program interface, and acquiring the current time according to the clock application program interface;
when the current time reaches a preset starting time, acquiring illumination intensity information according to setting information so that the sensor determines a pulse signal according to the illumination intensity information and starts according to the pulse signal;
and when the current time reaches the preset closing time, closing the sensor.
Optionally, the turning off the pulse LED switch when the sensor is triggered for the second time includes:
when the sensor is triggered for the second time, acquiring a first preset interval time and a second preset interval time, wherein the first preset interval time is less than the second preset interval time;
acquiring the triggering time of the first triggering and the triggering time of the second triggering of the sensor;
obtaining a time interval according to the triggering time of the first triggering and the triggering time of the second triggering;
when the time interval is greater than or equal to the first preset interval time, turning off a switch of the pulse LED;
and when the time interval is greater than or equal to the second preset interval time, sending alarm information to the user equipment.
In addition, to achieve the above object, the present invention further provides a surface emitting laser diode-based pulsed LED, including:
the binding module is used for acquiring the setting information of the user equipment and binding the user equipment according to the setting information;
the configuration module is used for configuring the sensor according to the setting information;
and the control module is used for starting a pulse LED switch to enable the pulse LED to be lightened when the sensor is triggered for the first time, and closing the pulse LED switch to enable the pulse LED to be extinguished when the sensor is triggered for the second time.
Further, to achieve the above object, the present invention also provides a surface-emitting laser diode-based pulsed LED control apparatus, comprising: a memory, a processor and a surface emitting laser diode based pulsed LED control program stored on the memory and executable on the processor, the surface emitting laser diode based pulsed LED control program configured to implement the steps of the surface emitting laser diode based pulsed LED control method described above.
In addition, in order to achieve the above object, the present invention further provides a storage medium, wherein the storage medium stores a surface emitting laser diode based pulse LED control program, and the surface emitting laser diode based pulse LED control program realizes the above steps of the surface emitting laser diode based pulse LED control method when executed by a processor.
The method comprises the steps of obtaining setting information of user equipment, binding the user equipment according to the setting information, and configuring a sensor according to the setting information; when the sensor is triggered for the first time, a pulse LED switch is turned on to enable the pulse LED to be lightened; and when the sensor is triggered for the second time, the pulse LED switch is closed, so that the pulse LED is extinguished to realize the control of the pulse LED. Wherein, the number of times of triggering through the sensor realizes the control of lighting on and extinguishing pulse LED, does not need manual control switch to realize the switch to the night-light to make the use to the LED night-light more convenient, the old person need not manual operation pulse LED's switch, has strengthened user's use and has experienced.
Drawings
FIG. 1 is a schematic diagram of a pulsed LED control device based on a surface emitting laser diode according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a method for controlling a pulsed LED based on a surface emitting laser diode according to the present invention;
FIG. 3 is a schematic flow chart of a pulsed LED control method based on surface emitting laser diode according to a second embodiment of the present invention;
FIG. 4 is a schematic flow chart of a third embodiment of a pulsed LED control method based on surface emitting laser diodes according to the present invention;
FIG. 5 is a functional block diagram of a first embodiment of a pulsed LED based on a surface emitting laser diode according to the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may comprise a Display screen (Display), an input unit such as keys, and the optional user interface 1003 may also comprise a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
It will be understood by those skilled in the art that the structure of the surface-emitting laser diode based pulsed LED control device shown in fig. 1 does not constitute a limitation of the surface-emitting laser diode based pulsed LED control device, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a surface-emitting laser diode-based pulse LED control program.
In the surface-emitting laser diode-based pulsed LED control device shown in fig. 1, the network interface 1004 is mainly used for connecting a server and performing data communication with the server; the user interface 1003 is mainly used for connecting a user terminal and performing data communication with the terminal; the surface-emitting laser diode-based pulsed LED control apparatus of the present invention calls a surface-emitting laser diode-based pulsed LED control program stored in the memory 1005 through the processor 1001, and executes the surface-emitting laser diode-based pulsed LED control method provided by the embodiment of the present invention.
Based on the hardware structure, the invention provides the embodiment of the pulse LED control method based on the surface emitting laser diode.
Referring to fig. 2, fig. 2 is a schematic flow chart of a pulsed LED control method based on a surface emitting laser diode according to a first embodiment of the present invention.
In this embodiment, the method for controlling a pulsed LED based on a surface emitting laser diode includes the following steps:
step S10: acquiring setting information of user equipment, binding the user equipment according to the setting information, and configuring a sensor according to the setting information;
it should be noted that the execution main body of the present embodiment is a controller, and the controller is a controller mainly used for controlling the sensor to operate, and may be any device capable of implementing this function, which is not limited in this embodiment.
In concrete the realization, the in-process that generally applies to the old person and move alone night in the bedroom of living, when the old person is out of the night, it can be very inconvenient if the switch that all manually opened the night-light is used every time, and the old person's activity is inconvenient in addition, just can realize the auto-induction and open the LED night-light through the mode of sensor like this, makes the old person's use more convenient. Meanwhile, the automatic dormancy function of the preset sensor is added, when the sunshine condition is sufficient in the daytime, according to the preset time, the automatic dormancy non-continuous work of the sensor can be realized, so that the energy can be saved more, the manual operation times of a user can be effectively reduced after the sensor is set, the use experience of the user is greatly increased, the type of changing pulse signals according to the illumination intensity of the current time is also increased, the function of adjusting the brightness of the pulse LED is realized, the energy can be saved to a certain extent, and the use experience of the user is increased.
It should be noted that the user equipment refers to a mobile terminal that can access a wireless network, and may be a mobile phone, a notebook computer, or other equipment that can implement this function, which is not limited in this embodiment.
It should be understood that the sensor refers to a detection device, which can sense the measured information and convert the sensed information into electrical signals or other information output in a required form according to a certain rule, so as to meet the requirements of information transmission, processing, storage, display, recording, control and the like. The sensor may be a pressure sensor, an infrared sensor, or other devices that can achieve this function, which is not limited in this embodiment.
Further, the acquiring the setting information of the user equipment, and binding with the user equipment according to the setting information includes:
when an access network request of user equipment is acquired, pushing a binding page to the user equipment according to the access network request so that the user equipment inputs setting information according to the binding page and feeds back the setting information;
and when the setting information is received, binding with the user equipment.
It should be understood that the acquiring of the access network request of the user equipment refers to sending an access network request when the user equipment requests to access a network, wherein the access network request includes a hardware identification number and other identity information of the user equipment.
In a specific implementation, the pushing of the binding page to the user equipment according to the access network request refers to extracting a hardware identification number and other identity information of the user equipment from the access network request of the user equipment, and pushing the binding page to the user equipment according to the hardware identification number and the other identity information.
It should be noted that the binding page refers to a push page including a window capable of inputting setting information, and when receiving an access network request sent by the user equipment, the binding page is sent to the user equipment.
It should be understood that, after the user equipment inputs the setting information on the binding page, the user equipment may choose to submit the binding page, and at this time, the binding page feeds back the setting information, and when the setting information is received, the user equipment can be successfully bound with the binding page.
Further, the configuring the sensor according to the setting information includes:
carrying out information identification on the setting information to obtain effective setting information;
acquiring sensor label information, and extracting sensor parameters from the effective setting information according to the sensor label information;
configuring a sensor according to the sensor parameters.
Further, the configuring the sensor according to the sensor parameter includes:
extracting sensor sleep time, a sensor switching time threshold and a sensor alarm time threshold in the sensor parameters;
and configuring the sensor according to the sensor sleep time, the sensor switching time threshold and the alarm time threshold of the sensor.
In a specific implementation, the setting information includes, but is not limited to, valid setting information, and may also include a user name, login time, or other information, which is not specifically limited in this embodiment.
It should be noted that the performing of information identification on the setting information to obtain effective setting information refers to screening and extracting the received setting information, and extracting effective setting information from all the setting information.
In specific implementation, when the feedback setting information is received, all information is labeled with label information, and all information is classified into different categories according to the label information, so that the information of corresponding categories can be acquired according to the label information when the information needs to be called. The sensor tag information is one of the tag information, and may further include other types of tag information, which is not limited in this embodiment.
It should be noted that, the extracting of the sensor parameter from the effective setting information according to the sensor tag information refers to extracting all information with sensor tag information in the effective setting information as the sensor parameter according to the sensor tag information.
It should be understood that the sensor sleep time includes a preset on time and a preset off time, which are preset by the user equipment during binding, the sensor sleep time is used for setting the working and sleep time of the sensor, and when the sensor sleep time is reached, the sensor will automatically stop working and enter sleep.
In a specific implementation, the sensor switching time threshold includes a first preset interval time, which is a preset value when the user equipment is bound, and the sensor switching time threshold is mainly used for controlling the sensor to be automatically turned off when the set time is reached.
It should be noted that the alarm time threshold of the sensor includes a second preset interval time, which is a preset value when the user equipment is bound, and the alarm time threshold of the sensor is mainly used for controlling sending alarm information to the user equipment when the set time is reached.
It should be understood that, the extracting of the sensor sleep time, the sensor switching time threshold, and the sensor alarm time threshold from the sensor parameters refers to screening the sensor sleep time, the sensor switching time threshold, and the sensor alarm time threshold from the sensor parameters for configuring the sensor.
Step S20: when the sensor is triggered for the first time, a pulse LED switch is turned on to enable the pulse LED to be lightened;
in a specific implementation, when the sensor is triggered for the first time, turning on the pulse LED switch to light the pulse LED refers to turning on the switch of the circuit where the pulse LED is located when the sensor is triggered for the first time, so that the circuit where the pulse LED is located is turned on, and the pulse LED is lit.
Step S30: and when the sensor is triggered for the second time, the pulse LED switch is closed so that the pulse LED is extinguished.
When the sensor is triggered for the second time, turning off the pulse LED switch to turn off the pulse LED means that when the sensor is triggered for the second time, turning off the switch of the circuit in which the pulse LED is located to turn off the circuit in which the pulse LED is located, and turning off the pulse LED.
Further, when the sensor is triggered for the second time, after the pulse LED switch is turned off, the method further includes:
recording the triggering times of the sensor;
and when the triggering times are even numbers, carrying out zero clearing operation on the triggering times.
In a specific implementation, the recording of the sensor trigger times refers to updating and storing the sensor trigger times each time the sensor is triggered.
It should be noted that, when the triggering time is an even number, the triggering time is reset, which means that when it is detected that the recorded triggering time of the sensor reaches the even number, the triggering time record is updated to zero, and the next triggering record of the sensor is the first one. For example: and when the recorded triggering times of the sensor are detected to be the second time, updating the record, wherein the updated triggering times of the sensor are zero, and when the sensor is triggered next time, the record is the first triggering.
The method comprises the steps of obtaining setting information of user equipment, binding the user equipment according to the setting information, and configuring a sensor according to the setting information; when the sensor is triggered for the first time, a pulse LED switch is turned on to enable the pulse LED to be lightened; and when the sensor is triggered for the second time, the pulse LED switch is closed, so that the pulse LED is extinguished to realize the control of the pulse LED. Wherein, the number of times of triggering through the sensor realizes the control of lighting on and extinguishing pulse LED, does not need manual control switch to realize the switch to the night-light to make the use to the LED night-light more convenient, the old person need not manual operation pulse LED's switch, has strengthened user's use and has experienced.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment can be referred to the method for controlling a pulsed LED based on a surface emitting laser diode according to any embodiment of the present invention, and are not described herein again.
Referring to fig. 3, fig. 3 is a flowchart illustrating a pulsed LED control method based on a surface emitting laser diode according to a second embodiment of the present invention.
Based on the first embodiment described above, the present embodiment further includes, before step S20:
step S11: calling a clock application program interface, and acquiring the current time according to the clock application program interface;
it should be understood that the clock application program interface refers to a built-in clock application program, and the clock application program records the standard time of the current time zone for other functions to call.
In a specific implementation, the invoking of the clock application program interface and the obtaining of the current time according to the clock application program interface means obtaining the current time zone standard time recorded by the clock application program, which is used as the reference time for comparing the sensor sleep time, the sensor switching time threshold, and the sensor alarm time threshold.
Step S12: when the current time reaches a preset starting time, acquiring illumination intensity information according to setting information so that the sensor determines a pulse signal according to the illumination intensity information and starts according to the pulse signal;
it should be noted that the preset starting time is one of the setting information input by the user equipment on the binding page, and is mainly used for controlling the automatic starting of the sensor.
It should be understood that when the standard time of the current time zone acquired from the clock application program interface reaches the preset on time, that is, the preset on time of the sensor, the sensor switch is turned on to start the operation of the sensor. For example: if the preset starting time is set to be 19 points, when the standard time of the current time zone acquired from the clock application program interface reaches 19 points, the preset starting time of the sensor is reached, at the moment, the sensor switch is started, and the sensor starts to work.
In a specific implementation, the illumination intensity information is one of preset setting information, the illumination intensity information includes sunlight illumination intensity corresponding to the current time, and the sensor can select a corresponding pulse signal type according to the illumination intensity.
It should be noted that the sensor determines a pulse signal according to the illumination intensity information, and turns on according to the pulse signal, which means that the sensor determines a corresponding pulse signal according to the sunlight illumination intensity corresponding to the current time extracted from the illumination intensity information, and then inputs the corresponding pulse signal to a circuit where the pulse LED is located, so that the pulse LED is turned on.
It should be understood that if the sunlight illumination intensity at the current time is stronger, the corresponding pulse signal type is input into the pulse LED circuit, so that the brightness of the pulse LED is weaker; if the sunlight illumination intensity at the current time is weaker, the corresponding pulse signal type is input into the pulse LED circuit, so that the brightness of the pulse LED is stronger.
Step S13: and when the current time reaches the preset closing time, closing the sensor.
In a specific implementation, the preset closing time is one of setting information input by the user equipment on the binding page, and is mainly used for controlling the automatic closing of the sensor.
It should be noted that, when the standard time of the current time zone acquired from the clock application program interface reaches the preset off time, that is, the preset off time of the sensor is reached, the sensor switch is turned off at this time, so that the sensor stops working. For example: if the preset closing time is set to be 6 points, when the standard time of the current time zone acquired from the clock application program interface reaches 6 points, the preset closing time of the sensor is reached, at the moment, the sensor switch is closed, and the sensor stops working.
In the embodiment, the current time is acquired according to a clock application program interface by calling the clock application program interface; when the current time reaches a preset starting time, acquiring illumination intensity information according to setting information so that the sensor determines a pulse signal according to the illumination intensity information and starts according to the pulse signal; and when the current time reaches the preset closing time, closing the sensor. The intelligent control of the sensor is realized through the mode, the intelligent control of the pulse LED is further realized, the working time of the sensor can be adjusted without manual switching every time, and the pulse LED is more convenient to use. Meanwhile, the automatic stop work is realized when the illumination condition is enough and the pulse LED night lamp is not needed, and the energy is saved more.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment can be referred to the method for controlling a pulsed LED based on a surface emitting laser diode according to any embodiment of the present invention, and are not described herein again.
Referring to fig. 4, fig. 4 is a flowchart illustrating a pulsed LED control method based on a surface emitting laser diode according to a third embodiment of the present invention.
Based on the first embodiment described above, the present embodiment of the method for controlling a pulsed LED based on a surface emitting laser diode further includes, in step S30:
step S31: when the sensor is triggered for the second time, acquiring a first preset interval time and a second preset interval time, wherein the first preset interval time is less than the second preset interval time;
it should be understood that the first preset interval time is information included in the sensor switching time threshold, and is one of the setting information input by the user equipment on the binding page.
In a specific implementation, the second preset interval is information included in an alarm time threshold of the sensor, and is one of the setting information input by the user equipment on the binding page.
It should be noted that, since the first preset interval is less than the second preset interval, when the first preset interval input by the user equipment on the binding page is greater than the second preset interval, an error is automatically reported, and the binding page is sent to the user equipment again, so that the user equipment fills the first preset interval and the second preset interval which meet the rule. For example: when the first preset interval time input by the user equipment on the binding page is received and is 5 minutes, and the second preset interval time is received and is 3 minutes, an error is automatically reported, and the binding page is sent to the user equipment again, so that the user equipment fills the first preset interval time and the second preset interval time which accord with rules.
Step S32: acquiring the triggering time of the first triggering and the triggering time of the second triggering of the sensor;
it will be appreciated that when the sensor is triggered, the number of times the sensor is triggered and the time at which it is currently triggered are automatically recorded.
Step S33: obtaining a time interval according to the triggering time of the first triggering and the triggering time of the second triggering;
in a specific implementation, the obtaining of the time interval according to the trigger time of the first trigger and the trigger time of the second trigger refers to calculating the trigger time of the first trigger and the trigger time of the second trigger when the trigger time of the first trigger and the trigger time of the second trigger are obtained, and the calculated result is the time interval. For example: and when the triggering time for acquiring the first triggering is 19 hours and 30 minutes and the triggering time for starting the second triggering is 19 hours and 35 minutes, the time interval is 5 minutes through calculation.
Step S34: when the time interval is greater than or equal to the first preset interval time, turning off a switch of the pulse LED;
when the calculated time interval is greater than or equal to the first preset interval time, the sensor switching time threshold is reached, and at this time, the switch of the circuit where the pulse LED is located is turned off, so that the pulse LED is turned off. For example: if the first preset interval time is 5 minutes, when the calculated time interval is greater than or equal to 5 minutes, the sensor switching time threshold is reached, and at the moment, a switch of a circuit where the pulse LED is located is switched off, so that the pulse LED is turned off.
Step S35: and when the time interval is greater than or equal to the second preset interval time, sending alarm information to the user equipment.
It should be understood that the alarm information is mainly used to warn the user equipment, and the alarm information may be push information, ring alarm information, or other information that can implement this function, which is not limited in this embodiment.
In a specific implementation, when the calculated time interval is greater than or equal to the second preset interval time, the alarm time threshold of the sensor is reached, and at this time, alarm information is sent to the user equipment. For example: if the second preset interval time is 10 minutes, when the calculated time interval is greater than or equal to 10 minutes, the alarm time threshold of the sensor is reached, and at this time, the user equipment sends alarm information.
It should be noted that the sending of the alarm information to the user equipment refers to pushing the alarm information to the user equipment through a wireless network, and the alarm information may be a text message, a ringtone alert, or other manners capable of implementing the function, which is not limited in this embodiment.
In this embodiment, when the sensor is triggered for the second time, a first preset interval time and a second preset interval time are obtained, where the first preset interval time is less than the second preset interval time; acquiring the triggering time of the first triggering and the triggering time of the second triggering of the sensor; obtaining a time interval according to the triggering time of the first triggering and the triggering time of the second triggering; when the time interval is greater than or equal to the first preset interval time, turning off a switch of the pulse LED; and when the time interval is greater than or equal to the second preset interval time, sending alarm information to the user equipment. When the time interval between two triggers of the sensor exceeds the first preset time interval, the pulse LED can be automatically extinguished to realize the function of saving energy, and the overtime automatic extinguishing function of the pulse LED is realized in such a way; when the time interval between two triggers of sensor surpassed the second and predetermine the interval time, can automatic propelling movement alarm information for user equipment, can avoid old person to appear dangerous situation but nobody comes the succour at night like this, guarantee the safety of old person's activity at night through infories user equipment, realized overtime warning function through this kind of mode. The overtime automatic extinguishing function and the overtime warning function also enable the use of the pulse LED to be more convenient, improve the safety guarantee of the old and enhance the use experience of users.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, technical details that are not described in detail in this embodiment can be referred to a method for controlling a pulsed LED based on a surface emitting laser diode according to any embodiment of the present invention, and are not described herein again.
The invention further provides a pulsed LED based on a surface emitting laser diode.
Referring to fig. 5, fig. 5 is a functional block diagram of a first embodiment of a pulsed LED based on a surface emitting laser diode according to the present invention.
In a first embodiment of the present invention, a pulsed LED based on a surface emitting laser diode comprises:
a binding module 10, configured to obtain setting information of a user equipment, and bind with the user equipment according to the setting information;
a configuration module 20, configured to configure the sensor according to the setting information;
and the control module 30 is configured to turn on a pulse LED switch to light the pulse LED when the sensor is triggered for the first time, and turn off the pulse LED switch to extinguish the pulse LED when the sensor is triggered for the second time.
In this embodiment, by acquiring setting information of a user equipment, binding with the user equipment according to the setting information; configuring a sensor according to the setting information; and the pulse LED switch is turned on when the sensor is triggered for the first time so as to enable the pulse LED to be lightened, and is turned off when the sensor is triggered for the second time so as to enable the pulse LED to be extinguished. The control of lightening and extinguishing of the pulse LED is realized through the triggering times of the sensor, and the switch of the night lamp is not needed to be manually controlled, so that the LED night lamp is more convenient to use, the old people do not need to manually operate the switch of the pulse LED, and the use experience of users is enhanced.
In an embodiment, the binding module 10 is further configured to, when acquiring an access network request of a user equipment, push a binding page to the user equipment according to the access network request, so that the user equipment inputs setting information according to the binding page and feeds back the setting information; and when the setting information is received, binding with the user equipment.
In an embodiment, the configuration module 20 is further configured to perform information identification on the setting information to obtain valid setting information; acquiring sensor label information, and extracting sensor parameters from the effective setting information according to the sensor label information; configuring a sensor according to the sensor parameters.
In an embodiment, the configuration module 20 is further configured to extract a sensor sleep time threshold, a sensor switching time threshold, and a sensor alarm time threshold from the sensor parameters; and configuring the sensor according to the sensor sleep time, the sensor switching time threshold and the alarm time threshold of the sensor.
In one embodiment, the pulsed LED based on surface emitting laser diode and the control method device thereof further include: a zero clearing module;
the zero clearing module is used for recording the triggering times of the sensor; and when the triggering times are even numbers, carrying out zero clearing operation on the triggering times.
In one embodiment, the pulsed LED based on surface emitting laser diode and the control method device thereof further include: a timing module;
the timing module is used for calling a clock application program interface and acquiring the current time according to the clock application program interface; when the current time reaches a preset starting time, acquiring illumination intensity information according to setting information so that the sensor determines a pulse signal according to the illumination intensity information and starts according to the pulse signal; and when the current time reaches the preset closing time, closing the sensor.
In one embodiment, the pulsed LED based on surface emitting laser diode and the control method device thereof further include: an early warning module;
the early warning module is used for acquiring a first preset interval time and a second preset interval time when the sensor is triggered for the second time, wherein the first preset interval time is less than the second preset interval time; acquiring the triggering time of the first triggering and the triggering time of the second triggering of the sensor; obtaining a time interval according to the triggering time of the first triggering and the triggering time of the second triggering; when the time interval is greater than or equal to the first preset interval time, turning off a switch of the pulse LED; and when the time interval is greater than or equal to the second preset interval time, sending alarm information to the user equipment.
Further, to achieve the above object, the present invention also provides a surface-emitting laser diode-based pulsed LED control apparatus, comprising: a memory, a processor and a surface emitting laser diode based pulsed LED control program stored on the memory and executable on the processor, the surface emitting laser diode based pulsed LED control program configured to implement the steps of the surface emitting laser diode based pulsed LED control method as described above.
Furthermore, an embodiment of the present invention further provides a storage medium, where a surface-emitting laser diode-based pulsed LED control program is stored, and the surface-emitting laser diode-based pulsed LED control program, when executed by a processor, implements the steps of the surface-emitting laser diode-based pulsed LED control method as described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
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 system 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 system. 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 system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 solution of the present invention may be substantially or partially embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling an intelligent 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.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for controlling a pulsed LED based on a surface emitting laser diode, the method comprising:
acquiring setting information of user equipment, binding the user equipment according to the setting information, and configuring a sensor according to the setting information;
when the sensor is triggered for the first time, a pulse LED switch is turned on to enable the pulse LED to be lightened;
and when the sensor is triggered for the second time, the pulse LED switch is closed so that the pulse LED is extinguished.
2. The method of claim 1, wherein after turning off the pulsed LED switch when the sensor is activated for the second time, further comprising:
recording the triggering times of the sensor;
and when the triggering times are even numbers, carrying out zero clearing operation on the triggering times.
3. The method of claim 1, wherein the obtaining of the setting information of the user equipment and the binding with the user equipment according to the setting information comprises:
when an access network request of user equipment is acquired, pushing a binding page to the user equipment according to the access network request so that the user equipment inputs setting information according to the binding page and feeds back the setting information;
and when the setting information is received, binding with the user equipment.
4. The method of claim 1, wherein the configuring the sensor according to the setting information comprises:
carrying out information identification on the setting information to obtain effective setting information;
acquiring sensor label information, and extracting sensor parameters from the effective setting information according to the sensor label information;
configuring a sensor according to the sensor parameters.
5. The method of claim 4, wherein the configuring the sensor according to the sensor parameter comprises:
extracting sensor sleep time, a sensor switching time threshold and a sensor alarm time threshold in the sensor parameters;
and configuring the sensor according to the sensor sleep time, the sensor switching time threshold and the alarm time threshold of the sensor.
6. The method of any one of claims 1 to 5, wherein before turning on a pulsed LED switch when the sensor is first activated to cause the pulsed LED to illuminate, further comprising:
calling a clock application program interface, and acquiring the current time according to the clock application program interface;
when the current time reaches a preset starting time, acquiring illumination intensity information according to setting information so that the sensor determines a pulse signal according to the illumination intensity information and starts according to the pulse signal;
and when the current time reaches the preset closing time, closing the sensor.
7. The method of any of claims 1 to 5, wherein said turning off the pulsed LED switch when the sensor is activated for a second time comprises:
when the sensor is triggered for the second time, acquiring a first preset interval time and a second preset interval time, wherein the first preset interval time is less than the second preset interval time;
acquiring the triggering time of the first triggering and the triggering time of the second triggering of the sensor;
obtaining a time interval according to the triggering time of the first triggering and the triggering time of the second triggering;
when the time interval is greater than or equal to the first preset interval time, turning off a switch of the pulse LED;
and when the time interval is greater than or equal to the second preset interval time, sending alarm information to the user equipment.
8. A surface-emitting laser diode based pulsed LED, comprising:
the binding module is used for acquiring the setting information of the user equipment and binding the user equipment according to the setting information;
the configuration module is used for configuring the sensor according to the setting information;
and the control module is used for starting a pulse LED switch to enable the pulse LED to be lightened when the sensor is triggered for the first time, and closing the pulse LED switch to enable the pulse LED to be extinguished when the sensor is triggered for the second time.
9. A pulsed LED control device based on a surface emitting laser diode, characterized in that the device comprises: a memory, a processor and a surface emitting laser diode based pulsed LED control program stored on the memory and executable on the processor, the surface emitting laser diode based pulsed LED control program configured to implement the steps of the surface emitting laser diode based pulsed LED control method according to any one of claims 1 to 7.
10. A storage medium having a surface-emitting laser diode-based pulsed LED control program stored thereon, wherein the surface-emitting laser diode-based pulsed LED control program, when executed by a processor, implements the steps of the surface-emitting laser diode-based pulsed LED control method according to any one of claims 1 to 7.
CN202110198681.7A 2021-02-22 2021-02-22 Pulse LED based on surface emitting laser diode and control method thereof Active CN112839405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110198681.7A CN112839405B (en) 2021-02-22 2021-02-22 Pulse LED based on surface emitting laser diode and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110198681.7A CN112839405B (en) 2021-02-22 2021-02-22 Pulse LED based on surface emitting laser diode and control method thereof

Publications (2)

Publication Number Publication Date
CN112839405A true CN112839405A (en) 2021-05-25
CN112839405B CN112839405B (en) 2023-04-07

Family

ID=75934264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110198681.7A Active CN112839405B (en) 2021-02-22 2021-02-22 Pulse LED based on surface emitting laser diode and control method thereof

Country Status (1)

Country Link
CN (1) CN112839405B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104091294A (en) * 2014-07-02 2014-10-08 合肥工业大学 Integrated cloud service system used for old person guardianship
CN105228313A (en) * 2015-10-19 2016-01-06 珠海格力电器股份有限公司 Illumination control method and relevant device
CN206592785U (en) * 2016-06-24 2017-10-27 碧爱姆沃克斯株式会社 The pulsing light device and night surveillance system of a kind of utilization surface-emitting laser diode
CN110856313A (en) * 2019-12-13 2020-02-28 杭州涂鸦信息技术有限公司 Intelligent night lamp control method and system
CN111511064A (en) * 2020-04-14 2020-08-07 佛山市艾温特智能科技有限公司 Intelligent desk lamp control method and system and intelligent desk lamp
CN211959612U (en) * 2018-11-29 2020-11-17 嘉兴山蒲照明电器有限公司 LED straight lamp, power module thereof and LED lighting system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104091294A (en) * 2014-07-02 2014-10-08 合肥工业大学 Integrated cloud service system used for old person guardianship
CN105228313A (en) * 2015-10-19 2016-01-06 珠海格力电器股份有限公司 Illumination control method and relevant device
CN206592785U (en) * 2016-06-24 2017-10-27 碧爱姆沃克斯株式会社 The pulsing light device and night surveillance system of a kind of utilization surface-emitting laser diode
CN211959612U (en) * 2018-11-29 2020-11-17 嘉兴山蒲照明电器有限公司 LED straight lamp, power module thereof and LED lighting system
CN110856313A (en) * 2019-12-13 2020-02-28 杭州涂鸦信息技术有限公司 Intelligent night lamp control method and system
CN111511064A (en) * 2020-04-14 2020-08-07 佛山市艾温特智能科技有限公司 Intelligent desk lamp control method and system and intelligent desk lamp

Also Published As

Publication number Publication date
CN112839405B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US10212790B2 (en) Intelligent lighting control system lighting alarm apparatuses, systems, and methods
CN110049606B (en) Lamp control method, device and system and computer readable storage medium
CN103067604A (en) Method for enabling cell phone to be in flashlight mode
CN106961775A (en) A kind of lamp light control method, device and lamp dimmer
CN104110787A (en) Method and system for controlling air conditioner
CN111198621A (en) Key configuration method, device and system, electronic equipment and storage medium
CN110856313A (en) Intelligent night lamp control method and system
CN112839405B (en) Pulse LED based on surface emitting laser diode and control method thereof
CN104661412B (en) Intelligent dimming illuminator and its control method of auxiliary remote control and light fixture
JP6709848B2 (en) Lighting circuit control method and controller
CN101516154A (en) Method for using a mobile phone camera to automatic control a flash lamp as a photoinduction flashlight
CN103646517B (en) A kind of mobile phone that utilizes controls alarm, the method receiving warning message and device
CN113613375A (en) Night lamp control method based on living room
CN112672470A (en) Intelligent lamp control method, computer device and computer readable storage medium
CN103747202A (en) Intelligent security and protection system's multiple working mode definition and switching method
JP7096728B2 (en) Lighting system, control method of lighting system
CN110049608B (en) Intelligent lamp and control method thereof
CN110366293B (en) Intelligent lighting system and control method of console and console
US20240008160A1 (en) Transmitting a notification in dependence on what caused a light source to be on while a user is away
US20040230838A1 (en) Process for assembling a group of elements in a home automation network
CN110784763A (en) Display terminal control method, display terminal and readable storage medium
CN109542005A (en) A kind of adaptation method, device and the medium of equipment control instruction
CN113207211B (en) Intelligent illumination control method and system
CN110007622B (en) Control method, device, equipment and storage medium
CN117452856A (en) Man-machine interaction system and method for electrical equipment

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