Lamp body control method, device, computer device, and storage medium

The lamp body control method and device allow a single control device to manage multiple lamp units by using address and response information, achieving precise and efficient control of lamp units.

JP2025159693AActive Publication Date: 2025-10-21APUTURE IMAGING IND CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2025009400
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-08
Filing Date
2025-01-22
Publication Date
2025-10-21
Estimated Expiration
2045-01-22

AI Technical Summary

Technical Problem

Existing lighting systems require separate lamp control devices for each lamp unit, making it difficult to achieve overall control and accurate control of multiple lamp units.

Method used

A lamp body control method and device that utilizes a single lamp control device to communicate with multiple lamp bodies, using address information and response information to determine which lamp bodies need to perform control operations and send feedback, thereby enabling overall control and improving control accuracy.

Benefits of technology

Enables the simultaneous control of multiple lamp units by a single control device, enhancing control accuracy and efficiency through targeted operations and feedback management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025159693000001_ABST
    Figure 2025159693000001_ABST
Patent Text Reader

Abstract

To realize an overall control of a plurality of lamp bodies by one lamp control device and improve a control accuracy of the lamp bodies.SOLUTION: A lamp body control method includes steps of: receiving lamp control data transmitted from a lamp control device, the lamp control data including first address information, response information, and control data, and characterizing whether the response information needs to transmit feedback data corresponding to the control data to the lamp control device; matching the first address information with pre-stored second address information, where the second address information is address information corresponding to a target lamp body; and performing a control operation corresponding to the control data based on the response information when the first address information matches the second address information.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present application relates to the technical field of lighting devices, and more particularly to a lamp body control method, device, computer device and storage medium. [Background technology]

[0002] With the improvement of people's living standards and the development of lighting technology, the usage scenarios of various lamps such as stage lamps, photography lamps, and landscape lamps are becoming more and more complicated, and the number of lamp units used in each scenario is increasing. However, in the related art, each lamp unit is controlled by one lamp control device, so each lamp unit needs to be provided with one lamp control device, making it difficult to realize the overall control of multiple lamp units. Summary of the Invention [Problem to be solved by the invention]

[0003] The embodiments of the present application provide a lamp body control method, device, computer device and storage medium, which can realize the overall control of multiple lamp bodies with one lamp control device and improve the control accuracy of the lamp bodies. [Means for solving the problem]

[0004] In a first aspect, the present application provides a lamp body control method, the lamp body control method being applied to a target lamp body in a lamp body control system, the lamp body control system comprising a lamp control device and a plurality of lamp bodies communicatively connected to the lamp control device, the target lamp body being one lamp body among the plurality of lamp bodies, the lamp body control method comprising: receiving lamp control data sent from a lamp control device, the lamp control data including first address information, response information and control data, and the response information is for characterizing whether feedback data corresponding to the control data needs to be sent to the lamp control device; The first address information is matched with the pre-stored second address information, and the second address information is address information corresponding to the target lamp body; If the first address information matches the second address information, performing a control operation corresponding to the control data based on the response information.

[0005] In some embodiments of the present application, the lamp control data further includes first number information, and performing a control operation corresponding to the control data based on the response information includes: determining whether feedback data corresponding to the control data needs to be sent to the lamp control device based on the response information; If there is no need to send feedback data corresponding to the control data to the lamp control device, the first number information is matched with the pre-stored second number information, and the second number information is the number information most recently stored in the target lamp body; If the first number information does not match the second number information, executing a control operation corresponding to the control data.

[0006] In some embodiments of the present application, after determining whether feedback data corresponding to the control data needs to be sent to the lamp control device based on the response information: If feedback data corresponding to the control data needs to be sent to the lamp control device, the method includes performing a control operation corresponding to the control data, and sending feedback data corresponding to the control operation to the lamp control device.

[0007] In some embodiments of the present application, the control data includes a first setting instruction, and / or a data reading instruction, and / or an upgrade instruction, and performing a control operation corresponding to the control data and sending feedback data corresponding to the control operation to the lamp control device includes: Execute a first setting operation corresponding to the first setting command, and send a setting result corresponding to the first setting operation to the lamp control device; and / or Determine target data based on the data reading command, package the target data, and send the packaged target data to the lamp control device; and / or Performing an upgrade operation based on the upgrade command, and sending an upgrade result corresponding to the upgrade operation to the lamp control device.

[0008] In some embodiments of the present application, the lamp control data further includes protocol header information and a first check code, and before matching the first address information with the pre-stored second address information, Checking protocol header information to obtain a first check result; If the first check result passes the check, checking the first check code based on the control data to obtain a second check result.

[0009] In a second aspect, the present application provides a lamp body control method, the lamp body control method being applied to a lamp control device in a lamp body control system, the lamp body control system comprising a lamp control device and a plurality of lamp bodies communicatively connected to the lamp control device, the lamp body control method comprising: Obtaining control data and a candidate lamp body corresponding to the control data, and determining that the candidate lamp body is at least one lamp body among a plurality of lamp bodies; determining response information corresponding to the control data, the response information being for characterizing whether feedback data corresponding to the control data needs to be sent to the lamp control device; Package the control data based on the response information and the first address information to obtain the lamp control data, and the first address information is address information corresponding to the candidate lamp body; Sending lamp control data to the plurality of lamp bodies, so that a target lamp body among the plurality of lamp bodies performs a control operation corresponding to the control data based on the first address information and the response information.

[0010] In some embodiments of the present application, determining response information corresponding to the control data comprises: Obtaining a data type of the control data, the data type including a first type and a second type; If the data type is a first type, determining that the response information corresponding to the control data is first information, and the first information is for characterizing that feedback data corresponding to the control data does not need to be sent to the lamp control device; If the data type is a second type, determining that the response information corresponding to the control data is second information, and the second information is for characterizing that feedback data corresponding to the control data needs to be sent to the lamp control device.

[0011] In some embodiments of the present application, when the control data is a first setting command, transmitting the lamp control data to the plurality of lamp bodies includes: The method includes adding lamp control data to a tail node of a pre-established linked list, and transmitting the node data in the linked list to a plurality of lamp bodies according to a first predetermined timing time and a predetermined number of times.

[0012] In some embodiments of the present application, when the control data includes multiple data sub-items and the multiple data sub-items are different first data read instructions, transmitting the lamp control data to multiple lamp bodies includes: determining a timeout period for each data sub-item based on the second timing period for each data sub-item; timeout sorting the plurality of data sub-items based on a timeout time to obtain a timeout sorting result of the plurality of data sub-items; and transmitting the plurality of data sub-items to the plurality of lamp entities based on the timeout sorting results.

[0013] In a third aspect, the present application provides a lamp body control device, the lamp body control device being applied to a target lamp body in a lamp body control system, the lamp body control system comprising a lamp control device and a plurality of lamp bodies communicatively connected to the lamp control device, the target lamp body being one lamp body among the plurality of lamp bodies, the lamp body control device comprising: a data receiving unit for receiving lamp control data sent from a lamp control device, the lamp control data including first address information, response information and control data, and the response information for characterizing whether feedback data corresponding to the control data needs to be sent to the lamp control device; an information matching unit for matching the first address information with pre-stored second address information, the second address information being address information corresponding to a target lamp body; and an operation execution unit for executing a control operation corresponding to the control data based on the response information if the first address information matches the second address information.

[0014] In a fourth aspect, the present application further provides a computer device, the computer device comprising: one or more processors; Memory and and one or more application programs stored in a memory and configured to be executed by a processor to implement the lamp body control method according to any one of the first to third aspects.

[0015] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored therein, the computer program being loaded by a processor to execute the steps in the lamp body control method described in any one of the first to third aspects. [Effects of the Invention]

[0016] The present application matches the first address information with the pre-stored second address information, and when the first address information matches the second address information, executes a control operation corresponding to the control data based on the response information. After the lamp control device sends the lamp control data to multiple lamp bodies, it can determine whether the target lamp body among the multiple lamp bodies will execute the control operation corresponding to the control data based on the first address information, thereby realizing overall control of multiple lamp bodies by one lamp control device. After determining that the control operation corresponding to the control data needs to be executed, it executes the control operation corresponding to the control data based on the response information, thereby improving the control accuracy of the lamp body. [Brief explanation of the drawings]

[0017] In order to more clearly explain the technical solutions of the embodiments of the present application, the drawings necessary for describing the embodiments are briefly described below. Of course, the drawings described below are merely examples of the embodiments of the present application, and those skilled in the art can conceive of other drawings based on these drawings without any creative effort. [Figure 1] 3 is a flowchart of an embodiment of a lamp body control method according to an embodiment of the present application. [Figure 2] 1 is a flowchart of a specific embodiment of performing a control operation based on response information according to an embodiment of the present application; [Figure 3] 4 is a flowchart of a specific embodiment of checking control data according to an embodiment of the present application; [Figure 4] 10 is a flowchart of another embodiment of a lamp body control method according to an embodiment of the present application. [Figure 5] 1 is a flowchart of a specific embodiment of determining response information according to an embodiment of the present application; [Figure 6] 1 is a structural schematic diagram of an embodiment of a lamp body control device according to an embodiment of the present application; [Figure 7] 10 is a structural schematic diagram of another embodiment of a lamp body control device according to an embodiment of the present application. FIG. [Figure 8]FIG. 1 is a structural schematic diagram of an embodiment of a computer device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

[0018] Hereinafter, the technical solutions of the embodiments of the present application will be clearly and completely described with reference to the drawings of the embodiments of the present application, and of course, the described embodiments are only a part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, any other embodiments that a person skilled in the art can obtain without inventive efforts fall within the scope of protection of the present application.

[0019] In the present description, it should be understood that the orientations or positional relationships indicated by the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," etc. are those shown in the drawings and are intended merely to facilitate and simplify the description of the present application. They do not indicate or imply that the devices or elements referred to necessarily have a particular orientation or must be configured or operated in a particular orientation, and therefore should not be understood as limiting the present application. Furthermore, the terms "first," "second," and "third" are merely for descriptive purposes and should not be understood as indicating or implying the relative importance or the number of technical features indicated. Accordingly, a feature qualified by "first," "second," or "third" may explicitly or implicitly include one or more of the aforementioned features. In the present description, unless otherwise clearly and specifically limited, "plurality" means two or more.

[0020] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is provided to enable those skilled in the art to make and use the present application. In the following description, details are set forth for purposes of explanation. It should be understood that those skilled in the art will understand that the present application can be practiced without the use of these specific details. In other embodiments, well-known structures and processes are not described in detail to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.

[0021] It should be noted that the methods according to the embodiments of the present application are executed in a computer device, and therefore, the processing objects of each computer device exist in the form of data or information, for example, time is essentially time information, and it should be understood that in the following embodiments, when dimensions, numbers, positions, etc. are mentioned in order for the computer device to perform processing, they exist in the form of corresponding data, and detailed descriptions thereof will be omitted here.

[0022] Through research, the inventor has found that various conventional lighting devices can basically be divided into two types: (1) those with one lamp body and one control box for controlling the lamp, and (2) those with a lamp body and a control box for controlling the lamp integrated together. Whether it is those with one lamp body and one control box for controlling the lamp, or those with a lamp body and a control box for controlling the lamp integrated together, they all use one lamp control device to control one lamp body, which requires one lamp control device to be installed for each lamp body, making it difficult to achieve overall control of multiple lamp bodies.

[0023] Based on this, in an embodiment of the present application, lamp control data transmitted from a lamp control device is received, the lamp control data includes first address information, response information, and control data, the response information is for characterizing whether feedback data corresponding to the control data needs to be transmitted to the lamp control device, the first address information is matched with pre-stored second address information, the second address information is address information corresponding to a target lamp unit, and if the first address information matches the second address information, a control operation corresponding to the control data is executed based on the response information. In the present application, after the lamp control device transmits lamp control data to multiple lamp units, it can determine whether the target lamp unit among the multiple lamp units executes the control operation corresponding to the control data based on the first address information, thereby realizing overall control of the multiple lamp units by one lamp control device, and after determining that the control operation corresponding to the control data needs to be executed, it executes the control operation corresponding to the control data based on the response information, thereby improving the control accuracy of the lamp units.

[0024] The present invention will be further described below by way of examples with reference to the drawings.

[0025] This embodiment provides a lamp body control method, which is applied to a target lamp body in a lamp body control system, and the lamp body control system includes a lamp control device and a plurality of lamp bodies communicatively connected to the lamp control device, and the target lamp body is one of the plurality of lamp bodies. As shown in FIG. 1, the lamp body control method includes the following steps S10 to S30. Step S10: receive lamp control data sent from the lamp control device; the lamp control data includes first address information, response information and control data, and the response information is for characterizing whether feedback data corresponding to the control data needs to be sent to the lamp control device.

[0026] The lamp control data is data sent by the lamp control device to the controlled lamp body, and in order to realize the overall control of multiple lamp bodies, in this embodiment, one lamp control device is set up to be connected to multiple lamp bodies in communication, and the lamp control device sends the lamp control data to all lamp bodies. For example, if the lamp control device is connected to lamp body 1, lamp body 2, lamp body 3, and lamp body 4 in communication, and the color temperature (CCT) parameters of lamp body 1 and lamp body 4 need to be adjusted, the lamp control device will simultaneously send a CCT setting command to lamp body 1, lamp body 2, lamp body 3, and lamp body 4.

[0027] The lamp control device will send lamp control data to all lamp units, that is, even lamp units that do not need to perform control operations corresponding to the control data will receive the lamp control data. Therefore, in order to prevent lamp units that do not need to perform control operations corresponding to the control data from performing control operations, this embodiment pre-sets address information corresponding to each lamp unit, and the address information is a 32-bit integer type, with each bit corresponding to one lamp unit. As shown in Table 1, when the address is 0x01, it corresponds to lamp unit 1, and when the address is 0x08, it corresponds to lamp unit 4.

[0028] Table 1. Lamp body address information JPEG2025159693000002.jpg45158

[0029] The lamp control data includes first address information, response information and control data, and the first address information is address information corresponding to the lamp body that needs to perform the control operation corresponding to the control data. For example, taking Table 1 as an example, when lamp body 1 and lamp body 4 need to perform the control operation corresponding to the control data, the first address information is 0x01 and 0x08.

[0030] The control data is a control command corresponding to the control operation to be performed, and the control data changes according to the different control operations to be performed by the lamp body. For example, the control data may be a timing CCT setting command, a timing temperature data reading command, a real-time CCT setting command, a real-time temperature data reading command, etc.

[0031] The response information is for characterizing whether feedback data corresponding to the control data needs to be sent to the lamp control device, and the response information changes according to the difference of the control data, for example, when the control data is a timing CCT setting command, the response information is 0, characterizing that feedback data corresponding to the control data does not need to be sent to the lamp control device, and when the control data is a timing temperature data reading command, the response information is 1, characterizing that feedback data corresponding to the control data needs to be sent to the lamp control device.

[0032] In step S20, the first address information is matched with the pre-stored second address information, and the second address information is the address information corresponding to the target lamp body.

[0033] The second address information is the address information corresponding to the target lamp body, for example, taking Table 1 as an example, if the target lamp body is lamp body 1, the second address information is 0x01, and if the target lamp body is lamp body 3, the second address information is 0x04. In this embodiment, after the target lamp body receives the lamp control data sent from the lamp control device, it matches the first address information in the lamp control data with the second address information corresponding to itself, and thereby determines whether it needs to perform the control operation corresponding to the control data.

[0034] Step S30: If the first address information matches the second address information, perform a control operation corresponding to the control data according to the response information.

[0035] Matching of the first address information with the second address information means that the first address information contains the second address information. For example, if the first address information is 0x01 and 0x08 and the second address information is 0x01, the first address information matches the second address information; if the first address information is 0x01 and 0x08 and the second address information is 0x04, the first address information does not match the second address information.

[0036] In this embodiment, the first address information is matched with the second address information, and if the first address information matches the second address information, it is explained that the target lamp body needs to perform the control operation corresponding to the control data, and then it will perform the control operation corresponding to the control data based on the response information; conversely, if the first address information does not match the second address information, it is explained that the target lamp body does not need to perform the control operation corresponding to the control data, and then it will ignore the lamp control data.

[0037] In a specific implementation, the lamp control data further includes first number information, and as shown in FIG. 2, in step S30, the control operation corresponding to the control data is executed according to the response information: Step S31: determining whether feedback data corresponding to the control data needs to be sent to the lamp control device based on the response information; If there is no need to send feedback data corresponding to the control data to the lamp control device, match the first number information with the pre-stored second number information, and the second number information is the number information most recently stored in the target lamp body in step S32; and step S33 of performing a control operation corresponding to the control data if the first number information does not match the second number information.

[0038] When the control data is a timing setting command, such as a timing CCT setting command or a timing color mode (Hue-Saturation-Intensity (Lightness), HSI or HSL) setting command, in order to ensure normal communication between the lamp control device and multiple lamp bodies, the lamp control device will send the lamp control data to the multiple lamp bodies in at least three separate batches. In order to prevent the lamp bodies from repeatedly performing control operations, the lamp control data sent by the lamp control device to the lamp bodies in this embodiment further includes first number information, which is the packet transmission number of the lamp control data.

[0039] After receiving the lamp control data and performing all the control operations corresponding to the lamp control data, the lamp body will store the number information in the lamp control data received this time, and the second number information is the number information most recently stored in the target lamp body. Based on the first number information and the second number information, it can be determined whether the target lamp body has performed the control operations corresponding to the lamp control data.

[0040] Specifically, in this embodiment, when executing a control operation corresponding to the control data based on the response information, first, it is determined based on the response information whether feedback information corresponding to the control data needs to be sent to the lamp control device. If there is no need to send feedback information corresponding to the control data to the lamp control device, the first number information is matched with the second number information. If the first number information does not match the second number information, it is described as having never executed the control operation corresponding to the control data, and then the control operation corresponding to the control data is executed. Conversely, if the first number information matches the second number information, it is described as having executed the control operation corresponding to the control data, and then there is no need to repeatedly execute the control operation corresponding to the control data.

[0041] In a specific implementation, in step S31, after determining whether feedback data corresponding to the control data needs to be sent to the lamp control device according to the response information: If feedback data corresponding to the control data needs to be sent to the lamp control device, the method further includes step S34 of performing a control operation corresponding to the control data and sending feedback data corresponding to the control operation to the lamp control device.

[0042] If the control data is a timing data read / write command, a real-time data read / write command, a real-time setting command, or an upgrade command, feedback data corresponding to the control data needs to be sent to the lamp control device, and at this time, the control operation corresponding to the control data is performed, and feedback data corresponding to the control operation is sent to the lamp control device.

[0043] In a specific implementation, the control data includes a first setting command, and / or a data reading command, and / or an upgrade command; in step S34, performing a control operation corresponding to the control data, and sending feedback data corresponding to the control operation to the lamp control device includes: A step S341 of performing a first setting operation corresponding to the first setting command and sending a setting result corresponding to the first setting operation to the lamp control device; and / or Step S342: determining target data based on the data reading command, packaging the target data, and sending the packaged target data to the lamp control device; and / or Step S343 includes performing an upgrade operation according to the upgrade command, and sending an upgrade result corresponding to the upgrade operation to the lamp control device.

[0044] In a specific implementation, the control data includes at least one of a first setting command, a data reading command, and an upgrade command, where the first setting command is a user-defined real-time setting command, such as a real-time CCT setting command, a real-time HIS setting command, etc., and the data reading command may include a first data reading command and / or a second data reading command, where the first data reading command is a timing data reading command, for example, reading the temperature data of the lamp body every 2 seconds, and the second data reading command is a user-defined real-time data reading command, for example, a temperature data reading command issued by a user to read the temperature data of the lamp body through a lamp control device, and the upgrade command is a command to upgrade the lamp body, which are generally user-defined real-time commands.

[0045] In a specific implementation manner, if the control data includes a first setting command, the step of performing a control operation corresponding to the control data and sending feedback data corresponding to the control operation to the lamp control device specifically includes performing a first setting operation corresponding to the first setting command and sending a setting result corresponding to the first setting operation to the lamp control device. For example, the first setting command is a real-time HSI setting command, and the target lamp body adjusts its own color mode according to the control data and sends the color mode adjustment result to the lamp control device, thereby realizing overall adjustment of the color modes of multiple lamp bodies.

[0046] In another specific implementation manner, if the control data includes a data read command, the step of executing a control operation corresponding to the control data and sending feedback data corresponding to the control operation to the lamp control device specifically includes: determining target data according to the data read command, packaging the target data, and sending the packaged target data to the lamp control device. For example, if the control data is a temperature data read command, determining that the target data is temperature data, packaging the temperature data, and sending the packaged temperature data to the lamp control device, thereby realizing simultaneous data read operations for multiple lamp bodies.

[0047] In another specific implementation manner, when the control data includes an upgrade command, the step of performing a control operation corresponding to the control data and sending feedback data corresponding to the control operation to the lamp control device specifically includes performing an upgrade operation according to the upgrade command and sending an upgrade result corresponding to the upgrade operation to the lamp control device, thereby realizing one lamp control device to control multiple lamp bodies to be upgraded simultaneously, and improving the upgrade efficiency of the lamp bodies.

[0048] In a specific implementation, the lamp control data further includes protocol header information and a first check code. As shown in FIG. 3, before matching the first address information with the pre-stored second address information in step S20, Step S40 of checking protocol header information to obtain a first check result; If the first check result passes the check, the method includes step S50 of checking the first check code based on the control data to obtain a second check result.

[0049] In order to improve the control accuracy of the lamp body, the lamp control data further includes protocol header information and a first check code, and before matching the first address information with the second address information, the protocol header information can be checked to obtain a first check result, and if the first check result passes, the first check code is checked based on the control data to obtain a second check result, and if the second check result passes, the control data received by the target lamp body is deemed complete and accurate, and the first address information is further matched with the second address information. Conversely, if the first check result does not pass or the second check result does not pass, the control data received by the target lamp body is deemed inaccurate, and no operation is performed.

[0050] Specifically, the step of checking the protocol header information may include summing a binary inversion code for the protocol header information, and if the obtained sum result is a predetermined result, determining that the protocol header information has passed the check; conversely, if the obtained sum result is not the predetermined result, determining that the protocol header information has not passed the check. For example, summing a binary inversion code for each 16 bits in the protocol header information, and if the obtained sum result is all 1s, determining that the protocol header information has passed the check; if the sum result is not all 1s, determining that the protocol header information has not passed the check.

[0051] Furthermore, the step of checking the first check code based on the control data may specifically include: generating a second check code based on the control data and a predetermined check polynomial; matching the second check code with the first check code; and determining that the first check code passes the check if the second check code matches the first check code; and conversely, determining that the first check code does not pass the check if the second check code does not match the first check code.

[0052] This embodiment provides a lamp body control method, which is applied to a lamp control device in a lamp body control system, and the lamp body control system includes a lamp control device and a plurality of lamp bodies communicatively connected to the lamp control device. As shown in FIG. 4, the lamp body control method includes the following steps M10 to M40. Step M10: obtain the control data and the candidate lamp body corresponding to the control data, and the candidate lamp body is at least one lamp body among the plurality of lamp bodies.

[0053] The control data is a control command corresponding to the control operation to be performed by the lamp body, and the control data changes according to the different control operations to be performed by the lamp body. For example, the control data may be a timing CCT setting command, a timing temperature data reading command, a real-time CCT setting command, a real-time temperature data reading command, etc.

[0054] The candidate lamp body is a lamp body among the plurality of lamp bodies that needs to perform the control operation corresponding to the control data. For example, if the plurality of lamp bodies include lamp body 1, lamp body 2, lamp body 3 and lamp body 4, and lamp body 1 and lamp body 4 need to perform the control operation corresponding to the control data, the candidate lamp bodies are lamp body 1 and lamp body 4.

[0055] Step M20 is to determine response information corresponding to the control data, and the response information is for characterizing whether feedback data corresponding to the control data needs to be sent to the lamp control device.

[0056] The response information is used to characterize whether feedback data corresponding to the control data needs to be sent to the lamp control device. In this embodiment, in order to generate lamp control data based on the response information in the subsequent step, the lamp control device obtains the control data and the candidate lamp body corresponding to the control data, and then determines the response information corresponding to the control data. For example, if the control data is a timing setting command, the response information is determined to be 0; if the control data is a timing data reading command, a real-time setting command, a real-time data reading command, an upgrade command, etc., the response information is determined to be 1.

[0057] Step M30: package control data according to the response information and the first address information to obtain lamp control data, where the first address information is address information corresponding to the candidate lamp unit.

[0058] The first address information is address information corresponding to the candidate lamp unit, for example, still taking the above Table 1 as an example, if the candidate lamp units are lamp unit 1 and lamp unit 4, the first address information is 0x01 and 0x08. In this embodiment, after the lamp control device determines the response information corresponding to the control data, it packages the control data according to the response information and the address information corresponding to the candidate lamp unit to obtain the lamp control data.

[0059] Step M40: Send the lamp control data to the plurality of lamp units, so that the target lamp unit among the plurality of lamp units performs the control operation corresponding to the control data according to the first address information and the response information.

[0060] In this embodiment, the lamp control device obtains the lamp control data and then transmits the lamp control data to multiple lamp bodies. Since the lamp control data includes first address information and response information, after the multiple lamp bodies receive the lamp control data, they can perform control operations corresponding to the control data based on the first address information and response information, thereby realizing overall control of the multiple lamp bodies.

[0061] In a specific implementation, as shown in FIG. 5, determining response information corresponding to control data in step M20 includes: A step M21 of obtaining a data type of the control data, the data type including a first type and a second type; Step M22: if the data type is a first type, determining that the response information corresponding to the control data is first information, and the first information is for characterizing that feedback data corresponding to the control data does not need to be sent to the lamp control device; and step M23, if the data type is a second type, determining that the response information corresponding to the control data is second information, and characterizing that the second information is for sending feedback data corresponding to the control data to the lamp control device.

[0062] The data type of the control data includes a first type and a second type, where the first type is a data type that does not require feedback data corresponding to the control data to be sent to the lamp control device, and the second type is a data type that requires feedback data corresponding to the control data to be sent to the lamp control device. The control data may be a first setting command (real-time setting command), a second setting command (timing setting command), a first data reading command (timing data reading command), a second data reading command (real-time data reading command), an upgrade command, etc. If the control data is the first setting command, the data type of the control data is the first type, and if the control data is the second setting command, the first data reading command, the second data reading command, an upgrade command, etc., the data type of the control data is the second type.

[0063] The response information includes first information and second information, where the first information is for characterizing that feedback data corresponding to the control data does not need to be sent to the lamp control device, and the second information is for characterizing that feedback data corresponding to the control data needs to be sent to the lamp control device, for example, the first information is 0 and the second information is 1.

[0064] In this embodiment, when determining response information corresponding to control data, first, the data type of the control data is obtained, and if the data type is a first type, it is determined that the response information corresponding to the control data is the first information, and if the data type is a second type, it is determined that the response information corresponding to the control data is the second information. For example, if the control data is a first setting command (real-time setting command), it is determined that the response information corresponding to the control data is 0, and if the control data is a second setting command, it is determined that the response information corresponding to the control data is 1.

[0065] In a specific implementation, when the control data is a first setting command, sending the lamp control data to multiple lamp bodies in step M40 includes: The method includes a step M41 of adding lamp control data to a tail node of a pre-established linked list, and transmitting the node data in the linked list to a plurality of lamp bodies according to a predetermined first timing time and a predetermined number of times.

[0066] When the first setting command is a timing setting command and the lamp control data is the first setting command, when the lamp control data is sent to multiple lamp bodies, the lamp control data may be added to the tail node of a pre-established singly linked list, and the node data in the linked list may be sent to multiple lamp bodies according to a predetermined first timing time and a predetermined number of times. In this embodiment, the lamp control data is sent using a singly linked list, and memory can be released by requesting use when needed and deleting the content after use is completed, thereby making memory use more efficient.

[0067] To ensure that the control data of each packet is transmitted to multiple lamp bodies according to the first-trigger-first-transmit principle, when transmitting node data in the linked list to multiple lamp bodies, the step of transmitting the head node data of the linked list to multiple lamp bodies according to a predetermined first timing time and a predetermined number of times may be performed, and then deleting the head node data of the linked list and moving the data behind the node forward as a whole to replace the head node data, and continuing to transmit the head node data of the linked list to multiple lamp bodies according to a predetermined first timing time and a predetermined number of times until all the node data in the linked list has been transmitted to multiple lamp bodies. For example, the head node data of the linked list is transmitted at a timing of 100 milliseconds, and transmitted three times repeatedly, and after three transmissions, the head node data is deleted and the data behind the node is moved forward as a whole to replace the head node.

[0068] In a specific implementation, when the control data includes multiple data sub-items and the multiple data sub-items are different first data reading commands, sending the lamp control data to multiple lamp bodies in step M40 includes: a step M42 of determining a timeout period for each data sub-item based on the second timing period for each data sub-item; a step M43 of timeout sorting the plurality of data sub-items based on the timeout time to obtain a timeout sorting result of the plurality of data sub-items; and a step M44 of sending the plurality of data sub-items to the plurality of lamp bodies based on the timeout sorting result.

[0069] When the first data read command is a timing data read command, and the control data includes multiple data sub-items, each of which is a different timing data read command, the second timing time of each data sub-item is first obtained, and a timeout time of each data sub-item is determined based on the second timing time. Then, the multiple data sub-items are timeout sorted based on the timeout time to obtain a timeout sorting result of the multiple data sub-items. Finally, the data sub-item with the longest timeout time is determined based on the timeout sorting result, and the data sub-item with the longest timeout time is sent to the multiple lamp units first. For example, when the control data includes a timing temperature read command, a timing rotation speed read command, and a timing error read command, and the timeout sorting result is a timing temperature read command, a timing error read command, and a timing rotation speed read command, the timing temperature read command is sent to the multiple lamp units first.

[0070] In order to better realize the lamp body control method according to the embodiment of the present application, based on the lamp body control method, the embodiment of the present application further provides a lamp body control device, which is applied to a target lamp body in a lamp body control system, the lamp body control system includes a lamp control device and a plurality of lamp bodies communicatively connected to the lamp control device, and the target lamp body is one of the plurality of lamp bodies, as shown in FIG. 6, the lamp body control device 600: a data receiving unit 601 for receiving lamp control data sent from a lamp control device, the lamp control data including first address information, response information and control data, and the response information for characterizing whether feedback data corresponding to the control data needs to be sent to the lamp control device; an information matching unit 602 for matching first address information with pre-stored second address information, where the second address information is address information corresponding to a target lamp body; and an operation execution unit 603 for executing a control operation corresponding to the control data according to the response information if the first address information matches the second address information.

[0071] In the embodiment of the present application, the first address information is matched with the pre-stored second address information, and if the first address information matches the second address information, a control operation corresponding to the control data is executed based on the response information. After the lamp control device sends the lamp control data to multiple lamp bodies, it can determine whether the target lamp body among the multiple lamp bodies will execute the control operation corresponding to the control data based on the first address information, thereby realizing overall control of multiple lamp bodies by one lamp control device. After determining that the control operation corresponding to the control data needs to be executed, the control operation corresponding to the control data is executed based on the response information, thereby improving the control accuracy of the lamp body.

[0072] In some embodiments of the present application, the lamp control data further includes first number information, and the operation execution unit 603 specifically: Determine whether feedback data corresponding to the control data needs to be sent to the lamp control device based on the response information; If there is no need to send feedback data corresponding to the control data to the lamp control device, the first number information is matched with pre-stored second number information, and the second number information is the number information most recently stored in the target lamp body; If the first number information does not match the second number information, a control operation corresponding to the control data is performed.

[0073] In some embodiments of the present application, the operation execution unit 603 specifically further comprises: When feedback data corresponding to the control data needs to be sent to the lamp control device, a control operation corresponding to the control data is performed, and feedback data corresponding to the control operation is sent to the lamp control device.

[0074] In some embodiments of the present application, the control data includes a first setting instruction, and / or a data reading instruction, and / or an upgrade instruction, and the operation execution unit 603 specifically further includes: Execute a first setting operation corresponding to the first setting command, and send a setting result corresponding to the first setting operation to the lamp control device; and / or Determine target data based on the data reading command, package the target data, and send the packaged target data to the lamp control device; and / or for performing an upgrade operation according to the upgrade command, and sending an upgrade result corresponding to the upgrade operation to the lamp control device.

[0075] In some embodiments of the present application, the lamp control data further includes protocol header information and a first check code, and the lamp body control device 600: a first checking unit for checking protocol header information to obtain a first checking result; The device further includes a second check unit for checking the first check code according to the control data to obtain a second check result if the first check result passes the check.

[0076] In order to better realize the lamp body control method according to the embodiment of the present application, based on the lamp body control method, the embodiment of the present application further provides a lamp body control device, which is applied to a lamp control device in a lamp body control system, and the lamp body control system includes a lamp control device and a plurality of lamp bodies communicatively connected to the lamp control device. As shown in FIG. 7, the lamp body control device 700: a data acquisition unit 701 for acquiring control data and candidate lamp bodies corresponding to the control data, the candidate lamp body being at least one lamp body among a plurality of lamp bodies; an information determining unit 702 for determining response information corresponding to the control data, wherein the response information is for characterizing whether feedback data corresponding to the control data needs to be sent to the lamp control device; a data packaging unit 703 for packaging control data according to the response information and first address information to obtain lamp control data, the first address information being address information corresponding to the candidate lamp body; and a data sending unit 704 for sending lamp control data to the plurality of lamp bodies so that a target lamp body among the plurality of lamp bodies performs a control operation corresponding to the control data based on the first address information and the response information.

[0077] In some embodiments of the present application, the information determining unit 702 specifically: Obtaining a data type of the control data, the data type including a first type and a second type; If the data type is a first type, determining that the response information corresponding to the control data is first information, and the first information is for characterizing that feedback data corresponding to the control data does not need to be sent to the lamp control device; If the data type is the second type, it is used to determine that the response information corresponding to the control data is second information, and the second information is used to characterize that feedback data corresponding to the control data needs to be sent to the lamp control device.

[0078] In some embodiments of the present application, if the control data is a first setting command, the data sending unit 704 specifically: The lamp control data is added to a tail node of a pre-established linked list, and the node data in the linked list is sent to a plurality of lamp bodies according to a first predetermined timing time and a predetermined number of times.

[0079] In some embodiments of the present application, when the control data includes multiple data sub-items and the multiple data sub-items are different first data read instructions, the data sending unit 704 specifically: determining a timeout period for each data sub-item based on the second timing period for each data sub-item; timeout sorting the multiple data sub-items based on the timeout time to obtain the timeout sorting results of the multiple data sub-items; and transmitting a plurality of data sub-items to a plurality of lamp bodies based on the timeout sorting results.

[0080] An embodiment of the present application further provides a computer device, and the computer device is integrated with any one of the lamp body control devices according to the embodiments of the present application, and the computer device comprises: one or more processors; Memory and and one or more application programs stored in the memory and configured to cause the processor to execute the steps of the lamp body control method according to any one of the embodiments of the lamp body control method.

[0081] The present embodiment further provides a computer device, which is integrated with any one of the lamp body control devices according to the present embodiment. Figure 8 shows a structural diagram of the computer device according to the present embodiment, specifically: The computer device may include components such as a processor 801 as one or more processing cores, a memory 802 as one or more computer-readable storage media, a power supply 803, and an input unit 804. As will be appreciated by those skilled in the art, the structure of the computer device shown in Figure 8 is not intended to limit the computer device, and the computer device may include more or fewer components than those shown, or may have several or different components arranged in combination.

[0082] Of these, The processor 801 is the control center of the computer device, and connects each part of the entire computer device using various interfaces and circuits, operates or executes software programs and / or modules stored in the memory 802, and accesses data stored in the memory 802 to perform various functions and process data of the computer device, thereby monitoring the computer device as a whole. Optionally, the processor 801 may include one or more processing cores, and preferably, an application processor and a modem processor may be integrated into the processor 801, with the application processor mainly processing the operating system, user interface, application programs, etc., and the modem processor mainly processing wireless communications. As will be understood, the modem processor does not have to be integrated into the processor 801.

[0083] The memory 802 may store software programs and modules, and the processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a storage program area and a storage data area. The storage program area may store an operating system and an application program required for at least one function (e.g., audio playback function, image playback function, etc.), and the storage data area may store data created in accordance with the use of the computer device. The memory 802 may also include high-speed random access memory and may further include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Correspondingly, the memory 802 may further include a memory controller to provide the processor 801 with access to the memory 802.

[0084] The computer device further includes a power supply 803 for supplying power to each component, and preferably, the power supply 803 may be logically connected to the processor 801 through a power management system, thereby realizing functions such as charging, discharging management, and power consumption management in the power management system. The power supply 803 may further include optional components such as one or more DC or AC power sources, a recharging system, a power failure detection circuit, a power strip or inverter, and a power status indicator.

[0085] The computing device may further comprise an input unit 804 for receiving input numeric or textual information and for generating keyboard, mouse, joystick, optical or trackball signal inputs associated with user settings and function control.

[0086] Although not shown, the computer device may be equipped with a display unit or the like, and detailed description thereof will be omitted here. Specifically, in this embodiment, the processor 801 in the computer device instructions for receiving lamp control data transmitted from a lamp control device, the lamp control data including first address information, response information, and control data, the response information being for characterizing whether feedback data corresponding to the control data needs to be transmitted to the lamp control device; An instruction to match the first address information with pre-stored second address information, the second address information being address information corresponding to the target lamp body; and If the first address information matches the second address information, executable files corresponding to the processes of one or more application programs are loaded into memory 802 in accordance with instructions to perform control operations corresponding to the control data based on the response information, and various functions are realized by having processor 801 operate the application programs stored in memory 802.

[0087] As will be understood by those skilled in the art, all or some of the steps in the various methods of the above embodiments may be completed by instructions or by hardware associated with instruction control, and the instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0088] For this purpose, an embodiment of the present application provides a computer-readable storage medium, which may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, etc. A computer program is stored in the computer-readable storage medium, and the computer program is loaded by a processor to execute the steps of any one of the lamp body control methods according to the embodiment of the present application. For example, the computer program is loaded by a processor to: receiving lamp control data sent from a lamp control device, the lamp control data including first address information, response information and control data, and the response information is for characterizing whether feedback data corresponding to the control data needs to be sent to the lamp control device; Matching the first address information with pre-stored second address information, where the second address information is address information corresponding to the target lamp body; and If the first address information matches the second address information, performing a control operation corresponding to the control data based on the response information can be performed.

[0089] In the above embodiments, the descriptions of each embodiment focus on different aspects, so for parts that are not explained in detail in one embodiment, you may refer to the detailed descriptions of other embodiments above, and detailed explanations will be omitted here.

[0090] When specifically implemented, each of the above units or structures may be realized as an independent entity, or may be arbitrarily combined and realized as the same or several entities. For specific implementation of each of the above units or structures, please refer to the above method embodiments, and detailed descriptions will be omitted here.

[0091] The specific implementation of each of the above operations may refer to the above embodiments, and detailed descriptions thereof will be omitted here.

[0092] The above provides a detailed description of the lamp body control method, device, computer device, and storage medium according to the embodiments of the present application, and the present specification describes the principles and embodiments of the present application by applying specific examples. However, the above description of the examples is merely intended to facilitate understanding of the method and core idea of ​​the present application. At the same time, those skilled in the art will recognize that there are changes in the specific embodiments and scope of application based on the idea of ​​the present application. In short, the contents of this specification should not be understood as limiting the present application.

Claims

1. A lamp body control method, The present invention is applied to a target lamp body in a lamp body control system, the lamp body control system comprising a lamp control device and a plurality of lamp bodies communicatively connected to the lamp control device, the target lamp body being one of the plurality of lamp bodies, and the lamp body control method comprising: receiving lamp control data transmitted from the lamp control device, the lamp control data including first address information, response information and control data, the response information being for characterizing whether feedback data corresponding to the control data needs to be transmitted to the lamp control device; The first address information is matched with pre-stored second address information, and the second address information is address information corresponding to the target lamp body; If the first address information matches the second address information, executing a control operation corresponding to the control data based on the response information.

2. The lamp control data further includes first number information, and executing a control operation corresponding to the control data based on the response information is determining whether feedback data corresponding to the control data needs to be sent to the lamp control device based on the response information; If there is no need to transmit feedback data corresponding to the control data to the lamp control device, the first number information is matched with pre-stored second number information, and the second number information is the number information most recently stored in the target lamp body; 2. The lamp control method of claim 1, further comprising: executing a control operation corresponding to the control data when the first number information does not match the second number information.

3. After determining whether feedback data corresponding to the control data needs to be sent to the lamp control device based on the response information, 3. The lamp body control method according to claim 2, further comprising: when feedback data corresponding to the control data needs to be sent to the lamp control device, performing a control operation corresponding to the control data, and sending feedback data corresponding to the control operation to the lamp control device.

4. The control data includes a first setting command, a data reading command, and / or an upgrade command, and performing a control operation corresponding to the control data and sending feedback data corresponding to the control operation to the lamp control device includes: Execute a first setting operation corresponding to the first setting command, and send a setting result corresponding to the first setting operation to the lamp control device; and / or Determine target data based on the data reading command, package the target data, and send the packaged target data to the lamp control device; and / or 4. The lamp control method as claimed in claim 3, further comprising: performing an upgrade operation according to the upgrade command; and sending an upgrade result corresponding to the upgrade operation to the lamp control device.

5. The lamp control data further includes protocol header information and a first check code, and before matching the first address information with pre-stored second address information, Checking the protocol header information to obtain a first check result; 2. The lamp body control method of claim 1, further comprising: if the first check result passes, checking the first check code based on the control data to obtain a second check result.

6. A lamp body control method, The present invention is applied to a lamp control device in a lamp body control system, the lamp body control system comprising the lamp control device and a plurality of lamp bodies communicatively connected to the lamp control device, and the lamp body control method comprises: Obtaining control data and a candidate lamp body corresponding to the control data, and determining that the candidate lamp body is at least one lamp body among the plurality of lamp bodies; determining response information corresponding to the control data, the response information being for characterizing whether feedback data corresponding to the control data needs to be sent to the lamp control device; The control data is packaged based on the response information and the first address information to obtain lamp control data, and the first address information is address information corresponding to the candidate lamp body; A lamp body control method characterized by including: transmitting the lamp control data to the plurality of lamp bodies so that a target lamp body among the plurality of lamp bodies executes a control operation corresponding to the control data based on the first address information and the response information.

7. determining response information corresponding to the control data Obtaining a data type of the control data, the data type including a first type and a second type; If the data type is a first type, determining that response information corresponding to the control data is first information, and the first information is for characterizing that feedback data corresponding to the control data does not need to be sent to the lamp control device; 7. The lamp body control method of claim 6, further comprising: if the data type is a second type, determining that response information corresponding to the control data is second information, and the second information is for characterizing that feedback data corresponding to the control data needs to be sent to the lamp control device.

8. When the control data is a first setting command, transmitting the lamp control data to the plurality of lamp bodies includes: Adding the lamp control data to a tail node of a pre-established linked list, and transmitting the node data in the linked list to the plurality of lamp bodies according to a first predetermined timing period and a predetermined number of times; When the control data includes a plurality of data sub-items and the plurality of data sub-items are different first data read commands, transmitting the lamp control data to the plurality of lamp bodies includes: determining a timeout period for each data sub-item based on the second timing period for each data sub-item; timeout sorting the plurality of data sub-items based on the timeout period to obtain a timeout sorting result of the plurality of data sub-items; 7. The lamp body control method of claim 6, further comprising: transmitting the plurality of data sub-items to the plurality of lamp bodies based on the timeout sorting result.

9. A lamp body control device, The present invention is applied to a target lamp body in a lamp body control system, the lamp body control system comprising a lamp control device and a plurality of lamp bodies communicatively connected to the lamp control device, the target lamp body being one of the plurality of lamp bodies, and the lamp body control device comprising: a data receiving unit for receiving lamp control data sent from the lamp control device, the lamp control data including first address information, response information and control data, and the response information for characterizing whether feedback data corresponding to the control data needs to be sent to the lamp control device; an information matching unit for matching the first address information with pre-stored second address information, the second address information being address information corresponding to the target lamp body; and an operation execution unit for executing a control operation corresponding to the control data based on the response information when the first address information matches the second address information.

10. A computer device, the computer device comprising: one or more processors; Memory and and one or more application programs stored in the memory and configured to be executed by the processor to implement the lamp body control method of any one of claims 1 to 8.

11. 1. A computer-readable storage medium, comprising: A computer-readable storage medium having a computer program stored therein, the computer program being loaded by a processor to execute the steps of the lamp body control method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and apparatus for controlling distributed electrical loads

    EP0038852A1