A data path switching device and method for lighting master control

By introducing a combination of FPGA and MCU in the LED lighting control system, flexible switching of data paths is achieved, and the lighting control interruption caused by main control equipment failure or network abnormality is solved, ensuring the stability and reliability of the system.

CN119356160BActive Publication Date: 2025-04-15JIANGMEN SIYU TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411367073.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-04-15
Estimated Expiration
2044-09-29

AI Technical Summary

Technical Problem

In LED lighting control system, when the main control device such as PC suddenly shuts down, software crashes or network connection is unstable, the system cannot work properly, resulting in interruption of lighting control.

Method used

Design a data path switching device for lighting master control, and use the combination of FPGA and MCU to achieve flexible switching of data paths. When a host failure or network abnormality is detected, it automatically switches to offline mode, reads pre-stored light data from the built-in storage medium, and continues to control the LED lights.

Benefits of technology

It ensures the stability and reliability of the lighting control system in the event of host failure or network abnormality, avoids interruption of lighting effects, and realizes the continuity and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356160B_ABST
    Figure CN119356160B_ABST
Patent Text Reader

Abstract

The present invention discloses a data path switching device and method for a lighting master control, the device comprising: a main control module, a sub-control module and a host; the main control module is connected to the sub-control module in communication, the sub-control module is connected to the host; the main control module is connected to the host in communication; the main control module comprises an MCU sub-module, an FPGA sub-module, a first Ethernet interface chip and a second Ethernet interface chip, the MCU sub-module performs parsing according to data from other sub-modules, the FPGA sub-module selects the data path between the host, the sub-control module and the main control module according to the parsing result, and selects the data path of each sub-module inside the main control module. The present invention utilizes FPGA and MCU to realize a flexible data path switching function, thereby improving the reliability and flexibility of system data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of LED control, and in particular to a data path switching device for a lighting master control. Background Art

[0002] In an LED lighting control system, one or more PCs are usually used as the main control device, which sends control signals to the sub-control devices by running special lighting player software, thereby controlling the brightness, color and other effects of the LED lights. However, in actual application, the following situations may cause the system to fail to work properly: the PC suddenly shuts down or restarts; the control software crashes abnormally; the network connection is unstable or interrupted. Suppose in a large concert, the PC in the control room suddenly shuts down for some reason, and this is the critical moment of the lighting show. If there is no hot backup function, the entire lighting system may stop responding, resulting in an interruption of the performance. Summary of the invention

[0003] An embodiment of the present invention provides a data path switching device for a lighting master control. When a PC shutdown, software crash, or network abnormality is detected, the master control device will automatically switch to an offline output mode. The master control device no longer relies on data sent by the PC, but reads pre-stored lighting data from a built-in storage medium and sends it to a sub-control device for lighting control.

[0004] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application provides a data path switching device for a lighting master control, comprising: a master control module, a sub-control module and a host; the master control module is communicatively connected to the sub-control module, and the sub-control module is connected to the host; the master control module is communicatively connected to the host;

[0005] The main control module includes an MCU submodule, an FPGA submodule, a first Ethernet interface chip and a second Ethernet interface chip; the MCU submodule is connected to the FPGA submodule in communication, the MCU submodule is connected to the first Ethernet interface chip in communication, and the MCU submodule is connected to the second Ethernet interface chip in communication; the FPGA submodule is connected to the first Ethernet interface chip in communication; the FPGA submodule is connected to the second Ethernet interface chip in communication; the first Ethernet interface chip is connected to the host in communication; the second Ethernet interface chip is connected to the host in communication;

[0006] The MCU submodule parses data from other submodules, and the FPGA submodule selects data paths between the host, the sub-control modules and the main control module according to the parsing results, and selects data paths of each submodule inside the main control module.

[0007] In a possible implementation manner of the first aspect, the main control module further includes an operation panel submodule;

[0008] When the operation panel submodule detects that an operation button is pressed, the operation panel submodule sends a corresponding operation instruction to the MCU submodule; the MCU submodule parses the operation instruction, and the FPGA submodule switches the first Ethernet interface chip or the second Ethernet interface chip according to the parsing result.

[0009] In a possible implementation manner of the first aspect, the FPGA sub-module includes a register unit:

[0010] The MCU submodule writes the path code to the register submodule according to the path selection result of the FPGA submodule;

[0011] The FPGA sub-module switches the data paths among the host, the sub-control modules and the main control module according to the path code, and switches the data paths of each sub-module inside the main control module.

[0012] In a possible implementation manner of the first aspect, the path code is a six-bit code;

[0013] When the first bit code in the path code is set to 1, the data of the host is sent to the sub-control module, and when it is set to 0, the connection between the host and the sub-control module is disconnected;

[0014] When the second bit in the path code is set to 1, the data of the host is sent to the main control module, and when it is set to 0, the connection between the host and the main control module is disconnected;

[0015] When the third bit in the path code is set to 1, the data of the sub-control module is sent to the host, and when it is set to 0, the connection between the sub-control module and the host is disconnected;

[0016] When the fourth bit in the path code is set to 1, the data of the sub-control module is sent to the main control module, and when it is set to 0, the connection between the sub-control module and the main control module is disconnected;

[0017] When the fifth bit in the path code is set to 1, the data of the main control module is sent to the host, and when it is set to 0, the connection between the main control module and the host is disconnected;

[0018] When the sixth bit in the path code is set to 1, the data of the main control module is sent to the sub-control module, and when it is set to 0, the connection between the main control module and the sub-control module is disconnected.

[0019] In a possible implementation of the first aspect, the FPGA submodule further includes: a phase-locked loop unit, an SMI interface unit, and a gate unit;

[0020] The SMI interface unit is communicatively connected to the MCU submodule, and the SMI interface unit is communicatively connected to the register unit; the register unit is communicatively connected to the gate unit; the gate unit is communicatively connected to the MCU submodule via an RMII interface, the gate unit is communicatively connected to the first Ethernet interface chip via an RMII interface, and the gate unit is communicatively connected to the second Ethernet interface chip via an RMII interface.

[0021] In a possible implementation manner of the first aspect, the first Ethernet interface chip receives data from the host, and after the FPGA sub-module selects the data path, the FPGA sub-module sends the data from the host to the MCU sub-module;

[0022] The MCU submodule continues to receive valid data from the host in frames until the MCU submodule does not receive valid data from the host within a first preset time.

[0023] A second aspect of an embodiment of the present application provides a data path switching method for a lighting master control, which is applied to a data path switching device for a lighting master control as described above. When the main control module does not receive lighting control data or lighting setting data from the host within a first preset time, or the main control module receives an operation instruction to exit the lighting setting, or the main control module monitors that an FTP user exits, or the main control module has no FTP data interaction within a second preset time, the data path switching device for the lighting master control enters a working state of a master control lighting, the main control module unidirectionally sends data to the sub-control module and continuously monitors data sent by the host, and the sub-control module unidirectionally sends data to the host.

[0024] A third aspect of an embodiment of the present application provides a data path switching method for a lighting master control, which is applied to a data path switching device for a lighting master control as described above. When the main control module receives lighting control data or lighting fixture setting data from the host within a first preset time, the data path switching device for the lighting master control enters a working state of PC lighting control and lighting fixture setting, and the host performs full-duplex communication with the sub-control module, while the main control module continuously monitors the data of the host.

[0025] A fourth aspect of an embodiment of the present application provides a data path switching method for a lighting master control, which is applied to a data path switching device for a lighting master control as described above. When the host sends an ARP request to the master control module, or the host initiates an FTP connection and transmission after receiving feedback from the master control module, the data path switching device for the lighting master control enters the working state of the PC configuration master control, the host performs full-duplex communication with the master control module, and the master control module continuously monitors the data of the host.

[0026] The fifth aspect of the embodiments of the present application provides a data path switching method for a lighting master control, which is applied to a data path switching device for a lighting master control as described above. When the host has no lighting data sent within a first preset time and the operation panel sub-module detects the user's lighting setting instruction, the data path switching device for the lighting master control enters a working state for the master control to set the lighting, and the main control module performs full-duplex communication with the sub-control module until the lighting setting operation is completed or canceled.

[0027] Compared with the prior art, the data path switching device and method for the lighting master control provided by the embodiment of the present invention realizes a flexible data path switching function by introducing a combination of FPGA and MCU, thereby ensuring the reliability of data transmission and system stability in different scenarios. Through the above mechanism, even in the case of host failure or network abnormality, the main control module can automatically switch to offline mode and continue to play the preset lighting effects stored in the SD card, thereby ensuring the continuity and reliability of the lighting control system. In addition, the operation panel provides additional manual control options, which enhances the flexibility of the system and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a structural schematic diagram of a data path switching device for a lighting master control provided by an embodiment of the present invention;

[0029] Figure 2 It is a schematic diagram of the structure of an FPGA submodule provided by an embodiment of the present invention;

[0030] Figure 3 It is a schematic diagram of a data path switching device entering a working state of a master control light provided by an embodiment of the present invention;

[0031] Figure 4 It is a structural schematic diagram of a data path switching device entering a PC light control and setting a working state of a light fixture according to an embodiment of the present invention;

[0032] Figure 5 It is a schematic diagram of a working state of a data path switching device entering a PC configuration master control according to an embodiment of the present invention;

[0033] Figure 6 It is a schematic diagram of a working state of a data path switching device entering a master control setting lamp according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] To solve the above problems, see Figure 1 An embodiment of the present invention provides a data path switching device for a lighting master control, comprising: a main control module 1, a sub-control module 2 and a host 3; the main control module 1 is connected to the sub-control module 2 for communication, and the sub-control module 2 is connected to the host 3; the main control module 1 is connected to the host 3 for communication.

[0036] The main control module 1 includes an MCU sub-module 10, an FPGA sub-module 11, a first Ethernet interface chip 12 and a second Ethernet interface chip 13; the MCU sub-module 10 is communicatively connected to the FPGA sub-module 11, the MCU sub-module 10 is communicatively connected to the first Ethernet interface chip 12, and the MCU sub-module 10 is communicatively connected to the second Ethernet interface chip 13; the FPGA sub-module 11 is communicatively connected to the first Ethernet interface chip 12; the FPGA sub-module 11 is communicatively connected to the second Ethernet interface chip 13; the first Ethernet interface chip 12 is communicatively connected to the host 3; the second Ethernet interface chip 13 is communicatively connected to the host 3.

[0037] The MCU submodule 10 performs analysis based on data from other submodules, and the FPGA submodule 11 selects the data path between the host 3, the sub-control module 2 and the main control module 1 according to the analysis result, and selects the data path of each submodule inside the main control module 1.

[0038] The MCU submodule 10 is responsible for parsing data from other submodules, including identifying information such as data type, source address, and destination address. Based on the parsing results, the MCU submodule 10 can generate a control signal to instruct the FPGA submodule 11 how to select a data path. The FPGA submodule 11 selects a data path based on the control signal of the MCU submodule 10. The FPGA submodule controls the actual flow of data through internal logic to ensure that the data can be correctly transferred from the source to the destination. The first Ethernet interface chip 12 and the second Ethernet interface chip 13 are responsible for data transmission between the host 3. By providing two Ethernet interfaces, the system can achieve redundant connections, improve the reliability of data transmission, and leave room for possible future expansion.

[0039] Assume that in a large-scale performance, the main control module 1 needs to receive real-time lighting control data from the PC host 3 and forward this data to multiple sub-control modules 2. If the PC host 3 suddenly shuts down or the network connection is interrupted, the MCU sub-module 10 will detect the data interruption and notify the FPGA sub-module 11 to switch to offline mode, read the pre-stored lighting data from the SD card, and continue to send it to the sub-control module, so as to ensure that the lighting effect will not be interrupted. Through this design, the system can not only handle data transmission under normal circumstances, but also automatically switch to backup mode under abnormal circumstances, ensuring the stability and reliability of the LED lighting control system.

[0040] It should be noted that the sub-control module 2 here communicates with the main control module 1, receives the light control data and controls the LED lights. The host 3 can be a PC or other control terminal, running the light player software, and sending the light control data to the main control module 1. The MCU sub-module 10 and the FPGA sub-module 11 can directly use RMII for data transmission, and use the SMI interface for path switching settings; the FPGA sub-module 11 and the first Ethernet interface chip 12 and the second Ethernet interface chip 13 both use the RMII interface for data transmission; the main control module 1 is connected to the host 3 (or switch) and the sub-control module 2 through two Ethernet ports respectively.

[0041] Compared with the prior art, the data path switching device for the lighting master control provided by the embodiment of the present invention realizes a flexible data path switching function by introducing a combination of FPGA and MCU, thereby ensuring data transmission reliability and system stability in different scenarios. Through the above mechanism, even in the case of host failure or network abnormality, the main control module can automatically switch to offline mode and continue to play the preset lighting effects stored in the SD card, thereby ensuring the continuity and reliability of the lighting control system. In addition, the operation panel provides additional manual control options, which enhances the flexibility of the system and user experience.

[0042] Exemplarily, the main control module 1 further includes an operation panel submodule.

[0043] When the operation panel submodule detects that an operation button is pressed, the operation panel submodule sends a corresponding operation instruction to the MCU submodule 10; the MCU submodule 10 parses the operation instruction, and the FPGA submodule 11 switches the first Ethernet interface chip 12 or the second Ethernet interface chip 13 according to the parsing result.

[0044] The operation panel submodule is an important component of the main control module 1. It provides a user interface that allows the user to manually trigger specific operations in the system through physical buttons or other input devices (such as a touch screen). This increases the flexibility and ease of use of the system, especially when quick response or manual intervention is required. The operation panel submodule is connected to the MCU submodule 10 and is responsible for detecting the status of the user's operation buttons.

[0045] When the user presses an operation button, the operation panel submodule generates a corresponding operation instruction and sends it to the MCU submodule 10 .

[0046] For example, see Figure 2 , the FPGA submodule 11 includes a register unit:

[0047] The MCU submodule writes the path code to the register submodule according to the path selection result of the FPGA submodule 11;

[0048] The FPGA submodule 11 switches the data paths among the host 3 , the sub-control module 2 and the main control module 1 according to the path code, and switches the data paths of each submodule inside the main control module 1 .

[0049] The register submodule is used to store path codes, which determine the flow direction of data within the system. The MCU submodule 10 writes these path codes into the register submodule according to the path selection result of the FPGA submodule 11, thereby controlling the actual flow direction of the data.

[0050] The FPGA submodule 11 controls the internal data flow according to the actual value of the path code. For example, if the first bit is coded as 1, the FPGA submodule 11 will ensure that the data of the host 3 can be sent to the sub-control module 2. If the first bit is coded as 0, the FPGA submodule 11 will disconnect the connection between the host 3 and the sub-control module 2.

[0051] Assume that in a performance venue, the main control module 1 normally receives data from the PC host 3 and forwards it to the sub-control module 2. Suddenly, the host 3 fails or the network connection is interrupted. The MCU sub-module 10 detects that the data from the host 3 is interrupted.

[0052] At this time, the MCU submodule 10 can generate a new path code according to the detection result, and set the first bit of the code to 0 to disconnect the connection between the host 3 and the sub-control module 2. The MCU submodule 10 writes the new path code into the register submodule.

[0053] The FPGA submodule 11 reads the new path code from the register submodule. The FPGA submodule 11 parses the path code and switches the data path according to the new code value, disconnecting the connection between the host 3 and the sub-control module 2. The FPGA submodule 11 controls the internal data flow according to the new path code, no longer receives data from the host 3, and reads the pre-stored light data from the SD card and sends it to the sub-control module 2. In this way, the system can automatically switch the data path when an abnormal situation is detected, ensuring the stability and reliability of the LED light control system, and can continue to work normally even in the event of a host failure or network interruption.

[0054] Exemplarily, the path code is a six-bit code;

[0055] When the first bit code in the path code is set to 1, the data of the host is sent to the sub-control module, and when it is set to 0, the connection between the host and the sub-control module is disconnected;

[0056] When the second bit in the path code is set to 1, the data of the host is sent to the main control module, and when it is set to 0, the connection between the host and the main control module is disconnected;

[0057] When the third bit in the path code is set to 1, the data of the sub-control module is sent to the host, and when it is set to 0, the connection between the sub-control module and the host is disconnected;

[0058] When the fourth bit in the path code is set to 1, the data of the sub-control module is sent to the main control module, and when it is set to 0, the connection between the sub-control module and the main control module is disconnected;

[0059] When the fifth bit in the path code is set to 1, the data of the main control module is sent to the host, and when it is set to 0, the connection between the main control module and the host is disconnected;

[0060] When the sixth bit in the path code is set to 1, the data of the main control module is sent to the sub-control module, and when it is set to 0, the connection between the main control module and the sub-control module is disconnected.

[0061] When the data path switching device of the lighting master is in the working state of the master control light, the path code value can be set to 011001;

[0062] When the data path switching device of the lighting master is in the working state of PC controlling lights and setting lamps, the path code value can be set to 111000;

[0063] When the data path switching device of the lighting master is in the working state of the PC configuration master, the path code value can be set to 010010;

[0064] When the data path switching device of the lighting master control is in the working state of the master control setting the lamp, the path code value can be set to 000101.

[0065] Compared with the prior art, the data path switching device and method for the lighting master control provided by the embodiment of the present invention realizes a flexible data path switching function by introducing a combination of FPGA and MCU, thereby ensuring the reliability of data transmission and system stability in different scenarios. Through the above mechanism, even in the case of host failure or network abnormality, the main control module can automatically switch to offline mode and continue to play the preset lighting effects stored in the SD card, thereby ensuring the continuity and reliability of the lighting control system. In addition, the operation panel provides additional manual control options, which enhances the flexibility of the system and user experience.

[0066] For example, see Figure 2 The FPGA sub-module 11 also includes a phase-locked loop unit, an SMI interface unit and a gate unit.

[0067] The SMI interface unit is communicatively connected to the MCU submodule, and the SMI interface unit is communicatively connected to the register unit; the register unit is communicatively connected to the gate unit; the gate unit is communicatively connected to the MCU submodule via an RMII interface, the gate unit is communicatively connected to the first Ethernet interface chip 12 via an RMII interface, and the gate unit is communicatively connected to the second Ethernet interface chip 13 via an RMII interface.

[0068] Exemplarily, the first Ethernet interface chip 12 receives the data of the host 3, and after the FPGA sub-module 11 selects the data path, the FPGA sub-module 11 sends the data of the host 3 to the MCU sub-module 10;

[0069] The MCU sub-module 10 continues to receive valid data from the host 3 in frames until the MCU sub-module 10 does not receive valid data from the host 3 within a first preset time.

[0070] The above process belongs to the process of the main control module 1 monitoring the data of the host 3: the first Ethernet interface chip 12 receives the PC data of the host 3, and transmits it to the FPGA sub-module 11 through the internal RMII interface. The internal selection path of the FPGA sub-module 11 forwards the data to the MCU sub-module 10 through the internal RMII interface; the MCU sub-module 10 starts timing internally, and restarts the timing every time a frame of valid data is received. If there is no valid data for more than 2 seconds, it is considered that the PC has stopped outputting signals.

[0071] In this way, the system can automatically switch data paths when a host data interruption is detected, ensuring the stability and reliability of the LED lighting control system, and continuing to work normally even in the event of a host failure or network interruption.

[0072] See also Figure 3 An embodiment of the present application provides a data path switching method for a light master control, which is applied to a data path switching device for a light master control as described above. When the main control module 1 does not receive light control data or light fixture setting data from the host 3 (PC) within a first preset time, or the main control module 1 receives an operation instruction to exit the light fixture setting, or the main control module 1 monitors that an FTP user exits, or the main control module 1 has no FTP data interaction within a second preset time, the data path switching device for the light master control enters a master control light control working state, the main control module 1 unidirectionally sends data to the sub-control module 2 and continuously monitors the data sent by the host 3, and the sub-control module 2 unidirectionally sends data to the host 3.

[0073] The main control module does not receive the light control data or lighting setting data from the host within the first preset time: When the main control module does not receive the light control data or lighting setting data sent by the host within the set time (for example, 2 seconds), the system will determine that the host may have stopped working or the network connection has been interrupted.

[0074] The main control module receives an operation instruction to exit the lamp setting: If the user sends an operation instruction to exit the lamp setting through the operation panel or other means, the system will exit the current lamp setting mode.

[0075] The main control module monitors the FTP user exiting: If the main control module monitors the FTP user exiting, it means that the host has completed the FTP session and exited.

[0076] The main control module has no FTP data interaction within the second preset time: When the main control module has no FTP data interaction within the set time (for example, 1 minute), the system will determine that the FTP session has ended or the host has stopped sending FTP data.

[0077] When any of the above trigger conditions is met, the system will enter the working state of the master control light. The MCU submodule 10 will generate a new path code. The new path code will indicate that the system has entered the working state of the master control light.

[0078] Assume that in a performance venue, the main control module 1 normally receives data from the host 3 and forwards it to the sub-control module 2. Suddenly, the host 3 fails or the network connection is interrupted. The MCU sub-module 10 does not receive valid data from the host within the first preset time. The MCU sub-module 10 generates a new path code and writes the new path code through the register sub-module. The FPGA sub-module 11 switches the data path according to the new path code and enters the working state of the main control light. The main control module 1 sends data to the sub-control module 2 unidirectionally, and continuously monitors the data sent by the host 3. The sub-control module 2 sends data to the host 3 unidirectionally.

[0079] In this way, the system can automatically switch the data path when it detects a host data interruption, ensuring the stability and reliability of the LED lighting control system, and continuing to work normally even in the event of a host failure or network interruption. When the host returns to normal, the system will automatically switch back to the original mode and resume normal two-way communication function.

[0080] See also Figure 4 An embodiment of the present application provides a data path switching method for a lighting master control, which is applied to a data path switching device for a lighting master control as described above. When the main control module 1 receives the lighting control data or lighting setting data from the host within a first preset time, the data path switching device for the lighting master control enters a working state of PC lighting control and lighting setting, and the host 3 performs full-duplex communication with the sub-control module 2, while the main control module 1 continuously monitors the data of the host 3.

[0081] The first Ethernet interface chip 12 receives data packets from the host 3. The data packets are transmitted to the FPGA sub-module 11 through the physical layer. The FPGA sub-module 11 selects the data path and sends the data to the MCU sub-module 10. The MCU sub-module 10 parses the data and confirms the validity of the data.

[0082] After receiving valid data within the first preset time, the MCU submodule 10 generates a new path code and writes the new path code into the register submodule.

[0083] The FPGA sub-module 11 switches the data path according to the new path code to ensure full-duplex communication between the host 3 and the sub-control module 2.

[0084] In this way, the system can automatically switch the data path when receiving data from the host, ensuring the stability and reliability of the LED lighting control system and achieving full-duplex communication. When the host resumes normal operation, the system can continue to maintain stable two-way data transmission, ensuring the accuracy and real-time performance of lighting control.

[0085] See also Figure 5 An embodiment of the present application provides a data path switching method for a lighting master control, which is applied to a data path switching device for a lighting master control as described above. When the host 3 sends an ARP request to the main control module 1, or the host 3 initiates an FTP connection and transmission after receiving feedback from the main control module 1, the data path switching device for the lighting master control enters the working state of the PC configuration master control, and the host 3 performs full-duplex communication with the main control module 1, while the main control module 1 continuously monitors the data of the host 3.

[0086] Assume that in a performance venue, the main control module 1 normally receives data from the host 3 and forwards it to the sub-control module 2. At this time, the host 3 sends an ARP request or an FTP connection request.

[0087] ARP request detection: The first Ethernet interface chip 12 receives the ARP request sent by the host 3. The FPGA submodule 11 selects the data path and sends the ARP request to the MCU submodule 10. The MCU submodule 10 processes the ARP request and generates a new path code.

[0088] FTP connection and transmission detection: The first Ethernet interface chip 12 receives the FTP connection request sent by the host 3. The FPGA submodule 11 selects the data path and sends the FTP connection request to the MCU submodule 10. The MCU submodule 10 processes the FTP connection request and generates a new path code.

[0089] After detecting any of the above trigger conditions, the MCU submodule 10 generates a new path code. The MCU submodule 10 writes the new path code into the register submodule. The FPGA submodule 11 switches the data path according to the new path code and enters the working state of the PC configuration master. The host 3 performs full-duplex communication with the main control module 1, and the main control module 1 continuously monitors the data of the host 3.

[0090] In this way, the system can automatically switch the data path when it detects that the host 3 sends an ARP request or FTP connection request, ensuring the stability and reliability of the LED lighting control system and realizing the one-way data transmission function. When the host needs to configure the main control module, the system can switch to the working state of the PC configuring the main control in time to ensure the smooth progress of the configuration work.

[0091] See also Figure 6 An embodiment of the present application provides a data path switching method for a lighting master control, which is applied to a data path switching device for a lighting master control as described above. When the host 3 does not send any lighting data within a first preset time and the operation panel submodule detects a user's lighting setting instruction, the data path switching device for the lighting master control enters a working state of the master control setting the lighting, and the main control module 1 performs full-duplex communication with the sub-control module 2 until the lighting setting operation is completed or canceled.

[0092] Assume that in a performance venue, the main control module 1 normally receives data from the host 3 and forwards it to the sub-control module 2. At this time, the host 3 does not send any lighting data for a period of time, and the user inputs a lighting setting instruction through the operation panel.

[0093] The first Ethernet interface chip 12 receives data from the host 3. The FPGA submodule 11 selects the data path and sends the data to the MCU submodule 10. The MCU submodule 10 parses the data and confirms the validity of the data. The operation panel submodule detects that the user inputs the lamp setting instruction through the operation panel. The user instruction is sent to the MCU submodule 10 through the operation panel submodule. The MCU submodule 10 does not receive valid data within the first preset time, and after detecting the lamp setting instruction input by the user, generates a new path code. The MCU submodule 10 writes the new path code into the register submodule.

[0094] The FPGA submodule 11 switches the data path according to the new path code, and enters the main control to set the working state of the lamp. The main control module 1 and the sub-control module 2 perform full-duplex communication.

[0095] Full-duplex communication is performed between the main control module 1 and the sub-control module 2 until the lamp setting operation is completed or canceled, ensuring the continuity and reliability of data transmission.

[0096] In this way, the system can automatically switch the data path when it detects that the host has no light data sent within the preset time and the user enters the lamp setting command through the operation panel, ensuring the stability and reliability of the LED lighting control system and realizing full-duplex communication function. When the lamp setting operation is completed, the system can automatically or manually switch back to the original working mode and resume normal two-way data transmission.

[0097] Compared with the prior art, the data path switching method for the lighting master control provided by the embodiment of the present invention realizes a flexible data path switching function by introducing a combination of FPGA and MCU, thereby ensuring data transmission reliability and system stability in different scenarios. Through the above mechanism, even in the case of host failure or network abnormality, the main control module can automatically switch to offline mode and continue to play the preset lighting effects stored in the SD card, thereby ensuring the continuity and reliability of the lighting control system. In addition, the operation panel provides additional manual control options, which enhances the flexibility of the system and user experience.

[0098] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute a data path switching method for a lighting master control as described above.

[0099] The computer device may be a computing device such as a smart phone, a tablet computer, a desktop computer, and a cloud server. The computer device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the figure is merely an example of a computer device and does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, etc.

[0100] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0101] In some embodiments, the memory may be an internal storage unit of the computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Further, the memory may also include both an internal storage unit of the computer device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory may also be used to temporarily store data that has been output or is to be output.

[0102] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device implements the steps in the above-mentioned method embodiments when executing the computer device.

[0103] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.

[0104] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0105] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A data path switching device for a lighting master control, characterized in that: include: A main control module, a sub-control module and a host; the main control module is connected to the sub-control module for communication, and the sub-control module is connected to the host; the main control module is connected to the host for communication; The main control module includes an MCU submodule, an FPGA submodule, a first Ethernet interface chip and a second Ethernet interface chip; the MCU submodule is connected to the FPGA submodule in communication, the MCU submodule is connected to the first Ethernet interface chip in communication, and the MCU submodule is connected to the second Ethernet interface chip in communication; the FPGA submodule is connected to the first Ethernet interface chip in communication; the FPGA submodule is connected to the second Ethernet interface chip in communication; the first Ethernet interface chip is connected to the host in communication; the second Ethernet interface chip is connected to the host in communication; The FPGA submodule includes a register unit; the MCU submodule writes a path code into the register unit according to the path selection result of the FPGA submodule; the FPGA submodule switches the data path between the host, the sub-control module and the main control module according to the path code, and switches the data path of each submodule inside the main control module; The MCU submodule parses data from other submodules, and the FPGA submodule selects data paths between the host, the sub-control modules and the main control module according to the parsing results, and selects data paths of each submodule inside the main control module.

2. A data path switching device for a lighting master control as claimed in claim 1, characterized in that: The main control module also includes an operation panel submodule; When the operation panel submodule detects that an operation button is pressed, the operation panel submodule sends a corresponding operation instruction to the MCU submodule; the MCU submodule parses the operation instruction, and the FPGA submodule switches the first Ethernet interface chip or the second Ethernet interface chip according to the parsing result.

3. A data path switching device for a lighting master control as claimed in claim 1, characterized in that: The path code is a six-bit code; When the first bit code in the path code is set to 1, the data of the host is sent to the sub-control module, and when it is set to 0, the connection between the host and the sub-control module is disconnected; When the second bit in the path code is set to 1, the data of the host is sent to the main control module, and when it is set to 0, the connection between the host and the main control module is disconnected; When the third bit in the path code is set to 1, the data of the sub-control module is sent to the host, and when it is set to 0, the connection between the sub-control module and the host is disconnected; When the fourth bit in the path code is set to 1, the data of the sub-control module is sent to the main control module, and when it is set to 0, the connection between the sub-control module and the main control module is disconnected; When the fifth bit in the path code is set to 1, the data of the main control module is sent to the host, and when it is set to 0, the connection between the main control module and the host is disconnected; When the sixth bit in the path code is set to 1, the data of the main control module is sent to the sub-control module, and when it is set to 0, the connection between the main control module and the sub-control module is disconnected.

4. A data path switching device for a lighting master control as claimed in claim 1, characterized in that: The FPGA submodule also includes: a phase-locked loop unit, an SMI interface unit and a gate unit; The SMI interface unit is communicatively connected to the MCU submodule, and the SMI interface unit is communicatively connected to the register unit; the register unit is communicatively connected to the gate unit; the gate unit is communicatively connected to the MCU submodule via an RMII interface, the gate unit is communicatively connected to the first Ethernet interface chip via an RMII interface, and the gate unit is communicatively connected to the second Ethernet interface chip via an RMII interface.

5. A data path switching device for a lighting master control as claimed in claim 1, characterized in that: The first Ethernet interface chip receives the data of the host, and after the FPGA sub-module selects the data path, the FPGA sub-module sends the data of the host to the MCU sub-module; The MCU submodule continues to receive valid data from the host in frames until the MCU submodule does not receive valid data from the host within a first preset time.

6. A data path switching method for a lighting master control, characterized in that: Applied to a data path switching device for a lighting master control as described in any one of claims 1 to 5, when the main control module does not receive lighting control data or lighting setting data from the host within a first preset time, or the main control module receives an operation instruction to exit the lighting setting, or the main control module monitors the FTP user exiting, or the main control module has no FTP data interaction within a second preset time, the data path switching device for the lighting master control enters a working state of the master control lighting, the main control module unidirectionally sends data to the sub-control module and continuously monitors the data sent by the host, and the sub-control module unidirectionally sends data to the host.

7. A data path switching method for a lighting master control, characterized in that: Applicable to a data path switching device for a lighting master control as described in any one of claims 1 to 5, when the main control module receives lighting control data or lighting fixture setting data from the host within a first preset time, the data path switching device for the lighting master control enters a working state of PC lighting control and lighting fixture setting, the host performs full-duplex communication with the sub-control module, and the main control module continuously monitors the data of the host.

8. A data path switching method for a lighting master control, characterized in that: Applied to a data path switching device for a lighting master control as described in any one of claims 1 to 5, when the host sends an ARP request to the main control module, or the host initiates an FTP connection and transmission after receiving feedback from the main control module, the data path switching device for the lighting master control enters the working state of the PC configuration master control, the host and the main control module perform full-duplex communication, and the main control module continuously monitors the data of the host.

9. A data path switching method for a lighting master control, characterized in that: Applicable to a data path switching device for a lighting master control as claimed in claim 2, when the host has no lighting data sent out within a first preset time and the operation panel submodule detects the user's lighting setting instruction, the data path switching device for the lighting master control enters a working state of the master control setting the lighting, and the main control module performs full-duplex communication with the sub-control module until the lighting setting operation is completed or canceled.

Citation Information

Patent Citations

  • Modular lighting application

    CN108886852A

  • Lighting system

    CN201206791Y