CN103108319B - For method and the device of LED street lamp built-in controller Lookup protocol address - Google Patents

For method and the device of LED street lamp built-in controller Lookup protocol address Download PDF

Info

Publication number
CN103108319B
CN103108319B CN201310048006.1A CN201310048006A CN103108319B CN 103108319 B CN103108319 B CN 103108319B CN 201310048006 A CN201310048006 A CN 201310048006A CN 103108319 B CN103108319 B CN 103108319B
Authority
CN
China
Prior art keywords
microprocessor
address
virtual address
street lamp
preset number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310048006.1A
Other languages
Chinese (zh)
Other versions
CN103108319A (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.)
Delta Greentech China Co Ltd
Original Assignee
Delta Greentech China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Delta Greentech China Co Ltd filed Critical Delta Greentech China Co Ltd
Priority to CN201310048006.1A priority Critical patent/CN103108319B/en
Publication of CN103108319A publication Critical patent/CN103108319A/en
Application granted granted Critical
Publication of CN103108319B publication Critical patent/CN103108319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention provides a kind of method for LED street lamp built-in controller Lookup protocol address and device, described device comprises the first microprocessor and the second microprocessor that are connected by wireless network; First microprocessor for sending for the second microprocessor the virtual address that described in virtual address control command, acknowledgment of your inquiry, the second microprocessor produces, and is that the second microprocessor distributes real address according to the virtual address accepted from the second microprocessor; Second microprocessor, the confirmation be built in each LED street lamp, produce virtual address according to the virtual address control command of first microprocessor, matching to described first microprocessor transmission and virtual address to be checked when first microprocessor inquires about virtual address also configures address according to the real address that first microprocessor distributes.The invention solves in prior art for address when LED street lamp illuminator arranges address easily repeat, labor intensive and the problem of time.

Description

For method and the device of LED street lamp built-in controller Lookup protocol address
Technical field
The present invention relates to wireless control technology field, particularly relate to the controlled in wireless to LED street lamp illuminator, be specially a kind of method for LED street lamp built-in controller Lookup protocol address and device.
Background technology
In LED street lamp illuminator, each LED street lamp has one from machine address, supervisory control system to be called out by address as main frame and is identified concrete target LED street lamp, reaches the functions such as control objectives LED street lamp ON/OFF, light modulation, and can monitor the running state information of LED street lamp.
Supervisory control system sends the address comprising target LED street lamp in packet, after all LED street lamp in network receive packet, the address received and the address of self are compared, the LED street lamp that address matches analyzes the information in packet, and completes corresponding operation.The inconsistent LED street lamp of communication then abandons this packet, does not process.If the LED street lamp in network is unallocated address or have identical address, then communication will cause confusion, and serious meeting produces misoperation, can not reach supervisory control system in street lamp illumination system to the monitoring of all LED street lamp, control object.
In traditional LED street lamp illuminator, the address of LED street lamp is generally arranged by toggle switch or man-machine input mode.
1, address is set by toggle switch
Dial switch device is connected with itself controller in LED street lamp, and for arranging address one to one, need arrange corresponding LED street lamp address manually, all addresses have uniqueness.But address is set by toggle switch and easily occurs following problem:
1) because LED street lamp is outdoor lightings, have waterproof requirement to built-in controller, toggle switch need seal in controller, machine is greater than because manually arranging error rate, repeat as gone out current address, address mess, needs repetition dismounting sealing device to reset debugging in debug process.
2) sort successively for realizing LED address, toggle switch adopts on-the-spot setting usually, and same each toggle switch of needs repetition dismounting sealing setting is carried out address and arranged manually.
So LED street lamp uses dial switch device, often cost is higher, and the labor intensive larger time is longer, and operability is poor.
2, address is set by PC
Man-machine input mode, by the software on PC, is connected to LED street lamp receiving port by RS232 interface and arranges address.The deficiency of this mode is: PC arranges and need carry out under electric power thus supplied, the more important thing is that RS232 interface can only realize connecting one to one, and cause carrying out one-to-many transmission, man-to-man setting often needs to expend more manpower and time.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of method for LED street lamp built-in controller Lookup protocol address and device, for solve in prior art for address when LED street lamp illuminator arranges address easily repeat, labor intensive and the problem of time.
For achieving the above object and other relevant objects, the present invention provides a kind of method for LED street lamp built-in controller Lookup protocol address on the one hand, comprising:
1) provide first microprocessor, described first microprocessor second microprocessor built-in with each LED street lamp is connected by wireless network; 2) described first microprocessor is to the virtual address control command sent described second microprocessor for generation of preset number scope internal virtural address; 3) each second microprocessor produces virtual address according to described virtual address control command at random within the scope of described preset number; 4) described first microprocessor sends to described second microprocessor the virtual address query statement comprising numeral within the scope of preset number; 5), when described first microprocessor receives a confirmation in Preset Time, the second microprocessor corresponding to this confirmation distributes real address, and the virtual address of this second microprocessor is identical with the numeral that described first microprocessor sends; Repeat 4) and 5), until virtual address query statement all sent the numeral within the scope of described preset number, completed the first real address of the second microprocessor in street lamp and distributed.
Preferably, the maximum of described preset number scope equals the sum of street lamp.
Preferably, described virtual address query statement selects a numeral to send by the ascending order of numeral within the scope of preset number at every turn.
Preferably, described first microprocessor does not receive the confirmation information or the confirmation that receives in Preset Time when being multiple, and described first microprocessor sends the virtual address query statement comprising next numeral within the scope of the first preset number to described second microprocessor.
Preferably, when virtual address query statement all sent the numeral within the scope of described preset number and all street lamps have distributed real address all, terminated this real address and arranged.
Preferably, when virtual address query statement all sent numeral within the scope of described preset number but also had the unallocated real address of street lamp: 6) described first microprocessor sends virtual address control command for generation of preset number scope internal virtural address to described second microprocessor, and the sum that this preset number scope maximum equals street lamp deducts the street lamp quantity arranging real address; Each second microprocessor produces virtual address according to described virtual address control command at random within the scope of described preset number; 7) described first microprocessor sends to described second microprocessor the virtual address query statement comprising numeral within the scope of this preset number; 8), when described first microprocessor receives a confirmation in Preset Time, the second microprocessor corresponding to this confirmation distributes real address, and the second microprocessor virtual address is identical with the numeral that described first microprocessor sends; Repeat 7) and 8), until the second microprocessor of all street lamps distributes real address all.
The present invention is providing a kind of device for LED street lamp built-in controller Lookup protocol address in addition on the one hand, comprises the first microprocessor and the second microprocessor that are connected by wireless network; Described first microprocessor is used for for described second microprocessor sends the virtual address that described in virtual address control command, acknowledgment of your inquiry, the second microprocessor produces, and is that described second microprocessor distributes real address according to the virtual address accepted from described second microprocessor; Described first microprocessor is connected with for the ZigBee communication module of the second microprocessor communication, for showing the LCD display of address layoutprocedure and the input keyboard for input of control commands and real address; Second microprocessor, the confirmation be built in each LED street lamp, produce virtual address according to the virtual address control command of first microprocessor, matching to described first microprocessor transmission and virtual address to be checked when described first microprocessor inquires about virtual address also configures address according to the real address that described first microprocessor distributes.
Preferably, described first microprocessor comprises: the first CPU; Be connected with described first CPU, send to described second microprocessor the virtual address control unit of the virtual address control command for generation of preset number scope internal virtural address; Be connected with described first CPU, for sending the virtual address query unit of the virtual address querying command comprising numeral within the scope of preset number to described second microprocessor; Be connected with described first CPU, for being confirmed whether to receive the virtual address confirmation unit of a second microprocessor feedback information in Preset Time; Be connected with described virtual address confirmation unit with described first CPU, confirm at virtual address confirmation unit in Preset Time, receive the real address allocation units distributing real address when second microprocessor feeds back to this second microprocessor.
Preferably, described second microprocessor comprises: the second CPU; Be connected with described second CPU, for producing the virtual address generation unit of virtual address within the scope of described preset number at random according to described virtual address control command; Be connected with described second CPU, for inquire about virtual address according to described virtual address querying command and the numeral comprised in virtual address and virtual address querying command matches time to send the virtual address query feedback unit of feedback information to described first microprocessor; The real address be connected with described second CPU, distributed according to described first microprocessor configures the real address dispensing unit of address; Be connected with described second CPU, wireless communication unit for communicating with described first microprocessor.
Preferably, described first microprocessor also comprises: being connected with described first CPU, opening or the street lamp ON/OFF command unit of out code for sending street lamp; Be connected with described first CPU, for sending the dimming commands unit of dimming commands to the second microprocessor; Be connected with described first CPU, for monitoring the lamp condition monitoring means of lamp condition; Described second microprocessor also comprises: being connected with described second CPU, opening or the street lamp ON/OFF control unit of out code for performing described street lamp; Be connected with described second CPU, for performing described dimming commands to carry out the dimming control unit of light modulation to street lamp; Be connected with described second CPU, for feeding back the lamp condition feedback unit of lamp condition to described lamp condition monitoring means.
As mentioned above, of the present invention a kind of be method and the device of LED street lamp built-in controller Lookup protocol address, there is following beneficial effect:
1, in the present invention, do not need in a pre-installation the address of each LED street lamp to be set in advance, but produce virtual address by the second microcontroller controlled in LED street lamp illuminator, by the confirmation one by one to virtual address, again by the first microcontroller be in LED street lamp illuminator second microcontroller distribute address, instead of the pure hardware in Conventional communication address setting method or artificial operation, thus the invention solves in prior art as address when LED street lamp illuminator arranges address is easily repeated, the problem of labor intensive and time.
2, The present invention reduces and to manufacture or Practical Project is installed, some operations in debug process in factory, saved a large amount of manpowers, decreased a large amount of human costs, saved the time, there is the economic benefit shown.
3, the method for Lookup protocol address of the present invention has general applicability, in the network of master-slave communication, can carry out address setting by the method.
Accompanying drawing explanation
Fig. 1 is shown as the flow chart of a kind of method for LED street lamp built-in controller Lookup protocol address of the present invention.
Fig. 2 is shown as the preferred flow chart of one of a kind of method for LED street lamp built-in controller Lookup protocol address of the present invention.
Fig. 3 is shown as the preferred flow chart of another kind of a kind of method for LED street lamp built-in controller Lookup protocol address of the present invention.
Fig. 4 is shown as the overall schematic of a kind of device for LED street lamp built-in controller Lookup protocol address of the present invention.
Fig. 5 is shown as a kind of structural representation for first microprocessor in the device of LED street lamp built-in controller Lookup protocol address of the present invention.
Fig. 6 is shown as a kind of preferred structural representation of one for first microprocessor in the device of LED street lamp built-in controller Lookup protocol address of the present invention.
Fig. 7 is shown as a kind of structural representation for the second microprocessor in the device of LED street lamp built-in controller Lookup protocol address of the present invention.
Fig. 8 is shown as a kind of preferred structural representation of one for the second microprocessor in the device of LED street lamp built-in controller Lookup protocol address of the present invention.
Element numbers explanation
11 first microprocessors
111 first CPU
112 virtual address control units
113 virtual address query unit
114 virtual address confirmation units
115 real address allocation units
116 street lamp ON/OFF command units
117 dimming commands unit
118 lamp condition monitoring means
12 ZigBee communication modules
13 LCD display
14 input keyboards
2 second microprocessors
21 second CPU
22 virtual address generation units
23 wireless communication units
24 real address dispensing units
25 virtual address query feedback unit
26 street lamp ON/OFF control units
27 dimming control unit
28 lamp condition feedback units
S1 ~ S9 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
It should be noted that, the diagram provided in the present embodiment only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
As shown in Figures 1 to 8, the object of the present invention is to provide a kind of method for LED street lamp built-in controller Lookup protocol address and device, for solve in prior art for address when LED street lamp illuminator arranges address easily repeat, labor intensive and the problem of time.Below by elaborate of the present invention a kind of be the method for LED street lamp built-in controller Lookup protocol address and the principle of device and execution mode, make those skilled in the art not need creative work can understand a kind of method for LED street lamp built-in controller Lookup protocol address of the present invention and device.
Refer to Fig. 1, be shown as the flow chart of a kind of method for LED street lamp built-in controller Lookup protocol address of the present invention.As shown in Figure 1, the present invention is providing a kind of method for LED street lamp built-in controller Lookup protocol address, comprising:
Step S1, provides first microprocessor, and described first microprocessor second microprocessor built-in with each LED street lamp is connected by wireless network.Particularly, first microprocessor is connected with described second microprocessor by ZigBee wireless network, also adopts ZigBee wireless network between described second microprocessor to communication.Then step S2 is performed.
In step s 2, described first microprocessor is to the virtual address control command sent described second microprocessor for generation of preset number scope internal virtural address.
Here, the maximum of described preset number scope equals the sum of street lamp.Such as, described in have 100 street lamps, street lamp adds up to 100, and so described preset number scope is 1 ~ 100, and namely limiting virtual address is numeral between 1 ~ 100.Then step S3 is performed.
In step s3, each second microprocessor produces virtual address according to described virtual address control command at random within the scope of described preset number.Described virtual address control command is due in advance for virtual address specifies the scope of virtual address, so the virtual address of each the second microprocessor stochastic generation is the numeral within the scope of described preset number, even if some virtual addresses may be repeated, cause the numeral in preset range not adopt completely, but can follow-uply take corresponding measure to go to address this problem.Can describe in detail below.Then step S4 is performed.
In step s 4 which, described first microprocessor sends to described second microprocessor the virtual address query statement comprising numeral within the scope of preset number.
Described virtual address query statement selects a numeral to send by the ascending order of numeral within the scope of preset number at every turn.Each only transmission numeral, inquires about a virtual address.Second microprocessor is after receiving described virtual address query statement, the numeral comprised in the virtual address of oneself and described virtual address query statement is compared, virtual address second microprocessor identical with the numeral comprised in the query statement of described virtual address returns confirmation to first microprocessor, the virtual address that there is it and inquire about is known, so that first microprocessor makes subsequent reactions to allow first microprocessor.Then step S5 is performed.
In step s 5, when described first microprocessor receives a confirmation in Preset Time, the second microprocessor corresponding to this confirmation distributes real address, and the virtual address of the second microprocessor is identical with the numeral that described first microprocessor sends.
Here, it should be noted that, because the virtual address in the second microprocessor is random generation, identical numeral may be produced at random, cause the virtual address of generation identical, or some numeral in preset range is basic is not just generated virtual address, described like this first microprocessor is when inquiring about virtual address, the numeral comprised in the virtual address of all identical with the numeral comprised in the query statement of described virtual address or basic neither one second microprocessor in the virtual address of multiple second microprocessor and described virtual address query statement may be there is identical, multiple second microprocessor will be there is like this and all return confirmation, or neither one second microprocessor returns confirmation, so now described first microprocessor just can judge.
As shown in Figure 2, described first microprocessor can judge whether to receive confirmation in Preset Time, if do not have, just can return and continue to perform step S4, described first microprocessor sends the virtual address query statement comprising next numeral within the scope of the first preset number to described second microprocessor, if described first microprocessor have received confirmation in Preset Time simultaneously, but can continue to judge whether this confirmation is one, if multiple, just can return and continue to perform step S4, described first microprocessor sends the virtual address query statement comprising next numeral within the scope of the first preset number to described second microprocessor.
Therefore, described first microprocessor is only had to judge to receive the confirmation information in Preset Time and only receiving the confirmation sent from second microprocessor, namely the quantity of confirmation only has one, and so described first microprocessor just can distribute real address for the second microprocessor sending unique confirmation.Like this, the distribution of the address of the second microprocessor in a street lamp is just completed.
Then, repeated execution of steps S4 and step S5, until virtual address query statement all sent the numeral within the scope of described preset number, completed the first real address of the second microprocessor in street lamp and distributed.
According to explanation above, best situation be exactly all second microprocessor produce virtual address not identical, because the mathematics in preset range is equal with street lamp sum, like this, if inquire about virtual address successively by the numeral in preset range, each second microprocessor can return a confirmation, and each second microprocessor can be assigned with real address like this, in this case, first microprocessor just completes the task of the second microprocessor distribution address into all street lamps.Namely, when virtual address query statement all sent the numeral within the scope of described preset number and all street lamps have distributed real address all, terminate this real address and arrange.
But as previously mentioned, because the virtual address in the second microprocessor is random generation, identical numeral may be produced at random, cause the virtual address of generation identical, or some numeral in preset range is basic is not just generated virtual address, second microprocessor of the identical virtual address of such generation is not just assigned with real address, so in this case, needs to continue as the second microprocessor not distributing real address and continues to distribute real address.
As shown in Figure 3, send the virtual address query statement of the numeral comprised within the scope of described preset number successively at first microprocessor after, perform step S6.
Step S6, judges whether that all the second microprocessors (i.e. all street lamps) have all been assigned with real address.
If all distribute, terminate, if when virtual address query statement all sent numeral within the scope of described preset number but also had the unallocated real address of street lamp, then perform following steps.
Step S7, described first microprocessor sends the virtual address control command for generation of preset number scope internal virtural address to described second microprocessor, here, the sum that this preset number scope maximum equals street lamp deducts the street lamp quantity arranging real address, such as, described have 100 street lamps, 85 street lamps are had to complete the distribution of real address during first sub-distribution, so also have 15 street lamps that real address is not set, so described preset number scope is 1 ~ 15, and namely restriction virtual address is the numeral between 1 ~ 15.Then each second microprocessor produces virtual address according to described virtual address control command at random within the scope of described preset number; Then step S8 is performed.
In step s 8, described first microprocessor sends to described second microprocessor the virtual address query statement comprising numeral within the scope of this preset number.Then step S9 is performed.
In step s 9, when described first microprocessor receives a confirmation in Preset Time, the second microprocessor corresponding to this confirmation distributes real address, and the second microprocessor virtual address is identical with the numeral that described first microprocessor sends.
Repeat step S8 and step S9, until the second microprocessor of all street lamps distributes real address all.
As can be seen from step S7 to step S9, described step S7 to step S9 is actually repetition step S2 to step S6, and just two processes are different to the definition of preset number scope.If through this sub-distribution, still there is the second microprocessor of unallocated real address, then repeat one time or multipass step S7 to S9, until the second microprocessor of all street lamps has all been assigned with real address.
As seen from the above, in the present invention, do not need in a pre-installation the address of each LED street lamp to be set in advance, but produce virtual address by the second microcontroller controlled in LED street lamp illuminator, by the confirmation one by one to virtual address, again by the first microcontroller be in LED street lamp illuminator second microcontroller distribute address, instead of the pure hardware in Conventional communication address setting method or artificial operation, thus the invention solves in prior art as address when LED street lamp illuminator arranges address is easily repeated, the problem of labor intensive and time.
For realizing said method, refer to Fig. 4 to Fig. 8, the invention provides a kind of device for LED street lamp built-in controller Lookup protocol address, bag as shown in Figure 4, the device of Lookup protocol address of the present invention comprises the first microprocessor 11 and the second microprocessor 2 that are connected by wireless network, and described first microprocessor 11 is connected with ZigBee communication module for communicating with the second microprocessor 2, for showing the LCD display 13 of address layoutprocedure and the input keyboard 14 for input of control commands and real address.First microprocessor 11 is connected with described second microprocessor 2 by ZigBee wireless network, also adopts ZigBee wireless network between described second microprocessor 2 to communication.
Described first microprocessor 11 for sending the virtual address that described in virtual address control command, acknowledgment of your inquiry, the second microprocessor 2 produces for described second microprocessor 2, and is that described second microprocessor 2 distributes real address according to the virtual address accepted from described second microprocessor 2.
As shown in Figure 5, described first microprocessor 11 at least comprises: the first CPU 111, virtual address control unit 112, virtual address query unit 113, virtual address confirmation unit 114 and real address allocation units 115.
Described virtual address control unit 112 is connected with described first CPU 111, send the virtual address control command for generation of preset number scope internal virtural address to described second microprocessor 2.Here, when arranging real address for the first time, the maximum of described preset number scope equals the sum of street lamp.Such as, described in have 100 street lamps, street lamp adds up to 100, and so described preset number scope is 1 ~ 100, and namely limiting virtual address is numeral between 1 ~ 100.
After completing real address be set for the first time, if also there is the second microcontroller of unallocated real address, the sum that then this preset number scope maximum equals street lamp deducts the street lamp quantity arranging real address, such as, described have 100 street lamps, has 85 street lamps to complete the distribution of real address during first sub-distribution, so also has 15 street lamps not arrange real address, so described preset number scope is 1 ~ 15, and namely restriction virtual address is the numeral between 1 ~ 15.
Described virtual address query unit 113 is connected with described first CPU 111, for sending the virtual address querying command comprising numeral within the scope of preset number to described second microprocessor 2; Described virtual address query statement selects a numeral to send by the ascending order of numeral within the scope of preset number at every turn.Each only transmission numeral, inquires about a virtual address.
Described virtual address confirmation unit 114 is connected with described first CPU 111, in Preset Time, receive second microprocessor 2 feedback information for being confirmed whether.
Here, it should be noted that, because the virtual address in the second microprocessor 2 is random generation, identical numeral may be produced at random, cause the virtual address of generation identical, or some numeral in preset range is basic is not just generated virtual address, described like this first microprocessor 11 is when inquiring about virtual address, the numeral comprised in the virtual address of all identical with the numeral comprised in the query statement of described virtual address or basic neither one second microprocessor 2 in the virtual address of multiple second microprocessor 2 and described virtual address query statement may be there is identical, multiple second microprocessor 2 will be there is like this and all return confirmation, or neither one second microprocessor 2 returns confirmation, so now described virtual address confirmation unit 114 just can judge.
Described virtual address confirmation unit 114 is only had to judge to receive the confirmation information in Preset Time and only receiving the confirmation sent from second microprocessor 2, namely the quantity of confirmation only has one, so described virtual address confirmation unit 114 notifies described real address allocation units 115, is that the second microprocessor 2 sending unique confirmation distributes real address by described real address allocation units 115.Like this, the distribution of the address of the second microprocessor 2 in a street lamp is just completed.
As shown in Figure 6, described first microprocessor 11 realizes owing to can adopt the controller realizing the functions such as street lamp unlatching system, light modulation, monitoring, so described first microprocessor 11 is except comprising: except the first CPU 111, virtual address control unit 112, virtual address query unit 113, virtual address confirmation unit 114 and real address allocation units 115, so described first microprocessor 11 can also comprise: being connected with described first CPU 111, opening or the street lamp ON/OFF command unit 116 of out code for sending street lamp; Be connected with described first CPU 111, for sending the dimming commands unit 117 of dimming commands to the second microprocessor 2; Be connected with described first CPU 111, for monitoring the lamp condition monitoring means 118 of lamp condition.
Described second microprocessor 2, the confirmation be built in each LED street lamp, produce virtual address according to the virtual address control command of first microprocessor 11, matching to described first microprocessor 11 transmission and virtual address to be checked when described first microprocessor 11 inquires about virtual address also configures address according to the real address that described first microprocessor 11 distributes.
As shown in Figure 7, described second microprocessor 2 comprises: the second CPU 21, virtual address generation unit 22, virtual address query feedback unit 25, real address dispensing unit 24.
Described virtual address generation unit 22 is connected with described second CPU 21, for producing virtual address according to described virtual address control command at random within the scope of described preset number.Virtual address generation unit 22 in each second microprocessor 2 produces virtual address according to described virtual address control command at random within the scope of described preset number.Described virtual address control command due in advance for virtual address specifies the scope of virtual address, so the virtual address of each virtual address generation unit 22 stochastic generation is the numeral within the scope of described preset number.
Described virtual address query feedback unit 25 is connected with described second CPU 21, for inquire about virtual address according to described virtual address querying command and the numeral comprised in virtual address and virtual address querying command matches time send feedback information to described first microprocessor 11.
Described virtual address query feedback unit 25 is after receiving described virtual address query statement, the numeral comprised in the virtual address of oneself and described virtual address query statement is compared, the virtual address described virtual address query feedback unit 25 identical with the numeral comprised in the query statement of described virtual address returns confirmation to first microprocessor 11, the virtual address that there is it and inquire about is known, so that first microprocessor 11 makes subsequent reactions to allow first microprocessor 11.
The real address that described real address dispensing unit 24 is connected with described second CPU 21, distribute according to described first microprocessor 11 configures address.
Described wireless communication unit 23 is connected with described second CPU 21, for communicating with described first microprocessor 11.
As shown in Figure 8, the functions such as system, light modulation, monitoring are opened for realizing street lamp, described second microprocessor 2 is except comprising the second CPU 21, virtual address generation unit 22, virtual address query feedback unit 25, real address dispensing unit 24, and described second microprocessor 2 also comprises: being connected with described second CPU 21, opening or the street lamp ON/OFF control unit 26 of out code for performing described street lamp; Be connected with described second CPU 21, for performing described dimming commands to carry out the dimming control unit 27 of light modulation to street lamp; Be connected with described second CPU 21, for feeding back the lamp condition feedback unit 28 of lamp condition to described lamp condition monitoring means 118.
For the principle making those skilled in the art understand apparatus of the present invention further, the following describes the course of work of apparatus of the present invention.
First, first microprocessor 11 sends a virtual address control command for generation of preset number scope internal virtural address to the second microcontroller transmission in all street lamps to described second microprocessor 2 by ZigBee wireless network, the maximum of described preset number scope equals the sum of street lamp, and each second microcontroller produces the virtual address within the scope of preset number at random.
Then first microprocessor 11 sends virtual address query statement, inquire about successively from virtual address order, virtual address second microprocessor 2 identical with the numeral comprised in the query statement of described virtual address returns confirmation to first microprocessor 11, if have multiple confirmation or a confirmation all not to have, then first microprocessor 11 resends virtual address query statement, if to receiving a confirmation in Preset Time, then the second microprocessor 2 for sending out this confirmation distributes real address.Complete the distribution of a real address.
First microprocessor 11 is successively by behind preset number range query virtual address, if all street lamps have all been assigned with virtual address in network, terminate configuration, if also have the street lamp of unallocated real address, then first microprocessor 11 sends a virtual address control command for generation of preset number scope internal virtural address again, and the sum that this preset number scope maximum equals street lamp deducts the street lamp quantity arranging real address.If be assigned with the second microprocessor 2 of real address, do not respond this virtual address control command, if the second microcontroller of also unallocated real address, produce the virtual address within the scope of preset number.Then the process that first microprocessor 11 is inquired about, confirmed, distributes is repeated.Do not repeat them here.By constantly repeating this section of content, until the second microprocessor 2 completing all street lamps has all been assigned with real address.
In sum, of the present invention a kind of be method and the device of LED street lamp built-in controller Lookup protocol address, reach following beneficial effect:
1, in the present invention, do not need in a pre-installation the address of each LED street lamp to be set in advance, but produce virtual address by the second microcontroller controlled in LED street lamp illuminator, by the confirmation one by one to virtual address, again by the first microcontroller be in LED street lamp illuminator second microcontroller distribute address, instead of the pure hardware in Conventional communication address setting method or artificial operation, thus the invention solves in prior art as address when LED street lamp illuminator arranges address is easily repeated, the problem of labor intensive and time.
2, The present invention reduces and to manufacture or Practical Project is installed, some operations in debug process in factory, saved a large amount of manpowers, decreased a large amount of human costs, saved the time, there is the economic benefit shown.
3, the method for Lookup protocol address of the present invention has general applicability, in the network of master-slave communication, can carry out address setting by the method.
So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (8)

1. be a method for LED street lamp built-in controller Lookup protocol address, it is characterized in that, comprising:
1) provide first microprocessor, described first microprocessor second microprocessor built-in with each LED street lamp is connected by wireless network;
2) described first microprocessor is to the virtual address control command sent described second microprocessor for generation of the first preset number scope internal virtural address; The maximum of described first preset number scope equals the sum of street lamp;
3) each second microprocessor produces virtual address according to described virtual address control command at random within the scope of described first preset number;
4) described first microprocessor sends to described second microprocessor the virtual address query statement comprising numeral within the scope of the first preset number;
5), when described first microprocessor receives a confirmation in Preset Time, the second microprocessor corresponding to this confirmation distributes real address, and the virtual address of this second microprocessor is identical with the numeral that described first microprocessor sends;
Repeat 4) and 5), until virtual address query statement all sent the numeral within the scope of described first preset number, completed the first real address of the second microprocessor in street lamp and distributed.
2. according to claim 1 is the method for LED street lamp built-in controller Lookup protocol address, it is characterized in that, described virtual address query statement selects a numeral to send by the ascending order of numeral within the scope of the first preset number at every turn.
3. according to claim 2 is the method for LED street lamp built-in controller Lookup protocol address, it is characterized in that, described first microprocessor does not receive the confirmation information or the confirmation that receives in Preset Time when being multiple, and described first microprocessor sends the virtual address query statement comprising next numeral within the scope of the first preset number to described second microprocessor.
4. according to claim 1 is the method for LED street lamp built-in controller Lookup protocol address, it is characterized in that, when virtual address query statement all sent the numeral within the scope of described first preset number and all street lamps have distributed real address all, terminated this real address and arranged.
5. according to claim 4 is the method for LED street lamp built-in controller Lookup protocol address, it is characterized in that, when virtual address query statement all sent the numeral within the scope of described first preset number but also had the unallocated real address of street lamp:
6) described first microprocessor sends for generation of the virtual address control command of the second preset number scope internal virtural address to described second microprocessor, and the sum that this second preset number scope maximum equals street lamp deducts the street lamp quantity arranging real address; Each second microprocessor produces virtual address according to described virtual address control command at random within the scope of described second preset number;
7) described first microprocessor sends to described second microprocessor the virtual address query statement comprising numeral within the scope of this second preset number;
8), when described first microprocessor receives a confirmation in Preset Time, the second microprocessor corresponding to this confirmation distributes real address, and the second microprocessor virtual address is identical with the numeral that described first microprocessor sends;
Repeat 7) and 8), until the second microprocessor of all street lamps distributes real address all.
6. be a device for LED street lamp built-in controller Lookup protocol address, it is characterized in that, comprise the first microprocessor and the second microprocessor that are connected by wireless network;
Described first microprocessor is used for for described second microprocessor sends the virtual address that described in virtual address control command, acknowledgment of your inquiry, the second microprocessor produces, and is that described second microprocessor distributes real address according to the virtual address accepted from described second microprocessor;
Described first microprocessor is connected with for the ZigBee communication module of the second microprocessor communication, for showing the LCD display of address layoutprocedure and the input keyboard for input of control commands and real address;
Described second microprocessor is built in each LED street lamp, and the confirmation produce virtual address according to the virtual address control command of first microprocessor, matching when described first microprocessor inquires about virtual address to described first microprocessor transmission and virtual address to be checked also configures address according to the real address that described first microprocessor distributes;
Described first microprocessor comprises:
First CPU;
Be connected with described first CPU, send to described second microprocessor the virtual address control unit of the virtual address control command for generation of preset number scope internal virtural address; The maximum of described preset number scope equals the sum of street lamp;
Be connected with described first CPU, for sending the virtual address query unit of the virtual address querying command comprising numeral within the scope of preset number to described second microprocessor;
Be connected with described first CPU, for being confirmed whether to receive the virtual address confirmation unit of a second microprocessor feedback information in Preset Time;
Be connected with described virtual address confirmation unit with described first CPU, confirm at virtual address confirmation unit in Preset Time, receive the real address allocation units distributing real address when second microprocessor feeds back to this second microprocessor.
7. according to claim 6 is the device of LED street lamp built-in controller Lookup protocol address, and it is characterized in that, described second microprocessor comprises:
Second CPU;
Be connected with described second CPU, for producing the virtual address generation unit of virtual address within the scope of described preset number at random according to described virtual address control command;
Be connected with described second CPU, for inquire about virtual address according to described virtual address querying command and the numeral comprised in virtual address and virtual address querying command matches time to send the virtual address query feedback unit of feedback information to described first microprocessor;
The real address be connected with described second CPU, distributed according to described first microprocessor configures the real address dispensing unit of address;
Be connected with described second CPU, wireless communication unit for communicating with described first microprocessor.
8. according to claim 7 is the device of LED street lamp built-in controller Lookup protocol address, and it is characterized in that, described first microprocessor also comprises:
Being connected with described first CPU, opening or the street lamp ON/OFF command unit of out code for sending street lamp;
Be connected with described first CPU, for sending the dimming commands unit of dimming commands to the second microprocessor;
Be connected with described first CPU, for monitoring the lamp condition monitoring means of lamp condition; Described second microprocessor also comprises:
Being connected with described second CPU, opening or the street lamp ON/OFF control unit of out code for performing described street lamp;
Be connected with described second CPU, for performing described dimming commands to carry out the dimming control unit of light modulation to street lamp;
Be connected with described second CPU, for feeding back the lamp condition feedback unit of lamp condition to described lamp condition monitoring means.
CN201310048006.1A 2013-02-06 2013-02-06 For method and the device of LED street lamp built-in controller Lookup protocol address Active CN103108319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310048006.1A CN103108319B (en) 2013-02-06 2013-02-06 For method and the device of LED street lamp built-in controller Lookup protocol address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310048006.1A CN103108319B (en) 2013-02-06 2013-02-06 For method and the device of LED street lamp built-in controller Lookup protocol address

Publications (2)

Publication Number Publication Date
CN103108319A CN103108319A (en) 2013-05-15
CN103108319B true CN103108319B (en) 2015-10-28

Family

ID=48315823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310048006.1A Active CN103108319B (en) 2013-02-06 2013-02-06 For method and the device of LED street lamp built-in controller Lookup protocol address

Country Status (1)

Country Link
CN (1) CN103108319B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491683B (en) * 2013-09-24 2015-04-01 四川长虹照明技术有限公司 Lighting plant integrated management system and method
CN105208702B (en) * 2014-05-29 2018-02-02 赛尔富电子有限公司 A kind of LED lamp illumination control system
CN105813348A (en) * 2016-03-22 2016-07-27 太仓诚泽网络科技有限公司 Vehicle-mounted lamplight illuminating system with intelligent power-saving mode
CN110296503B (en) * 2019-05-10 2021-04-27 珠海格力电器股份有限公司 Method for automatically allocating addresses to air conditioning unit and air conditioning system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674593A (en) * 2005-04-01 2005-09-28 南京邮电学院 Automatic distributing and setting up address method based on master-slave communication mode
CN102137529A (en) * 2010-01-27 2011-07-27 深圳市旭光照明有限公司 Illuminating system, LED (Light Emitting Diode) illuminating device and control method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100136186A (en) * 2009-06-18 2010-12-28 (주)와이즈랩 Street light control method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674593A (en) * 2005-04-01 2005-09-28 南京邮电学院 Automatic distributing and setting up address method based on master-slave communication mode
CN102137529A (en) * 2010-01-27 2011-07-27 深圳市旭光照明有限公司 Illuminating system, LED (Light Emitting Diode) illuminating device and control method thereof

Also Published As

Publication number Publication date
CN103108319A (en) 2013-05-15

Similar Documents

Publication Publication Date Title
CN103108319B (en) For method and the device of LED street lamp built-in controller Lookup protocol address
CN103615789B (en) Based on air-conditioning centralized Control method and the multi-online air-conditioning system of indoor set marshalling
US20130141009A1 (en) Lighting device and method for controlling lighting with remote lighting controller
US20130234534A1 (en) Power socket with wireless communication capability, system having the same and method thereof
CN107809826A (en) MANET intelligent lighting network system based on bluetooth
CN103582208A (en) Indicating lamp control method and device in embedded type equipment
CN108247632A (en) A kind of cooperation robot control system based on ROS
CN105282904B (en) A kind of control system and its control method based on DMX512 agreement
CN104029003A (en) Error-proofing method and device for screws in assembly production line
CN112109087A (en) Robot remote calling method and system
CN204993962U (en) Light operator based on artnet transfer protocols
CN103619109B (en) The debug system of light fixture and adjustment method in lighting mains
EP3417679A1 (en) Secure network commissioning for lighting systems
CN104932345A (en) Intelligent lighting hardware device self-recovering method and intelligent lighting hardware device self-recovering apparatus
CN209962605U (en) LED display screen and display system
CN104101057A (en) Control system and information processing method
CN204031530U (en) A kind of control system based on DMX512 agreement
CN102611755A (en) Communication method between road lamp and remote equipment in road lamp control system
CN102176147A (en) Stage control system and method for digital multiplex (DMX) 512 intelligent distribution isolating amplifier
Li et al. Design and implementation of classroom intelligent LED lighting control system
CN107734803A (en) Lamplight scene control method, device and electronic equipment
CN105578683A (en) ZLL equipment adding method and system
CN207124639U (en) A kind of intelligent lamp and intelligent domestic system
CN202009518U (en) Stage control system for DMX512 intelligent distribution isolation amplifier
CN106227177B (en) A kind of control device based on bus communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant