CN114979176A - Network-based dimming data hot backup method, system, equipment and storage medium - Google Patents

Network-based dimming data hot backup method, system, equipment and storage medium Download PDF

Info

Publication number
CN114979176A
CN114979176A CN202210508731.1A CN202210508731A CN114979176A CN 114979176 A CN114979176 A CN 114979176A CN 202210508731 A CN202210508731 A CN 202210508731A CN 114979176 A CN114979176 A CN 114979176A
Authority
CN
China
Prior art keywords
slave
control
dimming
data
network
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.)
Pending
Application number
CN202210508731.1A
Other languages
Chinese (zh)
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.)
Jiangsu Lingyan Intelligent Technology Co ltd
Original Assignee
Jiangsu Lingyan 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 Jiangsu Lingyan Intelligent Technology Co ltd filed Critical Jiangsu Lingyan Intelligent Technology Co ltd
Priority to CN202210508731.1A priority Critical patent/CN114979176A/en
Publication of CN114979176A publication Critical patent/CN114979176A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/351Switches specially adapted for specific applications for local area network [LAN], e.g. Ethernet switches
    • 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/175Controlling the light source by remote control
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention provides a network-based dimming data hot backup method, a system, equipment and a storage medium, wherein the method comprises the following steps: setting a control end cluster connected to the same Ethernet switch, wherein the control end cluster comprises a host and at least one slave, and the Ethernet switch is connected with and controls the working state of the lamp set; each control end establishes a tree data table comprising dimming parameters and control element state parameters based on the connection relation of the lamps in the lamp group, and the tree data tables of the slave machines carry out data synchronization and configure the states of the corresponding control elements in real time respectively based on the tree data table of the host machine; and the control end sends the heartbeat packets to each other on time, and the slave machines which do not receive the heartbeat packet of the master machine replace the master machine from other slave machines and carry out data synchronization. The invention can ensure that the lamp and the control element can be reliably backed up in real time through the hot backup of the dimming parameter and the state parameter of the control element, so that the slave computer can accurately output instructions and data after finishing the real-time calculation, and the robustness of the system is enhanced.

Description

Network-based dimming data hot backup method, system, equipment and storage medium
Technical Field
The invention relates to the field of lighting control, in particular to a network-based dimming data hot backup method, system, device and storage medium.
Background
In the field of stage lighting, along with more and more abundant applied scenes, the number of lamps required to be controlled by a control system is more and more, and higher requirements are provided for the real-time computing capability of the control system. And a single host can limit the viewing angle of the observed light effect, and is not convenient for being responsible for the light debugging of the scene. The professional stage dimming console needs a large control loop, and the existing large-loop dimming console (more than 2000 loops) uses a standard PC computer system to process a large amount of control data in order to meet the requirements of large-capacity and high-speed data processing, so that a computer system based on the PC system is used as a main processing unit and needs to be managed by adopting an operating system, such as DOS, Windows and the like, and meanwhile, storage devices such as hard disks and the like are also required to be arranged, the system is too complex and expensive, the risk of virus intrusion into the system and breakdown exist, the field performance is interrupted, and the existing PC system has movable memory banks, CPUs, hard disks, ISAs and PCI slots, and system faults can be caused by transportation, humidity, dust, connector oxidation and the like.
At present, the problem of data synchronization of real-time detection cannot be solved by the existing dimming control console, so that troubles are brought to analysis of lamplight operators; moreover, because the stage lighting control device has a large amount of control units (i.e. data sources) such as the push rod potentiometers and the keys as replay tools (for example, 2048-grid data is recorded in each push rod potentiometer), in the conventional control process, only any tool needs to be operated, and all data in the tool needs to participate in calculation, so that the whole calculation data is large, the calculation is slow, the calculation period is far beyond the specified calculation period, and the requirements of the current development cannot be met.
Although the host based on the PC and the powerful embedded processor is widely used to improve the computing power, sometimes a plurality of hosts are needed to complete the whole computation and output, how to better utilize the computing power of the plurality of hosts to share the whole computing power requirement, how to realize the hot backup to ensure the safety of performance activities, how to improve the data transmission efficiency, and other series of problems need to be solved urgently.
In the system, as long as the data table in the network is received by the master/slave, the receiver can synchronously receive and update the data of the sender, and when the sender fails, the receiver can continue working at a breakpoint. The safety of the system can be ensured. The system is disabled only if all the masters/slaves fail and do not receive the data tables. Namely, in the prior art, data synchronization is mainly performed through cold backup, and the cold backup has the defect that the recovery only can be provided to a certain time point when the cold backup is used alone.
In a lighting system, a control party is responsible for real-time calculation and output of data, and does not simply send out a pre-stored instruction set, so that how to maintain process data is extremely important, and because the data changes continuously, the processes need to be backed up in a hot mode, and the process is guaranteed not to be lost when power is cut off, and not only the instruction set is backed up. That is to say: in the lighting system, only the calculated data is meaningless to back up, and all objects must be backed up, so that once a fault occurs, the backup machine can also complete a large amount of real-time calculation and output instructions and data.
Therefore, the invention provides a network-based dimming data hot backup method, system, device and storage medium.
Disclosure of Invention
Aiming at the problems in the prior art, the invention aims to provide a network-based dimming data hot backup method, system, equipment and storage medium, which overcome the difficulties in the prior art, can ensure that both a lamp and a control element can be reliably backed up in real time through hot backup of dimming parameters and state parameters of the control element, ensure that a slave computer accurately outputs instructions and data after completing real-time calculation, and enhance the robustness of the system.
The embodiment of the invention provides a network-based dimming data hot backup method, which comprises the following steps:
setting a control end cluster connected to the same Ethernet switch, wherein the control end cluster comprises a host and at least one slave, and the Ethernet switch is connected with and controls the working state of the lamp set;
each control end establishes a tree data table comprising dimming parameters and control element state parameters based on the connection relation of the lamps in the lamp group, and the tree data tables of the slave machines carry out data synchronization and configure the states of the corresponding control elements in real time respectively based on the tree data table of the host machine; and
and the control terminal sends heartbeat packets to each other on time, and the slave machines which do not receive the heartbeat packet of the master machine replace the master machine from other slave machines and perform data synchronization.
Preferably, the setting is connected to a control end cluster of the same ethernet switch, the control end cluster includes a master and at least one slave, the ethernet switch connects and controls the operating state of the lamp group, and the method further includes:
and the Ethernet switch establishes a mapping relation table, and establishes a mapping relation between the name of the control end of each control end and the corresponding MAC address, IP address and Session ID.
Preferably, each control end establishes a tree data table including a dimming parameter and a control element state parameter based on a connection relationship of lamps in the lamp group, and the tree data table of the slave machine performs data synchronization and configures the state of the corresponding control element in real time based on the tree data table of the master machine, including the following steps:
each control terminal establishes a tree data table based on the connection relation of the lamps in the lamp group, each node in the tree data table stores the dimming parameter of a lamp node and the state parameter of a control element for controlling the lamp node,
the tree data tables of the slave machines are respectively based on the tree data table of the host machine for data synchronization;
the control state parameter configures the state of the corresponding control in real time.
Preferably, each control terminal establishes a tree data table based on a connection relationship between the lamps in the lamp group, each node in the tree data table stores a dimming parameter of a lamp node and a control element state parameter for controlling the lamp node, and the method further includes:
the control element state parameters at least comprise the key state of the control element and/or the current position of the control element in the control stroke.
Preferably, the control terminal sends heartbeat packets to each other on time, and the slave machines which do not receive the heartbeat packet of the master machine replace the master machine from other slave machines and perform data synchronization, including the following steps:
the control terminals send heartbeat packets to each other on time;
when any slave machine only receives the heartbeat packets of other slave machines and does not receive the heartbeat packet of the master machine, the slave machine takes the other slave machine which is the most front in the preset ranking sequence as the master machine of the slave machine and carries out data synchronization.
Preferably, the control terminal sends heartbeat packets to each other on time, and the slave machines which do not receive the heartbeat packet of the master machine replace the master machine from other slave machines and perform data synchronization, further comprising the following steps:
when the host computer still does not receive the heartbeat packet of any slave computer after overtime, deleting the slave computer from the mapping relation table and informing other slave computers;
when a lost connection host reappears to be on-line, the current host adds the lost connection host into the mapping relation table as a slave and informs other slaves.
Preferably, the control terminal sends heartbeat packets to each other on time, and the slave machines which do not receive the heartbeat packet of the master machine replace the master machine from other slave machines and perform data synchronization, further comprising:
the heartbeat packet at least comprises at least one of a control end name, an MAC address, an IP address and a Session ID, and the frequency of the heartbeat packet is 20HZ to 40 HZ.
The embodiment of the present invention further provides a network-based dimming data hot backup system, which is used for implementing the network-based dimming data hot backup method, and the network-based dimming data hot backup system includes:
the control end cluster module is used for setting a control end cluster connected to the same Ethernet switch, the control end cluster comprises a host and at least one slave, and the Ethernet switch is connected with and controls the working state of the lamp set;
the control element synchronization module is used for establishing a tree data table comprising dimming parameters and control element state parameters by each control end based on the connection relation of the lamps in the lamp group, and the tree data table of the slave computer is used for carrying out data synchronization and configuring the state of the corresponding control element in real time based on the tree data table of the host computer; and
and the control end mutually sends heartbeat packets on time, and the slave machines which do not receive the heartbeat packet of the master machine replace the master machine from other slave machines and perform data synchronization.
The embodiment of the invention also provides a network-based dimming data hot backup device, which comprises:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the network-based dimming data hot backup method described above via execution of the executable instructions.
Embodiments of the present invention also provide a computer-readable storage medium for storing a program, which when executed, implements the steps of the network-based dimming data hot backup method described above.
The invention aims to provide a network-based dimming data hot backup method, a network-based dimming data hot backup system, network-based dimming data hot backup equipment and a network-based dimming data hot backup storage medium, which can ensure that both a lamp and a control element can be reliably backed up in real time through hot backup of dimming parameters and state parameters of the control element, so that a slave computer can accurately output instructions and data after completing real-time calculation, and the robustness of the system is enhanced.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, with reference to the accompanying drawings.
Fig. 1 is a flowchart of a network-based dimming data hot backup method according to the present invention.
Fig. 2 is a schematic diagram of a system architecture in the network-based dimming data hot backup method according to the present invention.
Fig. 3 is a schematic diagram of a tree data table in the network-based dimming data hot backup method according to the present invention.
Fig. 4 is a schematic block diagram of the network-based dimming data hot backup system of the present invention.
Fig. 5 is a schematic structural diagram of the network-based dimming data hot backup device of the present invention.
Fig. 6 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present application is provided by way of specific examples, and other advantages and effects of the present application will be readily apparent to those skilled in the art from the disclosure herein. The present application is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present application. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings so that those skilled in the art to which the present application pertains can easily carry out the present application. The present application may be embodied in many different forms and is not limited to the embodiments described herein.
Reference throughout this specification to "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," or the like, means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. Furthermore, the particular features, structures, materials, or characteristics shown may be combined in any suitable manner in any one or more embodiments or examples. Moreover, various embodiments or examples and features of different embodiments or examples presented in this application can be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the feature. In the expressions of this application, "plurality" means two or more unless explicitly defined otherwise.
In order to clearly explain the present application, components that are not related to the description are omitted, and the same reference numerals are given to the same or similar components throughout the specification.
Throughout the specification, when a device is referred to as being "connected" to another device, this includes not only the case of being "directly connected" but also the case of being "indirectly connected" with another element interposed therebetween. In addition, when a device "includes" a certain component, unless otherwise stated, the device does not exclude other components, but may include other components.
When a device is said to be "on" another device, this may be directly on the other device, but may also be accompanied by other devices in between. When a device is said to be "directly on" another device, there are no other devices in between.
Although the terms first, second, etc. may be used herein to describe various elements in some instances, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, the first interface and the second interface are represented. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, items, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the singular forms "a", "an" and "the" include plural forms as long as the words do not expressly indicate a contrary meaning. The terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, regions, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of other features, regions, integers, steps, operations, elements, components, and/or groups thereof.
Although not defined differently, including technical and scientific terms used herein, all terms have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. Terms defined in commonly used dictionaries are to be additionally interpreted as having meanings consistent with those of related art documents and the contents of the present prompts, and must not be excessively interpreted as having ideal or very formulaic meanings unless defined.
Fig. 1 is a flowchart of a network-based dimming data hot backup method according to the present invention. As shown in fig. 1, an embodiment of the present invention provides a network-based dimming data hot backup method, including the following steps:
s110, setting a control end cluster connected to the same Ethernet switch, wherein the control end cluster comprises a host and at least one slave, and the Ethernet switch is connected with and controls the working state of the lamp set.
And S120, each control end establishes a tree data table comprising dimming parameters and control element state parameters based on the connection relation of the lamps in the lamp group, and the tree data tables of the slave machines carry out data synchronization and configure the states of the corresponding control elements in real time respectively based on the tree data table of the master machine. And
s130, the control end sends heartbeat packets to each other on time, and the slave machines which do not receive the heartbeat packet of the master machine replace the master machine from other slave machines and perform data synchronization.
In a preferred embodiment, step S110 further includes:
the ethernet switch establishes a mapping relationship table, and establishes a mapping relationship between the name of the control end of each control end and the corresponding MAC address, IP address, and Session ID, but not limited thereto.
In a preferred embodiment, step S120 includes the following steps:
s121, each control end establishes a tree data table based on the connection relation of lamps in the lamp group, each node in the tree data table stores the dimming parameter of a lamp node and the state parameter of a control element for controlling the lamp node,
and S122, the tree data tables of the slave machines are respectively based on the tree data table of the master machine to carry out data synchronization.
And S123, configuring the state of the corresponding control part in real time according to the control part state parameters, but not limited to the above.
In a preferred embodiment, in step S121, the control status parameter at least includes a key status of the control and/or a current position of the control in the control stroke, but not limited thereto.
In a preferred embodiment, step S130 includes the following steps:
s131, the control end sends heartbeat packets to each other on time.
And S132, when any slave receives only the heartbeat packets of other slaves but does not receive the heartbeat packet of the master, the slave uses another slave at the top in the preset ranking order as the master of the slave to perform data synchronization, but not limited thereto.
In a preferred embodiment, step S130 further includes the following steps:
and S133, when the master computer still does not receive the heartbeat packet of any slave computer after timeout, deleting the slave computer from the self-mapping relation table and informing other slave computers.
S134, when a lost connection master re-applies for online, the current master adds the lost connection master as a slave in the mapping relationship table, and notifies other slaves, but not limited thereto.
In a preferred embodiment, in step S130, the heartbeat packet at least includes at least one of a control end name, a MAC address, an IP address, and a Session ID (Session identifier), and the frequency of the heartbeat packet is 20HZ to 40HZ, but not limited thereto.
After the invention is used, the method for synchronizing the states of the sensing encoder/push rod type control devices comprises the following steps: the lamplight engineer operates a data input unit of A, a service logic and calculation unit of A records the state of the device, the input unit is connected with A through an industrial bus, including but not limited to data transmission protocols such as CAN/RS485/RS232, specifically, newly adding/deleting/changing objects and values, performing streaming processing, and throwing the objects and the values into a network, and after the rest B/C/D … are received, performing combination processing, and reversely controlling the state of the device through a working bus of B, such as the position of an electric push rod, the on-off of an indicator light and the like. In fact, what we call as a hot backup is synchronization that must include a control device of an input data unit, for example, a is currently a host, a user is controlling through a, a failure occurs suddenly, B takes over the work to become the host, the user continues to operate through B, the content of the operation is undoubtedly the beginning of "power off" when the failure of a continues to occur, if the control device of B is not synchronized with a in real time, abrupt change of data occurs when the user starts to operate B to control, and an error of a control instruction is caused. Specifically, for example, the electric push rod is used as a potentiometer, one function of the potentiometer is to control the brightness of light, if A is controlled to be 100%, a fault occurs at the moment, B takes over, if the electric push rod of B is above 0%, if the electric push rod of B is not synchronized to be 100%, an error instruction is sent, and therefore the real-time synchronization of the states of the control devices is needed.
A master-slave switching mechanism: the master machine and each slave machine form a management group, the master machine has management authority and can invite a certain slave machine to join in the Session, or force a certain slave machine to leave the Session, the slave machine can only apply for joining in the Session, and whether the slave machine can join is determined by the master machine. All machine local of the management group has a management group device list, which includes basic information of all devices, such as MAC address, IP address, Session ID, name, etc. Each member of the "management group", including the host, sends a "heartbeat packet" to the network, which generally takes a frequency of approximately 20-40HZ and contains the basic information.
When any slave machine is overtime and does not receive the heartbeat packet of the master machine, and simultaneously can receive the heartbeat packets of any other member, the master machine is considered to be lost, the former slave machine is called as a new master machine according to the sequence in the list, in the above situation, when only one slave machine exists, the slave machine is changed into the new master machine, and at this time, the management group is the slave machine. And when the master computer is overtime and cannot receive any slave computer heartbeat packet, forcibly leaving the slave computer from the session, deleting the slave computer from the equipment table, and informing other members of the management group, wherein when only one slave computer exists, the slave computer is the master computer in the management group. When a certain 'host' which is lost is applied for online again, the incumbent host finds that the host is also the Master identity and the session ID is the same, and the incumbent host judges whether to allow the host to join the session and requires to change the identity of the host to be a slave, for example, if the network cable of the host is unplugged and plugged, the above situation occurs.
The hot backup in the invention can be a method for backing up the database by adopting an archivelog mode under the condition that the database is operated. I.e. hot backup, is a backup in which the system is in a normal operating state. Therefore, if you have a cold backup and a hot backup file, more information can be recovered using these data when a problem occurs. Hot backup requires that the database operate in Archivelog () mode and requires a large amount of archive space. Once the database is running in the archivelog state, a backup may be made.
1. The hot backup refers to that under normal conditions, two redundancies work simultaneously, when a certain redundancy fails, the system can cut off the failure redundancy, start a single redundancy mode and degrade work.
2. In the running state, the switch blades are all at the switch-on position, and all relay protection and automatic control devices are put into, control, signal, switch-on and protection power supplies are all sent
3. Other advantages of using hot standby with the switch off and the blade in the on position include:
1. the backup can be carried out in tablespace or at the file level of the database, and the backup time is short.
2. The database is still available at the time of backup.
3. A second level recovery (to some point in time) can be achieved.
4. Recovery can be made to almost all database entities
5. Recovery is fast, in most cases while the database is still working.
The network-based dimming data hot backup method can ensure that both the lamp and the control element can be reliably backed up in real time through the hot backup of the dimming parameter and the state parameter of the control element, so that the slave computer can accurately output instructions and data after completing real-time calculation, and the robustness of the system is enhanced.
The specific embodiment of the invention is as follows:
fig. 2 is a schematic diagram of a system architecture in the network-based dimming data hot backup method according to the present invention. Fig. 3 is a schematic diagram of a tree data table in the network-based dimming data hot backup method of the present invention. As shown in figures 2 and 3 of the drawings,
a control end cluster connected to the same Ethernet switch 2 is arranged, the control end cluster comprises a master 11 and three slaves 12, 13 and 14, and the Ethernet switch 2 is connected with and controls the working states of lamp sets (31, 32, 33 … … 3N). And establishing a mapping relation table in the Ethernet switch, wherein the mapping relation table comprises the name of the control end of each control end and the corresponding MAC address, IP address and Session ID.
And each control end establishes a tree data table based on the connection relation of lamps in the lamp group, and each node in the tree data table stores the dimming parameter of a lamp node and the state parameter of a control element for controlling the lamp node. And the tree data tables of the slave machines are respectively based on the tree data table of the master machine for data synchronization. The control state parameters configure the state of the corresponding control in real time. Wherein the control member state parameter at least comprises the key state of the control member and/or the current position of the control member in the control stroke. Referring to fig. 3, one or more data tables with tree structures are designed to store data results of the service logic and the computing unit, and all objects and values corresponding to the objects. The data table adopts a C + + object-oriented conceptual design, various types are derived from the basic types step by step, and data are stored in the class member objects. The objects of each class are the "nodes" in the tree data table. And after the programs of the respective service units of the master and the slave are started, establishing the data table in respective memories, and continuously changing the data table according to the change of the services. The changes in the data table are: three types are added/deleted/numerical changed. And adding an object, namely a node, adding the object, deleting the object, namely deleting the object, wherein the value change refers to the change of the value of the member object.
The master 11 and the three slaves 12, 13 and 14 send heartbeat packets to each other in time. When the slave 14 receives only the heartbeat packets of the other slaves 12 and 13 and does not receive the heartbeat packet of the master 11 (the master 11 fails suddenly), the slave takes the other slave 12 in the preset ranking sequence (in the embodiment, the preset ranking sequence is the master 11, the slaves 12, the slaves 13 and the slaves 14) which is the most front slave 12 as the master of the slave 14 and performs data synchronization.
Since the slave 12 takes over the work to become the master, the user continues to operate through the slave 12 at this time, the operation content is undoubtedly the 'power-off' start when the fault of the master 11 occurs, the dimming parameters of all the lights and the state parameters of the control elements correspondingly controlling the lights are completely hot-backed up, the control strokes of the control elements corresponding to the state parameters of the control elements are associated with the current dimming parameters, and the real-time synchronization of the states of the control elements ensures that the subsequent control instructions cannot generate errors.
Or, when an offline master 11 re-applies for online, the current master 12 adds the offline master 11 as a slave in the mapping relationship table, and notifies other slaves. The heartbeat packet at least comprises at least one of a control end name, an MAC address, an IP address and a Session ID, and the frequency of the heartbeat packet is 20HZ to 40 HZ.
Or, when the master 11 still does not receive the heartbeat packet of any slave 13 after time out, the slave 13 is deleted from the mapping relation table and notified to other slaves 12 and 14.
Fig. 4 is a schematic block diagram of the network-based dimming data hot backup system of the present invention. As shown in fig. 4, an embodiment of the present invention further provides a network-based hot backup system for dimming data, which is used to implement the above network-based hot backup method for dimming data, and the network-based hot backup system for dimming data includes:
the control end cluster module 51 is configured to set a control end cluster connected to the same ethernet switch, where the control end cluster includes a master and at least one slave, and the ethernet switch is connected to and controls the operating state of the lamp set.
The control element synchronization module 52 is configured to enable each control end to establish a tree data table including dimming parameters and control element state parameters based on the connection relationship of the lamps in the lamp group, and the tree data tables of the slave machines perform data synchronization and configure the states of the corresponding control elements in real time respectively based on the tree data table of the master machine. And
the loss of connection adaptive module 53 is configured to enable the control end to send heartbeat packets to each other on time, and the slave which does not receive the heartbeat packet of the master replaces the master from other slaves and performs data synchronization.
In a preferred embodiment, the control end cluster module 51 is configured to establish a mapping relationship table in the ethernet switch, and establish a mapping relationship between the control end name of each control end and the corresponding MAC address, IP address, and Session ID.
In a preferred embodiment, the control synchronization module 52 is configured to enable each control terminal to establish a tree data table based on the connection relationship of the lamps in the lamp group, wherein each node in the tree data table stores the dimming parameter of a lamp node and the control status parameter of the control lamp node. And the tree data tables of the slave machines are respectively based on the tree data table of the master machine for data synchronization. The control state parameters configure the state of the corresponding control in real time. The control element state parameters at least comprise the key state of the control element and/or the current position of the control element in the control stroke.
In a preferred embodiment, the loss of connection adaptation module 53 is configured to cause the control terminals to mutually send heartbeat packets in time. When any slave machine only receives the heartbeat packets of other slave machines and does not receive the heartbeat packet of the master machine, the slave machine takes the other slave machine which is the most front slave machine in the preset ranking sequence as the master machine of the slave machine and carries out data synchronization. And when the master computer is overtime and does not receive the heartbeat packet of any slave computer, deleting the slave computer from the mapping relation table and informing other slave computers. When a lost connection host reappears to be on-line, the current host adds the lost connection host into the mapping relation table as a slave and informs other slaves. The heartbeat packet at least comprises at least one of a control end name, an MAC address, an IP address and a Session ID, and the frequency of the heartbeat packet is 20HZ to 40 HZ.
The network-based dimming data hot backup system can ensure that both the lamp and the control element can be reliably backed up in real time through hot backup of the dimming parameter and the state parameter of the control element, so that the slave computer can accurately output instructions and data after completing real-time calculation, and the robustness of the system is enhanced.
The embodiment of the invention also provides a network-based dimming data hot backup device, which comprises a processor. A memory having stored therein executable instructions of the processor. Wherein the processor is configured to perform the steps of the network-based dimming data hot backup method via execution of the executable instructions.
As shown above, the network-based dimming data hot backup system of the embodiment of the invention can ensure that both the lamp and the control element can be reliably backed up in real time through hot backup of the dimming parameter and the state parameter of the control element, so that the slave computer can accurately output instructions and data after completing real-time calculation, and the robustness of the system is enhanced.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module, "or" platform.
Fig. 5 is a schematic structural diagram of the network-based dimming data hot backup device of the present invention. An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 5. The electronic device 600 shown in fig. 5 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different platform components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores program code executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention described in the above-mentioned electronic prescription flow processing method section of the present specification. For example, processing unit 610 may perform the steps as shown in fig. 1.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, to name a few.
The embodiment of the invention also provides a computer-readable storage medium for storing a program, and the steps of the network-based dimming data hot backup method are realized when the program is executed. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the invention described in the above-mentioned electronic prescription flow processing method section of this specification, when the program product is run on the terminal device.
As shown above, the network-based dimming data hot backup system of the embodiment of the invention can ensure that both the lamp and the control element can be reliably backed up in real time through hot backup of the dimming parameter and the state parameter of the control element, so that the slave computer can accurately output instructions and data after completing real-time calculation, and the robustness of the system is enhanced.
Fig. 6 is a schematic structural diagram of a computer-readable storage medium of the present invention. Referring to fig. 6, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, the present invention is directed to a network-based hot backup method, system, device and storage medium for dimming data, which can ensure that both a lamp and a control element can be reliably backed up in real time through hot backup of a dimming parameter and a state parameter of the control element, so that a slave computer can accurately output instructions and data after performing real-time calculation, thereby enhancing the robustness of the system.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. A network-based dimming data hot backup method is characterized by comprising the following steps:
setting a control end cluster connected to the same Ethernet switch, wherein the control end cluster comprises a host and at least one slave, and the Ethernet switch is connected with and controls the working state of the lamp set;
each control end establishes a tree data table comprising dimming parameters and control element state parameters based on the connection relation of the lamps in the lamp group, and the tree data tables of the slave machines carry out data synchronization and configure the states of the corresponding control elements in real time respectively based on the tree data table of the host machine; and
and the control terminal sends heartbeat packets to each other on time, and the slave machines which do not receive the heartbeat packet of the master machine replace the master machine from other slave machines and perform data synchronization.
2. The network-based dimming data hot backup method of claim 1, wherein the control end cluster connected to the same ethernet switch is set, the control end cluster comprises a master and at least one slave, the ethernet switch is connected to and controls the working status of the lamp sets, further comprising:
and the Ethernet switch establishes a mapping relation table, and establishes a mapping relation between the name of the control end of each control end and the corresponding MAC address, IP address and Session ID.
3. The network-based hot backup method for dimming data of claim 1, wherein each control end establishes a tree data table including dimming parameters and control element status parameters based on the connection relationship of the lamps in the lamp group, and the tree data table of the slave performs data synchronization and real-time configuration of the corresponding control element status based on the tree data table of the master respectively, comprising the following steps:
each control end establishes a tree-shaped data table based on the connection relation of lamps in the lamp group, and each node in the tree-shaped data table stores the dimming parameter of a lamp node and the state parameter of a control element for controlling the lamp node;
the tree data tables of the slave machines are respectively based on the tree data table of the host machine for data synchronization;
the control state parameter configures a state of the corresponding control in real time.
4. The network-based hot backup method for dimming data of claim 3, wherein each control terminal establishes a tree data table based on connection relationships of the lamps in the lamp group, each node in the tree data table storing dimming parameters of a lamp node and control status parameters for controlling the lamp node, further comprising:
the control element state parameters at least comprise the key state of the control element and/or the current position of the control element in the control stroke.
5. The network-based dimming data hot backup method as claimed in claim 2, wherein the control terminal mutually sends heartbeat packets on time, and the slave which does not receive the heartbeat packet of the master replaces the master from other slaves and performs data synchronization, comprising the steps of:
the control terminals send heartbeat packets to each other on time;
when any slave machine only receives the heartbeat packets of other slave machines and does not receive the heartbeat packet of the master machine, the slave machine takes the other slave machine which is the most front in the preset ranking sequence as the master machine of the slave machine and carries out data synchronization.
6. The network-based dimming data hot backup method as claimed in claim 5, wherein the control terminal sends heartbeat packets to each other on time, and the slave which does not receive the heartbeat packet of the master replaces the master from other slaves and performs data synchronization, further comprising the steps of:
when the host computer still does not receive the heartbeat packet of any slave computer after overtime, deleting the slave computer from the mapping relation table and informing other slave computers;
when a lost connection host reappears to be online, the current host adds the lost connection host into the mapping relation table as a slave and informs other slaves.
7. The network-based dimming data hot backup method as claimed in claim 5, wherein the control terminal mutually sends heartbeat packets on time, and the slave which does not receive the heartbeat packet of the master replaces the master from other slaves and performs data synchronization, further comprising:
the heartbeat packet at least comprises at least one of a control end name, an MAC address, an IP address and a Session ID, and the frequency of the heartbeat packet is 20HZ to 40 HZ.
8. A network-based dimming data hot backup system for implementing the network-based dimming data hot backup method of claim 1, comprising:
the control end cluster module is used for setting a control end cluster connected to the same Ethernet switch, the control end cluster comprises a host and at least one slave, and the Ethernet switch is connected with and controls the working state of the lamp set;
the control element synchronization module is used for establishing a tree data table comprising dimming parameters and control element state parameters by each control end based on the connection relation of the lamps in the lamp group, and the tree data tables of the slave machines are respectively used for carrying out data synchronization based on the tree data table of the host machine and configuring the state of the corresponding control element in real time; and
and the control end mutually sends heartbeat packets according to time, and the slave machines which do not receive the heartbeat packet of the master machine replace the master machine from other slave machines and perform data synchronization.
9. A network-based dimming data hot backup device, comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the network-based dimming data hot standby method of any one of claims 1 to 7 via execution of the executable instructions.
10. A computer-readable storage medium storing a program which, when executed by a processor, performs the steps of the network-based dimming data hot backup method of any one of claims 1 to 7.
CN202210508731.1A 2022-05-11 2022-05-11 Network-based dimming data hot backup method, system, equipment and storage medium Pending CN114979176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210508731.1A CN114979176A (en) 2022-05-11 2022-05-11 Network-based dimming data hot backup method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210508731.1A CN114979176A (en) 2022-05-11 2022-05-11 Network-based dimming data hot backup method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114979176A true CN114979176A (en) 2022-08-30

Family

ID=82982066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210508731.1A Pending CN114979176A (en) 2022-05-11 2022-05-11 Network-based dimming data hot backup method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114979176A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009142577A (en) * 2007-12-18 2009-07-02 Iom Kk Heartbeat telemeter system
US7587465B1 (en) * 2002-04-22 2009-09-08 Cisco Technology, Inc. Method and apparatus for configuring nodes as masters or slaves
CN103095845A (en) * 2013-01-31 2013-05-08 汉柏科技有限公司 Method and system achieving distribution type communication
CN104424680A (en) * 2013-09-04 2015-03-18 苏州元澄智能科技有限公司 Entrance guard redundancy control system
WO2015061236A1 (en) * 2013-10-21 2015-04-30 Heinz Grether Pc A video and lighting control synchronizing system
CN104837168A (en) * 2014-02-12 2015-08-12 华为技术有限公司 Method and system for switching devices, and devices
CN110262449A (en) * 2019-06-05 2019-09-20 上海航天控制技术研究所 A kind of carrier rocket test transmitting process autocontrol method based on two-shipper principal and subordinate's redundancy
US20210051301A1 (en) * 2019-08-16 2021-02-18 Yealink (Xiamen) Network Technology Co., Ltd. Multi-device recording synchronization method and system, and conference system
CN112954819A (en) * 2019-12-11 2021-06-11 华为技术有限公司 Equipment networking method, electronic equipment and system
CN114326366A (en) * 2021-12-02 2022-04-12 珠海格力电器股份有限公司 Soft redundancy control system and configuration method thereof

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7587465B1 (en) * 2002-04-22 2009-09-08 Cisco Technology, Inc. Method and apparatus for configuring nodes as masters or slaves
JP2009142577A (en) * 2007-12-18 2009-07-02 Iom Kk Heartbeat telemeter system
CN103095845A (en) * 2013-01-31 2013-05-08 汉柏科技有限公司 Method and system achieving distribution type communication
CN104424680A (en) * 2013-09-04 2015-03-18 苏州元澄智能科技有限公司 Entrance guard redundancy control system
WO2015061236A1 (en) * 2013-10-21 2015-04-30 Heinz Grether Pc A video and lighting control synchronizing system
CN104837168A (en) * 2014-02-12 2015-08-12 华为技术有限公司 Method and system for switching devices, and devices
CN110262449A (en) * 2019-06-05 2019-09-20 上海航天控制技术研究所 A kind of carrier rocket test transmitting process autocontrol method based on two-shipper principal and subordinate's redundancy
US20210051301A1 (en) * 2019-08-16 2021-02-18 Yealink (Xiamen) Network Technology Co., Ltd. Multi-device recording synchronization method and system, and conference system
CN112954819A (en) * 2019-12-11 2021-06-11 华为技术有限公司 Equipment networking method, electronic equipment and system
CN114326366A (en) * 2021-12-02 2022-04-12 珠海格力电器股份有限公司 Soft redundancy control system and configuration method thereof

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
KYLE BANKER: "《MONGODB实战》", 28 February 2017, 华中科技大学出版社, pages: 282 *
Y. WANG: "Research on Master-Slave Hand Control Method Based on Force/Position Hybrid Feedbac", 《2021 IEEE INTERNATIONAL CONFERENCE ON POWER, INTELLIGENT COMPUTING AND SYSTEMS (ICPICS)》 *
张爽娜: "一种单低轨星北斗备份与辅助方法及在轨验证", 《导航定位与授时》 *
钟海林: "基于RapidIO总线的机载显示器通信系统设计与实现", 《电子技术与软件工程》 *

Similar Documents

Publication Publication Date Title
CN109451065B (en) Soft load balancing and shunting automation system and operation method thereof
US11249788B2 (en) Cloud management platform, and virtual machine management method and system
CN110995480B (en) Block chain network deployment method, device, electronic equipment and medium
JP2006163963A (en) Failover method due to disk takeover
CN104243205A (en) Message processing method and device used during virtual switch fault
US9231779B2 (en) Redundant automation system
WO2018137520A1 (en) Service recovery method and apparatus
US7499987B2 (en) Deterministically electing an active node
WO2019232931A1 (en) Node exception processing method and system, device and computer-readable storage medium
CN110781157A (en) Backup and recovery method and device based on NAS
JP2016177716A (en) Redundancy pc system
US20080285469A1 (en) Computer replacing redundant communication routes, and programs and method for the same
JP2004088570A (en) Network computer system and management device
JPH09259096A (en) System for enhancing reliability of network
CN105677589A (en) Access control method, access control device and access control system
CN112104576B (en) Resident flow table storage and calibration method of SDN switch
CN117459482A (en) Restarting method and device of switch, storage medium and electronic device
CN111273577B (en) Facility monitoring system and communication method for facility monitoring system
CN114979176A (en) Network-based dimming data hot backup method, system, equipment and storage medium
CN111162938A (en) Data processing system and method
JP2003345620A (en) Process monitoring method for multi-node cluster system
CN112711527B (en) Debugging method and device for real-time process, target machine and storage medium
CN114900533A (en) Dimming data synchronization method, system, equipment and storage medium based on Ethernet
CN114563945A (en) Controller redundancy switching method based on virtualization technology
JPH08235132A (en) Hot stand-by control method for multiserver 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