WO2023015607A1 - 发光设备的控制方法、装置、电子设备及存储介质 - Google Patents
发光设备的控制方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2023015607A1 WO2023015607A1 PCT/CN2021/114182 CN2021114182W WO2023015607A1 WO 2023015607 A1 WO2023015607 A1 WO 2023015607A1 CN 2021114182 W CN2021114182 W CN 2021114182W WO 2023015607 A1 WO2023015607 A1 WO 2023015607A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- control
- target
- light
- lighting
- shape
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/155—Coordinated control of two or more light sources
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/175—Controlling the light source by remote control
- H05B47/198—Grouping of control procedures or address assignation to light sources
- H05B47/199—Commissioning of light sources
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/175—Controlling the light source by remote control
- H05B47/196—Controlling the light source by remote control characterised by user interface arrangements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Definitions
- the present application relates to the technical field of lighting control, and more specifically, to a control method, device, electronic equipment, lighting effect control system and storage medium of a lighting device.
- the splicable electric light can form various patterns and shapes through the splicing of multiple intelligent light blocks like a puzzle, bringing users a new lighting experience.
- the existing splicable electric lamps mainly control the lighting effect through the terminal equipment.
- Terminal devices such as remote controllers, communicate with the splicing light, and can directly control the lighting device according to the user's lighting effect requirements.
- the inventor realized that such a control process is not intuitive and the interactive experience is not good.
- Embodiments of the present application provide a control method, device, electronic device, lighting effect control system, and storage medium for a lighting device.
- some embodiments of the present application provide a method for controlling a lighting device, which is applied to a terminal device configured with a control interface.
- the terminal device communicates with the lighting device.
- the lighting device includes a controller and a plurality of lighting modules.
- the control The method includes: obtaining and displaying a target splicing shape in a control interface, the target splicing shape includes a plurality of visualized virtual controls, and the target splicing shape is used to instruct the user to splice the controller and a plurality of light-emitting modules into an appearance consistent with the target splicing shape in response to the setting operation on the virtual control selected in the target splicing shape, recording the setting parameters of the virtual control; determining the sorting value of the selected virtual control in the target splicing shape; according to the setting parameter and the sorting value get Control information: send the control information to the controller, the control information is used to instruct the controller to control the light emission of the target light emitting module, the target light emitting module is the light emitting module corresponding to the sorting value in the solid shape.
- some embodiments of the present application also provide a method for controlling a light emitting device, which is applied to a light emitting device.
- the light emitting device includes a controller and a plurality of light emitting modules, and the light emitting device communicates with a terminal device;
- the target splicing shape is spliced, the target splicing shape is determined by the splicing shape of the virtual control displayed on the control interface of the terminal device; 1.
- the control information includes the setting parameters of the selected virtual control and the sorting value of the selected virtual control in the target splicing shape; the controller performs the target lighting module according to the control information
- the target lighting module is the lighting module corresponding to the sort value in the solid shape.
- some embodiments of the present application also provide a method for controlling a lighting device, which is applied to a lighting effect control system.
- the lighting effect control system includes a terminal device and a lighting device, and the lighting device includes a controller and a plurality of lighting modules.
- the device communicates with the light-emitting device, and the method includes: the terminal device obtains and displays a target splicing shape on a control interface, the target splicing shape includes a plurality of visualized virtual controls, and the target splicing shape is used to instruct the user to combine the controller with the multiple light-emitting modules.
- the group is spliced into a solid shape consistent with the shape of the target spliced shape; the terminal device records the setting parameters of the virtual control in response to the setting operation on the virtual control selected in the target spliced shape; the terminal device determines that the selected virtual control is in the target spliced shape Splice the sorting values in the shape, and get the control information according to the set parameters and sorting values; the terminal device sends the control information to the controller; the controller receives the control information, and controls the target light-emitting module according to the control information, and the target light-emitting module Is the light module corresponding to the sort value in the entity shape.
- some embodiments of the present application also provide a control device for a lighting device, which runs on a terminal device equipped with a control interface, and the terminal device communicates with the lighting device.
- the lighting device includes a controller and a plurality of lighting modules.
- the control device includes: a shape acquisition module, which is used to obtain and display the target splicing shape in the control interface, the target splicing shape includes a plurality of visual virtual controls, and the target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into a A solid shape consistent with the shape of the target stitching shape; a parameter recording module, used to record the setting parameters of the virtual control in response to the setting operation on the virtual control selected in the target stitching shape; a ranking determination module, used to determine the selected The sorting value of virtual controls in the target splicing shape; the control command module is used to obtain control information according to the set parameters and sorting values; the command sending module is used to send control information to the controller, and the control information is used to instruct the controller to control the target The light-emitting module performs light-emitting control, and the target light-emitting module is the light-emitting module corresponding to the sorting value in the solid shape.
- a shape acquisition module
- some embodiments of the present application further provide a control device for a lighting device, which runs on the lighting device.
- the lighting device includes a controller and at least one lighting module.
- the lighting device is connected to a terminal device in communication.
- the device includes: a receiving module , used to receive the control information sent by the terminal device; the control module is used to control the light emission of the light emitting module according to the control information.
- some embodiments of the present application further provide a lighting effect control system
- the lighting effect control system includes a terminal device and a lighting device, the lighting device includes a controller and at least one lighting module, and the terminal device is connected to the lighting device in communication;
- the terminal device is used to obtain and display the target splicing shape in the control interface, the target splicing shape includes a plurality of visual virtual controls, and the target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into the target splicing shape.
- a conforming physical shape a terminal device for recording setting parameters for a virtual control in response to a setting operation on a selected virtual control in a target mosaic shape; a terminal device for determining whether a selected virtual control is in a target mosaic shape
- the sorting value in is used to obtain control information according to the set parameters and sorting values, and is used to send control information to the controller; the controller is used to receive control information, and perform lighting control on the target light-emitting module according to the control information, and the target light-emitting module Is the light module corresponding to the sort value in the entity shape.
- some embodiments of the present application further provide an electronic device, including a memory, the memory stores computer program instructions, and when the computer program instructions are invoked by a processor, the above method for controlling a light emitting device is executed.
- the embodiment of the present application further provides a computer-readable storage medium, the computer-readable storage medium stores program codes, wherein, when the program codes are run by a processor, the above method for controlling a light emitting device is executed.
- the terminal device can obtain and display the target mosaic shape in the control interface, and then the terminal device can record the setting of the virtual control in response to the setting operation of the virtual control selected in the target mosaic shape parameter, and determine the sorting value of the virtual control in the target splicing shape, and then the terminal device can obtain control information according to the set parameters and sorting value, and send the control information to the controller. Further, the controller may receive the control information sent by the terminal device, and perform lighting control on the target lighting module according to the control information.
- the control process of the light emitting device can be intuitively shown on the control interface of the terminal device, which can improve the user's control experience.
- the terminal device can generate corresponding control information according to the sorting value and setting parameters of the virtual controls in the target mosaic shape, and send it to the controller of the lighting device, and the controller can control the lighting of the target lighting module according to the control information , thereby avoiding the operation of establishing a communication connection with the terminal equipment for each light-emitting module, improving control efficiency, and reducing the use of the micro-control unit by the light-emitting module at the same time, reducing production costs.
- Fig. 1 shows a schematic diagram of a hardware environment of a lighting device provided by an embodiment of the present application.
- Fig. 2 shows a schematic diagram of a hardware environment of a lighting module provided by an embodiment of the present application.
- Fig. 3 shows a schematic diagram of a circuit structure of a lighting module provided by an embodiment of the present application.
- Fig. 4 shows a schematic diagram of an application scenario of a method for controlling a lighting device provided by an embodiment of the present application.
- Fig. 5 shows a schematic flowchart of a method for controlling a light emitting device provided by an embodiment of the present application.
- Fig. 6 shows a schematic flowchart of another method for controlling a lighting device provided by an embodiment of the present application.
- Fig. 7 shows a schematic diagram of determining an initial virtual control in a method for controlling a lighting device provided by an embodiment of the present application.
- Fig. 8 shows a schematic diagram of determining an initial virtual control in another lighting device control method provided by an embodiment of the present application.
- Fig. 9 shows a schematic flow chart of another method for controlling a lighting device provided by an embodiment of the present application.
- Fig. 10 shows a schematic diagram of physical connection of a light emitting unit provided by an embodiment of the present application.
- Fig. 11 shows a module block diagram of a control device for a lighting device provided by an embodiment of the present application.
- Fig. 12 shows a module block diagram of another control device for a lighting device provided by an embodiment of the present application.
- Fig. 13 is a module block diagram of an electronic device provided by an embodiment of the present application.
- Fig. 14 is a module block diagram of a computer-readable storage medium provided by an embodiment of the present application.
- each light block establishes a communication connection with the master control device that controls the lighting effect.
- the master device needs to use the master-slave communication method to determine the connection relationship with each light block, for example, assign a serial number to each light block, and then send the connection relationship and serial number to the master device, and then through the master
- the splicing information of the control device can control any one or more light blocks to display the specified color or adjust the brightness.
- each light block needs to be equipped with its own Micro Controller Unit (MCU), so that each light block can respond to the addressing of the main control device Instructions and control instructions, and finally determine the serial number of each light block through addressing instructions, and then combine the electrical connection relationship between each light block to determine a series of lighting effects.
- MCU Micro Controller Unit
- this lighting effect control method is prone to errors in the process of identifying the sequence number and connection relationship of the process light blocks, which leads to the problem that the mosaic graphics of the actual light groups do not match the graphics displayed by the main control device.
- each light block An independent MCU needs to be configured, which also increases the production cost of the light block.
- the inventor reconstructed a lighting effect control method on the terminal equipment based on the hardware improvement of the lighting equipment after long-term research.
- the terminal device can acquire and display the target splicing shape in the control interface, and then the terminal device can record the virtual control in response to the setting operation of the virtual control selected in the target splicing shape. and determine the sorting value of the virtual control in the target stitching shape, then the terminal device can obtain control information according to the setting parameters and sorting value, and send the control information to the controller.
- the controller may receive the control information sent by the terminal device, and perform lighting control on the target lighting module according to the control information.
- the terminal device can generate corresponding control information according to the sorting value of the virtual controls in the target mosaic shape, and send it to the controller of the lighting device.
- the lighting controller can control the lighting of the target lighting module according to the control information, Therefore, each light-emitting module does not need to establish a communication connection with the terminal device, which reduces the use of the micro-control unit by the light-emitting module and reduces production costs.
- the lighting device control method provided by the embodiment of the present application can be applied to the lighting effect control system 100 shown in FIG. 1 .
- the lighting effect control system 100 includes a terminal device 110 and a lighting device 120 .
- the terminal device 110 can be an electronic device with communication and control capabilities such as a mobile phone, a tablet computer, and a PC.
- the terminal device 110 can be connected to the light emitting device 120 through a network, and the network can be a wireless network such as Wi-Fi, Bluetooth, and ZigBee, which can realize mutual communication and connection between the terminal device and the light emitting device, which is not limited here.
- the light emitting device 120 may include a plurality of light emitting modules 122, and the plurality of light emitting modules 122 may be electrically connected to the controller 121 (including but not limited to direct connection or indirect connection), and the plurality of light emitting modules 122 There may also be an electrical connection between them, and they can emit light according to specified lighting effect parameters under the control of the controller 121 .
- the light-emitting module 122 may have a polygonal structure, and the multiple light-emitting modules 122 in the light-emitting device 120 may have polygonal structures of different shapes.
- some of the light-emitting modules 122 have a triangular structure, and some of the light-emitting modules 122 has a pentagonal structure, another part of the light emitting module 122 has a hexagonal structure, and so on.
- Each light-emitting module 122 can include a plurality of light strips, that is, include an edge light-emitting unit arranged on at least one side of the polygonal structure, wherein each edge light-emitting unit is an independent control chip (Integrated Circuit Chip, IC),
- the control IC can be used to receive and transmit control information or/and control instructions, and to control the lighting effects of the side lighting units according to the control information or/and control instructions.
- there is no MCU inside the side lighting unit but a single-wire 256-level grayscale three-channel constant-current LED driver IC chip is used to control the light color of the lighting unit.
- IC chips can greatly reduce production costs, and the IC chips can include commonly used WS2811, WS2815 and GS1903 chips. Since the IC chips of multiple light-emitting units are cascaded through the serial interface, and a data line is used to complete the reception, decoding, shaping and forwarding of data signals, the communication process does not require the participation of the control unit, so the control of the light-emitting device proposed in this application The method can avoid identification errors that are easy to occur in the communication mode of the master-slave machine, and then effectively improve the control efficiency of the light-emitting device.
- the lighting device 120 includes a controller 121 , a first lighting module 124 , a second lighting module 126 and a third lighting module 128 .
- the number and shape of the light emitting modules in the light emitting device 120 can be selected by the user according to different usage scenarios.
- the first light-emitting module 124 and the second light-emitting module 126 have a hexagonal structure, and each hexagonal light-emitting module is equipped with six light-emitting units, and the six light-emitting units are connected in series to the light-emitting at the inside edge of the module.
- the second light emitting module 126 includes the first light emitting unit 101 , the second light emitting unit 102 , the third light emitting unit 103 , the fourth light emitting unit 104 , the fifth light emitting unit 105 and the sixth light emitting unit 106 cascaded in sequence. It can be understood that, in other embodiments, the number of side light-emitting units included in each polygonal light-emitting module does not have to be consistent with the number of sides.
- a hexagonal light-emitting module may include three , four or five side light-emitting units, may also include seven, eight or more side light-emitting units, the specific number and location of side light-emitting units can be set according to actual needs, and this application does not make any limit.
- the multiple light emitting modules 122 in the light emitting device 120 can be electrically connected through a hardware interface, so that control instructions or/and control information can be transmitted between the multiple light emitting modules 122 through the hardware interface. transfer between.
- each light-emitting module 122 may include an input port and an output port, and the input port may be used to connect with the controller to receive control instructions sent by the controller, and may also be used to communicate with the upper-level light-emitting module connected to the output port of the upper-level light-emitting module to receive the control command transmitted by the upper-level light-emitting module, and the output port can be used to connect with the input port of the next-level light-emitting module to transmit the control command to the next-level light-emitting module.
- the upper-level light-emitting module, the light-emitting module 122, and the lower-level light-emitting module can be regarded as a cascaded series connection relationship; or, one light-emitting module 122 can include one input port and multiple output ports port, the light-emitting module 122 can be connected to the controller or the upper-level light-emitting module through the input port to receive control instructions, and can be connected to multiple lower-level light-emitting modules through multiple output ports to transmit control At this time, the light emitting module 122 and multiple light emitting modules of the next level can be regarded as a cascaded series connection relationship.
- the light emitting device 120 is composed of a controller 121 and a plurality of light emitting modules (the first light emitting module 124, the second light emitting module 126 and the third light emitting module are illustrated in the figure). 128 etc. 3, the actual number of light-emitting modules can be set by the user) spliced together.
- the solid line arrows in the figure indicate the direction of series connection between multiple light-emitting units and the direction of control instruction transmission.
- Each light-emitting module also includes a splitter 123, which includes an input port and five output ports. The ports are used to realize the input of control commands, and the output ports are used to realize the output of control commands.
- each light-emitting module will set the number of input ports and output ports for control command transmission according to the number of built-in light-emitting units.
- Each light-emitting module only sets the input port of one input port, and the rest are output ports. outlet end.
- each light-emitting module includes a plurality of side light-emitting units (only a part is shown in the figure, such as the third light-emitting module 128 includes six side light-emitting units L), and each side light-emitting unit contains several lamp beads and a control IC.
- the plurality of side light-emitting units in one light-emitting module are serially connected in series, and inside the light-emitting device 120, the respective edge light-emitting units of the first light-emitting module 124, the second light-emitting module 126, and the third light-emitting module 128 also follow this
- the splicing structure shown in FIG. 3 of the three light emitting modules is also serially connected in sequence.
- FIG. 4 shows an application scenario of the control method involved in this application.
- the terminal device 210 may be a mobile phone, and the light emitting device 220 is formed by splicing four light emitting modules according to a certain shape.
- the user can open the control interface for controlling the lighting device 220 on the terminal device 210, such as the interface 211 of the specified application software APP, and establish a connection with the lighting device 220 through the APP, and then the user can use the control interface 211 of the APP. Lighting effect control for different requirements can be performed on the light emitting device 220 .
- control interface 211 can display a variety of different splicing shapes of the light emitting device 220 so that the user can select the target splicing shape, or the user can design the target splicing shape of the light emitting device 220 by himself. Further, the user can control the target splicing shape through the control interface.
- the display effect is set. For example, after the user confirms the lighting effect setting, the terminal device 210 can generate a control command and send the control command to the controller 221 of the lighting device 220 , and then the controller 221 can control the lighting effect of each lighting module 210 .
- Fig. 5 shows a control method of a lighting device provided by an embodiment of the present application, the method is applied to a lighting effect control system, the lighting effect control system includes a terminal device and a lighting device, and the lighting device includes a controller As well as a plurality of light emitting modules, the terminal device communicates with the light emitting device, and the method for controlling the light emitting device may include the following steps S310 to S350.
- Step S310 The terminal device obtains and displays the target splicing shape on the control interface.
- the target splicing shape includes a plurality of visualized virtual controls, and the target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into the target splicing shape. Consistent solid shape.
- the target splicing shape refers to a virtual shape that is determined by the user on the control interface of the terminal device according to different usage scenarios and is consistent with the appearance of the light emitting device.
- the target splicing shape may include multiple visualized virtual controls, and the multiple virtual controls It may correspond to multiple light emitting modules in the light emitting device, and may also correspond to the side light emitting units on any side of the light emitting modules.
- the virtual shape of the lighting device 220 on the control interface 210 is the target joint shape 212
- the virtual control 213 corresponds to the lighting module 223 on the lighting device 220
- the terminal device can determine the target splicing shape based on the physical shape of the light-emitting device, or specify the target splicing shape from the splicing shape library, and then display the target splicing shape through the control interface.
- the terminal device may acquire the target splicing shape according to the splicing setting operation performed by the user on the control interface. For example, after the user assembles the required solid shape of the light-emitting device according to a specific usage scenario, the user can stitch a target stitching shape that is consistent with the shape of the solid shape on the control interface of the terminal device. In addition, after the user stitches out the solid shape of the light-emitting device, the camera can take a photo of the solid shape, and the terminal device can obtain the photo and determine the contour map of the internal and external structures of the solid shape in the photo, and then convert the contour map into the target stitching shape.
- the terminal device can call a plurality of pre-stored splicing shapes from the splicing shape library, and display them on the control interface, so that the user can select the target splicing shape according to the usage scenario or/and usage requirements. After the shape is determined, the user can splice out the solid shape of the light emitting device that has the same shape as the target spliced shape.
- the target splicing shape may also include a splicing path, and the splicing path may be set in the splicing edge of each virtual control in the form of an arrow, thereby instructing the user to complete the solid shape of the lighting module according to the splicing path. stitching.
- Step S320 The terminal device records the setting parameters of the virtual control in response to the setting operation on the virtual control selected in the target spliced shape.
- the terminal device may acquire the setting parameters of the selected virtual control in the target splicing shape.
- setting parameters refers to that the user sets the lighting effect parameters used to control the lighting module corresponding to the virtual control according to the use requirements of the lighting equipment, and the lighting effect parameters may include but not limited to the lighting displayed by the lighting module/lighting unit Color, light brightness and light flickering delay, etc., are not limited here.
- the virtual control can also synchronously display the lighting effects corresponding to the lighting effect parameters set by the user. For example, after the user selects one or more virtual controls by touch, and sets the luminous color in the lighting effect parameters to red, the selected virtual controls will display red simultaneously, so as to give the user an intuitive user experience.
- the terminal device after the terminal device displays the target splicing shape, it can record the setting parameters of the virtual control in response to the user's setting operation.
- the lighting module corresponding to the specified virtual control is used to display the lighting effect, and the man-machine interface interaction operation is issued, for example, the user sends out the selected virtual control and input instructions in the lighting effect control window of the control interface.
- the operation for the user to select virtual controls in the target splicing shape may be to select all, single-select or multiple-select virtual controls through touch operations on the control interface.
- the user can select a virtual control on the control interface and slide the control on the "color" of the control interface to set the color of the lighting module corresponding to the virtual control.
- the terminal device can obtain the "color”
- the Value attribute value (such as RGB value or YUV value) of the sliding control is recorded as the color parameter of the corresponding virtual control, that is, the setting parameter.
- the setting operation may refer to the user selecting a lighting effect template in a lighting effect template selection box provided on the control interface after selecting a virtual control on the control interface.
- the terminal device can record the setting parameters of the virtual control based on the user's selection operation. Specifically, after acquiring the user's selection operation, the terminal device may determine the lighting effect template selected by the user according to the selection operation, and use the default lighting effect parameters corresponding to the lighting effect template as setting parameters.
- the lighting effect template is data packaged as control instructions or control information pre-stored in the terminal device, and the lighting effect parameters of the lighting effect template can include multiple lighting effects (such as lighting effects such as marquees) and the corresponding lighting effects.
- the user can quickly obtain the setting parameters for controlling the lighting device by selecting a pre-stored lighting effect template. Further, after the user determines the lighting effect template, the terminal device may modify the lighting effect parameters in the lighting effect template in response to the user's setting operation, so that the lighting effect control is more suitable for the user's needs.
- Step S330 the terminal device determines the sorting value of the selected virtual control in the target mosaic shape, and obtains control information according to the set parameters and the sorting value.
- the control method of the lighting device does not use the master-slave communication method, but uses multiple lighting modules of the lighting device according to The splicing order sequentially transmits the control command and intercepts the communication mode of the control command to realize the lighting effect control of the terminal device to the light-emitting device.
- the control instruction refers to an instruction generated based on the control information and used for the terminal device to control the light emitting device to display a consistent lighting effect.
- the control command can be composed of multiple control fields. Each control field corresponds to a lighting module and contains operators that can be directly parsed and executed by the lighting module.
- the fixed number of bytes in each control field can be set by the user.
- the communication method of intercepting the control command refers to that, on the basis of the serial structure of multiple light-emitting modules, after receiving the control command, each light-emitting module uses its own shaping circuit to intercept the control field of the control command header. Come out to analyze and execute, and further, this node transmits the control instructions of the remaining segment after interception to the next light-emitting module.
- the terminal device When the terminal device generates the control command, the operator will be added to the segment corresponding to the sorting value of the selected control light-emitting module in the serial structure, and no content will be added to other segments.
- the control command is 30 bytes in length (assuming that the 10th lighting module is also selected for control)
- the first light-emitting module connected to the controller will receive a complete 30-byte control command.
- the first light-emitting module will intercept itself In the control field corresponding to the sorting value in the concatenated structure, the intercepted control command is passed to the second light-emitting module. In this way, the second light-emitting module receives a control with a length of 27 bytes. instruction. If only the light-emitting modules whose control splicing order is 3 and 4 are selected, when the control command is generated, the third and fourth segments of the control command will be set with operators, and the other segments will not be set.
- the target splicing shape and the solid shape can have the same shape on the splicing structure
- the virtual control at a specific position in the target spliced shape also has a visually corresponding lighting module at the specific position in the physical shape of the lighting device. Therefore, the terminal device can determine the sorting value of the virtual control selected in the target splicing shape (the sorting value represents the specific position of the virtual control in the target splicing shape), and generate control information or/and control information according to the set parameters and the sorting value. Instructions are used to realize the lighting control of the light-emitting module at the visually corresponding position in the physical shape of the light-emitting device, so as to achieve the consistency of the light-emitting control in terms of visual perception and improve user experience.
- the consistency of lighting control in terms of visual perception refers to: after the user obtains the solid shape by splicing and controls the light-emitting device of the solid shape according to the target splicing shape, the user sets the target in the target splicing shape.
- the virtual control at the position emits light according to the set lighting effect parameters.
- the control information generated in this process can simultaneously control the light emission of the light-emitting module corresponding to the virtual control at the target position in the solid shape, so that the light-emitting module follows
- the lighting effect parameters set in the control information are illuminated synchronously, showing a consistent lighting effect that conforms to the lighting effect parameters. Therefore, when the terminal device controls the lighting of the lighting device according to the control information, the consistency of the user's perception of the control process is ensured, thereby ensuring that the user has a good interactive experience for the lighting control of the splicable smart lamp.
- the target position can be characterized by the sorting value of the virtual control in the target splicing shape, and the sorting value of the virtual control in the target splicing shape can correspond to the light-emitting module or/and under different conditions in different application scenarios.
- the sort value of the light unit can correspond to the light-emitting module or/and under different conditions in different application scenarios.
- the lighting module can be divided into single light source equipment and multi-light source equipment, wherein the single light source equipment can be understood as the lighting module is equipped with a lighting unit inside, for example, a set of Or a light-emitting unit, or the light-emitting module is equipped with multiple light-emitting units but all light-emitting units can only be controlled uniformly (for example, these side light-emitting units are connected in parallel to receive and execute the same control command); multi-light source devices can understand
- the lighting module includes a plurality of sequentially cascaded side lighting units, and the multiple side lighting units can be individually controlled (eg, multiple sequentially cascaded lighting units are configured to respectively receive and execute different control instructions).
- each virtual control directly represents each lighting module, and multiple virtual controls correspond to multiple lighting modules one-to-one.
- the sort value in can be the stitching order value of the virtual control.
- the stitching order value is used to represent the stitching order of each virtual control when the virtual widget is stitched to generate a target stitching shape.
- the lighting module when the lighting module is a multi-light source device, the lighting module includes a plurality of edge lighting units, a plurality of virtual controls and a plurality of lighting modules correspond one-to-one, and a virtual control and its corresponding lighting module Have the same shape structure, that is, each virtual control can be configured with a virtual light-emitting component corresponding to the light-emitting module.
- the sort value of the virtual control in the target splicing shape can be understood as the sequence number of the virtual light-emitting component in the target splicing shape value.
- the physical structure of the light emitting module takes the light emitting module 126 in FIG.
- the virtual control corresponding to the lighting module 126 in the control interface is hexagonal, and the hexagonal structure of the virtual control corresponds to the physical structure of the lighting module 126, and the virtual control includes virtual lighting components arranged on the sides of the hexagonal structure,
- the setting positions of these virtual lighting components on the virtual control are consistent with the setting positions of the multiple side lighting units 101 , 102 , 103 , 104 , 105 , 106 on the lighting module 126 , and the multiple virtual lighting components can be controlled individually.
- the sorting value of the selected virtual control is the side sorting value of the selected edge (such as a virtual light-emitting component) in the selected virtual control in the target joint shape .
- the user when the user performs lighting control/lighting effect control, he can select a single or multiple virtual controls (such as the entire hexagon) in the control interface to control the corresponding single or multiple virtual controls.
- the user can also select a single or multiple virtual lighting components (such as one or more sides of a hexagon) in the control interface to control the corresponding single or multiple lighting modules. Multiple edge-lit units. Therefore, when the selected virtual control is the virtual control as a whole, its sorting value is the splicing order value of the virtual control; when the selected virtual control is a virtual lighting component, its sorting value is the selected virtual control The edge ordering value of edges (such as virtual light components) in the target mosaic shape.
- the terminal device may extract the splicing order value from the configuration file of the target splicing shape.
- the configuration file can be used to record the splicing order of each virtual control in the target splicing shape and the position information of each virtual control in the control interface.
- the location information can be represented by an array-type data structure.
- the target stitching shape contains the first virtual control and the second virtual control
- the configuration file stores the position information [a, 1] corresponding to the first virtual control and the position information [b, 2] corresponding to the second virtual control
- a and b can be respectively expressed as the two-dimensional/three-dimensional coordinate information of the first virtual control and the second virtual control in the control interface
- 1 and 2 are the splicing order values of the first virtual control and the second virtual control respectively . Therefore, the terminal device can display the target stitching shape on the control interface by loading the configuration file on the control interface.
- the terminal device when the terminal device responds to the user's touch operation on the target stitching shape on the control interface, it can obtain the touch position of the touch operation, and determine the user's touch position according to the position information of each virtual control recorded in the configuration file. The selected virtual control, and finally query the splicing order value of the selected virtual control from the configuration file. For example, when the user uses the mouse to click the target splicing shape on the control interface, the terminal device can obtain the click position of the cursor, and match the click position with the position information of the virtual control in the configuration file, so as to determine the location of the clicked virtual control. splice order value.
- the sorting value of the virtual light source components of the virtual control in the target splicing shape may be represented by an edge sequence number value and a splicing order value.
- the splicing sequence values of the first light emitting module 124 , the second light emitting module 126 and the third light emitting module 128 in the light emitting device 120 are 1#, 2# and 3# respectively.
- the side serial numbers corresponding to the first light-emitting unit 101 to the sixth light-emitting unit 106 are respectively 1 to 6.
- the edge sorting values of the virtual light source components of the virtual controls corresponding to the first light-emitting unit 101 to the sixth light-emitting unit 106 in the target spliced shape can be expressed as arrays [2, 1], [2, 2], [2, 3], [2, 4], [2, 5] and [2, 6], in this array, the first digit is the splicing sequence value, and the second digit is the edge sequence number value.
- the terminal device after the terminal device determines the sorting value of each virtual control in the target spliced shape, it can obtain the control information according to the setting parameters and the sorting value.
- the control information can be understood as the information used to control the lighting device, which may include but not limited to include: the lighting parameters of the lighting module of the lighting device or/and the side lighting unit (such as color parameters, brightness parameters, duration parameters, etc., The lighting parameter can be obtained according to its setting parameters), the lighting module of the lighting device or/and the sorting value of the edge lighting unit.
- the control information can be used as the basis for the terminal device to control the light-emitting device (for example, the control information is used as the basis for generating the control command).
- the terminal device After the terminal device obtains the control information, it can directly generate a control command based on the control information.
- the control command can be directly generated by the light-emitting module. Parse and execute; or, after the terminal device obtains the control information, it can transmit the control information to the controller of the lighting device, and the controller can generate a control instruction according to the control information, and the control instruction can be directly analyzed and executed by the lighting module.
- the terminal device can package the setting parameters and ranking values as control information. After the terminal device sends the control information to the light emitting device, the controller can generate control instructions according to the setting parameters and ranking values, and send the control instructions to sent to the target lighting module to control the lighting of the target lighting module, wherein the control instruction is analyzed and executed by the target lighting module.
- the generation operation of the control instruction can be set to be directly completed by the terminal device.
- the terminal device can determine the control information according to the set parameters and sorting values, generate a control instruction according to the control information, and send the control instruction to the light emitting device as control information, that is, the terminal device sends the control instruction
- the control command can instruct the controller to forward the control command to the target light-emitting module to control the light-emitting of the target light-emitting module, wherein the control command is analyzed and executed by the target light-emitting module, thus, the terminal device Control instructions can be generated directly according to the set parameters and sorting values.
- the light receives the control instructions, it only needs to complete the transmission of the control instructions, thereby saving computing resources and improving work efficiency.
- Step S340 the terminal device sends control information to the controller.
- the terminal device may directly send the setting parameters and sorting values as control information to the light emitting device, so that the light emitting device generates a control instruction according to the control information.
- the terminal device can also obtain control information according to the ranking value and setting parameters of each light-emitting unit, generate control instructions based on the control information (it can be considered that the control instructions include control information), and then send the control instructions to the light-emitting unit.
- the device, and then the light emitting device can directly analyze the control command to realize the lighting effect control.
- Step S350 the controller receives the control information, and performs lighting control on the target light emitting module according to the control information, and the target light emitting module is the light emitting module corresponding to the ranking value in the solid shape.
- the light-emitting device can instruct the controller to generate control instructions according to the set parameters and sorting values according to the control information, and send the control instructions to the target light-emitting module to emit light on the target.
- the module performs light control. For example, if the control instruction contains the setting parameters of the virtual control with the sort value of 2 in the target spliced shape, then the target lighting module is the lighting module with the sort value of 2 in the solid shape.
- the controller may directly control the light emission of the target light emitting module according to the control information. Specifically, the controller sends the control instruction to the target lighting module, and the target lighting module analyzes and executes the control instruction.
- control instruction may be composed of multiple single-line return-to-zero codes, the multiple single-line return-to-zero codes are arranged in sequence according to the sorting values of the virtual controls, and each single-line return-to-zero code corresponds to a lighting module.
- the target light-emitting module After the target light-emitting module receives the control instruction, the target light-emitting module can obtain the single-line return-to-zero code at the arrangement position corresponding to its own sorting value from the control instruction, and then according to the analysis result of the single-line return-to-zero code, perform Lighting display.
- the light-emitting device has a first light-emitting module and a second light-emitting module (target light-emitting module), the controller sends the control command to the first light-emitting module, and the first light-emitting module can intercept the control command after obtaining the control command.
- the first segment of the single-line return-to-zero code on the control command, and the intercepted remaining control commands are passed to the second light-emitting module.
- the second light-emitting module obtains the control command, it can intercept the first segment of the single-line return-to-zero code of the control command.
- the first single-line return-to-zero code is the second single-line return-to-zero code of the original control command, so that the target lighting module obtains the corresponding single-line return-to-zero code.
- the above controller sends the control command to the target light-emitting module.
- the step of parsing and executing the control command by the module and the target lighting module can also be applied to the lighting unit, that is, each lighting unit can be regarded as a lighting module, and vice versa.
- the terminal device can obtain and display the target mosaic shape in the control interface, and then the terminal device can record the setting of the virtual control in response to the setting operation of the virtual control selected in the target mosaic shape parameter, and determine the sorting value of the virtual control in the target splicing shape, and then the terminal device can obtain control information according to the set parameters and sorting value, and send the control information to the controller. Further, the controller may receive the control information sent by the terminal device, and perform lighting control on the target lighting module according to the control information.
- the terminal device can generate corresponding control information according to the sorting value and setting parameters of the virtual controls in the target mosaic shape, and send it to the controller of the lighting device, and the controller can control the lighting of the target lighting module according to the control information , thereby avoiding the operation of establishing a communication connection with the terminal equipment for each light-emitting module, improving control efficiency, and reducing the use of the micro-control unit by the light-emitting module at the same time, reducing production costs.
- Fig. 6 shows another method for controlling a lighting device provided by an embodiment of the present application.
- the method for controlling a lighting device is applied to a terminal device equipped with a control interface.
- the device includes a controller and at least one lighting module, and the method may include the following steps S410 to S450.
- Step S410 acquiring and displaying the target splicing shape on the control interface.
- the terminal device may, in response to the splicing setting operation, splice the virtual control corresponding to the lighting module into a target splicing shape on the control interface.
- the terminal device may perform the following steps A to D to splice the virtual controls corresponding to the lighting modules into a target splicing shape on the control interface.
- Step A in response to the mosaic setting operation, determine the initial virtual control on the control interface.
- the initial virtual control may correspond to a lighting module and have the same shape as its corresponding lighting module, and the initial virtual control may represent the first virtual control newly created/added by the user through splicing setting operation.
- the mosaic setting operation refers to the user's operation of creating/adding a virtual control on the control interface.
- the user when the user needs to add a target splicing shape on the control interface, he can touch the desired position G (such as touching the new button H), and the terminal device can touch the desired position G according to the control interface.
- the received touch operation generates and displays the initial virtual control R1.
- the initial virtual control R1 should be understood as the first virtual control created by the user through splicing setting operations.
- the terminal device is configured with a template library of target splicing shapes, and one or more stock shapes are pre-stored in the template library, and these stock shapes are used for users to choose according to their own needs, so as to reduce the splicing time of users , improve user experience.
- the called stock shape P can be displayed on the control interface of the terminal device according to the user's operation.
- the terminal device determines that the initial virtual control is a virtual control according to the touch operation received by the control interface (for example, it can be highlighted by different colors, or Other icons can be used to emphasize that the virtual control R1 is the initial virtual control), and at this time the initial virtual control should be understood as the first virtual control determined by the user through splicing setting operations.
- Step B based on the shape of the initial virtual control, generate two or more additional controls around the initial virtual control, and the added controls are used to indicate the display position of the next virtual control.
- the terminal device provides a touch button for the user to add the next virtual control (such as adding a control S). position to add virtual controls.
- the terminal device determines the display position of the added control S based on the shape of the initial virtual control R1, and displays the added control S at the display position, and the display position is adjacent to the initial virtual control R1; if the initial virtual control R1 is a polygon, the number of added controls S can be multiple, and the display position of each added control S can be adjacent to a side of the initial virtual control R1; or, according to the outline of the initial virtual control R1, in the initial virtual control R1 A plurality of display positions are defined around, and each display position is used as a position for adding a control S. At this time, the number and positions of the added controls S may not necessarily be related to the polygonal structure of the initial virtual control R1.
- Step C in response to the adding operation, determine the target adding position among the two or more added controls, and display the next virtual control at the target adding position.
- two or more additional controls S are displayed around the initial virtual control R1 on the control interface, and the user can select any one of the additional controls S to add a new virtual control according to his splicing needs.
- the mobile terminal receives a selection operation for adding a control S
- the display position where the selected control S is located is taken as a target adding position
- the next virtual control R2 is displayed at the target adding position.
- Step D Based on the shape of the next virtual control, two or more additional controls are generated around the next virtual control, and the added controls are used to indicate the adding position of the next virtual control.
- the added control can be continuously displayed according to step B, and the new virtual control can be continuously added based on the user's operation, which will not be described in detail in this specification.
- step A and step D are executed until the target confirmation instruction is received to obtain the target spliced shape.
- the target confirmation instruction indicates that the user has completed adding the virtual control.
- the target confirmation instruction may be generated based on the user's touch operation, for example, if the user touches the "splicing complete" button, a corresponding target confirmation instruction is generated.
- the shape formed by the virtual controls displayed on the control interface is the target stitching shape.
- Step S420 In response to the setting operation on the selected side of the virtual control in the target joint shape, record the setting parameters on the selected side.
- step S420 As an implementation manner, after the terminal device displays the target splicing shape, the user can select a side on any virtual control in the target splicing shape, that is, the selected side, and set parameters.
- step S420 for the specific implementation of step S420, reference may be made to the description of step S320 provided in the above embodiment, and details are not repeated here.
- Step S430 Determine the edge sorting value of the selected edge in the target stitched shape.
- the terminal device may determine the splicing order value of the virtual control corresponding to the lighting module in the target splicing shape, and use the splicing order value as the sorting value of the virtual control in the target splicing shape. Further, the terminal device may determine the side sorting value of the selected side in the target mosaic shape according to the sorting value of the virtual control.
- the terminal device may use the splicing order value of the virtual controls in the target splicing shape according to the order in which the virtual controls are created by the user through the splicing setting operation, and use the splicing order value as the sorting value of the virtual controls in the target splicing shape. Further, after the terminal device obtains the sorting value of the virtual control corresponding to the lighting module in the target splicing shape, it can calculate the number of sides of the virtual control corresponding to the lighting module and the sorting value of the virtual control to calculate the position of the selected side. The edge ordering value in the target stitched shape.
- each light-emitting module includes a plurality of sequentially cascaded edge light-emitting units, such as the first light-emitting unit, the second light-emitting unit, the third light-emitting unit, the fourth light-emitting unit, and the fifth light-emitting unit are cascaded in sequence
- the In the light-emitting module if the internal sorting values of the first light-emitting unit, the second light-emitting unit, the third light-emitting unit, the fourth light-emitting unit, and the fifth light-emitting unit are known, then the virtual control corresponding to the light-emitting module If the internal sorting values of multiple edges are known, the terminal device can calculate the selected edge’s Edge ordering values in stitched shapes.
- the target mosaic shape includes two virtual controls, called the first virtual control and the second virtual control, the sort value of the first virtual control is 1, and the sort value of the second virtual control is 2;
- the virtual control includes the first side, the second side, the third side, the fourth side, and the fifth side connected in sequence, and each side is provided with a corresponding light-emitting unit, then the internal sorting value of the first side is 1, and the The internal sorting value of the second side is 2, the internal sorting value of the third side is 3, the internal sorting value of the fourth side is 4, and the internal sorting value of the fifth side is 5, then the third side of the second virtual control needs to be calculated
- the sort value 2 of the second virtual control and the internal sort value 3 of the third side can be combined to determine the sort value of the third side 2-3, or an array [2, 3];
- the sorting value of the third side can be calculated as N+3 by combining the side number N of the first virtual control and the internal sorting value 3 of the third side.
- Step S440 Obtain control information according to the setting parameters of the selected side and the sorting value of the side.
- the control information can be understood as the information used to control the lighting device, which may include but not limited to include: the lighting parameters of the lighting module of the lighting device or/and the lighting parameters of the edge lighting unit (such as color parameters, brightness parameters , duration parameters, etc., the lighting parameters can be obtained according to the setting parameters), the lighting module of the lighting device or/and the sorting value of the edge lighting unit.
- the control information can be used as the basis for the terminal device to control the light-emitting device (for example, the control information is used as the basis for generating the control command). After the terminal device obtains the control information, it can directly generate a control command based on the control information. The control command can be directly generated by the light-emitting module. Parse and execute; or, after the terminal device obtains the control information, it can transmit the control information to the controller of the lighting device, and the controller can generate a control instruction according to the control information, and the control instruction can be directly analyzed and executed by the lighting module.
- the control method of the light emitting device provided in the present application utilizes the way that the light emitting device successively intercepts the control instructions according to the splicing order to realize the lighting effect control of the light emitting device by the terminal device.
- the IC control chip used by the lighting device integrates circuits such as a single-wire return-to-zero code digital interface, automatic shaping and forwarding of output data, and the like.
- the single-line return-to-zero code means that the high level is only maintained for a period of time during the entire symbol period, and the rest of the time returns to zero level, that is, the active pulse width of the return-to-zero code is narrower than the symbol width (that is, the duty cycle ⁇ 1 ), each pulse returns to zero value before reaching the end of a symbol, and the single-line return-to-zero code can be widely applied to channel transmission.
- the built-in signal shaping processing circuit of the IC control chip after any IC control chip receives the control command, can output after wave shaping, so as to ensure that the line waveform distortion will not accumulate.
- the terminal device may generate a control instruction in a single-wire return-to-zero code format based on the control information.
- the control instruction may include a plurality of control fields, that is, a multi-segment single-line return-to-zero code.
- the plurality of control fields correspond to the plurality of light-emitting modules in the solid shape, and each control field includes control parameters for the light-emitting module to analyze.
- the control parameters are determined based on the setup parameters and sort values of the selected virtual control.
- the terminal device may determine that the number of control fields is N according to the number N of virtual controls in the target mosaic shape, or determine that the number of control fields is N after determining that the sorting value is N. Among them, the N control fields are sorted sequentially. Further, the terminal device configures control parameters for each control field based on the setting parameters and sorting values to generate control instructions. The sorting order and sorting value of the control fields configured with control parameters same.
- the terminal device may generate a control command according to the setting parameters of the selected side and the side sorting value, and send the control command to the light emitting device as control information.
- the terminal device can determine that the number of control fields in the control command is N according to the number N of virtual controls corresponding to the edge light-emitting units of the light-emitting module in the target spliced shape. Further, the terminal device can determine the number of control fields in the control instruction based on the Set parameters and edge ordering values to configure control parameters for each control field to generate control instructions.
- the target mosaic shape is composed of virtual controls corresponding to two hexagonal lighting modules, and the corresponding lighting modules each include six side lighting units, then the effective number of corresponding sides of each virtual control is 6, The total number of sides of the two virtual controls in the target splicing shape is 12, that is, the control command has 12 fixed-length control fields.
- the light-emitting module corresponding to the control emits red light, and the terminal device can generate corresponding control fields according to the edge sorting values of all edges and setting parameters (control codes).
- the data format of the generated control command is as follows:
- each "()" represent the control field of a corresponding side, such as (0xFF 0x00 0x00) is the control field corresponding to the sorting value of the selected side on the control command, and the control command is fixed by 12 segments It consists of a control field with a byte length of 24 bits.
- This control field corresponds to the decimal RGB data (255 0 0), so it can control the light-emitting unit that obtains this control field to display red lights.
- the first to sixth paragraphs correspond to the edge Edges with sorting values 1-6, that is, from the seventh segment to the twelfth segment correspond to edges with sorting values 7-12.
- the terminal device can directly package the setting parameters of the selected side and the sorting value of the selected side to generate control information, and send the control information to the light emitting device, so that the light emitting device can generate a control instruction according to the control information .
- Step S450 Send control information to the controller, the control information is used to instruct the controller to control the light emission of the target light emitting module, the target light emitting module is the light emitting module corresponding to the ranking value in the solid shape.
- step S450 for the specific implementation of step S450, reference may be made to the description of step S340 provided in the above embodiment, and details are not repeated here.
- the terminal device can obtain and display the target mosaic shape on the control interface, and then can record the selected side in response to the setting operation of the virtual control in the target mosaic shape Set parameters, and determine the edge sorting value of the selected edge in the target spliced shape. Further, control information can be obtained according to the setting parameters and edge sorting value of the selected edge, and send the control information to the controller.
- the terminal device can generate corresponding control information according to the edge sorting value of the virtual control in the target mosaic shape and the setting parameters, and send it to the controller of the lighting device, so as to control the lighting of the target lighting module, thereby avoiding various All light-emitting modules need to establish a communication connection with the terminal equipment to improve control efficiency.
- Fig. 8 shows another method for controlling a lighting device provided by an embodiment of the present application.
- the method is applied to a lighting device.
- the lighting device includes a controller and a plurality of lighting modules.
- the lighting device communicates with a terminal device. Connecting, multiple lighting modules are spliced according to the target splicing shape, the target splicing shape is determined by the splicing shape of the virtual control displayed on the control interface of the terminal device, the control method of the lighting device may include the following steps S510 to S520.
- Step S510 The controller receives the control information sent by the terminal device.
- the control information is generated by the terminal device based on the received setting operation on the selected virtual control.
- the control information includes the setting parameters of the selected virtual control and the selected The sort value of virtual controls in the target mosaic shape.
- step S510 for the specific implementation of step S510, reference may be made to the description of step S340 provided in the above embodiment, and details are not repeated here.
- Step S520 The controller performs lighting control on the target lighting module according to the control information, and the target lighting module is the lighting module corresponding to the ranking value in the solid shape.
- control information is generated by the terminal device, and the terminal device can generate a control command based on the control information and send it to the light emitting device as control information, so that the light emitting module can obtain the control information, that is, the control command, and directly parse and execute it.
- control instructions Specifically, the controller of the light emitting device can receive the control information, and send the control information, that is, the control instruction directly to the target light emitting module, and the target light emitting module parses and executes the control instruction.
- the controller of the light-emitting device can also generate control instructions based on the acquired control information, based on the setting parameters and sorting values contained in the control information, and send the control instructions to the target light-emitting module. Further, the target light-emitting module analyzes and execute control commands.
- control instruction may include a plurality of control fields, the plurality of control fields correspond to the plurality of light-emitting modules spliced according to the target splicing shape, each control field includes control parameters for the light-emitting modules to analyze, and the control parameters are based on Determined by the setup parameter and sort value of the selected virtual control.
- the controller can determine the number of control fields to be N according to the number N of virtual controls in the target splicing shape, where the N control fields are sorted in sequence. Further, the controller can be based on the setting parameters and sorting values, as Each control field is configured with a control parameter to generate a control instruction, wherein the sort order of the control field configured with the control parameter is the same as the sort value.
- the light-emitting device receives the control information sent by the terminal device, and can generate a control instruction according to the control information.
- the control information can be directly packaged and generated by the terminal device to set the parameters of the selected side and the sorting value of the selected side. .
- the light-emitting device can generate a control command based on the control information (it can be considered that the control command includes control information), and then send the control command to the light-emitting device. arrive.
- the controller can issue the control command to the target lighting module, and the target lighting module can analyze and execute the control command.
- the controller can send the control instruction to the first light-emitting module, the first light-emitting module is the first light-emitting module in a plurality of light-emitting modules sorted in sequence; for example, the target mosaic shape consists of six light-emitting modules
- the virtual control corresponding to the module consists of the control commands sent by the controller as (0x0A 0x00 0x00)(0x0B 0x00 0x00)(0x0C 0x00 0x00)(0x0D 0x00 0x00)(0x0E 0x00 0x00)(0x0F 0x00 0x00), where each " The characters in ()” represent the corresponding control command of a virtual control.
- the first light-emitting module intercepts the first control field among the N control fields of the received control command, and sends the intercepted (N-1) control fields to the second light-emitting module, and the second light-emitting module It is the next light-emitting module adjacent to the first light-emitting module among the multiple light-emitting modules sorted in sequence;
- the control field corresponding to the value of 1, that is, after intercepting the first control field (0x0A 0x00 0x00) in the control instruction, the remaining control field (0x0B 0x00 0x00)(0x0C 0x00 0x00)(0x0D 0x00 0x00)(0x0E 0x00 0x00) ) (0x0F 0x00 0x00) to the next light-emitting module (the second light-emitting module) with a ranking value of 2, and the light-emitting module with a ranking value of 2 is the light-emitting module
- the second light-emitting module intercepts the first control field in the (N-1) control fields of the received control command, and sends the intercepted (N-3) control fields to the adjacent second light-emitting module
- the third light-emitting module based on the above example, the order value of the second light-emitting module is 2, and its sequence intercepts the control field corresponding to the order value 2 in the control command, that is, intercepts the received control command
- the first control field (0x0B 0x00 0x00
- send the remaining control fields (0x0C 0x00 0x00) (0x0D 0x00 0x00) (0x0E 0x00 0x00) (0x0F 0x00 0x00) to the next light-emitting module with a sort value of 3
- the third light-emitting module the light-emitting module with a ranking value of 3 is the light-emitting module adjacent to the third light-emitting module.
- the (N-1)th light-emitting module intercepts the first control field in the two control fields of the received control command, and sends the intercepted control field to the N-th light-emitting module; based on the above example, the first The sorting value of the five light-emitting modules is 5, and its order intercepts the control field corresponding to the sorting value 5 in the control command (0x0E 0x00 0x00) (0x0F 0x00 0x00), that is, intercepts the first one of the control commands it receives.
- the light-emitting module with a ranking value of 6 is the same as
- the light-emitting module adjacent to the fifth light-emitting module is also the last light-emitting module in the physical splicing shape corresponding to the target splicing shape.
- the Nth light emitting module receives the control field sent by the (N-1)th light emitting module; based on the above example, the sixth light emitting module receives the control field (0x0F 0x00 0x00) sent by the fifth light emitting module.
- each lighting module can receive the control command, and then analyze and execute the control parameter in the intercepted control field.
- each light emitting module of the light emitting device does not need to directly establish a connection relationship with the terminal device, and after the light emitting device receives the control command sent from the terminal device, each The light-emitting module/edge light-emitting unit only needs to intercept the control field corresponding to its own order in the control command to complete the display of the light effect, thus simplifying the terminal device to send control commands to each light-emitting module one by one, and then each light-emitting device from the
- the step of the terminal device receiving the control command is to efficiently control the lighting effect display of the light-emitting device through one generation and one transmission, so as to avoid identification errors that are prone to occur in the master-slave communication mode.
- each lighting module can directly execute the control command after intercepting the corresponding control field, or can wait for the trigger command input by the controller, and execute the received control command at the same time, so as to ensure The response time of the overall lighting effect of the luminaire is synchronized.
- the trigger instruction input by the controller can be an execution instruction sent in cascade to multiple light-emitting modules. A timer is added to the instruction. After the light-emitting module receives the trigger instruction, the timer starts counting. After the timer finishes counting, it is triggered to execute the aforementioned control instructions, so as to ensure that multiple light-emitting modules can respond to the control instructions at the same time.
- the trigger command input by the controller can be a low-level input signal.
- the controller can pull down the levels of all light-emitting modules at the same time.
- the light-emitting module is triggered to directly execute the aforementioned control command, thereby ensuring that multiple light-emitting modules can respond to the control command at the same time.
- the light-emitting module that receives the control command can analyze the intercepted control field and obtain Corresponding to the control parameter, the lighting module executes the control parameter in response to the low-level input signal lasting for a predetermined duration.
- Figure 10 shows the physical connections between the three light emitting units in the light emitting module, where the light emitting unit uses a WS2811 chip, the first light emitting unit 610, the second light emitting unit 620 and the third Control instructions are transmitted between the units 630 through data transmission lines.
- the light-emitting device receives the control command sent from the terminal device, and the control command is used to control the lighting effect of the first light-emitting unit 610, the second light-emitting unit 620, and the third light-emitting unit 630.
- the control command consists of three fixed-length control fields, Each fixed-length control field can be 24-bit single-line return-to-zero code data.
- the DI end receives the control command transmitted from the controller. After the control command with a length of 3*24bit is obtained by the first light emitting unit 610, the first light emitting unit 610 intercepts the control field of the head of the control command with a fixed length of 1*24bit. , and the intercepted remaining 2*24bit control command is reshaped and amplified by the internal shaping processing circuit, and then forwarded and output to the next cascaded second light emitting unit 620 through the DO terminal.
- the second light emitting unit 620 intercepts the control field with a fixed length of 1*24bit at the head of the control instruction, and intercepts the remaining 1*24bit
- the length of the control command is shaped and amplified by the internal shaping processing circuit, it is forwarded and output to the next cascaded third light emitting unit 630 through the DO terminal. So far, the light emitting device completes the transmission of the control command.
- each light-emitting unit after each light-emitting unit acquires the remainder intercepted from the control instruction, it can display lighting effects according to the remainder.
- the coding of the control instruction for controlling the lighting effect of the first light emitting unit 610, the second light emitting unit 620 and the third light emitting unit 630 is as follows:
- the length of each segment is 24bit
- 0x00 can be expressed as
- 0xFF can be expressed as 1
- (0x00 0x00 0x00) can indicate that the control light-emitting unit is not bright
- (0xFF 0x00 0x00) can indicate that the control light-emitting unit emits red light
- the first light emitting unit 610 and the second light emitting unit 620 do not emit light
- the third light emitting unit 630 emits red light.
- the controller can receive the control information sent by the terminal device.
- the control information is generated by the terminal device based on the received setting operation on the selected virtual control.
- the control information includes the selected The setting parameters of the virtual controls and the sorting values of the selected virtual controls in the target splicing shape, and further, the controller controls the light emission of the target light emitting module according to the control information.
- the light-emitting device can adopt an intercepting execution method according to the control message to realize the light-emitting control of the light-emitting unit corresponding to the edge number in the solid splicing shape, avoid the participation of the control unit, reduce the recognition error rate, and effectively improve the control efficiency of the light-emitting device .
- FIG. 11 shows a block diagram of a control device 700 for a lighting device provided by an embodiment of the present application.
- the control device of the light-emitting device runs on a terminal device equipped with a control interface, and the terminal device communicates with the light-emitting device.
- the light-emitting device includes a controller and a plurality of light-emitting modules.
- the control device includes:
- the shape acquisition module 710 is used to acquire and display the target splicing shape in the control interface, the target splicing shape includes a plurality of visualized virtual controls, and the target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into a target splicing A solid shape with a consistent profile;
- a parameter recording module 720 configured to record the setting parameters of the virtual control in response to the setting operation of the virtual control selected in the target stitching shape;
- a sorting determination module 730 configured to determine the sorting value of the selected virtual control in the target stitching shape
- a control instruction module 740 configured to obtain control information according to setting parameters and sorting values
- the instruction sending module 750 is used to send control information to the controller, the control information is used to instruct the controller to control the light emission of the target light emitting module, and the target light emitting module is the light emitting module corresponding to the ranking value in the solid shape.
- control instruction module 740 may be specifically configured to package the setting parameters and sorting values to generate control information
- the instruction sending module 750 can be specifically used to send control information to the controller, the control information is used to instruct the controller to generate control instructions according to the set parameters and sorting values, and send the control instructions to the target lighting module, so as to control the target lighting module Lighting control is performed, wherein the control instruction is analyzed and executed by the target lighting module.
- control instruction module 740 can also be specifically configured to determine control information according to the setting parameters and ranking values, the control information includes the setting parameters of the target lighting module corresponding to the ranking values; generate a control instruction according to the control information;
- the instruction sending module 750 can also be specifically used to send a control instruction to the controller, and the control instruction is used to instruct the controller to forward the control instruction to the target light-emitting module so as to control the light emission of the target light-emitting module, wherein the control instruction is controlled by the target light-emitting module.
- the module parses and executes.
- the shape of the virtual control is consistent with the shape of the lighting module;
- the lighting module is a polygonal structure, and includes an edge lighting unit arranged on at least one side of the polygonal structure;
- the parameter recording module 720 can be specifically used to respond to For the setting operation of the selected side of the virtual control in the target spliced shape, record the setting parameters of the selected side;
- the sorting determination module 730 may be specifically configured to determine the side sorting value of the selected side in the target mosaic shape
- the control instruction module 740 can also be specifically used to obtain control information according to the setting parameters and edge sorting values for the selected edge; the control information is also used to instruct the controller to perform light emission control on the target edge light-emitting unit, and the target edge light-emitting unit is a solid shape The edge light cell corresponding to the edge sort value.
- the sorting determination module 730 may be specifically configured to determine the splicing order value of the virtual control in the target splicing shape; use the splicing order value as the sorting value of the selected virtual control in the target splicing shape.
- control instruction module 740 may include:
- the determination unit is used to determine the number of control fields as N according to the number N of virtual controls in the target splicing shape, wherein the N control fields are sorted in sequence;
- the generating unit is configured to configure control parameters for each control field based on the setting parameters and sorting values to generate control instructions, wherein the sorting order of the control fields configured with the control parameters is the same as the sorting value.
- the shape acquisition module 710 may include: a splicing unit, configured to splice the virtual control corresponding to the lighting module into a target splicing shape on the control interface in response to a splicing setting operation.
- the splicing unit can be specifically used in step A, in response to the splicing setting operation, to determine the initial virtual control on the control interface; in step B, based on the shape of the initial virtual control, two or two virtual controls are generated around the initial virtual control.
- the added control is used to indicate the display position of the next virtual control; step C, in response to the adding operation, determine the target adding position among the two or more added controls, and display the next virtual control at the target adding position Control; step D, based on the shape of the next virtual control, generate two or more added controls around the next virtual control, and the added control is used to indicate the adding position of the next virtual control; in response to the adding operation, perform the step A and step D, until the target confirmation instruction is received, and the target splicing shape is obtained.
- the target confirmation instruction indicates that the user has completed adding the virtual control.
- FIG. 12 shows a block diagram of a control device 900 for a lighting device provided by an embodiment of the present application.
- the control device of the light emitting device operates on the light emitting device, the light emitting device includes a controller and at least one light emitting module, the light emitting device communicates with the terminal device, and the device includes:
- a receiving module 910 configured to receive control information sent by the terminal device
- the control module 920 is configured to control the lighting of the lighting module according to the control information.
- control module 920 may include:
- a generation unit used for the controller to generate control instructions based on the setting parameters and sorting values according to the control information
- the first sending unit is used for the controller to send the control command to the target lighting module
- the first parsing unit is used for parsing and executing the control instruction of the target lighting module.
- control information is a control instruction generated by the terminal device and directly parsed and executed by the lighting module; the control module 920 may also include:
- the second sending unit is used for the controller to send the control command to the target lighting module
- the second parsing unit is used for parsing and executing the control instruction of the target lighting module.
- control instruction includes a plurality of control fields, and the plurality of control fields correspond to a plurality of light emitting modules spliced according to the target splicing shape; each control field includes a control parameter for the light emitting module to analyze, and the control parameter Determined based on the setting parameters and sorting values of the selected virtual controls; the generation unit can be specifically used to determine the number of control fields to be N according to the number N of virtual controls in the target splicing shape, wherein the N control fields are sorted in sequence ; Based on the setting parameters and sorting values, configuring control parameters for each control field to generate a control instruction, wherein the sorting order of the control fields configured with the control parameters is the same as the sorting value.
- the first sending unit or the second sending unit may be specifically used for the controller to send control instructions to the first light-emitting module, and the first light-emitting module is the first light-emitting module among the sequentially arranged light-emitting modules.
- a lighting module
- the first light-emitting module intercepts the first control field among the N control fields of the received control command, and sends the intercepted (N-1) control fields to the second light-emitting module, and the second light-emitting module It is the next light-emitting module adjacent to the first light-emitting module among the sequentially sorted light-emitting modules;
- the second light-emitting module intercepts the first control field in the (N-1) control fields of the received control command, and sends the intercepted (N-3) control fields to the adjacent second light-emitting module the third light-emitting module;
- the (N-1)th light emitting module intercepts the first control field in the two control fields of the received control command, and sends the intercepted control field to the Nth light emitting module;
- the Nth light-emitting module receives the control field sent by the (N-1)th light-emitting module
- the first parsing unit or the second parsing unit may include:
- the execution subunit is configured to analyze and execute the control parameter in the intercepted control field by the lighting module that receives the control instruction.
- the execution subunit can be specifically configured to analyze the intercepted control field by the lighting module that receives the control instruction, and obtain corresponding control parameters; the lighting module executes the Control parameters.
- the coupling between the modules may be electrical, mechanical or other forms of coupling.
- each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
- the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
- An embodiment of the present application also provides a lighting effect control system, wherein the lighting effect control system includes a terminal device and a lighting device, the lighting device includes a controller and at least one lighting module, and the terminal device is connected to the lighting device in communication;
- the terminal device is used to obtain and display the target splicing shape in the control interface, the target splicing shape includes a plurality of visual virtual controls, and the target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into the target splicing shape. Consistent solid shapes;
- a terminal device configured to record setting parameters of the virtual control in response to a setting operation on the virtual control selected in the target mosaic shape
- the terminal device is used to determine the sorting value of the selected virtual control in the target mosaic shape, obtain control information according to the set parameters and sorting value, and send the control information to the controller;
- the controller is used to receive the control information, and control the light emission of the target light-emitting module according to the control information.
- the target light-emitting module is the light-emitting module corresponding to the ranking value in the solid shape.
- the embodiment of the present application also provides an electronic device 900, which may include the above-mentioned terminal device, and may also include the above-mentioned light-emitting device, the light-emitting device is configured with a controller and a light-emitting module, and may also include Lighting effect control system for terminal equipment and lighting equipment.
- the electronic device 900 includes a processor 910 and a memory 920.
- the memory 920 stores computer program instructions. When the computer program instructions are invoked by the processor 910, the above-mentioned method for controlling the lighting device is executed in real time.
- Processor 910 may include one or more processing cores.
- the processor 910 uses various interfaces and lines to connect various parts in the entire battery management system, by running or executing instructions, programs, code sets or instruction sets stored in the memory 920, and calling data stored in the memory 920, Execute various functions and process data of the battery management system.
- the processor 910 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
- DSP Digital Signal Processing
- FPGA Field-Programmable Gate Array
- PLA Programmable Logic Array
- the processor 910 may integrate one or a combination of a central processing unit 910 (Central Processing Unit, CPU), an image processor 910 (Graphics Processing Unit, GPU), a modem, and the like.
- a central processing unit 910 Central Processing Unit, CPU
- an image processor 910 Graphics Processing Unit, GPU
- a modem and the like.
- the CPU mainly handles the operating system, user interface and application programs, etc.
- the GPU is used to render and draw the displayed content
- the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 910, but may be realized by a communication chip alone.
- the memory 920 may include a random access memory 920 (Random Access Memory, RAM), and may also include a read-only memory 920 (Read-Only Memory). Memory 920 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
- the memory 920 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc. ), instructions for implementing various method embodiments described below, and the like.
- the storage data area can also store data (such as phone book, audio and video data, and chat record data) created during the use of the electronic device map.
- the embodiment of the present application also provides a computer-readable storage medium 10, in which computer program instructions 11 are stored, and the computer program instructions 11 can be invoked by a processor to execute the above-mentioned embodiments. method described in .
- the computer readable storage medium may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
- the computer-readable storage medium includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
- the computer-readable storage medium 10 has a storage space for program codes for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products. The program code can eg be compressed in a suitable form.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
本申请公开了一种发光设备的控制方法,终端设备获取并在控制界面中显示目标拼接形状,并响应于对目标拼接形状中选定的虚拟控件的设置操作,记录对虚拟控件的设置参数,并确定虚拟控件在目标拼接形状中的排序值,进而可以根据设置参数和排序值得到控制信息,并向控制器发送控制信息。控制器接收由终端设备发送的控制信息,并根据控制信息对目标发光模组进行发光控制。本申请提供的控制方法可以避免所有发光模组都与终端设备建立通信连接的操作,提高控制效率的同时,降低生产成本。
Description
交叉引用
本申请要求2021年08月11日递交的发明名称为:“发光设备的控制方法、装置、电子设备及存储介质”的申请号2021109210999的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
本申请涉及照明控制技术领域,更具体地,涉及一种发光设备的控制方法、装置、电子设备、灯效控制系统及存储介质。
灯光照明除了可以满足家庭日常照明需求外,还可以使用不同类型的智能灯营造出适合不同生活情景的灯光氛围。其中,可拼接电灯作为一种智能化的照明设备,能够像拼图一样通过多块智能灯块的拼接,组成各种不同的图案形状,为用户带来了全新的照明体验。
现有的可拼接电灯主要通过终端设备进灯光效果的控制。终端设备,如遥控器等设备,与拼接灯通信连接,并可根据用户的灯效需求来直接控制发光设备,但发明人意识到,这样的控制过程不直观、交互体验不佳。
发明内容
本申请实施例提供一种发光设备的控制方法、装置、电子设备、灯效控制系统以及存储介质。
第一方面,本申请一些实施例提供一种发光设备的控制方法,应用于配置有控制界面的终端设备,终端设备与发光设备通信连接,发光设备包括控制器以及多个发光模组,该控制方法包括:获取并在控制界面中显示目标拼接形状,目标拼接形状包括多个可视化的虚拟控件,目标拼接形状用于指示用户将控制器和多个发光模组拼接成与目标拼接形状的外形一致的实体形状;响应于对目标拼接形状中选定的虚拟控件的设置操作,记录对虚拟控件的设置参数;确定选定的虚拟控件在目标拼接形状中的排序值;根据设置参数和排序值得到控制信息;向控制器发送控制信息,控制信息用于指示控制器对目标发光模组进行发光控制,目标发光模组为实体形状中与排序值对应的发光模组。
第二方面,本申请一些实施例还提供一种发光设备的控制方法,应用于发光设备,发光设备包括控制器以及多个发光模组,发光设备与终端设备通信连接;多个发光模组依据目标拼接形状拼接,目标拼接形状由终端设备的控制界面所显示的虚拟控件的拼接形状确定;该方法包括:控制器接收由终端设备发送的控制信息,其中,控制信息由终端设备基于所接收的、对选定的虚拟控件的设置操作而生成,控制信息包括选定的虚拟控件的设置参数和选定的虚拟控件在目标拼接形状中的排序值;控制器根据控制信息对目标发光模组进行发光控制,目标发光模组为实体形状中与排序值对应的发光模组。
第三方面,本申请一些实施例还提供一种发光设备的控制方法,应用于灯效控制系统,灯效控制系统包括终端设备以及发光设备,发光设备包括控制器以及多个发光模组,终端设备与发光设备通信连接,该方法包括:终端设备获取并在控制界面中显示目标拼接形状,目标拼接形状包括多个可视化的虚拟控件,目标拼接形状用于指示用户将控制器和多个发光模组拼接成与目标拼接形状的外形一致的实体形状;终端设备响应于对目标拼接形状中选定的虚拟控件的设置操作,记录对虚拟控件的设置参数;终端设备确定选定的虚拟控件在目标拼接形状中的排序值,并根据设置参数和排序值得到控制信息;终端设备向控制器发送控制信息;控制器接收控制信息,并根据控制信息对目标发光模组进行发光控制,目标发光模组为实体形状中与排序值对应的发光模组。
第四方面,本申请一些实施例还提供一种发光设备的控制装置,运行于配置有控制界面的终端设备,终端设备与发光设备通信连接,发光设备包括控制器以及多个发光模组,该控制装置包括:形状获取模块,用于获取并在控制界面中显示目标拼接形状,目标拼接形状包括多个可视化的虚拟控件,目标拼接形状用于指示用户将控制器和多个发光模组拼接成与目标拼接形状的外形一致的实体形状;参数记录模块,用于响应于对目标拼接形状中选定的虚拟控件的设置操作,记录对虚拟控件的设置参数;排序确定模块,用于确定选定的虚拟控件在目标拼接形状中的排序值;控制指令模块,用于根据设置参数和排序值得到控制信息;指令发送模块,用于向控制器发送控制信息,控制信息用于指示控制器对目标发光模组进行发光控制,目标发光模组为实体形状中与排序值对应的发光模组。
第五方面,本申请一些实施例还提供一种发光设备的控制装置,运行于发光设备,发光设备包括控制器以及至少一个发光模组,发光设备与终端设备通信连接,该装置包括:接收模块,用于接 收由终端设备发送的控制信息;控制模块,用于根据控制信息对发光模组进行发光控制。
第六方面,本申请一些实施例还提供一种灯效控制系统,该灯效控制系统包括终端设备以及发光设备,发光设备包括控制器以及至少一个发光模组,终端设备与发光设备通信连接;终端设备,用于获取并在控制界面中显示目标拼接形状,目标拼接形状包括多个可视化的虚拟控件,目标拼接形状用于指示用户将控制器和多个发光模组拼接成与目标拼接形状的外形一致的实体形状;终端设备,用于响应于对目标拼接形状中选定的虚拟控件的设置操作,记录对虚拟控件的设置参数;终端设备,用于确定选定的虚拟控件在目标拼接形状中的排序值,根据设置参数和排序值得到控制信息,并用于向控制器发送控制信息;控制器,用于接收控制信息,并根据控制信息对目标发光模组进行发光控制,目标发光模组为实体形状中与排序值对应的发光模组。
第七方面,本申请一些实施例还提供一种电子设备,包括存储器,存储器存储有计算机程序指令,计算机程序指令被处理器调用时执行上述发光设备的控制方法。
第八方面,本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质存储有程序代码,其中,在程序代码被处理器运行时执行上述发光设备的控制方法。
本申请提供的发光设备的控制方法,终端设备可以获取并在控制界面中显示目标拼接形状,进而终端设备可以响应于对目标拼接形状中选定的虚拟控件的设置操作,记录对虚拟控件的设置参数,并确定虚拟控件在目标拼接形状中的排序值,接着终端设备可以根据设置参数和排序值得到控制信息,并向控制器发送控制信息。进一步地,控制器可以接收由终端设备发送的控制信息,并且根据控制信息对目标发光模组进行发光控制。由此,可以在终端设备的控制界面上直观地示出发光设备的控制过程,能够提高用户的控制体验。进一步地,终端设备可以根据虚拟控件在目标拼接形状中的排序值以及设置参数生成对应的控制信息,并发送至发光设备的控制器,该控制器可以根据控制信息对目标发光模组进行发光控制,从而避免了各发光模组都需与终端设备建立通信连接的操作,提高控制效率,同时可以减少发光模组对微控制单元的使用,降低生产成本。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请实施例提供的一种发光设备的硬件环境示意图。
图2示出了本申请实施例提供的一种发光模组的硬件环境示意图。
图3示出了本申请实施例提供的一种发光模组的线路结构示意图。
图4示出了本申请实施例提供的一种发光设备的控制方法的应用场景示意图。
图5示出了本申请实施例提供的一种发光设备的控制方法的流程示意图。
图6示出了本申请实施例提供的另一种发光设备的控制方法的流程示意图。
图7示出了本申请实施例提供的一种发光设备的控制方法的确定初始虚拟控件的示意图。
图8示出了本申请实施例提供的另一种发光设备的控制方法的确定初始虚拟控件的示意图。
图9示出了本申请实施例提供的又一种发光设备的控制方法的流程示意图。
图10示出了本申请实施例提供的一种发光单元的物理连接示意图。
图11示出了本申请实施例提供的一种发光设备的控制装置的模块框图。
图12示出了本申请实施例提供的另一种发光设备的控制装置的模块框图。
图13是本申请实施例提供的一种电子设备的模块框图。
图14是本申请实施例提供的一种计算机可读存储介质的模块框图。
下面详细描述本申请的实施方式,实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性地,仅用于解释本申请,而不能理解为对本申请的限制。
为了使本技术领域的人员更好地理解本申请的方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
现今市场上的可拼接灯类产品中,大多依靠主从机的通信方式完成对可拼接灯块的控制,也即每个灯块都与控制灯效的主控设备建立通信连接。具体地,主控设备需要利用主从机的通信方式确定与每个灯块的连接关系,例如,为每个灯块分配一个序号,再将连接关系和序号发送到主控设备, 进而通过主控设备的拼接信息可以控制任意一个或多个灯块显示指定颜色或调节亮度。
为此,必须为灯块配置独立的控制单元,也即每个灯块都需要配备各自的微控制单元(Micro Controller Unit,MCU),从而实现每个灯块都能响应主控设备的寻址指令和控制指令,最终通过寻址指令确定每个灯块的序号,再结合个灯块之间的电气连接关系确定一系列的灯效。然而,这种灯效控制方法在识别过程灯块序号和连接关系的过程中容易出现错误,导致实际灯组的拼接图形与主控设备所展示图形不符的问题,此外,由于每个灯块都需配置独立的MCU,也增加了灯块的生产成本。
为了解决上述问题,发明人经过长期研究,基于发光设备的硬件改进,在终端设备上重新构建了灯效的控制方法。本申请实施例提供的发光设备的控制方法,终端设备可以获取并在控制界面中显示目标拼接形状,进而终端设备可以响应于对目标拼接形状中选定的虚拟控件的设置操作,记录对虚拟控件的设置参数,并确定虚拟控件在目标拼接形状中的排序值,接着终端设备可以根据设置参数和排序值得到控制信息,并向控制器发送控制信息。
进一步地,控制器可以接收由终端设备发送的控制信息,并根据控制信息对目标发光模组进行发光控制。由此,终端设备可以在根据虚拟控件在目标拼接形状中的排序值生成对应的控制信息,并发送至发光设备的控制器,该发光控制器可以根据控制信息对目标发光模组进行发光控制,从而各发光模组无需都与终端设备建立通信连接的操作,减少发光模组对微控制单元的使用,降低生产成本。
下面先对本申请所涉及发光设备的控制方法的硬件环境进行介绍。
如图1所示,在一些实施例中,本申请实施例提供的发光设备的控制方法可以应用在图1所示的灯效控制系统100,灯效控制系统100包括终端设备110以及发光设备120。终端设备110可以为手机、平板电脑、PC端等有通信、控制能力的电子设备,终端设备110配置有控制界面111,发光设备120包括控制器121、发光模组122。终端设备110可以通过网络与发光设备120连接,该网络可以为Wi-Fi、Bluetooth以及ZigBee等能够实现终端设备与发光设备之间互相通信连接的无线网络,在此不做限定。在本实施例中,发光设备120可以包括多个发光模组122,多个发光模组122可以与控制器121电性连接(包括但不限于直接连接或间接连接),多个发光模组122之间也可以存在电性连接,并能够在控制器121的控制下根据指定的灯效参数发光。
可选地,发光模组122可以呈多边形结构,发光设备120中的多个发光模组122可以为不同形状的多边形结构,例如,其中一部分的发光模组122呈三角形结构,一部分的发光模组122呈五边形结构、另一部分的发光模组122呈六边形结构等等。每个发光模组122可以包括多个灯带,也即包括设置于该多边形结构的至少一个边的边发光单元,其中,每个边发光单元为独立的控制芯片(Integrated Circuit Chip,IC),该控制IC可以用于接收、传递控制信息或/及控制指令以及根据控制信息或/及控制指令对边发光单元进行灯效控制。在本申请实施例中,边发光单元内部没有配置MCU,而是使用单线256级灰度三通道恒流LED驱动IC芯片完成发光单元的灯光颜色的控制。相比MCU的价格IC芯片能够大幅降低生产成本,该IC芯片可以包括常用的WS2811、WS2815以及GS1903芯片等。由于多个发光单元的IC芯片通过串行接口级联,并利用一根数据线完成数据信号的接收、解码、整形转发,通信过程不需要控制单元的参与,所以本申请提出的发光设备的控制方法可以避免主从机的通信方式中容易出现的识别错误,进而有效提高对发光设备的控制效率。
作为一种实施方式,如图2所示,发光设备120包括控制器121、第一发光模组124、第二发光模组126以及第三发光模组128。需要说明的是,发光设备120中发光模组的数量和形状可由用户根据不同的使用场景自行选择。可选地,第一发光模组124和第二发光模组126为六边形结构,每个六边形的发光模组都配置有六个发光单元,且该六个发光单元串联拼接于发光模组的内侧边处。例如,第二发光模组126包括依次级联的第一发光单元101、第二发光单元102、第三发光单元103、第四发光单元104、第五发光单元105以及第六发光单元106。可以理解的是,在其他的实施例中,每个多边形的发光模组中所包括的边发光单元的数量并不必须与其边的数量一致,例如,六边形的发光模组可以包括三个、四个或者五个边发光单元,也可以包括七个、八个或者更多的边发光单元,具体的边发光单元的数量以及设置位置,都可根据实际需求进行设置,本申请对此不作限制。
可选地,在本申请实施例中,发光设备120中的多个发光模组122可以通过硬件接口进行电连接,从而控制指令或/及控制信息可以通过该硬件接口在多个发光模组122之间进行传递。具体而言,每个发光模组122可以包括一个输入口和一个输出口,输入口可以用于与控制器连接以接收控制器发送的控制指令,也可以用于与上一级的发光模组的输出口连接,以接收该上一级发光模组传输的控制指令,输出口可以用于与下一级的发光模组的输入口连接以将控制指令传输至下一级发光模组, 此时,该上一级发光模组、该发光模组122、下一级发光模组之间可以视为级联的串联连接关系;或者,一个发光模组122可以包括一个输入口和多个输出口,则该发光模组122可以通过输入口连接至控制器或者上一级的发光模组以接收控制指令,并可以通过多个输出口分别连接多个下一级的发光模组以传输控制指令,此时该发光模组122与多个下一级的发光模组之间可以视为级联的串联连接关系。
在一些具体的示例中,如图3所示,发光设备120由控制器121与多个发光模组(图中示例为第一发光模组124、第二发光模组126以及第三发光模组128等3个,实际中发光模组的数量可由用户自己设置)拼接而成。图中实线箭头表示多个发光单元之间的串联方向和控制指令传输的方向,每个发光模组还包括分线器123,该分线器123包括一个输入口和五个输出口,输入口用于实现控制指令的输入,输出口用于实现控制指令的输出,例如,虚线箭头表示五个输出口的出线端。需要说明的是,每个发光模组都会根据内设发光单元的数量设置控制指令传输的输入口数量和输出口数量,每个发光模组仅设置一个输入口的入线端,其余为输出口的出线端。其中,每个发光模组均包括多个边发光单元(图中仅示出一部分,如第三发光模组128包括六个边发光单元L),且每个边发光单元包含有若干个灯珠和一个控制IC。在一个发光模组内的该多个边发光单元依次串联,在发光设备120内部,第一发光模组124、第二发光模组126以及第三发光模组128各自的边发光单元也依照该三个发光模组在图3所示的拼接结构也同样依次串联。
在一些实施例中,请参阅图4,图4示出了本申请所涉及到的控制方法的一种应用场景。在本场景中,终端设备210可以为手机,发光设备220由四个发光模组按照一定形状拼接而成。作为一种实施方式,用户可以在终端设备210上打开控制发光设备220的控制界面,如指定的应用软件APP的界面211,并通过APP与发光设备220建立连接,进而用户通过APP的控制界面211可以对发光设备220进行不同需求的灯效控制。例如,控制界面211可以显示出发光设备220的多种不同的拼接形状以便用户选择目标拼接形状,或者用户自行设计发光设备220的目标拼接形状,进一步地,用户可以通过控制界面,对目标拼接形状的展示效果进行设置。例如在用户确认灯效设置后,终端设备210可以生成控制指令,并将该控制指令发送至发光设备220的控制器221,进而该控制器221可对各发光模组210进行灯效控制。
下面将结合附图具体描述本申请中的各实施例。
请参阅图5,图5示出了本申请实施例提供的一种发光设备的控制方法,该方法应用于灯效控制系统,该灯效控制系统包括终端设备以及发光设备,发光设备包括控制器以及多个发光模组,终端设备与发光设备通信连接,该发光设备的控制方法可以包括以下步骤S310至步骤S350。
步骤S310:终端设备获取并在控制界面中显示目标拼接形状,目标拼接形状包括多个可视化的虚拟控件,目标拼接形状用于指示用户将控制器和多个发光模组拼接成与目标拼接形状的外形一致的实体形状。
其中,目标拼接形状指的是用户根据不同的使用场景,在终端设备的控制界面上确定的与发光设备外形一致的虚拟形状,目标拼接形状可以包括多个可视化的虚拟控件,该多个虚拟控件可以对应于发光设备中的多个发光模组,也可以对应于发光模组的任一边的边发光单元。
如图4所示,发光设备220在控制界面210上的虚拟形状为目标拼接形状212,虚拟控件213对应于发光设备220上的发光模组223。在一些实施例中,终端设备可以基于发光设备的实体形状确定目标拼接形状,也可以从拼接形状库指定目标拼接形状,进而通过控制界面显示出该目标拼接形状,目标拼接形状也可以是用户在拼接形状的创建界面,通过添加控件的操作所创建的自定义拼接形状。
作为一种实施方式,终端设备可以根据用户在控制界面上的拼接设置操作,获取目标拼接形状。例如,用户根据具体的使用场景拼接出所需的发光设备的实体形状后,可以在终端设备的控制界面拼接出与该实体形状外形一致的目标拼接形状。此外,用户拼接出发光设备的实体形状后,可以利用摄像机拍摄实体形状的照片,终端设备可以获取该照片并确定该照片中实体形状内外部结构的轮廓图,进而将该轮廓图转换为目标拼接形状。
作为另一种实施方式,终端设备可以从拼接形状库中调用预先存储的多个拼接形状,并显示在控制界面,以便用户根据使用场景或/及使用需求选择目标拼接形状,从而,在目标拼接形状确定后,用户可以拼接出与该目标拼接形状外形相同的发光设备的实体形状。
作为又一种实施方式,该目标拼接形状中还可以包括拼接路径,该拼接路径可以以箭头的形式设置在各个虚拟控件拼接边中,从而指示用户依照该拼接路径对发光模组完成实体形状的拼接。
步骤S320:终端设备响应于对目标拼接形状中选定的虚拟控件的设置操作,记录对虚拟控件的设置参数。
在本申请实施例中,终端设备在显示出目标拼接形状之后,可以获取该目标拼接形状中选定的虚拟控件的设置参数。其中,设置参数指的是用户根据发光设备的使用需求,设置用于控制该虚拟控件对应的发光模组的灯效参数,该灯效参数可以包括但不限于发光模组/发光单元展现的灯光颜色、灯光亮度以及灯光闪烁延时等,在此不做限定。需要说明的是,在对虚拟控件进行设置时,虚拟控件还可以同步显示用户设置的灯效参数所对应的灯效。例如,用户通过触控选择一个或者多个虚拟控件后,设置其灯效参数中的发光颜色为红色,则选定的虚拟控件会同步显示红色,以便给用户一种直观的用户体验。
作为一种实施方式,终端设备显示出目标拼接形状之后,可以响应于用户的设置操作,记录对虚拟控件的设置参数,该设置操作指的是在控制界面上,用户为控制目标拼接形状中选定的虚拟控件所对应的发光模组进行灯效展示,而发出的人机界面交互操作,例如,用户在控制界面的灯效控制窗口,发出的选定虚拟控件、输入指令等交互操作。其中,用户在目标拼接形状中选定虚拟控件的操作,可以为在控制界面上,通过触控操作对虚拟控件进行全选、单选或者多选操作。
示例性地,用户可以通过在控制界面上选择一虚拟控件,并在控制界面的“颜色”滑动控件来设定该虚拟控件对应发光模组的颜色,此时,终端设备可以获取该“颜色”滑动控件的Value属性值(如RGB值或者YUV值),并将该Value属性值记录为对应的虚拟控件的颜色参数,也即设置参数。
作为另一种实施方式,设置操作可以指的是用户在控制界面上选择虚拟控件后,并在控制界面提供的灯效模板选择框中进行选择灯效模板的选择操作。终端设备可以基于用户的选择操作,记录对虚拟控件的设置参数。具体地,终端设备获取用户的选择操作后,可以根据该选择操作确定用户选择的灯效模板,并将该灯效模板对应的默认的灯效参数作为设置参数。其中,灯效模板为预存在终端设备中的已打包为控制指令或者控制信息的数据,灯效模板的灯效参数可以包括多个灯效(如跑马灯等灯效)以及灯效所对应的发光设备的发光参数,用户通过选择预存的灯效模板,可以快捷地获取用于控制发光设备的设置参数。进一步地,用户确定灯效模板后,终端设备可以响应于用户的设置操作,对灯效模板中的灯效参数进行修改,以使灯效的控制更贴合用户的需求。
步骤S330:终端设备确定选定的虚拟控件在目标拼接形状中的排序值,并根据设置参数和排序值得到控制信息。
为了有效降低灯效控制过程中对灯块序号和连接关系错误识别的概率,本申请提供的发光设备的控制方法没有采用主从机的通信方式,而是利用发光设备的多个发光模组按照拼接次序依次传递控制指令、截取控制指令的通讯方式实现终端设备对发光设备的灯效控制。其中,控制指令指的是基于控制信息生成,用于终端设备控制发光设备进行展示一致性的灯效的指令。该控制指令可以由多段控制字段组成,每一段控制字段对应一个发光模组且包含有发光模组可以直接解析执行的操作符,每段控制字段固定的字节数用户可以自行设定。而截取控制指令的通讯方式是指,在多个发光模组串联结构的基础上,每个发光模组在接收到控制指令后,利用自身的整形电路,将该控制指令头部的控制字段截取出来解析执行,进一步地,这个节点将截取后剩余段的控制指令传输至下一发光模组。终端设备生成控制指令的时候,所选定控制的发光模组在串接结构中的排序值对应的一段,会添加操作符,其他段就不加内容。
例如,假定每个发光模组的控制字段对应3个字节长度,发光设备包括10个发光模组,则控制指令为30个字节长度(假定第10个发光模组也被选定控制),与控制器连接的第一个发光模组,会接收到完整的30个字节长度的控制指令,控制指令在发光模组之间的传递过程中,该第一个发光模组会截取自己在串接结构中的排序值对应的一段控制字段,再将截取后的控制指令传至第二个发光模组这样,第二个发光模组,接收到的就为27个字节长度的控制指令。若只选定控制拼接顺序为3和4的发光模组,则在生成控制指令时,该控制指令的第3段和第4段就会设置操作符,其他段不设置。
基于上述说明,在用户参照目标拼接形状将控制器和多个发光模组拼接为实体形状时,在拼接无误的情况时,在视觉层面,目标拼接形状和实体形状可以具有拼接结构上的形状一致性,即在目标拼接形状某一特定位置的虚拟控件,在发光设备的实体形状中的该特定位置同样具有视觉对应的发光模组。因此,终端设备可以通过确定目标拼接形状中选定的虚拟控件的排序值(该排序值表征虚拟控件在目标拼接形状中的特定位置),并根据设置参数和排序值生成控制信息或/及控制指令来实现对发光设备的实体形状中视觉对应位置的发光模组进行发光控制,从而实现发光控制在视觉观感上的一致性,提升用户体验。
具体的,在本申请实施例中,发光控制在视觉观感上的一致性指:用户在拼接得到实体形状, 并依据目标拼接形状对实体形状的发光设备进行控制后,用户设置目标拼接形状中目标位置处的虚拟控件按照设定灯效参数进行发光,该过程中生成的控制信息,可同时对实体形状中与目标位置处的虚拟控件所对应的发光模组进行发光控制,使发光模组按照该控制信息中设置的灯效参数同步发光,显示出符合该灯效参数的一致灯效。由此,在终端设备根据控制信息对发光设备进行发光控制时,保证控制过程在用户观感上的一致性,进而,保证用户对可拼接智能灯的发光控制拥有良好的交互体验。
其中,目标位置可以由虚拟控件在目标拼接形状中的排序值来表征,而虚拟控件在目标拼接形状中的排序值在不同的应用场景中,可对应于不同状况下的发光模组或/及发光单元的排序值。在本申请的不同应用场景/不同状况中,发光模组可以有单光源设备和多光源设备之分,其中,单光源设备可以理解为该发光模组内部配置有一个发光单元,例如,一组或一个发光单元,或者该发光模组内部配置有多个发光单元但所有发光单元只能统一控制(如这些边发光单元呈并联、用于接收并执行同一段控制指令);多光源设备可以理解为该发光模组包括多个依次级联的边发光单元,且多个边发光单元可以单独受控(如多个依次级联的发光单元被配置为分别接收并执行不同的控制指令)。
在一些实施例中,当发光模组为单光源设备时,每个虚拟控件直接表征了每个发光模组,多个虚拟控件和多个发光模组一一对应,则虚拟控件在目标拼接形状中的排序值可以为虚拟控件的拼接次序值。该拼接次序值用于表征在利用虚拟控件拼接生成目标拼接形状时,各个虚拟控件的拼接次序。
在另一些实施例中,当发光模组为多光源设备时,发光模组包括多个边发光单元,多个虚拟控件和多个发光模组一一对应,虚拟控件和其对应的发光模组具有相同的形状结构,也即每个虚拟控件可以配置有和发光模组所对应的虚拟发光部件,此时虚拟控件在目标拼接形状中的排序值可以理解为虚拟发光部件在目标拼接形状的序号值。例如,发光模组的实体结构以图2中的发光模组126为例,发光模组126为六边形结构,其配置有多个边发光单元101、102、103、104、105、106;发光模组126在控制界面中对应的虚拟控件为六边形,且虚拟控件的六边形结构与发光模组126实体结构对应,虚拟控件包括设置于六边形结构的边的虚拟发光部件,这些虚拟发光部件在虚拟控件上的设置位置与多个边发光单元101、102、103、104、105、106在发光模组126上的设置位置一致,且多个虚拟发光部件可单独控制。此时,在利用该虚拟控件拼接完成目标拼接形状时,选定的虚拟控件的排序值即为该选定的虚拟控件中选定边(如虚拟发光部件)在目标拼接形状中的边排序值。
基于上述阐述,从另一个角度考虑,用户在进行发光控制/灯效控制时,其可以在控制界面中选择单个或多个的虚拟控件(如整个六边形),以控制对应的单个或多个发光模组;用户在进行发光控制/灯效控制时,也可以在控制界面中选择单个或多个的虚拟发光部件(如六边形的一个或多个边),以控制对应的单个或多个边发光单元。因此,当选定的虚拟控件为虚拟控件整体时,其排序值为虚拟控件的拼接次序值;当选定的虚拟控件为虚拟发光部件时,其排序值为该选定的虚拟控件中选定边(如虚拟发光部件)在目标拼接形状中的边排序值。
作为一种实施方式,终端设备可以从目标拼接形状的配置文件中提取拼接次序值。该配置文件可以用于记录目标拼接形状中各个虚拟控件的拼接次序以及各个虚拟控件在控制界面中的位置信息。配置文件中,位置信息可以采用数组类型的数据结构进行表示。例如,目标拼接形状中包含第一虚拟控件和第二虚拟控件,配置文件中存储有第一虚拟控件对应的位置信息[a,1]和第二虚拟控件对应的位置信息[b,2],其中,a和b可以分别表示为第一虚拟控件和第二虚拟控件在控制界面中的二维/三维的坐标信息,1和2分别为第一虚拟控件和第二个虚拟控件的拼接次序值。从而,终端设备在控制界面可以通过加载该配置文件,在控制界面中显示出该目标拼接形状。
具体地,终端设备在响应到用户对控制界面上目标拼接形状的触控操作时,可以获取该触控操作的触控位置,并依照配置文件中记录的每个虚拟控件的位置信息,确定用户选定的虚拟控件,并最终从该配置文件中查询确定选定虚拟控件的拼接次序值。例如,用户使用鼠标在控制界面点击目标拼接形状时,终端设备可以获取光标点击的点击位置,并将该点击位置与配置文件中虚拟控件的位置信息进行匹配,从而确定出被点击的虚拟控件的拼接次序值。
作为另一种实施方式,虚拟控件的虚拟光源部件在目标拼接形状中的排序值可以采用边序号值和拼接次序值来表征。具体地,如图2所示,发光设备120中的第一发光模组124、第二发光模组126以及第三发光模组128拼接次序值分别为1#、2#和3#。以入边作为基准,第二发光模组126,若其第一发光单元101至第六发光单元106依次级联,则第一发光单元101至第六发光单元106所对应的边序号值分别为1至6。则可以确定,第一发光单元101至第六发光单元106所对应的虚拟控件的虚拟光源部件在目标拼接形状中的边排序值可以分别表示为数组[2,1]、[2,2]、[2,3]、[2, 4]、[2,5]和[2,6],该数组中,第一位数为拼接次序值,第二位为边序号值。
在本申请实施例中,终端设备确定出每个虚拟控件在目标拼接形状中的排序值后,可以根据设置参数和排序值得到控制信息。其中,控制信息可以理解为用于控制发光设备的信息,其可以包括但不限于包括:发光设备的发光模组或/及边发光单元的发光参数(如颜色参数、亮度参数、时长参数等,该发光参数可以依据其设置参数而得到)、发光设备的发光模组或/及边发光单元的排序值。控制信息可以作为终端设备控制发光设备的依据(如控制信息作为控制指令的生成依据),当终端设备获得控制信息后,其可以直接根据控制信息生成控制指令,该控制指令可以由发光模组直接解析并执行;或者,当终端设备获得控制信息后,其可以将控制信息传递至发光设备的控制器,控制器可以根据控制信息生成控制指令,该控制指令可以由发光模组直接解析并执行。
作为一种实施方式,终端设备可以将设置参数和排序值打包作为控制信息,当终端设备将控制信息发送至发光设备后,控制器可以依照设置参数和排序值生成控制指令,并将控制指令下发至目标发光模组,以对目标发光模组进行发光控制,其中,控制指令由目标发光模组解析并执行。
考虑到发光设备存在有限的计算资源,随着发光模组数量的不断增加,用于发光模组灯效控制所需的计算资源消耗不断增大,进而导致发光设备的运行效率降低。为此,可以将控制指令的生成操作设置由终端设备直接完成。
作为另一种实施方式,终端设备可以根据设置参数和排序值确定控制信息,并根据该控制信息生成控制指令,并将该控制指令作为控制信息发送至发光设备,也即终端设备将控制指令发送至发光设备后,该控制指令可以指示控制器将控制指令转发至目标发光模组,以对目标发光模组进行发光控制,其中,控制指令由目标发光模组解析并执行,由此,终端设备可以直接根据设置参数和排序值生成控制指令,当发光接收控制指令时,仅需完成控制指令的传递,从而节约计算资源,提高工作效率。
步骤S340:终端设备向控制器发送控制信息。
作为一种实施方式,终端设备可以将设置参数和排序值直接作为控制信息,发送给发光设备,以便发光设备根据控制信息生成控制指令。作为另一种实施方式,终端设备也可以根据每个发光单元的排序值以及设置参数得到控制信息,基于控制信息生成控制指令(可以认为控制指令包括了控制信息),进而将控制指令发送给发光设备,进而发光设备可以直接解析控制指令,以实现灯效控制。
步骤S350:控制器接收控制信息,并根据控制信息对目标发光模组进行发光控制,目标发光模组为实体形状中与排序值对应的发光模组。
作为一种实施方式,当发光设备接收到控制信息后,发光设备可以根据控制信息指示控制器根据设置参数和排序值生成控制指令,并将控制指令下发至目标发光模组,以对目标发光模组进行发光控制。例如,若控制指令中包含目标拼接形状中排序值为2的虚拟控件的设置参数,那么目标发光模组则是该实体形状中排序值为2的发光模组。控制器将控制指令下发至发光设备后,目标发光模组将接收到控制指令并执行。
作为另一种实施方式,发光设备接收控制信息后,控制器可以直接根据控制信息对目标发光模组进行发光控制。具体地,控制器将控制指令下发至目标发光模组,目标发光模组解析并执行控制指令。
可以理解的是,控制指令可以由多段单线归零码组成,该多段单线归零码按照虚拟控件的排序值依次排列,每段单线归零码对应于一个发光模组。当目标发光模组接收到控制指令后,目标发光模组可以从该控制指令上获取与自身排序值对应的排列位置上的单线归零码,进而根据对该单线归零码的解析结果,进行灯效展示。
例如,发光设备具有第一发光模组和第二发光模组(目标发光模组),控制器将控制指令发送至第一发光模组,第一发光模组在获取控制指令后,可以截取该控制指令上的首段单线归零码,并将截取剩余的控制指令传递给第二发光模组,第二发光模组在获取控制指令后,可以截取该控制指令首段单线归零码,该首段单线归零码为原控制指令的第二段单线归零码,由此,目标发光模组获取对应的单线归零码,需要说明的是,以上控制器将控制指令下发至目标发光模组以及目标发光模组解析并执行控制指令的步骤也可以应用于发光单元,也即每个发光单元可视为一个发光模组,反之亦然。
本申请提供的发光设备的控制方法,终端设备可以获取并在控制界面中显示目标拼接形状,进而终端设备可以响应于对目标拼接形状中选定的虚拟控件的设置操作,记录对虚拟控件的设置参数,并确定虚拟控件在目标拼接形状中的排序值,接着终端设备可以根据设置参数和排序值得到控制信 息,并向控制器发送控制信息。进一步地,控制器可以接收由终端设备发送的控制信息,并且根据控制信息对目标发光模组进行发光控制。由此,终端设备可以根据虚拟控件在目标拼接形状中的排序值以及设置参数生成对应的控制信息,并发送至发光设备的控制器,该控制器可以根据控制信息对目标发光模组进行发光控制,从而避免了各发光模组都需与终端设备建立通信连接的操作,提高控制效率,同时可以减少发光模组对微控制单元的使用,降低生产成本。
请参阅图6,图6示出了本申请实施例提供的另一种发光设备的控制方法,该发光设备的控制方法应用于配置有控制界面的终端设备,终端设备与发光设备通信连接,发光设备包括控制器以及至少一个发光模组,该方法可以包括以下步骤S410至步骤S450。
步骤S410:获取并在控制界面中显示目标拼接形状。
在一些实施例中,终端设备可以响应于拼接设置操作,将在控制界面上将发光模组对应的虚拟控件拼接成目标拼接形状。作为一种实施方式,终端设备可以执行以下步骤A至步骤D,以在控制界面上将发光模组对应的虚拟控件拼接成目标拼接形状。
步骤A,响应于拼接设置操作,在控制界面确定初始虚拟控件。其中,初始虚拟控件可以对应于一个发光模组,具有与其对应的发光模组相同的形状,该初始虚拟控件可以表征用户通过拼接设置操作而新建/增添的首个虚拟控件。拼接设置操作指的是用户在控制界面新建/增添虚拟控件的操作。
作为一种实施方式,如图7所示,用户在控制界面上需要新增目标拼接形状时,可以在所需的位置G进行触控(如触控新增按钮H),终端设备根据控制界面收到的触控操作,生成并显示初始虚拟控件R1,此时初始虚拟控件R1则应理解为用户通过拼接设置操作而新建的首个虚拟控件。
作为另一种实施方式,终端设备配置有目标拼接形状的模板库,该模板库中预存有一个或多个库存形状,这些库存形状用于供用户根据自己的需求选择,以缩减用户的拼接时间,提高用户体验。如图8所示,用户调用目标拼接形状的模板库中的库存形状进行编辑时,终端设备的控制界面上可以根据用户的操作显示被调用的库存形状P,当用户根据需求在对库存形状P进行编辑时,在其需要新增虚拟控件的位置触控对应的虚拟控件,则终端设备根据控制界面收到的触控操作,确定初始虚拟控件为虚拟控件(如可以通过不同颜色突出显示,或者可以通过其他的图标强调出虚拟控件R1为初始虚拟控件),此时初始虚拟控件则应理解为用户通过拼接设置操作而确定的首个虚拟控件。
步骤B,基于初始虚拟控件的形状,在初始虚拟控件的周围生成两个或两个以上添加控件,添加控件用于指示下一个虚拟控件的显示位置。
作为一种实施方式,当初始虚拟控件一旦确定,用户则可以依据需求添加下一个虚拟控件。在本实施例中,如图7、8所示,终端设备提供用户添加下一个虚拟控件的触控按钮(如添加控件S),用户通过触控添加控件S,即可在添加控件S所在的位置增加虚拟控件。具体而言,终端设备基于初始虚拟控件R1的形状,确定添加控件S的显示位置,并在该显示位置上显示添加控件S,该显示位置与初始虚拟控件R1相邻接;若初始虚拟控件R1为多边形,则添加控件S的数量可以为多个,每个添加控件S的显示位置可以邻接于初始虚拟控件R1的一个边;或者,可以根据初始虚拟控件R1的轮廓,在初始虚拟控件R1的四周划定多个显示位置,每个显示位置作为一个添加控件S的位置,此时,添加控件S的数量、位置可以不必与初始虚拟控件R1的多边形结构相关。
步骤C,响应于添加操作,在两个或两个以上的添加控件中确定目标添加位置,在目标添加位置显示下一个虚拟控件。
作为一种实施方式,控制界面上围绕初始虚拟控件R1显示有两个或两个以上的添加控件S,用户可以根据自己的拼接需求选定其中任一个添加控件S以添加新的虚拟控件。当移动终端接收到针对添加控件S的选定操作时,将被选定的添加控件S所在的显示位置作为目标添加位置,并在该目标添加位置显示下一个虚拟控件R2。
步骤D,基于下一个虚拟控件的形状,在下一个虚拟控件的周围生成两个或两个以上添加控件,添加控件用于指示再下一个虚拟控件的添加位置。在本申请实施例中,当添加了新的虚拟控件后,可以依照步骤B继续显示添加控件,并可以基于用户的操作继续添加新的虚拟控件,本说明书不作一一赘述。
响应于添加操作,执行步骤A及步骤D,直至接收到目标确认指令,得到目标拼接形状,目标确认指令表征用户已完成对虚拟控件的添加。在本实施例中,目标确认指令可以基于用户的触控操作而生成,如,用户触控“完成拼接”按钮,则对应地生成目标确认指令。此时,控制界面上所显示的虚拟控件共同组成的形状即为目标拼接形状。
步骤S420:响应于对目标拼接形状中的虚拟控件的选定边的设置操作,记录对选定边的设置参数。
作为一种实施方式,终端设备显示出目标拼接形状之后,用户可以选定目标拼接形状中任一虚拟控件上的边,也即选定边,进行参数的设置。在本实施例中,步骤S420的具体实施,可以参考上文实施例所提供的步骤S320的阐述,此处不再赘述。
步骤S430:确定选定边在目标拼接形状中的边排序值。
作为一种实施方式,终端设备可以确定发光模组所对应的虚拟控件在目标拼接形状中的拼接次序值,并以该拼接次序值作为虚拟控件在目标拼接形状中的排序值。进一步地,终端设备可以根据虚拟控件的排序值,确定选定边在目标拼接形状中的边排序值。
例如,终端设备可以根据用户通过拼接设置操作新建虚拟控制的次序作为虚拟控件在目标拼接形状中的拼接次序值,并将该拼接次序值作为虚拟控件在目标拼接形状中的排序值。进一步地,终端设备获取发光模组所对应的虚拟控件在目标拼接形状中的排序值后,可以根据发光模组所对应的虚拟控件的边数以及虚拟控件的排序值,计算出选定边在目标拼接形状中的边排序值。例如,每个发光模组包括多个依次级联的边发光单元时,如第一发光单元、第二发光单元、第三发光单元、第四发光单元、第五发光单元依次级联,那么在该发光模组内,第一发光单元、第二发光单元、第三发光单元、第四发光单元、第五发光单元依次排序的内部排序值已知,则与该发光模组所对应的虚拟控件的多个边的内部排序值已知,则终端设备可以根据该发光模组所对应的虚拟控件在目标拼接形状中的排序值,以及多个边的内部排序值,计算出选定边在目标拼接形状中的边排序值。具体而言,假设目标拼接形状包括两个虚拟控件,分别称为第一虚拟控件与第二虚拟控件,则第一虚拟控件的排序值为1,第二虚拟控件的排序值为2;第二虚拟控件包括依次序连接的第一边、第二边、第三边、第四边、第五边,且每个边设有对应的发光单元,则第一边的内部排序值为1,第二边的内部排序值为2,第三边的内部排序值为3,第四边的内部排序值为4,第五边的内部排序值为5,则要计算第二虚拟控件的第三边的排序值时,在一种实施例中,可以结合第二虚拟控件的排序值2以及第三边的内部排序值3,确定第三边的排序值为2-3,或为数组[2,3];在另一种实施例中,可以结合第一虚拟控件的边数量N与以及第三边的内部排序值3,计算第三边的排序值为N+3。
步骤S440:根据对选定边的设置参数和边排序值得到控制信息。
在本申请实施例中,控制信息可以理解为用于控制发光设备的信息,其可以包括但不限于包括:发光设备的发光模组或/及边发光单元的发光参数(如颜色参数、亮度参数、时长参数等,该发光参数可以依据其设置参数而得到)、发光设备的发光模组或/及边发光单元的排序值。控制信息可以作为终端设备控制发光设备的依据(如控制信息作为控制指令的生成依据),当终端设备获得控制信息后,其可以直接根据控制信息生成控制指令,该控制指令可以由发光模组直接解析并执行;或者,当终端设备获得控制信息后,其可以将控制信息传递至发光设备的控制器,控制器可以根据控制信息生成控制指令,该控制指令可以由发光模组直接解析并执行。
本申请提供的发光设备的控制方法利用发光设备按照拼接次序依次截取控制指令的方式实现终端设备对发光设备的灯效控制。可选地,发光设备所采用的IC控制芯片集成有单线归零码数字接口、输出数据自动整形转发等电路。其中,单线归零码指的是在整个码元期间高电平只维持一段时间,其余时间返回零电平,即归零码的有电脉冲宽度比码元宽度窄(即占空比<1),每个脉冲在还没有到一个码元终止时刻就回到零值,单线归零码能广泛应用到信道上传输。IC控制芯片内置的信号整形处理电路,在任何一个IC控制芯片收到控制指令后,都可以经过波形整形后在输出,从而保证线路波形畸变不会累加。
在一些实施例中,终端设备可以基于控制信息生成以单线归零码为数据格式的控制指令。该控制指令可以包括多个控制字段,也即多段单线归零码,多个控制字段与实体形状中的多个发光模组一一对应,每个控制字段包括供发光模组解析的控制参数,控制参数基于选定的虚拟控件的设置参数和排序值而确定。
可选地,终端设备可以根据虚拟控件在目标拼接形状中的数量N,确定控制字段的数量为N,或者确定排序值为N,则确定控制字段的数量为N。其中,N个控制字段依次排序,进一步地,终端设备基于设置参数和排序值,为每个控制字段配置控制参数,以生成控制指令,其中,配置有控制参数的控制字段的排序次序与排序值相同。
具体而言,作为一种实施方式,终端设备可以根据对选定边的设置参数和边排序值生成控制指令,将该控制指令作为控制信息发送至发光设备。具体地,终端设备可以根据发光模组的边发光单元所对应的虚拟控件在目标拼接形状中的数量N,确定控制指令中控制字段的数量为N,进一步地,终端设备可以基于选定边的设置参数和边排序值为每个控制字段配置控制参数,以生成控制指令。
例如,目标拼接形状由两个六边形的发光模组对应的虚拟控件组成,而对应的发光模组均包括 六个边发光单元,则每个虚拟控件的有效对应的边的数量为6,该目标拼接形状中两个虚拟控件的边的总数为12,也即控制指令有12段固定长度的控制字段,若要控制第一个虚拟控件对应的发光模组不发光,且第二个虚拟控件对应的发光模组发出红色灯光,则终端设备可以根据所有边的边排序值以及设置参数(控制编码)生成对应的控制字段。生成的控制指令的数据格式举例如下:
(0x00 0x00 0x00)(0x00 0x00 0x00)(0x00 0x00 0x00)(0x00 0x00 0x00)(0x00 0x00 0x00)(0x00 0x00 0x00)(0xFF 0x00 0x00)(0xFF 0x00 0x00)(0xFF 0x00 0x00)(0xFF 0x00 0x00)(0xFF 0x00 0x00)(0xFF 0x00 0x00)
其中,每个“()”内的字符表示对应的一个边的控制字段,如(0xFF 0x00 0x00)即为选定边的排序值在控制指令上对应的控制字段,该控制指令由12段固定字节长度为24bit的控制字段组成,该控制字段对应十进制的RGB数据为(255 0 0),因此可以控制获取该控制字段的发光单元展示红色灯光,从第一段至第六段对应于边排序值为1~6的边,也即,从第七段至第十二段对应于边排序值为7~12的边。
在另一些实施例中,终端设备可以将对选定边的设置参数和选定边的排序值直接打包生成控制信息,并将该控制信息发送给发光设备,以便发光设备根据控制信息生成控制指令。
步骤S450:向控制器发送控制信息,控制信息用于指示控制器对目标发光模组进行发光控制,目标发光模组为实体形状中与排序值对应的发光模组。
在本实施例中,步骤S450的具体实施,可以参考上文实施例所提供的步骤S340的阐述,此处不再赘述。
本申请提供的发光设备的控制方法,终端设备可以获取并在控制界面中显示目标拼接形状,进而可以响应于对目标拼接形状中的虚拟控件的选定边的设置操作,记录对选定边的设置参数,并确定选定边在目标拼接形状中的边排序值,进一步地,可以根据对选定边的设置参数和边排序值得到控制信息,并向控制器发送控制信息。由此,终端设备可以根据虚拟控件在目标拼接形状中的边排序值以及设置参数生成对应的控制信息,并发送至发光设备的控制器,从而对目标发光模组进行发光控制,从而避免了各发光模组都需与终端设备建立通信连接的操作,提高控制效率。
请参阅图8,图8示出了本申请实施例提供的又一种发光设备的控制方法,该方法应用于发光设备,发光设备包括控制器以及多个发光模组,发光设备与终端设备通信连接,多个发光模组依据目标拼接形状拼接,目标拼接形状由终端设备的控制界面所显示的虚拟控件的拼接形状确定,该发光设备的控制方法可以包括以下步骤S510至步骤S520。
步骤S510:控制器接收由终端设备发送的控制信息,控制信息由终端设备基于所接收的、对选定的虚拟控件的设置操作而生成,控制信息包括选定的虚拟控件的设置参数和选定的虚拟控件在目标拼接形状中的排序值。
在本实施例中,步骤S510的具体实施,可以参考上文实施例所提供的步骤S340的阐述,此处不再赘述。
步骤S520:控制器根据控制信息对目标发光模组进行发光控制,目标发光模组为实体形状中与排序值对应的发光模组。
在本申请实施例中,控制信息是由终端设备生成,终端设备可以根据控制信息生成控制指令作为控制信息发送至发光设备,从而发光模组获取该控制信息,也即控制指令,直接解析并执行的控制指令。具体地,发光设备的控制器可以接收控制信息,并将该控制信息,也即控制指令直接下发至目标发光模组,该目标发光模组解析并执行控制指令。发光设备的控制器也可以根据获取的控制信息,基于该控制信息所包含的设置参数和排序值生成控制指令,并将控制指令下发至目标发光模组,进一步地,该目标发光模组解析并执行控制指令。
可选地,控制指令可以包括多个控制字段,多个控制字段与依据目标拼接形状拼接的多个发光模组一一对应,每个控制字段包括供发光模组解析的控制参数,控制参数基于选定的虚拟控件的设置参数和排序值而确定。
可选地,控制器可以根据虚拟控件在目标拼接形状中的数量N,确定控制字段的数量为N,其中,N个控制字段依次排序,进一步地,控制器可以基于设置参数和排序值,为每个控制字段配置控制参数,以生成控制指令,其中,配置有控制参数的控制字段的排序次序与排序值相同。
在本实施例中,发光设备接收由终端设备发送的控制信息,可以根据控制信息生成控制指令,该控制信息由终端设备可以将对选定边的设置参数和选定边的排序值直接打包生成。发光设备可以基于控制信息生成控制指令(可以认为控制指令包括了控制信息),进而将控制指令发送给发光设备,该控制信息由终端设备根据对选定边的设置参数和选定边的排序值得到。
在一些实施例中,控制器可以将控制指令下发至目标发光模组,该目标发光模组可以解析并执行该控制指令。具体地,控制器可以将控制指令下发至第一发光模组,第一发光模组为依次排序的多个发光模组中的第一个发光模组;例如,目标拼接形状由六个发光模组对应的虚拟控件组成,控制器发送的控制指令为(0x0A 0x00 0x00)(0x0B 0x00 0x00)(0x0C 0x00 0x00)(0x0D 0x00 0x00)(0x0E 0x00 0x00)(0x0F 0x00 0x00),其中每个“()”内的字符表示对应的一个虚拟控件的控制指令。
第一发光模组在接收到的控制指令的N个控制字段中截取第一个控制字段,并将截取后的(N-1)个控制字段发送至第二发光模组,第二发光模组为依次排序的多个发光模组中、与第一发光模组邻接的下一个发光模组;基于上述的举例,第一发光模组的排序值为1,其顺位截取控制指令中与排序值为1对应的控制字段,也即截取控制指令中第一个控制字段(0x0A 0x00 0x00)后,将剩余的控制字段(0x0B 0x00 0x00)(0x0C 0x00 0x00)(0x0D 0x00 0x00)(0x0E 0x00 0x00)(0x0F 0x00 0x00)发送至排序值为2的下一个发光模组(第二发光模组),排序值为2的发光模组即是与第一发光模组邻接的发光模组。
第二发光模组在接收到的控制指令的(N-1)个控制字段中截取第一个控制字段,并将截取后的(N-3)个控制字段发送至与第二发光模组邻接的第三发光模组;基于上述的举例,第二发光模组的排序值为2,其顺位截取控制指令中与排序值为2对应的控制字段,也即截取其所接收的控制指令中第一个控制字段(0x0B 0x00 0x00)后,将剩余的控制字段(0x0C 0x00 0x00)(0x0D 0x00 0x00)(0x0E 0x00 0x00)(0x0F 0x00 0x00)发送至排序值为3的下一个发光模组(第三发光模组),排序值为3的发光模组即是与第三发光模组邻接的发光模组。
……依次类推。
第(N-1)发光模组在接收到的控制指令的两个控制字段中截取第一个控制字段,并将截取后的控制字段发送至与第N发光模组;基于上述的举例,第五发光模组的排序值为5,其顺位截取控制指令(0x0E 0x00 0x00)(0x0F 0x00 0x00)中与排序值为5对应的控制字段,也即截取其所接收的控制指令中第一个控制字段(0x0E 0x00 0x00)后,将剩余的控制字段(0x0F 0x00 0x00)发送至排序值为6的下一个发光模组(第六发光模组),排序值为6的发光模组即是与第五发光模组邻接的发光模组,也是目标拼接形状对应的实体拼接形状中的排序最末位的一个发光模组。
第N发光模组接收第(N-1)发光模组发送的控制字段;基于上述的举例,第六发光模组接收第五发光模组发送的控制字段(0x0F 0x00 0x00)。
由此,各个发光模组都能接收到控制指令,进而解析所截取的控制字段中的控制参数并执行。与主从机的通讯方式相比,本申请提供的发光设备的控制方法,发光设备的各个发光模组不需要直接与终端设备建立连接关系,发光设备接收来自终端设备发送的控制指令后,各个发光模组/边发光单元仅需截取控制指令的中对应自身排序的控制字段即可完成灯效的展示,从而简化终端设备逐一向每个发光模组发送控制指令,再由每个发光设备从终端设备接收控制指令的步骤,通过一次生成,一次传输的方式高效地控制发光设备的灯效展示,避免主从机的通信方式中容易出现的识别错误。
在本实施例中,各发光模组在截取到对应的控制字段后,可以直接执行该控制指令,也可以等待控制器输入的触发指令,在同一时间执行其所接收到的控制指令,以保证发光设备整体灯效的响应时间同步。例如,控制器输入的触发指令可以是对多个发光模组级联发送的执行指令,该指令中添加了定时器,在发光模组收到触发指令后,定时器开始计时,发光模组在定时器计时结束后被触发执行前述的控制指令,从而保证多个发光模组能够同时响应控制指令。又如,控制器输入的触发指令可以是低电平输入信号,通过低电平输入信号,控制器可以同时拉低所有发光模组的电平,在控制器内置计时器结束后,恢复高电平输入,则发光模组被触发直接执行前述的控制指令,从而保证多个发光模组能够同时响应控制指令,具体地,接收到控制指令的发光模组可以解析所截取的控制字段,并获取对应的控制参数,发光模组响应于持续预定时长的低电平输入信号,执行该控制参数。
示例性地,为了进一步说明本实施例,下文将结合具体的附图进行举例说明。请参阅图10,图10示出了发光模组中三个发光单元之间的物理连接关系,其中,发光单元采用的是WS2811芯片,第一发光单元610、第二发光单元620以及第三发光单元630之间通过数据传输线传输控制指令。发光设备接收来自终端设备发送的控制指令,该控制指令用于控制第一发光单元610、第二发光单元620以及第三发光单元630的灯光效果,控制指令由3段固定长度的控制字段构成,每段固定长度的控制字段可以为24bit大小的单线归零码的数据。DI端接收从控制器传输过来的控制指令,该3*24bit长度的控制指令经第一发光单元610获取后,第一发光单元610截取该控制指令的头部固定长度为 1*24bit的控制字段,并将截取剩余的2*24bit长度的控制指令经过内部整形处理电路整形放大后,通过DO端转发输出给下一个级联的第二发光单元620。
进一步地,该2*24bit长度的控制指令经第二发光单元620获取后,第二发光单元620截取该控制指令的头部固定长度为1*24bit的控制字段,并将截取剩余的1*24bit长度的控制指令经过内部整形处理电路整形放大后,通过DO端转发输出给下一个级联的第三发光单元630,至此,发光设备完成控制指令的传输。
作为一种实施方式,每个发光单元获取从控制指令截取的剩余后,可以根据该剩余进行灯效展示。例如,用于控制第一发光单元610、第二发光单元620以及第三发光单元630的灯光效果的控制指令的编码如下:
(0x00 0x00 0x00)(0x00 0x00 0x00)(0xFF 0x00 0x00),
该编码中为每段长度为24bit,0x00可以表示为0,0xFF可以表示为1,(0x00 0x00 0x00)可以表示控制发光单元不亮,(0xFF 0x00 0x00)可以表示控制发光单元发出红光,从而第一发光单元610、第二发光单元620不发光,第三发光单元630发红光。
本申请提供的发光设备的控制方法,控制器可以接收由终端设备发送的控制信息,该控制信息由终端设备基于所接收的、对选定的虚拟控件的设置操作而生成,控制信息包括选定的虚拟控件的设置参数和选定的虚拟控件在目标拼接形状中的排序值,进一步地,控制器并根据控制信息对目标发光模组进行发光控制。由此,发光设备可以根据控制消息采用截取式执行方式,实现实体拼接形状中边编号对应的发光单元的发光控制,避免控制单元的参与,降低识别错误率,进而有效提高对发光设备的控制效率。
请参阅图11,图11示出了本申请实施例提供的发光设备的控制装置700的模块框图。该发光设备的控制装置运行于配置有控制界面的终端设备,终端设备与发光设备通信连接,发光设备包括控制器以及多个发光模组,控制装置包括:
形状获取模块710,用于获取并在控制界面中显示目标拼接形状,目标拼接形状包括多个可视化的虚拟控件,目标拼接形状用于指示用户将控制器和多个发光模组拼接成与目标拼接形状的外形一致的实体形状;
参数记录模块720,用于响应于对目标拼接形状中选定的虚拟控件的设置操作,记录对虚拟控件的设置参数;
排序确定模块730,用于确定选定的虚拟控件在目标拼接形状中的排序值;
控制指令模块740,用于根据设置参数和排序值得到控制信息;
指令发送模块750,用于向控制器发送控制信息,控制信息用于指示控制器对目标发光模组进行发光控制,目标发光模组为实体形状中与排序值对应的发光模组。
在一些实施例中,控制指令模块740可以具体用于将设置参数和排序值打包生成控制信息;
指令发送模块750可以具体用于向控制器发送控制信息,控制信息用于指示控制器根据设置参数和排序值生成控制指令,并将控制指令下发至目标发光模组,以对目标发光模组进行发光控制,其中,控制指令由目标发光模组解析并执行。
在一些实施例中,控制指令模块740还可以具体用于根据设置参数和排序值确定控制信息,控制信息包括排序值所对应的目标发光模组的设置参数;根据控制信息生成控制指令;
指令发送模块750还可以具体用于向控制器发送控制指令,控制指令用于指示控制器将控制指令转发至目标发光模组,以对目标发光模组进行发光控制,其中,控制指令由目标发光模组解析并执行。
在一些实施例中,虚拟控件的形状与发光模组的形状一致;发光模组为多边形结构,并包括设置于该多边形结构的至少一个边的边发光单元;参数记录模块720可以具体用于响应于对目标拼接形状中的虚拟控件的选定边的设置操作,记录对选定边的设置参数;
排序确定模块730可以具体用于确定选定边在目标拼接形状中的边排序值;
控制指令模块740还可以具体用于根据对选定边的设置参数和边排序值得到控制信息;控制信息还用于指示控制器对目标边发光单元进行发光控制,目标边发光单元为实体形状中与边排序值对应的边发光单元。
在一些实施例中,排序确定模块730可以具体用于确定虚拟控件在目标拼接形状中的拼接次序值;以拼接次序值作为选定的虚拟控件在目标拼接形状中的排序值。
在一些实施例中,控制指令包括多个控制字段,多个控制字段与实体形状中的多个发光模组一一对应;每个控制字段包括供发光模组解析的控制参数,控制参数基于选定的虚拟控件的设置参数 和排序值而确定;控制指令模块740可以包括:
确定单元,用于根据虚拟控件在目标拼接形状中的数量N,确定控制字段的数量为N,其中,N个控制字段依次排序;
生成单元,用于基于设置参数和排序值,为每个控制字段配置控制参数,以生成控制指令,其中,配置有控制参数的控制字段的排序次序与排序值相同。
在一些实施例中,形状获取模块710可以包括:拼接单元,用于响应于拼接设置操作,在控制界面上将发光模组对应的虚拟控件拼接成目标拼接形状。
在一些实施例中,拼接单元可以具体用于步骤A,响应于拼接设置操作,在控制界面确定初始虚拟控件;步骤B,基于初始虚拟控件的形状,在初始虚拟控件的周围生成两个或两个以上添加控件,添加控件用于指示下一个虚拟控件的显示位置;步骤C,响应于添加操作,在两个或两个以上的添加控件中确定目标添加位置,在目标添加位置显示下一个虚拟控件;步骤D,基于下一个虚拟控件的形状,在下一个虚拟控件的周围生成两个或两个以上添加控件,添加控件用于指示再下一个虚拟控件的添加位置;响应于添加操作,执行步骤A及步骤D,直至接收到目标确认指令,得到目标拼接形状,目标确认指令表征用户已完成对虚拟控件的添加。
请参阅图12,图12示出了本申请实施例提供的发光设备的控制装置900的模块框图。该发光设备的控制装置运行于发光设备,发光设备包括控制器以及至少一个发光模组,发光设备与终端设备通信连接,装置包括:
接收模块910,用于接收由终端设备发送的控制信息;
控制模块920,用于根据控制信息对发光模组进行发光控制。
在一些实施例中,控制模块920可以包括:
生成单元,用于控制器根据控制信息,基于设置参数和排序值生成控制指令;
第一发送单元,用于控制器将控制指令下发至目标发光模组;
第一解析单元,用于目标发光模组解析并执行控制指令。
在一些实施例中,控制信息为由终端设备生成、并由发光模组直接解析并执行的控制指令;控制模块920还可以包括:
第二发送单元,用于控制器将控制指令下发至目标发光模组;
第二解析单元,用于目标发光模组解析并执行控制指令。
在一些实施例中,控制指令包括多个控制字段,多个控制字段与依据目标拼接形状拼接的多个发光模组一一对应;每个控制字段包括供发光模组解析的控制参数,控制参数基于选定的虚拟控件的设置参数和排序值而确定;生成单元,可以具体用于根据虚拟控件在目标拼接形状中的数量N,确定控制字段的数量为N,其中,N个控制字段依次排序;基于设置参数和排序值,为每个控制字段配置控制参数,以生成控制指令,其中,配置有控制参数的控制字段的排序次序与排序值相同。
在一些实施例中,第一发送单元或第二发送单元可以具体用于控制器将控制指令下发至第一发光模组,第一发光模组为依次排序的多个发光模组中的第一个发光模组;
第一发光模组在接收到的控制指令的N个控制字段中截取第一个控制字段,并将截取后的(N-1)个控制字段发送至第二发光模组,第二发光模组为依次排序的多个发光模组中、与第一发光模组邻接的下一个发光模组;
第二发光模组在接收到的控制指令的(N-1)个控制字段中截取第一个控制字段,并将截取后的(N-3)个控制字段发送至与第二发光模组邻接的第三发光模组;
……
第(N-1)发光模组在接收到的控制指令的两个控制字段中截取第一个控制字段,并将截取后的控制字段发送至与第N发光模组;
第N发光模组接收第(N-1)发光模组发送的控制字段;
第一解析单元或第二解析单元可以包括:
执行子单元,用于接收到控制指令的发光模组解析所截取的控制字段中的控制参数并执行。
在一些实施例中,执行子单元可以具体用于接收到控制指令的发光模组解析所截取的控制字段,获取对应的控制参数;发光模组响应于持续预定时长的低电平输入信号,执行控制参数。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单 独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
本申请实施例还提供一种灯效控制系统,其中,灯效控制系统包括终端设备以及发光设备,发光设备包括控制器以及至少一个发光模组,终端设备与发光设备通信连接;
终端设备,用于获取并在控制界面中显示目标拼接形状,目标拼接形状包括多个可视化的虚拟控件,目标拼接形状用于指示用户将控制器和多个发光模组拼接成与目标拼接形状的外形一致的实体形状;
终端设备,用于响应于对目标拼接形状中选定的虚拟控件的设置操作,记录对虚拟控件的设置参数;
终端设备,用于确定选定的虚拟控件在目标拼接形状中的排序值,根据设置参数和排序值得到控制信息,并用于向控制器发送控制信息;
控制器,用于接收控制信息,并根据控制信息对目标发光模组进行发光控制,目标发光模组为实体形状中与排序值对应的发光模组。
如图13所示,本申请实施例还提供一种电子设备900,该电子设备900可以包括上述终端设备,也可以包括上述发光设备,该发光设备配置有控制器以及发光模组,还可以包括终端设备和发光设备的灯效控制系统。该电子设备900包括处理器910、存储器920,存储器920存储有计算机程序指令,计算机程序指令被处理器910调用时实执行上述的发光设备的控制方法。
处理器910可以包括一个或者多个处理核。处理器910利用各种接口和线路连接整个电池管理系统内的各种部分,通过运行或执行存储在存储器920内的指令、程序、代码集或指令集,以及调用存储在存储器920内的数据,执行电池管理系统的各种功能和处理数据。可选地,处理器910可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器910可集成中央处理器910(Central Processing Unit,CPU)、图像处理器910(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器910中,单独通过一块通信芯片进行实现。
存储器920可以包括随机存储器920(Random Access Memory,RAM),也可以包括只读存储器920(Read-Only Memory)。存储器920图可用于存储指令、程序、代码、代码集或指令集。存储器920图可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各种方法实施例的指令等。存储数据区还可以存储电子设备图在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
如图14所示,本申请实施例还提供一种计算机可读存储介质10,该计算机可读存储介质10中存储有计算机程序指令11,计算机程序指令11可被处理器调用以执行上述实施例中所描述的方法。
计算机可读存储介质可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质包括非易失性计算机可读存储介质(non-transitory computer-readable storage medium)。计算机可读存储介质10具有执行上述方法中的任何方法步骤的程序代码的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码可以例如以适当形式进行压缩。
以上,仅是本申请的较佳实施例而已,并非对本申请作任何形式上的限制,虽然本申请已以较佳实施例揭示如上,然而并非用以限定本申请,任何本领域技术人员,在不脱离本申请技术方案范围内,当可利用上述揭示的技术内容做出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本申请技术方案内容,依据本申请的技术实质对以上实施例所做的任何简介修改、等同变化与修饰,均仍属于本申请技术方案的范围内。
Claims (20)
- 一种发光设备的控制方法,其中,应用于配置有控制界面的终端设备,所述终端设备与发光设备通信连接,所述发光设备包括控制器以及多个发光模组,所述控制方法包括:获取并在所述控制界面中显示目标拼接形状,所述目标拼接形状包括多个可视化的虚拟控件,所述目标拼接形状用于指示用户将控制器和多个发光模组拼接成与所述目标拼接形状的外形一致的实体形状;响应于对所述目标拼接形状中选定的虚拟控件的设置操作,记录对所述虚拟控件的设置参数;确定所述选定的虚拟控件在所述目标拼接形状中的排序值;根据所述设置参数和所述排序值得到控制信息;向所述控制器发送所述控制信息,所述控制信息用于指示所述控制器对目标发光模组进行发光控制,所述目标发光模组为所述实体形状中与所述排序值对应的发光模组。
- 根据权利要求1所述的控制方法,其中,所述根据所述设置参数和所述排序值得到控制信息的步骤,包括:将所述设置参数和所述排序值打包生成所述控制信息;所述向所述控制器发送所述控制信息,所述控制信息用于指示所述控制器对目标发光模组进行发光控制,包括:向所述控制器发送所述控制信息,所述控制信息用于指示所述控制器根据所述设置参数和所述排序值生成控制指令,并将所述控制指令下发至所述目标发光模组,以对所述目标发光模组进行发光控制,其中,所述控制指令由所述目标发光模组解析并执行。
- 根据权利要求1所述的控制方法,其中,所述根据所述设置参数和所述排序值得到控制信息的步骤,包括:根据所述设置参数和所述排序值确定控制信息,所述控制信息包括所述排序值所对应的目标发光模组的设置参数;根据所述控制信息生成控制指令;所述向所述控制器发送所述控制信息,所述控制信息用于指示所述控制器对目标发光模组进行发光控制,包括:向所述控制器发送所述控制指令,所述控制指令用于指示所述控制器将所述控制指令转发至所述目标发光模组,以对所述目标发光模组进行发光控制,其中,所述控制指令由所述目标发光模组解析并执行。
- 根据权利要求1至3中任一项所述的控制方法,其中,所述虚拟控件的形状与所述发光模组的形状一致;所述发光模组为多边形结构,并包括设置于该多边形结构的至少一个边的边发光单元;所述响应于对所述目标拼接形状中选定的虚拟控件的设置操作,记录对所述虚拟控件的设置参数,包括:响应于对所述目标拼接形状中的虚拟控件的选定边的设置操作,记录对所述选定边的设置参数;所述确定所述选定的虚拟控件在所述目标拼接形状中的排序值,包括:确定所述选定边在所述目标拼接形状中的边排序值;所述根据所述设置参数和所述排序值得到控制信息,包括:根据对所述选定边的设置参数和所述边排序值得到控制信息;所述控制信息还用于指示所述控制器对目标边发光单元进行发光控制,所述目标边发光单元为所述实体形状中与所述边排序值对应的边发光单元。
- 根据权利要求1至4中任一项所述的控制方法,其中,所述确定所述选定的虚拟控件在所述目标拼接形状中的排序值,包括:确定所述虚拟控件在所述目标拼接形状中的拼接次序值;以所述拼接次序值作为所述选定的虚拟控件在所述目标拼接形状中的排序值。
- 根据权利要求2或3所述的控制方法,其中,所述控制指令包括多个控制字段,多个所述控制字段与所述实体形状中的多个所述发光模组一一对应;每个所述控制字段包括供所述发光模组解析的控制参数,所述控制参数基于所述 选定的虚拟控件的设置参数和排序值而确定;生成所述控制指令的步骤,包括:根据所述虚拟控件在所述目标拼接形状中的数量N,确定所述控制字段的数量为N,其中,N个所述控制字段依次排序;基于所述设置参数和所述排序值,为每个所述控制字段配置控制参数,以生成控制指令,其中,配置有控制参数的控制字段的排序次序与所述排序值相同。
- 根据权利要求1至6中任一项所述的控制方法,其中,所述获取并在所述控制界面中显示目标拼接形状,包括:响应于拼接设置操作,在控制界面上将所述发光模组对应的虚拟控件拼接成目标拼接形状。
- 根据权利要求7所述的控制方法,其中,所述响应于拼接设置操作,在控制界面上将所述发光模组对应的虚拟控件拼接成目标拼接形状,包括:步骤A,响应于拼接设置操作,在所述控制界面确定初始虚拟控件;步骤B,基于所述初始虚拟控件的形状,在所述初始虚拟控件的周围生成两个或两个以上添加控件,所述添加控件用于指示下一个虚拟控件的显示位置;步骤C,响应于添加操作,在两个或两个以上的所述添加控件中确定目标添加位置,在所述目标添加位置显示下一个虚拟控件;步骤D,基于所述下一个虚拟控件的形状,在所述下一个虚拟控件的周围生成两个或两个以上添加控件,所述添加控件用于指示再下一个虚拟控件的添加位置;响应于添加操作,执行步骤A及步骤D,直至接收到目标确认指令,得到目标拼接形状,所述目标确认指令表征用户已完成对虚拟控件的添加。
- 一种发光设备的控制方法,其中,应用于发光设备,所述发光设备包括控制器以及多个发光模组,所述发光设备与终端设备通信连接;多个所述发光模组依据目标拼接形状拼接,所述目标拼接形状由所述终端设备的控制界面所显示的虚拟控件的拼接形状确定;所述方法包括:所述控制器接收由所述终端设备发送的控制信息,其中,所述控制信息由所述终端设备基于所接收的、对选定的虚拟控件的设置操作而生成,所述控制信息包括所述选定的虚拟控件的设置参数和所述选定的虚拟控件在所述目标拼接形状中的排序值;所述控制器根据所述控制信息对目标发光模组进行发光控制,所述目标发光模组为所述实体形状中与所述排序值对应的发光模组。
- 根据权利要求9所述的控制方法,其中,所述控制器根据所述控制信息对所述发光模组进行发光控制,包括:所述控制器根据所述控制信息,基于所述设置参数和所述排序值生成控制指令;所述控制器将所述控制指令下发至目标发光模组;所述目标发光模组解析并执行所述控制指令。
- 根据权利要求9所述的控制方法,其中,所述控制信息为由所述终端设备生成、并由所述发光模组直接解析并执行的控制指令;所述控制器根据所述控制信息对所述发光模组进行发光控制,包括:所述控制器将所述控制指令下发至目标发光模组;所述目标发光模组解析并执行所述控制指令。
- 根据权利要求10或11所述的控制方法,其中,所述控制指令包括多个控制字段,多个所述控制字段与依据所述目标拼接形状拼接的多个所述发光模组一一对应;每个所述控制字段包括供所述发光模组解析的控制参数,所述控制参数基于所述选定的虚拟控件的设置参数和排序值而确定;生成所述控制指令的步骤,包括:根据所述虚拟控件在所述目标拼接形状中的数量N,确定所述控制字段的数量为N,其中,N个所述控制字段依次排序;基于所述设置参数和所述排序值,为每个所述控制字段配置控制参数,以生成控制指令,其中,配置有控制参数的控制字段的排序次序与所述排序值相同。
- 根据权利要求10至12中任一项所述的控制方法,其中,多个所述发光模组依次排序拼接成与所述目标拼接形状相同的实体形状;所述控制器将所述控制指令下发至目标发光模组,包括:所述控制器将所述控制指令下发至第一发光模组,所述第一发光模组为依次排序的多个所述发光模组中的第一个发光模组;所述第一发光模组在接收到的控制指令的N个所述控制字段中截取第一个控制字段,并将截取后的(N-1)个控制字段发送至第二发光模组,所述第二发光模组为依次排序的多个所述发光模组中、与所述第一发光模组邻接的下一个发光模组;所述第二发光模组在接收到的控制指令的(N-1)个所述控制字段中截取第一个控制字段,并将截取后的(N-3)个控制字段发送至与所述第二发光模组邻接的第三发光模组;……所述第(N-1)发光模组在接收到的控制指令的两个所述控制字段中截取第一个控制字段,并将截取后的控制字段发送至与第N发光模组;第N发光模组接收所述第(N-1)发光模组发送的控制字段;所述目标发光模组解析并执行所述控制指令,包括:接收到控制指令的发光模组解析所截取的控制字段中的控制参数并执行。
- 根据权利要求13所述的控制方法,其中,所述接收到控制指令的发光模组解析所截取的控制字段中的控制参数并执行,包括:接收到控制指令的发光模组解析所截取的控制字段,获取对应的控制参数;所述发光模组响应于持续预定时长的低电平输入信号,执行所述控制参数。
- 一种发光设备的控制方法,其中,应用于灯效控制系统,所述灯效控制系统包括终端设备以及发光设备,所述发光设备包括控制器以及多个发光模组,所述终端设备与所述发光设备通信连接,所述方法包括:所述终端设备获取并在所述控制界面中显示目标拼接形状,所述目标拼接形状包括多个可视化的虚拟控件,所述目标拼接形状用于指示用户将控制器和多个发光模组拼接成与所述目标拼接形状的外形一致的实体形状;所述终端设备响应于对所述目标拼接形状中选定的虚拟控件的设置操作,记录对所述虚拟控件的设置参数;所述终端设备确定所述选定的虚拟控件在所述目标拼接形状中的排序值,并根据所述设置参数和所述排序值得到控制信息;所述终端设备向所述控制器发送所述控制信息;所述控制器接收所述控制信息,并根据所述控制信息对目标发光模组进行发光控制,所述目标发光模组为所述实体形状中与所述排序值对应的发光模组。
- 一种发光设备的控制装置,其中,运行于配置有控制界面的终端设备,所述终端设备与发光设备通信连接,所述发光设备包括控制器以及多个发光模组,所述控制装置包括:形状获取模块,用于获取并在所述控制界面中显示目标拼接形状,所述目标拼接形状包括多个可视化的虚拟控件,所述目标拼接形状用于指示用户将控制器和多个发光模组拼接成与所述目标拼接形状的外形一致的实体形状;参数记录模块,用于响应于对所述目标拼接形状中选定的虚拟控件的设置操作,记录对所述虚拟控件的设置参数;排序确定模块,用于确定所述选定的虚拟控件在所述目标拼接形状中的排序值;控制指令模块,用于根据所述设置参数和所述排序值得到控制信息;指令发送模块,用于向所述控制器发送所述控制信息,所述控制信息用于指示所述控制器对目标发光模组进行发光控制,所述目标发光模组为所述实体形状中与所述排序值对应的发光模组。
- 一种发光设备的控制装置,其中,运行于发光设备,所述发光设备包括控制器以及至少一个发光模组,所述发光设备与终端设备通信连接,所述装置包括:接收模块,用于接收由所述终端设备发送的控制信息;控制模块,用于根据所述控制信息对所述发光模组进行发光控制。
- 一种灯效控制系统,其中,所述灯效控制系统包括终端设备以及发光设备,所述发光设备包括控制器以及至少一个发光模组,所述终端设备与发光设备通信连接;所述终端设备,用于获取并在所述控制界面中显示目标拼接形状,所述目标拼接形状包括多个可视化的虚拟控件,所述目标拼接形状用于指示用户将控制器和多个发光模组拼接成与所述目标拼接形状的外形一致的实体形状;所述终端设备,用于响应于对所述目标拼接形状中选定的虚拟控件的设置操作,记录对所述虚拟控件的设置参数;所述终端设备,用于确定所述选定的虚拟控件在所述目标拼接形状中的排序值,根据所述设置参数和所述排序值得到控制信息,并用于向所述控制器发送所述控制信息;所述控制器,用于接收所述控制信息,并根据所述控制信息对目标发光模组进行发光控制,所述目标发光模组为所述实体形状中与所述排序值对应的发光模组。
- 一种电子设备,其中,包括:存储器;一个或多个处理器,与所述存储器耦接;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行如权利要求1~15任一项所述的方法。
- 一种计算机可读存储介质,其中,所述计算机可读存储介质中存储有程序代码,所述程序代码可被处理器调用以执行如权利要求1~15任一项所述的方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/559,192 US12526903B2 (en) | 2021-08-11 | 2021-08-24 | Light-emitting device control method, apparatus, electronic device, and storage medium |
| EP21953218.1A EP4386534A4 (en) | 2021-08-11 | 2021-08-24 | CONTROL METHOD AND APPARATUS FOR LIGHT-EMITTING DEVICE, ELECTRONIC DEVICE, AND STORAGE MEDIUM |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110921099.9 | 2021-08-11 | ||
| CN202110921099.9A CN115904196A (zh) | 2021-08-11 | 2021-08-11 | 发光设备的控制方法、装置、电子设备及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023015607A1 true WO2023015607A1 (zh) | 2023-02-16 |
Family
ID=85199665
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/114182 Ceased WO2023015607A1 (zh) | 2021-08-11 | 2021-08-24 | 发光设备的控制方法、装置、电子设备及存储介质 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US12526903B2 (zh) |
| EP (1) | EP4386534A4 (zh) |
| CN (1) | CN115904196A (zh) |
| WO (1) | WO2023015607A1 (zh) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116663089A (zh) * | 2023-07-24 | 2023-08-29 | 深圳市千岩科技有限公司 | 灯具安装配置方法、装置、设备及介质 |
| CN116723619A (zh) * | 2023-08-11 | 2023-09-08 | 深圳爱图仕创新科技股份有限公司 | 拼接灯组控制方法、装置、计算机设备及可读存储介质 |
| CN117156645A (zh) * | 2023-10-27 | 2023-12-01 | 深圳市千岩科技有限公司 | 拼接灯具及其控制器和灯效播放方法、装置 |
| CN117615490A (zh) * | 2023-11-10 | 2024-02-27 | 深圳市卡能光电科技有限公司 | 主控氛围灯与从控氛围灯的控制参数调节方法及系统 |
| US12457674B2 (en) * | 2023-06-09 | 2025-10-28 | Xiamen Pvtech Co., Ltd. | Lighting parameter touch control panel |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116761302B (zh) * | 2023-06-02 | 2026-03-24 | 深圳市千岩科技有限公司 | 场景式灯效配置方法及装置、设备、介质 |
| CN116782475A (zh) * | 2023-06-02 | 2023-09-19 | 深圳市千岩科技有限公司 | 组合式灯效配置方法及装置、设备、介质 |
| CN116383915B (zh) * | 2023-06-02 | 2023-08-11 | 深圳市千岩科技有限公司 | 拼接灯具灯效控制方法及装置、设备、介质 |
| CN119270926A (zh) * | 2023-06-30 | 2025-01-07 | 深圳市闪至科技有限公司 | 可移动平台集群的控制方法、装置及系统 |
| CN117425254B (zh) * | 2023-12-18 | 2024-02-27 | 深圳市千岩科技有限公司 | 拼接灯具、控制器、灯块及检测执行、驱动方法与装置 |
| CN117794021B (zh) * | 2024-02-26 | 2024-05-07 | 深圳市智岩科技有限公司 | 氛围灯设备及灯效投影播放方法、装置、介质和产品 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20160088708A1 (en) * | 2014-09-18 | 2016-03-24 | Osram Sylvania Inc. | Wireless control of lighting systems |
| CN111381794A (zh) * | 2018-12-28 | 2020-07-07 | 深圳市优必选科技有限公司 | 机器人眼灯的控制方法、装置、终端设备及介质 |
| CN112669828A (zh) * | 2021-01-06 | 2021-04-16 | 深圳市芯中芯科技有限公司 | 一种灯带控制方法、系统、智能终端及存储介质 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7358929B2 (en) * | 2001-09-17 | 2008-04-15 | Philips Solid-State Lighting Solutions, Inc. | Tile lighting methods and systems |
| US10440794B2 (en) * | 2016-11-02 | 2019-10-08 | LIFI Labs, Inc. | Lighting system and method |
| US11543586B2 (en) * | 2017-09-12 | 2023-01-03 | Nanoleaf Energy Technology Shenzhen Limited | Systems and methods for providing coupled lighting panels |
| CN110602854B (zh) * | 2019-09-09 | 2021-04-02 | 杭州行至云起科技有限公司 | 一种智能灯光系统的拓扑结构识别系统及方法 |
-
2021
- 2021-08-11 CN CN202110921099.9A patent/CN115904196A/zh active Pending
- 2021-08-24 WO PCT/CN2021/114182 patent/WO2023015607A1/zh not_active Ceased
- 2021-08-24 US US18/559,192 patent/US12526903B2/en active Active
- 2021-08-24 EP EP21953218.1A patent/EP4386534A4/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20160088708A1 (en) * | 2014-09-18 | 2016-03-24 | Osram Sylvania Inc. | Wireless control of lighting systems |
| CN111381794A (zh) * | 2018-12-28 | 2020-07-07 | 深圳市优必选科技有限公司 | 机器人眼灯的控制方法、装置、终端设备及介质 |
| CN112669828A (zh) * | 2021-01-06 | 2021-04-16 | 深圳市芯中芯科技有限公司 | 一种灯带控制方法、系统、智能终端及存储介质 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4386534A4 * |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US12457674B2 (en) * | 2023-06-09 | 2025-10-28 | Xiamen Pvtech Co., Ltd. | Lighting parameter touch control panel |
| CN116663089A (zh) * | 2023-07-24 | 2023-08-29 | 深圳市千岩科技有限公司 | 灯具安装配置方法、装置、设备及介质 |
| CN116663089B (zh) * | 2023-07-24 | 2023-12-12 | 深圳市千岩科技有限公司 | 灯具安装配置方法、装置、设备及介质 |
| CN116723619A (zh) * | 2023-08-11 | 2023-09-08 | 深圳爱图仕创新科技股份有限公司 | 拼接灯组控制方法、装置、计算机设备及可读存储介质 |
| CN116723619B (zh) * | 2023-08-11 | 2023-11-14 | 深圳爱图仕创新科技股份有限公司 | 拼接灯组控制方法、装置、计算机设备及可读存储介质 |
| CN117156645A (zh) * | 2023-10-27 | 2023-12-01 | 深圳市千岩科技有限公司 | 拼接灯具及其控制器和灯效播放方法、装置 |
| CN117156645B (zh) * | 2023-10-27 | 2024-01-30 | 深圳市千岩科技有限公司 | 拼接灯具及其控制器和灯效播放方法、装置 |
| CN117615490A (zh) * | 2023-11-10 | 2024-02-27 | 深圳市卡能光电科技有限公司 | 主控氛围灯与从控氛围灯的控制参数调节方法及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| US20240268012A1 (en) | 2024-08-08 |
| US12526903B2 (en) | 2026-01-13 |
| EP4386534A4 (en) | 2025-08-20 |
| CN115904196A (zh) | 2023-04-04 |
| EP4386534A1 (en) | 2024-06-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2023015607A1 (zh) | 发光设备的控制方法、装置、电子设备及存储介质 | |
| CN113677071B (zh) | 灯具控制方法、装置、电子设备及存储介质 | |
| CN117082683B (zh) | 拼接灯具灯效应用、播放方法及装置、设备和介质 | |
| CN105741775A (zh) | 调整伽马曲线的方法及装置 | |
| CN117412449B (zh) | 氛围灯设备及其灯效播放控制方法和相应的装置、介质 | |
| WO2022021796A1 (zh) | 一种灯光设备动态控制方法、系统及相关设备 | |
| US20190349264A1 (en) | Dynamic Design of a Lighting Configuration | |
| CN117425255B (zh) | 室内照明灯具及灯具灯效配置方法、装置以及设备 | |
| CN117082684B (zh) | 拼接灯具灯效配置、播放方法及装置、设备和介质 | |
| CN113141690A (zh) | 单点可控的发光装置及系统 | |
| CN117521179A (zh) | 氛围灯设备及发光分区布局构造方法、装置和计算机设备 | |
| CN104766549B (zh) | 可拓展显示屏幕光效的移动设备及方法 | |
| CN112040601A (zh) | 灯具点阵控制装置及方法、led舞台灯具 | |
| US12477644B2 (en) | Segmentation method, device, lamp, and computer-readable storage medium | |
| WO2022117027A1 (zh) | 智能家居控制面板子设备配置方法、计算机装置及计算机可读存储介质 | |
| CN117156645B (zh) | 拼接灯具及其控制器和灯效播放方法、装置 | |
| CN206948691U (zh) | 动态灯光控制成组装置 | |
| CN116685029A (zh) | 拼接灯具及其控制器和配置方法、装置 | |
| US12336076B2 (en) | Controlling a lighting device associated with a light segment of an array | |
| CN115529702A (zh) | 调光控制方法、设备、装置、介质及产品 | |
| CN114816197A (zh) | 智能家居设备的控制方法、装置、存储介质及终端设备 | |
| CN117560828B (zh) | 氛围灯设备及多灯效混播控制方法和相应的装置、介质 | |
| CN116866675A (zh) | 移动led显示屏的节目处理方法、系统和装置 | |
| CN121568278B (zh) | 灯效参数生成方法、服务器及存储介质 | |
| CN115551153A (zh) | 发光模组的配置方法、装置、电子设备及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21953218 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| ENP | Entry into the national phase |
Ref document number: 2021953218 Country of ref document: EP Effective date: 20240311 |