A kind of implementation method of automatic download fire-fighting emergent display lamp program
Technical field
The invention belongs to emergency lighting technical field, particularly relate to a kind of automatic download fire-fighting emergent display lamp program
Implementation method.
Background technology
Along with expressway around city develops, large public building gets more and more, and its internal structure is complicated, densely populated place, if occurring
Do not have timely, correct carrying out to evacuate during fire to instruct, it will cause a large amount of personnel to be trapped in scene of fire, it is possible to cause people
Member collective is panic, and then causes extensive tread event, causes the miserable scene that the dead group of group hinders.
Along with intelligent emergent illumination and gradually the popularizing of evacuation indication system, increasing crowded place starts to join
This system standby.But owing to the quantity evacuating lamp required for a project is huge, and each light fixture has distinctive identified
Address, site operation personnel probably by lamp installation in the position of mistake, thus cause occurring in actual use
Point to confusion.At this moment, it is necessary to manufacturer goes to scene one by one light fixture to be carried out program renewal, wastes substantial amounts of manpower and materials.
Summary of the invention
It is an object of the invention to provide the implementation method of a kind of automatic download fire-fighting emergent display lamp program, by passing through
PC is shaken hands from the display lamp storing different guidance code, generates HEX file the most online and passes through long-distance communication bus
Update emergent display lamp program, it is possible to the indicating lamp for emergency program in prior art that effectively solves needs update under line one by one to ask
Topic.
For solving above-mentioned technical problem, the present invention is achieved by the following technical solutions:
The present invention is the implementation method of a kind of automatic download fire-fighting emergent display lamp program, comprises the steps,
A meet an urgent need display lamp memorizer in one section of guidance code of pre-stored;
Wherein, the guidance code in described a is used for shaking hands in sequence of threads renewal process in the later stage with PC to b;
C PC sends handshaking information to indicating lamp for emergency, and by the cognizance code of display lamp, display lamp type and position
Put and store, after being sent completely, encode for display lamp, and generate HEX object code;
Object code in step c is sent to display lamp by d PC;
The data received are stored by display lamp described in step e d, and PC sends operation to indicating lamp for emergency again and refers to
Order, the data in memorizer are updated by the instruction that display lamp sends according to PC.
Further, in described step c, PC end is provided with PC end software, guides with unique in each emergent display lamp
Code, PC is communicated by communication bus with emergent display lamp.
Further, described step c encodes for display lamp, and the process generating HEX object code uses people
The digitally coded input mode of work.
Further, described PC is mutually distinguishable with guidance code.
The method have the advantages that
The present invention is shaken hands from the display lamp storing different guidance code by PC, generates HEX file also the most online
Emergent display lamp program is updated, it is possible to the indicating lamp for emergency program in prior art that effectively solves needs by long-distance communication bus
The problem updated under line one by one.
Certainly, the arbitrary product implementing the present invention it is not absolutely required to reach all the above advantage simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, embodiment will be described required use below
Accompanying drawing is briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the present invention, for ability
From the point of view of the those of ordinary skill of territory, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings
Figure.
Fig. 1 is automatically to download the framework that the implementation method of fire-fighting emergent display lamp program is based on;
Fig. 2 is the flow chart of the implementation method of a kind of automatic download fire-fighting emergent display lamp program of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, those of ordinary skill in the art obtained under not making creative work premise all other
Embodiment, broadly falls into the scope of protection of the invention.
First carrying out connection according to the framework shown in Fig. 1, as it is shown in figure 1, PC end is provided with PC end software, each should
Anxious display lamp is communicated by communication bus with emergent display lamp with unique guidance code, PC.
As in figure 2 it is shown, when needs emergent display lamp carried out program more newly downloaded time, PC is held with emergent display lamp
Hands, and write down the information such as code, display lamp type, display lamp position that are uniquely identified of display lamp of currently shaking hands and deposit
Storage, after completing a display lamp information storage, the most collinear another display lamp upper is shaken hands until all display lamps are all shaken hands into
Merit.
After completing above-mentioned steps, field personnel meets an urgent need the type of display lamp and position respectively to it according to difference
Carry out different coding, staff simply enters the information such as the identification address of emergent display lamp, lamp type, number of light sources i.e.
Object code can be automatically generated.
After all object codes all generate, PC is shaken hands with emergent display lamp by guidance code again, and by corresponding mesh
Mark code transfer is in display lamp, and display lamp stores it in Flash after receiving object code, when end of transmission PC to
Emergent display lamp sends instruction, and the data in memorizer are updated by the instruction that display lamp sends according to PC.
Complete above-mentioned in steps after, display lamp emergent on line is patrolled and examined by PC, and display lamp relevant information is shown
Show at PC, by PC, staff checks that each display lamp is correctly updated, if sending mistake, individually can refer to certain
Show lamp to carry out at sequence of threads to update.
It should be noted that in said system embodiment, included unit simply carries out drawing according to function logic
Point, but it is not limited to above-mentioned division, as long as being capable of corresponding function;It addition, each functional unit is concrete
Title also only to facilitate mutually distinguish, is not limited to protection scope of the present invention.
It addition, one of ordinary skill in the art will appreciate that all or part of step realizing in the various embodiments described above method
The program that can be by completes to instruct relevant hardware, and corresponding program can be stored in an embodied on computer readable storage and be situated between
In matter, described storage medium, such as ROM/RAM, disk or CD etc..
Present invention disclosed above preferred embodiment is only intended to help to illustrate the present invention.Preferred embodiment is the most detailed
Describe all of details, be also not intended to the detailed description of the invention that this invention is only described.Obviously, according to the content of this specification,
Can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is to preferably explain the present invention
Principle and actual application so that skilled artisan can be best understood by and utilize the present invention.The present invention is only
Limited by claims and four corner thereof and equivalent.