CN114355804A - Control method of eye-protection lamp, eye-protection lamp and computer storage medium - Google Patents
Control method of eye-protection lamp, eye-protection lamp and computer storage medium Download PDFInfo
- Publication number
- CN114355804A CN114355804A CN202111559267.0A CN202111559267A CN114355804A CN 114355804 A CN114355804 A CN 114355804A CN 202111559267 A CN202111559267 A CN 202111559267A CN 114355804 A CN114355804 A CN 114355804A
- Authority
- CN
- China
- Prior art keywords
- lamp
- eye
- instruction
- brightness value
- protection lamp
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000003860 storage Methods 0.000 title claims abstract description 13
- 238000004891 communication Methods 0.000 claims abstract description 15
- 238000005286 illumination Methods 0.000 claims description 31
- 238000004590 computer program Methods 0.000 claims description 21
- 230000033764 rhythmic process Effects 0.000 claims description 14
- 206010070834 Sensitisation Diseases 0.000 claims description 5
- 230000008313 sensitization Effects 0.000 claims description 5
- 230000006870 function Effects 0.000 description 37
- 230000001276 controlling effect Effects 0.000 description 18
- 239000011324 bead Substances 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 208000003464 asthenopia Diseases 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000035807 sensation Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000013016 learning Effects 0.000 description 1
- 230000001795 light effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000036651 mood Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 230000002040 relaxant effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The application provides a control method of an eye protection lamp, the eye protection lamp and a computer storage medium, and relates to the technical field of eye protection lamp control. The eye protection lamp comprises a plurality of functional modules, the functional modules comprise an illuminating lamp, an atmosphere lamp, a sound box, a camera and a microphone, and the eye protection lamp is used for being arranged on a display and is in communication connection with a host of the display. The method comprises the following steps: receiving a first instruction sent by a host, wherein the first instruction is determined by the host according to user operation; and controlling the functional module corresponding to the first instruction according to the first instruction. According to the method, the eye protection lamp receives different first instructions sent by the host; the illuminating lamp, the atmosphere lamp, the sound box, the camera and the microphone in the eye protection lamp are controlled, a user can use the eye protection lamp conveniently, the illuminating lamp, the atmosphere lamp, the sound box, the camera and the microphone are integrated in the eye protection lamp, the limitation that a common eye protection lamp only has an illuminating function is broken through, the application function of the eye protection lamp is enriched, and the user experience is improved.
Description
Technical Field
The application belongs to the technical field of eye-protection lamp control, and particularly relates to a control method of an eye-protection lamp, the eye-protection lamp and a computer storage medium.
Background
For many users, such as office workers and college students, our work and study life are increasingly unable to leave the terminal device, and when the terminal device is used for work and study life, the color temperature and the brightness emitted by the display screen of the terminal device when different contents are displayed are continuously changed, and the eyes of the users are damaged by the over-bright or over-dark of the ambient light, so that the visual fatigue is caused.
In order to reduce the damage to eyes when the terminal equipment is used as far as possible, the eye protection lamp with the eye protection function is clamped on the display screen of the terminal equipment, but the common eye protection lamp is single in function and single in control method, the color temperature and the brightness of the eye protection lamp are adjusted by a user in a mode of manually clicking related keys, the adjustment mode is inconvenient for the user to use, and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a control method of an eye-protecting lamp, the eye-protecting lamp and a computer storage medium, and can solve the problems that when a user uses the eye-protecting lamp, the function of the eye-protecting lamp is single, the control method is single, the user is inconvenient to use, and the user experience is poor.
In a first aspect, an embodiment of the present application provides a method for controlling an eye-protection lamp, where the eye-protection lamp includes a plurality of functional modules, the functional modules include an illumination lamp, an atmosphere lamp, a sound box, a camera and a microphone, and the eye-protection lamp is configured on a display and is in communication connection with a host of the display; the method comprises the following steps: receiving a first instruction sent by a host, wherein the first instruction is determined by the host according to user operation; and controlling the functional module corresponding to the first instruction according to the first instruction.
In the control method of the eye-protection lamp provided by the embodiment of the application, the eye-protection lamp controls the functional module corresponding to the first instruction according to the received different first instructions sent by the host. When the eye-protecting lamp includes the light, the atmosphere lamp, the stereo set, during the above-mentioned a plurality of functional modules of camera and microphone, the eye-protecting lamp is through receiving the different first instruction that the host computer sent, in order to realize the light in to the eye-protecting lamp, the atmosphere lamp, the stereo set, camera and microphone are controlled, the user uses the eye-protecting lamp has made things convenient for, the light has been integrated in this eye-protecting lamp, the atmosphere lamp, the stereo set, camera and microphone, the limitation that common eye-protecting lamp only has the illumination function has been broken, the application function of eye-protecting lamp has been enriched, user's different user demands have further been satisfied, user experience has been promoted.
In one implementation, the functional module corresponding to the first instruction is an illuminating lamp;
controlling a functional module corresponding to the first instruction according to the first instruction, comprising:
determining the self-dynamic light mode according to the first instruction;
in the automatic sensitization mode, acquiring a first brightness value and an environment brightness value of an illuminating lamp, wherein the first brightness value is the brightness value of the illuminating lamp at the current moment;
determining a target brightness value according to the environment brightness value;
and adjusting the first brightness value according to the target brightness value.
In one embodiment, determining the target brightness value according to the ambient brightness value includes: when the environment brightness value is smaller than a preset first threshold value, determining that the target brightness value is the first threshold value; and when the environment brightness value is larger than a preset second threshold value, determining that the target brightness value is the second threshold value, wherein the first threshold value is smaller than the second threshold value.
In one implementation, the functional module corresponding to the first instruction is an atmosphere lamp;
controlling a functional module corresponding to the first instruction according to the first instruction, comprising:
determining to be an atmosphere light audio rhythm mode according to a first instruction;
acquiring audio output by a host under an atmosphere lamp audio rhythm mode;
and driving the atmosphere lamp to emit light according to the decibel value corresponding to the audio frequency.
In one implementation, controlling a functional module corresponding to the first instruction according to the first instruction further includes:
determining to be an atmosphere lamp video rhythm mode according to a first instruction;
acquiring a first video picture in an atmosphere lamp video rhythm mode, wherein the first video picture is image data created according to picture sharing displayed by a host;
and driving the atmosphere lamp corresponding to the main tone of the first video picture to emit light according to the first video picture.
In one implementation, the host and eye-protection lamp communicate via the USB-HID protocol.
In one embodiment, the eye-protection lamp is wirelessly connected to the controller, and the method further comprises:
receiving a second instruction sent by the controller, wherein the second instruction is determined by the controller according to user operation;
and controlling the functional module corresponding to the second instruction according to the second instruction.
In a second aspect, embodiments of the present application provide an eye-protection lamp, including: a processor and a memory, the memory for storing a computer program, the processor for invoking and running the computer program from the memory such that the eye-protection lamp is configured to perform the steps performed by the eye-protection lamp of the first aspect or any of the first aspects.
In one implementation, the eye-protection light includes a plurality of functional modules including a light, an atmosphere light, a sound, a camera, and a microphone.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer program product includes: computer program code which, when executed by a computer, causes the computer to perform the method of the first aspect or any one of the first aspects.
In a fourth aspect, embodiments of the present application provide a computer program product, which, when run on a terminal device, causes the terminal device to perform the method of any one of the first aspect.
It is understood that the beneficial effects of the second to fourth aspects can be seen from the description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic structural view of an eye-protection lamp according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart illustrating a control method for an eye-protection lamp according to an embodiment of the present disclosure;
fig. 3 is a schematic view of an application scenario for controlling an eye-protection lamp and a sound device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a controller corresponding to an eye-protection lamp according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an eye-protection lamp according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
For many users, such as office workers and college students, our work and study life are increasingly unable to leave the terminal device, and when the terminal device is used for work and study life, the color temperature and the brightness emitted by the display screen of the terminal device when different contents are displayed are continuously changed, and the eyes of the users are damaged by the over-bright or over-dark of the ambient light, so that the visual fatigue is caused.
In order to reduce the damage to eyes when the terminal equipment is used as far as possible, the eye protection lamp with the eye protection function is clamped on the display screen of the terminal equipment, but the common eye protection lamp is single in function and single in control method, the color temperature and the brightness of the eye protection lamp are adjusted by a user in a mode of manually clicking related keys, the adjustment mode is inconvenient for the user to use, and the user experience is poor.
In order to solve the problems that when a user uses an eye-protecting lamp, the eye-protecting lamp is single in function, the control method is single, the user is inconvenient to use, and the user experience is poor, in the control method of the eye-protecting lamp provided by the embodiment of the application, the eye-protecting lamp controls the functional module corresponding to the first instruction according to the received different first instructions sent by the host. When the eye-protecting lamp includes the light, the atmosphere lamp, the stereo set, during the above-mentioned a plurality of functional modules of camera and microphone, the eye-protecting lamp is through the different first instruction that receives the host computer and send, in order to realize the light in to the eye-protecting lamp, the atmosphere lamp, the stereo set, camera and microphone are controlled, made things convenient for the user to use the eye-protecting lamp, the light has been integrated in this eye-protecting lamp, the atmosphere lamp, the stereo set, camera and microphone, the limitation that common eye-protecting lamp only has the illumination function has been broken, the application function of eye-protecting lamp has been enriched, user experience has been promoted.
Referring to fig. 1, a schematic structural diagram of an eye-protection lamp provided in an embodiment of the present disclosure is shown, and referring to fig. 1, a control method of an eye-protection lamp provided in an embodiment of the present disclosure is applied to the eye-protection lamp in fig. 1, where the eye-protection lamp includes a plurality of functional modules, where the plurality of functional modules include an illumination lamp, an atmosphere lamp, a sound, a camera, and a microphone, so that the function of the eye-protection lamp is no longer limited to an illumination function.
It should be understood that the specific structural design of the eye-protecting lamp can be designed according to different practical application scenes, so that the eye-protecting lamp can be applied to different terminal devices, wherein according to different practical application scenes, the terminal devices can be mobile terminal devices such as a smart phone, a tablet personal computer and a camera, and can also be terminal devices capable of performing data interaction with an illuminating lamp such as a desktop computer, a robot and a server.
The eye-protecting lamp is arranged on the display and is in communication connection with a host of the display. In practical application, the eye protection lamp can be fixed on the terminal equipment in a clamping mode and the like.
The utility model provides two kinds of control methods to eye-protecting lamp in this application, one is that eye-protecting lamp receives the first instruction that the host Computer sent, controls a plurality of functional modules of eye-protecting lamp according to first instruction, realizes the control to eye-protecting lamp through installing the control software that corresponds with eye-protecting lamp at Personal Computer (PC) promptly. The other type is that the eye-protecting lamp receives a second instruction sent by the controller, and the plurality of functional modules of the eye-protecting lamp are controlled according to the second instruction, namely the controller is used for controlling the eye-protecting lamp.
Illustratively, when a user uses the eye-protecting lamp on a PC, the eye-protecting lamp can be connected to an Interface of a host corresponding to the PC in a wired manner, wherein the wired manner can be that a Universal Serial Bus Type-C (USB Type-C) data line is used to connect the eye-protecting lamp and the PC, it is not difficult to understand that the USB Type-C data line is a Type-C line used to implement communication between the eye-protecting lamp and the PC, a USB communication protocol is arranged in the Type-C line, and the host of the PC implements communication with the eye-protecting lamp through a Universal Serial Bus-Human Interface Device (USB-HID) protocol.
Of course, in other possible embodiments, the bluetooth module may be disposed in the eye-protection lamp to implement a wireless communication function between the eye-protection lamp and other terminal devices, which is not limited in this application.
It is worth mentioning that in practical application of the control method of the eye-protection lamp, the host corresponding to the PC realizes the control of the eye-protection lamp based on the self-defined USB-HID control instruction. The USB-HID control instruction is a set of different control instructions which are respectively set for a plurality of functional modules of the eye protection lamp.
The technical solution of the present application will be described in detail below by taking an example of implementing control of an eye-protection lamp by installing control software corresponding to the eye-protection lamp on a PC. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
Fig. 2 is a schematic flow chart of a control method of an eye-protection lamp according to an embodiment of the present disclosure, and referring to fig. 2, the method includes the following steps.
S101, receiving a first instruction sent by a host, wherein the first instruction is determined by the host according to user operation.
The first instruction is an instruction sent by the host computer to the eye-protecting lamp in response to different operations of a user. Different operations of the user can be based on application programs, namely PC software, which are installed on a PC and can control the eye-protection lamp, namely the PC software is control software corresponding to the eye-protection lamp. In actual use, the operation function on the PC software corresponds to a self-defined USB-HID control instruction, and the control of a plurality of functions in the eye-protecting lamp can be realized.
And S102, controlling a functional module corresponding to the first instruction according to the first instruction.
It should be appreciated that control of a plurality of different functions in the eye-protection lamp may be achieved by different first commands.
In this application embodiment, a plurality of functional module of eye-protecting lamp include light, atmosphere lamp, stereo set, camera and microphone, consequently, can realize according to the first instruction of difference that the colour temperature of light, luminance and automatic sensitization control function, to the audio rhythm of atmosphere lamp, video rhythm control function, to the volume control of stereo set and to the on-off control function of camera/microphone at least one.
Referring to fig. 3, in an application scenario diagram of an eye-protection lamp and a sound control provided by an embodiment of the present application, referring to fig. 3, in an actual use process, color temperature control of an illumination lamp in the eye-protection lamp is implemented by adjusting a ratio between warm light and cold light, that is, a user may input a corresponding color temperature adjustment value to implement color temperature control of the illumination lamp under a condition that the user selects both a warm light option and a cold light option in a PC software interface, and it is not difficult to understand that a manner of inputting the color temperature adjustment value includes, but is not limited to, that the user adjusts the ratio between the warm light and the cold light by dragging a slider.
For example, when a user selects both a warm light option and a cold light option in a PC software interface, drags the slider to input a corresponding color temperature adjustment value, generates a corresponding color temperature control instruction and sends the color temperature control instruction to the eye-protection lamp, and the eye-protection lamp correspondingly adjusts the color temperature of the illumination lamp according to the received color temperature control instruction.
Similarly, the brightness control of the illumination lamp in the eye-protection lamp may also be based on the brightness value input by the user in the PC software interface to implement the brightness control function, see fig. 3, the manner of inputting the brightness value includes, but is not limited to, the manner of dragging the slider bar, wherein the slider bar is at different positions to represent the ratio between the minimum value and the maximum value of the input brightness value. After a user drags the sliding strip in the PC software interface to input a corresponding brightness value, a corresponding brightness control instruction is generated and sent to the eye-protection lamp, and the eye-protection lamp correspondingly adjusts the brightness of the illuminating lamp according to the received brightness control instruction.
In order to improve the intelligent level of the eye-protection lamp, the brightness of the illuminating lamp can be dynamically adjusted according to the intensity of different light rays in the surrounding environment. In one implementation, the functional module corresponding to the first instruction is an illuminating lamp; controlling a functional module corresponding to the first instruction according to the first instruction, comprising: determining the self-dynamic light mode according to the first instruction; in the automatic sensitization mode, acquiring a first brightness value and an environment brightness value of an illuminating lamp, wherein the first brightness value is the brightness value of the illuminating lamp at the current moment; determining a target brightness value according to the environment brightness value; and adjusting the first brightness value according to the target brightness value.
In practical application, in order to realize the function of automatically adjusting the brightness of the illumination lamp in the eye-protection lamp, optionally, in the PC software, a user may select an automatic light sensing mode according to application requirements. That is, under the automatic light sensing mode operation selected by the user, a first brightness value and an environment brightness value of the lighting lamp at the current moment are obtained, then a target brightness value is determined according to the environment brightness value, and the first brightness value of the lighting lamp is adjusted in a manner of dynamically increasing or decreasing the first brightness value.
It is understood that the first brightness value of the illumination lamp after dynamic adjustment is ideally equal to the target brightness value.
By way of example and not limitation, assuming that a light sensation sensor in the illumination lamp acquires a brightness value of the environment around the illumination lamp of 30 and a brightness value of the eye-protecting lamp at the current moment of 20, that is, according to the environment brightness value, it can be determined that the target brightness value is 30, the first brightness value is 20, and the brightness value of the environment around the illumination lamp is higher, and the first brightness value is adjusted to 30 by increasing the first brightness value. On the contrary, if the brightness value of the illumination lamp at the current time is 40, the first brightness value of the illumination lamp needs to be adjusted to 30 by decreasing the first brightness value in a case that the brightness value of the environment around the illumination lamp is kept to be 30, which indicates that the first brightness value of the illumination lamp is too high.
According to different practical applications, in other possible embodiments, the first brightness value of the illumination lamp after being dynamically adjusted may also be a brightness value matching the target brightness value, that is, the first brightness value may be adjusted to be around the target brightness value according to a relationship between the brightness value of the illumination lamp and a brightness value of light that can be received by human eyes.
Based on the above example, as another example, the brightness value range of the illumination lamp is 0 to 100, the brightness value range of the light that can be received by human eyes is 20 to 80, and assuming that the obtained brightness value of the environment around the illumination lamp is 19, and the obtained brightness value of the eye-protection lamp at the current moment is 10, that is, the target brightness value can be determined to be 19 according to the environment brightness value, the first brightness value is 10, and the brightness value of the environment around the illumination lamp is higher, and the first brightness value is adjusted to be 20 by increasing the first brightness value. Therefore, the adjusted first brightness value is close to the target brightness value, and the comfort of eyes is improved.
In the in-service use process, no matter the ambient brightness value is too high, the luminance value of light is crossed lowly, still the ambient brightness value is crossed lowly, the luminance value of light is too high, if not the luminance value of adjustment light in time, then can be because the luminance value of light is crossed lowly or too high makes eyes produce visual fatigue, and then aggravate the harm to eyes. Under the automatic sensitization mode, the luminance of light in the automatically regulated eye-protecting lamp to the luminance that makes the light changes along with the change of surrounding environment light, can make like this that the user learns under the light of preferred, work and life, improves user experience.
In order to ensure that the brightness value output by the illuminating lamp is effectively adjusted in the automatic photosensitive mode and prolong the service life of the illuminating lamp, a corresponding threshold value is set for the brightness value of the surrounding environment acquired by the illuminating lamp. In one implementation, determining the target brightness value according to the ambient brightness value includes: when the environment brightness value is smaller than a preset first threshold value, determining that the target brightness value is the first threshold value; and when the environment brightness value is larger than a preset second threshold value, determining that the target brightness value is the second threshold value, wherein the first threshold value is smaller than the second threshold value.
For example, assuming that the first threshold is 0 and the second threshold is 100, that is, the maximum brightness value in the surrounding environment that can be obtained by the illumination lamp is 100 and the minimum brightness value is 0, if the brightness value in the surrounding environment of the illumination lamp obtained by the light sensation sensor in the illumination lamp exceeds the maximum brightness value of 100 when the illumination lamp is actually used, the target value is determined to be 100; otherwise, if the acquired brightness value of the surrounding environment of the illuminating lamp does not exceed the minimum brightness value 0, the target value is determined to be 0, and then the brightness of the illuminating lamp is adaptively adjusted according to the first brightness value of the illuminating lamp at the current moment.
In order to improve the diversity of different functions of the eye-protecting lamp in daily life, learning and work and improve user experience, optionally, the function module corresponding to the first instruction further comprises an atmosphere lamp, and the atmosphere lamp can drive each lamp bead in the atmosphere lamp to be regularly and rhythmically turned on according to audio and video played by a user on a PC (personal computer) so as to realize different lamp effects.
In one implementation, controlling a functional module corresponding to a first instruction according to the first instruction includes: determining to be an atmosphere light audio rhythm mode according to a first instruction; acquiring audio output by a host under an atmosphere lamp audio rhythm mode; and driving the atmosphere lamp to emit light according to the decibel value corresponding to the audio frequency.
That is, after audio data output by the PC host is acquired; and processing the acquired audio data to obtain a decibel value corresponding to the audio data, wherein the decibel value is used for driving the lamp beads to emit light according to the mapping relation between the audio sound channel and the number of the driving lamp beads.
In practical application, a corresponding driving chip (for example, a CX32L003 chip) is arranged in the atmosphere lamp, the chip determines an audio channel of audio data being played by acquiring an audio list corresponding to the audio data being played on a PC host in communication connection with the atmosphere lamp, copies the audio data being played in the audio channel, pre-processes the copied audio data, sets the pre-processed audio data as shared data, facilitates other tasks of the PC to be invoked, splits different channels of the processed audio data, determines a decibel value corresponding to the audio data, and finally drives the lamp beads corresponding to the decibel values of the atmosphere lamp and the audio data to emit light according to a mapping relationship between the decibel value and the lighting number of the lamp beads in the atmosphere lamp.
Illustratively, assuming that the value range of a decibel value corresponding to preset audio data is 0-100, correspondingly, 100 beads capable of emitting light are arranged in the atmosphere lamp, and when the decibel value corresponding to actually acquired audio data is 10, the 10 beads are driven to emit light. The decibel values corresponding to the audio data at different moments can be obtained by obtaining the audio data output at different moments, and different numbers of lamp beads are driven to be lightened so as to realize different lamp effects.
It is easy to understand that different light effects can be realized according to different video pictures played on the PC, atmosphere creation can be accelerated, and user immersive experience is improved. In one implementation, controlling a functional module corresponding to the first instruction according to the first instruction further includes: determining to be an atmosphere lamp video rhythm mode according to a first instruction; acquiring a first video picture in an atmosphere lamp video rhythm mode, wherein the first video picture is image data created according to picture sharing displayed by a host; and driving the atmosphere lamp corresponding to the main tone of the first video picture to emit light according to the first video picture.
According to actual tests, in order to effectively ensure that after the eye protection lamp is in communication connection with a host of a display, the normal playing of a video picture on the display of the PC and the stable execution of various operations by an input device on the PC in the display are realized, in the application, a first video picture is obtained by creating a virtual screen with the same size as a display picture in the display and then obtaining the video picture to be displayed on the display in a sharing manner.
After the first video picture is obtained, traversing each pixel in the first video picture to determine the corresponding dominant hue of the first video picture, and correspondingly driving the light beads, which have the same color as the dominant hue of the first video picture, in the atmosphere lamp to emit light according to the dominant hue, so as to realize different lamp effects.
Therefore, in application scenes of entertainment and relaxation of users such as watching movies and playing games, the atmosphere lamp realizes different lamp effects according to different video pictures, is beneficial to quickly setting off light and comfortable atmosphere, and plays the roles of relieving fatigue and relaxing mood.
The common PC can meet the basic application requirements of users, but if the users want to use the common PC to perform the functions of audio playing, video call or video conference and the like, the common PC needs to be replaced by a notebook computer or other terminal equipment provided with a sound box, a camera and a microphone, so that the working efficiency of the users is greatly reduced. In order to meet the requirement of practical application, optionally, the functional module corresponding to the first instruction in this embodiment of the application further includes a sound device, a camera, and a microphone.
When a plurality of functional modules of eye-protecting lamp still include stereo set, camera and microphone, then can also realize the volume control to the stereo set and at least one in the switch control function to camera/microphone according to the first instruction of difference.
The volume control of the sound in the eye-protection lamp refers to adjusting the volume of audio data output by the sound in the eye-protection lamp, referring to fig. 3, the volume value input by a user in a PC software interface can be used for adjusting the volume of the sound in the eye-protection lamp, and the mode of inputting the volume value includes but is not limited to a mode of dragging a sliding strip. After a user drags the sliding strip in the PC software interface to the corresponding volume value, a corresponding volume control instruction is generated and sent to the eye-protection lamp, and the eye-protection lamp correspondingly adjusts the volume of the sound according to the received volume adjusting instruction.
Wherein the on/off control of the camera is adjusted based on an on/off option selected by the user in the PC software interface. And when a user clicks the on/off option in the PC software interface, generating a corresponding on/off command of the camera and sending the command to the eye-protection lamp, and the eye-protection lamp correspondingly turns on/off the camera according to the received on/off command.
Likewise, the on/off control of the microphone enables adjustment based on the on/off option selected by the user in the PC software interface. And after a user clicks the on/off option in the PC software interface, generating a corresponding on/off instruction of the microphone and sending the instruction to the eye-protection lamp, and turning on/off the sound pickup function of the microphone by the eye-protection lamp according to the received on/off instruction.
It is worth mentioning that since the on/off control of the camera by the PC software is similar to the on/off control of the microphone by the PC software, the same on/off option can be set while controlling the on/off functions of the camera and the microphone by the PC software. Of course, different on/off options may be set for different practical application scenarios to control the on/off functions of the camera and/or the microphone, which is not limited in this application.
In an embodiment of the application, the host and the eye protection lamp communicate via the USB-HID protocol. Based on different communication protocols, different communication instructions can be customized for different functions of the eye-protection lamp, so that different controls of multiple functions of the eye-protection lamp can be realized through PC software. It will be appreciated that the use of USB-HID protocol communication facilitates the manufacture of eye-protection lamps. The communication protocol used between the host and the eye-protection lamp is not limited in any way by the present application.
In order to enrich the control manner of the eye-protection lamp, in one implementation, as shown in fig. 4, a schematic structural diagram of a controller corresponding to the eye-protection lamp provided in the embodiment of the present application is provided, the eye-protection lamp is wirelessly connected to the controller, and the method further includes: receiving a second instruction sent by the controller, wherein the second instruction is determined by the controller according to user operation; and controlling the functional module corresponding to the second instruction according to the second instruction.
The specific steps of implementing the method for controlling the eye-protecting lamp by using the controller are the same as the steps of implementing the method for controlling the eye-protecting lamp by installing the control software corresponding to the eye-protecting lamp on the PC, and the detailed description is omitted here.
Referring to fig. 4, optionally, the controller controls the eye-protecting lamp by radio frequency. Of course, the communication connection between the controller and the eye-protection lamp may be realized by other manners, and the present application is not limited in this respect.
When the controller is used for controlling the eye-protection lamp in practice, a user can realize different controls on a plurality of functional modules in the eye-protection lamp through different operations such as clicking, rotating or long pressing.
Illustratively, the controller may include keys 1, 2, key3 and key4 as shown in fig. 4, wherein the user may decrease the volume of the audio output in the eye-protection lamp by clicking on key1, and the user may increase the volume of the audio output in the eye-protection lamp by clicking on key 2; the user can turn on or off the atmosphere lamp by clicking the key3 for different time lengths, turn on or off the illuminating lamp by clicking the key4, turn up or turn down the brightness of the illuminating lamp by rotating the key4 in different directions, and adjust the color temperature of the illuminating lamp by clicking and rotating the key 4.
It will be appreciated that indicator lights may also be provided on the controller, with different lighting states of the indicator lights or with the indicator lights displaying different colors for illustrating the power level of the controller or different functions being performed.
For example, assuming that the controller is in an idle state, a user may click or press any one of keys 1, 2, 3 or 4 on the controller to enable the controller to be in an operating state, and when the controller is converted from the idle state to the operating state, the indicator light may display a red color to indicate that the controller is in the operating state; when the controller is converted from the working state to the idle state, the indicator light can display green to indicate that the controller is in the idle state. Of course, it is also possible to indicate that the controller is in different states by flashing the same color for different durations or times.
It should be noted that, in the embodiment of the present application, only a part of functions that can be realized by the controller is described, and according to different practical application requirements, different control modes can be customized to realize specific functions of the controller.
In the control method of the eye-protection lamp provided by the embodiment of the application, the eye-protection lamp controls the functional module corresponding to the first instruction according to the received different first instructions sent by the host. When the eye-protecting lamp includes the light, the atmosphere lamp, the stereo set, during the above-mentioned a plurality of functional modules of camera and microphone, the eye-protecting lamp is through the different first instruction that receives the host computer and send, in order to realize the light in to the eye-protecting lamp, the atmosphere lamp, the stereo set, camera and microphone are controlled, made things convenient for the user to use the eye-protecting lamp, the light has been integrated in this eye-protecting lamp, the atmosphere lamp, the stereo set, camera and microphone, the limitation that common eye-protecting lamp only has the illumination function has been broken, the application function of eye-protecting lamp has been enriched, user experience has been promoted.
In addition, this application still provides a method that uses the controller to control eye-protecting lamp, and the user can realize the control to eye-protecting lamp through PC software under the not enough condition of controller electric quantity, controls eye-protecting lamp through controller and application software like this, has richened eye-protecting lamp's control mode, and the user crowd who still is convenient for different ages, different mode uses this eye-protecting lamp, has further promoted user experience.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 5 shows a block diagram of the eye-protection lamp provided in the embodiment of the present application, which corresponds to the control method of the eye-protection lamp described in the above embodiment, and only the parts related to the embodiment of the present application are shown for convenience of description.
Referring to fig. 5, eye-protecting lamp 200 includes a plurality of functional modules, a processor 201, a memory 202, and a computer program 203 stored in memory 202 and executable on processor 201. The plurality of functional modules include an illumination lamp 204, an atmosphere lamp 205, a sound 206, a camera 208 and a microphone 207, that is, the illumination lamp 204, the atmosphere lamp 205, the sound 206, the camera 208 and the microphone 207 are respectively connected with the processing processor 201. The computer program 203 may be executed by the processor 201 to generate instructions, and the processor 201 may implement the steps in the above-described embodiment of the method for controlling an eye-protecting lamp according to the instructions. Alternatively, the processor 201 implements the above-described eye-protecting lamp control method when executing the computer program 203.
Illustratively, the computer program 203 may be divided into one or more modules/units, which are stored in the memory 202 and executed by the processor 201 to accomplish the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing specific functions that describe the execution of the computer program 203 in the eye-protecting lamp 200.
Those skilled in the art will appreciate that fig. 5 is merely exemplary of eye-protecting lamp 200 and does not constitute a limitation on eye-protecting lamp 200 and may include more or fewer components than shown, or some combination of components, or different components, e.g., eye-protecting lamp 200 may also include input-output devices, network access devices, buses, etc.
The Processor 201 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Memory 202 may be an internal storage unit of eye-protection lamp 200, such as a hard disk or memory of eye-protection lamp 200. The memory 202 may also be an external storage device of the eye-protecting lamp 200, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the eye-protecting lamp 200. Further, memory 202 may also include both an internal memory unit of eye-protecting lamp 200 and an external memory device. Memory 202 is used to store computer programs and other programs and data needed to protect eye lamp 200. The memory 202 may also be used to temporarily store data that has been output or is to be output.
The terminal device provided in this embodiment may execute the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method of the above-mentioned method embodiments.
The embodiment of the present application further provides a computer program product, which when running on a terminal device, enables the terminal device to implement the method of the above method embodiment when executed.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc.
Reference throughout this application to "one embodiment" or "some embodiments," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In the description of the present application, it is to be understood that the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
In addition, in the present application, unless otherwise explicitly specified or limited, the terms "connected," "connected," and the like are to be construed broadly, e.g., as meaning both mechanically and electrically; the terms may be directly connected or indirectly connected through an intermediate medium, and may be used for communicating between two elements or for interacting between two elements, unless otherwise specifically defined, and the specific meaning of the terms in the present application may be understood by those skilled in the art according to specific situations.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (10)
1. The control method of the eye-protection lamp is characterized in that the eye-protection lamp comprises a plurality of functional modules, the functional modules comprise an illuminating lamp, an atmosphere lamp, a sound box, a camera and a microphone, and the eye-protection lamp is arranged on a display and is in communication connection with a host of the display; the method comprises the following steps:
receiving a first instruction sent by the host, wherein the first instruction is determined by the host according to user operation;
and controlling the functional module corresponding to the first instruction according to the first instruction.
2. The method according to claim 1, wherein the functional module corresponding to the first instruction is the illumination lamp;
the controlling the functional module corresponding to the first instruction according to the first instruction includes:
determining the first instruction as an automatic light sensing mode;
in the automatic sensitization mode, acquiring a first brightness value and an environment brightness value of the illuminating lamp, wherein the first brightness value is the brightness value of the illuminating lamp at the current moment;
determining a target brightness value according to the environment brightness value;
and adjusting the first brightness value according to the target brightness value.
3. The method of claim 2, wherein said determining a target brightness value from said ambient brightness value comprises: when the environment brightness value is smaller than a preset first threshold value, determining the target brightness value as the first threshold value; when the environment brightness value is larger than a preset second threshold value, determining that the target brightness value is the second threshold value, and the first threshold value is smaller than the second threshold value.
4. The method of claim 1, wherein the functional module corresponding to the first instruction is the ambience lamp;
the controlling the functional module corresponding to the first instruction according to the first instruction includes:
determining to be an atmosphere light audio rhythm mode according to the first instruction;
acquiring the audio output by the host under the atmosphere lamp audio rhythm mode;
and driving the atmosphere lamp to emit light according to the decibel value corresponding to the audio.
5. The method according to claim 4, wherein the controlling the functional module corresponding to the first instruction according to the first instruction further comprises:
determining to be an atmosphere lamp video rhythm mode according to the first instruction;
acquiring a first video picture in the atmosphere lamp video rhythm mode, wherein the first video picture is image data created according to picture sharing displayed by the host;
and driving the atmosphere lamp corresponding to the main tone of the first video picture to emit light according to the first video picture.
6. The method of claim 1, wherein the host and the eye-protection lamp communicate via a USB-HID protocol.
7. The method of claim 1, wherein the eye-protection lamp is wirelessly connected to the controller, the method further comprising:
receiving a second instruction sent by the controller, wherein the second instruction is determined by the controller according to user operation;
and controlling the functional module corresponding to the second instruction according to the second instruction.
8. An eye-protection lamp, wherein the eye-protection lamp is configured to perform the steps performed by the eye-protection lamp of any one of claims 1-7.
9. An eye-protection lamp according to claim 8, wherein the eye-protection lamp comprises a plurality of functional modules including a lighting lamp, an atmosphere lamp, a sound box, a camera and a microphone.
10. A computer-readable storage medium, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111559267.0A CN114355804A (en) | 2021-12-20 | 2021-12-20 | Control method of eye-protection lamp, eye-protection lamp and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111559267.0A CN114355804A (en) | 2021-12-20 | 2021-12-20 | Control method of eye-protection lamp, eye-protection lamp and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114355804A true CN114355804A (en) | 2022-04-15 |
Family
ID=81100415
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111559267.0A Pending CN114355804A (en) | 2021-12-20 | 2021-12-20 | Control method of eye-protection lamp, eye-protection lamp and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114355804A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105050246A (en) * | 2015-06-24 | 2015-11-11 | 上海卓易科技股份有限公司 | Method for adjusting light brightness by using mobile terminal and mobile terminal |
CN107079552A (en) * | 2014-10-16 | 2017-08-18 | “多乐宝”洪克和约赫海姆有限及两合公司 | Method and LED for manipulating LED |
CN109151381A (en) * | 2018-07-02 | 2019-01-04 | 上海万梦网络科技有限公司 | Intelligent desk lamp and intelligent desk lamp system |
US20190289695A1 (en) * | 2018-03-14 | 2019-09-19 | Boe Technology Group Co., Ltd. | Brightness adjustment device and eye protection lamp |
CN111479370A (en) * | 2020-03-31 | 2020-07-31 | Oppo广东移动通信有限公司 | Electronic equipment, control method of atmosphere lamp of electronic equipment and computer storage medium |
CN111947089A (en) * | 2020-09-17 | 2020-11-17 | 昆明理工大学 | Screen hanging lamp with atmosphere lamp |
CN214468250U (en) * | 2021-02-08 | 2021-10-22 | 东莞市实达光电仪器有限公司 | Intelligent dimming eye-protecting pendant lamp |
CN113613370A (en) * | 2021-08-30 | 2021-11-05 | 江苏惠通集团有限责任公司 | Atmosphere lamp control method and device, computer readable storage medium and terminal |
-
2021
- 2021-12-20 CN CN202111559267.0A patent/CN114355804A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107079552A (en) * | 2014-10-16 | 2017-08-18 | “多乐宝”洪克和约赫海姆有限及两合公司 | Method and LED for manipulating LED |
CN105050246A (en) * | 2015-06-24 | 2015-11-11 | 上海卓易科技股份有限公司 | Method for adjusting light brightness by using mobile terminal and mobile terminal |
US20190289695A1 (en) * | 2018-03-14 | 2019-09-19 | Boe Technology Group Co., Ltd. | Brightness adjustment device and eye protection lamp |
CN109151381A (en) * | 2018-07-02 | 2019-01-04 | 上海万梦网络科技有限公司 | Intelligent desk lamp and intelligent desk lamp system |
CN111479370A (en) * | 2020-03-31 | 2020-07-31 | Oppo广东移动通信有限公司 | Electronic equipment, control method of atmosphere lamp of electronic equipment and computer storage medium |
CN111947089A (en) * | 2020-09-17 | 2020-11-17 | 昆明理工大学 | Screen hanging lamp with atmosphere lamp |
CN214468250U (en) * | 2021-02-08 | 2021-10-22 | 东莞市实达光电仪器有限公司 | Intelligent dimming eye-protecting pendant lamp |
CN113613370A (en) * | 2021-08-30 | 2021-11-05 | 江苏惠通集团有限责任公司 | Atmosphere lamp control method and device, computer readable storage medium and terminal |
Non-Patent Citations (3)
Title |
---|
沙占友: "实用数字化测量技术", 30 September 1991, 国防工业出版社, pages: 130 - 133 * |
蒋倩;: "远离屏幕反光 米家显示器挂灯", 计算机与网络, no. 14, 26 July 2020 (2020-07-26), pages 31 * |
马卫星: "现代照明设计方法与应用", 31 March 2014, 北京理工大学出版社, pages: 48 - 50 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111869330B (en) | Rendering dynamic light scenes based on one or more light settings | |
EP3590312B1 (en) | Lighting script control | |
US20220116529A1 (en) | Light supplementing method for shooting pictures, smart tv and computer-readable storage medium | |
JP2013516655A (en) | Control of light source for color sequential image display | |
WO2016070621A1 (en) | Adaptive adjustment method and device for projector | |
CN110996477B (en) | Air conditioner lamp control method, computer device and computer readable storage medium | |
US9907143B2 (en) | Lighting control device, lighting system, and program | |
TWI516169B (en) | Video system and control method thereof | |
TW201346421A (en) | Projector with variable power consumption based on data received from removable module | |
WO2021160552A1 (en) | Associating another control action with a physical control if an entertainment mode is active | |
CN114355804A (en) | Control method of eye-protection lamp, eye-protection lamp and computer storage medium | |
WO2020165331A1 (en) | Determining light effects based on a light script and/or media content and light rendering properties of a display device | |
CN107578753B (en) | Mobile terminal, display screen brightness adjusting method and storage medium | |
CN105828501A (en) | Method and device for realizing light source state regulation through sound signals | |
CN110945970B (en) | Attention dependent distraction storing preferences for light states of light sources | |
EP3861835A1 (en) | Creating a combined image by sequentially turning on light sources | |
JP2014041359A (en) | Projection device, projection method and program | |
CN110989833B (en) | Control method, AR device and computer readable storage medium | |
WO2023098701A1 (en) | Projection device and projection display method therefor | |
WO2024119848A1 (en) | Eye protection method, display device, eye protection apparatus, and storage medium | |
JP6610635B2 (en) | Display control apparatus, display control method, and program | |
CN117012155A (en) | Display apparatus and control method | |
CN105228315A (en) | The flash unit of color changeable and color changing method, mobile device | |
CN117812789A (en) | Indoor illumination control system, method and control device based on Internet of things | |
JP2023168020A (en) | Projection device, control method, and program |
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 |