CN111246628A - Control method, device, equipment and storage medium for optical module indicator lamp - Google Patents

Control method, device, equipment and storage medium for optical module indicator lamp Download PDF

Info

Publication number
CN111246628A
CN111246628A CN202010095028.3A CN202010095028A CN111246628A CN 111246628 A CN111246628 A CN 111246628A CN 202010095028 A CN202010095028 A CN 202010095028A CN 111246628 A CN111246628 A CN 111246628A
Authority
CN
China
Prior art keywords
indicator lamp
pwm signal
light
optical module
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
CN202010095028.3A
Other languages
Chinese (zh)
Other versions
CN111246628B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010095028.3A priority Critical patent/CN111246628B/en
Publication of CN111246628A publication Critical patent/CN111246628A/en
Application granted granted Critical
Publication of CN111246628B publication Critical patent/CN111246628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/30Semiconductor lamps, e.g. solid state lamps [SSL] light emitting diodes [LED] or organic LED [OLED]

Landscapes

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

Abstract

The application discloses a method, a device, equipment and a storage medium for controlling an optical module indicator light, wherein the method comprises the following steps: firstly, lighting an indicator light of an optical module through a PWM signal logically output by a CPLD or an FPGA, wherein the PWM signal is at a high level; then, the duty ratio of the PWM signal is adjusted to respectively control the luminous brightness of LEDs with different colors in the optical module indicator lamp so as to achieve the color required to be synthesized by the optical module indicator lamp; when the PWM signal is at a low level, the LED afterglow is controlled by controlling the duration of the low level to control the light emitting brightness of the LEDs with different colors. The color adjustment of the indicator light of the optical module of the switch is realized through CPLD or FPGA logic programming and LED afterglow effect, the PWM signal is a color-adjusting signal source, namely, the color displayed by the indicator light is specifically determined by the PWM signal, the debugging range is wide, and the color adjustment can be continuously carried out.

Description

Control method, device, equipment and storage medium for optical module indicator lamp
Technical Field
The invention relates to the field of network security, in particular to a method, a device, equipment and a storage medium for controlling an optical module indicator light.
Background
With the development of information technology, communication security technology is developing towards more accurate and faster direction. The speed of the optical port of the switch is improved, and meanwhile, the compatibility of high and low speed performance is also brought, for example, a 25G optical module can be downward compatible with 10G transmission. The two transmission rates of the same interface require the light interface indicating lamp to be able to distinguish the two transmission rates, and the LINK and ACT states still need to be indicated.
Generally, a green indicator lamp and a red indicator lamp are used as the light port indicator lamp, when the 25G interface is operated by the optical module, the green indicator lamp is normally on to indicate a LINK state, and green flashing of the 25G interface indicates an ACT state. When the optical module operates on a 10G interface, the light color is normally bright to represent a LINK state, and the light color flickers to represent an ACT state. The CPU searches whether the light module is a bright red light corresponding to the light module. When the 10G interface operates, the yellow indicator lamp is a composite color generated by simultaneously lightening the green indicator lamp and the red indicator lamp, the actual composite color is determined by the brightness of green and red, and when the red is too bright or the green is too light, the orange-red composite color can be generated, so that the required yellow requirement cannot be met.
The current processing method is to adjust the composite color of the LED luminescence by adjusting the string resistance value of the LED, specifically, the string resistance value of the green LED can be adjusted to be small to make the green luminescence stronger, and the string resistance value of the red LED is adjusted to be large to make the red luminescence weaker, so that the composite color is lighter and closer to yellow. If the synthesized color is closer to orange, the green LED string resistance is adjusted to be larger to weaken the green light emission, and the red LED string resistance is adjusted to be smaller to strengthen the red light emission, so that the synthesized color is yellow and reddish-orange-like. However, the range of the resistance values of the green and red LED strings is limited, the string resistance values cannot be continuously debugged, the selectable resistance values are limited, and special resistance values cannot be found, so that the debugging process is very difficult, and the finally-called synthetic color does not necessarily meet the requirements.
Therefore, how to implement a method for continuously adjusting the color of the indicator light of the optical module of the switch is a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a device and a storage medium for controlling an optical module indicator, which can implement color adjustment of an optical module indicator of a switch through CPLD or FPGA logic programming, and have a wide debugging range and continuous adjustment. The specific scheme is as follows:
a method of controlling a light module indicator light, comprising:
the light module indicator lamp is lightened through a PWM signal logically output by a CPLD or an FPGA; when the PWM signal is at a high level, the light module indicator lamp is lightened;
respectively controlling the luminous brightness of different colors of LEDs in the optical module indicator lamp by adjusting the duty ratio of the PWM signal so as to achieve the color required to be synthesized by the optical module indicator lamp; when the PWM signal is at a low level, the LED afterglow is controlled by controlling the duration of the low level to control the light emitting brightness of the LEDs with different colors.
Preferably, in the method for controlling an indicator light of a light module according to an embodiment of the present invention, a frequency range of the PWM signal is 100Hz to 5000 Hz.
Preferably, in the method for controlling an indicator light of an optical module provided in the embodiment of the present invention, the lighting the indicator light of the optical module through a PWM signal output by a CPLD or an FPGA logic specifically includes:
decoding the serial lighting signal output by the exchange chip through the CPLD or the FPGA;
using the signal obtained by decoding as a lighting enabling signal of the optical module;
and the light module indicator lamp is directly lightened by the PWM signal which is logically output by the CPLD or the FPGA and is controlled by the lighting enabling signal.
Preferably, in the method for controlling an optical module indicator provided in an embodiment of the present invention, a normally on LINK state or an ACT blinking state of the optical module indicator is controlled by the lighting enable signal.
Preferably, in the method for controlling an indicator light of an optical module provided in the embodiment of the present invention, when the indicator light of the optical module is in an ACT blinking state, the lighting enable signal is a square wave signal;
and enabling the LED lighting switch when the square wave signal is at a high level, and forbidding the LED lighting switch when the square wave signal is at a low level.
Preferably, in the control method of the light module indicator provided in the embodiment of the present invention, when the color to be synthesized by the light module indicator is yellow, the duty ratio of the PWM signal corresponding to the red LED is smaller than the duty ratio of the PWM signal corresponding to the green LED;
when the color required to be synthesized by the light module indicator lamp is orange, the duty ratio of the PWM signal corresponding to the red LED is larger than that of the PWM signal corresponding to the green LED.
The embodiment of the invention also provides a control device of the optical module indicator lamp, which comprises the following components:
the indicator lamp lighting module is used for lighting the indicator lamp of the optical module through a PWM signal logically output by a CPLD or an FPGA; when the PWM signal is at a high level, the light module indicator lamp is lightened;
the luminous brightness control module is used for respectively controlling the luminous brightness of LEDs with different colors in the optical module indicator lamp by adjusting the duty ratio of the PWM signal so as to achieve the color required to be synthesized by the optical module indicator lamp; when the PWM signal is at a low level, the LED afterglow is controlled by controlling the duration of the low level to control the light emitting brightness of the LEDs with different colors.
The embodiment of the invention also provides a control device of the light module indicator lamp, which comprises a processor and a memory, wherein the control method of the light module indicator lamp provided by the embodiment of the invention is realized when the processor executes the computer program stored in the memory.
The embodiment of the present invention further provides a computer-readable storage medium for storing a computer program, where the computer program, when executed by a processor, implements the method for controlling the light module indicator lamp provided in the embodiment of the present invention.
It can be seen from the above technical solutions that, the method, apparatus, device and storage medium for controlling an indicator light of an optical module provided by the present invention includes: firstly, lighting an indicator light of an optical module through a PWM signal logically output by a CPLD or an FPGA; when the PWM signal is at a high level, the light module indicator lamp is lightened; then, the duty ratio of the PWM signal is adjusted to respectively control the luminous brightness of LEDs with different colors in the optical module indicator lamp so as to achieve the color required to be synthesized by the optical module indicator lamp; when the PWM signal is at a low level, the LED afterglow is controlled by controlling the duration of the low level to control the light emitting brightness of the LEDs with different colors.
The invention relates to an optical module indicator lamp which is finally lightened through a PWM signal logically output by a CPLD or an FPGA, wherein the PWM signal is at a high level, the luminous brightness of LEDs with different colors in the optical module indicator lamp is controlled by adjusting the duty ratio of the PWM signal, when the PWM signal is at a low level, the LED afterglow is controlled by controlling the duration of the low level so as to control the luminous brightness of the LEDs with different colors, and further the adjustment of the required synthesized color is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for controlling an indicator light of a light module according to an embodiment of the present invention;
fig. 2 is a specific flowchart of a method for controlling an indicator light of a light module according to an embodiment of the present invention;
fig. 3 is a relationship schematic diagram of controlling the color of an indicator light of an optical module through a CPLD according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a control method of an optical module indicator light, which comprises the following steps as shown in figure 1:
s101, lighting an indicator light of an optical module through a PWM signal logically output by a CPLD or an FPGA; when the PWM signal is at a high level, the light module indicator lamp is lightened;
s102, respectively controlling the light emitting brightness of LEDs with different colors in the light module indicator lamp by adjusting the duty ratio of the PWM signal so as to achieve the color required to be synthesized by the light module indicator lamp; when the PWM signal is at a low level, the LED afterglow is controlled by controlling the duration of the low level to control the light emitting brightness of the LEDs with different colors. It should be noted that the LEDs with different colors in the optical module indicator lamp may include a red LED and a green LED, when the composite color of the optical module indicator lamp is determined by the red LED and the green LED, by adjusting the duty ratio of the PWM signal corresponding to the red LED and adjusting the duty ratio of the PWM signal corresponding to the green LED, the luminance of the red LED and the luminance of the green LED may change correspondingly, and the obtained composite color may also change accordingly, so that only the required color needs to be adjusted.
In the method for controlling the light module indicator lamp provided by the embodiment of the invention, the light module indicator lamp is finally turned on through a PWM signal logically output by a CPLD or an FPGA, at this time, the PWM signal is at a high level, the light emission luminance of LEDs of different colors in the light module indicator lamp is controlled by adjusting the duty ratio of the PWM signal, when the PWM signal is at a low level, the afterglow of the LEDs is controlled by controlling the duration of the low level to control the light emission luminance of the LEDs of different colors, thereby realizing the adjustment of a desired composite color.
It should be understood that the afterglow effect of the LED is that the LED does not go off immediately after being powered off, but gradually decreases the brightness until the LED goes off completely, and the afterglow duration of the LED varies according to different materials. In practical application, the LED afterglow effect is widely used on an LED broken code screen and an LED dot matrix screen, and LED points are quickly refreshed to dynamically light the broken code screen and the LED dot matrix screen through the afterglow effect. The LED color lamp just utilizes the principle of LED afterglow effect to carry out lighting and color modulation through the PWM signal. Specifically, when the PWM signal is at a high level, the LED is turned on, and when the PWM signal is at a low level, the LED continues to emit light due to the afterglow effect, and the duration of the PWM at the low level is controlled to control the light emitting brightness of the LED, for example: if the time length of the PWM low level is longer, the luminance of the corresponding LED will be darker, and if the time length of the PWM low level is shorter, the luminance of the corresponding LED will be brighter, so that the durations of the different PWM low levels can be controlled respectively to control the afterglow of the LEDs so as to control the luminance of the corresponding green LED and red LED respectively, and finally the purpose of synthesizing the color is achieved.
It should be noted that the frequency is the inverse ratio of the time period, the frequency can control the lighting time, the next LED needs to be lit before the afterglow disappears completely, otherwise, the flickering can be seen, that is, there should be no rapid flickering when lighting. Therefore, in practical implementation, in the control method of the light module indicator lamp provided by the embodiment of the present invention, since the afterglow duration of the LED is usually between 10ms and 200us, all the PWM signals determining to light the LED may have a frequency range of 100Hz to 5000 Hz. When the frequency is too low (less than 100Hz), human eyes can distinguish that the LED flashes quickly, and when the frequency is too high (more than 5000Hz), the LED does not have enough time to reduce the brightness and cannot achieve the purpose of adjusting the brightness of the LED. In practical application, the frequency of the PWM signal can be confirmed by selecting an optimal frequency value after testing according to the actual brightness of the light module indicator, but the optimal frequency value must be between 100Hz and 5000Hz, otherwise, flicker may occur or the purpose of adjusting the brightness of the LED may not be achieved. In addition, before adjusting the duty ratio of the PWM signal, the frequencies of the PWM signals corresponding to the LEDs with different colors are the same.
Further, in a specific implementation, in the method for controlling an optical module indicator provided in the embodiment of the present invention, as shown in fig. 2, the step S101 of lighting the optical module indicator through a PWM signal output by a CPLD or an FPGA logic may specifically include the following steps:
s201, decoding the serial lighting signals output by the exchange chip through a CPLD or an FPGA;
s202, using the decoded signal as a lighting enabling signal of the optical module;
and S203, directly lighting the light module indicator lamp through the PWM signal which is output by the lighting enable signal control CPLD or FPGA logic.
Specifically, in the lighting process of the optical module of the switch, the switching chip outputs a serial lighting signal, the CPLD or the FPGA decodes the serial lighting signal into a lighting enable signal (i.e., a lighting switch) and then directly controls the PWM signal to light, and at this time, the color of the LED of the optical module is determined by the LED serial resistance, the two LED colors being lit and the PWM signal.
In a specific implementation, in the method for controlling an optical module indicator lamp according to the embodiment of the present invention, a normally on LINK state or an ACT blinking state of the optical module indicator lamp is controlled by a lighting enable signal. That is, the invention takes the decoded signal of the CPLD or the FPGA as the lighting switch to control the PWM lighting to realize the indication of the normally-on LINK state and the ACT flicker state. When the optical module is in a LINK state, the LED switch is always in a high-level enabling lighting state, and the CPLD or the FPGA directly lights the LED through a PWM signal.
Fig. 3 shows an embodiment of controlling the color of the light module indicator light by a CPLD. The Switch sends a serial lighting signal through the LED _ I2C, the CPLD decodes the serial lighting signal, the decoded data can be used as a lighting enabling signal, and the brightness of the LED with which color is determined by the CPLD decoded data; it should be noted that the CPU has the highest control power, and the other controllers do not function when the CPU turns the light module indicator LED to red.
In specific implementation, in the control method of the optical module indicator light provided in the embodiment of the present invention, when the optical module indicator light is in an ACT blinking state, the lighting enable signal may be a square wave signal (blinking frequency may be 4 Hz); when the square wave signal is at high level, the LED lighting switch is enabled, and when the square wave signal is at low level, the LED lighting switch is disabled, namely, when the square wave signal is at high level, PWM lighting can be used for color mixing; and turning off the LED to be unlit at low level.
In specific implementation, in the control method of the light module indicator provided in the embodiment of the present invention, green, yellow, orange, red, and four colors are output according to the requirement of using a scene switch light module, yellow and orange can be implemented by RGB (Rad 0-255, green 0-255, Blue 0-255) color modulation principle, since an LED used by the switch does not include Blue, actually RGB (Rad 0-255, green 0-255, Blue 0) color modulation principle, red and green 0-255 light emission luminances are implemented by PWM duty ratios, green and red can be implemented only by enabling a green LED and a red LED respectively, and yellow is a composite color of green and red, when the color required to be synthesized by the light module indicator is yellow, the PWM signal is used as a color modulation signal source, and the light emission luminances of the red LED and the green LED are adjusted by adjusting the size of the PWM signal, specifically, the duty ratio of the PWM signal corresponding to the red LED may be smaller than the duty ratio of the PWM signal corresponding to the green LED, that is, the duty ratio of the PWM signal corresponding to the red LED is decreased (the low level time is long) to dim the red LED, and the duty ratio of the PWM signal corresponding to the green LED is increased (the low level time is short) to lighten the green LED relative to the red LED, so that the synthesized color is closer to yellow, and the design requirement is met. Similarly, when the color required to be synthesized by the light module indicator lamp is orange, the duty ratio of the PWM signal corresponding to the red LED may be greater than the duty ratio of the PWM signal corresponding to the green LED, that is, the duty ratio of the PWM signal corresponding to the red LED is increased (the low level time is short) to make the red LED brighter than the green LED, and the duty ratio of the PWM signal corresponding to the green LED is decreased (the low level time is long) to make the green LED darker, so that the synthesized color is closer to yellow, and the design requirement is met.
It should be noted that, several special colors can be set according to special requirements to represent different states, such as a 25G rate LINK green constant brightness and an ACT green flashing; LINK at 10G rate is normally bright yellow, and ACT flickers yellow; the 1000M rate is orange, normally bright, and ACT flashes orange.
Based on the same inventive concept, embodiments of the present invention further provide a control device for an optical module indicator, and as the principle of solving the problem of the control device for an optical module indicator is similar to the aforementioned control method for an optical module indicator, implementation of the control device for an optical module indicator can refer to implementation of the control method for an optical module indicator, and repeated details are omitted.
In specific implementation, the control device for an indicator light of a light module provided in an embodiment of the present invention specifically includes:
the indicator lamp lighting module is used for lighting the indicator lamp of the optical module through a PWM signal logically output by the CPLD or the FPGA; when the PWM signal is at a high level, the light module indicator lamp is lightened;
the light-emitting brightness control module is used for respectively controlling the light-emitting brightness of LEDs with different colors in the light module indicator lamp by adjusting the duty ratio of the PWM signal so as to achieve the color required to be synthesized by the light module indicator lamp; when the PWM signal is at a low level, the LED afterglow is controlled by controlling the duration of the low level to control the light emitting brightness of the LEDs with different colors.
In the control device for the light module indicator provided by the embodiment of the invention, the interaction between the two modules, the CPLD or FPGA logic programming and the LED afterglow effect can be used to specifically adjust the duty ratios of the PWM signals corresponding to the LEDs with different colors, thereby realizing the color adjustment effect of the light module indicator of the switch.
For more specific working processes of the modules, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Correspondingly, the embodiment of the invention also discloses a control device of the optical module indicator lamp, which comprises a processor and a memory; the method for controlling the light module indicator light disclosed in the foregoing embodiments is implemented when the processor executes the computer program stored in the memory.
For more specific processes of the above method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Further, the present invention also discloses a computer readable storage medium for storing a computer program; the computer program, when executed by a processor, implements the method of controlling a light module indicator light as disclosed above.
For more specific processes of the above method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the equipment and the storage medium disclosed by the embodiment correspond to the method disclosed by the embodiment, so that the description is relatively simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
To sum up, a method, an apparatus, a device and a storage medium for controlling an optical module indicator light provided in an embodiment of the present invention include: firstly, lighting an indicator light of an optical module through a PWM signal logically output by a CPLD or an FPGA; when the PWM signal is at a high level, the light module indicator lamp is lightened; then, the duty ratio of the PWM signal is adjusted to respectively control the luminous brightness of LEDs with different colors in the optical module indicator lamp so as to achieve the color required to be synthesized by the optical module indicator lamp; when the PWM signal is at a low level, the LED afterglow is controlled by controlling the duration of the low level to control the light emitting brightness of the LEDs with different colors. The light module indicator lamp is finally lightened through the PWM signal logically output by the CPLD or the FPGA through the steps, the PWM signal is at a high level at the moment, the luminous brightness of LEDs with different colors in the light module indicator lamp is controlled by adjusting the duty ratio of the PWM signal, when the PWM signal is at a low level, the LED continues to emit light by the afterglow effect, the luminous brightness of the LED can be controlled by controlling the duration of the PWM low level, and further the adjustment of the required synthesized color is realized, namely, the color adjustment of the light module indicator lamp of the switchboard is realized through the CPLD or FPGA logical programming and the LED afterglow effect, the debugging range is wide, and the color adjustment can be continuously adjusted.
Finally, it is further noted that, herein, relational terms are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method, the apparatus, the device and the storage medium for controlling the light module indicator provided by the present invention are described in detail above, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

1. A control method of a light module indicator lamp is characterized by comprising the following steps:
the light module indicator lamp is lightened through a PWM signal logically output by a CPLD or an FPGA; when the PWM signal is at a high level, the light module indicator lamp is lightened;
respectively controlling the luminous brightness of different colors of LEDs in the optical module indicator lamp by adjusting the duty ratio of the PWM signal so as to achieve the color required to be synthesized by the optical module indicator lamp; when the PWM signal is at a low level, the LED afterglow is controlled by controlling the duration of the low level to control the light emitting brightness of the LEDs with different colors.
2. The method of claim 1, wherein the frequency range of the PWM signal is 100Hz to 5000 Hz.
3. The method for controlling an indicator light of an optical module according to claim 2, wherein the lighting of the indicator light of the optical module is performed by a PWM signal output by a CPLD or FPGA logic, specifically comprising:
decoding the serial lighting signal output by the exchange chip through the CPLD or the FPGA;
using the signal obtained by decoding as a lighting enabling signal of the optical module;
and the light module indicator lamp is directly lightened by the PWM signal which is logically output by the CPLD or the FPGA and is controlled by the lighting enabling signal.
4. The method for controlling the light module indicator lamp according to claim 3, wherein a normally on LINK state or an ACT blinking state of the light module indicator lamp is controlled by the lighting enable signal.
5. The method for controlling the indicator light of the optical module according to claim 4, wherein when the indicator light of the optical module is in an ACT flashing state, the lighting enable signal is a square wave signal;
and enabling the LED lighting switch when the square wave signal is at a high level, and forbidding the LED lighting switch when the square wave signal is at a low level.
6. The method for controlling the light module indicator lamp according to claim 5, wherein when the color to be synthesized by the light module indicator lamp is yellow, the duty ratio of the PWM signal corresponding to the red LED is smaller than the duty ratio of the PWM signal corresponding to the green LED;
when the color required to be synthesized by the light module indicator lamp is orange, the duty ratio of the PWM signal corresponding to the red LED is larger than that of the PWM signal corresponding to the green LED.
7. A control device for a light module indicator light, comprising:
the indicator lamp lighting module is used for lighting the indicator lamp of the optical module through a PWM signal logically output by a CPLD or an FPGA; when the PWM signal is at a high level, the light module indicator lamp is lightened;
the luminous brightness control module is used for respectively controlling the luminous brightness of LEDs with different colors in the optical module indicator lamp by adjusting the duty ratio of the PWM signal so as to achieve the color required to be synthesized by the optical module indicator lamp; when the PWM signal is at a low level, the LED afterglow is controlled by controlling the duration of the low level to control the light emitting brightness of the LEDs with different colors.
8. A control device of a light module indicator lamp, characterized in comprising a processor and a memory, wherein the processor, when executing a computer program stored in the memory, implements a method of controlling a light module indicator lamp according to any of claims 1 to 6.
9. A computer-readable storage medium, characterized by storing a computer program, wherein the computer program, when being executed by a processor, implements the method of controlling a light module indicator lamp according to any one of claims 1 to 6.
CN202010095028.3A 2020-02-14 2020-02-14 Control method, device, equipment and storage medium for optical module indicator lamp Active CN111246628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010095028.3A CN111246628B (en) 2020-02-14 2020-02-14 Control method, device, equipment and storage medium for optical module indicator lamp

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010095028.3A CN111246628B (en) 2020-02-14 2020-02-14 Control method, device, equipment and storage medium for optical module indicator lamp

Publications (2)

Publication Number Publication Date
CN111246628A true CN111246628A (en) 2020-06-05
CN111246628B CN111246628B (en) 2022-07-08

Family

ID=70864467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010095028.3A Active CN111246628B (en) 2020-02-14 2020-02-14 Control method, device, equipment and storage medium for optical module indicator lamp

Country Status (1)

Country Link
CN (1) CN111246628B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800916A (en) * 2020-06-24 2020-10-20 苏州浪潮智能科技有限公司 System and method for calibrating colors of port lamps of data center switch
CN111918440A (en) * 2020-07-24 2020-11-10 音贝半导体有限公司 System for intelligence speech control LED bulb and domestic appliance
CN114499122A (en) * 2022-04-18 2022-05-13 深圳库马克科技有限公司 Power unit control circuit and control method thereof
CN115297589A (en) * 2022-08-31 2022-11-04 深圳市创凌智联科技有限公司 Method and device for displaying working state of router based on LED lamp display effect

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202059641U (en) * 2011-05-23 2011-11-30 青岛海信宽带多媒体技术有限公司 Indicating lamp control circuit and set-top-box with same
CN102307413A (en) * 2011-06-07 2012-01-04 青岛海信宽带多媒体技术有限公司 Method and device for displaying any color by using RGB (Red, Green and Blue) three-color indicating lamps
CN103402286A (en) * 2013-07-10 2013-11-20 杭州华三通信技术有限公司 Indicating lamp control method and FPGA (field programmable gate array)
CN105934022A (en) * 2014-08-02 2016-09-07 浙江明辉发光科技有限公司 Solar long-afterglow luminescence system and excitation method thereof
CN106028512A (en) * 2016-05-31 2016-10-12 浙江明辉发光科技有限公司 Control method for long-afterglow LED luminous system
US9614130B2 (en) * 2013-11-08 2017-04-04 Sharp Kabushiki Kaisha Light emitting device and illumination device
CN108601152A (en) * 2017-05-04 2018-09-28 方显峰 A kind of excitation control method of the long-persistence luminous system of electroexcitation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202059641U (en) * 2011-05-23 2011-11-30 青岛海信宽带多媒体技术有限公司 Indicating lamp control circuit and set-top-box with same
CN102307413A (en) * 2011-06-07 2012-01-04 青岛海信宽带多媒体技术有限公司 Method and device for displaying any color by using RGB (Red, Green and Blue) three-color indicating lamps
CN103402286A (en) * 2013-07-10 2013-11-20 杭州华三通信技术有限公司 Indicating lamp control method and FPGA (field programmable gate array)
US9614130B2 (en) * 2013-11-08 2017-04-04 Sharp Kabushiki Kaisha Light emitting device and illumination device
CN105934022A (en) * 2014-08-02 2016-09-07 浙江明辉发光科技有限公司 Solar long-afterglow luminescence system and excitation method thereof
CN106028512A (en) * 2016-05-31 2016-10-12 浙江明辉发光科技有限公司 Control method for long-afterglow LED luminous system
CN108601152A (en) * 2017-05-04 2018-09-28 方显峰 A kind of excitation control method of the long-persistence luminous system of electroexcitation

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800916A (en) * 2020-06-24 2020-10-20 苏州浪潮智能科技有限公司 System and method for calibrating colors of port lamps of data center switch
CN111918440A (en) * 2020-07-24 2020-11-10 音贝半导体有限公司 System for intelligence speech control LED bulb and domestic appliance
CN114499122A (en) * 2022-04-18 2022-05-13 深圳库马克科技有限公司 Power unit control circuit and control method thereof
CN114499122B (en) * 2022-04-18 2022-07-05 深圳库马克科技有限公司 Power unit control circuit and control method thereof
CN115297589A (en) * 2022-08-31 2022-11-04 深圳市创凌智联科技有限公司 Method and device for displaying working state of router based on LED lamp display effect

Also Published As

Publication number Publication date
CN111246628B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN111246628B (en) Control method, device, equipment and storage medium for optical module indicator lamp
CN105530721B (en) LED light-emitting control method, device and system
KR101369784B1 (en) Method and apparatus for the optical transmission of data
CN103945614B (en) Illuminator and drive circuit
US9510419B2 (en) Temperature adjusted dimming controller
TW200624706A (en) Illumination source, illumination system, and dimming control method
CN109121254A (en) Variable multicolor LED atmosphere lamp control system and method
CN100534256C (en) Respiration lamp controlling method and its device
CN111246617B (en) LED controller and LED control method
JP2000090702A (en) Stick light
CN113326029B (en) LED lamp brightness adjusting method, system and computer readable storage medium
WO2016088000A1 (en) Lighting unit with multiple light sources to emit functional light or dynamic lighting effect
CN106470513A (en) Illumination control method and device
CN106817805A (en) Indicate lamp control method and device
JP2001351788A (en) Light-generating apparatus device and its control method
KR101338685B1 (en) Apparatus and method for controlling mood lighting in vehicle
CN113759272A (en) Intelligent lamp band length detection method and device and intelligent lamp band
CN205179455U (en) Linear illumination lamps and lanterns
CN115413086A (en) T-PWM dimming method, T-PWM dimming circuit and intelligent lamp
CN115278979A (en) Light color-adjusting control method and device, product and lamp
CN107006099B (en) The synchronously control of the lighting apparatus of networking
CN211352562U (en) Scene interaction energy-saving type illuminating lamp
CN207652744U (en) Lighting apparatus with luminance modulation function and lighting system
JP2012066605A (en) Lighting dimming device for vehicle
CN108571665B (en) LED bulb and operation method thereof

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