A calculation method, device, electronic device and storage medium for lamp accessories

By calculating the total power of lamps and configuring drivers, the automatic calculation of lamp accessories is realized, solving the problems of low manual calculation efficiency and poor accuracy, improving the efficiency and accuracy of accessory configuration, and reducing the skill requirements of design and installation personnel.

CN118278870BActive Publication Date: 2024-08-27SUOFEIYA HOME COLLECTION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410711223.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-27
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

In the existing technology, manual calculation of lighting accessories has problems such as low efficiency, poor accuracy, and high designer skill requirements, resulting in frequent missing or over-matching of accessories, and the configuration scheme is not optimal.

Method used

A calculation method for lamp accessories is proposed. By obtaining the total power of the lamps in the target order, calculating the matching total driver information, classifying the lamps into switch sets and non-switch lamp sets, sorting the power, configuring the target driver, and calculating the switch accessories and points The number of wire boxes is used to generate an accessory configuration list.

Benefits of technology

It improves the efficiency and accuracy of accessory configuration, realizes the optimal configuration solution, reduces unnecessary accessory design, saves assembly space and reduces costs, while reducing the professional skill requirements of design and installation personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118278870B
    Figure CN118278870B
Patent Text Reader

Abstract

The present application discloses a calculation method, device, electronic device and storage medium for lamp accessories, including: obtaining the total lamp power; calculating the total driver information matching the total lamp power according to the total lamp power; classifying the lamps to obtain switch sets and non-switch lamp sets; calculating and sorting the target lamp powers corresponding to the switch sets and non-switch lamp sets; configuring the corresponding target drivers for the lamps in the switch sets and non-switch lamp sets according to the target power sorting results and the total driver information; calculating the switch accessory information of the lamps in the switch set according to the number of cross-drivers of the lamps in the switch set that have been configured with the target driver; calculating the number of junction boxes of the lamps according to the number of switches of the lamps in the switch set and non-switch lamp sets; generating a lamp accessory configuration list based on the target driver, switch accessory information and the number of junction boxes. The method can improve the efficiency and accuracy of accessory configuration, obtain the optimal configuration scheme, and can be widely used in the field of automation control technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automation control technology, and in particular to a calculation method, device, electronic device and storage medium for lamp accessories. Background Art

[0002] In the related art, there is a method of manually calculating lamp accessories, that is, the lamp accessories calculation method generally requires manual calculation. The designer calculates the accessories according to the general situation, and then manually orders the corresponding accessories and materials, and then goes to the customer's home to assemble them on site. This method of manually calculating lamp accessories requires high skills of home designers. Generally, home designers do not have a deep understanding of lamps and corresponding accessories, and often miss accessories or order more accessories, and the configuration plan usually cannot achieve the optimal combination.

[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the invention

[0004] The embodiments of the present application aim to solve at least one of the technical problems in the related art to a certain extent. To this end, the main purpose of the embodiments of the present application is to propose a calculation method, device, electronic device and storage medium for lamp accessories, which can improve the efficiency and accuracy of accessory configuration and obtain the optimal configuration solution.

[0005] To achieve the above purpose, one aspect of an embodiment of the present application provides a method for calculating lamp accessories, the method comprising:

[0006] Get the total power of all lamps in the target order;

[0007] According to the total power of the lamp, calculating total driver information matching the total power of the lamp;

[0008] Classifying each of the lamps in the target order to obtain a plurality of switch sets and non-switch lamp sets;

[0009] Calculating the target lamp powers corresponding to each of the switch sets and each of the non-switch lamp sets, and sorting the target lamp powers to obtain a target power sorting result;

[0010] According to the target power ranking result and the total driver information, a corresponding target driver is configured for each lamp in each of the switch sets and each of the non-switch lamp sets;

[0011] Calculating switch accessory information of each lamp in each switch set according to the number of cross-drivers of each lamp in each switch set that has configured the target driver;

[0012] Calculate the number of junction boxes for each of the lamps according to the number of switches for each of the lamps in each of the switch sets and each of the switchless lamp sets;

[0013] Based on the target driver, the switch accessory information and the number of junction boxes, an accessory configuration list of each of the lamps is generated.

[0014] In some embodiments, obtaining the total lamp power corresponding to all lamps in the target order includes:

[0015] Obtaining a target order; the target order includes a number of lamps;

[0016] According to the quantity and type of each of the lamps, the total lamp power corresponding to all the lamps in the target order is calculated.

[0017] In some embodiments, the total driver information includes the total driver types and the total driver quantity, and the total driver information matching the total power of the lamps is calculated according to the total power of the lamps, including:

[0018] According to the total power of the lamp, the total driver types and total driver quantity matching the total power of the lamp are calculated.

[0019] In some embodiments, one of the switch sets consists of all lamps controlled by an independent switch, and one of the switchless lamp sets consists of a lamp with its own switch, and the target lamp powers corresponding to each of the switch sets and each of the switchless lamp sets are calculated, and the target lamp powers are sorted to obtain the target power sorting result, including:

[0020] Calculate the target lamp power corresponding to each switch set according to the type and quantity of lamps in each switch set, and use the target lamp power corresponding to the switch set as the first target lamp power;

[0021] Calculate the target lamp power corresponding to each of the non-switch lamp sets according to the types of lamps in each of the non-switch lamp sets, and use the target lamp power corresponding to the non-switch lamp set as the second target lamp power;

[0022] The first target lamp powers and the second target lamp powers are sorted according to a preset order rule to obtain a target power sorting result; wherein the sorting priority of the second target lamp powers is set to be lower than the first target lamp powers.

[0023] In some embodiments, configuring corresponding target drivers for each lamp in each of the switch sets and each of the non-switch lamp sets according to the target power sorting result and the total driver information includes:

[0024] According to the target power sorting result, the total driver types and the total driver quantity included in the total driver information are matched to the lamps in each of the switch sets and each of the non-switch lamp sets respectively.

[0025] In some embodiments, configuring corresponding target drivers for each lamp in each of the switch sets and each of the non-switch lamp sets according to the target power sorting result and the total driver information includes:

[0026] When the target lamp power corresponding to one of the switch sets is greater than the power of a driver to be matched, the lamps in the switch set are sorted according to a preset sequence rule to obtain a lamp power sorting result;

[0027] sequentially configuring corresponding first target drivers for each of the lamps in the switch set according to the lamp power ranking result and the total driver information;

[0028] When the remaining power of the first target driver cannot meet the needs of the lamps with the remaining maximum power in the switch set, the second target driver is started to configure the driver for the lamps with the remaining maximum power in the switch set; wherein, when allocating target drivers to the lamps to be configured, the remaining power of the first target driver is used as the first allocation order.

[0029] In some embodiments, the calculating of switch accessory information of each lamp in each switch set according to the number of cross-drivers of each lamp in each switch set that has configured the target driver includes:

[0030] If the number of cross-drivers of each lamp in each switch set after configuring the target driver is not zero, then configure a corresponding joint control box, joint control line and switch control box for each lamp in each switch set;

[0031] If the number of cross-drivers of each lamp in each switch set after configuring the target driver is zero, configuring a corresponding switch control box for each lamp in each switch set;

[0032] If there is only one independent switch on the target driver configured for each lamp in each switch set, the switch control box is unconfigured.

[0033] To achieve the above object, another aspect of an embodiment of the present application provides a computing device for a lamp accessory, the device comprising:

[0034] A lamp total power acquisition module is used to acquire the lamp total power corresponding to all lamps in the target order;

[0035] A total driver information acquisition module, used to calculate total driver information matching the total power of the lamp according to the total power of the lamp;

[0036] A lamp classification module, used for classifying each of the lamps in the target order to obtain a plurality of switch sets and non-switch lamp sets;

[0037] A lamp power sorting module, used for calculating the target lamp power corresponding to each of the switch sets and each of the non-switch lamp sets, and sorting each of the target lamp powers to obtain a target power sorting result;

[0038] A driver configuration module, configured to configure a corresponding target driver for each lamp in each of the switch sets and each of the non-switch lamp sets according to the target power sorting result and the total driver information;

[0039] A switch accessory calculation module, configured to calculate switch accessory information of each lamp in each switch set according to the number of cross-drivers of each lamp in each switch set configured with the target driver;

[0040] A junction box quantity calculation module, used for calculating the number of junction boxes of each lamp according to the number of switches of each lamp in each switch set and each switchless lamp set;

[0041] The lamp accessories list generating module is used to generate an accessories configuration list of each lamp based on the target driver, the switch accessories information and the number of junction boxes.

[0042] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.

[0043] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0044] The embodiments of the present application include at least the following beneficial effects: The present application provides a method, device, electronic device and storage medium for calculating lamp accessories, the scheme obtains the total lamp power corresponding to all lamps in the target order; calculates the total driver information matching the total lamp power according to the total lamp power; classifies each lamp in the target order to obtain a number of switch sets and switchless lamp sets; calculates the target lamp power corresponding to each switch set and each switchless lamp set, and sorts each target lamp power to obtain a target power sorting result; configures each lamp in each switch set and each switchless lamp set with a corresponding target driver according to the target power sorting result and the total driver information; calculates the switch accessory information of each lamp in each switch set according to the number of cross-drivers of each lamp in each switch set after the target driver is configured; calculates the number of junction boxes of each lamp according to the number of switches of each lamp in each switch set and each switchless lamp set; generates an accessory configuration list for each lamp based on the target driver, the switch accessory information and the number of junction boxes. The embodiment of the present application configures the corresponding target driver for each lamp in each switch set and each switchless lamp set according to the target power sorting result and the total driver information, and can reasonably configure the driver according to the power demand so that each lamp is properly powered, which is beneficial to improving the performance and reliability of the lamp. Based on the number of cross-drivers of each lamp in each switch set after the target driver is configured, the switch accessory information of each lamp in each switch set can be reasonably calculated; the lamp accessory calculation method provided by the embodiment of the present application can realize automatic calculation of lamp accessories by the system, improve the efficiency and accuracy of lamp accessory configuration, and the automatic calculation of lamp accessories can obtain the optimal configuration plan to reduce unnecessary accessory design, save assembly space and reduce costs, while reducing the professional skill requirements for designers and installers. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 is a flowchart of the steps of a calculation method for lamp accessories provided in an embodiment of the present application;

[0046] Figure 2 It is a schematic diagram of an interface of a design software provided in an embodiment of the present application;

[0047] Figure 3 is a flow chart of a calculation method for lamp accessories provided in an embodiment of the present application;

[0048] Figure 4 It is the configuration rule of the routing component provided in the embodiment of the present application;

[0049] Figure 5 is a schematic diagram of a list of accessories for a lamp provided in an embodiment of the present application;

[0050] Figure 6is a structural schematic diagram of a computing device for a lamp accessory provided in an embodiment of the present application;

[0051] Figure 7 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.

[0053] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0054] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0056] In the related art, there is a method of manually calculating lamp accessories, that is, the lamp accessories calculation method generally requires manual calculation. The designer calculates the accessories according to the general situation, and then manually orders the corresponding accessories and materials, and then goes to the customer's home to assemble them on site. This method of manually calculating lamp accessories requires high skills of home designers. Generally, home designers do not have a deep understanding of lamps and corresponding accessories, and often miss accessories or order more accessories, and the configuration plan usually cannot achieve the optimal combination.

[0057] In view of this, a method, device, electronic device and storage medium for calculating lamp accessories are provided in an embodiment of the present application. The scheme obtains the total lamp power corresponding to all lamps in the target order; calculates the total driver information matching the total lamp power according to the total lamp power; classifies each lamp in the target order to obtain a number of switch sets and switchless lamp sets; calculates the target lamp power corresponding to each switch set and each switchless lamp set, and sorts each target lamp power to obtain a target power sorting result; configures each lamp in each switch set and each switchless lamp set with a corresponding target driver according to the target power sorting result and the total driver information; calculates the switch accessory information of each lamp in each switch set according to the number of cross-drivers of each lamp in each switch set after the target driver is configured; calculates the number of junction boxes of each lamp according to the number of switches of each lamp in each switch set and each switchless lamp set; and generates an accessory configuration list for each lamp based on the target driver, the switch accessory information and the number of junction boxes. The embodiment of the present application configures the corresponding target driver for each lamp in each switch set and each switchless lamp set according to the target power sorting result and the total driver information, and can reasonably configure the driver according to the power demand so that each lamp is properly powered, which is beneficial to improving the performance and reliability of the lamp. Based on the number of cross-drivers of each lamp in each switch set after the target driver is configured, the switch accessory information of each lamp in each switch set can be reasonably calculated; the lamp accessory calculation method provided by the embodiment of the present application can realize automatic calculation of lamp accessories by the system, improve the efficiency and accuracy of lamp accessory configuration, and the automatic calculation of lamp accessories can obtain the optimal configuration plan to reduce unnecessary accessory design, save assembly space and reduce costs, while reducing the professional skill requirements for designers and installers.

[0058] The calculation method of lamp accessories provided in the embodiment of the present application relates to the field of automation control technology. The calculation method of lamp accessories provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or it can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network) and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements the calculation method of lamp accessories, etc., but is not limited to the above forms.

[0059] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs (personalcomputers), minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0060] See also Figure 1 , Figure 1 is an optional step flow chart of a calculation method for a lamp accessory provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S108.

[0061] Step S101, obtaining the total lamp power corresponding to all lamps in the target order;

[0062] In the embodiments of the present application, the calculation of accessories of LED (Light-Emitting Diode) lamps for smart customized homes is mainly explained. It can be understood that the calculation method of lamp accessories provided in the embodiments of the present application can also be adjusted according to actual conditions for calculation of accessories with the same properties or principles.

[0063] In some embodiments, step S101 may include: obtaining a target order; the target order includes a number of lamps; and calculating the total lamp power corresponding to all lamps in the target order according to the quantity and type of each lamp.

[0064] The target order may be the configuration information of the wardrobe that the customer needs to design, and the target order may include the type of lamps, the quantity of lamps, and the content of the lamps.

[0065] In the embodiment of the present application, the lamp is described by taking an LED lamp as an example, wherein the total power of the lamp is the sum of the powers of all lamps in the target order, and the total power can be calculated according to the number and types of all lamps.

[0066] In the specific implementation, understanding the total power demand of the lamps in the order is the basis for formulating the subsequent configuration plan. By obtaining the total power of all lamps corresponding to the target order, it can be used to budget energy consumption and optimize energy management, so that the configured drivers, switches and accessory lamps can meet actual needs and avoid waste or shortage.

[0067] Step S102, calculating total driver information matching the total power of the lamp according to the total power of the lamp;

[0068] Among them, the driver is a transformer with a rated power, and different power or quantity combinations need to be calculated and configured according to the power of the lamp.

[0069] The total driver information includes the total driver types and total driver quantity. The total driver types and total driver quantity are calculated based on the total power of all lamps in the order, and are used to reasonably allocate drivers to each lamp in the future.

[0070] In some embodiments, step S102 may include: calculating, according to the total power of the lamp, the total driver types and the total driver quantity that match the total power of the lamp.

[0071] In an embodiment of the present application, by calculating the total types and total number of drivers that match the total power of the lamp based on the total power of the lamp, the driver can withstand the corresponding load and avoid overload or waste, thereby optimizing the driver configuration and improving system performance and reliability. At the same time, precise matching can reduce energy consumption and costs and improve the efficiency of the overall system.

[0072] Step S103, classifying each of the lamps in the target order to obtain a plurality of switch sets and non-switch lamp sets;

[0073] Among them, a switch set consists of all lamps controlled by an independent switch, and a switchless lamp set consists of a lamp that carries its own switch.

[0074] LED light sensors, commonly known as switches, are often available in different types in custom homes (such as touch, human body sensing, door control, etc.), and customers will choose different types according to the scene. In addition, there will be a combination of different switches, or multiple types of switches in a set of cabinets.

[0075] In an embodiment of the present application, by classifying each lamp in the target order to obtain a number of switch sets and non-switch lamp sets, the subsequent configuration work can be simplified, making the configuration process clearer and easier to manage and maintain.

[0076] Step S104, calculating the target lamp power corresponding to each of the switch sets and each of the non-switch lamp sets, and sorting the target lamp powers to obtain a target power sorting result;

[0077] In some embodiments, step S104 may include: calculating the target lamp power corresponding to each switch set according to the type and quantity of lamps in each switch set, and using the target lamp power corresponding to the switch set as the first target lamp power; calculating the target lamp power corresponding to each non-switch lamp set according to the type of lamps in each non-switch lamp set, and using the target lamp power corresponding to the non-switch lamp set as the second target lamp power; sorting each first target lamp power and each second target lamp power according to a preset order rule to obtain a target power sorting result; wherein the sorting priority of the second target lamp power is set to be lower than the first target lamp power.

[0078] Among them, the first target lamp power is the total power corresponding to all lamps in the switch set, which can be calculated according to the types and quantity of lamps in the switch set. The second target lamp power is the target lamp power corresponding to the lamp set without switches. The target lamp power of the lamp set without switches is the power of a single lamp body for lamps with built-in switches. The corresponding power can be obtained according to the type of the lamp body itself.

[0079] In the specific implementation, the sorting rule is to sort from high to low according to the total power of the lamps in the switch set, and the priority of the lamp set without a switch is the lowest, so that the lamps in the same switch set can be on one driver as much as possible. Since the cost will be increased by adding new accessories across drivers, if the lamps in the same switch set are on one driver, it is easy to control and can also reduce the corresponding cost.

[0080] In an embodiment of the present application, by calculating the target lamp power corresponding to each switch set and each non-switch lamp set, and sorting the target lamp power to obtain the target power sorting result, the power requirement of each lamp can be understood more intuitively, providing a reference basis for subsequent driver configuration, and facilitating energy consumption optimization.

[0081] Step S105, configuring corresponding target drivers for each lamp in each of the switch sets and each of the non-switch lamp sets according to the target power sorting result and the total driver information;

[0082] In some embodiments, step S105 may include: matching the total driver types and the total driver quantity included in the total driver information to the respective lamps in each switch set and each non-switch lamp set according to the target power sorting result.

[0083] In some embodiments, step S105 may include: when the target lamp power corresponding to a switch set is greater than the power of a driver to be matched, sorting the lamps in the switch set according to a preset order rule to obtain a lamp power sorting result; configuring the corresponding first target driver for each lamp in the switch set in turn according to the lamp power sorting result and the total driver information; when the remaining power of the first target driver cannot meet the remaining maximum power lamps in the switch set, starting the second target driver to configure the driver for the remaining maximum power lamps in the switch set; wherein, when assigning target drivers to the lamps to be configured, the remaining power of the first target driver is used as the first allocation order.

[0084] In the specific implementation, firstly, the total power of the switch set lamps is sorted from high to low, and the priority of the non-switch lamp set is the lowest. Then, according to the total number of drivers calculated in the above steps, the switch set lamps are assigned to the drivers. Specifically, when the power of a switch set lamp is greater than the power of a driver, all the lamps in the switch set need to be sorted from high to low according to the power and assigned to the drivers in sequence. At the same time, when the power of the first driver is not enough for the lamp with the largest remaining power in the switch set, the second driver will be started. In addition, each lamp in the subsequent switch set needs to prioritize the identification of the remaining power of the first driver, that is, the first driver's remaining power is used first. In addition, when the first switch set completes the matching, the second switch set is started for calculation. At this time, the remaining power value of each remaining driver needs to be identified, and the driver with the highest remaining power value is matched first. Finally, all the lamps in the order are allocated according to the above logic, so that a switch set lamp is placed on one driver as much as possible. Since the cost will be increased if new accessories are added across drivers, if the lamps in the same switch set are in one driver, it is easy to control and can also reduce the corresponding cost.

[0085] In the related art, the LED sensor (switch) has overcurrent and power limitation. It is impossible to control all lights in a cabinet (the power may be greater than 100W) by one switch, because this type of switch has overcurrent and the rated power is generally small. In addition, each customer has different requirements for switch control. At present, the industry basically only allows customers to choose a switch with one power supply, which cannot really meet customer needs. For example, the customer needs a human body sensing switch at the open grid position of the entrance cabinet. When entering the door at night, the cabinet light automatically senses and lights up, but during the day, it may be triggered by human movement, etc. Automatic sensing, at this time, it is necessary to add another button switch control, and the lights in the non-open grid of the same cabinet need to be controlled by a door-controlled switch. When the door is opened, it automatically lights up and goes out when the door is closed. The current implementation method in the industry is that one switch requires a driver, which has a serious waste of cost and will cause the disadvantage of low space utilization. In addition, when there are a lot of lights in a cabinet, multiple drivers are required, and it is impossible to control all lamps at the same time with one switch.

[0086] In the embodiment of the present application, the switch set lamps are sorted from high to low according to the total power, and the priority of the non-switch lamp set is the lowest. Then, according to the total number of drivers calculated in the above steps, the switch set lamps are assigned to the drivers. Specifically, when the power of a switch set lamp is greater than the power of a driver, all the lamps in the switch set need to be sorted from high to low according to the power and assigned to the drivers in sequence. At the same time, when the power of the first driver is not enough for the lamp with the largest remaining power in the switch set, the second driver will be started. In addition, each lamp in the subsequent switch set needs to prioritize the identification of the remaining power of the first driver, that is, the first driver's remaining power is used preferentially. In addition, when the first switch set completes the matching, the second switch set is started for calculation. At this time, the remaining power value of each remaining driver needs to be identified, and the driver with the highest remaining power value is matched preferentially. Finally, all the lamps in the order are allocated according to the above logic, so that a switch set lamp is placed on one driver as much as possible, which is easy to control and can also reduce the corresponding cost.

[0087] Step S106, calculating switch accessory information of each lamp in each switch set according to the number of cross-drivers of each lamp in each switch set that has configured the target driver;

[0088] The switch accessories information may include but is not limited to: a joint control box, a joint control line and a switch control box.

[0089] In some embodiments, step S106 may include: if the number of cross-drivers for each lamp in each switch set after the target driver is configured is not zero, then a corresponding joint control box, joint control line and switch control box are configured for each lamp in each switch set; if the number of cross-drivers for each lamp in each switch set after the target driver is configured is zero, then a corresponding switch control box is configured for each lamp in each switch set; if there is only one independent switch on the target driver configured for each lamp in each switch set, then the switch control box is unconfigured.

[0090] In the specific implementation, first, after all lamps have been assigned corresponding drivers, it is necessary to determine whether there is a phenomenon of lamps crossing drivers in the same switch set. If there is no phenomenon of lamps crossing drivers, a switch control box is configured for each switch. If there is a phenomenon of lamps crossing drivers, a joint control box, joint control line and switch control box need to be configured. Secondly, if there is only one switch on each driver, the corresponding switch control box is cancelled, because the driver comes with an invisible switch control box, which can save costs.

[0091] For example, each switch that does not span across drivers is equipped with a switch control box; when a single switch (except for double-door joint control) spans N drivers, it is equipped with 1 joint control box, 1 switch control box, and N joint control connection lines; when a single double-door joint control switch spans N drivers, it is equipped with 2 joint control boxes, N switch control boxes, and 2N joint control connection lines. It should be noted that the above content is only a simple example. In actual applications, it can be adjusted according to actual conditions to optimize the allocation.

[0092] In an embodiment of the present application, by calculating the switch accessory information of each lamp in each switch set according to the number of cross-drivers of each lamp in each switch set that has configured the target driver, each switch can accurately control the corresponding lamp, which is beneficial to improving the flexibility and convenience of the system.

[0093] Step S107, calculating the number of junction boxes of each lamp according to the number of switches of each lamp in each switch set and each switchless lamp set;

[0094] In the specific implementation, the distribution is performed according to the number of switches. Specifically, the calculation formula for the number of junction boxes is:

[0095] 1) When there is no switch in the entire order, the number of junction boxes n is configured according to the number of lamps X for each driver: n=0 (X≤12), n=(X-12) / 5 (round up).

[0096] 2) When there is only one switch in the entire order, there are two situations. One is that the lamp is directly on the driver. According to the X lamps on each driver, the number of distribution boxes is n: n = (X / 5-1.2) (round up). The other is to cancel the configuration of the switch control box.

[0097] 3) When there is more than one switch in the entire order, the lamps are connected to the switch control box. According to the number of lamps connected to each switch control box, the number of distribution boxes n is: n=0 (X≤3), n= Math.ceil{(x-2) / 5-1.2} +1(X≥4).

[0098] 4) In the two cases of 2) and 3), only the number of junction boxes corresponding to the lamps with independent switches is calculated. However, lamps with independent switches may also have built-in switches. Therefore, the number of junction boxes corresponding to the built-in switches other than independent switches needs to be calculated. The calculation process is: according to the built-in switch lamp X on each driver, the number of junction boxes n is allocated: n=(X / 5-1.2) (round up).

[0099] Step S108: generating an accessory configuration list for each of the lamps based on the target driver, the switch accessory information and the number of junction boxes.

[0100] The accessories list of the lamp may include the material name, the corresponding specifications of the material, the corresponding quantity of the material, relevant remarks, etc. The material name may include the lamp type, driver, junction box, switch type, and switch accessories.

[0101] In the embodiment of the present application, by generating a detailed accessory configuration list, the number of drivers, switches and accessories required for each lamp can be clearly displayed, which is beneficial to subsequent procurement, installation and maintenance work, improves work efficiency and reduces error rate.

[0102] After generating the accessory configuration list of the lamp, the relationship table is printed and sent to the installation site together with the materials. The installer can install according to the relationship table to improve installation efficiency. This also avoids the problem of the installer being a non-professional electrician who does not have a deep understanding of power calculation and wiring.

[0103] In order to explain the principle of the technical solution of the present invention in detail, the overall process of the present invention is described below in combination with some specific embodiments. It is easy to understand that the following is an explanation of the technical principle of the present invention and cannot be regarded as a limitation of the present invention.

[0104] Step 1: The calculation method of lamp accessories provided in the embodiment of the present application can divide the entire system into four parts: lamps, switches, drivers, and wiring accessories.

[0105] Before calculating the lamp accessories, the lamps need to be mapped to the corresponding modules and rules in the design software, so that the designer can drag the relevant lamps and switch accessories into the cabinet space according to customer needs. Please refer to Figure 2 , Figure 2 is a schematic diagram of an interface of a design software provided in an embodiment of the present application, such as Figure 2 As shown, Figure 2 It is the wizard interface for customizing the front decorative panel lights of home wardrobe cabinets in the design software. The wizard interface includes the parameter configuration interface ( Figure 2 The dashed box a in the figure) and the display interface of the set object (such as a wardrobe) ( Figure 2 ), where the parameter configuration interface mainly includes settings such as switch type, door control type, switch serial number, light type, and wardrobe LED position. For example, the switch type may include but is not limited to: door control, somatosensory control, touch sensing control, and mechanical touch control. For example, the door control switch can be represented by M, the membrane switch can be represented by B, and the human body sensing switch can be represented by R. The same letters but different numbers represent the same type of switches but not the same switch. Lights with the same letters and numbers are connected to the same switch.

[0106] In the specific implementation, when selecting each lamp in the design software, the designer needs to select the switch type and switch serial number (code) in the interface wizard of the design software. Different switch types can be represented by different letters, and the numbers following the letters represent whether the switches are the same. For example, if M1 is selected for lamp 1, M1 is selected for lamp 2, M2 is selected for lamp 3, and T1 is selected for lamp 4, it means that lamp 1 and lamp 2 are controlled by the same door-controlled switch, lamp 3 is controlled by another door-controlled switch, and lamp 4 is controlled by a somatosensory switch.

[0107] Step 2: Through the operation in step 1, the real combination requirements of the front end can be identified. The system will record the combination statistics of the lights connected to different switches.

[0108] Step 3: Perform subsequent logical calculations based on actual needs. Figure 3 , Figure 3 is a flow chart of a calculation method for lamp accessories provided in an embodiment of the present application; Figure 3 As shown:

[0109] (1) You need to assign the lamps to the driver first, specifically:

[0110] First, calculate the total power according to the number and type of all lamps, and then configure the total type and total number of drivers according to the power calculation results, so as to allocate them to the corresponding lamps in the subsequent steps. Figure 4 , Figure 4is the configuration rule of the wiring assembly provided in the embodiment of the present application; after calculating the total power of all the lamps in the target order, it can be based on Figure 4 Configure the corresponding components according to the configuration rules in the , such as drivers, high-voltage power lines (LED power lines) and high-voltage power strips. Figure 4 The component configuration rules shown in are only examples and can be adjusted accordingly according to actual conditions in actual applications, and the embodiments of the present application are not limited to this.

[0111] Next, the total power of the lamps in the switch set needs to be sorted from high to low, and the lamps corresponding to the non-switch lamp set also need to be sorted from high to low by power. Among them, all lamps under a switch are combined into a switch set, and lamps with their own switches are regarded as non-switch lamp sets, and non-switch lamp sets have the lowest priority. Among them, the purpose of sorting is to make the lamps in the same switch set on the same driver as much as possible. Adding new accessories across drivers will increase costs.

[0112] Furthermore, according to the total number of drivers calculated in the above steps, the switch set lamps are assigned to the drivers, and the self-contained switch lamps also need to configure the drivers according to the power of one lamp, that is, a lamp set without a switch. Specifically, taking the lamps of the switch set configured with independent switches as an example: when the power of a switch set lamp is greater than the power of a driver, all the lamps in the switch set need to be sorted from high to low according to the power, and the drivers are assigned in sequence. At the same time, when the power of the first driver is not enough for the lamp with the largest remaining power in the switch set, the second driver will be started. In addition, each lamp in the subsequent switch set needs to give priority to identifying the remaining power of the first driver, that is, give priority to using the remaining power of the first driver, in order to make a switch set lamp on one driver as much as possible, and adding accessories across drivers will increase costs. In addition, after the first switch set is matched, the second switch set is started for calculation. At this time, it is necessary to identify the remaining power value of each remaining driver, and give priority to matching the driver with the highest remaining power value. Similarly, the purpose is also to make a switch set lamp on one driver as much as possible, and adding accessories across drivers will increase costs.

[0113] Finally, all the lamps in the order are allocated according to the above logic.

[0114] (2) Calculate switch accessories, specifically:

[0115] First, after all lamps have been assigned corresponding drivers, it is necessary to determine whether there is a phenomenon of lights crossing drivers in the same switch set. If there is no phenomenon of lights crossing drivers, a switch control box will be configured for each switch. If there is a phenomenon of lights crossing drivers, it is necessary to configure a joint control box, joint control wires and switch control box. Exemplarily, each switch that does not cross drivers is equipped with a switch control box; when a single switch (except for double-door joint control) crosses N drivers, it is equipped with 1 joint control box, 1 switch control box, and N joint control connecting wires; when a single double-door joint control switch crosses N drivers, it is equipped with 2 joint control boxes, N switch control boxes, and 2N joint control connecting wires. It should be noted that the above content is only a simple example. In actual applications, it can be adjusted according to actual conditions to optimize the allocation.

[0116] Secondly, if there is only one switch on each driver, the switch control box of the corresponding configuration mentioned above can be cancelled, because the driver comes with an invisible switch control box, which can save costs.

[0117] (3) Configure a junction box (the number of lamp sockets on the driver or switch control box is limited. When the number of lamps is large, a junction box is required). Specifically:

[0118] First, allocate according to the number of switches. Specifically:

[0119] The calculation formula for the number of junction boxes is:

[0120] 1) When there is no switch in the entire order, the number of junction boxes n is configured according to the number of lamps X for each driver: n=0 (X≤12), n=(X-12) / 5 (round up).

[0121] 2) When there is only one switch in the entire order, there are two situations. One is that the lamp is directly on the driver. According to the X lamps on each driver, the number of distribution boxes is n: n = (X / 5-1.2) (round up). The other is to cancel the configuration of the switch control box.

[0122] 3) When there is more than one switch in the entire order, the lamps are connected to the switch control box. According to the number of lamps connected to each switch control box, the number of distribution boxes n is: n=0 (X≤3), n= Math.ceil{(x-2) / 5-1.2} +1(X≥4).

[0123] 4) In the two cases of 2) and 3), only the number of junction boxes corresponding to the lamps with independent switches is calculated. However, lamps with independent switches may also have built-in switches. Therefore, the number of junction boxes corresponding to the built-in switches other than independent switches needs to be calculated. The calculation process is: according to the built-in switch lamp X on each driver, the number of junction boxes n is allocated: n=(X / 5-1.2) (round up).

[0124] In the specific implementation, when there is no switch in the entire order, each driver can be inserted into 12 lamps (with built-in switches). If there is only one switch, each driver can be inserted into 6 lamps. If multiple switches are configured with switch control boxes, each control box can only be inserted into 3 lamps. If there are more than 3 lamps, a junction box is required. When the order comes with a switch, after calculating the switch set lamps, the lamps without switches must also be calculated. When a driver is inserted into a switch, 6 built-in switch lamps can be inserted.

[0125] (4) After the system calculates all the accessories, it needs to output the details and relationship table, specifically:

[0126] See also Figure 5 , Figure 5 is a schematic diagram of a list of accessories for a lamp provided in an embodiment of the present application, such as Figure 5 As shown in the figure, the accessories list of the lamp may include the material name, the corresponding specifications of the material, the corresponding quantity of the material, relevant remarks, etc. Figure 5 As shown, the material name can include the type of lamp, driver, junction box, switch type, and switch accessories. For the relevant remarks, for example: 1. The remarks for the built-in switch lamp are to note the driver where the lamp is located, that is, it is necessary to note which driver the built-in switch lamp is directly plugged into; 2. The remarks for the switch control box are to note the driver and switch where the switch control box is located, that is, it is necessary to note which driver the switch control box is plugged into and which switch the switch control box is connected to; 3. The remarks for the switch are to note the switch number and the switch control box where it is located. For joint control, multiple switch control box serial numbers need to be added, that is, it is necessary to note which switch control box or which driver the switch is plugged into. If there is a joint control, it is necessary to note which switch control boxes this switch will be connected to; 4. When there is a joint control box, the lamp after the joint control box needs to be annotated with the corresponding switch control box, that is, non-self-contained switch lamps need to be annotated to show which switch control box or driver (switch controlled area) it is plugged into. Among them, Figure 5 K stands for switch control box, Q stands for driver, B stands for membrane switch, SM stands for dual door switch, M stands for door switch, and R stands for human sensor switch. By generating a detailed accessory configuration list, the number of drivers, switches and accessories required for each lamp can be clearly displayed, which is conducive to subsequent procurement, installation and maintenance work, improving work efficiency and reducing error rates.

[0127] It should be noted that the above description of the contents in the accessories configuration list of the lamp is only a simple example. In actual application, it can be adjusted or set according to actual conditions, and the embodiment of the present application does not limit this.

[0128] After the relationship table is printed, it is sent to the installation site together with the materials. The installer can perform the installation according to the relationship table to improve the installation efficiency. It also avoids the problem that the installer is not a professional electrician and does not have a deep understanding of power calculation and wiring.

[0129] It should be pointed out that this embodiment only briefly illustrates the general process of the calculation method for lamp accessories. The detailed description of each step can refer to the relevant content in the aforementioned embodiment and will not be repeated here. It can be understood that the present invention is not limited to this.

[0130] The embodiment of the present application obtains the total lamp power corresponding to all lamps in the target order; calculates the total driver information matching the total lamp power according to the total lamp power; classifies each lamp in the target order to obtain a number of switch sets and lamp sets without switches; calculates the target lamp power corresponding to each switch set and each lamp set without switches, and sorts each target lamp power to obtain a target power sorting result; configures each lamp in each switch set and each lamp set without switches with a corresponding target driver according to the target power sorting result and the total driver information; calculates the switch accessory information of each lamp in each switch set according to the number of cross-drivers of each lamp in each switch set after the target driver is configured; calculates the number of junction boxes of each lamp according to the number of switches of each lamp in each switch set and each lamp set without switches; and generates an accessory configuration list for each lamp based on the target driver, the switch accessory information and the number of junction boxes. The embodiment of the present application configures the corresponding target driver for each lamp in each switch set and each switchless lamp set according to the target power sorting result and the total driver information, and can reasonably configure the driver according to the power demand so that each lamp is properly powered, which is beneficial to improving the performance and reliability of the lamp. Based on the number of cross-drivers of each lamp in each switch set after the target driver is configured, the switch accessory information of each lamp in each switch set can be reasonably calculated; the lamp accessory calculation method provided by the embodiment of the present application can realize automatic calculation of lamp accessories by the system, improve the efficiency and accuracy of lamp accessory configuration, and the automatic calculation of lamp accessories can obtain the optimal configuration plan to reduce unnecessary accessory design, save assembly space and reduce costs, while reducing the professional skill requirements for designers and installers.

[0131] See also Figure 6 The embodiment of the present application further provides a computing device 600 for a lamp accessory, which can implement the above-mentioned computing method for a lamp accessory. The device 600 includes:

[0132] The lamp total power acquisition module 601 is used to acquire the lamp total power corresponding to all lamps in the target order;

[0133] A total driver information acquisition module 602 is used to calculate total driver information matching the total power of the lamp according to the total power of the lamp;

[0134] A lamp classification module 603 is used to classify each of the lamps in the target order to obtain a plurality of switch sets and non-switch lamp sets;

[0135] The lamp power sorting module 604 is used to calculate the target lamp power corresponding to each of the switch sets and each of the non-switch lamp sets, and sort the target lamp power to obtain a target power sorting result;

[0136] A driver configuration module 605, configured to configure a corresponding target driver for each lamp in each of the switch sets and each of the non-switch lamp sets according to the target power sorting result and the total driver information;

[0137] A switch accessory calculation module 606, configured to calculate switch accessory information of each lamp in each switch set according to the number of cross-drivers of each lamp in each switch set configured with the target driver;

[0138] A junction box quantity calculation module 607, used to calculate the number of junction boxes of each lamp according to the number of switches of each lamp in each switch set and each switchless lamp set;

[0139] The lamp accessories list generating module 608 is used to generate an accessories configuration list of each lamp based on the target driver, the switch accessories information and the number of junction boxes.

[0140] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0141] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned calculation method of lamp accessories when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0142] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0143] See also Figure 7 , Figure 7 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0144] The processor 701 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0145] The memory 702 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 702 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 702, and the processor 701 calls and executes the calculation method of the lamp accessories in the embodiment of this application;

[0146] Input / output interface 703, used to implement information input and output;

[0147] Communication interface 704, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0148] A bus 705 that transmits information between various components of the device (e.g., the processor 701, the memory 702, the input / output interface 703, and the communication interface 704);

[0149] The processor 701 , the memory 702 , the input / output interface 703 and the communication interface 704 are connected to each other in communication within the device via a bus 705 .

[0150] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the calculation method of the lamp accessory is implemented.

[0151] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0152] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0153] The embodiments of the present application provide a method for calculating lamp accessories, a device for calculating lamp accessories, an electronic device and a storage medium, which obtain the total lamp power corresponding to all lamps in a target order; calculate the total driver information matching the total lamp power according to the total lamp power; classify each lamp in the target order to obtain a number of switch sets and lamp sets without switches; calculate the target lamp power corresponding to each switch set and each lamp set without switches, and sort each target lamp power to obtain a target power sorting result; configure each lamp in each switch set and each lamp set without switches with a corresponding target driver according to the target power sorting result and the total driver information; calculate the switch accessory information of each lamp in each switch set according to the number of cross-drivers of each lamp in each switch set after the target driver is configured; calculate the number of junction boxes of each lamp according to the number of switches of each lamp in each switch set and each lamp set without switches; and generate an accessory configuration list for each lamp based on the target driver, the switch accessory information and the number of junction boxes. The embodiment of the present application configures the corresponding target driver for each lamp in each switch set and each switchless lamp set according to the target power sorting result and the total driver information, and can reasonably configure the driver according to the power demand so that each lamp is properly powered, which is beneficial to improving the performance and reliability of the lamp. Based on the number of cross-drivers of each lamp in each switch set after the target driver is configured, the switch accessory information of each lamp in each switch set can be reasonably calculated; the lamp accessory calculation method provided by the embodiment of the present application can realize automatic calculation of lamp accessories by the system, improve the efficiency and accuracy of lamp accessory configuration, and the automatic calculation of lamp accessories can obtain the optimal configuration plan to reduce unnecessary accessory design, save assembly space and reduce costs, while reducing the professional skill requirements for designers and installers.

[0154] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0155] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0156] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0157] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0158] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0159] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0160] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0161] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0162] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0163] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0164] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A method for calculating lamp accessories, characterized in that: The method comprises: Get the total power of all lamps in the target order; According to the total power of the lamp, calculating total driver information matching the total power of the lamp; Classifying each of the lamps in the target order to obtain a plurality of switch sets and non-switch lamp sets; wherein one switch set is composed of all lamps controlled by an independent switch, and one non-switch lamp set is composed of a lamp with its own switch; Calculating the target lamp powers corresponding to each of the switch sets and each of the non-switch lamp sets, and sorting the target lamp powers to obtain a target power sorting result; According to the target power ranking result and the total driver information, a corresponding target driver is configured for each lamp in each of the switch sets and each of the non-switch lamp sets; Calculating switch accessory information of each lamp in each switch set according to the number of cross-drivers of each lamp in each switch set that has configured the target driver; Calculate the number of junction boxes for each of the lamps according to the number of switches for each of the lamps in each of the switch sets and each of the switchless lamp sets; Based on the target driver, the switch accessory information and the number of junction boxes, an accessory configuration list of each of the lamps is generated.

2. The method according to claim 1, characterized in that The obtaining of the total lamp power corresponding to all lamps in the target order includes: Obtaining a target order; the target order includes a number of lamps; According to the quantity and type of each of the lamps, the total lamp power corresponding to all the lamps in the target order is calculated.

3. The method according to claim 1, characterized in that The total driver information includes the total driver types and the total driver quantity. The total driver information matching the total power of the lamp is calculated according to the total power of the lamp, including: According to the total power of the lamp, the total driver types and total driver quantity matching the total power of the lamp are calculated.

4. The method according to claim 1, characterized in that: The calculating the target lamp powers corresponding to each of the switch sets and each of the non-switch lamp sets, and sorting the target lamp powers to obtain a target power sorting result, includes: Calculate the target lamp power corresponding to each switch set according to the type and quantity of lamps in each switch set, and use the target lamp power corresponding to the switch set as the first target lamp power; Calculate the target lamp power corresponding to each of the non-switch lamp sets according to the types of lamps in each of the non-switch lamp sets, and use the target lamp power corresponding to the non-switch lamp set as the second target lamp power; The first target lamp powers and the second target lamp powers are sorted according to a preset order rule to obtain a target power sorting result; wherein the sorting priority of the second target lamp powers is set to be lower than the first target lamp powers.

5. The method according to claim 1, characterized in that: The configuring corresponding target drivers for each lamp in each of the switch sets and each of the non-switch lamp sets according to the target power sorting result and the total driver information includes: According to the target power sorting result, the total driver types and the total driver quantity included in the total driver information are matched to the lamps in each of the switch sets and each of the non-switch lamp sets respectively.

6. The method according to claim 1, characterized in that The configuring corresponding target drivers for each lamp in each of the switch sets and each of the non-switch lamp sets according to the target power sorting result and the total driver information includes: When the target lamp power corresponding to one of the switch sets is greater than the power of a driver to be matched, the lamps in the switch set are sorted according to a preset sequence rule to obtain a lamp power sorting result; sequentially configuring corresponding first target drivers for each of the lamps in the switch set according to the lamp power ranking result and the total driver information; When the remaining power of the first target driver cannot meet the needs of the lamps with the remaining maximum power in the switch set, the second target driver is started to configure the driver for the lamps with the remaining maximum power in the switch set; wherein, when allocating target drivers to the lamps to be configured, the remaining power of the first target driver is used as the first allocation order.

7. The method according to claim 1, characterized in that The calculating the switch accessory information of each lamp in each switch set according to the number of cross-drivers of each lamp in each switch set after configuring the target driver includes: If the number of cross-drivers of each lamp in each switch set after configuring the target driver is not zero, then configure a corresponding joint control box, joint control line and switch control box for each lamp in each switch set; If the number of cross-drivers of each lamp in each switch set after configuring the target driver is zero, configuring a corresponding switch control box for each lamp in each switch set; If there is only one independent switch on the target driver configured for each lamp in each switch set, the switch control box is unconfigured.

8. A computing device for a lamp accessory, characterized in that: The device comprises: A lamp total power acquisition module is used to acquire the lamp total power corresponding to all lamps in the target order; A total driver information acquisition module, used to calculate total driver information matching the total power of the lamp according to the total power of the lamp; A lamp classification module, used for classifying each of the lamps in the target order to obtain a plurality of switch sets and non-switch lamp sets; wherein one switch set is composed of all lamps controlled by an independent switch, and one non-switch lamp set is composed of a lamp with its own switch; A lamp power sorting module, used for calculating the target lamp power corresponding to each of the switch sets and each of the non-switch lamp sets, and sorting each of the target lamp powers to obtain a target power sorting result; A driver configuration module, configured to configure a corresponding target driver for each lamp in each of the switch sets and each of the non-switch lamp sets according to the target power sorting result and the total driver information; A switch accessory calculation module, configured to calculate switch accessory information of each lamp in each switch set according to the number of cross-drivers of each lamp in each switch set configured with the target driver; A junction box quantity calculation module, used for calculating the number of junction boxes of each lamp according to the number of switches of each lamp in each switch set and each switchless lamp set; The lamp accessories list generating module is used to generate an accessories configuration list of each lamp based on the target driver, the switch accessories information and the number of junction boxes.

9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.