CN112463548B - Server shared lamp control method, system, terminal and storage medium - Google Patents

Server shared lamp control method, system, terminal and storage medium Download PDF

Info

Publication number
CN112463548B
CN112463548B CN202011252536.4A CN202011252536A CN112463548B CN 112463548 B CN112463548 B CN 112463548B CN 202011252536 A CN202011252536 A CN 202011252536A CN 112463548 B CN112463548 B CN 112463548B
Authority
CN
China
Prior art keywords
controller
state
lamp
slave
master
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.)
Active
Application number
CN202011252536.4A
Other languages
Chinese (zh)
Other versions
CN112463548A (en
Inventor
刘涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011252536.4A priority Critical patent/CN112463548B/en
Publication of CN112463548A publication Critical patent/CN112463548A/en
Application granted granted Critical
Publication of CN112463548B publication Critical patent/CN112463548B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/325Display of status information by lamps or LED's

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)

Abstract

The invention provides a server shared lamp control method, a system, a terminal and a storage medium, wherein the server shared lamp control method comprises the following steps: setting a master role and a slave role and setting the authority of the master controller for controlling the shared state lamp; identifying whether the current controller is a master controller: if yes, controlling the state of the corresponding state lamp according to the current power-on state of the controller; if not, communication connection is established with the main controller, and the corresponding state lamp control instruction is sent to the main controller. The invention can thoroughly solve the problem of hardware conflict caused by two controllers simultaneously controlling one shared lamp, avoids the problem of alarm fault caused by randomly changing the state of the lamp when the shared lamp is accessed by the controllers, and has small difficulty and high stability. Thereby improving the stability of the service product and reducing the labor cost and the material cost of the product caused by the occurrence of the above.

Description

Server shared lamp control method, system, terminal and storage medium
Technical Field
The invention relates to the technical field of servers, in particular to a server shared lamp control method, a server shared lamp control system, a server shared lamp control terminal and a storage medium.
Background
In the server product, in the management platform, state data sharing between two controllers is required to be realized for stability of the server product, and a part of the device managed by the controllers also belongs to a shared device (both controllers can access the device).
When two controllers access the same device through the same link, the problem of device access conflict can occur. And it is necessary to keep the state of the lamp device stable and unchanged during the switching access of the controller. A solution to the problem is proposed.
When the server is used, once the state of the lamp equipment of the controller is disordered, an alarm state (each lamp and the color of the lamp represent different working states of the controller) is generated, alarm information can be prompted in a system, a user can observe the color change of the lamp more intuitively, the user thinks that the machine has a fault, misoperation is caused, and unavoidable data errors or data loss are generated. This is unacceptable for server products, since in the server industry there is a need for a server product that does not go down and lose data, which also means that the server product has extremely high requirements for stability.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a server shared light control method, system, terminal and storage medium, so as to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a server shared light control method, including:
setting a master role and a slave role and setting the authority of the master controller for controlling the shared state lamp;
identifying whether the current controller is a master controller:
if yes, controlling the state of the corresponding state lamp according to the current power-on state of the controller;
if not, communication connection is established with the main controller, and the corresponding state lamp control instruction is sent to the main controller.
Further, the method further comprises:
after the slave controller system is powered on, establishing communication connection with the master controller, and sending a power-on signal to the master controller;
after receiving the power-on signal, the master controller inquires the state of a corresponding state lamp of the slave controller;
if the corresponding state lamp is in a lamp-out state, the main controller lights the corresponding state lamp;
and if the corresponding state lamp is in a lighting state, the main controller does not execute the operation on the corresponding state lamp.
Further, the method further comprises:
the slave controller monitors the master controller to be powered down through the communication link, and then the slave controller is changed into a new master controller;
the new master controller reads the state of the local corresponding state lamp and the states of the state lamps of other controllers;
and the new master controller controls the state lamp corresponding to the original power-down master controller to be turned off.
Further, the method further comprises:
and after the current control is changed from the slave controller to the master controller, the state of the lamp equipment corresponding to the current controller is unchanged.
In a second aspect, the present invention provides a server-shared light control system, including:
the authority setting unit is configured for setting master and slave roles and the master controller has the authority for controlling the shared state lamp;
the master-slave identification unit is configured for identifying whether the current controller is a master controller or not;
the direct control unit is configured to control the state of the corresponding state lamp according to the power-on state of the current controller if the current controller is a main controller;
and the slave control unit is configured to establish communication connection with the master controller and send the corresponding state lamp control instruction to the master controller if the current controller is not the master controller.
Further, the system further comprises:
the slave power-on unit is configured to establish communication connection with the master controller after the slave controller system is powered on, and send a power-on signal to the master controller;
the condition checking unit is configured to inquire the state of a corresponding state lamp of the slave controller after the master controller receives the power-on signal;
the slave lighting unit is configured to light the corresponding state lamp by the master controller if the corresponding state lamp is in a light-off state;
and the slave holding unit is configured to enable the master controller not to execute the operation on the corresponding state lamp if the corresponding state lamp is in a lighting state.
Further, the system further comprises:
the master-slave conversion unit is configured for monitoring the master controller to be powered down through the communication link by the slave controller, and then changing the slave controller into a new master controller;
the state query unit is configured for the new main controller to read the state of the state lamp corresponding to the local controller and the states of the state lamps of other controllers;
and the original main light-out unit is configured to be used for the new main controller to control the state light corresponding to the original main controller with power failure to be turned off.
Further, the system further comprises:
and the state maintaining unit is configured to be used for keeping the state of the lamp equipment corresponding to the current controller unchanged after the current control is changed from the slave controller to the master controller.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
according to the server shared lamp control method, the server shared lamp control system, the server shared lamp control terminal and the storage medium, the master role and the slave role are set, the master controller has the authority of controlling the shared state lamps, and meanwhile, the master controller controls the state lamps of the slave controllers according to the states of the slave controllers, so that disorder of the state lamps caused by simultaneous control of the shared state lamps by multiple controllers is avoided. The invention can thoroughly solve the problem of hardware conflict caused by the simultaneous control of one shared lamp by two controllers, avoid the problem of alarm fault caused by the random change of the lamp state of the shared lamp accessed by the controllers, and has small difficulty and high stability of the realization method. Thereby improving the stability of the service product and reducing the labor cost and the material cost of the product caused by the occurrence of the above.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, 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 diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following explains key terms appearing in the present invention.
A controller: one controller comprises a large system and a small system;
large system: a system in which a CPU runs on a server, such as Linux, windows7;
and (3) small system: refers to embedded systems, such as μ C/OS-II, freeRTOS, RT-Thread, threadX.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. Wherein, the implementation subject in fig. 1 may be a server-shared light control system.
As shown in fig. 1, the method includes:
step 110, setting a master role and a slave role and setting the authority of the master controller for controlling the shared state lamp;
step 120, identifying whether the current controller is a master controller:
step 130, if yes, controlling the state of the corresponding state lamp according to the power-on state of the current controller;
and 140, if not, establishing communication connection with the main controller, and sending the corresponding state lamp control instruction to the main controller.
Specifically, the server shared light control method includes:
s1, setting a master role and a slave role and enabling a master controller to have the authority of controlling a shared state lamp.
In this embodiment, a dual controller is taken as an example for explanation, the dual controller is a controller 1 and a controller 2, the controller 1 and the controller 2 correspond to a physical lamp respectively, the physical lamp has three colors, and different colors represent operation/positioning/fault states of different controllers. The change in the color state of the lights of the master controller is based on the current state of the master controller or upon receipt of a command from the master controller. The color status change of the slave's lights is based on the current status of the slave's status or a command received from the controller. The management chip is only responsible for lighting the lamps in the running state of the controller, and the lamps in other states of the controller are lighted according to an external command.
The server further comprises: sharing the power supply lamp: the master controller and the slave controller have any controller to work, and the power lamp is required to be lightened. Both controllers are turned off, and the power lamp can be turned off. The management chip is responsible for lighting and extinguishing the power lamp. The case fault lamp/positioning lamp is shared, the controllers are lightened according to an external command, and the case positioning lamp/positioning lamp can be turned off only after the two controllers are turned off. The management chip is responsible for the extinguishing of the case positioning/fault lamp. In the scene that the master-slave state of the controller of the shared lamp is changed and the management chip of a certain controller is reset, the state of the lamp cannot be changed.
Based on the prior art, the present embodiment sets master and slave roles of the controller, and sets permissions corresponding to the master and slave roles respectively, specifically, the master controller can control the on/off state of the shared status light, and the slave controller cannot control the on/off state of the shared status light.
And S2, identifying whether the current controller is a main controller. And if so, controlling the state of the corresponding state lamp according to the power-on state of the current controller. If not, communication connection is established with the main controller, and the corresponding state lamp control instruction is sent to the main controller.
(1) The controller acquires the master state or the slave state of the controller; and if the current controller master state executes the next step, if the current controller master state is the slave state, returning. The next step is not performed. The master controller queries whether it is controller 1 or controller 2.
(2) If the master controller inquires that it is the controller 1, it considers that the lighting command transmitted between the dual-control is the lighting command of the controller 2.
(3) The main controller turns on a status lamp of the main controller according to the change of an electric signal on a main controller system from a power-off state to a power-on state;
(4) And the slave control is in a power-on state, namely power-off state according to the change of the power-on signal of the slave control system, and the result of the change of the signal is transmitted to the master control through a communication link between the master and the slave controllers. The master controller lights the status lights of the slave controllers according to this result from the slave controllers.
(5) The main controller receives a lightening blue positioning lamp issued from the outside, and lightens the blue positioning lamp of the main controller according to a command; the slave controller receives a red fault lamp issued from the outside, the slave controller transmits a command to the master controller, and the master controller lights the red fault lamp of the slave controller according to the command sent by the slave controller.
The method provided by the embodiment includes applications in the following two scenarios:
scene 1: the controller being plugged in and out, corresponding to the management of the controller's lights
(1) The controller 1 is a master controller, the controller 1 is plugged and plugged, the controller 2 is a slave controller, and the controller 2 takes over processing scenes
When the controller 1 is plugged, the controller 2 is changed from the slave state to the master state, and the controller 2 takes over the management of the shared lamp; before the controller 1 is plugged, the blue positioning lamp is turned on by the controller 1, and the red fault lamp is turned on by the controller 2. After the controller 2 takes over, the state of the corresponding lamp of the controller 2 cannot be changed and should be consistent with the state before the controller 1 is plugged. Since the controller 1 is plugged, the lamp corresponding to the controller 1 should be turned off.
The state of the controller 2 is switched from the slave state to the master state, and the controller 2 detects whether the master state and the slave state of the controller 2 have changed or not in the lighting function processing flow. And if the change does not occur, the function of reading the state of the lamp is quitted. If a change in the master-slave status of the controller 2 is detected.
The controller 2 is taken as a main requirement to read the state of the lamp, the main controller judges whether the controller is the controller 1 or the controller 2, the main controller judges whether the controller is the controller 2, the lamp controlled by the main controller according to the state of the main controller is the lamp of the controller 2, and the lighting command sent by the communication link is the lighting command of the controller 1.
The main controller inquires about the current lighting and extinguishing states of the lamps of the controller 1 and the controller 2, wherein the controller 1 is a blue positioning lamp and the controller 2 is a red fault lamp.
The master controller inquires that the lamps of controller 1 and controller 2 are both on. The master controller regards the lighting lamp of the controller 2 as the lamp of the master controller, and the blue positioning lamp of the controller 1 as the lamp of the slave controller. The signs of lighting the controller 1 lamp and the controller 2 lamp are set, respectively.
And the main controller detects whether the power-on signal of the main controller large system is finished, and the power-on state is larger than the power-on state, and the lamp is not lightened, if the condition is met, the main controller lightens the lamp of the controller 1, and the exit is not met. (the reason for this is that this management system can only light the green normally-on lamp, the state of the other color lamp is the external trigger lighting, the current controller 2 lamp is the red fault lamp, if lighting again, the color of the lamp changes from red to green, which belongs to the wrong lighting)
The lamp is turned on at present, and the current lighting condition is not satisfied, so the lighting is quitted.
The main controller detects the lighting state of the slave controller: the master controller inquires the lighting of the slave controller, so that a lighting mark of the slave controller is set; because the slave controller is plugged, other conditions of the slave controller are insufficient to judge, and the lamp of the slave controller is directly turned off.
Scene 2: master-slave state change of controller, management of controller lamp
The method comprises the following steps: the controller 1 is a master controller, and the controller 2 is a slave controller;
now: the master-slave state changes, and the controller 1 is composed of a master controller-slave controller; the controller 2 is composed of a slave controller- > a master controller;
the main controller conforms the light management of the controller 2 as the scene 1;
the master controller manages the lamps of the slave controller (controller 1) as follows:
1. the master controller inquires about master-slave state change of the controller 2;
2. if the change occurs, inquiring the state before the shared lamp, and lighting the lamps of the inquiry controller 1 and the controller 2;
3. according to the result of the lamp lighting, whether the main controller is the controller 1 or the controller 2 is inquired, and the lighting state of the controller is set respectively.
The current results are: the controller 1 lamp and the controller 2 lamp are both lit, so the controller lighting flag is set.
4. The master queries the slave's operational status, system power up of the slave is complete, and the lights are illuminated (blue),
therefore, the lamp is not lighted. (if this is not done properly, the previously lit blue position light will be reset from the new setting to the green run mode)
5. And the master controller obtains the state before the lamp of the slave controller is maintained according to the running state of the slave controller.
6. Even if the master-slave state changes again, the lighting states of the controller 1 and the controller 2 cannot change.
As shown in fig. 2, the system 200 includes:
an authority setting unit 210 configured to set a master role and a slave role and a master controller having authority to control the shared state lamp;
a master-slave identification unit 220 configured to identify whether the current controller is a master controller;
a direct control unit 230 configured to control a state of a corresponding status lamp according to a power-on state of a current controller if the current controller is a master controller;
and the slave control unit 240 is configured to establish communication connection with the master controller if the current controller is not the master controller, and send the corresponding status light control instruction to the master controller.
Optionally, as an embodiment of the present invention, the system further includes:
the slave power-on unit is configured to establish communication connection with the master controller after the slave controller system is powered on, and send a power-on signal to the master controller;
the condition checking unit is configured to inquire the state of a corresponding state lamp of the slave controller after the master controller receives the power-on signal;
the slave lighting unit is configured to light the corresponding state lamp by the master controller if the corresponding state lamp is in a light-out state;
and the slave holding unit is configured to enable the master controller not to execute the operation on the corresponding state lamp if the corresponding state lamp is in a lighting state.
Optionally, as an embodiment of the present invention, the system further includes:
the master-slave conversion unit is configured for monitoring the master controller to be powered down through the communication link by the slave controller, and then changing the slave controller into a new master controller;
the state query unit is configured for the new main controller to read the state of the state lamp corresponding to the local controller and the states of the state lamps of other controllers;
and the original main light-out unit is configured to be used for the new main controller to control the state light corresponding to the original main controller with power failure to be turned off.
Optionally, as an embodiment of the present invention, the system further includes:
and the state maintaining unit is configured to be used for keeping the state of the lamp equipment corresponding to the current controller unchanged after the current control is changed from the slave controller to the master controller.
Fig. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention, where the terminal 300 may be used to execute a server shared light control method according to the embodiment of the present invention.
Among them, the terminal 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the server shown in the figures is not intended to be limiting, and that it may be a bus architecture, a star architecture, a combination of more or fewer components than shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the master-slave roles are set, the master controller has the authority to control the shared status lamps, and the master controller controls the status lamps of the slave controllers according to the status of the slave controllers, so that the condition lamps are prevented from being disordered due to the fact that multiple controllers control the shared status lamps simultaneously. The invention can thoroughly solve the problem of hardware conflict caused by the simultaneous control of one shared lamp by two controllers, avoid the problem of alarm fault caused by the random change of the lamp state of the shared lamp accessed by the controllers, and has small difficulty and high stability of the realization method. Therefore, the stability of the service product is improved, the labor cost and the material cost of the product caused by the occurrence of the above are reduced, and the technical effect achieved by the embodiment can be seen in the description above, which is not repeated herein.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, indirect coupling or communication connection of systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. A server shared light control method, comprising:
setting a master role and a slave role and setting the master controller to have the authority to control the shared state lamp;
identifying whether the current controller is a master controller:
if yes, controlling the state of the corresponding state lamp according to the current power-on state of the controller;
if not, establishing communication connection with the main controller, and sending the corresponding state lamp control instruction to the main controller;
the method further comprises the following steps:
the slave controller monitors the power failure of the master controller through a communication link, and then the slave controller is changed into a new master controller;
the new master controller reads the state of the local corresponding state lamp and the states of the state lamps of other controllers;
the new master controller controls the state lamp corresponding to the original master controller with power failure to be turned off;
the method further comprises the following steps:
and after the current control is changed from the slave controller to the master controller, the state of the lamp equipment corresponding to the current controller is unchanged.
2. The method of claim 1, further comprising:
after the slave controller system is powered on, establishing communication connection with the master controller, and sending a power-on signal to the master controller;
after receiving the power-on signal, the master controller inquires the state of a corresponding state lamp of the slave controller;
if the corresponding state lamp is in a lamp-out state, the main controller lights the corresponding state lamp;
and if the corresponding state lamp is in a lighting state, the main controller does not execute the operation on the corresponding state lamp.
3. A server-shared light control system, comprising:
the authority setting unit is configured for setting master and slave roles and the master controller has the authority for controlling the shared state lamp;
the master-slave identification unit is configured for identifying whether the current controller is a master controller;
the direct control unit is configured to control the state of the corresponding state lamp according to the power-on state of the current controller if the current controller is a main controller;
the slave control unit is configured to establish communication connection with the master controller and send a corresponding state lamp control instruction to the master controller if the current controller is not the master controller;
the system further comprises:
the master-slave conversion unit is configured for monitoring the master controller to be powered down through the communication link by the slave controller, and then changing the slave controller into a new master controller;
the state query unit is configured for the new main controller to read the state of the state lamp corresponding to the local controller and the states of the state lamps of other controllers;
the original main light-off unit is configured to control the state light corresponding to the original main controller with power failure to be turned off by the new main controller;
the system further comprises:
and the state maintaining unit is configured to be used for keeping the state of the lamp equipment corresponding to the current controller unchanged after the current control is changed from the slave controller to the master controller.
4. The system of claim 3, further comprising:
the slave power-on unit is configured to establish communication connection with the master controller after the slave controller system is powered on, and send a power-on signal to the master controller;
the condition checking unit is configured to inquire the state of a corresponding state lamp of the slave controller after the master controller receives the power-on signal;
the slave lighting unit is configured to light the corresponding state lamp by the master controller if the corresponding state lamp is in a light-off state;
and the slave holding unit is configured to enable the master controller not to execute the operation on the corresponding state lamp if the corresponding state lamp is in a lighting state.
5. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any of claims 1-2.
6. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-2.
CN202011252536.4A 2020-11-11 2020-11-11 Server shared lamp control method, system, terminal and storage medium Active CN112463548B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011252536.4A CN112463548B (en) 2020-11-11 2020-11-11 Server shared lamp control method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011252536.4A CN112463548B (en) 2020-11-11 2020-11-11 Server shared lamp control method, system, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112463548A CN112463548A (en) 2021-03-09
CN112463548B true CN112463548B (en) 2023-01-10

Family

ID=74825418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011252536.4A Active CN112463548B (en) 2020-11-11 2020-11-11 Server shared lamp control method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112463548B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109902014A (en) * 2019-02-28 2019-06-18 苏州浪潮智能科技有限公司 A kind of server system shares method, apparatus, controlled terminal and the storage medium of serial ports

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109902014A (en) * 2019-02-28 2019-06-18 苏州浪潮智能科技有限公司 A kind of server system shares method, apparatus, controlled terminal and the storage medium of serial ports

Also Published As

Publication number Publication date
CN112463548A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN101584152B (en) Network communication system
CN205015712U (en) Zigbee switch of taking scene control function of intelligence house
CN105099789A (en) Network element uploading method and equipment
CN101554092A (en) Method and apparatus for replacing a device in a network
CN106888475B (en) Wireless system processing method, device and base station
CN112463548B (en) Server shared lamp control method, system, terminal and storage medium
CN102081570B (en) A kind of access method of I2C equipment and device
US11604635B2 (en) Online program updating method
CN112261603B (en) Edge thing allies oneself with proxy device based on electric power thing networking
CN110620909A (en) Digital Tally system
CN104052799A (en) Method for achieving high availability storage through resource rings
CN114758715B (en) Method, device and equipment for lighting hard disk fault lamp and readable storage medium
CN106301877A (en) The upgrade method of a kind of Virtual NE and device
CN110113181B (en) Node configuration method, node configuration device, computer device, and readable storage medium
US20210157384A1 (en) Assigning power sources
CN110719236B (en) Single board, back board type exchanger and method for connecting power supply
CN110597205B (en) Control method and device of intelligent power strip, processor and intelligent power strip
CN107864414B (en) ONU customized version switching method and device, storage medium and computer equipment
CN113726543A (en) Operation and maintenance service processing method, device, system, server and storage medium
CN111835902A (en) Device testing method and device, electronic device and storage medium
CN211236889U (en) Circuit for configuring computer BIOS parameters by utilizing single chip microcomputer
CN110633179A (en) Method and device for checking physical lamp of case
CN211319376U (en) Intelligent remote start-stop control device of assembly line
CN115097924B (en) Multi-equipment multiplexing power supply device for server
CN219477981U (en) Intelligent remote start-up monitoring system

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