CN113784477B - Lighting unit control method, lighting unit control device, electronic equipment and storage medium - Google Patents

Lighting unit control method, lighting unit control device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113784477B
CN113784477B CN202110919716.1A CN202110919716A CN113784477B CN 113784477 B CN113784477 B CN 113784477B CN 202110919716 A CN202110919716 A CN 202110919716A CN 113784477 B CN113784477 B CN 113784477B
Authority
CN
China
Prior art keywords
lighting unit
lighting
information
control
lighting units
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110919716.1A
Other languages
Chinese (zh)
Other versions
CN113784477A (en
Inventor
黄家明
吴文龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhiyan Technology Co Ltd
Original Assignee
Shenzhen Zhiyan Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhiyan Technology Co Ltd filed Critical Shenzhen Zhiyan Technology Co Ltd
Priority to CN202110919716.1A priority Critical patent/CN113784477B/en
Publication of CN113784477A publication Critical patent/CN113784477A/en
Application granted granted Critical
Publication of CN113784477B publication Critical patent/CN113784477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/155Coordinated control of two or more light sources
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application discloses a lighting unit control method, a lighting unit control device, electronic equipment and a storage medium, wherein the method comprises the following steps: detecting the plurality of lighting units respectively, and acquiring a spliced shape formed by mutually splicing the plurality of lighting units based on a detection result; respectively acquiring address information of a plurality of lighting units based on the spliced shape; receiving a control instruction for at least one lighting unit of the plurality of lighting units, the control instruction including address information of the at least one lighting unit and status control information of the at least one lighting unit; and transmitting status control information to the at least one lighting unit based on the address information of the at least one lighting unit to control the status of the at least one lighting unit. According to the application, the lighting units are detected to address the lighting units, and the states of the lighting units are controlled based on the addresses of the lighting units, so that different light effects can be set at will based on the address information, and the flexibility and diversity of the light effect setting are improved.

Description

Lighting unit control method, lighting unit control device, electronic equipment and storage medium
Technical Field
The present application relates to the field of lighting technologies, and in particular, to a lighting unit control method, a lighting unit control device, an electronic device, and a storage medium.
Background
With the rapid development of the Internet of things and intelligent control technology, various intelligent lighting products appear like bamboo shoots after raining. At present, a series of lamp products which can be spliced appear on the market, and different lamp effects can be realized to adapt to different requirements of users. However, in the available spliced lamp products, some gradual change, respiration, jump and other lamp effects are performed on the spliced lighting units according to the modes of connection sequence control, integral control and random control, and the control mode has certain limitations and cannot flexibly control the states of the lighting units to form different lamp effects.
Disclosure of Invention
In view of the above, the present application provides a lighting unit control method, apparatus, electronic device and storage medium, so as to solve the above problem.
In a first aspect, an embodiment of the present application provides a lighting unit control method, including: detecting a plurality of illumination units respectively, and acquiring a spliced shape formed by mutually splicing the illumination units based on a detection result; respectively acquiring address information of a plurality of lighting units based on the spliced shape; receiving a control instruction for at least one lighting unit of a plurality of the lighting units, the control instruction comprising address information of the at least one lighting unit and status control information of the at least one lighting unit; and transmitting the state control information to the at least one lighting unit based on the address information of the at least one lighting unit to control the state of the at least one lighting unit.
In a second aspect, an embodiment of the present application provides a lighting unit control apparatus, including: the lighting unit detection module is used for respectively detecting the plurality of lighting units and acquiring a spliced shape formed by mutually splicing the plurality of lighting units based on detection results; the address information acquisition module is used for respectively acquiring address information of the plurality of lighting units based on the splicing shape; a control instruction receiving module for receiving a control instruction for at least one lighting unit of a plurality of the lighting units, the control instruction including address information of the at least one lighting unit and status control information of the at least one lighting unit, and a lighting unit control module for transmitting the status control information to the at least one lighting unit based on the address information of the at least one lighting unit to control the status of the at least one lighting unit.
In a third aspect, embodiments of the present application provide an electronic device, including one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the above-described methods.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having program code stored therein, the program code being callable by a processor to perform the above method.
The embodiment of the application provides a lighting unit control method, a lighting unit control device, electronic equipment and a storage medium, wherein the method comprises the following steps: detecting the plurality of lighting units respectively, and acquiring a spliced shape formed by mutually splicing the plurality of lighting units based on a detection result; respectively acquiring address information of a plurality of lighting units based on the spliced shape; receiving a control instruction for at least one lighting unit of the plurality of lighting units, the control instruction including address information of the at least one lighting unit and status control information of the at least one lighting unit; and transmitting status control information to the at least one lighting unit based on the address information of the at least one lighting unit to control the status of the at least one lighting unit. Therefore, by detecting the lighting units to address the lighting units and controlling the states of the lighting units based on the addresses of the lighting units, different light effects can be set at will based on the address information, and the flexibility and diversity of the light effect setting are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a lighting unit control method according to an embodiment of the application;
fig. 2 is a schematic flow chart of another lighting unit control method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of another lighting unit control method according to an embodiment of the present application;
FIG. 4a is a diagram showing an exemplary structure of a lighting unit according to an embodiment of the present application;
FIG. 4b is a diagram showing another example of the structure of a lighting unit according to an embodiment of the present application;
fig. 5 shows an exemplary diagram of a lighting unit splicing circuit provided by an embodiment of the present application;
FIG. 6 is a diagram showing an exemplary splice shape of a lighting unit according to an embodiment of the present application;
fig. 7 is a schematic flow chart of a control method of a lighting unit according to an embodiment of the present application;
Fig. 8 is a schematic flow chart of step S420 of the lighting unit control method according to the embodiment of the present application;
FIG. 9 illustrates an exemplary diagram of a splice shape of a lighting unit provided by an embodiment of the present application;
fig. 10 is a schematic flow chart of step S430 of the lighting unit control method according to the embodiment of the present application;
fig. 11 is a schematic flowchart of step S433 of the lighting unit control method according to the embodiment of the present application;
FIG. 12a is a diagram showing an example of the establishment of a coordinate system according to an embodiment of the present application;
FIG. 12b is a diagram illustrating an exemplary coordinate system setup provided by an embodiment of the present application;
fig. 13 shows a block diagram of a lighting unit control apparatus provided by an embodiment of the present application;
fig. 14 shows a block diagram of an electronic device for performing a lighting unit control method according to an embodiment of the application;
fig. 15 shows a block diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present application with reference to the accompanying drawings.
With the rapid development of the Internet of things and intelligent control technology, various intelligent lighting products appear like bamboo shoots after raining. At present, a series of lamp products which can be spliced appear on the market, and different lamp effects can be realized to adapt to different requirements of users. However, in the available spliced lamp products, some gradual change, respiration, jump and other lamp effects are performed on the spliced lighting units according to the modes of connection sequence control, integral control and random control, and the control mode has certain limitations, so that the state of the lighting units cannot be flexibly controlled to form the lamp effect wanted by a user, for example, the combined effect of X-axis or Y-axis arrangement control based on a rectangular coordinate system cannot be realized.
In order to solve the problems, the inventor provides the lighting unit control method, the lighting unit control device, the electronic equipment and the storage medium, and the lighting unit is detected to address the lighting unit, so that the state of the lighting unit is controlled based on the address of the lighting unit, different light effects can be set at will based on the address information, and the flexibility and the diversity of the light effect setting are improved. The specific lighting unit control method is described in detail in the following embodiments.
Referring to fig. 1, fig. 1 is a flowchart illustrating a lighting unit control method according to an embodiment of the application. As will be described in detail below with respect to the flowchart shown in fig. 1, the lighting unit control method may specifically include the following steps S110 to S140.
Step S110: and respectively detecting the plurality of lighting units, and acquiring a spliced shape formed by mutually splicing the plurality of lighting units based on a detection result.
In this embodiment, the lighting unit may include an upper case, a lower case, and a bracket, and may be mounted on a wall, a desk, or the like by the bracket. The lighting units can further comprise metal spring plates, and the lighting units can generate an electric connection relation with the adjacent lighting units through the metal spring plates, wherein any two lighting units can be connected through a connecting piece. The lighting unit may include a plurality of sides, such as three sides, four sides, six sides, etc., without limitation. Further, the lighting unit upper case may be further provided with a touch key, so that the state of the lighting unit may be controlled by the touch key.
In the present embodiment, the state of the lighting unit can be controlled based on the address information of the lighting unit by detecting the lighting unit to address the lighting unit. Specifically, the plurality of illumination units may be detected separately, and a splice shape formed by mutually splicing the plurality of illumination units may be obtained based on the detection result. In some embodiments, the connection relationship between the plurality of lighting units may be determined by transmitting information to the plurality of lighting units and by receiving information fed back by the plurality of lighting units, respectively, and thus the splice shape formed by mutually splicing the plurality of lighting units may be determined by the connection relationship between the plurality of lighting units.
Step S120: address information of a plurality of lighting units is acquired based on the splice shape, respectively.
In the present embodiment, address information of a plurality of lighting units may be acquired based on the above-acquired concatenation shapes of the plurality of lighting units, respectively. In some embodiments, the connection relationship and the relative positional relationship of the plurality of lighting units may be determined according to the concatenation shape of the plurality of lighting units, and the address information of the plurality of lighting units may be acquired according to the connection relationship and the relative positional relationship of the plurality of lighting units. Specifically, a coordinate system may be established according to the spliced shapes of the plurality of lighting units, the relative positional relationship between the plurality of lighting units may be determined by the positions of the plurality of lighting units in the coordinate system, then any one lighting unit may be selected for configuration of coordinate information, and the coordinate information of other lighting units may be calculated according to the coordinate information of the lighting unit and the relative positional relationship between the plurality of lighting units, so that the coordinate information of the lighting unit is used as address information of the lighting unit.
Step S130: a control instruction for at least one of the plurality of lighting units is received, the control instruction comprising address information of the at least one lighting unit and status control information of the at least one lighting unit.
In this embodiment, after the address information of the plurality of lighting units is obtained, the plurality of lighting units may be arbitrarily controlled according to the address information of the lighting units, so as to form different light effects. Specifically, a control instruction for at least one of the plurality of lighting units may be received, which may include address information of the at least one lighting unit and status control information of the at least one lighting unit.
In some embodiments, the control instructions may be triggered by different devices. As an embodiment, the control instruction may be triggered by the terminal device, in particular, an application program for controlling the lighting unit may be installed on the terminal device, and the user may send the corresponding control instruction through the application program. As a further embodiment, the control instructions may be triggered by the remote control device, in particular, when purchasing the lighting units, a remote control device controlling the lighting units may be configured at the same time, and the user may trigger the corresponding control instructions by triggering keys on the remote control device. As another embodiment, the control instructions may be triggered by the lighting unit itself, in particular, the surface of the lighting unit may be provided with touch keys, and the user may trigger the corresponding control instructions by touching the touch keys on the lighting unit.
In some embodiments, when a control instruction triggered by a user on a corresponding device is received, the control instruction may be parsed to obtain address information and status control information of a lighting unit to be controlled included in the control instruction. The address information of the lighting unit is obtained in the above manner and is correspondingly stored in the local or cloud of the device. The local or cloud end of the device can also store the corresponding relation between the control instruction and the address information as well as the corresponding relation between the control instruction and the state control information, and the address information and the state control information of the lighting unit corresponding to the control instruction are determined by inquiring the corresponding relation between the control instruction and the address information as well as the state control information. The state control information may include, but is not limited to, lighting up the lighting unit, turning off the lighting unit, controlling the brightness, color, etc. of the lighting unit.
As an example, a user may open an application program for controlling the lighting unit on the terminal device, and when the user selects the "light effect based on the X-axis gradual change" in the application program, the terminal device may trigger the "control instruction based on the X-axis gradual change" according to the selection of the user, and by querying the correspondence between the control instruction stored locally or in the cloud of the terminal device and the address information and the state control information, the address information and the state control information of the lighting unit corresponding to the "control instruction based on the sequential lighting on the X-axis" may be obtained as follows: the address information a1 and the state control information corresponding to the address information a1 are in a color of a2, the address information b1 and the state control information corresponding to the address information b1 are in a color of b2, and the address information c1 and the state control information corresponding to the address information c1 are in a color of c2.
Step S140: based on the address information of the at least one lighting unit, status control information is sent to the at least one lighting unit to control the status of the at least one lighting unit.
In this embodiment, by analyzing the received control instruction to obtain address information of at least one lighting unit and state control information of the at least one lighting unit, the state control information of the at least one lighting unit may be correspondingly sent to the at least one lighting unit based on the address information of the at least one lighting unit, so as to control the state of the at least one lighting unit. Specifically, the lighting unit to be controlled may be determined according to the address information of at least one lighting unit, and the corresponding state control information thereof may be transmitted to the lighting unit to be controlled. For example, the address information and the state control information of the lighting unit corresponding to the control instruction of "sequentially lighting based on the X axis" are: the address information a1 and the state control information corresponding to the address information a1 are in a color of a2, the address information b1 and the state control information corresponding to the address information b1 are in a color of b2, and the address information c1 and the state control information corresponding to the address information c1 are in a color of c2. Then, the lighting unit a to be controlled may be determined from the address information a1, and the state control information may be transmitted to the lighting unit a to control the lighting unit a to display the color a2; determining a lighting unit B to be controlled according to the address information B1, and sending state control information to the lighting unit B to control the lighting unit B to display a color B2; the lighting unit C to be controlled is determined according to the address information C1, and the state control information is transmitted to the lighting unit C to control the lighting unit C to display the color C2.
According to the lighting unit control method provided by the embodiment, the plurality of lighting units are detected respectively, and the spliced shape formed by mutually splicing the plurality of lighting units is obtained based on the detection result; respectively acquiring address information of a plurality of lighting units based on the spliced shape; receiving a control instruction for at least one lighting unit of the plurality of lighting units, the control instruction comprising address information of the at least one lighting unit and status control information of the at least one lighting unit; based on the address information of the at least one lighting unit, status control information is sent to the at least one lighting unit to control the status of the at least one lighting unit. Therefore, by detecting the lighting units to address the lighting units and controlling the states of the lighting units based on the addresses of the lighting units, different light effects can be set at will based on the address information, and the flexibility and diversity of the light effect setting are improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating a control method of a lighting unit according to an embodiment of the application. The following will describe the flow shown in fig. 2 in detail, and the method may specifically include the following steps S210 to S260.
Step S210: and sending inquiry instructions to each of the plurality of lighting units respectively.
In this embodiment, the lighting unit may be detected by sending a query instruction to the lighting unit. Specifically, the query instruction may be sent to each of the plurality of lighting units separately. The lighting units can be physically connected in a serial bus and arbitration line mode, each lighting unit can comprise a plurality of sides, each side is provided with five connection points, and when any two lighting units are spliced, electrical connection relations are generated between any two lighting units. Four connection points of each side are connected in parallel, VCC, GND, TX, RX respectively, and the rest connection points are independent, namely an arbitration line. Further, the arbitration line of each lighting unit is default to 0 level, the main controller can pull up the arbitration line, that is, pull up the level of the arbitration line to 1 level, wherein the 0 level and the 1 level can be logic levels, the 0 level can represent that no signal flows in the circuit, and the 1 level represents that no signal flows in the circuit. When the level of the arbitration line is pulled up to 1 level, the lighting units can be controlled, inquiry instructions can be sent to each lighting unit through the serial bus, and then each lighting unit is waited for replying the inquiry instructions, wherein the lighting units pulled up the arbitration line can reply the inquiry instructions of the main controller.
Step S220: and when receiving reply information fed back by the lighting unit based on the inquiry instruction, distributing identification information for the lighting unit.
In this embodiment, when receiving the reply information fed back by the lighting unit based on the inquiry instruction, the lighting unit may be assigned with the identification information. The identification information may be represented by a number or a character, which is not limited herein. Specifically, when the arbitration line of the lighting unit is pulled up, the reply information may be fed back to the main controller, and when the main controller receives the reply information fed back by the lighting unit, the main controller may assign the identification information to the lighting unit.
In some embodiments, when the number of received reply messages is plural, the identification information may be allocated according to the chronological order of the times of receiving the reply messages. For example, the main controller may allocate the lighting unit corresponding to the received first reply message to the identification information a, allocate the lighting unit corresponding to the received second reply message to the identification information b, and so on, allocate the corresponding identification information to each lighting unit according to the time sequence of the received reply messages.
In some embodiments, when the number of received reply messages is a plurality, the identification information may be allocated according to a connection order between the lighting units. For example, there are three lighting units in total, where lighting unit H1 is connected to the main controller, lighting unit H2 is connected to lighting unit H1, lighting unit H3 is connected to lighting unit H2, and lighting unit H1 connected to the main controller may be assigned identification information of 1, lighting unit H2 has identification information of 2, and lighting unit H3 has identification information of 3.
In some embodiments, when the number of received reply messages is a plurality, the identification information may be allocated in combination with the connection order between the lighting units and the order of the time when the reply messages are received. For example, there are three lighting units in total, where the lighting unit H1 is connected to the main controller, the lighting unit H2 and the lighting unit H3 are both connected to the lighting unit H1, and the main controller receives the reply information of the lighting unit H3 earlier than the reply information of the lighting unit H2, so that the lighting unit H1 connected to the main controller may be assigned with the identification information of 1, the identification information of the lighting unit H3 is 2, and the identification information of the lighting unit H2 is 3. The above three modes are merely examples, and the specific mode may be set according to practical situations, and is not limited herein.
Step S230: based on the identification information, a splice shape formed by mutually splicing the plurality of lighting units is determined.
In this embodiment, after the identification information of the plurality of lighting units is obtained, the splice shape formed by mutually splicing the plurality of lighting units may be determined based on the identification information. As an embodiment, the splice shape formed by mutually splicing the plurality of lighting units may be restored according to the order of the identification information of the plurality of lighting units. The plurality of lighting units may be sequentially connected according to the order of the identification information of the plurality of lighting units, to obtain a spliced shape formed by the plurality of lighting units.
Step S240: address information of a plurality of lighting units is acquired based on the splice shape, respectively.
Step S250: a control instruction for at least one of the plurality of lighting units is received, the control instruction comprising address information of the at least one lighting unit and status control information of the at least one lighting unit.
Step S260: based on the address information of the at least one lighting unit, status control information is sent to the at least one lighting unit to control the status of the at least one lighting unit.
The specific description of step S240 to step S260 refer to step S120 to step S140, and are not repeated here.
Compared with the lighting unit control method shown in fig. 1, the lighting unit control method provided in the above embodiment further distributes identification information to the lighting units according to reply information fed back by the lighting units by sending a query instruction to the lighting units, and determines a splice shape formed by mutually splicing a plurality of lighting units based on the identification information, thereby accurately determining the splice shape formed by the plurality of lighting units and obtaining more accurate address information of the lighting units.
Referring to fig. 3, fig. 3 is a flowchart illustrating another lighting unit control method according to an embodiment of the application. The following will describe in detail the flow shown in fig. 3, and the method may specifically include the following steps S310 to S370.
Step S310: and respectively sending inquiry instructions to each control pin of each lighting unit.
In this embodiment, the lighting unit may include a plurality of control pins, and any two adjacent lighting units may be connected by the control pins. For example, referring to fig. 4, fig. 4a shows an exemplary structure of a lighting unit 210a, where the lighting unit 210a has six sides, and each side has five connection points (only five connection points on the first side are shown in fig. 4a, and the structures of five connection points on the other five sides are consistent with those of five connection points on the first side), and the connection points are used to generate an electrical connection relationship between any two lighting units when any two lighting units are spliced. Four connection points of each side are connected in parallel and are VCC, GND, TX, RX respectively, the rest of one connection point is an independent arbitration line, and the arbitration line of each side corresponds to one control pin inside the lighting unit respectively and is indicated by A, B, C, D, E, F below. Further, fig. 4b shows an exemplary diagram of the structure of the lighting unit 210b, where the lighting unit 210b has four sides, but the structure of each side is identical to that of each side of the lighting unit 210a, and will not be described herein.
The master controller may send a query command to each control pin of each lighting unit to detect each lighting unit, respectively. For example, as shown in lighting unit 210a of fig. 4a, the master controller may send query instructions to control pin a, control pin B, control pin C, control pin D, control pin E, and control pin F, respectively, of lighting unit 210 a.
Step S320: when receiving the reply information fed back by the control pin based on the query instruction, the lighting unit corresponding to the control pin is distributed with identification information.
In this embodiment, when receiving the reply information fed back by the control pin based on the query instruction, the identification information may be allocated to the lighting unit corresponding to the control pin. For example, taking six sides of the lighting units as an example, referring to fig. 5, the main controller 100 may pull up the arbitration line S to send a query command to the control pins of each lighting unit through the serial bus. Wherein the lighting unit 210 is connected to the main controller 100 through the control pin a, and thus the lighting unit 210 may be assigned the identification information of 1. If the main controller 100 receives the reply message fed back by the control pin E based on the query instruction, it may determine that the lighting device 220 is connected to the edge corresponding to the control pin E, and then the identification information may be allocated to the lighting device 220 connected to the edge corresponding to the control pin E as 2.
Step S330: a target control pin is determined from a plurality of control pins of the lighting unit, the target control pin being a control pin that feeds back reply information.
In this embodiment, the target control pin may be determined from a plurality of control pins of the lighting unit, and the target control pin is a control pin for feeding back the reply information. For example, taking six sides of the lighting units as an example, referring to fig. 5, the main controller 100 may pull up the arbitration line S to send a query command to the control pins of each lighting unit through the serial bus. Wherein the lighting unit 210 is connected to the main controller 100 through the control pin a, and thus the lighting unit 210 may be assigned the identification information of 1. The control pin B of the lighting unit 210 is not connected with any lighting unit, at this time, the arbitration line corresponding to the control pin B is not pulled up, the main controller 100 receives the timeout, and can consider that the B side of the lighting unit has no other lighting units, sequentially polls the control pin C, D, E, F in time, when the control pin E is polled, the corresponding arbitration line is pulled up, the main controller 100 can feed back the reply message, and can know that the E side of the lighting unit 210 has one lighting unit 220 through the reply message, and can allocate the identification information to the lighting unit 220 as 2. The query may then continue to determine whether the respective control pins of the lighting unit 220 feedback the reply message, with the control pin that fed back the reply message as the target control pin. Further, as can be obtained from fig. 5, the target control pin of the lighting unit 210 is the control pin E, the target control pin of the lighting unit 220 is the control pin B, and the target control pin of the lighting unit 230 is the control pin C.
Step S340: and determining a splicing shape formed by mutually splicing the plurality of lighting units based on the identification information and the target control pin.
In this embodiment, a splice shape formed by mutually splicing a plurality of lighting units may be determined based on the identification information and the target control pin. Specifically, the connected sides between two lighting units may be determined according to the order of the identification information and the target control pin, and then the lighting units may be connected according to the connected sides between the lighting units. For example, according to fig. 5, it is possible to obtain that the target control pin of the lighting unit 210 is the control pin E, the target control pin of the lighting unit 220 is the control pin B, the target control pin of the lighting unit 230 is the control pin C, the identification information of the lighting unit 210 is 1, the identification information of the lighting unit 220 is 2, the identification information of the lighting unit 230 is 3, and the identification information of the lighting unit 240 is 4. The lighting unit 210 may be determined to be connected to the lighting unit 220 through the edge E according to the target control pin of the lighting unit 210 being E, and the identification information of the lighting unit 210 being 1 and the identification information of the lighting unit 220 being 2; determining that the lighting unit 220 is connected with the lighting unit 230 through the edge B according to the target control pin of the lighting unit 220 being B, the identification information of the lighting unit 220 being 2, and the identification information of the lighting unit 230 being 3; according to the target control pin of the lighting unit 230 being C, the identification information of the lighting unit 230 being 3, and the identification information of the lighting unit 240 being 4, it is determined that the lighting unit 230 is connected to the lighting unit 240 through the side C, and thus the spliced shape as shown in fig. 6 can be obtained.
Step S350: address information of a plurality of lighting units is acquired based on the splice shape, respectively.
Step S360: a control instruction for at least one of the plurality of lighting units is received, the control instruction comprising address information of the at least one lighting unit and status control information of the at least one lighting unit.
Step S370: based on the address information of the at least one lighting unit, status control information is sent to the at least one lighting unit to control the status of the at least one lighting unit.
The specific description of step S350 to step S370 is referred to step S120 to step S140, and will not be repeated here.
In the lighting unit control method provided in the above embodiment, compared with the lighting unit control method shown in fig. 1, in this embodiment, the lighting unit has a plurality of control pins, and the query command is sent to each control pin, and the splice shape formed by mutually splicing the plurality of lighting units is determined according to the control pin feeding back the reply information and the identification information of each lighting unit, so that the splice shape formed by the plurality of lighting units can be accurately determined, and more accurate address information of the lighting units is obtained.
Referring to fig. 7, fig. 7 is a flowchart illustrating a control method of a lighting unit according to an embodiment of the application. The method may specifically include steps S410 to S450, which will be described in detail with respect to the flowchart shown in fig. 7.
Step S410: and respectively detecting the plurality of lighting units, and acquiring a spliced shape formed by mutually splicing the plurality of lighting units based on a detection result.
The specific description of step S410 is referred to step S110, and will not be repeated here.
Step S420: based on the splice shape, edge numbers of a plurality of edges of each of the plurality of lighting units are configured.
After the splice shape formed by mutually splicing the plurality of lighting units is obtained, the address information of each lighting unit can be determined according to the splice shape formed by the plurality of lighting units. In the present embodiment, the lighting units include a plurality of sides, and adjacent lighting units are based on the side adjacency, and therefore, the address information of each lighting unit can be acquired by acquiring the side numbers of the plurality of sides of each lighting unit. Specifically, the edge numbers of the plurality of edges of each of the plurality of lighting units may be configured based on the splice shape of the plurality of lighting units.
In some embodiments, one lighting unit may be selected from the plurality of lighting units, and an edge number may be configured for the lighting unit, where the edge number may be configured randomly, or may be configured by using a predetermined numbering direction or a numbering rule, for example, an edge number may be set by selecting one edge, and then edge numbers of other edges are sequentially and incrementally set according to a counterclockwise direction. According to the lighting unit, the edge numbers of the edges of the other lighting units are set. The setting of the edge numbers of the plurality of edges of the other lighting units may be identical to the setting of the lighting unit, or the setting of the edge numbers of the plurality of edges of the other lighting units may be inconsistent with the setting of the lighting unit, which is not limited herein.
Referring to fig. 8, fig. 8 is a schematic flow chart of step S420 of the lighting unit control method according to the present application, and may specifically include steps S421 to S424.
Step S421: a first lighting unit is determined that is physically connected to the master controller.
In this embodiment, the first lighting unit physically connected to the main controller may be determined first. As an embodiment, a lighting unit connected to the main controller through a connection line may be determined, and the lighting unit may be regarded as the first lighting unit. As another embodiment, a lighting unit connected to the main controller through an arbitration line may be viewed as the first lighting unit.
Step S422: and acquiring the edge connected with the main controller in the plurality of edges of the first lighting unit, recording the edge as a first edge, and setting the edge sequence number of the first edge.
In this embodiment, the first lighting unit physically connected to the main controller is determined, and one of the multiple sides of the first lighting unit, which is connected to the main controller, may be acquired, and is denoted as a first side, and a side number of the first side is set, where the side number may be represented by a number or an letter, and is not limited herein. For example, as shown in the exemplary diagram of the lighting unit splicing shape of fig. 9, physically connected to the main controller 100 is the lighting unit 210, and the side connected to the main controller 100 among the sides of the lighting unit 210, that is, the uppermost side of the lighting unit 210, may be referred to as the first side, and the side number a of the first side may be set.
Step S423: according to the preset numbering direction and the numbering rule, the edge numbers are set in sequence based on the edge numbers of the first edge as other edges of the first lighting unit.
In this embodiment, after determining the edge number of the first edge, the edge numbers may be set in sequence for the other edges of the first lighting unit based on the edge number of the first edge according to the predetermined numbering direction and numbering rule. The numbering direction may be clockwise, counterclockwise, or the like. The numbering rule may be increasing in number along the numbering direction, for example, as shown in fig. 9, the first side of the first lighting unit has a side number a, increasing in clockwise direction, the second side has a side number B, the third side has a side number C, etc.; the numbering rule may also decrease in number along the numbering direction, for example, the first side of the first lighting unit has a side number of 1, decreases in the clockwise direction, the second side has a side number of 0, the third side has a side number of-1, etc.; further, the numbering convention may also be scaled up or down, such as the first side of the first lighting unit having a side number of 1, the second side having a side number of 3, the third side having a side number of 5, etc. scaled up in a clockwise direction. The above numbering directions and numbering rules are examples only and are not limiting herein. The numbering direction and the numbering rule can be set by the system or by the user according to the requirement.
Step S424: the edge numbers of the edges of the second lighting units adjacent to the first lighting unit are set based on the edge numbers of the edges of the first lighting units.
In the present embodiment, the edge numbers of the plurality of edges of the second lighting unit adjacent to the first lighting unit may be set based on the edge numbers of the plurality of edges of the first lighting unit.
In some embodiments, the setting of the edge numbers of the plurality of edges of the second lighting unit adjacent to the first lighting unit may be consistent with the setting of the edge numbers of the first lighting unit. For example, as shown in fig. 9, in the first lighting unit 210, the edge number of the edge connected to the main controller 100 is a, and the edge numbers of the remaining edges are B, C, D, E, F in order, and the second lighting unit adjacent to the first lighting unit 210 includes the lighting unit 220, the lighting unit 230, and the lighting unit 240, where the setting of the edge numbers of the plurality of edges of the lighting unit 220, the lighting unit 230, and the lighting unit 240 may be identical to the setting of the edge numbers of the plurality of edges of the lighting unit 210.
In some embodiments, the edge numbers of the plurality of edges of the second lighting unit may be set according to the edges of the first lighting unit connected to the second lighting unit. For example, as shown in fig. 6, the first side of the first lighting unit 210 has a side number a, the other sides have side numbers B, C, D, E, F in sequence, where the E side of the first lighting unit 210 is adjacent to the lighting unit 220, the side number of the side of the lighting unit 220 adjacent to the E side of the first lighting unit 210 may be set to a, rotated clockwise, and the other sides of the lighting unit 220 have side numbers B, C, D, E, F in sequence.
Step S430: address information of a plurality of lighting units is acquired based on the edge numbers, respectively.
In this embodiment, different sides represent different splicing positions and represent different relative positional relationships, for example, as shown in the exemplary diagram of the splicing shape of the lighting units in fig. 9, where the lighting unit 230 is connected to the side D of the lighting unit 210, it may be explained that the position of the lighting unit 230 is below the lighting unit 210. Accordingly, address information of a plurality of lighting units can be acquired based on the edge numbers, respectively. In some embodiments, the relative positional relationship of a plurality of lighting units may be determined according to the edge number, the address information of any lighting unit may be determined, and the address information of other lighting units may be obtained according to the address information of the lighting unit and the relative positional relationship of the plurality of lighting units.
Referring to fig. 10, fig. 10 is a flowchart illustrating a step S430 of the lighting unit control method according to the present application, and may specifically include steps S431 to S434.
Step S431: an origin lighting unit is determined, wherein the origin lighting unit is any one of a plurality of lighting units.
In the present embodiment, one lighting unit may be optionally selected from a plurality of lighting units as an origin lighting unit. Further, the lighting unit connected to the main controller may also be selected as the origin lighting unit, which is not limited herein.
Step S432: and determining a target lighting unit adjacent to the original point lighting unit, and acquiring a target edge number of a target edge of the target lighting unit connected with the original point lighting unit.
In the present embodiment, it is possible to determine a target lighting unit adjacent to an origin lighting unit and acquire a target edge number of a target edge of the target lighting unit connected to the origin lighting unit. Specifically, a target lighting unit that adjoins the origin lighting unit may be determined from the concatenation shape of lighting units. For example, as shown in fig. 9, the lighting unit 210 connected to the main controller 100 may be set as an origin lighting unit, the edge numbers of the edges connected to the main controller 100 may be set as a, the edge numbers of the other edges may be B, C, D, E, F in order, and the lighting units 220, 230, and 240 may be set as target lighting units adjacent to the origin lighting unit 210, where the setting of the edge numbers of the edges of the lighting units 220, 230, and 240 may be identical to the setting of the edge numbers of the edges of the lighting unit 210. The origin lighting unit 210 is connected with the target lighting unit 220 through the edge E, and a target edge number E of a target edge of the target lighting unit 220 connected with the origin lighting unit can be obtained; the origin lighting unit 210 is connected with the target lighting unit 230 through the edge D, and can acquire the target edge number D of the target edge of the target lighting unit 230 connected with the origin lighting unit; the origin lighting unit 210 is connected to the target lighting unit 240 through the edge C, and may acquire the target edge number C of the target edge of the target lighting unit 240 connected to the origin lighting unit.
Step S433: the coordinate information of the target lighting unit is configured based on the target side number and the coordinate information of the origin lighting unit.
In the present embodiment, the coordinate information of the target lighting unit may be configured based on the target side number and the coordinate information of the origin lighting unit. The relative position relation between the target lighting unit and the original point lighting unit can be determined according to the target edge sequence number, and then the coordinate information of the target lighting unit can be calculated according to the coordinate information of the original point lighting unit.
Referring to fig. 11, fig. 11 is a schematic flow chart of step S433 of the lighting unit control method according to the present application, and may specifically include steps S4331 to S4334.
Step S4331: and establishing a coordinate system by taking the origin lighting unit as an origin.
In the present embodiment, the coordinate system may be established with the origin illumination unit as the origin. Specifically, the coordinate system may be established with the center of the origin illumination unit as the origin. For example, if the lighting unit has six sides, a coordinate system as shown in fig. 12a may be established; if the lighting unit is four sided, a coordinate system as shown in fig. 12b can be established.
Step S4332: and configuring a coordinate rule corresponding to each side of the original point lighting unit based on the coordinate system, and obtaining the corresponding relation between the side serial number of each side and the coordinate rule.
In this embodiment, the coordinate rule corresponding to each side of the origin lighting unit may be configured based on the coordinate system, so as to obtain the correspondence between the side number of each side and the coordinate rule.
As an example, as shown in fig. 12a, coordinates of the origin illumination unit 210a may be set to (X, Y), wherein a side a of the origin illumination unit 210a intersects with a positive half axis of a Y axis of a coordinate system, and a coordinate rule connected to the side a may be configured to (X, y+1); the side B of the origin illumination unit 210a is located in the second quadrant of the coordinate system, and the coordinate rule connected to the side B may be configured as (x+1, y+1); the side C of the origin illumination unit 210a is located in the fourth quadrant of the coordinate system, and the coordinate rule connected to the side C may be configured as (X+1, Y-1); the side D of the origin illumination unit 210a intersects with the negative half axis of the Y axis of the coordinate system, and a coordinate rule connected to the side D may be configured as (X, Y-1); the edge E of the origin illumination unit 210a is located in the third quadrant of the coordinate system, and the coordinate rule connected with the edge E can be configured as (X-1, Y-1); the side F of the origin illumination unit 210a is located in the second quadrant of the coordinate system, and the coordinate rule connected to the side F may be configured as (X-1, y+1). The correspondence between the edge number of each edge and the coordinate rule shown in table 1 can be obtained by the coordinate rule.
TABLE 1
Edge number Coordinates of
A (X,Y+1)
B (X+1,Y+1)
C (X+1,Y-1)
D (X,Y-1)
E (X-1,Y-1)
F (X-1,Y+1)
As an example, as shown in fig. 12b, coordinates of the origin illumination unit 210b may be set to (X, Y), wherein a side a of the origin illumination unit 210b intersects a positive half axis of a Y axis of a coordinate system, and a coordinate rule connected to the side a may be configured to (X, y+1); the side B of the origin illumination unit 210B intersects with the positive half axis of the X axis of the coordinate system, and a coordinate rule connected to the side B may be configured as (x+1, y); the side C of the origin illumination unit 210b intersects with the negative half axis of the Y-axis of the coordinate system, and a coordinate rule connected with the side C may be configured as (X, Y-1); the side D of the origin illumination unit 210b intersects with the negative half axis of the X-axis of the coordinate system, and a coordinate rule connected to the side D may be configured as (X-1, y). The correspondence between the edge number of each edge and the coordinate rule shown in table 2 can be obtained by the coordinate rule.
TABLE 2
Edge number Coordinates of
A (X,Y+1)
B (X+1,Y)
C (X,Y-1)
D (X-1,Y)
Step S4333: and obtaining a target coordinate rule corresponding to the target edge sequence number based on the corresponding relation between the edge sequence number and the coordinate rule.
In this embodiment, the target coordinate rule corresponding to the target edge number may be queried based on the correspondence between the edge number and the coordinate rule.
As an example, as shown in fig. 9, the lighting unit 210 connected to the main controller 100 may be used as an origin lighting unit, and the coordinate system shown in fig. 12a may be established using the lighting unit 210 as an origin, so as to obtain a correspondence relationship between the edge number of each edge of the lighting unit 210 and the coordinate rule as shown in table 1. Wherein, the target edge number of the target edge, which is connected to the origin lighting unit by the target lighting unit 220, is E, which can be obtained according to table 1, and the coordinate rule corresponding to the target edge number E is (X-1, y-1); the target edge number D of the target edge connected to the origin lighting unit by the target lighting unit 230 may be obtained according to table 1, and the coordinate rule corresponding to the target edge number D is (X, Y-1); the target edge number C of the target edge connected to the origin lighting unit by the target lighting unit 240 can be obtained according to table 1, and the coordinate rule corresponding to the target edge number C is (x+1, y-1).
Step S4334: and obtaining coordinate information of the target lighting unit based on the target coordinate rule and the coordinates of the origin lighting unit.
In this embodiment, the coordinate information of the target lighting unit may be obtained based on the target coordinate rule and the coordinates of the origin lighting unit. Specifically, coordinates of the origin lighting unit may be acquired, and coordinate information of the target lighting unit may be calculated according to a target coordinate rule, respectively.
As an example, for example, the coordinates of the origin lighting unit are (0, 0), where the target edge number of the target edge of the target lighting unit 220 connected to the origin lighting unit is E, the coordinate rule corresponding to the target edge number E is (X-1, y-1), and the coordinate information of the target lighting unit 220 may be calculated as (-1, -1); the target edge number of the target edge, which is connected with the origin lighting unit, of the target lighting unit 230 is D, the coordinate rule corresponding to the target edge number D is (X, Y-1), and the coordinate information of the target lighting unit 230 can be calculated to be (0, -1); the target side number of the target side, which is connected to the origin lighting unit by the target lighting unit 240, is C, the coordinate rule corresponding to the target side number C is (x+1, y-1), and the coordinate information of the target lighting unit 240 may be calculated as (1, -1).
Step S434: address information of the target lighting unit is obtained based on the coordinate information of the target lighting unit.
In the present embodiment, the address information of the target lighting unit may be obtained based on the coordinate information of the target lighting unit. In one embodiment, the coordinate information of the target lighting unit may be used as the address information of the target lighting unit. As another embodiment, the polar coordinates of the target lighting unit may be calculated from the coordinate information of the target lighting unit, and the polar coordinates of the target lighting unit may be used as the address information of the target lighting unit.
Step S440: a control instruction for at least one of the plurality of lighting units is received, the control instruction comprising address information of the at least one lighting unit and status control information of the at least one lighting unit.
Step S450: based on the address information of the at least one lighting unit, status control information is sent to the at least one lighting unit to control the status of the at least one lighting unit.
The specific description of step S440 to step S450 is referred to step S130 to step S140, and will not be repeated here.
Compared with the lighting unit control method shown in fig. 1, the lighting unit control method provided in the above embodiment may further configure the edge numbers of the multiple edges of each lighting unit based on the splicing shape, and acquire the address information of the multiple lighting units based on the edge numbers, so that more accurate address information of the lighting units may be acquired, and flexible and various lighting effects may be realized through the address information of the lighting units.
Referring to fig. 13, fig. 13 is a block diagram illustrating a lighting unit control apparatus 300 according to an embodiment of the application. The block diagram described with respect to fig. 13 will be explained below, and the lighting unit control apparatus 300 includes: a lighting unit detection module 310, an address information acquisition module 320, a control instruction receiving module 330, and a lighting unit control module 340, wherein:
the lighting unit detection module 310 is configured to detect a plurality of lighting units respectively, and obtain a splice shape formed by mutually splicing the plurality of lighting units based on a detection result.
Further, the lighting unit detection module 310 includes: an instruction sending sub-module, an identification allocation sub-module and a shape determination sub-module, wherein:
the instruction sending sub-module is used for respectively sending inquiry instructions to each lighting unit in the plurality of lighting units.
Further, the lighting unit includes a plurality of control pins, connects through the control pin between arbitrary adjacent two lighting units, and instruction send submodule includes: an instruction transmitting unit, wherein:
the instruction sending unit is used for sending query instructions to each control pin of each lighting unit respectively.
The identification allocation sub-module is used for allocating identification information to the lighting units when receiving reply information fed back by the lighting units based on the inquiry instruction.
Further, the identification allocation submodule includes: an identification allocation unit, wherein:
the identification allocation unit is used for allocating identification information to the lighting units corresponding to the control pins when receiving the reply information fed back by the control pins based on the query instruction.
And the shape determining sub-module is used for determining a splicing shape formed by mutually splicing the plurality of lighting units based on the identification information.
Further, the shape determination sub-module includes: a pin determination unit and a shape determination unit, wherein:
and the pin determining unit is used for determining a target control pin from a plurality of control pins of the lighting unit, wherein the target control pin is a control pin for feeding back reply information.
And the shape determining unit is used for determining a splicing shape formed by mutually splicing the plurality of lighting units based on the identification information and the target control pin.
The address information obtaining module 320 is configured to obtain address information of the plurality of lighting units based on the concatenation shape.
Further, the lighting units include a plurality of sides, and the adjacent lighting units are adjacent based on the sides, and the address information obtaining module 320 includes: the serial number configuration sub-module and the information acquisition sub-module, wherein:
the serial number configuration sub-module is used for configuring the edge serial numbers of the edges of each lighting unit in the plurality of lighting units based on the splicing shape.
Further, the sequence number configuration submodule includes: the lighting unit determining unit, the first serial number setting unit, the second serial number setting unit and the third serial number setting unit, wherein:
and the lighting unit determining unit is used for determining a first lighting unit connected with the main controller.
And the first serial number setting unit is used for acquiring the edge connected with the main controller in the plurality of edges of the first lighting unit, marking the edge as the first edge and setting the edge serial number of the first edge.
And the second serial number setting unit is used for sequentially setting the serial numbers of the other sides of the first lighting unit based on the serial numbers of the first side according to the preset numbering direction and numbering rule.
And the third serial number setting unit is used for setting the serial numbers of the edges of the second lighting units adjacent to the first lighting units based on the serial numbers of the edges of the first lighting units.
And the information acquisition sub-module is used for respectively acquiring address information of the plurality of lighting units based on the edge sequence numbers.
Further, the information acquisition submodule includes: the system comprises a lighting unit determining unit, a serial number acquiring unit, a coordinate configuring unit and an information acquiring unit, wherein:
and an illumination unit determination unit configured to determine an origin illumination unit, wherein the origin illumination unit is any one of a plurality of illumination units.
And the sequence number acquisition unit is used for determining a target lighting unit adjacent to the original point lighting unit and acquiring a target edge sequence number of a target edge of the target lighting unit connected with the original point lighting unit.
And a coordinate configuration unit configured to configure coordinate information of the target lighting unit based on the target side number and the coordinate information of the origin lighting unit.
And an information acquisition unit for obtaining address information of the target lighting unit based on the coordinate information of the target lighting unit.
Further, the information acquisition unit includes: a coordinate system establishment subunit, a rule configuration subunit, a rule determination subunit, and an information acquisition subunit, wherein:
and the coordinate system establishment subunit is used for establishing a coordinate system by taking the origin illumination unit as an origin.
And the rule configuration subunit is used for configuring the coordinate rule corresponding to each side of the original point lighting unit based on the coordinate system to obtain the corresponding relation between the side serial number of each side and the coordinate rule.
And the rule determining subunit is used for obtaining the target coordinate rule corresponding to the target edge sequence number based on the corresponding relation between the edge sequence number and the coordinate rule.
And the information acquisition subunit is used for acquiring the coordinate information of the target lighting unit based on the target coordinate rule and the coordinates of the origin lighting unit.
The control instruction receiving module 330 is configured to receive a control instruction for at least one lighting unit of the plurality of lighting units, where the control instruction includes address information of the at least one lighting unit and status control information of the at least one lighting unit.
The lighting unit control module 340 is configured to send status control information to the at least one lighting unit based on address information of the at least one lighting unit, so as to control a status of the at least one lighting unit.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided by the present application, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
Referring to fig. 14, a block diagram of an electronic device 400 according to an embodiment of the application is shown. The electronic device 400 of the present application may include one or more of the following components: a processor 410, a memory 420, and one or more application programs, wherein the one or more application programs may be stored in the memory 420 and configured to be executed by the one or more processors 410, the one or more program(s) configured to perform the method as described in the foregoing method embodiments.
Wherein the processor 410 may include one or more processing cores. The processor 410 utilizes various interfaces and lines to connect various portions of the overall electronic device 400, perform various functions of the electronic device 400, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 420, and invoking data stored in the memory 420. Alternatively, the processor 410 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 410 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 410 and may be implemented solely by a single communication chip.
The Memory 420 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Memory 420 may be used to store instructions, programs, code sets, or instruction sets. The memory 420 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The stored data area may also be data created by the electronic device 400 in use (e.g., phonebook, audiovisual data, chat log data), etc.
Referring to fig. 15, a block diagram of a computer readable storage medium according to an embodiment of the application is shown. The computer readable storage medium 500 has stored therein program code that can be invoked by a processor to perform the methods described in the method embodiments described above.
The computer readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 500 comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 500 has storage space for program code 510 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 510 may be compressed, for example, in a suitable form.
In summary, according to the lighting unit control method, the lighting unit control device, the electronic device and the storage medium provided by the embodiment of the application, the plurality of lighting units are respectively detected, and the spliced shape formed by mutually splicing the plurality of lighting units is obtained based on the detection result; respectively acquiring address information of a plurality of lighting units based on the spliced shape; receiving a control instruction for at least one lighting unit of the plurality of lighting units, the control instruction including address information of the at least one lighting unit and status control information of the at least one lighting unit; and transmitting status control information to the at least one lighting unit based on the address information of the at least one lighting unit to control the status of the at least one lighting unit. Therefore, by detecting the lighting units to address the lighting units and controlling the states of the lighting units based on the addresses of the lighting units, different light effects can be set at will based on the address information, and the flexibility and diversity of the light effect setting are improved.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be appreciated by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (9)

1. A lighting unit control method, wherein the lighting unit includes a plurality of sides, adjacent lighting units being adjoined based on the sides, the method comprising:
transmitting information to each of a plurality of the lighting units, respectively;
when receiving reply information fed back by the lighting units based on the information, determining a splicing shape formed by mutually splicing a plurality of lighting units based on the reply information;
configuring an edge number of a plurality of edges of each of the plurality of lighting units based on the splice shape;
respectively acquiring address information of a plurality of lighting units based on the edge sequence numbers;
receiving a control instruction for at least one lighting unit of a plurality of the lighting units, the control instruction comprising address information of the at least one lighting unit and status control information of the at least one lighting unit; and
the status control information is sent to the at least one lighting unit based on the address information of the at least one lighting unit to control the status of the at least one lighting unit.
2. The method of claim 1, wherein the separately sending information to each of the plurality of lighting units comprises:
Sending inquiry instructions to each of a plurality of lighting units respectively;
when receiving the reply information fed back by the lighting units based on the information, determining a splicing shape formed by mutually splicing a plurality of lighting units based on the reply information, wherein the method comprises the following steps:
when receiving reply information fed back by the lighting unit based on the inquiry instruction, distributing identification information to the lighting unit; and
and determining a splicing shape formed by mutually splicing a plurality of the lighting units based on the identification information.
3. The method of claim 2, wherein the lighting units comprise a plurality of control pins, any two adjacent lighting units being connected by a control pin;
the sending a query instruction to each of a plurality of the lighting units includes:
sending a query instruction to each control pin of each lighting unit respectively;
and when receiving the reply information fed back by the lighting unit based on the inquiry instruction, distributing identification information to the lighting unit, wherein the method comprises the following steps:
when receiving reply information fed back by the control pins based on the query instruction, distributing identification information to the lighting units corresponding to the control pins;
The determining, based on the identification information, a splice shape formed by mutually splicing a plurality of lighting units, includes:
determining a target control pin from a plurality of control pins of the lighting unit, wherein the target control pin is a control pin for feeding back the reply information; and
and determining a splicing shape formed by mutually splicing a plurality of lighting units based on the identification information and the target control pin.
4. A method according to any one of claims 1-3, wherein configuring an edge number of a plurality of edges of each of a plurality of the lighting units based on the splice shape comprises:
determining a first lighting unit in physical connection with the master controller;
acquiring edges connected with the main controller in a plurality of edges of the first lighting unit, marking the edges as first edges, and setting edge serial numbers of the first edges;
sequentially setting edge numbers for other edges of the first lighting unit based on the edge numbers of the first edge according to a preset numbering direction and a numbering rule; and
and setting the edge numbers of the edges of the second lighting units adjacent to the first lighting units based on the edge numbers of the edges of the first lighting units.
5. The method of claim 4, wherein the obtaining address information of the plurality of lighting units based on the edge numbers, respectively, comprises:
determining an origin lighting unit, wherein the origin lighting unit is any one of a plurality of lighting units;
determining a target lighting unit adjacent to the original point lighting unit, and acquiring a target edge sequence number of a target edge connected with the original point lighting unit by the target lighting unit;
configuring coordinate information of the target lighting unit based on the target edge number and the coordinate information of the origin lighting unit; and
and obtaining the address information of the target lighting unit based on the coordinate information of the target lighting unit.
6. The method of claim 5, wherein the configuring the coordinate information of the target lighting unit based on the target edge number and the coordinate information of the origin lighting unit comprises:
establishing a coordinate system by taking the origin lighting unit as an origin;
configuring a coordinate rule corresponding to each side of the origin lighting unit based on the coordinate system to obtain a corresponding relation between the side serial number of each side and the coordinate rule;
Obtaining a target coordinate rule corresponding to the target edge sequence number based on the corresponding relation between the edge sequence number and the coordinate rule; and
and obtaining coordinate information of the target lighting unit based on the target coordinate rule and the coordinates of the origin lighting unit.
7. A lighting unit control apparatus, wherein the lighting units comprise a plurality of sides, adjacent lighting units being contiguous based on the sides, the apparatus comprising:
the lighting unit detection module is used for respectively sending information to each lighting unit in the plurality of lighting units, and determining a splicing shape formed by mutually splicing the plurality of lighting units based on the reply information when receiving the reply information fed back by the lighting units based on the information;
the address information acquisition module is used for configuring edge serial numbers of a plurality of edges of each lighting unit in the plurality of lighting units based on the splicing shape, and respectively acquiring address information of the plurality of lighting units based on the edge serial numbers;
a control instruction receiving module for receiving a control instruction for at least one lighting unit of a plurality of the lighting units, the control instruction including address information of the at least one lighting unit and status control information of the at least one lighting unit; and
And the lighting unit control module is used for sending the state control information to the at least one lighting unit based on the address information of the at least one lighting unit so as to control the state of the at least one lighting unit.
8. An electronic device, comprising:
one or more processors;
a memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is callable by a processor for executing the method according to any one of claims 1-6.
CN202110919716.1A 2021-08-11 2021-08-11 Lighting unit control method, lighting unit control device, electronic equipment and storage medium Active CN113784477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110919716.1A CN113784477B (en) 2021-08-11 2021-08-11 Lighting unit control method, lighting unit control device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110919716.1A CN113784477B (en) 2021-08-11 2021-08-11 Lighting unit control method, lighting unit control device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113784477A CN113784477A (en) 2021-12-10
CN113784477B true CN113784477B (en) 2023-11-03

Family

ID=78837354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110919716.1A Active CN113784477B (en) 2021-08-11 2021-08-11 Lighting unit control method, lighting unit control device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113784477B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679830B (en) * 2022-04-01 2023-04-07 深圳市飞腾云科技有限公司 Spliced lamp system
CN117156646B (en) * 2023-10-27 2024-01-30 深圳市千岩科技有限公司 Spliced lamp, controller thereof, and method and device for generating lamp effect signals

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102217415A (en) * 2008-11-13 2011-10-12 皇家飞利浦电子股份有限公司 Lighting system with a plurality of leds
US9228730B1 (en) * 2013-03-12 2016-01-05 The United States Of America As Represented By The Secretary Of The Air Force Variable radius multi-lamp illumination system
CN107304979A (en) * 2016-04-22 2017-10-31 纳米格有限公司 Configurable flat lighting device
CN108064110A (en) * 2017-12-29 2018-05-22 欧普照明股份有限公司 The control method and lighting system of combination lamp
CN109410785A (en) * 2018-12-26 2019-03-01 湖南合利来智慧显示科技有限公司 A kind of flexibility can arbitrarily splice the LED display module of shape
CN208794173U (en) * 2018-09-11 2019-04-26 宁波凯耀电器制造有限公司 A kind of sliceable combination lamp
CN110100503A (en) * 2017-01-02 2019-08-06 昕诺飞控股有限公司 For controlling the lighting system of LED array
CN111405736A (en) * 2020-03-09 2020-07-10 广州市珠江灯光科技有限公司 Centralized management method and device for lamps
CN112004284A (en) * 2020-09-14 2020-11-27 晓能互联科技(深圳)有限公司 Address positioning system and method for LED lamp string

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8810359B2 (en) * 2010-06-23 2014-08-19 Lumenpulse Lighting, Inc. Assembling and controlling light unit arrays
WO2019128884A1 (en) * 2017-12-29 2019-07-04 苏州欧普照明有限公司 Control method for combined lamp, and illumination system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102217415A (en) * 2008-11-13 2011-10-12 皇家飞利浦电子股份有限公司 Lighting system with a plurality of leds
US9228730B1 (en) * 2013-03-12 2016-01-05 The United States Of America As Represented By The Secretary Of The Air Force Variable radius multi-lamp illumination system
CN107304979A (en) * 2016-04-22 2017-10-31 纳米格有限公司 Configurable flat lighting device
CN110100503A (en) * 2017-01-02 2019-08-06 昕诺飞控股有限公司 For controlling the lighting system of LED array
CN108064110A (en) * 2017-12-29 2018-05-22 欧普照明股份有限公司 The control method and lighting system of combination lamp
CN208794173U (en) * 2018-09-11 2019-04-26 宁波凯耀电器制造有限公司 A kind of sliceable combination lamp
CN109410785A (en) * 2018-12-26 2019-03-01 湖南合利来智慧显示科技有限公司 A kind of flexibility can arbitrarily splice the LED display module of shape
CN111405736A (en) * 2020-03-09 2020-07-10 广州市珠江灯光科技有限公司 Centralized management method and device for lamps
CN112004284A (en) * 2020-09-14 2020-11-27 晓能互联科技(深圳)有限公司 Address positioning system and method for LED lamp string

Also Published As

Publication number Publication date
CN113784477A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
CN113784477B (en) Lighting unit control method, lighting unit control device, electronic equipment and storage medium
TWI712295B (en) Method, device and system for binding user terminal and equipment
US10013051B2 (en) Modular apparatus and system for reconfigurable user inputs
CN108563518A (en) Master-slave machine communication method, device, terminal equipment and storage medium
CN110719345B (en) Virtual machine MAC address generation method, system, equipment and computer medium
CN108664429B (en) Master-slave configuration communication protocol, method for improving compatibility and electronic equipment
CN107018093B (en) Inter-board communication device and method in distributed equipment
CN107943771B (en) Response text generation method, device, server and computer readable medium
CN107943363A (en) Background image configuration method and device, interactive intelligent panel and storage medium
CN110704350A (en) Resource management method and device, electronic equipment and storage medium
CN110995817B (en) Request callback method and device and client equipment
CN111064786A (en) Account identifier management method and device
CN110413243A (en) A kind of control method and transponder of smart machine
CA2870914C (en) Modular apparatus and system for reconfigurable user inputs
WO2024082671A1 (en) Method and apparatus for using pcie interface compatibly with yinshan card, non-volatile readable storage medium, and device
US11392174B2 (en) Docking apparatus communication
CN111245790A (en) Bit-by-bit configuration method and device of message data, storage medium and electronic equipment
CN104104594A (en) Methods of transmitting and receiving protocol message of VSU, devices and system
CN112000241B (en) Operation recognition method and device, storage medium and electronic device
CN115551153A (en) Configuration method and device of light-emitting module, electronic equipment and storage medium
CN111737181A (en) Heterogeneous processing equipment, system, port configuration method, device and storage medium
CN109871277B (en) Inter-process multi-request management method and device, terminal equipment and readable storage medium
US20140359193A1 (en) Interface transmission device
CN104168290A (en) Terminal registration method and register server
CN104932854B (en) A kind of information processing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant