Background technology
Portable illuminating lamp is owing to the characteristic that it is convenient for carrying is widely used in the daily life.Along with the progress of science and technology, higher source luminance is developed with in the portable lamp that is applied to difference in functionality, makes the portable lamp prodigiosin satisfy different users's requirement.For example, People's Armed Police, the high light flashlight that public security system was equipped with can irradiate discomfort glare, make under the situation of offender's health that the offender is in a helpless situation to submit need not to injure, and play good deterrence effect.
Present portable lamp generally can send the light of several varying strengths to adapt to different radiation responses.For example, above-mentioned high light flashlight, it can also send the low light level, plays common illuminating effect; Or send the light of different flicker frequencies, serve as warning.
Yet, can't make amendment to corresponding automatically controlled parameter system after the circuit control system of existing portable lamp is provided with moulding by manufacturer; If deviation appears in the light intensity effect of portable lamp in the production process, when not reaching GB or rower effect, for the processing mode of this portable lamp or be to scrap, or be to change circuit control system, like this, will increase manufacturing cost greatly; Simultaneously, the automatically controlled parameter that the user also cannot revise corresponding portable lamp according to the demand of oneself is adapting to different working environments, thus the utilization rate of this portable lamp that improves.
Therefore, need a kind of portable lamp that can revise its automatically controlled parameter as required.
Summary of the invention
The technical problem to be solved in the present invention is, the defective that can't make amendment to the automatically controlled parameter of portable lamp at prior art provides a kind of portable lamp that can revise its automatically controlled parameter as required.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of portable lamp, comprise lamp main body, be arranged on the circuit of light sources of described lamp main body inside, establish automatically controlled parameter in the described circuit of light sources, described portable lamp also comprises the automatically controlled chip that is electrically connected described circuit of light sources, be arranged on the communication interface of described lamp main body outside, described communication interface receives the automatically controlled parameter modification data of control terminal transmission and described automatically controlled parameter modification data is forwarded to described automatically controlled chip and storage, wherein, described automatically controlled chip comprises the memory module that is used to store automatically controlled parameter, the microcontroller module that is used to receive described automatically controlled parameter modification data and updates stored in the automatically controlled parameter of described memory module, be used for calling the output module that the automatically controlled parameter that is stored in described memory module is revised for described control terminal; When described communication interface and described control terminal successful connection, described control terminal sends coupling inquiry instruction to described communication interface, and described communication interface is forwarded to described coupling inquiry instruction the described command reception unit of described microcontroller module; Described micro-control unit is discerned coupling after receiving described coupling inquiry instruction, if the match is successful, described micro-control unit output call instruction is to described output module, call the automatically controlled parameter that is pre-stored on the described memory module by described output module, and the automatically controlled parameter that will call out is delivered to described control terminal by described communication interface, carry out interface display, the operator carries out automatically controlled parameter updating operation according to the display interface of control terminal.
In portable lamp of the present invention, described portable lamp also comprises with described microcontroller module and linking to each other to control the luminous gauge tap of described circuit of light sources.
In portable lamp of the present invention, described memory module is the erasable programmable memory module.
In portable lamp of the present invention, described microcontroller module also comprises the converting unit that is used for described automatically controlled parameter is converted to character string forms.
In portable lamp of the present invention, described microcontroller module also comprises the command reception unit that is used to receive from the instruction of control terminal and described gauge tap.
In portable lamp of the present invention, described output module also is used for receiving the gauge tap instruction that is stored in described command reception unit and luminous to control described circuit of light sources according to the automatically controlled parameter of the described memory module of described gauge tap instruction calls.
In portable lamp of the present invention, described gauge tap contacts with button on being arranged on described lamp main body sidewall.
In portable lamp of the present invention, on described automatically controlled chip and described gauge tap is arranged on battery is electrically connected the circuit board.
In portable lamp of the present invention, described communication interface is an EBI.
Implement portable lamp of the present invention and have following beneficial effect: can adjust adapting to different working environments the automatically controlled parameter of portable lamp, thereby improve the utilization rate of this portable lamp.
The specific embodiment
Fig. 1 is the structural representation of first embodiment of portable lamp of the present invention.In this embodiment, described portable lamp is a flashlight, circuit board 107 and battery 110 that it comprises torch housing 109 and is arranged on torch housing 109 inner chambers, and described circuit board 107 is electrically connected with 110 on battery, and its structure is as shown in Figure 1.Be provided with gauge tap 105 in Fig. 1 on circuit board 107, described gauge tap 105 is connected with rubber button 108 contact on being arranged on described torch housing 109 sidewalls, conveniently pushes gauge tap 105.On described circuit board 107, also be provided with automatically controlled chip 10 and circuit of light sources 30.
As shown in Figure 2, described automatically controlled chip 10 is electrically connected described circuit of light sources 30.In an embodiment of the present invention, automatically controlled parameter is not arranged in the circuit of light sources 30, and is arranged in the automatically controlled chip 10.Described lamp main body outer setting has communication interface 101.After communication interface 101 and control terminal 20 successful connections, control terminal 20 directly sends automatically controlled parameter modification data to communication interface 101.Described communication interface 101 receives described automatically controlled parameter modification data and described automatically controlled parameter modification data is forwarded to described automatically controlled chip 10 and storage.In the present embodiment, described communication interface 101 is EBIs.In other embodiments of the invention, described communication interface 101 can be blue tooth interface, infrared interface or other any interface that can carry out transfer of data.Described control terminal 20 can be the various terminal devices that can carry out the data input and output, for example personal computer, PDA(Personal Digital Assistant), mobile phone etc., so protection scope of the present invention should not be defined as the control terminal of certain particular type.In a preferred embodiment of the invention, can adopt special-purpose mobile control terminal, described mobile control terminal can be by being connected with network or using CD that the automatically controlled parameter of portable lamp is upgraded, it can be carried, be convenient at any time the automatically controlled parameter of portable lamp be adjusted, enable the demand that better conforms.
In an embodiment of the present invention, described automatically controlled parameter comprises the high light parameter of light fixture, low light level parameter and flicker frequency.Adopt portable lamp of the present invention, can adjust above-mentioned parameter.Is example with alert in the portable lamp with light fixture, and the automatically controlled parameter of its standard is: the high light parameter be 5 meters apart from illumination greater than 100 luxs, low light level parameter be 1 meter apart from illumination between the 120-180 lux, flicker frequency is 9 ± 1 hertz.If when the automatically controlled parameter of the warning lamp of prior art does not reach above-mentioned standard, can only scrap or change circuit control system.And adopt the police in the portable lamp of the present invention to use light fixture, when its automatically controlled parameter does not reach above-mentioned standard, can directly get final product this automatically controlled parameter adjustment.
Fig. 3 is the schematic block circuit diagram of first embodiment of portable lamp of the present invention.In the present embodiment, gauge tap 105 is electrically connected with automatically controlled chip 10, be used to export the switch control command, the switch control command that 10 pairs of automatically controlled chips receive is carried out signal controlling and is handled, call corresponding automatically controlled parameter, and the automatically controlled parameter that will access exports in the circuit of light sources 30 of portable lamp to.In a preferred embodiment of the invention, can store the automatically controlled parameter of many groups in the described automatically controlled chip 10, described gauge tap 105 can switch between the automatically controlled parameter of many groups.
Fig. 4 is the schematic block circuit diagram of portable lamp second embodiment of the present invention.In the present embodiment, what adopt is as shown in Figure 3 automatically controlled chip 10, the microcontroller module (MCU) 102 that it comprises the memory module 103 that is used for storing automatically controlled parameter, be used to receive described automatically controlled parameter modification data and update stored in the automatically controlled parameter of described memory module 103, is used to call the output module 104 that the automatically controlled parameter that is stored in described memory module 103 is revised for described control terminal 20.Described microcontroller module 102 also comprise be used for described automatically controlled parameter convert to character string forms converting unit 201, be used to receive command reception unit 202 from the instruction of control terminal 20 and described gauge tap 105.
In the present embodiment, described control terminal 20 is computers, and described communication interface 101 is R232 or R485 EBI.Be connected by data wire between communication interface 101 and the control terminal 20.After communication interface 101 and control terminal 20 successful connections, to trigger microcontroller module 102 output call instructions to output module 104, call the automatically controlled parameter that is pre-stored on the memory module 103 by output module 104, and the automatically controlled parameter that will call out is delivered to computer by communication interface 101, carries out interface display.Then, the operator operates accordingly according to the computer display interface, such as revising automatically controlled parameter.After automatically controlled parameter modification is finished, by communication interface 101 it is delivered to microcontroller module 102, the automatically controlled parameter that will be revised by converting unit 201 converts character string to, is delivered to memory module 103 and stores as new automatically controlled parameter.Wherein, memory module 103 is the erasable programmable memory module.In the present embodiment, described portable lamp comprises the automatically controlled parameter of many groups.Gauge tap 105 is electrically connected with microcontroller module 102, is used to export the switch control command to microcontroller module 102, and the switch control command that is received by 102 pairs of microcontroller modules is carried out signal controlling processing, output switch control signal again; Output switch control signal is to output module 104 subsequently, and control output module 104 output call signals call corresponding automatically controlled parameter, and the automatically controlled parameter that will access export in the circuit of light sources 30 of portable lamp to memory module 103.Described gauge tap 105 can switch between the automatically controlled parameter of many groups.
In other embodiments of the invention, can be after communication interface 101 and control terminal 20 successful connections, the automatically controlled parameter that need not to be stored in the memory module 103 is sent to control terminal 20, can directly set automatically controlled parameter according to predefined program by control terminal 20, perhaps upgrade automatically controlled parameter, and the automatically controlled parameter that will set sends to communication interface 101, be forwarded to microcontroller module 102 by communication interface 101 again, should automatically controlled parameter convert character string to by converting unit 201, be delivered to memory module 103, can directly update stored in the automatically controlled parameter in the memory module 103 like this.
In a preferred embodiment of the invention, described control terminal 20 can mate renewal to the automatically controlled parameter of polytype portable lamp.When communication interface 101 and control terminal 20 successful connections, control terminal 20 sends coupling inquiry instruction to communication interface 101.Model, manufacturer and the automatically controlled parameter etc. that comprise portable lamp in the described matching instruction.Communication interface 101 is forwarded to described coupling inquiry instruction the command reception unit 202 of microcontroller module 102.After micro-control unit 102 receives described coupling inquiry instruction, model, manufacturer and automatically controlled parameter etc. to corresponding portable lamp are discerned coupling, if the match is successful, then export call instruction to output module 104, call the automatically controlled parameter that is pre-stored on the memory module 103 by output module 104, and the automatically controlled parameter that will call out is delivered to control terminal 20 by communication interface 101, carries out interface display.Then, the operator carries out automatically controlled parameter updating operation according to the display interface of control terminal 20.After automatically controlled parameter renewal is finished, by communication interface 101 it is delivered to microcontroller module 102, convert the automatically controlled parameter of upgrading to character string, be delivered to memory module 103 and store.If coupling is unsuccessful, the order of returning then that it fails to match, control terminal 20 can select new coupling inquiry instruction to inquire, till the match is successful.
Can improve the production qualification rate of portable lamp greatly by this technology, and make the electrical quantity of product keep strict uniformity, this technology can also be changed product function neatly, allows the user have one's own personalized product like a cork.Compared with prior art, the advantage of this technology is to change functional parameter flexibly.Simultaneously, the user can by being connected with computer, revise corresponding automatically controlled parameter according to the needs of oneself, realizes the individual demand of portable lamp function.
Though the present invention describes by specific embodiment; it will be appreciated by those skilled in the art that; without departing from the present invention; can also carry out various conversion and be equal to alternative the present invention; such as communication interface of the present invention and automatically controlled chip are used for other any light fixture, all should fall into protection scope of the present invention.