Indicating light control method, device, system, storage medium and electronic device
By acquiring target lighting information and determining the target network controller, the problem of poor scalability in indicator light control methods is solved, and the reusability and resource saving of the backplane are achieved.
Patent Information
- Application Number
- CN202211281814.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-19
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2042-10-19
AI Technical Summary
The existing control methods for indicator lights have poor scalability, which makes the backplane unusable and increases costs.
By acquiring the target lighting information, the target network controller is determined, and the control logic is pre-set on the target logic controller. Based on the control logic of the target network controller and the lighting information, the target indicator light is controlled to perform the lighting operation, thereby realizing the status indication of different network controllers.
It achieves the reusability of the backplane, enhances the scalability of the indicator light control method, avoids the problem of the backplane not being reusable, and saves peripheral resources on the motherboard and CPLD logic control module.
Smart Images

Figure CN115633433B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communication technology, and more specifically, to a method, apparatus, system, storage medium, and electronic device for controlling an indicator light. Background Technology
[0002] Many devices or systems are equipped with indicator lights to indicate their operating status. This is especially true for larger devices like servers, which typically have multiple indicator lights on their front (or back) panels to represent memory, system operation, or network connectivity. Taking network indicator lights as an example, these lights indicate the system's network connection status. The main technology involves reserving a Hardware Identification (HWID) signal on the motherboard and connecting this signal to the backplane CPLD. The CPLD distinguishes the overall system configuration based on different HWID pull-up / pull-down configurations. The CPLD then identifies different network chip models and maps their LED signal accordingly. However, this approach requires the motherboard to reserve a certain number of HWID signals. If new requirements arise later, the backplane may not be able to reuse these signals, meaning the scalability of this indicator light control method is poor.
[0003] There is currently no effective solution to the problem of poor scalability in the control methods of indicator lights in related technologies. Summary of the Invention
[0004] This invention provides a method, apparatus, system, storage medium, and electronic device for controlling indicator lights, thereby at least addressing the problem of poor scalability in indicator light control methods in related technologies.
[0005] According to an embodiment of the present invention, a method for controlling an indicator light is provided, comprising: acquiring target lighting information, wherein the target lighting information is used to distinguish different types of network controllers, the different types of network controllers jointly controlling a group of indicator lights through a target logic controller; determining a target network controller corresponding to the target lighting information, wherein control logic corresponding to the target network controller is pre-set on the target logic controller; and controlling a target indicator light to perform a lighting operation according to the control logic corresponding to the target network controller and the target lighting information, wherein the target indicator light is some or all of the indicator lights in the group of indicator lights associated with the target network controller.
[0006] In one exemplary embodiment, determining the target network controller corresponding to the target lighting information includes: determining the target signal frequency indicated in the target lighting information; and determining the target network controller corresponding to the target signal frequency based on a pre-configured correspondence between signal frequencies and network controllers.
[0007] In an exemplary embodiment, controlling the target indicator light to perform a lighting operation based on the control logic corresponding to the target network controller and the target lighting information includes: generating a target instruction corresponding to the target network controller based on the control logic corresponding to the target network controller and the target clock information and target lighting data information included in the target lighting information; and controlling the target indicator light to perform the lighting operation based on the target instruction.
[0008] In one exemplary embodiment, generating a target instruction corresponding to the target network controller based on the control logic corresponding to the target network controller and the target clock information and target lighting data information included in the target lighting information includes: determining the target control logic corresponding to the target network controller, wherein the target control logic is used to instruct the target network controller to control the logic of each of the target indicator lights in the group of indicator lights; and generating the target instruction based on the target clock information, the target lighting data information, and the target control logic.
[0009] In an exemplary embodiment, determining the target control logic corresponding to the target network controller includes: pre-configuring control logic relationships between different network controllers and a group of indicator lights, wherein the control logic relationships are used to indicate the control relationship between each bit of data in the lighting data output by the network controller and each indicator light in the group of indicator lights; and determining the target control logic corresponding to the target network controller from the control logic relationships.
[0010] According to another embodiment of the present invention, a control device for an indicator light is also provided, comprising: an acquisition module for acquiring target lighting information, wherein the target lighting information is used to distinguish different types of network controllers, and the different types of network controllers jointly control a group of indicator lights through a target logic controller; a determination module for determining a target network controller corresponding to the target lighting information, wherein control logic corresponding to the target network controller is pre-set on the target logic controller; and a control module for controlling a target indicator light to perform a lighting operation according to the control logic corresponding to the target network controller and the target lighting information, wherein the target indicator light is some or all of the indicator lights in the group of indicator lights associated with the target network controller.
[0011] In an exemplary embodiment, the determining module includes: a first determining submodule, configured to determine the target signal frequency indicated in the target lighting information; and a second determining submodule, configured to determine the target network controller corresponding to the target signal frequency based on a pre-configured correspondence between signal frequencies and network controllers.
[0012] According to another embodiment of the present invention, a control system for indicator lights is also provided, comprising: a network controller, a logic controller, and a group of indicator lights, wherein the network controller is electrically connected to the logic controller, and the logic controller is electrically connected to the group of indicator lights; the network controller is configured to output target lighting information to the logic controller; the logic controller is configured to acquire the target lighting information, and distinguish different types of network controllers according to the target lighting information, and control some or all of the indicator lights in the group of indicator lights; the group of indicator lights is configured to illuminate some or all of them according to the target lighting information.
[0013] According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0014] According to yet another embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0015] This invention acquires target lighting information and identifies the target network controller corresponding to that information from different types of network controllers. These different types of network controllers jointly control a set of indicator lights through a target logic controller. The target logic controller has pre-set control logic corresponding to the target network controller. Then, based on the control logic of the target network controller and the target lighting information, the target indicator lights are controlled to perform lighting operations. This achieves the goal of indicating the status of different network controllers by sharing a backplane including the target logic controller and a set of indicator lights, realizing the reusability of the backplane and avoiding the problem of non-reusability of backplanes in related technologies. Therefore, it solves the problem of poor scalability of indicator light control methods in related technologies, and enhances the scalability of indicator light control methods. Attached Figure Description
[0016] Figure 1 This is a mobile terminal hardware structure block diagram of the indicator light control method according to an embodiment of the present invention;
[0017] Figure 2This is a flowchart of an indicator light control method according to an embodiment of the present invention;
[0018] Figure 3 This is a flowchart of a method for lighting a network chip indicator light according to a specific embodiment of the present invention;
[0019] Figure 4 This is an example diagram of a lighting scheme for a network indicator light according to a specific embodiment of the present invention;
[0020] Figure 5 This is a structural block diagram of an indicator light control device according to an embodiment of the present invention;
[0021] Figure 6 This is a control system architecture diagram of an indicator light according to an embodiment of the present invention. Detailed Implementation
[0022] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples.
[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0024] The methods and embodiments provided in this application can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a mobile terminal hardware structure block diagram of the indicator light control method according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0025] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the indicator light control method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0026] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0027] In related technologies, logic control modules are used to perform logic gate operations on indicator light signals from different network controllers (or network chips). The different states of one indicator light on the backplane are then used to comprehensively reflect the states of multiple network indicator lights emitted by the network controller. When it is necessary to replace or add a network chip in the future, the backplane may not be reusable, which leads to increased costs. In other words, the solutions in related technologies have poor scalability.
[0028] This embodiment provides a method for controlling an indicator light. Figure 2 This is a flowchart of a control method for an indicator light according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:
[0029] Step S202: Obtain target indicator light information, wherein the target indicator light information is used to distinguish different types of network controllers, and the different types of network controllers jointly control a group of indicator lights through the target logic controller;
[0030] Step S204: Determine the target network controller corresponding to the target lighting information, wherein control logic corresponding to the target network controller is pre-set on the target logic controller;
[0031] Step S206: Control the target indicator light to perform a lighting operation according to the control logic corresponding to the target network controller and the target lighting information, wherein the target indicator light is some or all of the indicator lights in the group of indicator lights that are associated with the target network controller.
[0032] Through the above steps, target indicator light information is acquired, and the target network controller corresponding to the target indicator light information is determined from different types of network controllers. Different types of network controllers jointly control a set of indicator lights through a target logic controller. The target logic controller has pre-set control logic corresponding to the target network controller. Then, based on the control logic corresponding to the target network controller and the target indicator light information, the target indicator lights are controlled to perform the lighting operation. This achieves the goal of indicating the status of different network controllers by sharing a backplane including the target logic controller and a set of indicator lights, realizing the reusability of the backplane and avoiding the problem of non-reusability of backplanes in related technologies. Therefore, it solves the problem of poor scalability of indicator light control methods in related technologies, and achieves the effect of enhancing the scalability of indicator light control methods.
[0033] The entity executing the above steps can be a controller, such as the target logic controller, a CPLD logic controller, a logic control module, or a logic control chip, or a processor with human-computer interaction capabilities configured on a storage device, or a processing device or processing unit with similar processing capabilities, etc., but not limited to these. The following explanation uses the target logic controller performing the above operations as an example (this is merely an illustrative example; in actual operation, other devices or modules can also perform the above operations):
[0034] In the above embodiment, the target logic controller acquires target lighting information. This target lighting information is used to distinguish different types of network controllers. Different types of network controllers jointly control a group of indicator lights through the target logic controller. For example, the target logic controller is a CPLD logic controller. The target lighting information (or lighting signal) is output by the target logic controller. The target lighting information may include a clock signal and a lighting data signal. The lighting data signal is used to control the lighting or extinguishing of each indicator light in the group. In practical applications, there may be multiple different types of network controllers. Even if the lighting data signal is the same, the lighting scheme for the group of indicator lights may differ for different types of network controllers. Taking a group of indicator lights containing 20 indicator lights as an example, the first data in the lighting data output by network controller A may control the lighting or extinguishing of the first indicator light in the group, while the first data in the lighting data output by network controller B may... The system can control the illumination of the tenth indicator light in the aforementioned group. It identifies the target network controller corresponding to the target lighting information. This target network controller outputs the target lighting information to illuminate some or all of the indicator lights in the group. The corresponding target network controller can be determined based on the target lighting information. For example, the type or model of the network controller can be identified based on the clock signal included in the target lighting information. In practical applications, different types of network controllers output different clock signals; therefore, the corresponding target network controller can be determined based on the target lighting information. The control logic corresponding to the target network controller is pre-set on the target logic controller. Alternatively, control logic corresponding to other network controllers can also be pre-set on the target logic controller. Then, the target indicator lights can be controlled to perform a lighting operation based on the control logic corresponding to the target network controller and the target lighting information. This lighting operation illuminates the target indicator lights associated with the network controller. In practical applications, the target logic controller and the aforementioned group of indicator lights can be mounted on a single backplane. This allows for the sharing of the same backplane even if the network controller needs to be replaced or a new network controller is added later. This embodiment achieves the goal of indicating the status of different network controllers by sharing a backplane that includes a target logic controller and a set of indicator lights. It realizes the purpose of backplane reuse and avoids the problem of non-reusability of backplanes in related technologies. Therefore, it solves the problem of poor scalability of indicator light control methods in related technologies and achieves the effect of enhancing the scalability of indicator light control methods.
[0035] In an optional embodiment, determining the target network controller corresponding to the target lighting information includes: determining the target signal frequency indicated in the target lighting information; and determining the target network controller corresponding to the target signal frequency based on a pre-configured correspondence between signal frequencies and network controllers. In this embodiment, the target signal frequency indicated in the target lighting information can be determined. For example, the signal frequency corresponding to the clock information included in the target lighting information can be determined. In practical applications, the target logic controller can determine its frequency by acquiring a clock signal, and then, based on the correspondence between different signal frequencies and different types of network controllers, the target network controller corresponding to the target signal frequency can be determined. Through this embodiment, the purpose of determining the corresponding target network controller by determining the target signal frequency indicated in the target lighting information is achieved, and thus, the target indicator lights included in a group of indicator lights can be controlled to perform lighting operations corresponding to the target network controller based on the target lighting information.
[0036] In an optional embodiment, controlling the target indicator light to perform the lighting operation based on the control logic corresponding to the target network controller and the target lighting information includes: generating a target instruction corresponding to the target network controller based on the control logic corresponding to the target network controller and the target clock information and target lighting data information included in the target lighting information; and controlling the target indicator light to perform the lighting operation based on the target instruction. In this embodiment, a target instruction corresponding to the target network controller can be generated based on the control logic corresponding to the target network controller and the target clock information and target lighting data information included in the target lighting information. In practical applications, the target logic controller may include a signal acquisition unit, a logic unit, and a command output unit. The signal acquisition unit can be used to acquire the target lighting information output by the target network controller, and the logic unit can be used to perform calculations on the clock signal and lighting data signal included in the target lighting information to generate a lighting command. The command output unit then outputs the command to a group of indicator lights. Then, the target indicator light is controlled to perform the lighting operation based on the target instruction, that is, the target indicator light included in the group of indicator lights is controlled to turn on or off. The target indicator light may be some or all of the indicator lights in the group of indicator lights. This embodiment achieves the goal of generating target instructions based on the control logic corresponding to the target network controller and the target lighting information, thereby controlling the target indicator light to perform the lighting operation.
[0037] In an optional embodiment, a target instruction corresponding to the target network controller is generated based on the control logic corresponding to the target network controller and the target clock information and target lighting data information included in the target lighting information. This includes: determining the target control logic corresponding to the target network controller, wherein the target control logic is used to instruct the target network controller to control the logic of each target indicator light in the group of indicator lights; and generating the target instruction based on the target clock information, the target lighting data information, and the target control logic. In this embodiment, determining the target control logic corresponding to the target network controller refers to the logic by which the target network controller controls each indicator light in the group of indicator lights. In practical applications, different network controller (or network chip) solutions may use different control logics for controlling the same group of indicator lights. The aforementioned target control logic can be pre-configured and stored in the target logic controller. Then, based on the target clock information, target lighting data information, and target control logic, a target instruction corresponding to the target logic controller is generated to control the target indicator lights to perform lighting operations. Through this embodiment, the purpose of generating a target instruction corresponding to the target network controller based on the target clock information, target lighting data information, and target control logic is achieved.
[0038] In an optional embodiment, determining the target control logic corresponding to the target network controller includes: pre-configuring control logic relationships between different network controllers and a group of indicator lights, wherein the control logic relationships are used to indicate the control relationship between each bit of data in the lighting data output by the network controller and each indicator light in the group of indicator lights; and determining the target control logic corresponding to the target network controller from the control logic relationships. In practical applications, the control logic relationships between different types of network controllers and a group of indicator lights can be pre-configured. For example, the first bit of the lighting data output by network controller A may control the first indicator light in the group to turn on or off; the first bit of the lighting data output by network controller B may control the tenth indicator light in the group to turn on or off; the first bit of the lighting data output by other network controllers may also control the other indicator lights in the same group to turn on or off, and so on. The second bit of the lighting data output by network controller A may control the other indicator lights in the group to turn on or off. That is, different network controllers can share a set of backplanes, which includes the target logic controller and the group of indicator lights. For different types of network controllers, the lighting schemes for controlling the target indicator lights included in the group of indicator lights may be different. The above control logic relationships can be pre-stored in the target logic controller. Through this embodiment, the purpose of determining the target control logic corresponding to the target network controller is achieved based on the pre-configured control logic relationships between different network controllers and a group of indicator lights.
[0039] Obviously, the embodiments described above are only some embodiments of the present invention, and not all embodiments. The present invention will be specifically described below with reference to the embodiments.
[0040] Figure 3 This is a flowchart of a method for lighting a network chip indicator light according to a specific embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps:
[0041] S302, a lighting environment is built based on a network chip (corresponding to the aforementioned network controller) and a CPLD logic control module (corresponding to the aforementioned target logic controller);
[0042] S304, the CPLD logic control module identifies different frequency lamp-lighting clock signals (corresponding to the aforementioned target clock information) and then distinguishes the lamp-lighting information of different types of network chips from the source, corresponding to the aforementioned determination of the target network controller corresponding to the target lamp-lighting information;
[0043] S306, the CPLD logic control module generates the corresponding LED lighting command for the network chip (corresponding to the aforementioned target instruction);
[0044] S308, the network indicator light receives the light-on command and lights up.
[0045] This embodiment provides a method for designing network chip indicator lights that are compatible with network controllers. The method involves a network chip (network controller), a CPLD logic control module, and network indicator lights. The network chip (network controller) outputs an indicator light signal to the CPLD logic control module. The indicator light signal includes an indicator light clock signal and an indicator light data signal. The CPLD logic control module is connected to the network indicator lights (corresponding to the aforementioned group of indicator lights). The CPLD logic control module includes a signal acquisition unit, a CPLD logic unit, and a command output unit. The signal acquisition unit acquires the network indicator light signal output by the network controller. The CPLD logic unit performs calculations on the network indicator light signal and generates an indicator light command. The command output unit outputs the indicator light command to the network indicator lights. The CPLD logic control module identifies indicator light clock signals of different frequencies to distinguish the indicator light information from different network chip models.
[0046] In the above embodiments, the CPLD logic control module identifies different frequency LED clock signals to distinguish the LED information of different network chip models from the source, thus truly realizing the reuse of the backplane and saving peripheral resources on the motherboard and CPLD logic control module.
[0047] The embodiments of the present invention will be further illustrated below with examples. Figure 4 This is an example diagram of a network indicator light illumination scheme according to a specific embodiment of the present invention. Figure 4 Different motherboards use different network chip solutions. For example, motherboard 1 uses the SWITCH-1 network chip solution. The LED signal is emitted by the SWITCH-1 chip, including the LED clock signal frequency A and the data signal A'. Figure 4 (Not shown in the image); The CPLD logic control module identifies the network chip scheme as SWITCH-1 by recognizing the clock signal frequency A. Based on the SWITCH-1 chip scheme, it generates the corresponding LED lighting command A” according to the clock and data signals to achieve the correct LED lighting requirement. Similarly, the same method is implemented on motherboard 2 (SWITCH-2 scheme) and motherboard n (SWITCH-n scheme). Through this embodiment, if it is necessary to change or add a network chip scheme in the future, the backplane (including the CPLD logic control module and network indicator lights) can be truly reused. Only the control logic in the CPLD logic control module needs to be adjusted, which achieves the effect of saving peripheral resources on the motherboard and CPLD logic control module.
[0048] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0049] This embodiment also provides a control device for indicator lights. Figure 5 This is a structural block diagram of an indicator light control device according to an embodiment of the present invention, such as... Figure 5 As shown, the device includes:
[0050] The acquisition module 502 is used to acquire target light information, wherein the target light information is used to distinguish different types of network controllers, and the different types of network controllers jointly control a group of indicator lights through the target logic controller;
[0051] The determining module 504 is used to determine the target network controller corresponding to the target lighting information, wherein control logic corresponding to the target network controller is pre-set on the target logic controller;
[0052] The control module 506 is used to control the target indicator light to perform a lighting operation according to the control logic corresponding to the target network controller and the target lighting information, wherein the target indicator light is some or all of the indicator lights associated with the target network controller in the group of indicator lights.
[0053] In an optional embodiment, the determining module 504 includes: a first determining submodule, configured to determine the target signal frequency indicated in the target lighting information; and a second determining submodule, configured to determine the target network controller corresponding to the target signal frequency based on a pre-configured correspondence between signal frequencies and network controllers.
[0054] In an optional embodiment, the control module 506 includes: a generation submodule, used to generate a target instruction corresponding to the target network controller based on the control logic corresponding to the target network controller and the target clock information and target lighting data information included in the target lighting information; and a control submodule, used to control the target indicator light to perform the lighting operation based on the target instruction.
[0055] In an optional embodiment, the above-mentioned generation submodule includes: a determining unit, configured to determine the target control logic corresponding to the target network controller, wherein the target control logic is used to instruct the target network controller to control the logic of each of the target indicator lights in the group of indicator lights; and a generation unit, configured to generate the target instruction based on the target clock information, the target lighting data information, and the target control logic.
[0056] In an optional embodiment, the determining unit includes: a configuration subunit, configured to pre-configure control logic relationships between different network controllers and a group of indicator lights, wherein the control logic relationships are used to indicate the control relationship between each bit of data in the lighting data output by the network controller and each indicator light in the group of indicator lights; and a determining subunit, configured to determine the target control logic corresponding to the target network controller from the control logic relationships.
[0057] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0058] This embodiment also provides a control system for indicator lights. Figure 6 This is a control system architecture diagram of an indicator light according to an embodiment of the present invention, such as... Figure 6 As shown, the system includes: a network controller 602, a logic controller 604, and a set of indicator lights 606, wherein the network controller 602 is electrically connected to the logic controller 604, and the logic controller 604 is electrically connected to the set of indicator lights 606.
[0059] The network controller 602 is used to output target lighting information to the logic controller 604; the logic controller 604 is used to acquire the target lighting information and distinguish different types of network controllers 602 according to the target lighting information, and control some or all of the indicator lights in a group of indicator lights 606; the group of indicator lights 606 is used to light up some or all of them according to the target lighting information.
[0060] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0061] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0062] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.
[0063] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0064] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0065] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0066] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A control method of an indicator light, characterized by, The method comprises the following steps: acquiring target light-on information, wherein the target light-on information is used to distinguish different types of network controllers, and the different types of network controllers control a group of indicator lights through a target logical controller; determining a target network controller corresponding to the target light-on information, wherein control logic corresponding to the target network controller is pre-set on the target logical controller; controlling target indicator lights to perform light-on operation according to the control logic corresponding to the target network controller and the target light-on information, wherein the target indicator lights are part or all of the indicator lights associated with the target network controller in the group of indicator lights; the step of controlling the target indicator lights to perform light-on operation according to the control logic corresponding to the target network controller and the target light-on information comprises the following steps:
2. The method of claim 1, wherein, generating a target instruction corresponding to the target network controller based on target clock information and target light-on data information included in the control logic corresponding to the target network controller and the target light-on information; and controlling the target indicator lights to perform the light-on operation based on the target instruction. The step of determining the target network controller corresponding to the target light-on information comprises the following steps:
3. The method of claim 1, wherein, determining a target signal frequency indicated in the target light-on information; determining the target network controller corresponding to the target signal frequency based on a pre-configured correspondence relationship between signal frequencies and network controllers. The step of generating a target instruction corresponding to the target network controller based on target clock information and target light-on data information included in the control logic corresponding to the target network controller and the target light-on information comprises the following steps:
4. The method of claim 3, wherein, determining target control logic corresponding to the target network controller, wherein the target control logic is used to instruct the target network controller to control each of the target indicator lights in the group of indicator lights; generating the target instruction based on the target clock information, the target light-on data information, and the target control logic. The step of determining the target control logic corresponding to the target network controller comprises the following steps:
5. A control device for a pilot lamp, characterized by pre-configuring a control logic relationship between different network controllers and a group of indicator lights, wherein the control logic relationship is used to indicate the control relationship between each bit of light-on data output by the network controller and each indicator light in the group of indicator lights; and determining the target control logic corresponding to the target network controller from the control logic relationship. The method comprises the following steps: an acquiring module is configured to acquire target light-on information, wherein the target light-on information is used to distinguish different types of network controllers, and the different types of network controllers control a group of indicator lights through a target logical controller; a determining module is configured to determine a target network controller corresponding to the target light-on information, wherein control logic corresponding to the target network controller is pre-set on the target logical controller; and a controlling module is configured to control target indicator lights to perform light-on operation according to the control logic corresponding to the target network controller and the target light-on information, wherein the target indicator lights are part or all of the indicator lights associated with the target network controller in the group of indicator lights. The control module is configured to control a target indicator lamp to perform a lighting operation according to control logic corresponding to the target network controller and the target lighting information. The control module comprises a generation submodule configured to generate a target instruction corresponding to the target network controller based on target clock information and target lighting data information included in the target lighting information and the control logic corresponding to the target network controller; and a control submodule configured to control the target indicator lamp to perform the lighting operation based on the target instruction.
6. The apparatus of claim 5, wherein, The determination module comprises: A first determination submodule configured to determine a target signal frequency indicated in the target lighting information; and A second determination submodule configured to determine the target network controller corresponding to the target signal frequency based on a preconfigured correspondence relationship between signal frequencies and network controllers.
7. A control system for a pilot lamp, characterized in that The network controller, the logic controller, and the group of indicator lamps, wherein The network controller is electrically connected to the logic controller, and the logic controller is electrically connected to the group of indicator lamps. The network controller is configured to output target lighting information to the logic controller. The logic controller is configured to acquire the target lighting information, distinguish different types of network controllers according to the target lighting information, and control part or all of the group of indicator lamps. The group of indicator lamps is configured to light part or all of the group of indicator lamps according to the target lighting information. The logic controller is further configured to determine a target network controller corresponding to the target lighting information from different types of network controllers, preconfigure control logic corresponding to the target network controller on a target logic controller, and control a target indicator lamp to perform a lighting operation according to control logic corresponding to the target network controller and the target lighting information. The control according to the control logic corresponding to the target network controller and the target lighting information comprises: generating a target instruction corresponding to the target network controller based on target clock information and target lighting data information included in the target lighting information and the control logic corresponding to the target network controller; and controlling the target indicator lamp to perform the lighting operation based on the target instruction. The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 4.
8. A computer-readable storage medium, characterized in that, The processor executes the computer program to implement the steps of the method in any one of claims 1 to 4.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that,
Citation Information
Patent Citations
Lighting system and method for network indicator light of front panel of server chassis
CN109086191A
Indicator light control device and method
CN111479372A