Light emitting device control method, apparatus, electronic device, and storage medium
Patent Information
- Application Number
- CN202110921099.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-11
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2041-08-11
AI Technical Summary
终端设备,如遥控器等设备,与拼接灯通信连接,并可根据用户的灯效需求来直接控制发光设备,这样的控制过程不直观、交互体验不佳
[0013]本申请提供的发光设备的控制方法,终端设备可以获取并在控制界面中显示目标拼接形状,进而终端设备可以响应于对目标拼接形状中选定的虚拟控件的设置操作,记录对虚拟控件的设置参数,并确定虚拟控件在目标拼接形状中的排序值,接着终端设备可以根据设置参数和排序值得到控制信息,并向控制器发送控制信息。进一步地,控制器可以接收由终端设备发送的控制信息,并且根据控制信息对目标发光模组进行发光控制。由此,可以在终端设备的控制界面上直观地示出发光设备的控制过程,能够提高用户的控制体验。进一步地,终端设备可以根据虚拟控件在目标拼接形状中的排序值以及设置参数生成对应的控制信息,并发送至发光设备的控制器,该控制器可以根据控制信息对目标发光模组进行发光控制,从而避免了各发光模组都需与终端设备建立通信连接的操作,提高控制效率,同时可以减少发光模组对微控制单元的使用,降低生产成本。
Smart Images

Figure CN115904196B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of lighting control technology, and more specifically, to a control method, device, electronic equipment, lighting effect control system, and storage medium for a light-emitting device. Background Technology
[0002] In addition to meeting daily household lighting needs, smart lighting can also create different lighting atmospheres suitable for various living scenarios using different types of smart lights. Among them, modular lights, as a type of intelligent lighting device, can be used like... Figure 1 By splicing together multiple smart light blocks, various patterns and shapes can be formed, bringing users a brand-new lighting experience.
[0003] Existing modular lighting systems primarily control lighting effects through terminal devices. These devices, such as remote controls, communicate with the modular lights and can directly control the light-emitting components according to the user's lighting needs. However, this control process is not intuitive and offers a poor user experience. Summary of the Invention
[0004] This application provides a control method, apparatus, electronic device, lighting effect control system, and storage medium for a light-emitting device.
[0005] In a first aspect, some embodiments of this application provide a control method for a light-emitting device, applied to a terminal device configured with a control interface. The terminal device is communicatively connected to the light-emitting device, which includes a controller and multiple light-emitting modules. The control method includes: acquiring and displaying a target splicing shape in the control interface, the target splicing shape including multiple visual virtual controls, the target splicing shape being used to instruct the user to splice the controller and multiple light-emitting modules into a solid shape consistent with the shape of the target splicing shape; recording setting parameters for the virtual controls in response to setting operations on selected virtual controls in the target splicing shape; determining the sorting value of the selected virtual controls in the target splicing shape; obtaining control information based on the setting parameters and the sorting value; and sending control information to the controller, the control information being used to instruct the controller to perform light-emitting control on the target light-emitting modules, the target light-emitting modules being the light-emitting modules in the solid shape corresponding to the sorting value.
[0006] Secondly, some embodiments of this application also provide a control method for a light-emitting device, applied to a light-emitting device, the light-emitting device including a controller and multiple light-emitting modules, the light-emitting device being communicatively connected to a terminal device; the multiple light-emitting modules are spliced according to a target splicing shape, the target splicing shape being determined by the splicing shape of virtual controls displayed on the control interface of the terminal device; the method includes: the controller receiving control information sent by the terminal device, wherein the control information is generated by the terminal device based on the received setting operation of a selected virtual control, the control information including the setting parameters of the selected virtual control and the sorting value of the selected virtual control in the target splicing shape; the controller performing light-emitting control on the target light-emitting module according to the control information, the target light-emitting module being the light-emitting module in the physical shape corresponding to the sorting value.
[0007] Thirdly, some embodiments of this application also provide a control method for a light-emitting device, applied to a lighting effect control system. The lighting effect control system includes a terminal device and a light-emitting device. The light-emitting device includes a controller and multiple light-emitting modules. The terminal device is communicatively connected to the light-emitting device. The method includes: the terminal device acquiring and displaying a target splicing shape in a control interface. The target splicing shape includes multiple visual virtual controls. The target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into a solid shape consistent with the shape of the target splicing shape. The terminal device responds to a setting operation on a selected virtual control in the target splicing shape and records the setting parameters of the virtual control. The terminal device determines the sorting value of the selected virtual control in the target splicing shape and obtains control information based on the setting parameters and the sorting value. The terminal device sends the control information to the controller. The controller receives the control information and performs light-emitting control on the target light-emitting module according to the control information. The target light-emitting module is the light-emitting module in the solid shape corresponding to the sorting value.
[0008] Fourthly, some embodiments of this application also provide a control device for a light-emitting device, which operates on a terminal device configured with a control interface. The terminal device is communicatively connected to the light-emitting device, which includes a controller and multiple light-emitting modules. The control device includes: a shape acquisition module for acquiring and displaying a target splicing shape in the control interface. The target splicing shape includes multiple visual virtual controls. The target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into a solid shape that matches the shape of the target splicing shape; a parameter recording module for recording the setting parameters of the virtual controls in response to setting operations on the selected virtual controls in the target splicing shape; a sorting determination module for determining the sorting value of the selected virtual controls in the target splicing shape; a control instruction module for obtaining control information based on the setting parameters and the sorting value; and an instruction sending module for sending control information to the controller. The control information is used to instruct the controller to perform light-emitting control on the target light-emitting modules, where the target light-emitting modules are the light-emitting modules in the solid shape that correspond to the sorting value.
[0009] Fifthly, some embodiments of this application also provide a control device for a light-emitting device, which operates on the light-emitting device. The light-emitting device includes a controller and at least one light-emitting module. The light-emitting device is communicatively connected to a terminal device. The device includes: a receiving module for receiving control information sent by the terminal device; and a control module for controlling the light-emitting module to emit light according to the control information.
[0010] Sixthly, some embodiments of this application also provide a lighting effect control system, which includes a terminal device and a light-emitting device. The light-emitting device includes a controller and at least one light-emitting module. The terminal device is communicatively connected to the light-emitting device. The terminal device is used to acquire and display a target splicing shape in a control interface. The target splicing shape includes multiple visual virtual controls. The target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into a solid shape that matches the shape of the target splicing shape. The terminal device is used to record the setting parameters of the virtual controls in response to the setting operation of the selected virtual controls in the target splicing shape. The terminal device is used to determine the sorting value of the selected virtual controls in the target splicing shape, obtain control information according to the setting parameters and the 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 in the solid shape that corresponds to the sorting value.
[0011] In a seventh aspect, some embodiments of this application also provide an electronic device, including a memory storing computer program instructions, which, when invoked by a processor, execute the control method of the light-emitting device described above.
[0012] Eighthly, embodiments of this application also provide a computer-readable storage medium storing program code, wherein the control method of the light-emitting device described above is executed when the program code is run by a processor.
[0013] The control method for the light-emitting device provided in this application allows the terminal device to acquire and display a target splicing shape on a control interface. The terminal device can then respond to setting operations on selected virtual controls within the target splicing shape, record the setting parameters of the virtual controls, and determine the sorting value of the virtual controls within the target splicing shape. Next, the terminal device can obtain control information based on the setting parameters and the sorting value, and send the control information to the controller. Furthermore, the controller can receive the control information sent by the terminal device and control the light emission of the target light-emitting module according to the control information. Thus, the control process of the light-emitting device can be intuitively displayed on the control interface of the terminal device, improving the user's control experience. Furthermore, the terminal device can generate corresponding control information based on the sorting value of the virtual controls in the target splicing shape and the setting parameters, and send it to the controller of the light-emitting device. The controller can then control the light emission of the target light-emitting module according to the control information, thereby avoiding the need for each light-emitting module to establish a communication connection with the terminal device, improving control efficiency, and reducing the use of microcontroller units in the light-emitting modules, thus lowering production costs. Attached Figure Description
[0014] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 A schematic diagram of the hardware environment of a light-emitting device provided in an embodiment of this application is shown.
[0016] Figure 2 A schematic diagram of the hardware environment of a light-emitting module provided in an embodiment of this application is shown.
[0017] Figure 3 A schematic diagram of the circuit structure of a light-emitting module provided in an embodiment of this application is shown.
[0018] Figure 4 The illustration shows an application scenario diagram of a control method for a light-emitting device provided in an embodiment of this application.
[0019] Figure 5 A flowchart illustrating a control method for a light-emitting device provided in an embodiment of this application is shown.
[0020] Figure 6 A flowchart illustrating another control method for a light-emitting device provided in an embodiment of this application is shown.
[0021] Figure 7This illustration shows a schematic diagram of determining the initial virtual control in a control method for a light-emitting device provided in an embodiment of this application.
[0022] Figure 8 This illustration shows a schematic diagram of determining the initial virtual control in another control method for a light-emitting device provided in an embodiment of this application.
[0023] Figure 9 A flowchart illustrating another control method for a light-emitting device provided in an embodiment of this application is shown.
[0024] Figure 10 A schematic diagram of the physical connection of a light-emitting unit provided in an embodiment of this application is shown.
[0025] Figure 11 A block diagram of a control device for a light-emitting device provided in an embodiment of this application is shown.
[0026] Figure 12 A block diagram of a control device for another light-emitting device provided in an embodiment of this application is shown.
[0027] Figure 13 This is a module block diagram of an electronic device provided in an embodiment of this application.
[0028] Figure 14 This is a block diagram of a computer-readable storage medium provided in an embodiment of this application. Detailed Implementation
[0029] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0030] To enable those skilled in the art to better understand the solutions of this application, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0031] Most modular lighting products on the market today rely on master-slave communication to control the modular light blocks. This means each light block establishes a communication connection with a master control device that controls the lighting effects. Specifically, the master control device needs to use master-slave communication to determine the connection relationship with each light block. For example, each light block is assigned a serial number, and then the connection relationship and serial number are sent to the master control device. The master control device can then use the modular information to control any one or more light blocks to display a specified color or adjust their brightness.
[0032] Therefore, each lamp block must be equipped with an independent control unit, meaning each lamp block needs its own microcontroller unit (MCU). This allows each lamp block to respond to the addressing and control commands of the main control device. Ultimately, the addressing command determines the sequence number of each lamp block, and the electrical connections between the lamp blocks determine a series of lighting effects. However, this lighting effect control method is prone to errors in identifying the lamp block sequence number and connection relationship, leading to discrepancies between the actual lamp assembly pattern and the pattern displayed by the main control device. Furthermore, the requirement for an independent MCU for each lamp block increases the production cost of the lamp blocks.
[0033] To address the aforementioned issues, the inventors, through extensive research, have reconstructed the lighting effect control method on the terminal device based on hardware improvements to the light-emitting device. The control method for the light-emitting device provided in this application allows the terminal device to acquire and display a target splicing shape on the control interface. Furthermore, the terminal device can respond to setting operations on selected virtual controls within the target splicing shape, record the setting parameters of the virtual controls, and determine the sorting value of the virtual controls within the target splicing shape. Subsequently, the terminal device can obtain control information based on the setting parameters and the sorting value, and send the control information to the controller.
[0034] Furthermore, the controller can receive control information sent by the terminal device and control the light emission of the target light-emitting module according to the control information. Thus, the terminal device can generate corresponding control information based on the sorting value of the virtual controls in the target splicing shape and send it to the controller of the light-emitting device. The controller can then control the light emission of the target light-emitting module according to the control information. This eliminates the need for each light-emitting module to establish a communication connection with the terminal device, reducing the use of microcontroller units in the light-emitting modules and lowering production costs.
[0035] The hardware environment of the control method for the light-emitting device involved in this application will be introduced below.
[0036] like Figure 1 As shown, in some embodiments, the control method for the light-emitting device provided in this application can be applied to... Figure 1The lighting effect control system 100 shown includes a terminal device 110 and a light-emitting device 120. The terminal device 110 can be an electronic device with communication and control capabilities, such as a mobile phone, tablet computer, or PC. The terminal device 110 is equipped with a control interface 111. The light-emitting device 120 includes a controller 121 and light-emitting modules 122. The terminal device 110 can connect to the light-emitting device 120 via a network, which can be a wireless network such as Wi-Fi, Bluetooth, or ZigBee that enables communication between the terminal device and the light-emitting device; no specific network is specified here. In this embodiment, the light-emitting device 120 may include multiple light-emitting modules 122. These multiple light-emitting modules 122 can be electrically connected to the controller 121 (including but not limited to direct or indirect connections), and there can also be electrical connections between the multiple light-emitting modules 122. They can emit light according to specified lighting effect parameters under the control of the controller 121.
[0037] Optionally, the light-emitting module 122 can have a polygonal structure. Multiple light-emitting modules 122 in the light-emitting device 120 can be polygonal structures of different shapes. For example, some light-emitting modules 122 may have a triangular structure, some may have a pentagonal structure, and others may have a hexagonal structure, etc. Each light-emitting module 122 may include multiple light strips, that is, it may include edge-emitting units disposed on at least one side of the polygonal structure. Each edge-emitting unit is an independent integrated circuit chip (IC). This control IC can be used to receive and transmit control information and / or control commands, and to control the lighting effect of the edge-emitting unit according to the control information and / or control commands. In this embodiment, the edge-emitting unit does not have an internal MCU; instead, a single-line 256-level grayscale three-channel constant current LED driver IC chip is used to control the light color of the light-emitting unit. Compared to the price of an MCU, the IC chip can significantly reduce production costs. This IC chip can include commonly used chips such as WS2811, WS2815, and GS1903. Since the IC chips of multiple light-emitting units are cascaded through a serial interface and use a single data line to complete the reception, decoding, shaping and forwarding of data signals, the communication process does not require the participation of the control unit. Therefore, the control method of the light-emitting device proposed in this application can avoid the identification errors that are easy to occur in the master-slave communication method, thereby effectively improving the control efficiency of the light-emitting device.
[0038] As one implementation method, such as Figure 2As shown, the light-emitting device 120 includes a controller 121, a first light-emitting module 124, a second light-emitting module 126, and a third light-emitting module 128. It should be noted that 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. Optionally, 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, which are connected in series on the inner side of the light-emitting module. For example, the second light-emitting module 126 includes a first light-emitting unit 101, a second light-emitting unit 102, a third light-emitting unit 103, a fourth light-emitting unit 104, a fifth light-emitting unit 105, and a sixth light-emitting unit 106 connected in sequence. It is understood that in other embodiments, the number of edge light-emitting units included in each polygonal light-emitting module does not necessarily have to be the same as the number of its edges. For example, a hexagonal light-emitting module may include three, four, or five edge light-emitting units, or it may include seven, eight, or more edge light-emitting units. The specific number and placement of the edge light-emitting units can be set according to actual needs, and this application does not impose any restrictions on this.
[0039] Optionally, in this embodiment of the application, multiple light-emitting modules 122 in the light-emitting device 120 can be electrically connected through a hardware interface, so that control commands and / or control information can be transmitted between the multiple light-emitting modules 122 through the hardware interface. Specifically, each light-emitting module 122 may include an input port and an output port. The input port can be used to connect to a controller to receive control commands sent by the controller, or it can be used to connect to the output port of a previous-level light-emitting module to receive control commands transmitted by that previous-level light-emitting module. The output port can be used to connect to the input port of a next-level light-emitting module to transmit control commands to the next-level light-emitting module. In this case, the previous-level light-emitting module, the light-emitting module 122, and the next-level light-emitting module can be regarded as a cascaded series connection. Alternatively, a light-emitting module 122 may include an input port and multiple output ports. In this case, the light-emitting module 122 can be connected to a controller or a previous-level light-emitting module through the input port to receive control commands, and can be connected to multiple next-level light-emitting modules through multiple output ports to transmit control commands. In this case, the light-emitting module 122 and the multiple next-level light-emitting modules can be regarded as a cascaded series connection.
[0040] In some specific examples, such as Figure 3As shown, the light-emitting device 120 is composed of a controller 121 and multiple light-emitting modules (the example in the figure shows three light-emitting modules: the first light-emitting module 124, the second light-emitting module 126, and the third light-emitting module 128; in practice, the number of light-emitting modules can be set by the user). The solid arrows in the figure indicate the series connection direction between the multiple light-emitting units and the direction of control command transmission. Each light-emitting module also includes a splitter 123, which includes one input port and five output ports. The input port is used to input control commands, and the output ports are used to output control commands. For example, the dashed arrows indicate the output terminals of the five output ports. It should be noted that each light-emitting module sets 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 has one input port, and the rest are output ports. Each light-emitting module includes multiple side-emitting units (only a portion is shown in the figure; for example, the third light-emitting module 128 includes six side-emitting units L), and each side-emitting unit contains several LEDs and a control IC. The multiple edge-emitting units within a light-emitting module are connected in series. Inside the light-emitting device 120, the edge-emitting units of the first light-emitting module 124, the second light-emitting module 126, and the third light-emitting module 128 are also arranged according to the three light-emitting modules. Figure 3 The splicing structures shown are also connected in series.
[0041] In some embodiments, please refer to Figure 4 , Figure 4 This illustration shows an application scenario of the control method involved in this application. In this scenario, the terminal device 210 can be a mobile phone, and the light-emitting device 220 is composed of four light-emitting modules spliced together in a certain shape. As one implementation method, the user can open the control interface for controlling the light-emitting device 220 on the terminal device 210, such as the interface 211 of a designated application software APP, and establish a connection with the light-emitting device 220 through the APP. The user can then control the light-emitting device 220 to achieve different lighting effects through the APP's control interface 211. For example, the control interface 211 can display various different splicing shapes of the light-emitting device 220 for the user to select a target splicing shape, or the user can design the target splicing shape of the light-emitting device 220 themselves. Furthermore, the user can set the display effect of the target splicing shape through the control interface. For example, after the user confirms the lighting effect settings, the terminal device 210 can generate a control command and send the control command to the controller 221 of the light-emitting device 220, thereby enabling the controller 221 to control the lighting effects of each light-emitting module 210.
[0042] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0043] Please see Figure 5 , Figure 5This application illustrates a control method for a light-emitting device provided in an embodiment of the present application. The method is applied to a lighting effect control system, which includes a terminal device and a light-emitting device. The light-emitting device includes a controller and multiple light-emitting modules. The terminal device is communicatively connected to the light-emitting device. The control method for the light-emitting device may include the following steps S310 to S350.
[0044] Step S310: The terminal device acquires and displays the target splicing shape in the control interface. The target splicing shape includes multiple visual virtual controls. The target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into a solid shape that matches the shape of the target splicing shape.
[0045] The target splicing shape refers to the virtual shape that the user determines on the control interface of the terminal device according to different usage scenarios, which is consistent with the shape of the light-emitting device. The target splicing shape may include multiple visual virtual controls, which may correspond to multiple light-emitting modules in the light-emitting device, or to the edge light-emitting unit on any side of the light-emitting module.
[0046] like Figure 4 As shown, the virtual shape of the light-emitting device 220 on the control interface 210 is the target splicing shape 212, and the virtual control 213 corresponds to the light-emitting module 223 on the light-emitting device 220. In some embodiments, the terminal device can determine the target splicing shape based on the physical shape of the light-emitting device, or it can specify the target splicing shape from the splicing shape library, and then display the target splicing shape through the control interface. The target splicing shape can also be a custom splicing shape created by the user in the splicing shape creation interface by adding controls.
[0047] As one implementation method, the terminal device can obtain the target splicing shape based on the splicing settings operated by the user on the control interface. For example, after the user splices the required physical shape of the light-emitting device according to the specific usage scenario, they can splice a target splicing shape that matches the shape of the physical device on the control interface of the terminal device. In addition, after the user splices the physical shape of the light-emitting device, they can take a picture of the physical shape with a camera. The terminal device can acquire the picture and determine the outline of the internal and external structure of the physical shape in the picture, and then convert the outline into the target splicing shape.
[0048] As another implementation, the terminal device can call up multiple 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 and / or usage needs. Thus, after the target splicing shape is determined, the user can splice out the physical shape of the light-emitting device that is the same as the shape of the target splicing shape.
[0049] As another implementation, the target splicing shape may also include a splicing path, which may be set in the splicing edge of each virtual control in the form of an arrow, thereby instructing the user to complete the splicing of the solid shape of the light-emitting module according to the splicing path.
[0050] Step S320: The terminal device responds to the setting operation of the selected virtual control in the target splicing shape and records the setting parameters of the virtual control.
[0051] In this embodiment, after displaying the target splicing shape, the terminal device can obtain the setting parameters of the selected virtual control within the target splicing shape. These setting parameters refer to the lighting effect parameters set by the user to control the lighting module corresponding to the virtual control, based on the usage requirements of the lighting device. These lighting effect parameters may include, but are not limited to, the light color, light brightness, and light flicker delay displayed by the lighting module / unit, etc., and are not limited here. It should be noted that when setting the virtual control, the virtual control can also synchronously display the lighting effect corresponding to the user-set lighting effect parameters. For example, after selecting one or more virtual controls via touch, and setting the light color in its lighting effect parameters to red, the selected virtual control will synchronously display red, providing the user with an intuitive user experience.
[0052] In one implementation, after the terminal device displays the target splicing shape, it can respond to the user's setting operation and record the setting parameters of the virtual control. This setting operation refers to the human-machine interface interaction operation issued by the user on the control interface to control the lighting effect display of the light-emitting module corresponding to the selected virtual control in the target splicing shape. For example, the user can issue interactive operations such as selecting virtual controls or inputting commands in the lighting effect control window of the control interface. Among them, the user's operation of selecting virtual controls in the target splicing shape can be a touch operation on the control interface to select all, select one, or select multiple virtual controls.
[0053] For example, a user can select a virtual control on the control interface and set the color of the corresponding light-emitting module of the virtual control by using the "color" slider on the control interface. At this time, the terminal device can obtain the Value attribute value (such as RGB value or YUV value) of the "color" slider and record the Value attribute value as the color parameter of the corresponding virtual control, that is, the setting parameter.
[0054] As another implementation, the setting operation can refer to the user selecting a virtual control on the control interface and then choosing a lighting effect template from the provided selection box. The terminal device can record the setting parameters for the virtual control based on the user's selection. Specifically, after obtaining the user's selection, the terminal device can determine the selected lighting effect template and use the default lighting effect parameters corresponding to that template as the setting parameters. The lighting effect template is pre-stored data in the terminal device, packaged as control instructions or information. The lighting effect parameters of the template can include multiple lighting effects (such as a running light effect) and the light emission parameters of the corresponding light-emitting device. By selecting a pre-stored lighting effect template, the user can quickly obtain the setting parameters for controlling the light-emitting device. Furthermore, after the user confirms the lighting effect template, the terminal device can respond to the user's setting operation by modifying the lighting effect parameters in the template to better suit the user's needs.
[0055] Step S330: The terminal device determines the sorting value of the selected virtual control in the target splicing shape, and obtains control information based on the setting parameters and sorting value.
[0056] To effectively reduce the probability of misidentification of lamp block serial numbers and connection relationships during lighting effect control, the control method for the lighting device provided in this application does not employ a master-slave communication method. Instead, it utilizes a communication method where multiple lighting modules of the lighting device sequentially transmit and intercept control commands according to their splicing order to achieve terminal device control of the lighting effect. The control command refers to an instruction generated based on control information, used by the terminal device to control the lighting device to display consistent lighting effects. This control command can consist of multiple control fields, each corresponding to a lighting module and containing operators that the lighting module can directly parse and execute. The fixed number of bytes in each control field can be set by the user. The communication method for intercepting control commands involves, based on a series structure of multiple lighting modules, each lighting module, upon receiving a control command, using its own shaping circuit to extract and parse the control field at the beginning of the control command. Furthermore, this node transmits the remaining control command segment to the next lighting module. When the terminal device generates a control command, operators are added to the segment corresponding to the sequence value of the selected controlled lighting module in the series structure; other segments are left untouched.
[0057] For example, assuming each light-emitting module's control field corresponds to a 3-byte length, and the light-emitting device includes 10 light-emitting modules, then the control command is 30 bytes long (assuming the 10th light-emitting module is also selected for control). The first light-emitting module connected to the controller will receive the complete 30-byte control command. During the transmission of the control command between the light-emitting modules, the first light-emitting module will extract a segment of the control field corresponding to its sequence value in the concatenation structure, and then pass the extracted control command to the second light-emitting module. Thus, the second light-emitting module will receive a 27-byte control command. If only the light-emitting modules with a concatenation sequence of 3 and 4 are selected for control, then when generating the control command, operators will be set in the 3rd and 4th segments of the control command, while other segments will not be set.
[0058] Based on the above explanation, when a user assembles the controller and multiple light-emitting modules into a solid shape according to the target splicing shape, assuming the splicing is correct, the target splicing shape and the solid shape can have visual consistency in their splicing structure. That is, a virtual control at a specific position in the target splicing shape will also have a visually corresponding light-emitting module at that specific position in the solid shape of the light-emitting device. Therefore, the terminal device can determine the sorting value of the selected virtual control in the target splicing shape (this sorting value represents the specific position of the virtual control in the target splicing shape) and generate control information and / or control commands based on the set parameters and sorting value to control the light emission of the light-emitting module at the visually corresponding position in the solid shape of the light-emitting device. This achieves visual consistency in light emission control and improves the user experience.
[0059] Specifically, in this embodiment, the visual consistency of light emission control refers to the following: after the user assembles a physical shape and controls the light emission device of the physical shape according to the target assembled shape, the user sets the virtual control at the target position in the target assembled shape to emit light according to the set lighting effect parameters. The control information generated during this process can simultaneously control the light emission modules corresponding to the virtual control at the target position in the physical shape, so that the light emission modules emit light synchronously according to the lighting effect parameters set in the control information, displaying a consistent lighting effect that conforms to the lighting effect parameters. Therefore, when the terminal device controls the light emission device according to the control information, the consistency of the control process in the user's perception is guaranteed, thereby ensuring that the user has a good interactive experience in controlling the light emission of the splicable smart light.
[0060] The target position can be represented by the sorting value of the virtual control within the target splicing shape. This sorting value can correspond to the sorting values of the light-emitting modules and / or light-emitting units under different conditions in different application scenarios. In different application scenarios / conditions of this application, the light-emitting module can be divided into single-light source devices and multi-light source devices. A single-light source device can be understood as having one light-emitting unit internally, such as a group or a single light-emitting unit, or multiple light-emitting units internally, but all light-emitting units can only be controlled uniformly (e.g., these side-emitting units are connected in parallel to receive and execute the same control command). A multi-light source device can be understood as having multiple cascaded side-emitting units within the light-emitting module, and each side-emitting unit can be controlled independently (e.g., multiple cascaded light-emitting units are configured to receive and execute different control commands respectively).
[0061] In some embodiments, when the light-emitting module is a single-source device, each virtual control directly represents each light-emitting module, and multiple virtual controls correspond one-to-one with multiple light-emitting modules. Therefore, the sorting value of the virtual controls in the target splicing shape can be the splicing order value of the virtual controls. This splicing order value is used to represent the splicing order of each virtual control when generating the target splicing shape using virtual controls.
[0062] In other embodiments, when the light-emitting module is a multi-light source device, the light-emitting module includes multiple edge-emitting units, multiple virtual controls and multiple light-emitting modules corresponding one-to-one. The virtual controls and their corresponding light-emitting modules 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. In this case, the sorting value of the virtual control in the target splicing shape can be understood as the sequence number value of the virtual light-emitting component in the target splicing shape. For example, the physical structure of the light-emitting module is based on... Figure 2 Taking the light-emitting module 126 as an example, the light-emitting module 126 has a hexagonal structure and is equipped with multiple edge light-emitting units 101, 102, 103, 104, 105, and 106. The virtual control corresponding to the light-emitting module 126 in the control interface is also hexagonal, and the hexagonal structure of the virtual control corresponds to the physical structure of the light-emitting module 126. The virtual control includes virtual light-emitting components set on the edges of the hexagonal structure. The setting positions of these virtual light-emitting components on the virtual control are consistent with the setting positions of the multiple edge light-emitting units 101, 102, 103, 104, 105, and 106 on the light-emitting module 126, and the multiple virtual light-emitting components can be controlled individually. At this time, when using the virtual control to complete the target splicing shape, the sorting value of the selected virtual control is the edge sorting value of the selected edge (such as the virtual light-emitting component) in the selected virtual control in the target splicing shape.
[0063] Based on the above explanation, from another perspective, when controlling the light emission / lighting effect, users can select one or more virtual controls (such as the entire hexagon) in the control interface to control the corresponding one or more light emission modules; users can also select one or more virtual light emission components (such as one or more sides of a hexagon) in the control interface to control the corresponding one or more side light emission units. Therefore, when the selected virtual control is the entire virtual control, its sorting value is the splicing order value of the virtual control; when the selected virtual control is a virtual light emission component, its sorting value is the side sorting value of the selected side (such as the virtual light emission component) in the target splicing shape.
[0064] In one implementation, the terminal device can extract the splicing order value from the configuration file of the target splicing shape. This 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. In the configuration file, the position information can be represented using an array-type data structure. For example, if the target splicing shape contains a first virtual control and a 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. Here, a and b can represent the two-dimensional / three-dimensional coordinates of the first and second virtual controls in the control interface, respectively, and 1 and 2 are the splicing order values of the first and second virtual controls, respectively. Therefore, the terminal device can display the target splicing shape in the control interface by loading this configuration file.
[0065] Specifically, when the terminal device responds to a user's touch operation on the target splicing shape on the control interface, it can obtain the touch position of the touch operation, determine the virtual control selected by the user according to the position information of each virtual control recorded in the configuration file, and finally query the configuration file to determine the splicing order value of the selected virtual control. For example, when the user clicks the target splicing shape on the control interface with the mouse, the terminal device can obtain the click position of the cursor and match the click position with the position information of the virtual controls in the configuration file to determine the splicing order value of the clicked virtual control.
[0066] As another implementation, the sorting value of the virtual light source component of the virtual control within the target splicing shape can be represented by an edge number value and a splicing order value. Specifically, such as Figure 2As shown, the splicing order 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. Taking the incoming edge as the reference, if the first light-emitting unit 101 to the sixth light-emitting unit 106 of the second light-emitting module 126 are cascaded in sequence, then the edge number values corresponding to the first light-emitting unit 101 to the sixth light-emitting unit 106 are 1 to 6, respectively. It can be determined that 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 splicing shape can be represented as arrays [2, 1], [2, 2], [2, 3], [2, 4], [2, 5], and [2, 6], respectively. In this array, the first number is the splicing order value, and the second number is the edge number value.
[0067] In this embodiment, after the terminal device determines the sorting value of each virtual control in the target splicing shape, it can obtain control information based on the set parameters and the sorting value. The control information can be understood as information used to control the light-emitting device, which may include, but is not limited to: the light-emitting parameters of the light-emitting module and / or edge-emitting units of the light-emitting device (such as color parameters, brightness parameters, duration parameters, etc., which can be obtained based on their set parameters), and the sorting value of the light-emitting module and / or edge-emitting units of the light-emitting device. The control information can serve as the basis for the terminal device to control the light-emitting device (e.g., the control information serves as the basis for generating control commands). When the terminal device obtains the control information, it can directly generate control commands based on the control information, which can be directly parsed and executed by the light-emitting module; or, when the terminal device obtains the control information, it can transmit the control information to the controller of the light-emitting device, and the controller can generate control commands based on the control information, which can be directly parsed and executed by the light-emitting module.
[0068] In one implementation, the terminal device can package the setting parameters and sorting values as control information. After the terminal device sends the control information to the light-emitting device, the controller can generate control commands according to the setting parameters and sorting values, and send the control commands to the target light-emitting module to control the light emission of the target light-emitting module. The control commands are parsed and executed by the target light-emitting module.
[0069] Considering the limited computing resources of lighting devices, as the number of lighting modules increases, the computing resources required for controlling the lighting effects of these modules also increase, leading to a decrease in the operating efficiency of the lighting devices. Therefore, the generation and setting of control commands can be directly completed by the terminal device.
[0070] As another implementation, the terminal device can determine control information based on the setting parameters and sorting values, generate control instructions based on the control information, and send the control instructions as control information to the light-emitting device. That is, after the terminal device sends the control instructions to the light-emitting device, the control instructions can instruct the controller to forward the control instructions to the target light-emitting module to control the light emission of the target light-emitting module. The control instructions are parsed and executed by the target light-emitting module. Thus, the terminal device can directly generate control instructions based on the setting parameters and sorting values. When the light-emitting module receives the control instructions, it only needs to complete the transmission of the control instructions, thereby saving computing resources and improving work efficiency.
[0071] Step S340: The terminal device sends control information to the controller.
[0072] In one implementation, the terminal device can directly send the setting parameters and sorting values as control information to the light-emitting device, so that the light-emitting device can generate control commands based on the control information. In another implementation, the terminal device can also obtain control information based on the sorting value and setting parameters of each light-emitting unit, generate control commands based on the control information (the control commands can be considered to include the control information), and then send the control commands to the light-emitting device. The light-emitting device can then directly parse the control commands to achieve lighting effect control.
[0073] Step S350: The controller receives control information and controls the light emission of the target light-emitting module according to the control information. The target light-emitting module is the light-emitting module in the entity shape that corresponds to the sorting value.
[0074] In one implementation, after receiving control information, the light-emitting device can instruct the controller to generate control commands based on the set parameters and sorting values, and then send the control commands to the target light-emitting module to control its light emission. For example, if the control command includes setting parameters for a virtual control with a sorting value of 2 in the target splicing shape, then the target light-emitting module is the light-emitting module with a sorting value of 2 in that physical shape. After the controller sends the control commands to the light-emitting device, the target light-emitting module will receive and execute the control commands.
[0075] In another implementation, after receiving control information, the controller can directly control the target light-emitting module to emit light based on the control information. Specifically, the controller sends control commands to the target light-emitting module, which then parses and executes the control commands.
[0076] Understandably, the control command can consist of multiple segments of single-line return-to-zero codes, arranged sequentially according to the sorting value of the virtual control. Each segment of single-line return-to-zero code corresponds to a light-emitting module. When the target light-emitting module receives the control command, it can obtain the single-line return-to-zero code at the position corresponding to its own sorting value from the control command, and then display the lighting effect based on the parsing result of the single-line return-to-zero code.
[0077] For example, a light-emitting device has a first light-emitting module and a second light-emitting module (target light-emitting module). The controller sends a control command to the first light-emitting module. After receiving the control command, the first light-emitting module can extract the first segment of the single-line return-to-zero code from the control command and pass the extracted remaining control command to the second light-emitting module. After receiving the control command, the second light-emitting module can extract the first segment of the single-line return-to-zero code from the control command. This first segment of the single-line return-to-zero code is the second segment of the original control command. Thus, the target light-emitting module obtains the corresponding single-line return-to-zero code. It should be noted that the above steps of the controller sending the control command to the target light-emitting module and the target light-emitting module parsing and executing the control command can also be applied to light-emitting units. That is, each light-emitting unit can be regarded as a light-emitting module, and vice versa.
[0078] The control method for the light-emitting device provided in this application allows a terminal device to acquire and display a target splicing shape on a control interface. The terminal device can then respond to setting operations on selected virtual controls within the target splicing shape, record the setting parameters of the virtual controls, and determine the sorting value of the virtual controls within the target splicing shape. The terminal device can then obtain control information based on the setting parameters and the sorting value, and send the control information to the controller. Furthermore, the controller can receive the control information sent by the terminal device and control the light emission of the target light-emitting module according to the control information. Thus, the terminal device can generate corresponding control information based on the sorting value of the virtual controls within the target splicing shape and the setting parameters, and send it to the controller of the light-emitting device. The controller can then control the light emission of the target light-emitting module according to the control information, thereby avoiding the need for each light-emitting module to establish a communication connection with the terminal device, improving control efficiency, and reducing the use of microcontroller units in the light-emitting modules, thus lowering production costs.
[0079] Please see Figure 6 , Figure 6 This application illustrates another control method for a light-emitting device provided in an embodiment of the present application. The control method for the light-emitting device is applied to a terminal device configured with a control interface. The terminal device is communicatively connected to the light-emitting device. The light-emitting device includes a controller and at least one light-emitting module. The method may include the following steps S410 to S450.
[0080] Step S410: Obtain and display the target splicing shape in the control interface.
[0081] In some embodiments, the terminal device may, in response to a splicing setting operation, splice the virtual controls corresponding to the light-emitting module into a target splicing shape on the control interface. As one implementation, the terminal device may perform steps A to D to splice the virtual controls corresponding to the light-emitting module into a target splicing shape on the control interface.
[0082] Step A: In response to the splicing setup operation, an initial virtual control is determined in the control interface. This initial virtual control may correspond to a light-emitting module and has the same shape as its corresponding light-emitting module. This initial virtual control represents the first virtual control created / added by the user through the splicing setup operation. The splicing setup operation refers to the user's action of creating / adding a virtual control in the control interface.
[0083] As one implementation method, such as Figure 7 As shown, when a user needs to add a target splicing shape on the control interface, they can touch the desired location G (such as touching the add button H). The terminal device generates and displays the initial virtual control R1 based on the touch operation received from the control interface. At this time, the initial virtual control R1 should be understood as the first virtual control created by the user through the splicing settings operation.
[0084] As another implementation, the terminal device is equipped with a template library of target splicing shapes. This library contains one or more pre-stored stock shapes, which users can select according to their needs, thereby reducing splicing time and improving user experience. Figure 8 As shown, when a user calls up an inventory shape from the template library of the target splicing shape for editing, the control interface of the terminal device can display the called inventory shape P according to the user's operation. When the user edits the inventory shape P according to the requirements, and touches the corresponding virtual control at the position where a new virtual control needs to be added, the terminal device determines the initial virtual control as a virtual control based on the touch operation received by the control interface (e.g., 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). At this time, the initial virtual control should be understood as the first virtual control determined by the user through the splicing settings operation.
[0085] Step B: Based on the shape of the initial virtual control, generate two or more additional controls around the initial virtual control. The additional controls are used to indicate the display position of the next virtual control.
[0086] As one implementation method, once the initial virtual control is determined, the user can add the next virtual control as needed. In this embodiment, such as... Figure 7 , 8As shown, the terminal device provides a touch button (e.g., add control S) for users to add the next virtual control. Users can add a virtual control at the location of the added control S by touching the button. Specifically, 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 that position, which is adjacent to the initial virtual control R1. If the initial virtual control R1 is a polygon, there can be multiple added controls S, and the display position of each added control S can be adjacent to one side of the initial virtual control R1. Alternatively, multiple display positions can be defined around the initial virtual control R1 based on its outline, with each display position serving as a location for an added control S. In this case, the number and position of the added controls S do not necessarily have to be related to the polygonal structure of the initial virtual control R1.
[0087] Step C: In response to the add operation, determine the target add position among two or more add controls, and display the next virtual control at the target add position.
[0088] In one implementation, the control interface displays two or more add controls S around the initial virtual control R1. The user can select any one of the add controls S to add a new virtual control according to their splicing needs. When the mobile terminal receives a selection operation for add control S, it uses the display position of the selected add control S as the target add position and displays the next virtual control R2 at that target add position.
[0089] Step D: Based on the shape of the next virtual control, generate two or more additional controls around the next virtual control. These additional controls indicate the position for adding the next virtual control. In this embodiment, after a new virtual control is added, the added controls can continue to be displayed according to step B, and new virtual controls can continue to be added based on user operations. This specification will not elaborate on these details.
[0090] In response to the add operation, steps A and D are executed until a target confirmation command is received, resulting in the target stitching shape. The target confirmation command indicates that the user has completed adding the virtual control. In this embodiment, the target confirmation command can be generated based on the user's touch operation. For example, if the user touches the "Complete Stitching" button, a corresponding target confirmation command will be generated. At this time, the shape formed by the virtual controls displayed on the control interface is the target stitching shape.
[0091] Step S420: In response to the setting operation of the selected edge of the virtual control in the target splicing shape, record the setting parameters of the selected edge.
[0092] As one implementation method, after the terminal device displays the target splicing shape, the user can select any edge on the virtual control within the target splicing shape, i.e., select an edge, and set the parameters. In this embodiment, the specific implementation of step S420 can be referred to the description of step S320 provided in the above embodiment, and will not be repeated here.
[0093] Step S430: Determine the edge sorting value of the selected edge in the target splicing shape.
[0094] In one implementation, the terminal device can determine the splicing order value of the virtual control corresponding to the light-emitting module in the target splicing shape, and use this splicing order value as the sorting value of the virtual control in the target splicing shape. Further, the terminal device can determine the edge sorting value of the selected edge in the target splicing shape based on the sorting value of the virtual control.
[0095] For example, the terminal device can use the order in which the user creates virtual controls through splicing settings as the splicing order value of the virtual controls in the target splicing shape, and use this splicing order value as the sorting value of the virtual controls in the target splicing shape. Further, after obtaining the sorting value of the virtual controls corresponding to the light-emitting modules in the target splicing shape, the terminal device can calculate the edge sorting value of the selected edge in the target splicing shape based on the number of sides of the virtual controls corresponding to the light-emitting modules and the sorting value of the virtual controls. For example, when each light-emitting module includes multiple cascaded edge-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, then the internal sorting value 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 within the light-emitting module is known. Therefore, the internal sorting values of the multiple edges of the virtual controls corresponding to the light-emitting module are known. The terminal device can then calculate the edge sorting value of the selected edge in the target splicing shape based on the sorting value of the virtual controls corresponding to the light-emitting module in the target splicing shape and the internal sorting values of the multiple edges. Specifically, assuming the target splicing shape includes two virtual controls, referred to as the first virtual control and the second virtual control respectively, the sorting value of the first virtual control is 1, and the sorting value of the second virtual control is 2; the second virtual control includes a first side, a second side, a third side, a fourth side, and a fifth side connected in sequence, and each side has a corresponding light-emitting unit, then the internal sorting value of the first side is 1, 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. When calculating the sorting value of the third side of the second virtual control, in one embodiment, the sorting value of the third side can be determined by combining the sorting value 2 of the second virtual control and the internal sorting value 3 of the third side, or by the array [2, 3]; in another embodiment, the sorting value of the third side can be calculated by combining the number of sides N of the first virtual control and the internal sorting value 3 of the third side.
[0096] Step S440: Obtain control information based on the setting parameters of the selected edge and the edge sorting value.
[0097] In this embodiment, control information can be understood as information used to control the light-emitting device, which may include, but is not limited to: light-emitting parameters (such as color parameters, brightness parameters, duration parameters, etc., which can be obtained according to their set parameters) of the light-emitting module and / or edge-emitting unit of the light-emitting device, and the sorting value of the light-emitting module and / or edge-emitting unit of the light-emitting device. The control information can serve as the basis for a terminal device to control the light-emitting device (e.g., the control information serves as the basis for generating control commands). When the terminal device obtains the control information, it can directly generate control commands based on the control information, which can be directly parsed and executed by the light-emitting module; or, when the terminal device obtains the control information, it can transmit the control information to the controller of the light-emitting device, and the controller can generate control commands based on the control information, which can be directly parsed and executed by the light-emitting module.
[0098] The control method for the light-emitting device provided in this application utilizes the method of sequentially intercepting control commands according to the splicing order to achieve the terminal device's control over the lighting effect of the light-emitting device. Optionally, the IC control chip used in the light-emitting device integrates circuits such as a single-line return-to-zero code digital interface and automatic output data shaping and forwarding. The single-line return-to-zero code refers to a code where the high level is maintained for only a short period during the entire symbol duration, returning to zero for the rest of the time. That is, the pulse width of the return-to-zero code is narrower than the symbol width (i.e., duty cycle < 1), and each pulse returns to zero before the end of a symbol. The single-line return-to-zero code can be widely used for transmission over channels. The signal shaping processing circuit built into the IC control chip can perform waveform shaping before outputting any control command received by the IC control chip, thereby ensuring that waveform distortion does not accumulate.
[0099] In some embodiments, the terminal device can generate control instructions in single-line return-to-zero code data format based on control information. These control instructions may include multiple control fields, i.e., multiple segments of single-line return-to-zero code. Each control field corresponds one-to-one with multiple light-emitting modules in the physical shape. Each control field includes control parameters for the light-emitting modules to parse. The control parameters are determined based on the setting parameters and sorting values of the selected virtual control.
[0100] Optionally, the terminal device can determine the number of control fields as N based on the number N of virtual controls in the target splicing shape, or determine the sorting value as N, and then determine the number of control fields as N. The N control fields are ordered sequentially. Further, the terminal device configures control parameters for each control field based on the setting parameters and the sorting value to generate control instructions. The sorting order of the control fields configured with control parameters is the same as the sorting value.
[0101] Specifically, as one implementation method, the terminal device can generate a control command based on the setting parameters and edge sorting value of the selected edge, and send the control command as control information to the light-emitting device. Specifically, the terminal device can determine the number of control fields in the control command as N based on the number N of virtual controls corresponding to the edge light-emitting units of the light-emitting module in the target splicing shape. Furthermore, the terminal device can configure control parameters for each control field based on the setting parameters and edge sorting value of the selected edge to generate the control command.
[0102] For example, if the target splicing shape consists of virtual controls corresponding to two hexagonal light-emitting modules, and each light-emitting module includes six edge light-emitting units, then the effective number of edges corresponding to each virtual control is 6. The total number of edges of the two virtual controls in the target splicing shape is 12, meaning the control command has 12 fixed-length control fields. If you want to control the light-emitting module corresponding to the first virtual control to not emit light, and the light-emitting module corresponding to the second virtual control to emit a red light, the terminal device can generate the corresponding control fields based on the edge sorting values of all edges and the setting parameters (control codes). An example of the data format of the generated control command is as follows:
[0103] (0x00 0x00 0x00)(0x00 0x00 0x00)(0x00 0x00 0x00)(0x00 0x00 0x00)(0x000x00 0x00)(0x00 0x00 0x00)(0xFF 0x00 0x00)(0xFF 0x00 0x00)(0xFF 0x00 0x00)(0xFF 0x00 0x00)(0xFF 0x00 0x00)(0xFF 0x00 0x00)
[0104] In this context, each character within a parenthesis represents a control field for a corresponding edge. For example, (0xFF 0x00 0x00) represents the control field corresponding to the sort value of the selected edge in the control instruction. This control instruction consists of 12 segments of control fields with a fixed length of 24 bits each. The control field corresponds to the decimal RGB data (255 0 0). Therefore, the light-emitting unit that obtains this control field can be controlled to display a red light. The first to sixth segments correspond to edges with sort values of 1 to 6, that is, the seventh to twelfth segments correspond to edges with sort values of 7 to 12.
[0105] In other embodiments, the terminal device can directly package the setting parameters of the selected edge and the sorting value of the selected edge to generate control information, and send the control information to the light-emitting device so that the light-emitting device can generate control instructions based on the control information.
[0106] 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 in the entity shape that corresponds to the sorting value.
[0107] In this embodiment, the specific implementation of step S450 can be referred to the description of step S340 provided in the above embodiment, and will not be repeated here.
[0108] The control method for the light-emitting device provided in this application allows the terminal device to acquire and display a target splicing shape on a control interface. It can then respond to setting operations on the selected edges of virtual controls within the target splicing shape, record the setting parameters for the selected edges, and determine the edge sorting value of the selected edges within the target splicing shape. Furthermore, it can obtain control information based on the setting parameters and edge sorting value of the selected edges and send this control information to the controller. Thus, the terminal device can generate corresponding control information based on the edge sorting value of the virtual controls within the target splicing shape and the setting parameters, and send this information to the controller of the light-emitting device, thereby controlling the light emission of the target light-emitting modules. This avoids the need for each light-emitting module to establish a communication connection with the terminal device, improving control efficiency.
[0109] Please see Figure 8 , Figure 8 This application illustrates another control method for a light-emitting device provided in an embodiment of the present application. The method is applied to a light-emitting device, which includes a controller and multiple light-emitting modules. The light-emitting device is communicatively connected to a terminal device. The multiple light-emitting modules are spliced according to a target splicing shape, which is determined by the splicing shape of the virtual controls displayed on the control interface of the terminal device. The control method for the light-emitting device may include the following steps S510 to S520.
[0110] Step S510: The controller receives control information sent by the terminal device. The control information is generated by the terminal device based on the received setting operation of the selected virtual control. 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.
[0111] In this embodiment, the specific implementation of step S510 can be referred to the description of step S340 provided in the above embodiment, and will not be repeated here.
[0112] Step S520: The controller controls the light emission of the target light-emitting module according to the control information. The target light-emitting module is the light-emitting module in the entity shape that corresponds to the sorting value.
[0113] In this embodiment, the control information is generated by the terminal device. The terminal device can generate control commands based on the control information and send them to the light-emitting device. The light-emitting module then acquires the control information, i.e., the control commands, and directly parses and executes them. Specifically, the controller of the light-emitting device can receive the control information and directly send it to the target light-emitting module, which then parses and executes the control commands. Alternatively, the controller can generate control commands based on the acquired control information, including the setting parameters and sorting values, and send them to the target light-emitting module, which then parses and executes the control commands.
[0114] Optionally, the control instructions may include multiple control fields, each corresponding to a single light-emitting module assembled according to the target splicing shape. Each control field includes control parameters for the light-emitting module to parse, and the control parameters are determined based on the setting parameters and sorting values of the selected virtual control.
[0115] Optionally, the controller can determine the number of control fields as N based on the number N of virtual controls in the target splicing shape, wherein the N control fields are ordered sequentially. Further, the controller can configure control parameters for each control field based on setting parameters and sorting values to generate control instructions, wherein the sorting order of the control fields configured with control parameters is the same as the sorting value.
[0116] In this embodiment, the light-emitting device receives control information sent by the terminal device and can generate control instructions based on the control information. This control information can be directly generated by the terminal device by packaging the setting parameters for the selected edge and the sorting value of the selected edge. The light-emitting device can generate control instructions based on the control information (the control instructions can be considered to include the control information), and then send the control instructions to the light-emitting device. This control information is obtained by the terminal device based on the setting parameters for the selected edge and the sorting value of the selected edge.
[0117] In some embodiments, the controller can send control commands to a target light-emitting module, which can parse and execute the control commands. Specifically, the controller can send control commands to a first light-emitting module, which is the first light-emitting module among a plurality of sequentially arranged light-emitting modules; for example, the target splicing shape is composed of virtual controls corresponding to six light-emitting modules, and the control commands sent by the controller are (0x0A 0x00 0x00)(0x0B 0x000x00)(0x0C 0x00 0x00)(0x0D 0x00 0x00)(0x0E 0x00 0x00)(0x0F 0x00 0x00), where the character in each "()" represents the control command of the corresponding virtual control.
[0118] The first light-emitting module extracts the first control field from the N control fields of the received control command and sends the extracted (N-1) control fields to the second light-emitting module. The second light-emitting module is the next light-emitting module adjacent to the first light-emitting module in a sequence of multiple light-emitting modules. Based on the above example, the first light-emitting module has a sorting value of 1. It extracts the control field corresponding to the sorting value of 1 in the control command, that is, after extracting the first control field (0x0A 0x00 0x00) in the control command, it sends the remaining control fields (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 sorting value of 2. The light-emitting module with a sorting value of 2 is the light-emitting module adjacent to the first light-emitting module.
[0119] The second light-emitting module extracts the first control field from the (N-1) control fields of the received control command, and sends the extracted (N-3) control fields to the third light-emitting module adjacent to the second light-emitting module. Based on the above example, the second light-emitting module has a sorting value of 2. It extracts the control field corresponding to the sorting value of 2 in the control command, that is, it extracts the first control field (0x0B 0x00 0x00) in the received control command, and then sends the remaining control fields (0x0C 0x00 0x00)(0x0D 0x00 0x00)(0x0E 0x00 0x00)(0x0F 0x00 0x00) to the next light-emitting module (the third light-emitting module) with a sorting value of 3. The light-emitting module with a sorting value of 3 is the light-emitting module adjacent to the third light-emitting module.
[0120] ...and so on.
[0121] The (N-1)th light-emitting module extracts the first control field from the two control fields of the received control command and sends the extracted control field to the Nth light-emitting module. Based on the above example, the fifth light-emitting module has a sorting value of 5. It extracts the control field corresponding to the sorting value of 5 from the control commands (0x0E 0x00 0x00)(0x0F 0x00 0x00), that is, it extracts the first control field (0x0E 0x00 0x00) from the received control command and sends the remaining control field (0x0F 0x00 0x00) to the next light-emitting module (the sixth light-emitting module) with a sorting value of 6. The light-emitting module with a sorting value of 6 is the light-emitting module adjacent to the fifth light-emitting module and is also the last sorting light-emitting module in the physical splicing shape corresponding to the target splicing shape.
[0122] 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.
[0123] Therefore, each light-emitting module can receive control commands, parse the control parameters in the intercepted control fields, and execute them. Compared with the master-slave communication method, the control method for the light-emitting device provided in this application does not require each light-emitting module of the light-emitting device to directly establish a connection with the terminal device. After receiving the control commands sent from the terminal device, each light-emitting module / side-emitting unit only needs to intercept the control fields corresponding to its own order in the control commands to complete the display of the lighting effect. This simplifies the steps of the terminal device sending control commands to each light-emitting module one by one, and then each light-emitting device receiving the control commands from the terminal device. By generating and transmitting once, the lighting effect display of the light-emitting device is efficiently controlled, avoiding the recognition errors that are prone to occur in the master-slave communication method.
[0124] In this embodiment, after each light-emitting module intercepts the corresponding control field, it can either directly execute the control command or wait for a trigger command input by the controller and execute the received control command simultaneously to ensure the synchronization of the overall lighting effect response time of the light-emitting device. For example, the trigger command input by the controller can be an execution command sent to multiple light-emitting modules in a cascaded manner. This command includes a timer. After a light-emitting module receives the trigger command, the timer starts counting down. After the timer expires, the light-emitting module is triggered to execute the aforementioned control command, thereby ensuring that multiple light-emitting modules can respond to the control command simultaneously. Alternatively, the trigger command input by the controller can be a low-level input signal. Through a low-level input signal, the controller can simultaneously pull down the level of all light-emitting modules. After the controller's built-in timer expires, it restores a high-level input, triggering the light-emitting modules to directly execute the aforementioned control command, thus ensuring that multiple light-emitting modules can respond to the control command simultaneously. Specifically, the light-emitting module receiving the control command can parse the intercepted control field and obtain the corresponding control parameters. The light-emitting module responds to a low-level input signal for a predetermined duration and executes the control parameters.
[0125] For example, to further illustrate this embodiment, specific examples will be provided below in conjunction with the accompanying drawings. Please refer to... Figure 10 , Figure 10The physical connection between the three light-emitting units in the light-emitting module is shown. The light-emitting units use the WS2811 chip. Control commands are transmitted between the first light-emitting unit 610, the second light-emitting unit 620, and the third light-emitting unit 630 via a data transmission line. The light-emitting device receives control commands from the terminal device. These commands control the lighting effects of the first light-emitting unit 610, the second light-emitting unit 620, and the third light-emitting unit 630. The control commands consist of three fixed-length control fields, each of which can be 24-bit single-line return-to-zero code data. The DI terminal receives the control commands transmitted from the controller. After the first light-emitting unit 610 receives the 3*24-bit control commands, it extracts the header (a fixed-length 1*24-bit control field) and then reshapes and amplifies the remaining 2*24-bit control commands through an internal shaping circuit before forwarding them to the next cascaded light-emitting unit 620 via the DO terminal.
[0126] Furthermore, after the 2*24-bit control command is acquired by the second light-emitting unit 620, the second light-emitting unit 620 extracts the header of the control command with a fixed length of 1*24-bit control field, and then the remaining 1*24-bit control command is shaped and amplified by the internal shaping processing circuit, and then forwarded to the next cascaded third light-emitting unit 630 through the DO terminal. Thus, the light-emitting device completes the transmission of the control command.
[0127] In one implementation, each light-emitting unit, after obtaining the remainder intercepted from the control command, can display lighting effects based on that remainder. For example, the encoding of the control command used to control the lighting effects of the first light-emitting unit 610, the second light-emitting unit 620, and the third light-emitting unit 630 is as follows:
[0128] (0x00 0x00 0x00)(0x00 0x00 0x00)(0xFF 0x00 0x00),
[0129] In this encoding, each segment is 24 bits long. 0x00 can be represented as 0, 0xFF can be represented as 1, (0x00 0x000x00) can indicate that the light-emitting unit is not lit, and (0xFF 0x00 0x00) can indicate that the light-emitting unit emits red light. Thus, the first light-emitting unit 610 and the second light-emitting unit 620 do not emit light, and the third light-emitting unit 630 emits red light.
[0130] The control method for the light-emitting device provided in this application allows the controller to receive control information sent by a terminal device. This control information is generated by the terminal device based on the received settings operation of a selected virtual control. 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. Furthermore, the controller controls the light emission of the target light-emitting module according to the control information. Thus, the light-emitting device can use an intercept-based execution method based on the control message to control the light emission of the light-emitting units corresponding to the edge numbers in the physical splicing shape, avoiding the involvement of the control unit, reducing the recognition error rate, and effectively improving the control efficiency of the light-emitting device.
[0131] Please see Figure 11 , Figure 11 A block diagram of a control device 700 for a light-emitting device according to an embodiment of this application is shown. The control device operates on a terminal device configured with a control interface. The terminal device is communicatively connected to the light-emitting device. The light-emitting device includes a controller and multiple light-emitting modules. The control device includes:
[0132] The shape acquisition module 710 is used to acquire and display the target splicing shape in the control interface. The target splicing shape includes multiple visual virtual controls. The target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into a solid shape that is consistent with the shape of the target splicing shape.
[0133] The parameter recording module 720 is used to record the setting parameters of the virtual control in response to the setting operation of the selected virtual control in the target splicing shape.
[0134] The sorting determination module 730 is used to determine the sorting value of the selected virtual control in the target splicing shape;
[0135] The control instruction module 740 is used to obtain control information based on the set parameters and sorting values;
[0136] 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, which is the light-emitting module in the entity shape that corresponds to the sorting value.
[0137] In some embodiments, the control instruction module 740 may be specifically used to package setting parameters and sorting values to generate control information;
[0138] 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 setting parameters and sorting values, and to send the control instructions to the target light-emitting module to control the light emission of the target light-emitting module. The control instructions are parsed and executed by the target light-emitting module.
[0139] In some embodiments, the control instruction module 740 may also be specifically used to determine control information based on setting parameters and sorting values, wherein the control information includes setting parameters of the target light-emitting module corresponding to the sorting value; and to generate control instructions based on the control information.
[0140] The instruction sending module 750 can also be specifically used to send control instructions to the controller. The control instructions are used to instruct the controller to forward the control instructions to the target light-emitting module to control the light emission of the target light-emitting module. The control instructions are parsed and executed by the target light-emitting module.
[0141] In some embodiments, the shape of the virtual control is consistent with the shape of the light-emitting module; the light-emitting module is a polygonal structure and includes an edge-emitting unit disposed on at least one side of the polygonal structure; the parameter recording module 720 can be specifically used to record the setting parameters of the selected side in response to the setting operation of the selected side of the virtual control in the target splicing shape.
[0142] The sorting determination module 730 can be specifically used to determine the edge sorting value of the selected edge in the target splicing shape;
[0143] The control instruction module 740 can also be specifically used to obtain control information based on the setting parameters and edge sorting value of the selected edge; the control information is also used to instruct the controller to control the light emission of the target edge light emission unit, which is the edge light emission unit in the solid shape that corresponds to the edge sorting value.
[0144] In some embodiments, the sorting determination module 730 may be specifically used to determine the splicing order value of the virtual control in the target splicing shape; and use the splicing order value as the sorting value of the selected virtual control in the target splicing shape.
[0145] In some embodiments, the control instruction includes multiple control fields, each corresponding one-to-one with multiple light-emitting modules in the solid shape; each control field includes control parameters for the light-emitting modules to parse, the control parameters being determined based on the setting parameters and sorting values of the selected virtual control; the control instruction module 740 may include:
[0146] The determining unit is used to determine the number of control fields N based on the number N of virtual controls in the target splicing shape, wherein the N control fields are ordered sequentially.
[0147] The generation unit is used to configure control parameters for each control field based on the setting parameters and the sorting value to generate control instructions, wherein the sorting order of the control fields configured with control parameters is the same as the sorting value.
[0148] In some embodiments, the shape acquisition module 710 may include a splicing unit, used to splice virtual controls corresponding to the light-emitting module into a target splicing shape on the control interface in response to a splicing setting operation.
[0149] In some embodiments, the splicing unit may be specifically used in step A, in response to the splicing setting operation, to determine an initial virtual control on the control interface; step B, based on the shape of the initial virtual control, to generate two or more additional controls around the initial virtual control, the additional controls being used to indicate the display position of the next virtual control; step C, in response to the addition operation, to determine a target addition position among the two or more additional controls, and to display the next virtual control at the target addition position; step D, based on the shape of the next virtual control, to generate two or more additional controls around the next virtual control, the additional controls being used to indicate the addition position of the next virtual control; in response to the addition operation, steps A and D are executed until a target confirmation instruction is received, and a target splicing shape is obtained, the target confirmation instruction indicating that the user has completed adding the virtual control.
[0150] Please see Figure 12 , Figure 12 A block diagram of a control device 900 for a light-emitting device according to an embodiment of this application is shown. The control device operates on the light-emitting device, which includes a controller and at least one light-emitting module. The light-emitting device is communicatively connected to a terminal device. The device includes:
[0151] The receiving module 910 is used to receive control information sent by the terminal device;
[0152] The control module 920 is used to control the light emission of the light-emitting module according to the control information.
[0153] In some embodiments, the control module 920 may include:
[0154] The generation unit is used by the controller to generate control commands based on the control information, set parameters, and sorting values;
[0155] The first transmitting unit is used by the controller to send control commands to the target light-emitting module;
[0156] The first parsing unit is used to parse and execute control commands for the target light-emitting module.
[0157] In some embodiments, the control information is a control command generated by the terminal device and directly parsed and executed by the light-emitting module; the control module 920 may further include:
[0158] The second transmitting unit is used by the controller to send control commands to the target light-emitting module;
[0159] The second parsing unit is used to parse and execute control commands for the target light-emitting module.
[0160] In some embodiments, the control instruction includes multiple control fields, each corresponding one-to-one with multiple light-emitting modules spliced according to the target splicing shape; each control field includes control parameters for the light-emitting module to parse, the control parameters being determined based on the setting parameters and sorting values of the selected virtual controls; the generation unit may be specifically configured to determine the number of control fields as N based on the number N of virtual controls in the target splicing shape, wherein the N control fields are ordered sequentially; and to configure control parameters for each control field based on the setting parameters and sorting values to generate a control instruction, wherein the sorting order of the control fields configured with control parameters is the same as the sorting value.
[0161] In some embodiments, the first sending unit or the second sending unit may be specifically used for the controller to send control commands to the first light-emitting module, wherein the first light-emitting module is the first light-emitting module among a plurality of light-emitting modules arranged in sequence;
[0162] The first light-emitting module extracts the first control field from the N control fields of the received control command, and sends the extracted (N-1) control fields to the second light-emitting module. The second light-emitting module is the next light-emitting module adjacent to the first light-emitting module among a plurality of sequentially ordered light-emitting modules.
[0163] The second light-emitting module extracts the first control field from the (N-1) control fields of the received control command, and sends the extracted (N-3) control fields to the third light-emitting module adjacent to the second light-emitting module.
[0164] ...
[0165] The (N-1)th light-emitting module extracts the first control field from the two control fields of the received control command and sends the extracted control field to the Nth light-emitting module;
[0166] The Nth light-emitting module receives the control field sent by the (N-1)th light-emitting module;
[0167] The first parsing unit or the second parsing unit may include:
[0168] The execution subunit is used by the light-emitting module that receives the control command to parse the control parameters in the intercepted control field and execute them.
[0169] In some embodiments, the execution subunit may be specifically used to parse the intercepted control field of the light-emitting module that receives the control command and obtain the corresponding control parameters; the light-emitting module responds to a low-level input signal that lasts for a predetermined duration and executes the control parameters.
[0170] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0171] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0172] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0173] This application embodiment also provides a lighting effect control system, characterized in that the lighting effect control system includes a terminal device and a light-emitting device, the light-emitting device includes a controller and at least one light-emitting module, and the terminal device and the light-emitting device are communicatively connected;
[0174] The terminal device is used to acquire and display the target splicing shape in the control interface. The target splicing shape includes multiple visual virtual controls. The target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into a physical shape that matches the shape of the target splicing shape.
[0175] A terminal device is used to record the setting parameters of the virtual control in response to a setting operation of a virtual control selected in the target splicing shape.
[0176] The terminal device is used to determine the sorting value of the selected virtual control in the target splicing shape, obtain control information based on the set parameters and sorting value, and send control information to the controller.
[0177] The controller is used to receive 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 in the entity shape that corresponds to the sorting value.
[0178] like Figure 13 As shown in the illustration, this application also provides an electronic device 900, which may include the aforementioned terminal device or the aforementioned light-emitting device. The light-emitting device is configured with a controller and a light-emitting module, and may also include a lighting effect control system for the terminal device and the light-emitting device. The electronic device 900 includes a processor 910 and a memory 920. The memory 920 stores computer program instructions, which, when called by the processor 910, execute the aforementioned control method for the light-emitting device.
[0179] The processor 910 may include one or more processing cores. The processor 910 connects to various parts of the entire battery management system using various interfaces and lines, and performs various functions and processes data of the battery management system by running or executing instructions, programs, code sets, or instruction sets stored in the memory 920, and by calling data stored in the memory 920. Optionally, the processor 910 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 910 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 910 and may be implemented separately through a communication chip.
[0180] The memory 920 may include random access memory (RAM) or read-only memory (ROM). The memory 920 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 920 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created during the use of the electronic device (such as phonebook data, audio / video data, chat log data, etc.).
[0181] like Figure 14 As shown, this application embodiment also provides a computer-readable storage medium 10, which stores computer program instructions 11, which can be called by a processor to execute the methods described in the above embodiments.
[0182] Computer-readable storage media can be electronic storage devices such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, computer-readable storage media includes non-transitory computer-readable storage medium. Computer-readable storage medium 10 has storage space for program code that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code can be compressed, for example, in a suitable form.
[0183] The above are merely preferred embodiments of this application and are not intended to limit this application in any way. Although this application has disclosed preferred embodiments as above, it is not intended to limit this application. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the technical solution of this application. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of this application without departing from the scope of the technical solution of this application shall still fall within the scope of the technical solution of this application.
Claims
1. A control method for a light-emitting device, characterized in that, The control method is applied to a terminal device configured with a control interface, wherein the terminal device is communicatively connected to a light-emitting device, the light-emitting device including a controller and multiple light-emitting modules, and the control method includes: The target splicing shape is acquired and displayed in the control interface. The target splicing shape includes multiple visual virtual controls. The target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into a physical shape that matches the shape of the target splicing shape. In response to a setting operation on a virtual control selected in the target splicing shape, the setting parameters of the virtual control are recorded; Determine the sorting value of the selected virtual control in the target stitching shape; Control information is obtained based on the setting parameters and the sorting value; the control instructions corresponding to the control information include multiple control fields, and the multiple control fields correspond one-to-one with the multiple light-emitting modules in the entity shape; each control field includes control parameters for the light-emitting module to parse, and the control parameters are determined based on the setting parameters and sorting value of the selected virtual control; Sending control information to the controller, the control information instructing the controller to issue control commands to the target light-emitting module, thereby instructing the controller to control the light emission of the target light-emitting module, wherein the target light-emitting module is the light-emitting module in the entity shape corresponding to the sorting value; wherein, the step of generating the control commands includes: The number of control fields is determined to be N based on the number N of the virtual controls in the target splicing shape, wherein the N control fields are ordered sequentially. Based on the setting parameters and the sorting value, control parameters are configured for each control field to generate control instructions, wherein the sorting order of the control fields configured with control parameters is the same as that of the sorting value.
2. The control method according to claim 1, characterized in that, The step of obtaining control information based on the setting parameters and the sorting value includes: The control information is generated by packaging the setting parameters and the sorting value together. Sending the control information to the controller, the control information being used to instruct the controller to control the light emission of the target light-emitting module, includes: The control information is sent to the controller, which instructs the controller to generate the control command based on the setting parameters and the sorting value, wherein the control command is parsed and executed by the target light-emitting module.
3. The control method according to claim 1, characterized in that, The step of obtaining control information based on the setting parameters and the sorting value includes: Control information is determined based on the setting parameters and the sorting value, and the control information includes the setting parameters of the target light-emitting module corresponding to the sorting value; Control commands are generated based on the control information; Sending the control information to the controller, the control information being used to instruct the controller to control the light emission of the target light-emitting module, includes: The control command is sent to the controller, wherein the control command is parsed and executed by the target light-emitting module.
4. The control method according to any one of claims 1 to 3, characterized in that, The shape of the virtual control is consistent with the shape of the light-emitting module; the light-emitting module is a polygonal structure and includes an edge-emitting unit disposed on at least one side of the polygonal structure; The step of recording the setting parameters of the virtual control in response to the setting operation of the selected virtual control in the target splicing shape includes: In response to the setting operation of the selected edge of the virtual control in the target splicing shape, the setting parameters of the selected edge are recorded; Determining the sorting value of the selected virtual control in the target stitching shape includes: Determine the edge sorting value of the selected edge in the target splicing shape; The control information obtained based on the setting parameters and the sorting value includes: Control information is obtained based on the setting parameters of the selected edge and the edge sorting value; the control information is also used to instruct the controller to control the light emission of the target edge light-emitting unit, the target edge light-emitting unit being the edge light-emitting unit in the entity shape that corresponds to the edge sorting value.
5. The control method according to claim 1, characterized in that, Determining the sorting value of the selected virtual control in the target stitching shape includes: 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.
6. The control method according to any one of claims 1, 3, and 5, characterized in that, The step of acquiring and displaying the target splicing shape in the control interface includes: in response to the splicing setting operation, splicing the virtual controls corresponding to the light-emitting module into the target splicing shape on the control interface.
7. The control method according to claim 6, characterized in that, The step of responding to the splicing setting operation by splicing the virtual controls corresponding to the light-emitting module into a target splicing shape on the control interface includes: Step A: In response to the splicing setup operation, the initial virtual control is determined on the control interface; Step B: Based on the shape of the initial virtual control, generate two or more additional controls around the initial virtual control. The additional controls are used to indicate the display position of the next virtual control. Step C: In response to the add operation, determine the target add position among two or more add controls, and display the next virtual control at the target add position; Step D: Based on the shape of the next virtual control, generate two or more additional controls around the next virtual control, the additional controls being used to indicate the addition position of the next virtual control; In response to the add operation, steps A and D are executed until a 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.
8. A control method for a light-emitting device, characterized in that, The method is applied to a light-emitting device, which includes a controller and multiple light-emitting modules, and is communicatively connected to a terminal device. The multiple light-emitting modules are spliced together according to a target splicing shape to form a solid shape consistent with the shape of the target splicing shape, which is determined by the splicing shape of virtual controls displayed on the control interface of the terminal device. The method includes: The controller receives control information sent by the terminal device, wherein the control information is generated by the terminal device based on the received setting operation of the selected virtual control, and 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 controls the illumination of the target light-emitting module according to the control information. The control instructions corresponding to the control information include multiple control fields, each corresponding one-to-one with a plurality of light-emitting modules within the entity shape. Each control field includes control parameters for the light-emitting module to parse, determined based on the setting parameters and sorting value of the selected virtual control. The control information instructs the controller to send the control instructions to the target light-emitting module, thereby instructing the controller to control the illumination of the target light-emitting module. The target light-emitting module is the light-emitting module within the entity shape corresponding to the sorting value. The step of generating the control command includes: The number of control fields is determined to be N based on the number N of the virtual controls in the target splicing shape, wherein the N control fields are ordered sequentially. Based on the setting parameters and the sorting value, control parameters are configured for each control field to generate control instructions, wherein the sorting order of the control fields configured with control parameters is the same as that of the sorting value.
9. The control method according to claim 8, characterized in that, The controller controls the light emission of the light-emitting module according to the control information, including: The controller generates control commands based on the control information, the setting parameters, and the sorting value; The controller sends the control command to the target light-emitting module; The target light-emitting module parses and executes the control commands.
10. The control method according to claim 8, characterized in that, The control information is a control command generated by the terminal device and directly parsed and executed by the light-emitting module; The controller controls the light emission of the light-emitting module according to the control information, including: The controller sends the control command to the target light-emitting module; The target light-emitting module parses and executes the control commands.
11. The control method according to claim 8, characterized in that, Multiple light-emitting modules are sequentially arranged and spliced together to form a solid shape that is identical to the target splicing shape; The controller sends the control command to the target light-emitting module, including: The controller sends the control command to the first light-emitting module, which is the first light-emitting module among a plurality of light-emitting modules arranged in sequence; The first light-emitting module extracts the first control field from the N control fields of the received control command, and sends the extracted (N-1) control fields to the second light-emitting module, which is the next light-emitting module adjacent to the first light-emitting module in a plurality of sequentially ordered light-emitting modules. The second light-emitting module extracts the first control field from the (N-1) control fields of the received control command, and sends the extracted (N-3) control fields to the third light-emitting module adjacent to the second light-emitting module; …… The (N-1)th light-emitting module extracts the first control field from the two control fields of the received control command and sends the extracted 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 target light-emitting module parses and executes the control commands, including: The light-emitting module that receives the control command parses the control parameters in the intercepted control field and executes them.
12. The control method according to claim 11, characterized in that, The light-emitting module that receives the control command parses and executes the control parameters in the intercepted control field, including: The light-emitting module that receives the control command parses the intercepted control field and obtains the corresponding control parameters; The light-emitting module executes the control parameters in response to a low-level input signal that lasts for a predetermined duration.
13. A control method for a light-emitting device, characterized in that, An application is made in a lighting effect control system, the lighting effect control system including a terminal device and a light-emitting device, the light-emitting device including a controller and multiple light-emitting modules, the terminal device being communicatively connected to the light-emitting device, the method including: The terminal device acquires and displays the target splicing shape in the control interface. The target splicing shape includes multiple visual virtual controls. The target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into a physical shape that matches the shape of the target splicing shape. The terminal device responds to the setting operation of the selected virtual control in the target splicing shape and records the setting parameters of the virtual control; The terminal device determines the sorting value of the selected virtual control in the target splicing shape, and obtains control information based on the setting parameters and the sorting value; The terminal device sends the control information to the controller; The controller receives the control information, wherein the control instruction corresponding to the control information includes multiple control fields, and the multiple control fields correspond one-to-one with multiple light-emitting modules in the entity shape; each control field includes control parameters for the light-emitting module to parse, and the control parameters are determined based on the setting parameters and sorting value of the selected virtual control; the control information is used to instruct the controller to send the control instruction to the target light-emitting module to control the light emission of the target light-emitting module according to the control information, and the target light-emitting module is the light-emitting module in the entity shape corresponding to the sorting value; wherein, the step of generating the control instruction includes: The number of control fields is determined to be N based on the number N of the virtual controls in the target splicing shape, wherein the N control fields are ordered sequentially. Based on the setting parameters and the sorting value, control parameters are configured for each control field to generate control instructions, wherein the sorting order of the control fields configured with control parameters is the same as that of the sorting value.
14. A control device for a light-emitting device, characterized in that, A terminal device with a control interface is configured to operate on the device. The terminal device is communicatively connected to a light-emitting device, which includes a controller and multiple light-emitting modules. The control device includes: A shape acquisition module is used to acquire and display a target splicing shape in the control interface. The target splicing shape includes multiple visual virtual controls. The target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into a solid shape that matches the shape of the target splicing shape. The parameter recording module is used to record the setting parameters of the virtual control in response to the setting operation of the selected virtual control in the target splicing shape; The sorting determination module is used to determine the sorting value of the selected virtual control in the target splicing shape; A control instruction module is used to obtain control information based on the setting parameters and the sorting value; the control instruction corresponding to the control information includes multiple control fields, and the multiple control fields correspond one-to-one with the multiple light-emitting modules in the entity shape; each control field includes control parameters for the light-emitting module to parse, and the control parameters are determined based on the setting parameters and sorting value of the selected virtual control; The instruction sending module is used to send the control information to the controller. The control information is used to instruct the controller to send the control instruction to the target light-emitting module, so as 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 in the entity shape that corresponds to the sorting value. The control command module is specifically used for generating the control commands, including the following steps: The number of control fields is determined to be N based on the number N of the virtual controls in the target splicing shape, wherein the N control fields are ordered sequentially. Based on the setting parameters and the sorting value, control parameters are configured for each control field to generate control instructions, wherein the sorting order of the control fields configured with control parameters is the same as that of the sorting value.
15. A lighting effect control system, characterized in that, The lighting effect control system includes a terminal device and a light-emitting device. The light-emitting device includes a controller and at least one light-emitting module. The terminal device is communicatively connected to the light-emitting device. The terminal device is used to acquire and display a target splicing shape in a control interface. The target splicing shape includes multiple visual virtual controls. The target splicing shape is used to instruct the user to splice the controller and multiple light-emitting modules into a physical shape that is consistent with the shape of the target splicing shape. The terminal device is configured to record the setting parameters of the virtual control in response to a setting operation of the selected virtual control in the target splicing shape; The terminal device is used to determine the sorting value of the selected virtual control in the target splicing shape, obtain control information according to the setting parameters and the sorting value, and send the control information to the controller; the control instruction corresponding to the control information includes multiple control fields, and the multiple control fields correspond one-to-one with the multiple light-emitting modules in the physical shape; each control field includes control parameters for the light-emitting module to parse, and the control parameters are determined based on the setting parameters and sorting value of the selected virtual control; the step of generating the control instruction includes: determining 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 ordered sequentially; configuring control parameters for each control field based on the setting parameters and the sorting value to generate a control instruction, wherein the sorting order of the control fields configured with control parameters is the same as the sorting value; The controller is configured to receive the control information and, based on the indication of the control information, send the control command to the target light-emitting module to instruct the controller to perform light emission control on the target light-emitting module according to the control information. The target light-emitting module is the light-emitting module in the entity shape that corresponds to the sorting value.
16. An electronic device, characterized in that, include: Memory; One or more processors are coupled to the memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the method as described in any one of claims 1 to 12.
17. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program code that can be invoked by a processor to perform the method as described in any one of claims 1 to 12.
Citation Information
Patent Citations
Control method of combined lamp, and illumination system
CN108064110A
Visual modeling interface construction method, device and equipment based on light-emitting diode lamp panel
CN112885292A