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

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

Info

Publication number
CN113784477A
CN113784477A CN202110919716.1A CN202110919716A CN113784477A CN 113784477 A CN113784477 A CN 113784477A CN 202110919716 A CN202110919716 A CN 202110919716A CN 113784477 A CN113784477 A CN 113784477A
Authority
CN
China
Prior art keywords
lighting unit
lighting
control
information
unit
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.)
Granted
Application number
CN202110919716.1A
Other languages
Chinese (zh)
Other versions
CN113784477B (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

Images

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: the method comprises the steps of respectively detecting a plurality of lighting units, and acquiring a splicing shape formed by mutually splicing the lighting units based on a detection result; respectively acquiring address information of a plurality of lighting units based on the splicing 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 state 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. This application is through detecting the lighting unit in order to addressing the lighting unit, based on lighting unit's address control lighting unit's state to can set up different lamp effeciencies wantonly based on address information, promote the flexibility and the variety that the lamp effeciency set up.

Description

Lighting unit control method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of lighting technologies, and in particular, to a method and an apparatus for controlling a lighting unit, 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 in spring after rain. A series of lamp products which can be spliced appear in the market at present, and different lamp effects can be realized to adapt to different requirements of users. However, in the lamp products which can be spliced in the market, some lamp effects such as gradual change, breathing, jumping and the like are performed on the illumination units which can be spliced according to the modes of connection sequence control, overall control and random control, and the control mode has certain limitation, and the state of the illumination units cannot be flexibly controlled to form different lamp effects.
Disclosure of Invention
In view of the above problems, the present application provides a lighting unit control method, apparatus, electronic device and storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides a lighting unit control method, including: respectively detecting the plurality of lighting units, and acquiring a splicing shape formed by mutually splicing the plurality of lighting units based on the detection result; respectively acquiring address information of a plurality of lighting units based on the splicing shape; receiving a control instruction for at least one 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 sending 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 lighting units and acquiring a splicing shape formed by mutually splicing the lighting units based on the detection result; an address information acquisition module for respectively acquiring address information of the plurality of lighting units based on the mosaic shape; the lighting system comprises a control instruction receiving module and a lighting unit control module, wherein the control instruction receiving module is used for receiving a control instruction aiming at least one lighting unit in the plurality of lighting units, the control instruction comprises address information of the at least one lighting unit and state control information of the at least one lighting unit, 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.
In a third aspect, an embodiment of the present application provides 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, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute 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: the method comprises the steps of respectively detecting a plurality of lighting units, and acquiring a splicing shape formed by mutually splicing the lighting units based on a detection result; respectively acquiring address information of a plurality of lighting units based on the splicing 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 state 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. Thereby through detecting the lighting unit in order to address the lighting unit, based on the address control lighting unit's of lighting unit state, can realize setting up different lamp effeciencies wantonly based on address information, promote the flexibility and the variety that the lamp effeciency set up.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating a method for controlling a lighting unit according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating a further lighting unit control method provided by an embodiment of the present application;
fig. 3 is a schematic flow chart illustrating another lighting unit control method provided by an embodiment of the present application;
FIG. 4a is a diagram illustrating an exemplary structure of a lighting unit according to an embodiment of the present application;
fig. 4b is a diagram illustrating a further example of the structure of the lighting unit provided by the embodiment of the present application;
fig. 5 is a diagram illustrating an example of a circuit for splicing illumination units provided by an embodiment of the present application;
FIG. 6 is a diagram illustrating an example of a mosaic shape of lighting units provided by embodiments of the present application;
fig. 7 is a schematic flow chart illustrating a further lighting unit control method provided by an embodiment of the present application;
fig. 8 is a flowchart illustrating step S420 of a lighting unit control method provided in an embodiment of the present application;
fig. 9 illustrates a further example view of a mosaic shape of lighting units provided by embodiments of the present application;
fig. 10 is a flowchart illustrating a step S430 of a lighting unit control method provided by an embodiment of the present application;
fig. 11 shows a flowchart of step S433 of a lighting unit control method provided in an embodiment of the present application;
FIG. 12a is a diagram illustrating an example of coordinate system establishment provided by an embodiment of the present application;
FIG. 12b is a diagram illustrating an example of coordinate system establishment provided by an embodiment of the present application;
fig. 13 shows a block diagram of a lighting unit control apparatus provided in an embodiment of the present application;
fig. 14 shows a block diagram of an electronic device for executing a lighting unit control method according to an embodiment of the present 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 make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the rapid development of the internet of things and intelligent control technology, various intelligent lighting products appear like bamboo shoots in spring after rain. A series of lamp products which can be spliced appear in the market at present, and different lamp effects can be realized to adapt to different requirements of users. However, in the lamp products which can be spliced in the market, some lamp effects such as gradual change, breathing, jumping and the like are performed on the illumination units which can be spliced according to the modes of connection sequence control, overall control and random control, and such control mode has certain limitation, and the state of the illumination units cannot be flexibly controlled to form the lamp effect which the user wants, for example, the combined effect of the arrangement control of the X axis or the Y axis based on the rectangular coordinate system cannot be realized.
In view of the above problems, the inventor proposes a method and an apparatus for controlling a lighting unit, an electronic device, and a storage medium, according to the embodiments of the present application, by detecting the lighting unit to address the lighting unit, and controlling the state of the lighting unit based on the address of the lighting unit, it is possible to arbitrarily set different lamp effects based on address information, and improve flexibility and diversity of lamp effect settings. The specific lighting unit control method is explained in detail in the following embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for controlling a lighting unit according to an embodiment of the present disclosure. As will be explained in detail with respect to the flow 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 splicing shape formed by mutually splicing the plurality of lighting units based on the detection result.
In this embodiment, the lighting unit may include an upper case, a lower case, and a bracket, and the lighting unit may be mounted on an object such as a wall, a desk, etc. through the bracket. The lighting unit can also comprise a metal elastic sheet, the lighting unit can be electrically connected with the adjacent lighting units through the metal elastic sheet, and any two lighting units can be connected through a connecting piece. The lighting unit may include a plurality of sides, for example, 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 this embodiment, the state of the lighting unit may be controlled based on address information of the lighting unit by detecting the lighting unit to address the lighting unit. Specifically, the plurality of lighting units may be detected respectively, and a splicing shape formed by splicing the plurality of lighting units with each other may be obtained based on the detection result. In some embodiments, the connection relationship between the plurality of lighting units may be determined by sending information to the plurality of lighting units and receiving information fed back by the plurality of lighting units, and further, the connection relationship between the plurality of lighting units may determine the splicing shape formed by splicing the plurality of lighting units with each other.
Step S120: address information of the plurality of lighting units is respectively obtained based on the mosaic shape.
In this embodiment, the address information of the plurality of lighting units may be acquired based on the acquired splicing shapes of the plurality of lighting units, respectively. In some embodiments, the connection relationship and the relative position relationship of the plurality of lighting units may be determined according to the splicing 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 position relationship of the plurality of lighting units. Specifically, a coordinate system can be established according to the splicing shape of the plurality of lighting units, the relative position relationship among the plurality of lighting units is determined according to the positions of the plurality of lighting units in the coordinate system, then any one lighting unit can be selected, coordinate information is configured for the lighting unit, the coordinate information of other lighting units is calculated according to the coordinate information of the lighting unit and the relative position relationship among the plurality of lighting units, and the coordinate information of the lighting unit is used as the address information of the lighting unit.
Step S130: 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 state control information of the at least one lighting unit.
In this embodiment, after the address information of the plurality of lighting units is acquired, the plurality of lighting units can be arbitrarily controlled according to the address information of the lighting units, so as to form different light effects. In particular, a control instruction may be received for at least one of the plurality of lighting units, 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, and specifically, 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 yet another embodiment, the control instruction may be triggered by a remote control device, in particular, when purchasing the lighting unit, the remote control device controlling the lighting unit may be configured at the same time, and the user may trigger the corresponding control instruction by triggering a key on the remote control device. As another embodiment, the control instruction may be triggered by the lighting unit itself, and specifically, the surface of the lighting unit may be provided with a touch key, and a user may trigger the corresponding control instruction by touching the touch key 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 state control information of a lighting unit to be controlled, which are included in the control instruction. The address information of the lighting unit is obtained in the above mode and is correspondingly stored in the local device or the cloud. The device local or cloud can also store the corresponding relation between the control instruction and the address information 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 and the state control information. The state control information may include, but is not limited to, lighting the lighting unit, turning off the lighting unit, and controlling the brightness and color of the lighting unit.
As an example, a user may open an application program on a terminal device for controlling a lighting unit, when the user selects a "X-axis gradual change" light effect in the application program, the terminal device may trigger a "X-axis gradual change" control instruction according to the selection of the user, and by querying a correspondence between the control instruction stored locally or in a cloud of the terminal device and address information and state control information, address information and state control information of the lighting unit corresponding to the "X-axis sequential lighting" control instruction may be obtained as follows: the status control information corresponding to the address information a1 and the address information a1 is a color a2, the status control information corresponding to the address information b1 and the address information b1 is a color b2, and the status control information corresponding to the address information c1 and the address information c1 is a color c 2.
Step S140: the status control information is transmitted to the at least one lighting unit to control the status of the at least one lighting unit based on the address information of the at least one lighting unit.
In this embodiment, the received control instruction is analyzed to obtain address information of at least one lighting unit and state control information of the at least one lighting unit, which are included in the control instruction, and 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 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 may be sent 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 command "turn on sequentially based on the X axis" described above are: the status control information corresponding to the address information a1 and the address information a1 is a color a2, the status control information corresponding to the address information b1 and the address information b1 is a color b2, and the status control information corresponding to the address information c1 and the address information c1 is a color c 2. Then, the lighting unit a to be controlled may be determined according to the address information a1, and the state control information is transmitted to the lighting unit a to control the lighting unit a to display the color a 2; 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 the color B2; and determining the lighting unit C to be controlled according to the address information C1, and sending state control information to the lighting unit C to control the lighting unit C to display the color C2.
In the lighting unit control method provided in the above embodiment, the plurality of lighting units are respectively detected, and a splicing shape formed by splicing the plurality of lighting units is obtained based on a detection result; respectively acquiring address information of a plurality of lighting units based on the splicing 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 state control information of the at least one lighting unit; the status control information is transmitted to the at least one lighting unit to control the status of the at least one lighting unit based on the address information of the at least one lighting unit. Thereby through detecting the lighting unit in order to address the lighting unit, based on the address control lighting unit's of lighting unit state, can realize setting up different lamp effeciencies wantonly based on address information, promote the flexibility and the variety that the lamp effeciency set up.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a further lighting unit control method according to an embodiment of the present disclosure. As will be described in detail with respect to the flow shown in fig. 2, the method may specifically include the following steps S210 to S260.
Step S210: an inquiry instruction is sent 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. In particular, the query instruction may be sent to each of the plurality of lighting units, respectively. The lighting units can be physically connected in a serial bus and arbitration line mode, each lighting unit can comprise a plurality of edges, each edge is provided with five connection points, and when the connection points are used for splicing any two lighting units, electrical connection relations are generated between any two lighting units. Four connecting points of each edge are connected in parallel and are VCC, GND, TX and RX respectively, and the rest one connecting point is independent, namely is an arbitration line. Further, the arbitration line of each lighting unit defaults to a 0 level, and the master controller can pull up the arbitration line, i.e., pull up the level of the arbitration line to a1 level, wherein the 0 level and the 1 level can be logic levels, the 0 level can represent no signal flowing through the circuit, and the 1 level represents a signal flowing through the circuit. When the level of the arbitration line is pulled up to 1 level, the lighting unit can be controlled, an inquiry command can be sent to each lighting unit through the serial bus, and then each lighting unit is waited to reply to the inquiry command, wherein the lighting unit with the arbitration line pulled up can reply to the inquiry command of the main controller.
Step S220: and when reply information fed back by the lighting unit based on the query instruction is received, allocating identification information to the lighting unit.
In this embodiment, when reply information fed back by the lighting unit based on the query instruction is received, identification information may be assigned to the lighting unit. The identification information may be represented by a number or a character, and is not limited herein. Specifically, when the arbitration line of the lighting unit is pulled high, a reply message may be fed back to the master controller, and the master controller may assign identification information to the lighting unit upon receiving the reply message fed back by the lighting unit.
In some embodiments, when the number of the received reply messages is multiple, the identification information may be allocated according to the sequence of the time of receiving the reply messages. For example, the master controller may assign identification information a to the lighting unit corresponding to the received first reply message, assign identification information b to the lighting unit corresponding to the received second reply message, and so on, and assign corresponding identification information to each lighting unit according to the sequence of the time of the received reply messages.
In some embodiments, when the number of received reply messages is plural, the identification information may be assigned according to the connection order between the lighting units. For example, there are a total of three lighting units, where the lighting unit H1 is connected to the main controller, the lighting unit H2 is connected to the lighting unit H1, the lighting unit H3 is connected to the lighting unit H2, and the lighting unit H1 connected to the main controller may be assigned identification information of 1, the lighting unit H2 has identification information of 2, and the lighting unit H3 has identification information of 3.
In some embodiments, when the number of the received reply messages is plural, the identification information may be assigned 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 time when the main controller receives the reply information from the lighting unit H3 is earlier than the time when the reply information from the lighting unit H2 is received, the lighting unit H1 connected to the main controller may be assigned identification information 1, the identification information from the lighting unit H3 is 2, and the identification information from the lighting unit H2 is 3. The three ways are only examples, and the specific ways can be set according to actual situations, and are not limited herein.
Step S230: and determining a splicing shape formed by splicing the plurality of lighting units with each other based on the identification information.
In this embodiment, after the identification information of the plurality of lighting units is acquired, a splicing shape formed by splicing the plurality of lighting units with each other may be determined based on the identification information. As an embodiment, a splicing shape formed by splicing a plurality of lighting units with each other may be restored according to an order of identification information of the plurality of lighting units. The plurality of lighting units can be connected in sequence according to the sequence of the identification information of the plurality of lighting units, and the splicing shape formed by the plurality of lighting units is obtained.
Step S240: address information of the plurality of lighting units is respectively obtained based on the mosaic shape.
Step S250: 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 state control information of the at least one lighting unit.
Step S260: the status control information is transmitted to the at least one lighting unit to control the status of the at least one lighting unit based on the address information of the at least one lighting unit.
For the detailed description of steps S240 to S260, refer to steps S120 to S140, which are not described herein again.
Compared with the lighting unit control method shown in fig. 1, in the lighting unit control method provided in the above embodiment, the query instruction is further sent to the lighting unit, the identification information is allocated to the lighting unit according to the reply information fed back by the lighting unit, and the splicing shape formed by splicing the multiple lighting units is determined based on the identification information, so that the splicing shape formed by the multiple lighting units can be accurately determined, and more accurate address information of the lighting unit is obtained.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating another lighting unit control method according to an embodiment of the present disclosure. As will be described in detail with respect to the flow shown in fig. 3, the method may specifically include the following steps S310 to S370.
Step S310: and respectively sending a query instruction to each control pin of each lighting unit.
In this embodiment, the lighting units may include a plurality of control pins, and any two adjacent lighting units may be connected to each other through the control pins. For example, referring to fig. 4, fig. 4a shows an exemplary structure of the lighting unit 210a, the lighting unit 210a has six sides, wherein each side has five connection points (only five connection points on the first side are shown in fig. 4a, and the structure of five connection points on the other five sides is identical to that of five connection points on the first side), and the connection points are used for generating 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, namely VCC, GND, TX and RX respectively, the rest of the connection points are independent arbitration lines, and the arbitration lines of each side correspond to a control pin in the lighting unit respectively, and are represented by A, B, C, D, E, F respectively in the following. Further, fig. 4b shows an exemplary structure of the illumination unit 210b, where the illumination unit 210b has four sides, but the structure of each side is identical to that of each side of the illumination unit 210a, and is not described herein again.
The master controller may send a query instruction to each control pin of each lighting unit, respectively, to detect each lighting unit. For example, as shown in the lighting unit 210a of fig. 4a, the master controller may send query instructions to the control pin a, the control pin B, the control pin C, the control pin D, the control pin E, and the control pin F of the lighting unit 210a, respectively.
Step S320: and when reply information fed back by the control pin based on the query instruction is received, allocating identification information to the lighting unit corresponding to the control pin.
In this embodiment, when reply information fed back by the control pin based on the query instruction is received, identification information may be allocated to the lighting unit corresponding to the control pin. For example, taking the lighting units with six sides as an example, referring to fig. 5, the main controller 100 may pull up the arbitration line S and send a query command to the control pin of each lighting unit through the serial bus. Here, the lighting unit 210 is connected to the main controller 100 through the control pin a, and therefore, the lighting unit 210 may be assigned identification information of 1. If the main controller 100 receives the reply information fed back by the control pin E based on the query instruction, it may be determined that the side corresponding to the control pin E is connected with the lighting device 220, and then the identification information may be allocated to the lighting device 220 connected to the side 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 for feeding back the reply information.
In this embodiment, a target control pin, which is a control pin for feeding back the reply information, may be determined from a plurality of control pins of the lighting unit. For example, taking the lighting units with six sides as an example, referring to fig. 5, the main controller 100 may pull up the arbitration line S and send a query command to the control pin of each lighting unit through the serial bus. Here, the lighting unit 210 is connected to the main controller 100 through the control pin a, and therefore, the lighting unit 210 may be assigned identification information of 1. Control pin B of lighting unit 210 is not connected to any lighting unit, at this time, the arbitration line corresponding to control pin B is not pulled high, main controller 100 may receive timeout, it may be considered that there is no other lighting unit on side B of the lighting unit, clockwise poll control pin C, D, E, F in sequence, when polling control pin E, its corresponding arbitration line is pulled high, then reply information may be fed back to main controller 100, the main controller may know that there is a lighting unit 220 on side E of lighting unit 210 through the reply information, and may allocate identification information to lighting unit 220 as 2. Then, whether each control pin of the lighting unit 220 feeds back the reply information may be continuously queried, and the control pin feeding back the reply information is used as the target control pin. Further, as can be seen from fig. 5, the target control pin of the lighting unit 210 is control pin E, the target control pin of the lighting unit 220 is control pin B, and the target control pin of the lighting unit 230 is 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 splicing shape formed by splicing a plurality of lighting units with each other may be determined based on the identification information and the target control pin. Specifically, the sides connected 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 sides connected between the lighting units. For example, it can be obtained from fig. 5 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. Determining that the lighting unit 210 is connected to the lighting unit 220 through the edge E according to the target control pin of the lighting unit 210 being E, 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 side B according to that the target control pin of the lighting unit 220 is B, the identification information of the lighting unit 220 is 2, and the identification information of the lighting unit 230 is 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 edge C, and thus the spliced shape as shown in fig. 6 can be obtained.
Step S350: address information of the plurality of lighting units is respectively obtained based on the mosaic shape.
Step S360: 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 state control information of the at least one lighting unit.
Step S370: the status control information is transmitted to the at least one lighting unit to control the status of the at least one lighting unit based on the address information of the at least one lighting unit.
For detailed description of steps S350 to S370, please refer to steps S120 to S140, which are not described herein again.
Compared with the lighting unit control method shown in fig. 1, in the lighting unit control method provided in the above embodiment, the lighting unit has a plurality of control pins, and the splicing shape formed by 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 by sending the query instruction to each control pin, so that the splicing shape formed by the plurality of lighting units can be accurately determined, and more accurate address information of the lighting unit is obtained.
Referring to fig. 7, fig. 7 is a schematic flowchart illustrating a further lighting unit control method according to an embodiment of the present disclosure. As will be described in detail with respect to the flow shown in fig. 7, the method may specifically include steps S410 to S450.
Step S410: and respectively detecting the plurality of lighting units, and acquiring a splicing shape formed by mutually splicing the plurality of lighting units based on the detection result.
For detailed description of step S410, please refer to step S110, which is not described herein again.
Step S420: based on the mosaic shape, edge numbers of the plurality of edges of each of the plurality of lighting units are configured.
After the splicing shape formed by splicing the plurality of lighting units is obtained, the address information of each lighting unit can be determined according to the splicing shape formed by the plurality of lighting units. In the present embodiment, the lighting units include a plurality of sides, and the adjacent lighting units are adjacent based on the sides, 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 shape of the mosaic of the plurality of lighting units.
In some embodiments, one lighting unit may be selected from a plurality of lighting units, and an edge number may be configured for the lighting unit, where the configured edge numbers may be configured randomly, or configured by using a predetermined numbering direction or a predetermined numbering rule, for example, one edge may be selected to set an edge number, and then the edge numbers of other edges may be sequentially set in an increasing manner in a counterclockwise direction. According to the lighting unit, the side numbers of the plurality of sides of the other lighting units are set. The setting of the side numbers of the plurality of sides of the other lighting units may be the same as the setting of the lighting unit, or the setting of the side numbers of the plurality of sides of the other lighting units may not be the same as the setting of the lighting unit, which is not limited herein.
Referring to fig. 8, fig. 8 is a flowchart illustrating a step S420 of the lighting unit control method of the present application, which may specifically include steps S421 to S424.
Step S421: a first lighting unit physically connected to the master controller is determined.
In this embodiment, the first lighting unit physically connected to the master controller may be determined first. As an embodiment, a lighting unit connected to the master controller via a connection line may be determined as the first lighting unit. As another embodiment, a lighting unit connected to the master controller through an arbitration line may be viewed as the first lighting unit.
Step S422: and acquiring the side connected with the main controller among the plurality of sides of the first lighting unit, recording the side as a head side, and setting the side serial number of the head side.
In this embodiment, determining the first lighting unit physically connected to the main controller may obtain, from among the plurality of sides of the first lighting unit, a side connected to the main controller, and record the side as a leading side, and set a side number of the leading side, where the side number may be represented by a number or a letter, and is not limited herein. For example, as shown in the example of the lighting unit mosaic shape shown in fig. 9, the lighting unit 210 is physically connected to the main controller 100, the side connected to the main controller 100 among the plurality of sides of the lighting unit 210, that is, the uppermost side of the lighting unit 210, may be referred to as a leading side, and the edge number of the leading side may be set to a.
Step S423: the edge numbers are sequentially set for the other edges of the first lighting unit based on the edge number of the leading edge in accordance with a predetermined numbering direction and a predetermined numbering rule.
In this embodiment, after the edge number of the head edge is determined, the edge numbers may be sequentially set for the other edges of the first lighting unit based on the edge number of the head edge according to a predetermined numbering direction and a predetermined numbering rule. The numbering direction may be clockwise or counterclockwise. The numbering rule may be that the numbers are increased in the numbering direction, for example, as shown in fig. 9, the number of the first side of the first lighting unit is a, the number is increased in the clockwise direction, the number of the second side is B, the number of the third side is C, and the like; the numbering rule may also be a descending order in the numbering direction, for example, the order of the first side of the first lighting unit is 1, the first side is descending clockwise, the order of the second side is 0, the order of the third side is-1, etc.; further, the numbering rule may also be increased or decreased proportionally, for example, the first side of the first lighting unit has a side number of 1, and is increased proportionally in the clockwise direction, the second side has a side number of 3, and the third side has a side number of 5. The above numbering directions and numbering rules are only examples and are not limited herein. The numbering direction and the numbering rule can be set by a system or a user according to requirements.
Step S424: the side numbers of the plurality of sides of the second illumination unit adjacent to the first illumination unit are set based on the side numbers of the plurality of sides of the first illumination unit.
In the present embodiment, the edge numbers of the plurality of edges of the second illumination unit adjacent to the first illumination unit may be set based on the edge numbers of the plurality of edges of the first illumination unit.
In some embodiments, the arrangement of edge numbers of the plurality of edges of the second lighting unit adjacent to the first lighting unit may coincide with the arrangement of edge numbers of the first lighting unit. For example, as shown in fig. 9, the first lighting unit 210 has a side number a of the side connected to the main controller 100, rotates clockwise, the remaining sides have a side number B, C, D, E, F in order, and the second lighting unit adjacent to the first lighting unit 210 has a lighting unit 220, a lighting unit 230, and a lighting unit 240, wherein the side numbers of the plurality of sides of the lighting unit 220, the lighting unit 230, and the lighting unit 240 may be set to be identical to the side numbers of the plurality of sides of the lighting unit 210.
In some embodiments, the edge number of the plurality of edges of the second lighting unit may be set according to the edge to which the first lighting unit is connected to the second lighting unit. For example, as shown in fig. 6, if the edge number of the first edge of the first lighting unit 210 is a and the edge numbers of the other edges are B, C, D, E, F in order, and if the E edge of the first lighting unit 210 is adjacent to the lighting unit 220, the edge number of the edge of the lighting unit 220 adjacent to the E edge of the first lighting unit 210 may be a, and the edge numbers of the other edges of the lighting unit 220 may be B, C, D, E, F in order by rotating clockwise.
Step S430: address information of the plurality of lighting units is respectively obtained based on the edge number.
In the present embodiment, different sides represent different splicing positions and represent different relative position relationships, for example, as shown in the example of the splicing shape of the lighting unit shown in fig. 9, the lighting unit 230 is connected to the side D of the lighting unit 210, which can illustrate that the position of the lighting unit 230 is below the lighting unit 210. Accordingly, address information of the plurality of lighting units can be acquired based on the edge numbers, respectively. In some embodiments, the relative position relationship of the plurality of lighting units may be determined according to the side 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 position relationship of the plurality of lighting units.
Referring to fig. 10, fig. 10 is a schematic flow chart illustrating step S430 of the lighting unit control method of the present application, which may specifically include step S431 to step S434.
Step S431: and determining an origin illumination unit, wherein the origin illumination unit is any one of the plurality of illumination units.
In the present embodiment, one illumination unit may be selected from among the plurality of illumination units as the origin illumination unit. Further, an illumination unit connected to the main controller may be selected as the origin illumination 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 serial number of a target edge connected between the target lighting unit and the original point lighting unit.
In this embodiment, the target illumination unit adjacent to the origin illumination unit may be determined, and the target edge number of the target edge to which the target illumination unit is connected to the origin illumination unit may be acquired. Specifically, the target lighting unit adjacent to the origin lighting unit may be determined from the mosaic shape of the 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 side number of the side connected to the main controller 100 is set as a, the side number is rotated clockwise, the side numbers of the other sides are B, C, D, E, F in order, and the target lighting units adjacent to the origin lighting unit 210 include the lighting unit 220, the lighting unit 230, and the lighting unit 240, wherein the setting of the side numbers of the plurality of sides of the lighting unit 220, the lighting unit 230, and the lighting unit 240 may be identical to the setting of the side numbers of the plurality of sides of the lighting unit 210. The origin lighting unit 210 is connected to the target lighting unit 220 through the edge E, and the target edge number of the target edge where the target lighting unit 220 is connected to the origin lighting unit is obtained as E; the origin lighting unit 210 is connected to the target lighting unit 230 through the edge D, and may obtain a target edge sequence number D of a target edge where the target lighting unit 230 is connected to the origin lighting unit; the origin lighting unit 210 is connected to the target lighting unit 240 through the edge C, and the target edge number of the target edge where the target lighting unit 240 is connected to the origin lighting unit may be obtained as C.
Step S433: and configuring the coordinate information of the target lighting unit based on the target side number and the coordinate information of the origin lighting unit.
In this embodiment, the coordinate information of the target illumination unit may be configured based on the target edge number and the coordinate information of the origin illumination unit. The relative position relationship between the target illumination unit and the origin illumination unit can be determined according to the target edge sequence number, and then the coordinate information of the target illumination unit can be calculated according to the coordinate information of the origin illumination unit.
Referring to fig. 11, fig. 11 shows a flowchart of step S433 of the lighting unit control method of the present application, which may specifically include step S4331 to step S4334.
Step S4331: and establishing a coordinate system by taking the origin illumination unit as an origin.
In this embodiment, a coordinate system may be established with the origin illumination unit as the origin. Specifically, a coordinate system may be established with the center of the origin illumination unit as the origin. For example, if the lighting units are six-sided, a coordinate system as shown in fig. 12a may be established; if the lighting unit has four sides, a coordinate system as shown in fig. 12b can be established.
Step S4332: and configuring a coordinate rule corresponding to each edge of the origin lighting unit based on the coordinate system to obtain a corresponding relation between the edge serial number of each edge and the coordinate rule.
In this embodiment, the coordinate rule corresponding to each edge of the origin lighting unit may be configured based on the coordinate system, so as to obtain a correspondence between the edge number of each edge 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), where a side a of the origin illumination unit 210a intersects with a positive half axis of a Y-axis of the coordinate system, and a coordinate rule connected to the side a may be configured to be (X, Y + 1); the edge B of the origin lighting unit 210a is located in the second quadrant of the coordinate system, and the coordinate rule connected to the edge B may be configured to be (X +1, Y + 1); the edge C of the origin lighting unit 210a is located in the fourth quadrant of the coordinate system, and the coordinate rule connected to the edge C may be configured to be (X +1, Y-1); the edge D of the origin lighting unit 210a intersects with the negative half axis of the Y-axis of the coordinate system, and the coordinate rule connected to the edge D may be configured to be (X, Y-1); edge E of origin illumination unit 210a is located in the third quadrant of the coordinate system, and the coordinate rule connected to edge E may be configured to be (X-1, Y-1); edge F of origin illumination unit 210a is located in the second quadrant of the coordinate system, and the coordinate rule connected to edge F may be configured to be (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 the object
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, the coordinates of the origin illumination unit 210b may be set to (X, Y), where a side a of the origin illumination unit 210b intersects with a positive half axis of a Y-axis of the coordinate system, and a coordinate rule connected to the side a may be configured to be (X, Y + 1); the edge B of the origin lighting unit 210B intersects with the positive half axis of the X-axis of the coordinate system, and the coordinate rule connected to the edge B may be configured to be (X +1, Y); the edge C of the origin lighting unit 210b intersects with the negative half axis of the Y-axis of the coordinate system, and the coordinate rule connected to the edge C may be configured to be (X, Y-1); the edge D of the origin illumination unit 210b intersects with the negative half axis of the X-axis of the coordinate system, and the coordinate rule connected to the edge D may be set to (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 the object
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 a coordinate system as shown in fig. 12a may be established with the lighting unit 210 as an origin, so as to obtain a corresponding relationship between the edge number of each edge of the lighting unit 210 and the coordinate rule as shown in table 1. The target edge serial number of the target edge connected between the target illumination unit 220 and the origin illumination unit is E, which can be obtained according to table 1, and the coordinate rule corresponding to the target edge serial number E is (X-1, Y-1); the target edge serial number of the target edge connected to the origin lighting unit 230 is D, which can be obtained according to table 1, and the coordinate rule corresponding to the target edge serial number D is (X, Y-1); the target edge number of the target edge connecting the target illumination unit 240 and the origin illumination unit is C, which can be obtained from table 1, and the coordinate rule corresponding to the target edge number C is (X +1, Y-1).
Step S4334: and obtaining the 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 illumination unit may be obtained based on the target coordinate rule and the coordinates of the origin illumination unit. Specifically, the coordinates of the origin lighting unit may be obtained, and the coordinate information of the target lighting unit may be obtained through respective calculation according to the target coordinate rule.
As an example, for example, the coordinates of the origin lighting unit are (0, 0), where the target edge number of the target edge where the target lighting unit 220 is connected to the origin lighting unit is E, and the coordinate rule corresponding to the target edge number of E is (X-1, Y-1), the coordinate information of the target lighting unit 220 is (-1, -1); the target side serial number of the target side where the target illumination unit 230 is connected to the origin illumination unit is D, the coordinate rule corresponding to the target side serial number D is (X, Y-1), and the coordinate information of the target illumination unit 230 can be calculated to be (0, -1); the target side number of the target side where the target illumination unit 240 is connected to the origin illumination unit is C, the coordinate rule corresponding to the target side number C is (X +1, Y-1), and the coordinate information of the target illumination unit 240 can be calculated to be (1, -1).
Step S434: address information of the target lighting unit is obtained based on the coordinate information of the target lighting unit.
In this embodiment, the address information of the target lighting unit may be obtained based on the coordinate information of the target lighting unit. Among them, as an embodiment, the coordinate information of the target lighting unit may be taken 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: 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 state control information of the at least one lighting unit.
Step S450: the status control information is transmitted to the at least one lighting unit to control the status of the at least one lighting unit based on the address information of the at least one lighting unit.
For detailed description of steps S440 to S450, please refer to steps S130 to S140, which are not described herein again.
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 serial numbers of multiple edges of each lighting unit based on the splicing shape, and obtain the address information of the multiple lighting units based on the edge serial numbers, so that more accurate address information of the lighting units may be obtained, and flexible and various lighting effects may be achieved 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 present disclosure. As will be explained below with respect to the block diagram of fig. 13, 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:
and the lighting unit detecting module 310 is configured to detect the plurality of lighting units respectively, and obtain a splicing shape formed by splicing the plurality of lighting units based on the detection result.
Further, the lighting unit detecting module 310 includes: the device comprises an instruction sending submodule, an identification distribution submodule and a shape determining submodule, wherein:
and the instruction sending sub-module is used for respectively sending the query instruction to each lighting unit in the plurality of lighting units.
Further, the lighting units comprise a plurality of control pins, any two adjacent lighting units are connected through the control pins, and the instruction sending sub-module comprises: an instruction sending unit, wherein:
and the instruction sending unit is used for respectively sending the query instruction to each control pin of each lighting unit.
And the identification distribution sub-module is used for distributing identification information to the lighting units when reply information fed back by the lighting units based on the query instruction is received.
Further, the identification assignment sub-module includes: identifying an allocation unit, wherein:
and the identification allocation unit is used for allocating identification information to the lighting units corresponding to the control pins when reply information fed back by the control pins based on the query instruction is received.
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 submodule 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 used for feeding back the 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.
An address information obtaining module 320, configured to obtain address information of the plurality of lighting units respectively based on the splicing shape.
Further, the lighting units include a plurality of edges, adjacent lighting units are adjacent based on the edges, and the address information obtaining module 320 includes: a serial number configuration submodule and an information acquisition submodule, wherein:
a serial number configuration submodule configured to configure edge serial numbers of the plurality of edges of each of the plurality of lighting units based on the mosaic shape.
Further, the sequence number configuration submodule includes: illumination element confirms unit, first sequence number setting unit, second sequence number setting unit and third sequence number setting unit, wherein:
and the lighting unit determining unit is used for determining the first lighting unit connected with the main controller.
And the first sequence number setting unit is used for acquiring the edges connected with the main controller among the plurality of edges of the first lighting unit, recording the edges as the head edges and setting the edge sequence number of the head edges.
And the second serial number setting unit is used for sequentially setting edge serial numbers for other edges of the first lighting unit based on the edge serial number of the head edge according to a preset numbering direction and a numbering rule.
And the third serial number setting unit is used for setting the side serial numbers of the plurality of sides of the second lighting unit adjacent to the first lighting unit based on the side serial numbers of the plurality of sides of the first lighting unit.
And the information acquisition submodule is used for respectively acquiring the address information of the plurality of lighting units based on the side sequence numbers.
Further, the information acquisition sub-module includes: illumination element determining unit, serial number acquisition unit, coordinate configuration unit and information acquisition unit, wherein:
and an illumination unit determination unit for determining an origin illumination unit, wherein the origin illumination unit is any one of the plurality of illumination units.
And the sequence number acquisition unit is used for determining the target illumination unit adjacent to the original point illumination unit and acquiring the target edge sequence number of the target edge connected with the original point illumination unit and the target illumination unit.
And the coordinate configuration unit is used for configuring the coordinate information of the target illumination unit based on the target edge serial number and the coordinate information of the origin illumination unit.
And the information acquisition unit is used for obtaining the address information of the target lighting unit based on the coordinate information of the target lighting unit.
Further, the information acquisition unit includes: the system comprises a coordinate system establishing subunit, a rule configuration subunit, a rule determining subunit and an information acquiring subunit, wherein:
and the coordinate system establishing subunit is used for establishing a coordinate system by taking the origin lighting unit as the origin.
And the rule configuration subunit is used for configuring the coordinate rule corresponding to each edge of the origin lighting unit based on the coordinate system to obtain the corresponding relation between the edge serial number of each edge and the coordinate rule.
And the rule determining subunit is used for 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 the information acquisition subunit is used for acquiring the coordinate information of the target illumination unit based on the target coordinate rule and the coordinates of the origin illumination unit.
A control instruction receiving module 330, 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 state control information of the at least one lighting unit.
The lighting unit control module 340 is configured to send 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.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 14, a block diagram of an electronic device 400 according to an embodiment of the present disclosure is shown. The electronic device 400 in the present application may include one or more of the following components: a processor 410, a memory 420, and one or more applications, wherein the one or more applications may be stored in the memory 420 and configured to be executed by the one or more processors 410, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 410 may include one or more processing cores, among other things. The processor 410 interfaces with various components throughout the electronic device 400 using various interfaces and circuitry to 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 using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 410 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 410, but may be implemented by a communication chip.
The Memory 420 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 420 may be used to store instructions, programs, code, sets of codes, or sets of instructions. 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 (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The stored data area may also store data created by the electronic device 400 during use (e.g., phone books, audio-visual data, chat log data), and the like.
Referring to fig. 15, a block diagram of a computer-readable storage medium according to an embodiment of the present disclosure is shown. The computer-readable storage medium 500 has stored therein program code that can be called by a processor to execute the methods described in the above-described method embodiments.
The computer-readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable and programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 500 includes a non-volatile computer-readable storage medium. The computer readable storage medium 500 has storage space for program code 510 for performing any of the method steps described above. The program code can be read from or written to one or more computer program products. The program code 510 may be compressed, for example, in a suitable form.
In summary, the lighting unit control method, the lighting unit control device, the electronic device, and the storage medium provided in the embodiments of the present application detect the plurality of lighting units, respectively, and obtain a splicing shape formed by splicing the plurality of lighting units based on a detection result; respectively acquiring address information of a plurality of lighting units based on the splicing 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 state 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. Thereby through detecting the lighting unit in order to address the lighting unit, based on the address control lighting unit's of lighting unit state, can realize setting up different lamp effeciencies wantonly based on address information, promote the flexibility and the variety that the lamp effeciency set up.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A lighting unit control method, characterized in that the method comprises:
respectively detecting the plurality of lighting units, and acquiring a splicing shape formed by mutually splicing the plurality of lighting units based on the detection result;
respectively acquiring address information of a plurality of lighting units based on the splicing shape;
receiving a control instruction for at least one 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
transmitting the state control information to the at least one lighting unit to control a state of the at least one lighting unit based on the address information of the at least one lighting unit.
2. The method according to claim 1, wherein the detecting the plurality of lighting units respectively, and the obtaining a splicing shape formed by splicing the plurality of lighting units with each other based on the detection result comprises:
sending a query instruction to each of a plurality of the lighting units respectively;
when reply information fed back by the lighting unit based on the query instruction is received, allocating identification information to the lighting unit; and
and determining a splicing shape formed by splicing a plurality of lighting units with each other based on the identification information.
3. The method of claim 2, wherein the lighting units comprise a plurality of control pins, and any two adjacent lighting units are connected through the control pins;
the sending of the query instruction to each of the plurality of lighting units comprises:
respectively sending a query instruction to each control pin of each lighting unit;
when reply information fed back by the lighting equipment based on the query instruction is received, allocating identification information to the lighting unit, wherein the allocation information comprises:
when reply information fed back by the control pin based on the query instruction is received, allocating identification information to the lighting unit corresponding to the control pin;
the determining a splicing shape formed by mutually splicing a plurality of lighting units based on the identification information comprises:
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 of claims 1-3, wherein the lighting units comprise a plurality of edges, adjacent lighting units abutting based on the edges; the respectively obtaining address information of the plurality of lighting units based on the mosaic shape includes:
configuring edge sequence numbers of a plurality of edges of each of the plurality of lighting units based on the splicing shape; and
and respectively acquiring address information of the plurality of lighting units based on the edge sequence numbers.
5. The method of claim 4, wherein configuring the edge number of the plurality of edges of each of the plurality of lighting units based on the mosaic shape comprises:
determining a first lighting unit physically connected with the master controller;
acquiring the side connected with the main controller from a plurality of sides of the first lighting unit, recording the side as a head side, and setting the side serial number of the head side;
sequentially setting edge serial numbers for other edges of the first lighting unit based on the edge serial number of the head edge according to a preset numbering direction and a numbering rule; and
setting edge numbers of a plurality of edges of a second illumination unit adjacent to the first illumination unit based on the edge numbers of the plurality of edges of the first illumination unit.
6. The method of claim 5, wherein the obtaining address information of the plurality of lighting units based on the edge sequence numbers respectively comprises:
determining an origin lighting unit, wherein the origin lighting unit is any one of the lighting units;
determining a target lighting unit adjacent to the origin lighting unit, and acquiring a target edge sequence number of a target edge connected with the origin lighting unit and the target lighting unit;
configuring coordinate information of the target illumination unit based on the target edge sequence number and the coordinate information of the origin illumination unit; and
and obtaining address information of the target lighting unit based on the coordinate information of the target lighting unit.
7. The method of claim 6, 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 original point lighting unit as an original point;
configuring a coordinate rule corresponding to each edge of the origin lighting unit based on the coordinate system to obtain a corresponding relation between an edge number of each edge 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 the coordinate information of the target lighting unit based on the target coordinate rule and the coordinates of the origin lighting unit.
8. A lighting unit control apparatus, characterized in that the apparatus comprises:
the lighting unit detection module is used for respectively detecting the lighting units and acquiring a splicing shape formed by mutually splicing the lighting units based on the detection result;
an address information acquisition module for respectively acquiring address information of the plurality of lighting units based on the mosaic shape;
a control instruction receiving module, 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 state 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.
9. 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-7.
10. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 7.
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 true CN113784477A (en) 2021-12-10
CN113784477B 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)

Cited By (2)

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

Citations (11)

* 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
US20120133303A1 (en) * 2010-06-23 2012-05-31 Lumenpulse Lighting Inc. Assembling and controlling light unit arrays
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
US20200329545A1 (en) * 2017-12-29 2020-10-15 Opple Lighting Co., Ltd. Control method for combined lamp, and illumination system
CN112004284A (en) * 2020-09-14 2020-11-27 晓能互联科技(深圳)有限公司 Address positioning system and method for LED lamp string

Patent Citations (11)

* 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
US20120133303A1 (en) * 2010-06-23 2012-05-31 Lumenpulse Lighting Inc. Assembling and controlling light unit arrays
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
US20200329545A1 (en) * 2017-12-29 2020-10-15 Opple Lighting Co., Ltd. Control method for combined lamp, and illumination system
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

Cited By (3)

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

Also Published As

Publication number Publication date
CN113784477B (en) 2023-11-03

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
JP2013541742A (en) Dynamic multilink editing partitioning system and method
CN102388357B (en) Method and system for accessing memory device
CN108563518A (en) Master-slave machine communication method, device, terminal equipment and storage medium
CN114338594B (en) ARP (Address resolution protocol) response-substituting method, device, equipment and storage medium in Kubernetes environment
CN112637371B (en) Node address determination method and device, electronic equipment and storage medium
CN111026697A (en) Inter-core communication method, inter-core communication system, electronic device and electronic equipment
CN110995817B (en) Request callback method and device and client equipment
US20060212642A1 (en) Partition allocation method and computer system
CN111064786A (en) Account identifier management method and device
JP5309688B2 (en) Slot type CPU device
US7000052B2 (en) System and method for configuring and deploying input/output cards in a communications environment
CN111679918B (en) Message transmission method and device
CN115344520B (en) Method and device for using PCIe interface compatible with silver fir card, storage medium and equipment
US11392174B2 (en) Docking apparatus communication
US10628342B1 (en) System and method for accelerating performance of non-volatile memory RAID stacks
CN104104594A (en) Methods of transmitting and receiving protocol message of VSU, devices and system
CN113050767A (en) Expansion slot channel distribution method and device, electronic equipment and medium
EP3182295A1 (en) Communication system with serial ports for automatically identifying device types and communication protocols and method thereof
CN111737181A (en) Heterogeneous processing equipment, system, port configuration method, device and storage medium
US20140359193A1 (en) Interface transmission device
US20180181440A1 (en) Resource allocation system, apparatus allocation controller and apparatus recognizing method
CN110597750A (en) USB conference device
CN105786409B (en) A kind of electronic equipment and resource share method

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