CN116193686B - Indicator light control method and device, electronic equipment and storage medium - Google Patents

Indicator light control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116193686B
CN116193686B CN202310149037.XA CN202310149037A CN116193686B CN 116193686 B CN116193686 B CN 116193686B CN 202310149037 A CN202310149037 A CN 202310149037A CN 116193686 B CN116193686 B CN 116193686B
Authority
CN
China
Prior art keywords
indicator lamp
state
display
self
display state
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
CN202310149037.XA
Other languages
Chinese (zh)
Other versions
CN116193686A (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.)
Shenzhen Enjoy Technology Co ltd
Original Assignee
Shenzhen Enjoy 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 Shenzhen Enjoy Technology Co ltd filed Critical Shenzhen Enjoy Technology Co ltd
Priority to CN202310149037.XA priority Critical patent/CN116193686B/en
Publication of CN116193686A publication Critical patent/CN116193686A/en
Application granted granted Critical
Publication of CN116193686B publication Critical patent/CN116193686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2315Optimistic concurrency control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The application relates to an indicator light control method, an indicator light control device, electronic equipment and a storage medium, wherein the method comprises the following steps: analyzing the display state of the fixed indicator lamp, and finding out the state quantity corresponding to the display state from an indicator lamp state database, wherein the indicator lamp state database comprises the display setting of the self-defined indicator lamp. And converting the state quantity into a first display state or a second display state, wherein the first display state represents that the fixed indicator lamp state is true, and the second display state represents that the fixed indicator lamp state is false. And acquiring a first action instruction or a second action instruction according to the first display state or the second display state, wherein the first action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is true when the indicator lamp is in the first display state, and the second action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is false when the indicator lamp is in the second display state. The method has higher flexibility under the situation that the display effect of the indicator lamp is various, and reduces the error rate of the display meaning of the indicator lamp to a certain extent.

Description

Indicator light control method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of energy storage inverters, in particular to an indicator lamp control method, an indicator lamp control device, electronic equipment and a storage medium.
Background
The energy storage inverter has various kinds, and the indicator lamps of different energy storage cabinets have different meanings and display effects. The indicator lamp can conveniently display the working state of a system, and the key state of the unit can be identified through eyes without tools. However, if there are different units in the cluster, the meaning of the indicator lamps is various (for example, the indicator lamp of machine a represents a networking state and a fault, and the indicator lamp of machine B represents a fault and an off-network state), which brings inconvenience to maintenance of workers. Or when the energy storage cabinets are replaced, the new energy storage cabinet and the old energy storage cabinet have different display meanings and effects, so that maintenance can be in error due to habit. There are also situations where some states cannot be met in time if the customer wants to intuitively focus on them.
Therefore, the display meaning error rate of the general unit indicator lamp is higher due to the fixity of the display effect, so that the display meaning error rate is easy to cause artificial erroneous judgment to a certain extent, and a plurality of inconveniences are brought to operation and maintenance work.
Disclosure of Invention
Based on this, it is necessary to provide a control method, a device and an electronic device for indicating lamps, which can improve the flexibility of the display effect of the indicating lamps by setting the display effect of the self-defined indicating lamps, further reduce the error rate of the display meaning of the indicating lamps, and is suitable for the requirements of various scenes on the display effect of the indicating lamps, thereby bringing convenience to operation and maintenance work.
In a first aspect, the present application provides an indicator light control method, the method including:
analyzing the display state of the fixed indicator lamp and finding out a state quantity corresponding to the display state from an indicator lamp state database, wherein the indicator lamp state database comprises display settings of the custom indicator lamp;
converting the state quantity into a first display state or a second display state, wherein the first display state represents that the fixed indicator lamp state is true, and the second display state represents that the fixed indicator lamp state is false;
acquiring a first action instruction or a second action instruction according to the first display state or the second display state, wherein the first action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is true when the indicator lamp is in the first display state, and the second action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is false when the indicator lamp is in the second display state;
when the state of the fixed indicator lamp is true, the first display state of the self-defined indicator lamp is the inherent display meaning of the fixed indicator lamp, and when the state of the fixed indicator lamp is false, the second display state of the self-defined indicator lamp is the self-defined display meaning of the fixed indicator lamp.
In one embodiment, the analyzing the display state of the fixed indicator light and finding the state quantity corresponding to the display state from the indicator light state database includes:
and acquiring a modification instruction of the display setting of the self-defined indicator lamp, and updating the display setting of the self-defined indicator lamp in the indicator lamp state database according to the modification instruction.
In one embodiment, the obtaining the first action instruction or the second action instruction according to the first display state or the second display state includes:
and assigning a value to the display setting of the self-defined indicator lamp according to the first action instruction or the second action instruction, wherein the assigned value is used for driving the self-defined indicator lamp to indicate.
In one embodiment, the assignment includes a first assignment and a second assignment, where the first assignment corresponds to the first action instruction, the second assignment corresponds to the second action instruction, and the obtaining the first action instruction or the second action instruction according to the first display state or the second display state includes:
when the display of the self-defined indicator lamp is set to be a first assignment, driving the self-defined indicator lamp to indicate that the state of the user fixed indicator lamp is true;
and when the display of the self-defined indicator lamp is set to be a second assignment, driving the self-defined indicator lamp to indicate that the state of the user fixed indicator lamp is false.
In one embodiment, the method further comprises:
and if the content in the indicator lamp state database is wrong or the display setting of the corresponding self-defined indicator lamp does not exist, acquiring a third action instruction, wherein the third action instruction is used for controlling the self-defined indicator lamp to indicate that the fixed indicator lamp is not in a state.
In one embodiment, the method further comprises:
and when the display state of the fixed indicator lamp is stored in a Boolean format, directly acquiring the first action instruction or the second action instruction.
In a second aspect, the present application provides an indicator light control device, the device comprising:
the analyzing module is used for analyzing the display state of the fixed indicator lamp and finding out the state quantity corresponding to the display state from an indicator lamp state database, wherein the indicator lamp state database comprises the display setting of the self-defined indicator lamp;
the conversion module is used for converting the state quantity into a first display state or a second display state, wherein the first display state represents that the state of the fixed indicator lamp is true, and the second display state represents that the state of the fixed indicator lamp is false;
the first acquisition module is used for acquiring a first action instruction or a second action instruction according to the first display state or the second display state, wherein the first action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is true when the indicator lamp is in the first display state, and the second action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is false when the indicator lamp is in the second display state;
when the state of the fixed indicator lamp is true, the first display state of the self-defined indicator lamp is the inherent display meaning of the fixed indicator lamp, and when the state of the fixed indicator lamp is false, the second display state of the self-defined indicator lamp is the self-defined display meaning of the fixed indicator lamp.
In one embodiment, the apparatus further comprises:
the updating module is used for acquiring a modification instruction of the display setting of the self-defined indicator lamp and updating the display setting of the self-defined indicator lamp in the indicator lamp state database according to the modification instruction;
the assignment module is used for assigning the display setting of the self-defined indicator lamp according to the first action instruction or the second action instruction, and the assignment module is used for driving the self-defined indicator lamp to indicate;
the first driving module is used for driving the self-defined indicator lamp to indicate that the state of the user fixed indicator lamp is true when the display of the self-defined indicator lamp is set to be a first assignment;
the second driving module is used for driving the self-defined indicator lamp to indicate that the state of the user fixed indicator lamp is false when the display of the self-defined indicator lamp is set to be a second assignment;
the second obtaining module is configured to obtain a third action instruction if the content in the indicator lamp state database is wrong or there is no display setting of the corresponding custom indicator lamp, where the third action instruction is used to control the custom indicator lamp to indicate to the user that the fixed indicator lamp is not in a state.
In a third aspect, the present application provides an electronic device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
analyzing the display state of the fixed indicator lamp and finding out a state quantity corresponding to the display state from an indicator lamp state database, wherein the indicator lamp state database comprises display settings of the custom indicator lamp;
converting the state quantity into a first display state or a second display state, wherein the first display state represents that the fixed indicator lamp state is true, and the second display state represents that the fixed indicator lamp state is false;
acquiring a first action instruction or a second action instruction according to the first display state or the second display state, wherein the first action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is true when the indicator lamp is in the first display state, and the second action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is false when the indicator lamp is in the second display state;
when the state of the fixed indicator lamp is true, the first display state of the self-defined indicator lamp is the inherent display meaning of the fixed indicator lamp, and when the state of the fixed indicator lamp is false, the second display state of the self-defined indicator lamp is the self-defined display meaning of the fixed indicator lamp.
In a fourth aspect, the present application provides a computer storage medium storing a computer program which, when executed by a processor, performs the steps of:
analyzing the display state of the fixed indicator lamp and finding out a state quantity corresponding to the display state from an indicator lamp state database, wherein the indicator lamp state database comprises display settings of the custom indicator lamp;
converting the state quantity into a first display state or a second display state, wherein the first display state represents that the fixed indicator lamp state is true, and the second display state represents that the fixed indicator lamp state is false;
acquiring a first action instruction or a second action instruction according to the first display state or the second display state, wherein the first action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is true when the indicator lamp is in the first display state, and the second action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is false when the indicator lamp is in the second display state;
when the state of the fixed indicator lamp is true, the first display state of the self-defined indicator lamp is the inherent display meaning of the fixed indicator lamp, and when the state of the fixed indicator lamp is false, the second display state of the self-defined indicator lamp is the self-defined display meaning of the fixed indicator lamp.
According to the indicator lamp control method, the device, the electronic equipment and the storage medium, the display setting of the custom indicator lamp is acquired and backed up to establish the indicator lamp state database, the current display state of the fixed indicator lamp is analyzed, the state quantity matched with the current display state of the fixed indicator lamp is found in the pre-established indicator lamp state database, the corresponding custom indicator lamp action instruction is acquired according to the found state quantity, and finally the display meaning of the fixed indicator lamp is fed back to a user through the custom indicator lamp through the corresponding action instruction. The method sets the display meaning of the indicator lamp in a self-defined mode, has higher flexibility under the situation that the display effect of the indicator lamp is various, reduces the error rate of the display meaning of the indicator lamp to a certain extent, further reduces human misjudgment and is convenient to manually maintain.
Drawings
FIG. 1 is a flow chart of a method for controlling an indicator light according to one embodiment of the present application;
FIG. 2 is a flow chart of a method for controlling an indicator light according to one embodiment of the present application;
FIG. 3 is a schematic view of the appearance of an indicator control scheme according to one embodiment of the present application;
fig. 4 is a schematic diagram of an indicator film structure of an indicator control scheme of the present embodiment;
FIG. 5 is a schematic diagram of software modules of the indicator light control scheme of the present embodiment;
fig. 6 is a control flow chart of the indicator light control scheme of the present embodiment;
FIG. 7 is a schematic diagram of an indicator light control device according to an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of an indicator light control device according to an embodiment of the present disclosure;
fig. 9 is an internal structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, in one embodiment, a method for controlling an indicator light includes the steps of:
step S110, analyzing the display state of the fixed indicator lamp and finding the state quantity corresponding to the display state from an indicator lamp state database, wherein the indicator lamp state database comprises the display setting of the custom indicator lamp.
Specifically, the service terminal analyzes the display state of the fixed indicator lamp, and finds a state quantity corresponding to the display state of the fixed indicator lamp from an indicator lamp database containing display settings of the custom indicator lamp according to the analysis result.
Step S120, converting the state quantity into a first display state or a second display state, where the first display state indicates that the status of the fixed indicator is true, and the second display state indicates that the status of the fixed indicator is false.
Specifically, the service terminal converts the state quantity found in the indicator light state database and corresponding to the display state of the fixed indicator light into a first display state or a second display state, wherein the first display state indicates that the fixed indicator light state is true, that is, the meaning displayed by the fixed indicator light is correct, the second display state indicates that the fixed indicator light state is false, that is, the meaning displayed by the fixed indicator light is correct, and the actual display meaning of the fixed indicator light is customized through the second display state.
Step S130, a first action instruction or a second action instruction is acquired according to the first display state or the second display state, wherein the first action instruction is used for indicating that the state of the user indicator lamp is true when the fixed indicator lamp is in the first display state, and the second action instruction is used for indicating that the state of the user indicator lamp is false when the fixed indicator lamp is in the second display state.
Specifically, the service terminal acquires a first action instruction or a second action instruction corresponding to the first action instruction or the second action instruction according to the meaning of the first display state or the second display state, wherein the first action instruction is used for indicating that the display meaning of the user indicator lamp is correct when the fixed indicator lamp is in the first display state, and the second action instruction is used for indicating that the display meaning of the user indicator lamp is correct when the fixed indicator lamp is in the second display state.
It should be noted that, when the status of the fixed indicator light is true, the first display status of the self-defined indicator light is the inherent display meaning of the fixed indicator light, and when the status of the fixed indicator light is false, the second display status of the self-defined indicator light is the self-defined display meaning of the fixed indicator light.
According to the indicator lamp control method, the display setting of the self-defined indicator lamp is acquired and backed up to establish the indicator lamp state database, the current display state of the fixed indicator lamp is analyzed, the state quantity matched with the current display state of the fixed indicator lamp is found in the pre-established indicator lamp state database, the corresponding self-defined indicator lamp action instruction is acquired according to the found state quantity, and finally the display meaning of the fixed indicator lamp is fed back to a user through the self-defined indicator lamp by the corresponding action instruction. The method sets the display meaning of the indicator lamp in a self-defined mode, has higher flexibility under the situation that the display effect of the indicator lamp is various, reduces the error rate of the display meaning of the indicator lamp to a certain extent, further reduces human misjudgment and is convenient to manually maintain.
As shown in fig. 2, in one embodiment, a method for controlling an indicator light includes the steps of:
step S210, a modification instruction of the display setting of the self-defined indicator lamp is obtained, and the display setting of the self-defined indicator lamp in the indicator lamp state database is updated according to the modification instruction.
Specifically, the service terminal obtains a modification instruction according to the display setting of the user-defined indicator lamp by the user, and updates the display setting of the user-defined indicator lamp in the indicator lamp state database in real time according to the modification instruction.
Step S220, analyzing the display state of the fixed indicator lamp and finding the state quantity corresponding to the display state from an indicator lamp state database, wherein the indicator lamp state database comprises the display setting of the custom indicator lamp.
Specifically, the service terminal analyzes the display state of the fixed indicator lamp, and finds a state quantity corresponding to the display state of the fixed indicator lamp from an indicator lamp database containing display settings of the custom indicator lamp according to the analysis result.
In step S230, the state quantity is converted into a first display state or a second display state, wherein the first display state indicates that the status of the fixed indicator is true, and the second display state indicates that the status of the fixed indicator is false.
Specifically, the service terminal converts the state quantity found in the indicator light state database and corresponding to the display state of the fixed indicator light into a first display state or a second display state, wherein the first display state indicates that the state of the fixed indicator light is true, that is, the meaning displayed by the fixed indicator light is correct, the second display state indicates that the state of the fixed indicator light is false, that is, the meaning displayed by the fixed indicator light is correct, and the actual display meaning of the fixed indicator light is customized through the second display state of the custom indicator light.
Step S240, acquiring a first action instruction or a second action instruction according to the first display state or the second display state, where the first action instruction is used to indicate that the status of the user indicator is true when the fixed indicator is in the first display state, and the second action instruction is used to indicate that the status of the user indicator is false when the fixed indicator is in the second display state.
Specifically, the service terminal obtains a first action instruction or a second action instruction corresponding to the first action instruction or the second action instruction according to the meaning of the first display state or the second display state, wherein the first action instruction is used for indicating that the display meaning of the user indicator lamp is correct when the fixed indicator lamp is in the first display state, and the second action instruction is used for indicating that the display meaning of the user indicator lamp is correct when the fixed indicator lamp is in the second display state and customizing the display meaning of the fixed indicator lamp through the custom indicator lamp.
And step S250, assigning a value to the display setting of the self-defined indicator lamp according to the first action instruction or the second action instruction, wherein the assigned value is used for driving the self-defined indicator lamp to indicate.
Specifically, the service terminal assigns a value to the display setting of the self-defined indicator lamp in the indicator lamp state database according to the first action instruction or the second action instruction, and drives the self-defined indicator lamp through different assignments.
In step S260, when the assigned value of the display setting of the custom indicator is the first assigned value, the custom indicator is driven to indicate that the status of the user-fixed indicator is true.
Specifically, when the assigned value of the display setting of the corresponding custom indicator light is the first assigned value, the service terminal drives the custom indicator light to indicate that the display meaning of the fixed indicator light of the user is correct, and the inherent display meaning of the fixed indicator light is indicated by the first display state of the custom indicator light.
In step S270, when the assigned value of the display setting of the custom indicator is the second assigned value, the custom indicator is driven to indicate that the status of the user-fixed indicator is false.
Specifically, when the assigned value of the display setting of the corresponding custom indicator light is the second assigned value, the service terminal drives the custom indicator light to indicate that the display meaning of the fixed indicator light of the user is wrong, and indicates the actual display meaning of the fixed indicator light through the second display state of the custom indicator light.
Step S280, if the content in the indicator lamp state database is wrong or the display setting of the corresponding custom indicator lamp does not exist, a third action instruction is obtained, and the third action instruction is used for controlling the custom indicator lamp to indicate that the user fixes the indicator lamp to be in a non-state.
Specifically, if the content in the indicator lamp state database is illegal or the display effect of the corresponding custom indicator lamp is not set by the user, the service terminal can acquire a third action instruction, and control the custom indicator lamp according to the third action instruction to indicate that the state of the fixed indicator lamp of the user cannot be read.
It should be noted that, when the status of the fixed indicator light is true, the first display status of the self-defined indicator light is the inherent display meaning of the fixed indicator light, and when the status of the fixed indicator light is false, the second display status of the self-defined indicator light is the self-defined display meaning of the fixed indicator light.
According to the indicator lamp control method, the display setting of the self-defined indicator lamp is acquired and backed up to establish the indicator lamp state database, the current display state of the fixed indicator lamp is analyzed, the state quantity matched with the current display state of the fixed indicator lamp is found in the pre-established indicator lamp state database, the corresponding self-defined indicator lamp action instruction is acquired according to the found state quantity, and finally the display meaning of the fixed indicator lamp is fed back to a user through the self-defined indicator lamp by the corresponding action instruction. The method sets the display meaning of the indicator lamp in a self-defined mode, has higher flexibility under the situation that the display effect of the indicator lamp is various, reduces the error rate of the display meaning of the indicator lamp to a certain extent, further reduces human misjudgment and is convenient to manually maintain.
As shown in fig. 3 to fig. 6, in one embodiment, an indicator light control scheme is applied to an energy storage cabinet indicator light of an energy storage inverter, a unit indicator light implementing the scheme is defined as a fixed definition area and a user definition area, all indicator lights of the user definition area can be set to be bound with corresponding states of the unit according to requirements, display effects (colors, flickering, brightness and the like corresponding to various logics) can be customized, and after the setting is successful, the indicator lights can be covered and written indicator light meanings can be pasted on a light board for staff to identify.
Before controlling the indicator lights, firstly selecting a certain customized indicator light X, and establishing a relevant setting of the display effect of the indicator light X stored in the structure_Func_light X, and backing up the indicator light X in a permanent storage area for use after the next starting. The structure_func_lightx determines what state quantity of the light set is used to represent, and determines how the light set is operated according to the state quantity, the state quantity is usually in the form of a pool signal, so that only two values are true and false, and how the light set is operated is defined as the following structure:
{
the state of the unit represented by the indicator lamp;
the action of the indicator light when the state is true;
the action of the indicator light when the state is false;
}。
the struct_func_lightx stores the action information of the indicator light LightX, and no backup is needed in the permanent storage area, and the following structures are defined:
{
color;
brightness;
flicker frequency; (defined as 0 when not blinking)
}。
Control indicator lamp is complicated to realize:
when controlling the indicator lights, the user firstly configures the setting items of the indicator lights through the setting interface, realizes the unit states represented by the indicator lights through the drop-down frame, and then updates the content of the struct_func_LightA through the configuration setting module, wherein only the unit states represented by the indicator lights are in the content of the struct_func_LightA, and simultaneously updates the copy of the permanent storage area.
The indicator light state analyzing module analyzes the corresponding mark in the unit state according to the struct_func_light A: the corresponding state quantity is found from the unit state storage area by the "indicator light representative unit state" in the struct_func_lighta, and the true and false states are converted (no conversion is required if the states themselves are stored in boolean format).
Assigning values to the structure_func_lighta according to the self-defined indicator light LightA state, the action of the indicator light when the state is true, and the action of the indicator light when the state is false, and driving the indicator light to act by a driving module according to the assignment in the structure_func_lighta: color, on-off, flashing frequency, etc.
It should be noted that, if the user does not set the custom indicator light LightA, the default action is assigned, and the custom indicator light is turned off.
The control indicator lamp is simple to realize:
firstly, a user configures a setting item of the light A through a setting interface, realizes a unit state represented by an indicator lamp through a drop-down box, and after the user operates, updates the content of the struct_Func_light A through a configuration setting module, wherein only the unit state represented by the indicator lamp is in the content of the struct_Func_light A at the moment, and simultaneously updates a copy of a permanent storage area.
Then, the indicator light state analyzing module analyzes the corresponding mark in the unit state according to the struct_func_lighta: the corresponding state quantity is found from the set state store by means of the "set state represented by the indicator light" in the Struct Func LightA and converted into a true or false state (no conversion is required if the state itself is stored in boolean format).
Finally, driving the indicator lamp to act according to the true and false states through the driving module: color, on-off, flashing frequency, etc.
It should be noted that, if the user does not set the custom indicator light LightA, the default action is assigned, and the custom indicator light is turned off.
According to the control scheme of the indicator lamp, the indicator lamp area is divided into the fixed definition area and the custom area, and a user and after-sales personnel set the custom area of the indicator lamp through a human-computer interface and customize the meaning and action effect of the indicator lamp through a dial mode and the like. Therefore, the scheme has higher flexibility under various situations of display effects of the indicator lamp, reduces the error rate of the display meaning of the indicator lamp to a certain extent, further reduces human misjudgment, and is convenient to manually maintain.
As shown in fig. 7, in one embodiment, an indicator light control device includes an parsing module 710, a converting module 720, and a first obtaining module 730.
The parsing module 710 is configured to parse a display state of the fixed indicator lamp and find a state quantity corresponding to the display state from an indicator lamp state database, where the indicator lamp state database includes display settings of the custom indicator lamp.
The conversion module 720 is configured to convert the state quantity into a first display state or a second display state, where the first display state indicates that the status of the fixed indicator is true, and the second display state indicates that the status of the fixed indicator is false.
The first obtaining module 730 is configured to obtain a first action instruction or a second action instruction according to the first display state or the second display state, where the first action instruction is used to indicate that the status of the user indicator is true when the fixed indicator is in the first display state, and the second action instruction is used to indicate that the status of the user indicator is false when the fixed indicator is in the second display state.
It should be noted that, when the status of the fixed indicator light is true, the first display status of the self-defined indicator light is the inherent display meaning of the fixed indicator light, and when the status of the fixed indicator light is false, the second display status of the self-defined indicator light is the self-defined display meaning of the fixed indicator light.
According to the indicator lamp control device, the display setting of the self-defined indicator lamp is obtained and backed up to establish the indicator lamp state database, the current display state of the fixed indicator lamp is analyzed, the state quantity matched with the current display state of the fixed indicator lamp is found in the pre-established indicator lamp state database, the corresponding self-defined indicator lamp action instruction is obtained according to the found state quantity, and finally the display meaning of the fixed indicator lamp is fed back to a user through the self-defined indicator lamp by the corresponding action instruction. The device sets up the demonstration meaning of pilot lamp through the mode of self-defining, has higher flexibility under the diversified circumstances of pilot lamp display effect, has reduced the error rate that the pilot lamp shows the meaning to a certain extent, and then has reduced artificial misjudgement, and manual maintenance is more convenient.
As shown in fig. 8, in one embodiment, an indicator light control apparatus includes an updating module 810, a parsing module 820, a converting module 830, a first obtaining module 840, an assigning module 850, a first driving module 860, a second driving module 870, and a second obtaining module 880.
The update module 810 is configured to obtain a modification instruction of the display setting of the custom indicator, and update the display setting of the custom indicator in the status database of the indicator according to the modification instruction.
The parsing module 820 is configured to parse a display state of the fixed indicator lamp and find a state quantity corresponding to the display state from an indicator lamp state database, where the indicator lamp state database includes display settings of the custom indicator lamp.
The conversion module 830 is configured to convert the state quantity into a first display state or a second display state, where the first display state indicates that the status of the fixed indicator is true, and the second display state indicates that the status of the fixed indicator is false.
The first obtaining module 840 is configured to obtain the first action instruction or the second action instruction according to the first display state or the second display state.
The assignment module 850 is configured to assign a value to a display setting of the custom indicator according to the first action instruction or the second action instruction, where the assignment is used to drive the custom indicator to indicate.
The first driving module 860 is configured to drive the custom indicator to indicate that the user-fixed indicator is true when the assigned value of the display setting of the custom indicator is the first assigned value.
The second driving module 870 is configured to drive the custom indicator to indicate that the user fixes the status of the indicator to false when the value of the display setting of the custom indicator is the second value.
The second obtaining module 880 is configured to obtain a third action instruction if the content in the indicator state database is wrong or there is no display setting of the corresponding custom indicator, where the third action instruction is used to control the custom indicator to indicate that the user fixes that the indicator is not in state.
It should be noted that, when the status of the fixed indicator light is true, the first display status of the self-defined indicator light is the inherent display meaning of the fixed indicator light, and when the status of the fixed indicator light is false, the second display status of the self-defined indicator light is the self-defined display meaning of the fixed indicator light.
According to the indicator lamp control device, the display setting of the self-defined indicator lamp is obtained and backed up to establish the indicator lamp state database, the current display state of the fixed indicator lamp is analyzed, the state quantity matched with the current display state of the fixed indicator lamp is found in the pre-established indicator lamp state database, the corresponding self-defined indicator lamp action instruction is obtained according to the found state quantity, and finally the display meaning of the fixed indicator lamp is fed back to a user through the self-defined indicator lamp by the corresponding action instruction. The device sets up the demonstration meaning of pilot lamp through the mode of self-defining, has higher flexibility under the diversified circumstances of pilot lamp display effect, has reduced the error rate that the pilot lamp shows the meaning to a certain extent, and then has reduced artificial misjudgement, and manual maintenance is more convenient.
In one embodiment, a computer device is provided, which may be a smart terminal, and the internal structure thereof may be as shown in fig. 9. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by the processor to implement a method of controlling an indicator light.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, an electronic device includes a memory storing a computer program and a processor that implements the steps of the method embodiments described above when the computer program is executed. In one embodiment, a computer storage medium stores a computer program which, when executed by a processor, performs the steps of the method embodiments described above.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-described method embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (10)

1. A method of controlling an indicator light, the method comprising:
analyzing the display state of the fixed indicator lamp and finding out a state quantity corresponding to the display state from an indicator lamp state database, wherein the indicator lamp state database comprises display settings of the custom indicator lamp;
converting the state quantity into a first display state or a second display state, wherein the first display state represents that the fixed indicator lamp state is true, and the second display state represents that the fixed indicator lamp state is false;
acquiring a first action instruction or a second action instruction according to the first display state or the second display state, wherein the first action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is true when the indicator lamp is in the first display state, and the second action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is false when the indicator lamp is in the second display state;
when the state of the fixed indicator lamp is true, the first display state of the self-defined indicator lamp is the inherent display meaning of the fixed indicator lamp, and when the state of the fixed indicator lamp is false, the second display state of the self-defined indicator lamp is the self-defined display meaning of the fixed indicator lamp.
2. The indicator light control method according to claim 1, wherein the parsing the display state of the fixed indicator light and finding a state quantity corresponding to the display state from an indicator light state database, previously comprises:
and acquiring a modification instruction of the display setting of the self-defined indicator lamp, and updating the display setting of the self-defined indicator lamp in the indicator lamp state database according to the modification instruction.
3. The method of claim 1, wherein the obtaining the first action command or the second action command according to the first display state or the second display state comprises:
and assigning a value to the display setting of the self-defined indicator lamp according to the first action instruction or the second action instruction, wherein the assigned value is used for driving the self-defined indicator lamp to indicate.
4. The indicator light control method of claim 3, wherein the assignment values include a first assignment value and a second assignment value, the first assignment value corresponding to the first action instruction and the second assignment value corresponding to the second action instruction, the obtaining the first action instruction or the second action instruction according to the first display state or the second display state, and then comprising:
when the display of the self-defined indicator lamp is set to be a first assignment, driving the self-defined indicator lamp to indicate that the state of the user fixed indicator lamp is true;
and when the display of the self-defined indicator lamp is set to be a second assignment, driving the self-defined indicator lamp to indicate that the state of the user fixed indicator lamp is false.
5. The indicator light control method of claim 1, further comprising:
and if the content in the indicator lamp state database is wrong or the display setting of the corresponding self-defined indicator lamp does not exist, acquiring a third action instruction, wherein the third action instruction is used for controlling the self-defined indicator lamp to indicate that the fixed indicator lamp is not in a state.
6. The indicator light control method of claim 1, further comprising:
and when the display state of the fixed indicator lamp is stored in a Boolean format, directly acquiring the first action instruction or the second action instruction.
7. An indicator light control device, the device comprising:
the analyzing module is used for analyzing the display state of the fixed indicator lamp and finding out the state quantity corresponding to the display state from an indicator lamp state database, wherein the indicator lamp state database comprises the display setting of the self-defined indicator lamp;
the conversion module is used for converting the state quantity into a first display state or a second display state, wherein the first display state represents that the state of the fixed indicator lamp is true, and the second display state represents that the state of the fixed indicator lamp is false;
the first acquisition module is used for acquiring a first action instruction or a second action instruction according to the first display state or the second display state, wherein the first action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is true when the indicator lamp is in the first display state, and the second action instruction is used for fixing the indicator lamp to indicate that the state of the user indicator lamp is false when the indicator lamp is in the second display state;
when the state of the fixed indicator lamp is true, the first display state of the self-defined indicator lamp is the inherent display meaning of the fixed indicator lamp, and when the state of the fixed indicator lamp is false, the second display state of the self-defined indicator lamp is the self-defined display meaning of the fixed indicator lamp.
8. The indicator light control device of claim 7, wherein the device further comprises:
the updating module is used for acquiring a modification instruction of the display setting of the self-defined indicator lamp and updating the display setting of the self-defined indicator lamp in the indicator lamp state database according to the modification instruction;
the assignment module is used for assigning the display setting of the self-defined indicator lamp according to the first action instruction or the second action instruction, and the assignment module is used for driving the self-defined indicator lamp to indicate;
the first driving module is used for driving the self-defined indicator lamp to indicate that the state of the user fixed indicator lamp is true when the display of the self-defined indicator lamp is set to be a first assignment;
the second driving module is used for driving the self-defined indicator lamp to indicate that the state of the user fixed indicator lamp is false when the display of the self-defined indicator lamp is set to be a second assignment;
the second obtaining module is configured to obtain a third action instruction if the content in the indicator lamp state database is wrong or there is no display setting of the corresponding custom indicator lamp, where the third action instruction is used to control the custom indicator lamp to indicate to the user that the fixed indicator lamp is not in a state.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 6 when the computer program is executed.
10. A computer storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 6.
CN202310149037.XA 2023-02-14 2023-02-14 Indicator light control method and device, electronic equipment and storage medium Active CN116193686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310149037.XA CN116193686B (en) 2023-02-14 2023-02-14 Indicator light control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310149037.XA CN116193686B (en) 2023-02-14 2023-02-14 Indicator light control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116193686A CN116193686A (en) 2023-05-30
CN116193686B true CN116193686B (en) 2024-04-16

Family

ID=86444059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310149037.XA Active CN116193686B (en) 2023-02-14 2023-02-14 Indicator light control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116193686B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4583094A (en) * 1983-04-28 1986-04-15 Rockwell International Corporation Solid state attitude director indicator
KR200302472Y1 (en) * 2002-10-09 2003-01-30 임각규 a pilot lamp
CN103582208A (en) * 2012-07-18 2014-02-12 中兴通讯股份有限公司 Indicating lamp control method and device in embedded type equipment
CN205304080U (en) * 2015-12-31 2016-06-08 常州市盈能电气有限公司 Switch cabinet state indicator
CN107632925A (en) * 2017-09-14 2018-01-26 联想(北京)有限公司 A kind of control method and electronic equipment
CN110443328A (en) * 2019-07-22 2019-11-12 杭州沃朴物联科技有限公司 Fake method, device, equipment and medium are tested in identification based on LED antifalsification label
CN110502408A (en) * 2019-08-16 2019-11-26 苏州浪潮智能科技有限公司 A kind of display methods, device, equipment and the medium of storage system indicator light
CN113434372A (en) * 2021-06-10 2021-09-24 浙江大华技术股份有限公司 Method, device, system and storage medium for positioning indication
CN216795446U (en) * 2021-12-24 2022-06-21 深圳市恩玖科技有限公司 Compatible display panel structure
CN115441697A (en) * 2022-10-08 2022-12-06 何娜娜 Power adapter with instruction function

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7782224B2 (en) * 2008-05-13 2010-08-24 Xerox Corporation Customizable indicator light

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4583094A (en) * 1983-04-28 1986-04-15 Rockwell International Corporation Solid state attitude director indicator
KR200302472Y1 (en) * 2002-10-09 2003-01-30 임각규 a pilot lamp
CN103582208A (en) * 2012-07-18 2014-02-12 中兴通讯股份有限公司 Indicating lamp control method and device in embedded type equipment
CN205304080U (en) * 2015-12-31 2016-06-08 常州市盈能电气有限公司 Switch cabinet state indicator
CN107632925A (en) * 2017-09-14 2018-01-26 联想(北京)有限公司 A kind of control method and electronic equipment
CN110443328A (en) * 2019-07-22 2019-11-12 杭州沃朴物联科技有限公司 Fake method, device, equipment and medium are tested in identification based on LED antifalsification label
CN110502408A (en) * 2019-08-16 2019-11-26 苏州浪潮智能科技有限公司 A kind of display methods, device, equipment and the medium of storage system indicator light
CN113434372A (en) * 2021-06-10 2021-09-24 浙江大华技术股份有限公司 Method, device, system and storage medium for positioning indication
CN216795446U (en) * 2021-12-24 2022-06-21 深圳市恩玖科技有限公司 Compatible display panel structure
CN115441697A (en) * 2022-10-08 2022-12-06 何娜娜 Power adapter with instruction function

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
An Evaluation of Stack Light Indicator Color Detection System Using Web Cameras for Automatic Production Lines;Hiroshi Tsutsui;《2019 Asia-Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA ASC)》;20200305;全文 *
UR系列发变组保护装置灵活逻辑浅谈;李彦双;《万方数据库》;20200713;全文 *
新型线路故障指示器设计研究;李华昕;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20200815;全文 *

Also Published As

Publication number Publication date
CN116193686A (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN107230445B (en) A kind of configuration method and device of screen parameter
CN109614101B (en) Page generation method, system, device, computer equipment and storage medium
CN106016607B (en) Air conditioner control method and device
CN107451272B (en) Information display method, medium, device and computing equipment
CN107870835A (en) Hardware adjustment method, system, readable storage medium storing program for executing and intelligent terminal
CN114241964B (en) Simulation lighting method, device and system for special-shaped LED display screen
CN203118411U (en) Light emitting module, light emitting video screen and light emitting video system
CA3056859A1 (en) Window parameter configuration method and system, computer-readable media
CN110442385B (en) Light editing, driving and controlling method, system, equipment and storage medium
CN116193686B (en) Indicator light control method and device, electronic equipment and storage medium
CN107515756A (en) A kind of display and control software implementation method based on display mechanism
CN116628791B (en) Lamp installation guiding method, device, equipment and medium
CN203490926U (en) LED display screen module capable of storing correction data
CN107452306B (en) Tool jig for detecting display panel and detection method thereof
CN112783494A (en) Automatic skeleton screen generation method and device and application page updating method and device
US20200275544A1 (en) Illumination control systems and methods
US20220268473A1 (en) Apparatus management device and software generation method
CN101329459B (en) LCD device and apparatus for processing signals
CN114168482A (en) Test method of vehicle control unit
CN110111732B (en) Brightness adjusting method of spliced screen, display sub-screen of spliced screen and spliced screen
CN105137627A (en) Method and device for partition backlight detection
CN103747577B (en) Gather light fixture and control the method and system of terminal correspondence lamp stand information
CN111427272A (en) KNX bus system scene control method and device
CN110908684A (en) Method and device for updating silk-screen information of configuration page memory
CN117420994A (en) Visual debugging method, device, equipment and system of frequency converter and 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