CN111694716A - Method, device and equipment for controlling version lamp of server and storage medium - Google Patents
Method, device and equipment for controlling version lamp of server and storage medium Download PDFInfo
- Publication number
- CN111694716A CN111694716A CN202010523712.7A CN202010523712A CN111694716A CN 111694716 A CN111694716 A CN 111694716A CN 202010523712 A CN202010523712 A CN 202010523712A CN 111694716 A CN111694716 A CN 111694716A
- Authority
- CN
- China
- Prior art keywords
- lamp
- version
- signal
- server
- pulse signal
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000005281 excited state Effects 0.000 claims abstract description 46
- 230000003068 static effect Effects 0.000 claims abstract description 8
- 238000004590 computer program Methods 0.000 claims description 10
- 230000000630 rising effect Effects 0.000 claims description 7
- 230000008054 signal transmission Effects 0.000 claims description 5
- 238000000605 extraction Methods 0.000 claims description 4
- 238000013461 design Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 229910002056 binary alloy Inorganic materials 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 125000004122 cyclic group Chemical group 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/325—Display of status information by lamps or LED's
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/30—Driver circuits
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
- Selective Calling Equipment (AREA)
Abstract
The invention discloses a control method of a version lamp of a server, which comprises the steps of obtaining the version number of the server to be displayed; obtaining a control signal group according to the version number, wherein the control signal group comprises a plurality of lamp energizing signals arranged in a first sequence; receiving a modulation pulse signal, wherein the modulation pulse signal is a pulse signal which is continuously switched between an excited state and a static state according to a fixed frequency pulse signal; and according to the first sequence, sequentially sending a single lamp electrifying signal when the modulation pulse signal is in an excited state, finishing sending the control signal group, and controlling the version lamp of the server to be displayed to be on or off. The invention can control the sending time and duration of the lamp power-on signal only by a single modulation pulse signal, thereby reducing the number of required counters and simplifying the operation steps. The invention also provides a control device, equipment and a computer readable storage medium for the version lamp of the server, which have the advantages.
Description
Technical Field
The present invention relates to the field of server control, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for controlling a version lamp of a server.
Background
With the development of new internet technologies such as cloud computing, AI intelligence, big data and the like, high requirements are put forward on the number, performance, working time and the like of servers, and the management problem of large-scale servers is followed.
In order to ensure the normal operation of the server, indicate the current working state of the server, and facilitate the maintenance of monitoring personnel, version lamps are usually arranged on a server mainboard, wherein the version lamps are four or more led lamp groups arranged in a row on the server mainboard, are directly controlled by a Complex Programmable Logic Device (CPLD), and are used for feeding back the current CPLD version through flashing with a certain rule.
The current CPLD version lamp design mainly adopts a state machine design, and the state machine design is to divide version information into a plurality of flashing states. Then, starting from an idle state, switching between a single state and a single state, controlling the time for switching between each state by using a counter, wherein a designed frame is large, new states and counter control need to be added every time longer information is introduced, the execution steps are complex, the efficiency is low, how to simplify a control method of a version lamp, and how to improve the efficiency is a problem to be solved by the technical staff in the field.
Disclosure of Invention
The invention aims to provide a method, a device and equipment for controlling a version lamp of a server and a computer readable storage medium, so as to solve the problems of complicated control steps and low efficiency caused by the fact that a plurality of counters are required for controlling the version lamp in the prior art.
In order to solve the above technical problem, the present invention provides a method for controlling a version lamp of a server, including:
acquiring the version number of a server to be displayed;
obtaining a control signal group according to the version number, wherein the control signal group comprises a plurality of lamp energizing signals arranged in a first sequence;
receiving a modulation pulse signal, wherein the modulation pulse signal is a pulse signal which is continuously switched between an excited state and a static state according to a fixed frequency pulse signal;
and according to the first sequence, sequentially sending a single lamp electrifying signal when the modulation pulse signal is in an excited state, finishing sending the control signal group, and controlling the version lamp of the server to be displayed to be on or off.
Optionally, in the method for controlling a version lamp of a server, the sending a single lamp energizing signal when the modulated pulse signal is in an excited state according to the first sequence in turn, and the sending of the control signal group is specifically:
and according to the first sequence, sending a single lamp electrifying signal when the modulation pulse signal is in an excited state in sequence, and sending the control signal group in a circulating mode.
Optionally, in the method for controlling a version light of a server, the cyclically transmitting the control signal group further includes:
and after the sending of the single control signal group is finished, sending an interval control signal to enable the version lamp to be on or off according to the interval control signal, and reminding an operator that the version number of the server to be displayed is displayed completely.
Optionally, in the method for controlling a version lamp of a server, the sending a single lamp powering-on signal each time the modulated pulse signal is in an excited state is specifically:
and when the rising edge of the modulation pulse signal is received, starting to transmit the lamp energizing signal, and when the falling edge of the modulation pulse signal is received, stopping transmitting the lamp energizing signal.
A control apparatus of a version lamp of a server, comprising:
the acquisition module is used for acquiring the version number of the server to be displayed;
the sequence extraction module is used for obtaining a control signal group according to the version number, and the control signal group comprises a plurality of lamp energizing signals arranged in a first sequence;
the pulse receiving module is used for receiving a modulation pulse signal, wherein the modulation pulse signal is a pulse signal which is continuously switched between an excited state and a standing state according to a fixed frequency pulse signal;
and the signal sending module is used for sending a single lamp electrifying signal when the modulation pulse signal is in an excited state according to the first sequence, finishing sending the control signal group and controlling the version lamp of the server to be displayed to be on or off.
Optionally, in the control apparatus for a version lamp of a server, the signal sending module includes:
and the circulating unit is used for sequentially sending the single lamp energizing signal when the modulation pulse signal is in an excited state according to the first sequence, and circularly sending the control signal group.
Optionally, in the control apparatus for a version lamp of a server, the signal sending module further includes:
and the interval unit is used for sending interval control signals after the sending of the single control signal group is finished, so that the version lamp is turned on or off according to the interval control signals to remind an operator that the version number of the server to be displayed is displayed completely.
Optionally, in the control apparatus for a version lamp of a server, the signal sending module includes:
and the upper and lower edge judging unit is used for starting the sending of the lamp energizing signal when receiving the rising edge of the modulation pulse signal and stopping the sending of the lamp energizing signal when receiving the falling edge of the modulation pulse signal.
A control device of a version light of a server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for controlling a version light of a server as described in any one of the above when executing the computer program.
A computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of controlling a version light of a server as claimed in any one of the preceding claims.
The control method of the version lamp of the server provided by the invention comprises the steps of obtaining the version number of the server to be displayed; obtaining a control signal group according to the version number, wherein the control signal group comprises a plurality of lamp energizing signals arranged in a first sequence; receiving a modulation pulse signal, wherein the modulation pulse signal is a pulse signal which is continuously switched between an excited state and a static state according to a fixed frequency pulse signal; and according to the first sequence, sequentially sending a single lamp electrifying signal when the modulation pulse signal is in an excited state, finishing sending the control signal group, and controlling the version lamp of the server to be displayed to be on or off. According to the invention, the modulation pulse signal is used as the only counter of the version lamp, the switching time of the excited state and the standing state of the modulation pulse signal is edited by using the fixed-frequency pulse signal as the basis, and then the excited state of the modulation pulse signal is used as the emission time standard of the electrifying signal of a single lamp, so that the sending time and the duration of the electrifying signal of the lamp can be controlled by only using a single modulation pulse signal. The invention also provides a control device, equipment and a computer readable storage medium of the version lamp of the server with the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an embodiment of a method for controlling a version lamp of a server according to the present invention;
fig. 2 is a schematic flow chart of another embodiment of a method for controlling a version lamp of a server according to the present invention;
FIG. 3 is a flowchart illustrating a method for controlling a version light of a server according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an embodiment of a control device for a version lamp of a server according to the present invention;
fig. 5 is a waveform comparison diagram of a fixed-frequency pulse signal and a modulated pulse signal according to an embodiment of the method for controlling a version lamp of a server provided by the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The core of the present invention is to provide a method for controlling a version lamp of a server, a flowchart of one specific embodiment of which is shown in fig. 1, which is called a first specific embodiment, and includes:
s101: and acquiring the version number of the server to be displayed.
S102: and obtaining a control signal group according to the version number, wherein the control signal group comprises a plurality of lamp energizing signals arranged in a first sequence.
The version number of the server is mostly a character sequence composed of a plurality of sites, for example, "2.3.6", in this step, a plurality of lamp energizing signals respectively corresponding to "2", "3" and "6" arranged in the order of the first sequence (i.e., the order of 2 → 3 → 6) are obtained through the version number, and the plurality of lamp energizing signals constitute the control signal group.
S103: and receiving a modulation pulse signal, wherein the modulation pulse signal is a pulse signal which is continuously switched between an excited state and a static state according to a fixed frequency pulse signal.
It should be noted that this step (i.e. receiving the modulated pulse signal) may be performed before or after acquiring the version number of the server to be displayed, and has no influence on the effect of the present invention.
The fixed-frequency pulse is a square wave with fixed frequency, and a counter can be used to calculate the number of rising edges of the fixed-frequency pulse, so as to obtain a modulated pulse signal with freely controllable high-low level ratio.
S104: and according to the first sequence, sequentially sending a single lamp electrifying signal when the modulation pulse signal is in an excited state, finishing sending the control signal group, and controlling the version lamp of the server to be displayed to be on or off.
Wherein, whenever the modulated pulse signal is in an excited state, sending a single lamp energizing signal is specifically:
and when the rising edge of the modulation pulse signal is received, starting to send the lamp energizing signal, and when the falling edge of the modulation pulse signal is received, stopping sending the lamp energizing signal, namely, taking the high potential state of the modulation pulse signal as the excited state, and sending the lamp energizing signal in the whole process in the excited state, so that the version lamp is kept normally on according to the lamp energizing state. Of course, the low potential state of the modulated pulse signal can also be used as the excited state, and can be selected according to actual conditions.
In one embodiment, each lamp control signal is stored in a register, exemplified by "2.3.6" above, each register corresponding to a flag, which is a natural number sequence, for example, 1, 2, and 3, flag bit 1 corresponds to the register of lamp power-on signal "2", flag bit 2 corresponds to the register of lamp power-on signal "3", flag bit 3 corresponds to the register of lamp power-on signal "6", the state switch in the program is a switch with case statement as the core, the case statement has three choices, which correspond to the three registers, then at the beginning, the pulse signal enters the excited state, the state switcher sends the lamp energizing signal of '2' in the corresponding register according to the flag bit 1, when the pulse signal enters a standing state, the zone bit +1 outputs a lamp power-on signal in a register corresponding to the next zone bit next time.
After the specific content of the lamp energizing signal can be adjusted according to the style and the actual situation of the version lamp, if the version lamp can be four led lamp groups arranged together at a specific position on a mainboard, binary digits can be displayed according to the lamp energizing signal, the first two lamp control signals of 2.3.6 can control the version lamp to display a digit 2 in a binary system first (a third lamp of the four lamps flickers once) after a first excited state of the modulation pulse signal arrives, and then display a digit 3 in the binary system first (a third lamp and a fourth lamp flickers once together) after a second excited state arrives.
The control method of the version lamp of the server provided by the invention comprises the steps of obtaining the version number of the server to be displayed; obtaining a control signal group according to the version number, wherein the control signal group comprises a plurality of lamp energizing signals arranged in a first sequence; receiving a modulation pulse signal, wherein the modulation pulse signal is a pulse signal which is continuously switched between an excited state and a static state according to a fixed frequency pulse signal; and according to the first sequence, sequentially sending a single lamp electrifying signal when the modulation pulse signal is in an excited state, finishing sending the control signal group, and controlling the version lamp of the server to be displayed to be on or off. According to the invention, the modulation pulse signal is used as the only counter of the version lamp, the switching time of the excited state and the standing state of the modulation pulse signal is edited by using the fixed-frequency pulse signal as the basis, and then the excited state of the modulation pulse signal is used as the emission time standard of the electrifying signal of a single lamp, so that the sending time and the duration of the electrifying signal of the lamp can be controlled by only using a single modulation pulse signal.
On the basis of the first specific embodiment, the sending of the control signal group is further limited to obtain a second specific embodiment, a flow chart of which is shown in fig. 2, and includes:
s201: and acquiring the version number of the server to be displayed.
S202: and obtaining a control signal group according to the version number, wherein the control signal group comprises a plurality of lamp energizing signals arranged in a first sequence.
S203: and receiving a modulation pulse signal, wherein the modulation pulse signal is a pulse signal which is continuously switched between an excited state and a static state according to a fixed frequency pulse signal.
S204: and according to the first sequence, sequentially sending a single lamp electrifying signal when the modulation pulse signal is in an excited state, and circularly sending the control signal group to control the version lamp of the server to be displayed to be on or off.
The difference between this embodiment and the above embodiment is that this embodiment further defines the control signal group as a cyclic transmission, and the remaining steps are the same as those in the above embodiment, and are not described herein again.
In this embodiment, will control signal group circulation is sent, even treat the version lamp circulation broadcast of show server treat the version number of show server, make things convenient for the staff to look over, avoid passing through as the staff need the version lamp is known treat still need assign the demonstration instruction when the version number of show server, the version lamp just begins to show the version number has made things convenient for operating personnel to greatly the reading of version number.
On the basis of the second embodiment, a third embodiment is obtained by further improving the single group of control signals after the sending is completed, and a flow chart is shown in fig. 3, and includes:
s301: and acquiring the version number of the server to be displayed.
S302: and obtaining a control signal group according to the version number, wherein the control signal group comprises a plurality of lamp energizing signals arranged in a first sequence.
S303: and receiving a modulation pulse signal, wherein the modulation pulse signal is a pulse signal which is continuously switched between an excited state and a static state according to a fixed frequency pulse signal.
S304: according to the first sequence, sequentially sending a single lamp electrifying signal when the modulation pulse signal is in an excited state, circularly sending the control signal group, and controlling the version lamp of the server to be displayed to be on or off; and after the sending of the single control signal group is finished, sending an interval control signal to enable the version lamp to be on or off according to the interval control signal, and reminding an operator that the version number of the server to be displayed is displayed completely.
The difference between this embodiment and the above embodiment is that this embodiment further defines the control signal group as a cyclic transmission, and the remaining steps are the same as those in the above embodiment, and are not described herein again.
In this embodiment, the interval control signal is inserted between the version numbers displayed in a cycle, and the interval control signal is generally different from a normal lamp power-on signal, so that the version lamp is turned on or off in a mode different from that under the control of the control signal group, and if the version lamp displays numbers in a binary system under the control of the control signal group, the version lamp will be fully lit or flash at a high frequency under the interval control signal, so as to prompt an operator that a single version number is displayed completely, and then the version number is displayed again, thereby avoiding a situation that an operator reads the version number incorrectly because the operator does not read the version number from the first place of the version number Therefore, in actual operation, the interval control signal may be inserted and transmitted before the transmission of each group of the control signal group is started.
The following describes a control apparatus for a version lamp of a server according to an embodiment of the present invention, and the control apparatus for a version lamp of a server described below and the control method for a version lamp of a server described above may be referred to correspondingly.
Fig. 4 is a block diagram of a control apparatus for a version lamp of a server according to an embodiment of the present invention, which is referred to as a fourth embodiment, where the control apparatus for a version lamp of a server according to fig. 4 may include:
an obtaining module 100, configured to obtain a version number of a server to be displayed;
a sequence extraction module 200, configured to obtain a control signal group according to the version number, where the control signal group includes a plurality of lamp energizing signals arranged in a first sequence;
the pulse receiving module 300 is configured to receive a modulated pulse signal, where the modulated pulse signal is a pulse signal that is continuously switched between an excited state and a stationary state according to a fixed-frequency pulse signal;
and the signal sending module 400 is configured to send a single lamp power-on signal when the modulated pulse signal is in an excited state according to the first sequence, complete sending of the control signal group, and control turning on and off of a version lamp of the server to be displayed.
As a preferred embodiment, the signal transmission module 400 includes:
and the circulating unit is used for sequentially sending the single lamp energizing signal when the modulation pulse signal is in an excited state according to the first sequence, and circularly sending the control signal group.
As a preferred implementation, the signal sending module 400 further includes:
and the interval unit is used for sending interval control signals after the sending of the single control signal group is finished, so that the version lamp is turned on or off according to the interval control signals to remind an operator that the version number of the server to be displayed is displayed completely.
As a preferred embodiment, the signal transmission module 400 includes:
and the upper and lower edge judging unit is used for starting the sending of the lamp energizing signal when receiving the rising edge of the modulation pulse signal and stopping the sending of the lamp energizing signal when receiving the falling edge of the modulation pulse signal.
The control method of the version lamp of the server provided by the invention comprises an acquisition module 100, a display module and a control module, wherein the acquisition module is used for acquiring the version number of the server to be displayed; a sequence extraction module 200, configured to obtain a control signal group according to the version number, where the control signal group includes a plurality of lamp energizing signals arranged in a first sequence; the pulse receiving module 300 is configured to receive a modulated pulse signal, where the modulated pulse signal is a pulse signal that is continuously switched between an excited state and a stationary state according to a fixed-frequency pulse signal; and the signal sending module 400 is configured to send a single lamp power-on signal when the modulated pulse signal is in an excited state according to the first sequence, complete sending of the control signal group, and control turning on and off of a version lamp of the server to be displayed. According to the invention, the modulation pulse signal is used as the only counter of the version lamp, the switching time of the excited state and the standing state of the modulation pulse signal is edited by using the fixed-frequency pulse signal as the basis, and then the excited state of the modulation pulse signal is used as the emission time standard of the electrifying signal of a single lamp, so that the sending time and the duration of the electrifying signal of the lamp can be controlled by only using a single modulation pulse signal.
The control device of the version lamp of the server in this embodiment is used for implementing the aforementioned control method of the version lamp of the server, and therefore specific implementations in the control device of the version lamp of the server can be found in the foregoing embodiments of the control method of the version lamp of the server, for example, the obtaining module 100, the sequence extracting module 200, the pulse receiving module 300, and the signal sending module 400 are respectively used for implementing steps S101, S102, S103, and S104 in the control method of the version lamp of the server, so specific implementations thereof may refer to descriptions of corresponding partial embodiments, and are not repeated herein.
The invention also provides a control device of the version lamp of the server, which comprises a memory, a control module and a control module, wherein the memory is used for storing a computer program; a processor for implementing the steps of the method for controlling a version light of a server as described in any one of the above when executing the computer program. The working principle and the beneficial effect of the control device of the version lamp of the server are the same as the control method of the version lamp of the server, and the detailed description is omitted here.
A computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of controlling a version light of a server as claimed in any one of the preceding claims. The working principle and the beneficial effect of the computer readable storage medium are the same as the control method of the version lamp of the server, and the detailed description is omitted 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 disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is to be noted that, in the present specification, relational terms such as first and second, and the like 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.
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 invention.
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.
The present invention provides a method, an apparatus, a device and a computer readable storage medium for controlling a version lamp of a server. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Claims (10)
1. A method for controlling a version lamp of a server, comprising:
acquiring the version number of a server to be displayed;
obtaining a control signal group according to the version number, wherein the control signal group comprises a plurality of lamp energizing signals arranged in a first sequence;
receiving a modulation pulse signal, wherein the modulation pulse signal is a pulse signal which is continuously switched between an excited state and a static state according to a fixed frequency pulse signal;
and according to the first sequence, sequentially sending a single lamp electrifying signal when the modulation pulse signal is in an excited state, finishing sending the control signal group, and controlling the version lamp of the server to be displayed to be on or off.
2. The method for controlling a version lamp of a server according to claim 1, wherein the sending of the single lamp energizing signal sequentially when the modulated pulse signal is in an excited state according to the first sequence is specifically:
and according to the first sequence, sending a single lamp electrifying signal when the modulation pulse signal is in an excited state in sequence, and sending the control signal group in a circulating mode.
3. The method for controlling a version lamp of a server according to claim 2, wherein said cyclically transmitting the control signal group further comprises:
and after the sending of the single control signal group is finished, sending an interval control signal to enable the version lamp to be on or off according to the interval control signal, and reminding an operator that the version number of the server to be displayed is displayed completely.
4. The method for controlling a version lamp of a server according to claim 1, wherein said sending a single lamp energizing signal each time said modulated pulse signal is in an excited state is specifically:
and when the rising edge of the modulation pulse signal is received, starting to transmit the lamp energizing signal, and when the falling edge of the modulation pulse signal is received, stopping transmitting the lamp energizing signal.
5. A control apparatus for a version lamp of a server, comprising:
the acquisition module is used for acquiring the version number of the server to be displayed;
the sequence extraction module is used for obtaining a control signal group according to the version number, and the control signal group comprises a plurality of lamp energizing signals arranged in a first sequence;
the pulse receiving module is used for receiving a modulation pulse signal, wherein the modulation pulse signal is a pulse signal which is continuously switched between an excited state and a standing state according to a fixed frequency pulse signal;
and the signal sending module is used for sending a single lamp electrifying signal when the modulation pulse signal is in an excited state according to the first sequence, finishing sending the control signal group and controlling the version lamp of the server to be displayed to be on or off.
6. The apparatus for controlling a version lamp of a server according to claim 5, wherein the signal transmission module comprises:
and the circulating unit is used for sequentially sending the single lamp energizing signal when the modulation pulse signal is in an excited state according to the first sequence, and circularly sending the control signal group.
7. The apparatus for controlling a version lamp of a server according to claim 6, wherein the signal transmission module further comprises:
and the interval unit is used for sending interval control signals after the sending of the single control signal group is finished, so that the version lamp is turned on or off according to the interval control signals to remind an operator that the version number of the server to be displayed is displayed completely.
8. The apparatus for controlling a version lamp of a server according to claim 5, wherein the signal transmission module comprises:
and the upper and lower edge judging unit is used for starting the sending of the lamp energizing signal when receiving the rising edge of the modulation pulse signal and stopping the sending of the lamp energizing signal when receiving the falling edge of the modulation pulse signal.
9. A control apparatus of a version lamp of a server, comprising:
a memory for storing a computer program;
processor for implementing the steps of the method for controlling a version light of a server according to any of claims 1 to 4 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of controlling a version light of a server according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010523712.7A CN111694716B (en) | 2020-06-10 | 2020-06-10 | Control method, device and equipment for version lamp of server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010523712.7A CN111694716B (en) | 2020-06-10 | 2020-06-10 | Control method, device and equipment for version lamp of server and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111694716A true CN111694716A (en) | 2020-09-22 |
CN111694716B CN111694716B (en) | 2023-04-28 |
Family
ID=72480054
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010523712.7A Active CN111694716B (en) | 2020-06-10 | 2020-06-10 | Control method, device and equipment for version lamp of server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111694716B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170034886A1 (en) * | 2015-07-27 | 2017-02-02 | Stmicroelectronics S.R.L. | Integrated device for adjusting dimming of leds, and control method |
CN108052439A (en) * | 2017-12-26 | 2018-05-18 | 郑州云海信息技术有限公司 | A kind of method that CPLD-FPGA information timesharing based on Verilog is shown |
US20200107425A1 (en) * | 2017-06-12 | 2020-04-02 | Signify Holding B.V. | Method and apparatus for driving an led |
CN111093303A (en) * | 2019-12-18 | 2020-05-01 | 矽诚科技股份有限公司 | LED lamp string sequencing method, LED lamp string system and LED lamp thereof |
-
2020
- 2020-06-10 CN CN202010523712.7A patent/CN111694716B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170034886A1 (en) * | 2015-07-27 | 2017-02-02 | Stmicroelectronics S.R.L. | Integrated device for adjusting dimming of leds, and control method |
US20200107425A1 (en) * | 2017-06-12 | 2020-04-02 | Signify Holding B.V. | Method and apparatus for driving an led |
CN108052439A (en) * | 2017-12-26 | 2018-05-18 | 郑州云海信息技术有限公司 | A kind of method that CPLD-FPGA information timesharing based on Verilog is shown |
CN111093303A (en) * | 2019-12-18 | 2020-05-01 | 矽诚科技股份有限公司 | LED lamp string sequencing method, LED lamp string system and LED lamp thereof |
Non-Patent Citations (1)
Title |
---|
刘源杨等: "一种嵌入式软件版本信息获取方法设计与实现", 《电子设计工程》 * |
Also Published As
Publication number | Publication date |
---|---|
CN111694716B (en) | 2023-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103793238A (en) | Rack and method for simultaneously updating multiple basic input output systems thereof | |
RU2016133391A (en) | Communication system depending on time slices | |
CN105404446A (en) | Information reminding method and terminal | |
CN112351479B (en) | Electronic price tag communication system, method and device | |
US10768947B2 (en) | Method for interface refresh synchronization,terminal device, and non-transitory computer-readable storage medium | |
CN111857750A (en) | Multi-channel burner and multi-channel burning method | |
CN110472298B (en) | Method, device, equipment and storage medium for constructing electric power market model | |
CN101382680A (en) | Control method of backlight source and displaying framework thereof | |
CN111694716A (en) | Method, device and equipment for controlling version lamp of server and storage medium | |
CN106648748A (en) | Program updating method and system | |
CN103064309A (en) | Needle selector address confirming method and system | |
CN114347895A (en) | Control method of automobile lamp | |
CN107146073B (en) | Learning prompting method, terminal device and computer readable storage medium | |
CN112732502A (en) | Method and device for detecting I2C signal, detection equipment and storage medium | |
CN109285495B (en) | Electric appliance and screen driving method and device thereof | |
CN110715369A (en) | Air purifier control method and device, storage medium and air purifier | |
CN104915316A (en) | Communication device | |
CN111949166B (en) | Infrared touch large screen control method, infrared touch large screen and control equipment | |
CN114126168A (en) | Lamp effect control method and device, intelligent equipment and storage medium | |
CN115795418B (en) | Watermark embedding method, device, computer and storage medium | |
CN117014332A (en) | Network management testing method, device, equipment and medium | |
CN108923994A (en) | A kind of communication fault detection method and device | |
CN114328182B (en) | Switch PSU testing method and related device | |
CN109116775A (en) | Energy consumption management method, device, storage medium and the electrical equipment of electrical equipment | |
CN112653776B (en) | Intelligent device searching method, computer apparatus, computer-readable storage medium |
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 |