CN107809813A - The method and apparatus that LED is grouped automatically - Google Patents

The method and apparatus that LED is grouped automatically Download PDF

Info

Publication number
CN107809813A
CN107809813A CN201610814904.7A CN201610814904A CN107809813A CN 107809813 A CN107809813 A CN 107809813A CN 201610814904 A CN201610814904 A CN 201610814904A CN 107809813 A CN107809813 A CN 107809813A
Authority
CN
China
Prior art keywords
led
group number
hop count
packet
control instruction
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
CN201610814904.7A
Other languages
Chinese (zh)
Other versions
CN107809813B (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.)
Easy Square Tube In Beijing Reaches Science And Technology Ltd
Original Assignee
Easy Square Tube In Beijing Reaches Science And Technology 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 Easy Square Tube In Beijing Reaches Science And Technology Ltd filed Critical Easy Square Tube In Beijing Reaches Science And Technology Ltd
Priority to CN201610814904.7A priority Critical patent/CN107809813B/en
Publication of CN107809813A publication Critical patent/CN107809813A/en
Application granted granted Critical
Publication of CN107809813B publication Critical patent/CN107809813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/40Details of LED load circuits
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The present invention relates to the method and apparatus that LED is grouped automatically.Methods described includes:Receive LED restarts confirmation message;Record the time for restarting confirmation message of the LED received;Same group number is provided to restarting LED of the time of confirmation message in the same period;Store group number and carry the lamp address of the LED of same group number mark;The packet for sending carrying group number mark is instructed to the lamp address for the purpose LED for carrying same group number mark.The method that LED provided in an embodiment of the present invention is grouped automatically, packet is intelligently identified by this LED, not only increases the efficiency of packet, also improve the efficiency of installation and the debugging of LED.

Description

The method and apparatus that LED is grouped automatically
Technical field
The present invention relates to technical field of wireless, specifically, the method that is grouped automatically the present invention relates to LED and Device.
Background technology
Because LED uses electric field electricity-generating, LED has the advantages that small volume, luminance height and low-power consumption, therefore, LED Lamp turns into widely used lighting apparatus in people's Working Life.
It is adapted to the characteristic of digital dimming for LED, installing wireless energy control units additional in each LED can be to all LED, which is realized, easily to be dimmed, mixes colours, while all LEDs can be realized easily with all control, subregion control.From Apple iPhone, iPad, and after Android phone and flat board become increasingly popular, intelligent lighting is more next from the family of ordinary consumer It is nearer.Compared with traditional lighting, intelligent lighting can reach safety, save, be comfortable, efficient purpose, therefore intelligent lighting is in Occupying field, office realm, commercial field and communal facility field has preferable development prospect.
The control model of intelligent lighting generally includes manually and automatically two kinds, MANUAL CONTROL mode typically by remote control, Intelligent terminal, smart mobile phone or flat board carry out the regulation of brightness, colour temperature and color to single or multiple lighting apparatus, automatically control Typically realized by means such as timing, sensor controls and light is automatically adjusted.
The advantages of based on above-mentioned intelligent LED lamp, intelligent LED lamp are installed in office block, and megastore.For example, One layer of one office block just has hundreds of nodes.When these profiles seem that almost duplicate LED is mounted Afterwards, how to go to control these LEDs will be highly difficult thing for subregion, and specifically, how subregion goes control to be arranged in The LED in specific floor room, how subregion goes control to be arranged in the LED of specific floor meeting room, and how subregion Domain is gone to control the LED for being arranged in specific floor corridor, and how subregion is gone to control the LED for being arranged in other regions, It will be extremely difficult thing.The people of concrete operations control is needed node distribution corresponding to these LEDs in corresponding group Go.Gone for example, No. 1 LED identified is assigned in 3 that group of floor office, in addition, No. 2 identified LED is assigned in 3 layers of meeting room that group and gone, further, No. 3 LEDs identified be assigned to 3 floor corridor that Gone in group.When there are hundreds of nodes for one layer of an office block, distributed after the identification and identification of such LED The operating process gone in corresponding group will be extremely cumbersome work, and workload is very big, error is easy to, in the event of mistake If, the process checked the LED of the packet that makes a mistake, corrected will be the extremely tedious course of work.
The existing control for these LEDs, it is by the way that the LED identified one by one is dragged into corresponding region Group in go, gone for example, 1 identified, 4,5 and No. 6 LEDs are assigned in 3 that group of floor office, identifying 2,7,8 and No. 9 LEDs be assigned in 3 floor meeting room that group and go, 3 identified, 10,11 and No. 12 LEDs distribution Gone in 3 layers of that group of corridor.
But in reality the problem that runs into be the identification process for the LED for identifying these nodes be it is man-to-man, can only Targetedly, and one by one LED is identified.Existing technology, the batch identification to LED can not be realized.This Sample, will be extremely tedious packet work, before this node one by one if to be grouped to hundreds of nodes of first floor LED identify then which the specific LED identified is assigned in corresponding group and gone, this work will be Extremely time-consuming and consumption manpower work, and once LED misclassification group, it is desirable to check which LED misplaces, and this The LED that small cup misplaces, which is put into correct group, goes, and will be troublesome thing.
The content of the invention
The embodiment of the present invention is to provide the method and apparatus that a kind of LED is grouped automatically, by restarting confirmation message LED of the time in the same period provide same group number;With storing the lamp of the LED of group number and the same group number mark of carrying Location;And the packet instruction for carrying group number mark is sent to the lamp address for the purpose LED for carrying same group number mark, so as to real The automatic packet of LED is showed.Packet is intelligently identified by this LED, the efficiency of packet is not only increased, also improves The efficiency of installation and the debugging of LED.
In a first aspect, the embodiments of the invention provide a kind of method that LED is grouped automatically, methods described includes:
Receive the LED restarts confirmation message;
Record the time for restarting confirmation message of the LED received;
Same group number is provided to restarting LED of the time of confirmation message in the same period;
Store the lamp address of the LED of group number and the same group number mark of/carrying;
The packet for sending carrying group number mark is instructed to the lamp address for the purpose LED for carrying same group number mark.
Preferably, in the packet instruction for sending carrying group number mark to the purpose LED for carrying same group number mark Lamp address after, methods described also includes:
The control instruction for carrying group number mark is sent to the lamp address for the purpose LED for carrying same group number mark, wherein, The control instruction carries the multicast hop count threshold information pre-set.
Preferably, in the control instruction for sending carrying group number mark to the purpose LED for carrying same group number mark Lamp address after, methods described also includes:
Judge the matching degree of the group number of the control instruction and the group number of the purpose LED to prestore, and control in institute State control instruction group number it is with the group number of the purpose LED to prestore consistent when, it is allowed to the purpose LED is to receiving The packet of the control instruction is handled, wherein, the control instruction carries the multicast hop count threshold value letter pre-set Breath.
Preferably, handled in the packet of the control instruction of the permission purpose LED to receiving Before, methods described also includes:
Multicast hop count by reading the purpose LED identifies the multicast hop count for getting the purpose LED, and presses According to rule control only when the multicast hop count is less than or equal to the multicast hop count threshold value, it is allowed to which purpose LED is to receiving The packet of the control instruction performs corresponding control instruction, wherein, the rule includes following at least one:
If current multicast hop count is less than the multicast hop count threshold value, it is allowed to which purpose LED is performed and broadcasted again Control instruction;The multicast hop count after broadcast is specially again:Corresponding multicast hop count adds 1 before broadcasting again, again Remaining multicast hop count threshold information after broadcast is consistent with the multicast hop count threshold information before broadcasting again.
Preferably, after in the described pair of time for restarting confirmation message, the LED in the same period provides same group number, Methods described also includes:
According to the same group number determined, determine described to restart the time of confirmation message in the same period Regional extent corresponding to LED.
Second aspect, the embodiments of the invention provide the device that a kind of LED is grouped automatically, described device includes:
Receiving module, receive the LED restarts confirmation message;
Processor, record the time for restarting confirmation message of the LED received;And
Same group number is provided to restarting LED of the time of confirmation message in the same period;
The lamp address of the LED of memory, storage group number and the same group number mark of/carrying;
Sending module, send the lamp for carrying the packet instruction of group number mark to the purpose LED for carrying same group number mark Address.
Preferably, the packet that carrying group number mark is sent in sending module is instructed to the purpose for carrying same group number mark After the lamp address of LED, the sending module is additionally operable to:
The control instruction for carrying group number mark is sent to the lamp address for the purpose LED for carrying same group number mark, wherein, The control instruction carries the multicast hop count threshold information pre-set.
Preferably, the packet that carrying group number mark is sent in sending module is instructed to the purpose for carrying same group number mark After the lamp address of LED, the processor is additionally operable to:
Judge the matching degree of the group number of the control instruction and the group number of the purpose LED to prestore, and control in institute State control group number it is consistent with the group number of the purpose LED to prestore when, it is allowed to the purpose LED is to described in receiving The packet of control instruction is handled, wherein, the control instruction carries the multicast hop count threshold information pre-set.
The third aspect, the embodiments of the invention provide a kind of LED, the LED includes:
Tandom number generator, it is determined that random number corresponding to current LED;
Timer, the random number according to caused by the tandom number generator, and selected chronomere, really Make timing corresponding to current LED;
Sending module, in the timing, send current LED restarts confirmation message;
Receiving module, receive the packet instruction for the group number for carrying current LED;
Memory, store the group number of current LED and the lamp address of/current LED;
Processor, judges the matching degree of the group number of the packet instruction and the group number of the current LED to prestore, and controls When the group number of current LED of the group number of the packet instruction with prestoring is consistent, it is allowed to which current LED is to receiving the packet The packet of instruction is handled, and performs the packet instruction.
Preferably, after the control instruction that receiving module receives the group number for carrying current LED, the processor It is additionally operable to:Judge the matching degree of the group number of the control instruction and the group number of the current LED to prestore, and exist according to rule control When the group number of current LED of the group number of the control instruction with prestoring is consistent, it is allowed to the current control of the LED to receiving The packet of system instruction is handled, wherein, the control instruction carries the multicast hop count threshold information pre-set, described Rule includes following at least one:The multicast hop count mark for reading current LED get current LED multicast hop count it Afterwards, control is only when the multicast hop count of current LED is less than or equal to the multicast hop count threshold value, it is allowed to which current LED is to receiving The packet of the control instruction arrived performs corresponding control instruction;If current multicast hop count is less than the multicast hop count threshold value When, it is allowed to current LED performs the control instruction broadcasted again;The multicast hop count after broadcast is specially again:Again Corresponding multicast hop count adds 1 before once broadcasting;Again broadcast after remaining multicast hop count threshold information with again broadcast before Multicast hop count threshold information be consistent.
The embodiments of the invention provide the method and apparatus that a kind of LED is grouped automatically, by restarting confirmation message LED of the time in the same period provides same group number;With storing the lamp of the LED of group number and the same group number mark of carrying Location;And the packet instruction for carrying group number mark is sent to the lamp address for the purpose LED for carrying same group number mark, so as to real The automatic packet of LED is showed.The method that LED provided in an embodiment of the present invention is grouped automatically, it is intelligent by this LED Ground identification packet, the efficiency of packet is not only increased, also improve the efficiency of installation and the debugging of LED.
Brief description of the drawings
Fig. 1 is the schematic flow sheet for the method that LED provided in an embodiment of the present invention is grouped automatically;
Fig. 2 is the schematic diagram for the group number for determining LED that one instantiation of the present invention provides;
Fig. 3 is the signal for the lamp address that group number and the LED in group number are stored in the memory of the master control platform in the present invention Figure;
Fig. 4 is that the processor of master control platform controls LED to be grouped automatically to the group of different group numbers by preset control program Other schematic diagram;
Fig. 5 is the schematic diagram of the LED in the group 1 that one instantiation of the present invention provides;
Fig. 6 is the schematic diagram of the LED in the group 2 that one instantiation of the present invention provides;
Fig. 7 is the schematic diagram of an instantiation application scenarios of the invention;
Fig. 8 is the schematic diagram of another instantiation application scenarios of the present invention;
Fig. 9 is the schematic diagram of the scope of the forwarding data in the multicast optimization that one instantiation of the present invention provides;
Figure 10 is pair of the LED in group of the control instruction of one instantiation offer of the present invention with performing control instruction Answer relation schematic diagram;
Figure 11 is the LED in group of the control instruction of another instantiation offer of the invention with performing control instruction Corresponding relation schematic diagram;
Figure 12 is the schematic diagram of the scope of the forwarding data in the multicast optimization that another instantiation of the present invention provides;
Figure 13 is the internal structure block diagram of LED provided in an embodiment of the present invention;
Figure 14 is the schematic diagram that processor provided in an embodiment of the present invention is handled the data received;
Figure 15 is the internal structure block diagram for the device that LED provided in an embodiment of the present invention is grouped automatically.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
For ease of the understanding to the embodiment of the present invention, it is further explained below in conjunction with accompanying drawing with specific embodiment It is bright.
In technical scheme provided by the present invention, pass through LED of the time in the same period to restarting confirmation message Provide same group number;Store group number and carry the lamp address of the LED of same group number mark;And send and carry group number mark Packet instruction is to the lamp address for the purpose LED for carrying same group number mark, it is achieved thereby that the automatic packet of LED.This hair The method that the LED that bright embodiment provides is grouped automatically, packet is intelligently identified by this LED, is not only increased point The efficiency of group, also improve the efficiency of installation and the debugging of LED.The technical side that the invention will now be described in detail with reference to the accompanying drawings Case.
The schematic flow sheet for the method that LED provided in an embodiment of the present invention is grouped automatically, as shown in figure 1, the LED is certainly The method of dynamic packet comprises the following steps:
S101:Receive LED restarts confirmation message.
S102:Record the time for restarting confirmation message of the LED received.
S103:Same group number is provided to restarting LED of the time of confirmation message in the same period.
Need to illustrate when, more LEDs can be had by possessing the LED of same group number, such as possess same group number, group number 1 LED can have 10.
Fig. 2 is the schematic diagram for the group number for determining LED that one instantiation of the present invention provides, as shown in Figure 2.
As shown in Fig. 2 equipment can have multiple equipment, equipment a, equipment b, equipment c and equipment d.Wherein, equipment a, equipment B, equipment c and equipment d can be LED.
As shown in Figure 2, command format not only includes the address information of LED, further comprises the group of current LED Number.Specifically, the group number of current LED is group 1, or organizes 2.
Further, in addition to the address information including LED, command format can also include current command format The numbering of LED.
S104:Store the lamp address of the LED of group number and the same group number mark of/carrying.
Fig. 3 is the signal for the lamp address that group number and the LED in group number are stored in the memory of the master control platform in the present invention Figure, as shown in Figure 3.
Same group number is provided to restarting LED of the time of confirmation message in the same period, as shown in Figure 3.In group 1 Lamp address has 11,12 etc. corresponding to LED, by the group number of all LEDs included in current group 1 and corresponding LED Lamp address information 11,12 recorded and preserved respectively.
Further, when finding there is new equipment, for example, m1, m2, when mk, the confirmation of restarting for receiving LED disappears Breath;Record the time for restarting confirmation message of the LED received;It is short in the same time to time for restarting confirmation message LED provides same group number;Store group number and carry the lamp address of the LED of same group number mark.
Further, if it is desired to all LEDs of the control in same group number, it is only necessary to group number is carried in control command Mark, correspondingly, as long as the group number mark carried in the group number and control command of current LED is consistent, then current LED performs The control instruction received so that freed from cumbersome work, it is not necessary to control LED manually one by one, save Time, also save workload.
Fig. 4 is that the processor of master control platform controls LED to be grouped automatically to the group of different group numbers by preset control program Other schematic diagram, as shown in Figure 4.
As shown in figure 4, control program preset in processor by master control platform, confirmation is restarted by receive LED Message;Record the time for restarting confirmation message of the LED received;To restarting the time of confirmation message in the same period LED provides same group number;Store group number and carry the lamp address of the LED of same group number mark;Send and carry group number mark Packet instruction to the lamp address for the purpose LED for carrying same group number mark;Pass through above-mentioned steps, it is possible to automatically will realize Different LEDs is grouped to group 1 automatically, or, group 2, until packet extremely group n.
It should be noted that receiving LED restarts confirmation message, record the LED that receives restarts confirmation message Time, provide same group number to restarting LED of the time of confirmation message in the same period.If for example, 5 received The time for restarting confirmation message of LED is 21 days 11 July in 2016:10 or so, surrounding time difference was no more than one minute, just It can confirm that this 5 LEDs are in same group.
In embodiment provided by the present invention, sending method is not limited.If in a broadcast manner by message Gateway is delivered to, it is necessary to broadcast layer by layer, transmits message layer by layer.And if being delivered to net in a manner of route Close, as long as by the routing algorithm pre-set, formulate corresponding path and be delivered to gateway.It is no longer superfluous in this detail State.
S105:The packet for sending carrying group number mark is instructed to the lamp address for the purpose LED for carrying same group number mark.
Further, in order to be more accurately controlled to current LED, in the time to restarting confirmation message same After the LED of one period provides same group number, according to the same group number determined, determine to restart the time of confirmation message Regional extent corresponding to LED in the same period.
Specifically, regional extent corresponding to restarting LED of the time of confirmation message in the same period can be specially: Restart regional extent corresponding to LED of the time of confirmation message in the same period and be in region model determined by different floors Enclose;Can also be specially:Restart regional extent corresponding to LED of the time of confirmation message in the same period and be in identical building Regional extent determined by layer;Can also be specially:Restart area corresponding to LED of the time of confirmation message in the same period Domain scope is in same floor not regional extent determined by chummery;Can also be specially:The time for restarting confirmation message exists Regional extent corresponding to the LED of same period is in regional extent determined by same floor same room.
Further, it is in not if restarting regional extent corresponding to LED of the time of confirmation message in the same period With during regional extent, regional extent determined by different floors can also be specially determined by contiguous floors determined by floor Regional extent.
In addition, if restarting regional extent corresponding to LED of the time of confirmation message in the same period is in same Stall Layer is not determined by chummery during regional extent, and regional extent can also be specially not same determined by chummery for same floor Regional extent determined by floor adjacent room.
Fig. 5 is the schematic diagram of the LED in the group 1 that one instantiation of the present invention provides, as shown in Figure 5.
As can be seen from Figure 5:LED in group 1 has A1, A2 and A3.
Specifically, same group number is provided to restarting LED of the time of confirmation message in the same period.
Because the time for restarting confirmation message of A1, A2 and A3LED lamp is in the same period, then to A1, A2 and A3LED lamp Same group number is provided, i.e.,:Group number 1.
Now, as shown in Fig. 2 being shown in command format:The lamp address of A1, A2 and A3LED lamp, group number 1.
Further, when will be to control instruction 1 corresponding to A1, A2 and A3LED lamp execution group 1:Lamp is dimmed, and power reaches former Come 50% when, simply enter group 1 group number, correspondingly, in group 1 in A1, A2 and A3LED lamp carry out group 1 Corresponding control instruction 1:A1, A2 and A3LED lamp adjust its power to the 50% of its original, are so achieved that intelligently Operation, rather than each LED is identified one by one as before, then go each LED of manually operated adjustment Brightness.
Fig. 6 is the schematic diagram of the LED in the group 2 that one instantiation of the present invention provides, as shown in Figure 6.Can from Fig. 6 To find out:LED in group 2 has A4 and A6.
Specifically, same group number is provided to restarting LED of the time of confirmation message in the same period.
Because the time for restarting confirmation message of A4 and A6LED lamps is in the same period, then A4 and A6LED lamps are provided together One group number, i.e.,:Group number 2.
Now, as shown in Fig. 2 being shown in command format:The lamp address of A4 and A6LED lamps, group number 2.
Further, when will be to control instruction 2 corresponding to A4 and A6LED lamp execution group 2:Lamp is dimmed, and power reaches original 25% when, simply enter group 2 group number, correspondingly, in group 2 in A4 and A6LED lamps carry out group 2 corresponding to Control instruction 2:A4 and A6LED lamps adjust its power to the 25% of its original, be so achieved that intelligently operate without It is that each LED is identified one by one as before, then goes the brightness of each LED of manually operated adjustment.
Fig. 7 is the schematic diagram of an instantiation application scenarios of the invention, as shown in Figure 7.The process that LED is grouped automatically As described below:
First, master control platform sends broadcast request message to LED, and the response message returned according to A1 to A6LED lamps is true Make number information corresponding to LED and address information.
It should be noted that master control platform sends the process of broadcast request message to LED, can be enough using power Greatly, so, A1 can directly receive corresponding broadcast to A6LED lamps.
In addition, master control platform sends the process of broadcast request message to LED, the mode of route can also be used, for example, A1 After the broadcast for receiving master control platform, then the broadcast request message that oneself is received is forwarded to A2, and A2 repeats said process, to arriving The A6 of distalmost end also receives the broadcast request message transmitted by master control platform.
Further, after the manual control operation that electricity is restarted on again is powered off to LED, the weight of LED is received Open confirmation message;Record the time for restarting confirmation message of the LED received;To restarting the time of confirmation message with for the moment Between the LED of section provide same group number.
For example, the time for restarting confirmation message for reading A1 is 21 days 11 July in 2016:30, and A2 restarts confirmation The time of message is 21 days 11 July in 2016:36, the A3 time for restarting confirmation message is 21 days 11 July in 2016:42, because This, the confirmation message of restarting for determining this three LEDs is to be directed to restart manual control operation with once power off again upper electricity, because This, provides A1, A2 and A3LED lamp group number as group 1, and preserve the lamp address of the group number and three LEDs in group 1.
The process of the group number of A4 and A6LED lamps is determined with determining that A1, A2 and A3LED lamp group number are similar for the process of group 1, This is repeated no more.
As shown in fig. 7, A1, A2 and A3LED lamp are grouped to group 1, command format is shown:The lamp of A1, A2 and A3LED lamp Address, and group number are group 1.
A4 and A6LED lamps are grouped to group 2, and command format is shown:The lamp address of A4 and A6LED lamps, and group number is Group 2.
In actual applications, if being broken down in the LED for possessing same group number, do not work, be substituted for new LED Lamp, the method provided by the embodiment of the present invention, the lamp address of the new LED being substituted for can also be known, and correspondingly Group number.
In actual applications, when some LED for possessing same group number breaks down, the LED that this is broken down It is substituted for after new LED, electric on again restarts manual control operation once being powered off to the LED new including this Afterwards, what master control platform received all LEDs restarts confirmation message;The time for restarting confirmation message of the LED received is recorded, Same group number is provided to restarting LED of the time of confirmation message in the same period.
In embodiment provided by the present invention, group number corresponding to LED is unique.
In principle, it should new group number is provided to this batch of LED, wherein, including that new LED, still, in counterweight Open before LED of the time of confirmation message in the same period provide same group number, view except that new LED it Outside, remaining LED carries same group number mark, therefore, remaining LED is labeled as with regard to the group number of this new LED Same group number mark entrained by lamp;So, computing repeatedly for group number is avoided, and simplifies the algorithm of group number.
Fig. 8 is the schematic diagram of another instantiation application scenarios of the present invention, as shown in Figure 8.Taken in A1, A2 and A3LED lamp Identified with group number, i.e.,:Group 1.When group 1 in A2LED lamps break down, do not work, substituted for new LED, i.e.,:A7 lamps.
By to including new LED carry out once new power-off again upper electricity restart manual control operation after, be based on Group number mark is carried in A1 the and A3LED lamps restarted in confirmation message for the LED that master control platform receives, i.e.,:Group 1.Therefore, With regard to this new LED, i.e.,:The group number of A7 lamps is labeled as remaining LED, i.e.,:Same group entrained by A1 and A3LED lamps Number mark, i.e.,:Group 1.
Further, instructed in the packet for sending carrying group number mark to the purpose LED for carrying same group number mark After lamp address, send and carry the control instruction of group number mark to the lamp address for the purpose LED for carrying same group number mark.
In order to reduce the quantity of packet in network, the control instruction for carrying group number mark is being sent to carrying same group number After the lamp address of the purpose LED of mark, the matching of the group number of control instruction and the group number of the purpose LED to prestore is judged Degree, and control when the group number of purpose LED of the group number with prestoring of control instruction is consistent, it is allowed to purpose LED is to receiving The packet of control instruction handled, wherein, control instruction carries the multicast hop count threshold information pre-set.Only When current multicast hop count is less than multicast hop count threshold value, it is allowed to which purpose LED performs the control instruction broadcasted again;Further Multicast hop count after secondary broadcast is specially:Corresponding multicast hop count adds 1 before broadcasting again, remaining multicast after broadcasting again Hop count threshold information is consistent with the multicast hop count threshold information before broadcasting again.
Fig. 9 is the schematic diagram of the scope of the forwarding data in the multicast optimization that one instantiation of the present invention provides, such as Fig. 9 It is shown.10 LED nodes of N1 to N10 in group 3, can receive corresponding control instruction.By way of route, from The start node of N1 broadcast, it forward the data to the tenth node of N10.So, the LED of 10 nodes in group 3 receives To corresponding control instruction, and corresponding control command can be performed according to received control instruction, for example, in group 3 The LED of 10 nodes dims present brightness, and power becomes the 75% of its original brightness, to reach the purpose of energy-conservation, The order for being simultaneously emitted by purple light can also be performed, to meet lighting effects.
As shown in figure 9, start nodes of the N1 as broadcast, forward the data to N10.Selected by the process of whole forwarding data Path be N1 → N2, until N10.
It should be noted that N2 is identified into each node of N10 nodes to destination node, and hop count.
Figure 10 is pair of the LED in group of the control instruction of one instantiation offer of the present invention with performing control instruction Relation schematic diagram is answered, as shown in Figure 10.
It can know from Figure 10:A1 receives control instruction 1 to A6 lamps, because control instruction 1 is for the LED in group 1 What lamp was sent, therefore, after control instruction 1 is received, only organize 1 in A1 to A3 lamps perform control instruction 1.Relatively, A4 lamps and A6 lamps in group 2 receive control instruction 1, but do not perform the control instruction 1 received, and which achieves accurately Precise positioning is carried out to the LED of the execution control command in regional extent.
Figure 11 is the LED in group of the control instruction of another instantiation offer of the invention with performing control instruction Corresponding relation schematic diagram, as shown in figure 11.
Figure 11 is similar with Figure 10, and after control instruction 2 is received, A4 the and A6 lamps only organized in 2 perform control instruction 2, which achieves accurately carry out precise positioning to the LED of the execution control command in regional extent.
Transmission carrying group number mark is grouped the lamp address instructed to the purpose LED that same group number identifies is carried, only The order of group 1 corresponding to the LED execution in group 1 is ensure that, organizes the order that the LED in 2 performs group 2 accordingly, data Treating capacity is still very big, adds LED and performs the possibility for correspondingly operating and being delayed.
For example, the LED in group 1 is a lot, the scope in the region involved by group 1 is very big, and it is further right at this moment just to need Region involved by the group 1 is further refined so that and only organize a part of LED in 1 and perform corresponding operation, because And further, the hop count of the LED in the region in group 1 is further limited;So, multicast is reduced Regional extent, the broadcast resource of preciousness is saved, meanwhile, reduce the data processing amount for needing to carry out data statistics, improve LED forwards the forwarding speed of corresponding multicast packet.
It should be noted that in embodiment provided by the present invention, pass through multicast hop count threshold setting module, setting pair The threshold value for the hop count that LED multicast optimizes.Hop count is done as described below:Multicast source-representation sends the starting LED of broadcast Node.The hop count of the node adjacent with multicast source herein is 0, is often forwarded once, and hop count increase by 1, hop count is cumulative.
If for example, so that hop count calculates as an example, when the threshold value of the hop count set by multicast hop count threshold setting module is 10, LED within 10 jumps, it is intended to repeat the broadcast received.It should be noted that N2 is right into each node of N10 nodes Destination node, and hop count are identified.
By setting the threshold value of the hop count optimized to LED multicast, multicast is further optimized, in group number Further it is defined in identified regional extent, not only will be in corresponding group in identified regional extent, also Further to meet the restriction of hop count threshold value.So, the scope of broadcast is further reduced, only in corresponding group, And the LED in the range of the restriction of hop count threshold value receives broadcast data, and received broadcast data is forwarded.
Further, before the packet of control instruction of the permission purpose LED to receiving is handled, reading is passed through The multicast hop count of purpose LED is taken to identify the multicast hop count for getting purpose LED, and according to rule control only in multicast hop count During less than or equal to multicast hop count threshold value, it is allowed to which the packet of control instruction of the purpose LED to receiving performs corresponding control Instruction, wherein, rule includes following at least one:If current multicast hop count is less than multicast hop count threshold value, it is allowed to purpose LED Perform the control instruction broadcasted again;The multicast hop count after broadcast is specially again:Corresponding to before broadcasting again Multicast hop count adds 1, and remaining multicast hop count threshold information after broadcasting again is believed with the multicast hop count threshold value before broadcasting again Breath is consistent.
Figure 12 is the schematic diagram of the scope of the forwarding data in the multicast optimization that another instantiation of the present invention provides, and is such as schemed Shown in 12.If in fig. 12, multicast hop count threshold value is defined within 5 jumps, although then all LEDs in group 1 pass through route Mode receive broadcast start node N1 broadcast request message, but because multicast hop count threshold value is defined within 5 jumps, So, when the N7 nodes that forwarding data transfer to the 5th is jumped, after N7 nodes receive broadcast data, do not continue to connect Broadcast data is received further to be forwarded, so, just by the scope of processing forward data be limited to group 1 in N1 to N7's 7 nodes, so, with regard to further accurately being limited the LED of processing forward data, reduce master control platform and wait to locate The data volume of reason, so as to reduce the generation of delay.
In summary, the method that LED provided in an embodiment of the present invention is grouped automatically, by restart confirmation message when Between LED in the same period provide same group number;Store group number and carry the lamp address of the LED of same group number mark; And the packet instruction for carrying group number mark is sent to the lamp address for the purpose LED for carrying same group number mark, so as to realize The automatic packet of LED.The method that LED provided in an embodiment of the present invention is grouped automatically, by this LED intelligently Identification packet, the efficiency of packet is not only increased, also improve the efficiency of installation and the debugging of LED.
As shown in figure 13, it is the internal structure block diagram of LED provided in an embodiment of the present invention;As shown in figure 13, it is of the invention The LED that embodiment is provided, including:Tandom number generator 1301, timer 1302, sending module 1303, receiving module 1304th, memory 1305 and processor 1306.
Specifically, tandom number generator, it is determined that random number corresponding to current LED;
Timer, the random number according to caused by tandom number generator, and selected chronomere, determine current Timing corresponding to LED;
Sending module, in timing, send current LED restarts confirmation message;
Receiving module, receive the packet instruction for the group number for carrying current LED;
Memory, store the group number of current LED and the lamp address of/current LED;
Processor, judges the matching degree of the group number of packet instruction and the group number of the current LED to prestore, and controls and be grouped When the group number of current LED of the group number of instruction with prestoring is consistent, it is allowed to the packet that current LED instructs to receiving packet Handled, and perform packet instruction.
It should be noted that by random number determined by tandom number generator, when this random number is determined In, by sending module, send current LED restarts confirmation message.
In actual applications, in order to avoid different power-off, upper electric the different of manual control operation of restarting are restarted really again Recognize message and master control platform is back within the same time, so that it is for same that master control platform, which cannot be distinguished by these to restart confirmation message, Upper electricity restarts manual control operation again for secondary power-off, or upper electricity restarts manual control operation again for different power-off, is only The time interval of control operation is very short twice.
Set interval by tandom number generator so that restart LED of the time in the same period of confirmation message Lamp is to restart manual control operation for once power off again upper electricity.
Further, after the control instruction that receiving module receives the group number for carrying current LED, processor is also For:Judge the matching degree of the group number of control instruction and the group number of the current LED to prestore, and control the group number in control instruction When the group number of current LED with prestoring is consistent, it is allowed to current LED to the packet of the control instruction received at Reason, wherein, control instruction carries the multicast hop count threshold information pre-set.
Further, receiving processor in receiving module allows purpose LED to the data of the control instruction received After wrapping the grant instruction handled, processor is additionally operable to:Multicast hop count by reading purpose LED, which identifies, gets purpose The multicast hop count of LED, and control only when multicast hop count is less than or equal to multicast hop count threshold value, it is allowed to purpose LED is to receiving The packet of the control instruction arrived performs corresponding control instruction.
It should be noted that processor now is handled multicast packet, equivalent to one multicast processor.
Figure 14 is the schematic diagram that processor provided in an embodiment of the present invention is handled the data received, such as Figure 14 institutes Show.
First, processor receives broadcast, and then the packet received is handled.Read and worked as by hop count mark Preceding hop count.If the hop count read out is more than or equal to the hop count threshold value pre-set, return;Otherwise, repeat to send out by broadcasting Send the packet received.
Figure 15 is referred to, the internal junction for the device that the LED provided it illustrates one embodiment of the invention is grouped automatically Structure block diagram.The device that LED is grouped automatically includes receiving module 1501, processor 1502, memory 1503 and sending module 1504。
Specifically, receiving module, receive LED restarts confirmation message;
Processor, record the time for restarting confirmation message of the LED received;And
Same group number is provided to restarting LED of the time of confirmation message in the same period;
The lamp address of the LED of memory, storage group number and the same group number mark of/carrying;
Sending module, send the lamp for carrying the packet instruction of group number mark to the purpose LED for carrying same group number mark Address.
Further, the packet that carrying group number mark is sent in sending module is instructed to the purpose for carrying same group number mark After the lamp address of LED, sending module is additionally operable to:The control instruction for carrying group number mark is sent to identify to same group number is carried Purpose LED lamp address, wherein, control instruction carries the multicast hop count threshold information pre-set.
Further, the packet that carrying group number mark is sent in sending module is instructed to the purpose for carrying same group number mark After the lamp address of LED, processor is additionally operable to:Judge of the group number of control instruction and the group number of the purpose LED to prestore With degree, and control purpose LED of the group number with prestoring in control group number it is consistent when, it is allowed to purpose LED is to receiving The packet of control instruction is handled, wherein, control instruction carries the multicast hop count threshold information pre-set.
Further, after the control instruction that receiving module receives the group number for carrying current LED, processor is also For:Judge the matching degree of the group number of control instruction and the group number of the current LED to prestore, and refer to according to rule control in control When the group number of current LED of the group number of order with prestoring is consistent, it is allowed to which current LED is to the packet of the control instruction received Handled, wherein, control instruction carries the multicast hop count threshold information pre-set.
Specifically, rule includes following at least one:Got in the multicast hop count mark for reading current LED current After the multicast hop count of LED, control only when the multicast hop count of current LED is less than or equal to multicast hop count threshold value, it is allowed to when The packet of control instruction of the preceding LED to receiving performs corresponding control instruction;If current multicast hop count is jumped less than multicast During number threshold value, it is allowed to which current LED performs the control instruction broadcasted again;Multicast hop count after broadcasting again is specific For:Corresponding multicast hop count adds 1 before broadcasting again;Again broadcast after remaining multicast hop count threshold information with it is wide again Multicast hop count threshold information before broadcasting is consistent.
Further, processor is received in the time to restarting confirmation message in the same period in receiving module After the same group number that LED provides, processor is additionally operable to:According to the same group number determined, determine to restart confirmation message LED of the time in the same period corresponding to regional extent.
In summary, the device that LED provided in an embodiment of the present invention is grouped automatically, received by processor record The time for restarting confirmation message of LED;And to restart LED of the time of confirmation message in the same period provide it is same Group number.Packet is intelligently identified by this LED, not only increases the efficiency of packet, also improve the installation of LED with And the efficiency of debugging.
In technical scheme, provided together by LED of the time in the same period to restarting confirmation message One group number;Store group number and carry the lamp address of the LED of same group number mark;And send the packet that carrying group number identifies and refer to Make to the lamp address for the purpose LED for carrying same group number mark, it is achieved thereby that the automatic packet of LED.The present invention is implemented The method that the LED that example provides is grouped automatically, intelligently identifies packet by this LED, not only increases the effect of packet Rate, also improve the efficiency of installation and the debugging of LED.
Above-described embodiment, the purpose of the present invention, technical scheme and beneficial effect are carried out further Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc., all should include Within protection scope of the present invention.

Claims (10)

1. a kind of method that LED is grouped automatically, it is characterised in that including:
Receive the LED restarts confirmation message;
Record the time for restarting confirmation message of the LED received;
Same group number is provided to restarting LED of the time of confirmation message in the same period;
Store the lamp address of the LED of group number and the same group number mark of/carrying;
The packet for sending carrying group number mark is instructed to the lamp address for the purpose LED for carrying same group number mark.
2. according to the method for claim 1, it is characterised in that carry the packet of group number mark in described send and instruct to taking After the lamp address of purpose LED with same group number mark, methods described also includes:
The control instruction for carrying group number mark is sent to the lamp address for the purpose LED for carrying same group number mark, wherein, it is described Control instruction carries the multicast hop count threshold information pre-set.
3. according to the method for claim 2, it is characterised in that in the control instruction for carrying group number mark that sends to taking After the lamp address of purpose LED with same group number mark, methods described also includes:
Judge the matching degree of the group number of the control instruction and the group number of the purpose LED to prestore, and control in the control Make the purpose LED of the group number with prestoring of instruction group number it is consistent when, it is allowed to the purpose LED is to described in receiving The packet of control instruction is handled, wherein, the control instruction carries the multicast hop count threshold information pre-set.
4. according to the method for claim 3, it is characterised in that allow the purpose LED to the institute that receives described State control instruction packet handled before, methods described also includes:
Multicast hop count by reading the purpose LED identifies the multicast hop count for getting the purpose LED, and according to rule Then control only when the multicast hop count is less than or equal to the multicast hop count threshold value, it is allowed to which purpose LED is to described in receiving The packet of control instruction performs corresponding control instruction, wherein, the rule includes following at least one:
If current multicast hop count is less than the multicast hop count threshold value, it is allowed to which purpose LED performs the control broadcasted again System instruction;The multicast hop count after broadcast is specially again:Corresponding multicast hop count adds 1 before broadcasting again, broadcasts again Remaining multicast hop count threshold information afterwards is consistent with the multicast hop count threshold information before broadcasting again.
5. according to the method for claim 1, the time that described pair restarts confirmation message the same period LED to Go out after same group number, methods described also includes:
According to the same group number determined, the LED of the time in the same period for restarting confirmation message is determined Corresponding regional extent.
A kind of 6. device that LED is grouped automatically, it is characterised in that including:
Receiving module, receive the LED restarts confirmation message;
Processor, record the time for restarting confirmation message of the LED received;And
Same group number is provided to restarting LED of the time of confirmation message in the same period;
The lamp address of the LED of memory, storage group number and the same group number mark of/carrying;
Sending module, the packet for sending carrying group number mark are instructed to the lamp address for the purpose LED for carrying same group number mark.
7. device according to claim 6, it is characterised in that the packet instruction for carrying group number mark is sent in sending module To the lamp address for the purpose LED for carrying same group number mark, the sending module is additionally operable to:
The control instruction for carrying group number mark is sent to the lamp address for the purpose LED for carrying same group number mark, wherein, it is described Control instruction carries the multicast hop count threshold information pre-set.
8. device according to claim 7, it is characterised in that the packet instruction for carrying group number mark is sent in sending module To the lamp address for the purpose LED for carrying same group number mark, the processor is additionally operable to:
Judge the matching degree of the group number of the control instruction and the group number of the purpose LED to prestore, and control in the control When the group number of the purpose LED of the group number of system with prestoring is consistent, it is allowed to the control of the purpose LED to receiving The packet of instruction is handled, wherein, the control instruction carries the multicast hop count threshold information pre-set.
A kind of 9. LED, it is characterised in that including:
Tandom number generator, it is determined that random number corresponding to current LED;
Timer, the random number according to caused by the tandom number generator, and selected chronomere, determine Timing corresponding to current LED;
Sending module, in the timing, send current LED restarts confirmation message;
Receiving module, receive the packet instruction for the group number for carrying current LED;
Memory, store the group number of current LED and the lamp address of/current LED;
Processor, judges the matching degree of the group number of the packet instruction and the group number of the current LED to prestore, and controls described When the group number of current LED of the group number of packet instruction with prestoring is consistent, it is allowed to which current LED instructs to receiving the packet Packet handled, and perform it is described packet instruction.
10. LED according to claim 9, it is characterised in that received in receiving module and carry current LED After the control instruction of group number, the processor is additionally operable to:Judge the group number of the control instruction and the current LED to prestore The matching degree of group number, and according to rule control when the group number of current LED of the group number with prestoring of the control instruction is consistent, The packet of the control instruction of the current LED to receiving is allowed to handle, wherein, the control instruction carries pre- The multicast hop count threshold information first set, the rule include following at least one:Reading the multicast hop count mark of current LED After knowledge gets the multicast hop count of current LED, control is only jumped in the multicast hop count of current LED less than or equal to the multicast During number threshold value, it is allowed to which the packet of the control instruction of the current LED to receiving performs corresponding control instruction;It is if current When multicast hop count is less than the multicast hop count threshold value, it is allowed to which current LED performs the control instruction broadcasted again;Further Multicast hop count after secondary broadcast is specially:Corresponding multicast hop count adds 1 before broadcasting again;Remaining multicast after broadcasting again Hop count threshold information is consistent with the multicast hop count threshold information before broadcasting again.
CN201610814904.7A 2016-09-09 2016-09-09 The method and apparatus that LED light is grouped automatically Active CN107809813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610814904.7A CN107809813B (en) 2016-09-09 2016-09-09 The method and apparatus that LED light is grouped automatically

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610814904.7A CN107809813B (en) 2016-09-09 2016-09-09 The method and apparatus that LED light is grouped automatically

Publications (2)

Publication Number Publication Date
CN107809813A true CN107809813A (en) 2018-03-16
CN107809813B CN107809813B (en) 2019-10-15

Family

ID=61569707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610814904.7A Active CN107809813B (en) 2016-09-09 2016-09-09 The method and apparatus that LED light is grouped automatically

Country Status (1)

Country Link
CN (1) CN107809813B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191541A (en) * 2019-06-22 2019-08-30 安徽华新光电饰业有限公司 A kind of line-type lamp fitting linkage stable control method
CN110809351A (en) * 2019-11-20 2020-02-18 天一照明(深圳)有限公司 Grouping control method applied to light source system and light source system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000075067A (en) * 1998-09-01 2000-03-14 Ishikawajima Harima Heavy Ind Co Ltd Automatic power breaker
US20120313917A1 (en) * 2011-06-13 2012-12-13 Samsung Display Co., Ltd. Constant current driving circuit and light emitting diode backlight apparatus using the same
CN202759651U (en) * 2012-09-06 2013-02-27 安顺市安银科技有限公司 LED lamp using power supply switch on-off encoding for setting group division and controlling ignition
CN105554979A (en) * 2015-12-30 2016-05-04 湖北文理学院 Apparatus for controlling energy conservation of indoor illumination and monitoring people activities

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000075067A (en) * 1998-09-01 2000-03-14 Ishikawajima Harima Heavy Ind Co Ltd Automatic power breaker
US20120313917A1 (en) * 2011-06-13 2012-12-13 Samsung Display Co., Ltd. Constant current driving circuit and light emitting diode backlight apparatus using the same
CN202759651U (en) * 2012-09-06 2013-02-27 安顺市安银科技有限公司 LED lamp using power supply switch on-off encoding for setting group division and controlling ignition
CN105554979A (en) * 2015-12-30 2016-05-04 湖北文理学院 Apparatus for controlling energy conservation of indoor illumination and monitoring people activities

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191541A (en) * 2019-06-22 2019-08-30 安徽华新光电饰业有限公司 A kind of line-type lamp fitting linkage stable control method
CN110809351A (en) * 2019-11-20 2020-02-18 天一照明(深圳)有限公司 Grouping control method applied to light source system and light source system

Also Published As

Publication number Publication date
CN107809813B (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN109348463B (en) Bluetooth Mesh network, networking method thereof and electric equipment
CN105515853B (en) The node and its state updating method of wireless network
EP2748975B1 (en) Electrical lighting system power control
ATE409911T1 (en) STATE MIGRATION IN MULTIPLE NIC RDMA DEVICES
RU2013128767A (en) SYSTEM AND METHOD FOR OPTIMIZING DATA TRANSFER TO WIRELESS NETWORK NODES
CN103329629A (en) Control of network lighting systems
CN106063377A (en) Handheld device that is capable of interacting with a lighting fixture
CN111913397B (en) Device control method, device, storage medium, and electronic apparatus
CN104093244A (en) Lamp control system and method
US20210007205A1 (en) Illumination control system and method, and illumination device
WO2016209069A1 (en) Methods for managing multiple lighting fixtures
CN104917656A (en) Multi-smart home equipment dynamic ad hoc network construction method
CN107809813B (en) The method and apparatus that LED light is grouped automatically
CN104640056A (en) Method and device for selection and resource distribution of control node
CN106231739A (en) The illumination control method of a kind of complex scene and device
CN104704924A (en) Apparatus and method for interpreting received control commands
CN104967545A (en) Dynamic ad hoc network construction method of multiple intelligent household devices
JP6488947B2 (en) Lighting system
JP2008294771A (en) Centralized control system, logic network information setting method and centralized managing device
US20210219237A1 (en) Energy optimized wireless communication for rf-enabled devices
KR101926014B1 (en) A method and apparatus for mamaging engergy by vitualization using grouping unit controllers
JP6031045B2 (en) Power control apparatus, power control system, and control method
CN112672458A (en) Method and system for rapidly deploying intelligent street lamp internet of things
CN105376906B (en) Based on the remote controler of Zigbee to the independent grouping implementation method of intelligent lamp
CN110719580A (en) Communication method, device, terminal, gateway and computer storage medium

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