Lighting effect control device and multi-type lighting linkage control method and corresponding device and medium
By obtaining and analyzing the identification information of the lamp, mapping it to the modeling space of the graphical user interface, and decomposing the lamp effect into sub-light effects, the problem of difficult to be compatible with multiple types of lamps in the existing technology is solved, and the display of complex lighting effects and the improvement of user experience is achieved.
Patent Information
- Application Number
- CN202411952034.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-12-27
AI Technical Summary
The prior art is difficult to compatible with multiple types of lamps at the same time, resulting in the inability to achieve lighting displays in complex scenes and dynamic effects.
By obtaining the identification information of each lamp, determining its type and lamp bead layout, mapping it to the modeling space of the graphical user interface, setting a serial position, and decomposing the preset lighting effects into sub-light effects matching each lamp type, and sending them to the corresponding lamp for application.
It realizes precise control and coordinated display of various types of lamps, improves the user's visual experience, and enhances the intuitiveness and practicality of the user interface.
Smart Images

Figure CN119383803B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of lighting linkage control, and in particular to a lighting effect control device and a method for controlling linkage of multiple types of lighting devices and corresponding devices and media. Background Art
[0002] Smart lamps can decorate interior spaces and display information. With the continuous development of smart lighting technology, multi-lamp control systems are not only satisfied with providing basic lighting functions, but also seek to create different lighting effects through the color, brightness, dynamic changes and other characteristics of the light, providing users with different visual experiences and environmental atmospheres.
[0003] However, the control of multiple lamps in the prior art is usually designed for specific types of lamps. For example, the lighting system of the building's facade is only linked to point light source lamps, and different instructions are sent to control all single-type lamps to display the effects. Although this control of a single type of lamp has achieved the display of lighting effects to a certain extent, it still has certain limitations when it comes to achieving complex scenes and dynamic effects. Specifically, the control of lamps in the prior art cannot be compatible with multiple types of lamps at the same time, resulting in the inability to achieve complex lighting effects created by the linkage of multiple lamps. For example, when it is necessary to simultaneously control multiple types of lamps such as point light sources, linear light sources, and planar light sources in a multi-lamp control system, it is often difficult to provide an effective solution, resulting in the inability to achieve the expected lighting effect. Summary of the invention
[0004] The primary purpose of the present application is to solve at least one of the above problems and to provide a lighting effect control device and a method for controlling multiple types of lighting fixtures in linkage and corresponding devices and media.
[0005] In order to meet the various objectives of this application, this application adopts the following technical solutions:
[0006] A multi-type lighting linkage control method provided to meet one of the purposes of the present application includes the following steps:
[0007] Obtaining identification information corresponding to each of the plurality of lamps, and determining the type of lamp and lamp bead layout information of the lamp according to the identification information of the lamp, wherein the lamp type is used to indicate the type of modeling freedom corresponding to the lamp bead layout of the lamp, wherein the lamp types of some of the lamps are different from each other;
[0008] Mapping the lamp to the modeling space of the graphical user interface according to the corresponding position information of the lamp in the actual physical space;
[0009] Setting serial positions of the plurality of lamps based on the modeling space;
[0010] According to the serial position and lamp bead layout information of the lamp, the preset lighting effect is decomposed into sub-lighting effects corresponding to the lamp type to which the lamp belongs, and the sub-lighting effects are sent to the corresponding lamp for application, so that the preset lighting effect can be displayed collaboratively by the multiple lamps.
[0011] A multi-type lamp linkage control device is proposed to meet one of the purposes of the present application and is adapted to the multi-type lamp linkage control method, and includes:
[0012] an identification information acquisition module, configured to acquire identification information corresponding to each of the plurality of lamps, and determine the type of lamp and lamp bead layout information of the lamp according to the identification information of the lamp, wherein the lamp type is used to indicate the type of modeling freedom corresponding to the lamp bead layout of the lamp, wherein the lamp types of some of the lamps are different from each other;
[0013] A modeling space mapping module, configured to map the lamp to the modeling space of the graphical user interface according to the corresponding position information of the lamp in the actual physical space;
[0014] A serial position setting module, configured to set the serial positions of the plurality of lamps based on the modeling space;
[0015] The lighting effect decomposition module is configured to decompose the preset lighting effect into sub-lighting effects corresponding to the type of lighting fixture to which the lighting fixture belongs according to the serial position and lamp bead layout information of the lighting fixture, and send the sub-lighting effects to the corresponding lighting fixture for application, so that the preset lighting effect can be collaboratively displayed by the multiple lighting fixtures.
[0016] On the other hand, a lighting effect control device is provided to meet one of the purposes of the present application, including a controller and multiple lamps, wherein the controller is used to execute the steps of the multi-type lamp linkage control method to control the multiple lamps to display lighting effects in a linked manner.
[0017] On the other hand, a computer-readable storage medium is provided to meet another purpose of the present application, which stores a computer program implemented according to the multi-type lamp linkage control method in the form of computer-readable instructions. When the computer program is called and executed by a computer, the steps included in the corresponding method are executed.
[0018] The technical solution of this application has many advantages, including but not limited to the following aspects:
[0019] This application not only realizes the recognition and distinction of different types of lamps by obtaining the identification information of each lamp and determining the type of lamp it belongs to and its lamp bead layout information, but also enables users to intuitively manage and control lamps by mapping the lamp position information in the actual physical space to the modeling space of the graphical user interface, thereby enhancing the intuitiveness and practicality of the user interface. In addition, by setting the serial position of the lamp, an accurate reference is provided for the timing control of the lighting effect, which can achieve seamless connection and synchronous change between lamps, thereby making the display of lighting effects more orderly and coordinated. Finally, according to the serial position and lamp bead layout information of the lamp, the user's preset lighting effect is decomposed into sub-lighting effects that match each lamp type, and by sending the sub-lighting effects to the corresponding lamps for application, the lighting effect can be accurately displayed among a variety of different types of lamps, thereby enhancing the user's visual experience.
[0020] The multi-type lamp linkage control method of the present application connects multiple lamps into a unified control unit for centralized management, and decomposes the lighting effects adapted to different types of lamps into sub-lighting effects of each lamp, thereby achieving precise control and coordinated display of multiple types of lamps. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0022] Figure 1 A schematic diagram showing the principle of the electrical structure of the lighting effect control device in an embodiment of the present application;
[0023] Figure 2 The structural form of multiple lamps in the exemplary lighting effect control device of this application;
[0024] Figure 3 A flowchart of a typical embodiment of the multi-type lamp linkage control method of the present application;
[0025] Figure 4 A schematic diagram of a process for obtaining identification information of each lamp in an embodiment of the present application;
[0026] Figure 5 A schematic diagram of a process of mapping each lamp into a reference coordinate system of a modeling space in an embodiment of the present application;
[0027] Figure 6 A schematic diagram of a process for adjusting the position of a lamp in a modeling space for calibration in an embodiment of the present application;
[0028] Figure 7 A schematic diagram of a process for adjusting the position of a physical space lamp for calibration in an embodiment of the present application;
[0029] Figure 8This is a schematic diagram of a process for previewing the lighting sequence of lamps in an embodiment of the present application;
[0030] Fig. 9 It is a schematic diagram of a process of decomposing a lighting effect when the lighting effect can be decomposed according to a time sequence in an embodiment of the present application;
[0031] Fig.10 It is a schematic diagram of a process of decomposing a lighting effect when the lighting effect cannot be decomposed in time sequence in an embodiment of the present application;
[0032] Fig.11 This is a principle block diagram of the multi-type lamp linkage control device of the present application;
[0033] Fig.12 A schematic diagram of the structure of a computer device used in this application. DETAILED DESCRIPTION
[0034] See also Figure 1 As can be seen from the structural diagram of a lighting effect control device provided in the present application, the lighting effect control device includes a controller 1 and a plurality of lamps 2. The types of the plurality of lamps 2 are the same or different. The plurality of lamps 2 are respectively connected to the controller 1 in communication so as to be controlled by a computer program running in the controller 1 and work in coordination to realize lighting effect playback. Each lamp 2 is connected to the controller via a wireless or wired network to realize the connection of each lamp 2 to the controller 1. Each lamp 2 is usually composed of one or more light-emitting units, and each light-emitting unit of the lamp 2 is uniformly controlled by a control chip.
[0035] Based on the type of styling freedom corresponding to the layout of the lamp beads, lamps 2 are classified into first type lamps, second type lamps and third type lamps, wherein the first type lamps consist of a single lamp bead or multiple lamp beads concentrated together to form a light-emitting point (point light source), that is, the type of styling freedom exhibited tends to be a point light source type, for example, a bulb lamp. The second type of lamp is composed of multiple point light sources arranged along a line, and the formed linear light source is a one-dimensional degree of freedom type (for example, a light strip), or a two-dimensional degree of freedom type composed of multiple linear light sources (the linear light sources are on the same plane, for example, an atmosphere light strip set along the periphery of the TV) or a three-dimensional degree of freedom type (the linear light sources are on different planes, for example, a three-dimensional decorative lamp composed of linear light strips). At this time, the shape freedom type of the lamp tends to be a linear light source type; the third type of lamp is a planar light source composed of multiple point light sources or multiple linear light sources, that is, a two-dimensional degree of freedom type formed by an arrangement on the same plane (for example, a spliced lamp located on the same plane), or a three-dimensional degree of freedom type composed of multiple point light sources or multiple linear light sources. For example, a three-dimensional dragon is arranged using multiple point light sources or multiple linear light sources. At this time, the shape freedom type of lamp 2 tends to be a planar light source type or a three-dimensional arrangement degree of freedom type.
[0036] In some embodiments, the controller 1 includes a control chip, a control panel, and a display screen. The control chip can be implemented using various embedded chips, such as Bluetooth SoC (System on Chip), WiFi SoC, MCU (MicroController Unit), DSP (Digital Signal Processing) and other types of chips. The control chip usually includes a central processing unit and a memory, and the memory and the central processing unit are used to store and execute program instructions respectively to achieve corresponding functions. The control panel usually provides one or more buttons for implementing switch control of the controller 1, selecting various preset lighting effects, etc. The display screen can be used to display various control information so as to cooperate with the buttons in the control panel to support the implementation of human-computer interaction functions. In some embodiments, the control panel and the display screen can be integrated into the same touch display screen.
[0037] The present application provides a method for linkage control of multiple types of lamps, which is based on the actual physical space position of each lamp 2 connected to the controller 1, mapped to the graphical user interface provided by the control panel to set the serial position of each lamp 2, and then decomposed into sub-lighting effects corresponding to the lamp type to which each lamp 2 belongs according to the serial position of each lamp 2 and the lamp bead layout information of each lamp 2. The controller 1 sends the decomposed sub-lighting effects to the corresponding lamp 2 to drive each lamp 2 to display the corresponding sub-lighting effect under the working sequence.
[0038] exist Figure 2In the scene shown, there are many different types of lamps 2, including downlights 21, spliced lamps 22, linear light strips 23, bulb lamps 24, and floor lamps 25. The user sends a signal to search for lamps 2 using a smartphone, and the search signal can trigger all lamps 2 within the communication range to respond and send out a broadcast signal containing identification information. After the controller 1 parses and receives these broadcast signals, it parses out the identification information of each lamp 2 and identifies it. Once the identification is successful, the controller 1 establishes a connection with these lamps 2 through a wireless communication protocol, and sends a lamp bead layout information acquisition instruction to obtain the lamp bead layout information of each connected lamp 2. According to the identification information of the lamp 2, the type of lamp to which each lamp 2 belongs can be determined, such as downlights 21 and bulb lamps 24 are classified as first-type lamps, linear light strips 23 and floor lamps 25 are second-type lamps, and spliced lamps 22 belong to third-type lamps. In some embodiments, the actual physical space where each lamp 2 is located is scanned by a three-dimensional scanning device to map each lamp 2 to the modeling space of the graphical user interface, wherein the three-dimensional scanning device can use a laser scanner, an ultrasonic scanner, or a camera for scanning, etc., which does not affect the embodiment of the creative spirit of the present application. The serial position of each lamp 2 is set based on the modeling space, that is, the order and relative position of each lamp 2 when executing the control instruction. According to the serial position and lamp bead layout information of the lamp 2, the user's preset lighting effect is decomposed into sub-lighting effects that match the type of lamp to which each lamp 2 belongs, and the sub-lighting effects are sent to the corresponding lamp 2 for application, thereby realizing the linkage control and lighting effect playback of the downlight 21, the spliced lamp 22, the linear light strip 23, the bulb lamp 24 and the floor lamp 25.
[0039] In some embodiments, the controller 1 of the present application can be implemented in an independent computer device, as long as the computer device is equipped with the corresponding hardware of the controller 1, and the corresponding business logic of the controller 1, including the business logic executed by the corresponding method of the present application, is implemented as a computer program installed in the computer device for operation. When the controller 1 is implemented in a computer device, various resources inherent to the computer device can be shared to save the overall implementation cost. The computer device referred to here can be any terminal device for use by the user, such as a smart phone, a personal computer, a laptop computer, a tablet computer, etc.
[0040] According to the product architecture and working principle of the above lighting effect control device, the multi-type lighting linkage control method of the present application can be implemented as a computer program, stored in the storage medium of the controller of the lighting effect control device, and called from the storage medium by the control chip of the controller to run, so as to control each lamp 2 in the entire lighting effect control device to play the corresponding sub-lighting effect. The multi-type lighting linkage control method of the present application can be implemented as a computer program, stored in the storage medium of each lamp 2 of the lighting effect control device, and called from the storage medium by the corresponding control chip of each lamp 2 to run, so as to control each lamp 2 to play the corresponding sub-lighting effect.
[0041] See also Figure 3 In some embodiments, the multi-type lighting linkage control method of the present application includes:
[0042] Step S5100, obtaining identification information corresponding to each of the plurality of lamps, and determining the lamp type and lamp bead layout information of the lamp according to the identification information of the lamp, wherein the lamp type is used to indicate the type of modeling freedom corresponding to the lamp bead layout of the lamp, wherein the lamp types of some of the lamps are different from each other;
[0043] The lamp bead layout information includes information such as the number of lamp beads, arrangement method and serial position. The modeling freedom type (lamp type) corresponding to the lamp bead layout of the lamp is determined by the lamp bead layout information. For example, the modeling freedom type represented by a single lamp bead or multiple lamp beads gathered together to form a light-emitting point tends to be a point light source type (zero-dimensional freedom type); the linear light source formed by multiple point light sources arranged along a line is a one-dimensional freedom type, or a two-dimensional freedom type (linear light sources are on the same plane) or a three-dimensional freedom type (linear light sources are on different planes) composed of multiple linear light sources. At this time, the modeling freedom type of the lamp tends to be a linear light source type; a planar light source composed of multiple point light sources or multiple linear light sources, that is, a two-dimensional freedom type arranged on the same plane, or a three-dimensional freedom type composed of multiple point light sources or multiple linear light sources in a three-dimensional arrangement. For example, a three-dimensional dragon is arranged using multiple point light sources or multiple linear light sources. At this time, the modeling freedom type of the lamp tends to be a planar light source type or a three-dimensional arrangement freedom type.
[0044] The type of lamp to which the lamp belongs and the layout information of the lamp beads can be determined by the identification information of the corresponding lamp. In one embodiment, by using the data such as the lamp type, the layout information of the lamp beads, the production batch and the network configuration, a unique identification code is generated by a hash algorithm. The unique characteristics of the unique identification code can be used to identify the identity of the lamp, that is, the identification information of the lamp can include the type of lamp to which the lamp belongs, the layout information of the lamp beads and the unique identification code. Further, the type of modeling freedom (lamp type) corresponding to the lamp bead layout of the lamp can be determined by the lamp model. Specifically, when designing the lamp model, certain coding rules will be followed, which are usually composed of specific prefixes, suffixes or intermediate codes to indicate the type of lamp to which the lamp belongs, functions or other characteristics. In one embodiment, a database containing all lamp models and their corresponding lamp type information is usually provided. When the lamp model is received, the database is searched to determine the type of lamp corresponding to the model. In another embodiment, when the type of the lamp cannot be automatically identified according to the identification information of the lamp, or when it is desired to override the automatic identification result, the user is allowed to manually enter or select the type of the lamp from the preset options. The purpose is to avoid classification problems caused by missing or incorrect information about the lamp type corresponding to certain models in the database. Through manual configuration, ensure that each lamp is correctly classified. A drop-down menu can be set in the user interface to list all possible lamp types for users to directly select the type of lamp.
[0045] In another embodiment, a request may be sent to each lamp through a wireless communication protocol, and the built-in control chip of the lamp responds to the request to receive identification information including lamp type, lamp bead layout information, unique identification code, etc. In another embodiment, each lamp is equipped with a unique barcode or QR code, which contains detailed data of the identification information of the corresponding lamp. The user can use a terminal device to scan the barcode or QR code on the lamp to obtain the corresponding identification information of each lamp to determine the lamp type and lamp bead layout information of the lamp.
[0046] Step S5200: mapping the lamp to the modeling space of the graphical user interface according to the corresponding position information of the lamp in the actual physical space;
[0047] The position information of each lamp in the actual physical space is displayed in the modeling space of the graphical user interface. The modeling space can be a two-dimensional or three-dimensional space, depending on whether the lamps are in the same plane. It is used to simulate or display the layout of the actual physical space. Specifically, the lamps in the actual physical space are mapped to their representatives (icons or models) in the modeling space through mapping, so that the user can see a virtual modeling space that simulates the actual layout of the lamps on the graphical user interface.
[0048] In one embodiment, the actual physical space where each lamp is located can be scanned by a three-dimensional scanning device. The three-dimensional scanning device includes a laser scanner, an ultrasonic scanner, and a camera for scanning. These three-dimensional scanning devices can capture the geometric structure information and relative position of the lamp and generate accurate three-dimensional point cloud data. Through the obtained three-dimensional point cloud data, the precise position and direction of each lamp in the actual physical space can be calculated and mapped to the modeling space of the graphical user interface. Which device to scan can be selected based on the scanning requirements and environmental conditions. The laser scanner can accurately capture the shape and position of the object by emitting a laser beam and analyzing the reflected beam, which is suitable for scanning large areas and complex environments. The ultrasonic scanner calculates the distance of the object by emitting ultrasonic pulses and measuring the time it takes to reflect back, which is suitable for scenes with close distances and high precision requirements. Scanning with a camera, namely photogrammetry, can reconstruct a three-dimensional model of the object by taking photos from multiple angles and performing image processing. It is suitable for scenes with low flexibility and cost, but requires high-quality photos and a long processing time.
[0049] Step S5300: setting the serial positions of the plurality of lamps based on the modeling space;
[0050] The serial position refers to the order and relative position of each lamp when executing the control instruction. In one embodiment, a reference coordinate system is constructed in the modeling space, and the coordinate information of each lamp in the reference coordinate system is obtained. Since the motion process of the lighting effect requires a reference point, different reference points will result in different lighting effects. Similarly, when the lighting effect responds clockwise with the reference point as the starting point, and when the lighting effect responds counterclockwise with the reference point as the end point, the two are also different in the visual effect. It can be seen that the motion process of the lighting effect requires a reference point, and the reference point can be selected as a certain lamp. After the reference point is selected, if there are fewer lamps in the actual physical space, the next serial position of the lamp can be determined manually; considering the situation that there are more lamps in the actual physical space, the selected component of the serial position direction can be directly visualized on the graphical user interface. For example, after the reference point is selected, click the "clockwise serial position direction" selected component on the graphical user interface. At this time, the serial position of each lamp will be set according to the coordinate information of each lamp in the reference coordinate system.
[0051] In another embodiment, the selection of the reference reference point can be the user selecting a certain lamp or a certain corner point in the modeling space, and after the reference reference point is selected, a visual mark is displayed, and the visual mark is a control that can be moved in the modeling space, so that the user can select the current reference reference point more intuitively. When the reference coordinate system in the modeling space is a two-dimensional coordinate system, the position of the reference reference point can be expressed as the coordinates corresponding to the X-axis and Y-axis in the two-dimensional coordinate system. When the reference coordinate system in the modeling space is a three-dimensional coordinate system, the position of the reference reference point can be expressed as the coordinates corresponding to the X-axis, Y-axis, and Z-axis in the three-dimensional coordinate system. Of course, each lamp in the modeling space also has its corresponding position information in the reference coordinate system of the modeling space, so the relative position relationship between the reference reference point and each lamp in the modeling space can be quickly determined based on the reference coordinate system adopted by the modeling space. Then, the serial position of each lamp is quickly determined based on these coordinates and the serial position direction.
[0052] Step S5400, according to the serial position and lamp bead layout information of the lamp, decompose the preset lighting effect into sub-lighting effects corresponding to the lamp type to which the lamp belongs, and send the sub-lighting effects to the corresponding lamps for application, so that the preset lighting effect can be displayed collaboratively by the multiple lamps.
[0053] According to the lighting effects preset by the user, combined with the serial position and lamp bead layout information of each lamp, the overall lighting effect is decomposed into sub-lighting effects suitable for the lamp type to which each lamp belongs, and then the decomposed sub-lighting effects are sent to the corresponding lamps to drive each lamp to play the corresponding sub-lighting effects, thereby realizing the coordinated display of the preset lighting effects by each lamp.
[0054] In one embodiment, the user can select a preset translation lighting effect template in the graphical user interface and select the direction of movement of the lighting effect as clockwise. As disclosed above, a certain lamp is selected as a reference point as the position where the lighting effect starts to play, and then, based on the serial position of each lamp, the direction of movement of the lighting effect, and the layout information of the lamp beads, the sub-lighting effects corresponding to the lamp type to which each lamp belongs are decomposed for each lamp and the playback timing of each sub-lighting effect is determined. Among them, the sub-lighting effects of each lamp are adapted to the specific number of lamp beads, arrangement method and other lamp bead layout information. The decomposed sub-lighting effects are sent to the corresponding lamps, usually through a wireless communication protocol or a physical interface. After receiving the corresponding sub-lighting effect, each lamp will drive the lamp beads to emit light according to the preset sub-lighting effect according to its built-in control logic and lamp bead layout information. At this time, the user can see a smooth and uniform translation lighting effect in the actual physical space, in which each lamp contributes a part of the lighting effect according to its specific position and layout.
[0055] It can be known from the typical embodiments of the present application that the technical solution of the present application has many advantages, including but not limited to the following aspects:
[0056] This application not only realizes the recognition and distinction of different types of lamps by obtaining the identification information of each lamp and determining the type of lamp it belongs to and its lamp bead layout information, but also enables users to intuitively manage and control lamps by mapping the lamp position information in the actual physical space to the modeling space of the graphical user interface, thereby enhancing the intuitiveness and practicality of the user interface. In addition, by setting the serial position of the lamp, an accurate reference is provided for the timing control of the lighting effect, which can achieve seamless connection and synchronous change between lamps, thereby making the display of lighting effects more orderly and coordinated. Finally, according to the serial position and lamp bead layout information of the lamp, the user's preset lighting effect is decomposed into sub-lighting effects that match each lamp type, and by sending the sub-lighting effects to the corresponding lamps for application, the lighting effect can be accurately displayed among a variety of different types of lamps, thereby enhancing the user's visual experience.
[0057] The multi-type lamp linkage control method of the present application connects multiple lamps into a unified control unit for centralized management, and decomposes the lighting effects adapted to different types of lamps into sub-lighting effects of each lamp, thereby achieving precise control and coordinated display of multiple types of lamps.
[0058] Based on any embodiment of the method of this application, please refer to Figure 4 , obtaining identification information corresponding to each of the plurality of lamps, and determining the type of the lamp and the lamp bead layout information thereof according to the identification information of the lamp, including:
[0059] Step S5110, receiving a broadcast signal of the lamp;
[0060] The broadcast signal from each lamp can be directly received through wireless communication protocols (such as Zigbee, WiFi, Bluetooth, etc.), where the broadcast signal contains the identification information of each lamp, such as lamp type, lamp bead layout information, unique identification code, etc. The receiving process usually sets up one or more receivers that can capture the signal sent by the lamp at a specific frequency.
[0061] In one embodiment, a lamp search command can be sent to the lamp through a wireless communication protocol (such as Zigbee, WiFi, Bluetooth, etc.), or a search command can be sent directly to the connected lamp through a physical interface. After the search command is sent, all lamps within the communication range will be activated and start to send broadcast signals to notify their existence, usually by sending a broadcast signal containing lamp identification information. Then, by turning on the wireless receiving module to monitor and capture these broadcast signals, the lamp identity is identified and connected based on the identification information contained in the broadcast signal.
[0062] In another embodiment, the user triggers a lamp search operation on the graphical user interface of the terminal device. At this time, the terminal device sends a lamp search instruction through the WiFi network. The search instruction is a specific data packet designed to be recognized by all lamps connected to the same WiFi network. After all lamps within the communication range receive the search instruction, they will be activated and start sending broadcast signals containing their identification information. The terminal device can then use its WiFi receiving module to listen to and capture these broadcast signals for identifying the lamp identification information and connecting the lamp to the terminal device.
[0063] Step S5120: determining the identification information of the lamp according to the broadcast signal, wherein the identification information includes the lamp type, lamp bead layout information and a unique identification code;
[0064] In one embodiment, the terminal device uses a predefined protocol or data format to decode the broadcast signal received in the previous step, and extracts the identification information of the lamp, including the lamp type, lamp bead layout information, and unique identification code. The terminal device records the extracted lamp identification information and associates it with the corresponding lamp, so as to determine the lamp type and lamp layout to which it belongs according to the lamp identification information, and obtain the unique identification code of each lamp.
[0065] In another embodiment, the terminal device also receives and decodes the broadcast signal, and the obtained identification information includes a unique identification code, and then the type of the lamp is determined by the unique identification code. Specifically, the type information of the lamp is encoded into the unique identification code, and the terminal device determines the type of the lamp by parsing a specific part of the unique identification code or using a preset mapping table.
[0066] Step S5130: Identify and connect the lamp based on the unique identification code;
[0067] A unique identification code is a unique sequence, which refers to a number that uniquely identifies or manages a lamp. Each lamp is assigned a unique identification code to ensure that each lamp has a unique identification. The unique identification code can be generated by a hash algorithm based on data such as lamp type, lamp bead layout information, generation batch, and network configuration. Specifically, after receiving the broadcast signal of each lamp and determining its identification information, the terminal device will use the unique identification code extracted from the broadcast signal to identify and establish a connection with each lamp. Specifically, using the unique identification code as the identifier of each lamp, it is connected to a specific terminal device through a wireless communication protocol (such as Zigbee, WiFi, Bluetooth, etc.) or a wired connection. A stable communication link will be established between the terminal device and the lamp. The communication link allows the terminal device to send control instructions to the lamp, obtain the identification information of the lamp, etc., and perform other necessary communication operations. In this way, the terminal device can ensure that the connection with each lamp is accurate and reliable, providing a solid foundation for subsequent lamp control and management. Through this identification and connection mechanism based on a unique identification code, the terminal device can effectively manage multiple lamps and achieve centralized control and coordinated operation of the lamps.
[0068] Step S5140: The lamp bead layout information, lamp type and unique identification code of the lamp are stored in association.
[0069] Based on the communication link established between the terminal device and the lamp in the previous step, after receiving the identification information of the lamp, the terminal device will parse and process the identification information of the lamp to extract the information such as the lamp bead layout information, the lamp type and the unique identification code. Then, the terminal device will associate the lamp bead layout information with the lamp type and the unique identification code, and store the associated information in the terminal device database. That is, the terminal device can quickly retrieve the lamp bead layout information and the corresponding lamp type according to the unique identification code of the lamp.
[0070] In this embodiment, by receiving the broadcast signal of each lamp, all lamps within the communication range are automatically identified, which reduces manual operations and improves the identification efficiency. Then, by parsing the data packets in the broadcast signal, the identification information of the lamp is accurately extracted, including the lamp type, lamp bead layout information and unique identification code, etc., to ensure the accuracy of the information, and the identification information is stored in association with the lamp, which is convenient for subsequent data management and query, and improves the efficiency of data processing.
[0071] Using a unique identification code as an identifier ensures that the connection between the terminal device and the lamp is accurate and reliable, reducing the possibility of connection errors, and verifying through a unique identification code enhances the security of the connection and prevents unauthorized access and operation. The lamp bead layout information is stored in association with the lamp type and unique identification code, which facilitates quick retrieval and use, improving the efficiency of data management.
[0072] Based on any embodiment of the method of this application, please refer to Figure 5 , mapping the lamp to the modeling space of the graphical user interface according to the corresponding position information of the lamp in the actual physical space, including:
[0073] Step S5210: Acquire spatial scanning data of the actual physical space where the multiple lamps are located, where the spatial scanning data includes geometric structure information and relative position information of the multiple lamps;
[0074] In one embodiment, the actual physical space where each lamp is located can be scanned by a three-dimensional scanning device to obtain corresponding spatial scanning data, including the geometric structure information of the lamps and the relative position information between them. Before starting the scan, ensure that the scanning environment is suitable for the operation of the device, for example, ensure that there is sufficient lighting and no obstructions. Then, operate the scanning device to perform a comprehensive scan of the space. During the scanning process, the device will record the geometric structure information of each lamp, including its size, shape and surface details, and will also record the relative positions of each lamp, such as distance and direction. After the scan is completed, the device will generate a three-dimensional point cloud data set containing the geometric structure information and relative positions of all lamps.
[0075] In one exemplary example of this embodiment, a laser scanner can be used to scan the actual physical space where each lamp is located. Specifically, a method for scanning lamps and surrounding environments in a large area or complex environment by installing a laser scanner on a mobile platform. A laser scanner installed on a mobile platform such as a cart is used to scan lamps and surrounding environments by moving in the actual physical space. Laser scanners are generally suitable for scanning large areas or complex environments. During the scanning process, the laser scanner emits laser beams, which are reflected in the space and received by the scanner. By analyzing the changes in the reflected laser beams, the scanner can calculate the distance and precise shape of the lamps in the actual physical space. The mobile platform moves step by step to cover the actual physical space where the entire lamp is located to ensure that all lamps are scanned. During the scanning process, the device records the geometric structure information of each lamp, including its size, shape and surface details, and also records the relative positions between the lamps, such as distance and direction. After the scan is completed, the device generates a three-dimensional point cloud data set containing the geometric structure information and relative positions of all lamps. The 3D point cloud dataset will then be imported into the modeling space of the graphical user interface to create a virtual 3D model that accurately reflects the layout of the lamps in the actual physical space. For the creation of the 3D model, please refer to the subsequent specific implementation method, which will not be repeated here.
[0076] In another exemplary example of this embodiment, an ultrasonic scanner can be used to scan the actual physical space where each lamp is located. The method of using the ultrasonic scanner is the same as that of a laser scanner. The ultrasonic scanner is placed on a moving platform and moves in the actual physical space to scan the lamps and the surrounding environment. During the scanning process, the ultrasonic scanner emits ultrasonic pulses, which are reflected back when encountering an object and received by the sensor. By measuring the time difference between the emission and reception of the ultrasonic pulse, the ultrasonic scanner can calculate the distance between the object and the ultrasonic scanner. After the scan is completed, the ultrasonic scanner generates a data set containing the location information of all lamps. The data set is then imported into the modeling space of the graphical user interface to create a virtual three-dimensional model that reflects the layout of the lamps in the actual physical space. For the creation of the three-dimensional model, please refer to the subsequent specific implementation methods, which will not be repeated here.
[0077] In another exemplary example of this embodiment, photogrammetry can be used to map each lamp to the modeling space of the graphical user interface, wherein photogrammetry refers to a method of reconstructing a three-dimensional space and an object by analyzing two-dimensional photos taken from multiple angles. Use a high-resolution camera (which can be a professional camera or a high-pixel smartphone camera) to take photos of the lamps and the actual physical space from multiple angles and heights, ensuring that the important feature points of each lamp are covered by multiple photos to improve the accuracy of the three-dimensional reconstruction. When shooting, the position and angle of the camera should be distributed as evenly as possible to ensure that there is enough overlapping area between the photos, and then the captured photos are image matched to determine the correspondence between the feature points in the photos in different photos. Based on the results of the image matching, the three-dimensional coordinates of each feature point are calculated, and a dense point cloud data set is generated, and an accurate three-dimensional model is formed based on the point cloud data set. Check the generated three-dimensional model to ensure that the position and shape of the lamp are consistent with those in the actual physical space. If the position and shape of the lamp are inconsistent with those in the actual physical space, you can manually adjust specific parts of the three-dimensional model or retake photos of certain areas to improve the accuracy of the model. For the creation of the three-dimensional model, please refer to the subsequent specific implementation method, which will not be described in detail here.
[0078] Step S5220: Mapping the geometric structure information and the relative position information to a reference coordinate system of a modeling space of a graphical user interface based on the geometric structure information and the relative position information;
[0079] In one embodiment, a reference coordinate system is constructed in the modeling space to facilitate accurate positioning and adjustment of the lamp model. The process of constructing the reference coordinate system includes determining the origin of the coordinate system and selecting a point as the origin of the coordinate system. The origin can be the center of the modeling space, or the position of the modeling space corresponding to each corner of the ground in the actual physical space. Then, along the direction of the lamp, two orthogonal coordinate axes are set: X-axis and Y-axis, or three orthogonal coordinate axes: X-axis, Y-axis and Z-axis, which represent the length, width or length, width and height in the modeling space respectively. Then, a unit length is defined for each axis in the coordinate system, for example, 1 unit may represent 1 meter or 1 centimeter, and the proportional relationship between the modeling space and the actual physical space is determined to ensure that the size of the three-dimensional model is consistent with that of the actual lamp. Finally, the constructed reference coordinate system is applied to the entire modeling space to ensure that all lamp models are positioned and adjusted using this coordinate system.
[0080] In another embodiment, the three-dimensional point cloud data set generated in the previous step is first obtained, and the three-dimensional point cloud data set records in detail the geometric structure information of the lamps, such as size, shape and surface details, and the relative position information between the lamps, such as distance and direction. Then, the obtained three-dimensional point cloud data set is analyzed and processed to accurately extract the key features and position coordinates of each lamp. The processed data is then imported into the reference coordinate system of the modeling space. In the modeling space, a three-dimensional model of each lamp is created based on the geometric structure information and relative position information of the lamp, and it is ensured that the position and direction of the three-dimensional model of each lamp in the modeling space are completely consistent with its position and direction in the actual physical space. Through this mapping process, the three-dimensional model seen by the user in the reference coordinate system of the modeling space can accurately reflect the layout of the actual lamps.
[0081] In another embodiment, the user can select one or more lamp models on the graphical user interface, and then use the move, rotate and scale tools provided by the graphical user interface to adjust the position, direction and size of the corresponding lamp model. The user can directly operate the model through a mouse or touch screen, or automatically adjust the model according to the parameters entered by the user. During the adjustment process, the user can refer to the layout of the lamps in the actual physical space to ensure that the three-dimensional model of the lamp is completely consistent with the position and direction of the lamp in the actual physical space. In addition, auxiliary tools such as reference lines, grids and alignment tools can be provided to assist in precise alignment. Through these adjustments, it is ensured that the position and direction of the three-dimensional model of each lamp in the modeling space are completely consistent with its position and direction in the actual physical space, so that the three-dimensional model of each lamp can accurately reflect the layout of the lamps in the actual physical space, thereby providing users with an intuitive and accurate modeling space for easy management and control of lamps.
[0082] Step S5230: convert the relative position information into coordinate information in the reference coordinate system.
[0083] In one embodiment, the three-dimensional point cloud data set generated by the three-dimensional scanning device in the above embodiment is used to convert the position of each lamp in the actual physical space into coordinate information in the modeling space reference coordinate system. The three-dimensional scanning device emits a laser beam or a grating pattern, which is reflected in the space and received by the scanning device. By analyzing the changes in the reflected laser beam or grating pattern, the scanning device can calculate the distance and shape of the object in the space. After the scan is completed, the three-dimensional scanning device generates a three-dimensional point cloud data set containing the geometric structure and relative position of all lamps.
[0084] By processing the generated 3D point cloud data set, the position information of each lamp is extracted. To convert the position information of each lamp into the coordinate information in the reference coordinate system, it is necessary to determine the transformation matrix between the two coordinate systems. The transformation matrix contains transformation parameters such as rotation, translation, and scaling. By applying this transformation matrix, the position of each lamp in the actual physical space can be converted into the coordinates in the reference coordinate system of the modeling space. Through this step, the position information of each lamp is unified in the coordinate system of the modeling space.
[0085] In this embodiment, by calling a 3D scanning device to scan the actual physical space, not only can the geometric structure and relative position of the lamps be accurately captured, but also a detailed 3D point cloud data set is generated, providing an accurate data basis for subsequent modeling and control. An accurate 3D model is created in the reference coordinate system of the modeling space using the 3D point cloud data set, ensuring that the position and orientation of the 3D model of each lamp in the modeling space are completely consistent with its position and orientation in the actual physical space, thereby enhancing the practicality and accuracy of the modeling space. The lamp position information obtained by the 3D scanning device is converted into the reference coordinate system, achieving a seamless connection of the position information between the actual physical space and the modeling space, and providing accurate coordinate information for subsequent 3D model adjustments.
[0086] Based on any embodiment of the method of this application, please refer to Figure 6 , after converting the relative position information into coordinate information in the reference coordinate system, comprising:
[0087] Step S5240, responding to the sequential lighting test signal, and verifying whether the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space based on the coordinate information of the lamp;
[0088] A sequential lighting test is performed using the coordinate information of the lamps in the graphical user interface modeling space, the purpose of which is to ensure that the lamps can respond correctly in a predetermined order. In one embodiment, a sequential lighting test signal is first sent, and the sequential lighting test signal contains sequential instructions for lighting the lamps. According to the coordinate information of the lamps in the modeling space, the position of each lamp in the actual physical space is determined, and the lamps are controlled to light up in sequence according to this position sequence. During the test, each lamp will light up in sequence according to a predetermined sequence, and the user can observe the lighting sequence of the lamps in the actual physical space to verify whether it is consistent with the sequence in the modeling space. If the lighting sequence of the lamps is consistent with expectations, it means that the response sequence of the lamps is correct, and the layout of the lamps in the modeling space matches the actual physical space. In this way, it is verified and ensured that the layout of the lamps in the graphical user interface modeling space is completely matched with the layout of the lamps in the actual physical space, thereby providing an accurate basis for the subsequent specific implementation steps.
[0089] Step S5250: When the lighting order in the graphical user interface is inconsistent with the lighting order in the actual physical space, the position of the lamp in the graphical user interface modeling space is adjusted, and the coordinate information of the lamp is updated after the adjustment is completed.
[0090] If it is found that the lighting order of the lamps is incorrect, the user can further adjust the position of the lamps in the modeling space, or check the connection and control settings of the lamps to ensure that the lamps can respond in the correct order. In one embodiment, if it is found that the lamps do not respond in the preset order during the sequential lighting test, the user can select the lamps that do not respond correctly on the graphical user interface and use the movement tools provided by the interface to adjust the positions of these lamps. The adjustment includes moving the lamps to new coordinate positions or rotating the lamps to change their direction. After the adjustment is completed, the coordinate information of the lamps in the graphical user interface modeling space is automatically updated, providing an accurate basis for the subsequent specific implementation steps.
[0091] Step S5260: re-issue the sequential lighting test signal for verification until the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space.
[0092] The sequential lighting test signal is re-issued based on the updated fixture coordinate information. The fixtures will light up in the new order again, and the user can observe the lighting order of the fixtures in the graphical user interface to verify whether it is consistent with the lighting order in the actual physical space. If the lighting order of the fixtures is still incorrect, the user will continue to make adjustments and repeat the above process until all fixtures can correctly respond to the test signal in the preset order. This process ensures that the fixture layout in the modeling space is completely matched with the fixture layout in the actual physical space, thus providing an accurate basis for the subsequent specific implementation steps.
[0093] In this embodiment, by performing a sequential lighting test, the response order of the lamps is verified using the lamp coordinate information in the graphical user interface modeling space, thereby ensuring the consistency between the virtual model and the actual physical space. By adjusting the lamp positions on the graphical user interface and re-performing the sequential lighting test until all lamps can correctly respond to the test signal in the preset order, the problem of incorrect lamp response order is solved, ensuring that the lamp layout in the modeling space completely matches the lamp layout in the actual physical space.
[0094] Based on any embodiment of the method of this application, please refer to Figure 7 , after converting the relative position information into coordinate information in the reference coordinate system, comprising:
[0095] Step S5270, responding to the sequential lighting test signal, and verifying whether the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space based on the coordinate information of the lamp;
[0096] As shown in the above-mentioned implementation mode, this step also uses the coordinate information of the lamps in the graphical user interface modeling space to perform a sequential lighting test, the purpose of which is to ensure that the lamps can respond correctly in a predetermined order. In one embodiment, a sequential lighting test signal is first sent, and the sequential lighting test signal contains sequential instructions for lighting the lamps. According to the coordinate information of the lamps in the modeling space, the position of each lamp in the actual physical space is determined, and the lamps are controlled to light up in sequence according to this position sequence. During the test, each lamp will light up in sequence according to a predetermined sequence, and the user can observe the lighting sequence of the lamps in the actual physical space to verify whether it is consistent with the sequence in the modeling space. If the lighting sequence of the lamps is consistent with expectations, it means that the response sequence of the lamps is correct, and the layout of the lamps in the modeling space matches the actual physical space.
[0097] Step S5280: When the lighting order in the graphical user interface is inconsistent with the lighting order in the actual physical space, the coordinate information of the lamp in the space scanning data is updated according to the position of the lamp after position adjustment in the actual physical space.
[0098] When the lighting order in the graphical user interface is inconsistent with the lighting order in the actual physical space, the position of the lamps in the actual physical space needs to be adjusted first. That is, by physically moving the lamps, ensure that the position of each lamp matches the layout in the modeling space. After the adjustment is completed, it is necessary to re-acquire the updated spatial scan data. The adjusted lamp positions can be accurately scanned by using a 3D scanning device, such as a laser scanner or an ultrasonic scanner, to obtain new geometric structure information and relative position information, and then the new spatial scan data is imported into the modeling space of the graphical user interface, and the coordinate information of the lamps is updated based on the updated spatial scan data to ensure that the lamp position information in the modeling space is consistent with the latest layout in the actual physical space.
[0099] Step S5290: re-issue the sequential lighting test signal for verification until the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space.
[0100] Re-issue the sequential lighting test signal, and control the lamps to light up in the new order according to the updated lamp coordinate information. Observe the lighting order of the lamps in the actual physical space to verify whether it is consistent with the order in the modeling space. If the lighting order of the lamps is still incorrect, the user will continue to make adjustments and repeat the above process, including rescanning, updating coordinate information, and performing the sequential lighting test again, until all lamps can correctly respond to the test signal in the preset order.
[0101] In this embodiment, by performing a sequential lighting test, the coordinate information of the lamps in the graphical user interface modeling space is used to verify the response order of the lamps, thereby ensuring the consistency between the virtual model and the actual physical space. If the lighting order is found to be inconsistent during the test, the deviation in the layout is corrected by adjusting the position of the lamps in the actual physical space and updating the space scanning data. This step not only ensures a high degree of synchronization between the modeling space and the actual physical space, but also accurately reflects the actual position of the lamps by obtaining new coordinate information. Through repeated testing and adjustment until all lamps can correctly respond to the test signal in the preset order, the problem of incorrect lamp response order is solved, and finally it is ensured that the layout of the lamps in the modeling space is completely matched with the layout of the lamps in the actual physical space, providing an accurate basis for the subsequent specific implementation steps.
[0102] Based on any embodiment of the method of this application, please refer to Figure 8 , responding to the sequential lighting test signal, and verifying whether the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space based on the coordinate information of the lamp, including:
[0103] Step S5231, in response to the lighting sequence preview instruction of the lamp, generating an execution script acting on the lamp in the user graphical interface according to the lighting sequence set in the sequential lighting test signal and the coordinate information of the lamp;
[0104] In this embodiment, after setting the lighting sequence of the lamps, the user can trigger the lighting sequence preview instruction of the lamps through the lighting effect preview control on the touch interface and enter the preview mode. In response to this instruction, the terminal device will generate a detailed execution script according to the lighting sequence set in the sequential lighting test signal. The execution script contains parameters such as the identification information, lighting sequence, and time delay of each lamp. These parameters are calculated based on the coordinate information of each lamp in the modeling space and the set lighting sequence. The generated execution script will then be used to control the lighting operation of each lamp, allowing the user to intuitively preview the lighting sequence of the lamps on the graphical user interface, thereby verifying whether the lighting sequence is consistent with the lighting sequence in the actual physical space, ensuring that the layout of the lamps in the modeling space is completely matched with the layout of the lamps in the actual physical space.
[0105] Step S5232, execute the execution script to make the lamp play the lighting effect according to the set lighting sequence to confirm whether the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space.
[0106] Once the execution script is generated, it will be immediately executed in the preview mode of the user graphical interface to simulate the effect of the lamps lighting up in sequence according to the set lighting sequence. The user can observe the simulated lighting sequence of the lamps on the user graphical interface to verify whether the lighting sequence on the user graphical interface is consistent with the expected lighting sequence in the actual physical space. In one embodiment, if the simulated lighting sequence is consistent with expectations, the user can further test in the actual physical space to confirm whether the actual lighting sequence is consistent with the simulation effect of the graphical user interface. This step provides the user with an opportunity to preview and adjust the lighting sequence of the lamps between actual operations, thereby enhancing interactivity and practicality with the user.
[0107] In this embodiment, the execution script is generated by responding to the preview instruction of the lighting sequence of the lamps. The execution script is executed to simulate the lighting sequence of the lamps in the user graphical interface. If the lighting sequence in the graphical user interface is inconsistent with the lighting sequence in the actual physical space, the user can adjust the position of the lamps in the graphical user interface modeling space and repeat the simulation test, which provides the user with an opportunity to preview and adjust the lighting sequence of the lamps before actual operation. This not only reduces the number of actual tests, but also improves the interactivity and practicality with the user. In this way, it ensures that the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space, thereby improving the accuracy and efficiency of lamp control.
[0108] Based on any embodiment of the method of this application, please refer to Fig. 9 , according to the serial position and lamp bead layout information of the lamp, decomposing the preset lighting effect into sub-lighting effects corresponding to the lamp type to which the lamp belongs, and sending the sub-lighting effects to the corresponding lamp for application, including:
[0109] Step S5410: If the lighting effect preset by the user can be decomposed according to the timing, then according to the serial position of the lamp and the lamp bead layout information, the sub-lighting effect corresponding to the lamp is determined and the timing of each sub-lighting effect is set;
[0110] The user selects a preset lighting effect in the graphical user interface and determines whether the lighting effect can be decomposed according to the time sequence, that is, whether the lighting effect can be decomposed into multiple independent parts or stages, each of which can be activated according to the predetermined time sequence. Common lighting effects that can be decomposed according to the time sequence include gradient lighting effects, flowing lighting effects, flashing lighting effects, etc.
[0111] If the lighting effects preset by the user can be decomposed by timing, as disclosed above, first of all, it is necessary to set the serial position of each lamp, that is, the order and relative position of the lamps when executing control instructions. According to the serial position of each lamp and the direction of movement of the lighting effect selected by the user in the graphical user interface, the timing of each lamp to display the sub-lighting effect can be determined. At the same time, the lamp bead layout information of each lamp is obtained, including the number of lamp beads, the arrangement of lamp beads and their serial position. And ensure that the sub-lighting effect of each lamp can be adapted to the specific lamp bead layout information such as the number of lamp beads, arrangement method, serial position, etc., so as to be decomposed into sub-lighting effects corresponding to the lamp type to which each lamp belongs.
[0112] Step S5420: Send each sub-lighting effect to the corresponding lamp, so that the lamp plays the corresponding sub-lighting effect according to the timing.
[0113] According to the sub-lighting effects set in the previous step and their corresponding timing, the sub-lighting effect control instructions for each lamp are generated, and then the sub-lighting effect control instructions for each lamp are sent to the corresponding lamp through the wireless communication protocol. After receiving the sub-lighting effect control instruction, each lamp will execute the corresponding sub-lighting effect in sequence according to the parameters and time points in the lighting effect control instruction, ensuring that each lamp executes its corresponding sub-lighting effect at the correct time point, thereby realizing the lighting effect preset by the user. This method of sending and executing sub-lighting effects in sequence ensures the coordination and consistency of lighting effects through precise time control and communication.
[0114] In this embodiment, by analyzing the lighting effects preset by the user and according to the serial position and lamp bead layout information of the lamps, the corresponding sub-lighting effects of each lamp are determined and the timing is set. This step ensures that the decomposition of the lighting effects matches the actual layout and characteristics of the lamps, and enhances the personalization and adaptability of the lighting effect display. Then, based on the corresponding sub-lighting effects and their timing of each lamp, sub-lighting effect control instructions are generated and sent, so that each lamp plays the corresponding sub-lighting effect in sequence. This step ensures the coordination and consistency of lighting effects among multiple lamps through precise time control and communication, and improves the accuracy of lighting effect control and the overall experience of users.
[0115] Based on any embodiment of the method of this application, please refer to Fig.10 , according to the serial position and lamp bead layout information of the lamp, decompose the lighting effect preset by the user into sub-lighting effects corresponding to the lamp type to which each lamp belongs, and send the sub-lighting effects to the corresponding lamp for application, including:
[0116] Step S5430: if the lighting effect preset by the user cannot be decomposed according to the time sequence, a sub-lighting effect with the same description information is copied for the lamp based on the lighting effect preset by the user;
[0117] If the lighting effect preset by the user cannot be decomposed in time sequence, that is, the lighting effect does not have a clear time sequence, then a sub-lighting effect with the same description information is copied for each lamp based on the lighting effect preset by the user. In one embodiment, these sub-lighting effects contain all the parameters of the lighting effect preset by the user, such as brightness value, color value, flashing frequency, etc. For example, if the lighting effect preset by the user is a starry sky map, at this time, a sub-lighting effect is generated for each lamp, and the description information of the sub-lighting effect is "display starry sky map". Subsequently, these sub-lighting effects are sent to the corresponding lamps, so that each lamp displays the starry sky map. In this way, even if the lighting effect cannot be decomposed in time sequence, it can be ensured that the lighting effect displayed by each lamp is completely consistent with the lighting effect preset by the user, thereby achieving coordination and synchronous display of the lighting effects among multiple lamps.
[0118] Step S5440: setting the timing of each sub-lighting effect based on the serial position of the lamp;
[0119] Even if the user-preset lighting effect itself does not have a clear time sequence, the timing of each sub-lighting effect can still be set according to the serial position of the lamps to ensure the coordination and synchronization of the lighting effect among multiple lamps. By setting a timing for each sub-lighting effect, the start time and duration of the sub-lighting effect in the lighting effect sequence are determined. For example, if the lamps are arranged from left to right, the sub-lighting effects can be set to activate from left to right in sequence, or the timing can be set in another user-specified order. In this way, it can ensure that each lamp executes its corresponding sub-lighting effect at the correct time point, thereby realizing the lighting effect preset by the user.
[0120] Step S5450: Send the copied sub-lighting effects to the corresponding lamps, so that the lamps play the same lighting effects based on the timing.
[0121] Based on the sub-lighting effects copied in the previous step and their corresponding timing, the sub-lighting effect control instructions for each lamp are generated, and then the sub-lighting effect control instructions for each lamp are sent to the corresponding lamp through the wireless communication protocol. After receiving the sub-lighting effect control instruction, each lamp will execute the corresponding sub-lighting effect in sequence according to the parameters and time points in the lighting effect control instruction, ensuring that each lamp executes its corresponding sub-lighting effect at the correct time point, thereby realizing the lighting effect preset by the user. This method of sending and executing sub-lighting effects in sequence ensures the coordination and consistency of lighting effects through precise time control and communication.
[0122] In this embodiment, by copying a sub-lighting effect with the same description information for each lamp, it is ensured that even if the lighting effect cannot be decomposed in time sequence, the lighting effect displayed by each lamp is completely consistent with the lighting effect preset by the user, thereby enhancing the personalization and adaptability of the lighting effect display. By setting the timing of each sub-lighting effect based on the serial position of the lamp, the coordination and synchronous display of the lighting effect among multiple lamps are ensured, thereby improving the accuracy and overall experience of the user's lighting effect control. By generating and sending sub-lighting effect control instructions, each lamp plays the same lighting effect in time sequence, thereby ensuring the coordination and consistency of the lighting effect.
[0123] See also Fig.11 , a multi-type lamp linkage control device provided to meet one of the purposes of the present application is a functional embodiment of the multi-type lamp linkage control method of the present application. On the other hand, the device is a multi-type lamp linkage control device provided to meet one of the purposes of the present application, including an identification information acquisition module 5100, a modeling space mapping module 5200, a serial position setting module 5300 and a lighting effect decomposition module 5400, wherein the identification information acquisition module 5100 is configured to obtain identification information corresponding to each of a plurality of lamps, and determine the type of lamp and the lamp bead layout information of the lamp according to the identification information of the lamp, and the lamp type is used to indicate the lamp bead layout of the lamp. Corresponding modeling freedom types, wherein the types of some of the lamps are different from each other; a modeling space mapping module 5200, configured to map the lamps to the modeling space of the graphical user interface according to the corresponding position information of the lamps in the actual physical space; a serial position setting module 5300, configured to set the serial positions of the multiple lamps based on the modeling space; a lighting effect decomposition module 5400, configured to decompose the preset lighting effect into sub-lighting effects corresponding to the lamp type to which the lamp belongs according to the serial position and lamp bead layout information of the lamp, and send the sub-lighting effects to the corresponding lamps for application, so that the multiple lamps can collaboratively display the preset lighting effect.
[0124] In a further embodiment, the identification information acquisition module 5100 includes: a broadcast signal receiving submodule, configured to receive the broadcast signal of the lamp; an identification information determination submodule, configured to determine the identification information of the lamp based on the broadcast signal, the identification information including the lamp type, lamp bead layout information and a unique identification code; a lamp connection submodule, configured to identify and connect the lamp based on the unique identification code; and an associated storage submodule, configured to associate and store the lamp bead layout information, lamp type and unique identification code of the lamp.
[0125] In a further embodiment, the modeling space mapping module 5200 includes: a lamp scanning submodule, configured to obtain spatial scanning data of the actual physical space where the multiple lamps are located, and the spatial scanning data includes geometric structure information and relative position information of the multiple lamps; a lamp mapping submodule, configured to map the geometric structure information and the relative position information to a reference coordinate system of the modeling space of the graphical user interface based on the geometric structure information and the relative position information; and a coordinate information conversion submodule, configured to convert the relative position information into coordinate information in the reference coordinate system.
[0126] In a further embodiment, after the coordinate information conversion submodule, it includes: a first test signal response submodule, which is configured to respond to a sequential lighting test signal, and verify whether the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space based on the coordinate information of the lamp; a first coordinate information update submodule, which is configured to adjust the position of the lamp in the graphical user interface modeling space when the lighting sequence in the graphical user interface is inconsistent with the lighting sequence in the actual physical space, and update the coordinate information of the lamp after the adjustment is completed; a first repeated verification submodule, which is configured to re-issue a sequential lighting test signal for verification until the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space.
[0127] In a further embodiment, after the coordinate information conversion submodule, it includes: a second test signal response submodule, which is configured to respond to a sequential lighting test signal, and verify whether the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space based on the coordinate information of the lamp; a second coordinate information update submodule, which is configured to update the coordinate information of the lamp in the space scanning data according to the position of the lamp after position adjustment in the actual physical space when the lighting sequence in the graphical user interface is inconsistent with the lighting sequence in the actual physical space; and a second repeated verification submodule, which is configured to re-issue a sequential lighting test signal for verification until the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space.
[0128] In a further embodiment, the test signal response submodule includes: a preview instruction response submodule, which is configured to respond to a preview instruction of the lighting sequence of the lamp, and generate an execution script that acts on the lamp in the user graphical interface according to the lighting sequence set in the sequential lighting test signal and the coordinate information of the lamp; and an execution script running submodule, which is configured to execute the execution script so that the lamp plays the lighting effect according to the set lighting sequence, so as to confirm whether the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space.
[0129] Based on any embodiment of the method of the present application, the lighting effect decomposition module 5400 includes: a first lighting effect decomposition sub-module, configured to determine the sub-lighting effects corresponding to the lamp and set the timing of each sub-lighting effect according to the serial position and lamp bead layout information of the lamp if the lighting effect preset by the user can be decomposed according to the timing; a first lighting effect sending sub-module, configured to send each sub-lighting effect to the corresponding lamp, so that the lamp plays the corresponding sub-lighting effect according to the timing.
[0130] Based on any embodiment of the method of the present application, the lighting effect decomposition module 5400 includes: a second lighting effect decomposition sub-module, configured to copy sub-lighting effects with the same description information for the lamp based on the user-preset lighting effects if the lighting effects preset by the user cannot be decomposed according to the timing; a lighting effect timing setting sub-module, configured to set the timing of each sub-lighting effect based on the serial position of the lamp; and a second lighting effect sending sub-module, configured to send the copied sub-lighting effects to the corresponding lamps, so that the lamps play the same lighting effects based on the timing.
[0131] In order to solve the above technical problems, the present application also provides a computer device. Fig.12 As shown, a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. Among them, the computer-readable storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a method for controlling multiple types of lamps in linkage. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute the method for controlling multiple types of lamps in linkage of the present application. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art can understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0132] In this embodiment, the processor is used to execute Fig.11The memory stores the program code and various data required to execute the above modules or submodules. The network interface is used to transmit data between user terminals or servers. The memory in this embodiment stores the program code and data required to execute all modules / submodules in the multi-type lighting linkage control device of the present application, and the server can call the program code and data of the server to execute the functions of all submodules.
[0133] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the multi-type lamp linkage control method of any embodiment of the present application.
[0134] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments of the present application can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0135] It will be understood by those skilled in the art that the various operations, methods, steps, measures, and schemes in the processes discussed in this application may be alternated, changed, combined, or deleted. Furthermore, other steps, measures, and schemes in the various operations, methods, and processes discussed in this application may also be alternated, changed, rearranged, decomposed, combined, or deleted. Furthermore, the steps, measures, and schemes in the various operations, methods, and processes in the prior art that are open source and in this application may also be alternated, changed, rearranged, decomposed, combined, or deleted.
[0136] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for controlling linkage of multiple types of lamps, characterized in that: include: Obtaining identification information corresponding to each of the plurality of lamps, and determining the type of lamp and lamp bead layout information of the lamp according to the identification information of the lamp, wherein the lamp type is used to indicate the type of modeling freedom corresponding to the lamp bead layout of the lamp, wherein the lamp types of some of the lamps are different from each other; Mapping the lamp to the modeling space of the graphical user interface according to the corresponding position information of the lamp in the actual physical space; Setting serial positions of the plurality of lamps based on the modeling space; According to the serial position and lamp bead layout information of the lamp, distinguish whether the preset lighting effect can be decomposed in time sequence, decompose the preset lighting effect accordingly into sub-lighting effects corresponding to the lamp type to which the lamp belongs, and send the sub-lighting effects to the corresponding lamp for application, so that the preset lighting effect can be collaboratively displayed by the multiple lamps.
2. The multi-type lamp linkage control method according to claim 1, characterized in that: Obtaining identification information corresponding to each of the plurality of lamps, and determining the type of the lamp and lamp bead layout information of the lamp according to the identification information of the lamp, including: receiving a broadcast signal of the lamp; Determine identification information of the lamp according to the broadcast signal, wherein the identification information includes lamp type, lamp bead layout information and a unique identification code; Based on the unique identification code, identifying and connecting the lamp; The lamp bead layout information, lamp type and unique identification code of the lamp are stored in association.
3. The multi-type lamp linkage control method according to claim 1, characterized in that: Mapping the lamp to a modeling space of a graphical user interface according to corresponding position information of the lamp in the actual physical space includes: Acquire spatial scanning data of an actual physical space where the plurality of lamps are located, the spatial scanning data including geometric structure information and relative position information of the plurality of lamps; Based on the geometric structure information and the relative position information, mapping them to a reference coordinate system of a modeling space of a graphical user interface; The relative position information is converted into coordinate information in the reference coordinate system.
4. The multi-type lamp linkage control method according to claim 3, characterized in that: After the relative position information is converted into coordinate information in the reference coordinate system, the method further comprises: In response to the sequential lighting test signal, based on the coordinate information of the lamp, verify whether the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space; When the lighting order in the graphical user interface is inconsistent with the lighting order in the actual physical space, the position of the lamp in the graphical user interface modeling space is adjusted, and after the adjustment is completed, the coordinate information of the lamp is updated; Re-issue the sequential lighting test signal for verification until the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space.
5. The multi-type lamp linkage control method according to claim 3, characterized in that: After the relative position information is converted into coordinate information in the reference coordinate system, the method further comprises: In response to the sequential lighting test signal, based on the coordinate information of the lamp, verify whether the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space; When the lighting order in the graphical user interface is inconsistent with the lighting order in the actual physical space, updating the coordinate information of the lamp in the space scanning data according to the position of the lamp after position adjustment in the actual physical space; Re-issue the sequential lighting test signal for verification until the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space.
6. The multi-type lamp linkage control method according to claim 4, characterized in that: In response to the sequential lighting test signal, based on the coordinate information of the lamp, verifying whether the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space, including: In response to the lighting sequence preview instruction of the lamp, an execution script acting on the lamp in the user graphical interface is generated according to the lighting sequence set in the sequential lighting test signal and the coordinate information of the lamp; The execution script is executed to make the lamp play the lighting effect according to the set lighting sequence to confirm whether the lighting sequence in the graphical user interface is consistent with the lighting sequence in the actual physical space.
7. The multi-type lamp linkage control method according to any one of claims 1 to 6, characterized in that: According to the serial position and lamp bead layout information of the lamp, decomposing the preset lighting effect into sub-lighting effects corresponding to the lamp type to which the lamp belongs, and sending the sub-lighting effects to the corresponding lamp for application, including: If the lighting effect preset by the user can be decomposed according to the timing, the sub-lighting effect corresponding to the lamp is determined according to the serial position of the lamp and the lamp bead layout information, and the timing of each sub-lighting effect is set; Each sub-lighting effect is sent to the corresponding lamp, so that the lamp plays the corresponding sub-lighting effect according to the timing.
8. The multi-type lamp linkage control method according to any one of claims 1 to 6, characterized in that: According to the serial position and lamp bead layout information of the lamp, decomposing the preset lighting effect into sub-lighting effects corresponding to the lamp type to which the lamp belongs, and sending the sub-lighting effects to the corresponding lamp for application, including: If the lighting effect preset by the user cannot be decomposed according to the time sequence, a sub-lighting effect with the same description information is copied for the lamp based on the lighting effect preset by the user; Based on the serial position of the lamps, setting the timing of each sub-lighting effect; The copied sub-lighting effects are sent to the corresponding lamps, so that the lamps play the same lighting effects based on the timing.
9. A multi-type lighting linkage control device, characterized in that: include: an identification information acquisition module, configured to acquire identification information corresponding to each of the plurality of lamps, and determine the type of lamp and lamp bead layout information of the lamp according to the identification information of the lamp, wherein the lamp type is used to indicate the type of modeling freedom corresponding to the lamp bead layout of the lamp, wherein the lamp types of some of the lamps are different from each other; A modeling space mapping module, configured to map the lamp to the modeling space of the graphical user interface according to the corresponding position information of the lamp in the actual physical space; A serial position setting module, configured to set the serial positions of the plurality of lamps based on the modeling space; The lighting effect decomposition module is configured to distinguish whether the preset lighting effect can be decomposed in time sequence according to the serial position and lamp bead layout information of the lamp, decompose the preset lighting effect into sub-lighting effects corresponding to the lamp type to which the lamp belongs, and send the sub-lighting effects to the corresponding lamp for application, so that the preset lighting effect can be collaboratively displayed by the multiple lamps.
10. A lighting effect control device, comprising a controller and a plurality of lamps, characterized in that: The controller is used to execute the steps of the multi-type lamp linkage control method as described in any one of claims 1 to 8, so as to control multiple lamps to display lighting effects in a linked manner.
11. A computer-readable storage medium, characterized in that: It stores a computer program implemented according to the method described in any one of claims 1 to 8 in the form of computer-readable instructions, and when the computer program is called and executed by a computer, the steps included in the corresponding method are executed.
Citation Information
Patent Citations
Lamp effect generation method and device, lamp effect control method and device and medium
CN116367387A
Scene type lamp effect configuration method and device, equipment and medium
CN116761302A