The method that LKJ supervising device data change the outfit
Technical field
The present invention is mainly concerned with train operation monitoring recording unit field, refers in particular to a kind of data costume changing method of the LKJ of being applicable to supervising device.
Background technology
The LKJ supervising device (for example: the LKJ2000 type) as train operation monitoring and recording device, be according to domestic transportation by railroad requirement and the train safe equipment with high-performance/price ratio of independent development.Its main control unit monitoring record plug-in unit adopts 32 bit processor MC68332 of Freescale company production, can reach the addressing space of 16M; Use the storage medium of ultraviolet light erasable EPROM as the ground line data; Use the storage medium of the Nonvolatile static RAM of charged pool as omnidistance log sheet.Owing to adopt truck-mounted computer to store the control mode (being the vehicle-mounted control pattern) of ground line data in advance, it is very low that the equipment input cost is compared the mode that the floor pavement dot-mode transponder provides track data.In the past in the period of 10, for Chinese Railway safety cause has been made indelible contribution.
In the use of LKJ supervising device, reasons such as, transformation newly-built along with each Railway Bureau's circuit need the frequent vehicle-mounted track data that changes the outfit.The flow process that existing LKJ data change the outfit is:
(1) LKJ2000 monitoring record plug-in unit is taken off from the LKJ2000 monitor recording device;
(2) take off EPROM, 2 or 4 from the dismounting of LKJ2000 monitoring record plug-in unit;
(3) use the ultraviolet eraser to wipe empty EPROM;
(4) use the EPROM programmer data programming of will waiting to change the outfit to go into EPROM;
(5) EPROM is installed back LKJ2000 monitoring record plug-in unit;
(6) at last plug-in unit is installed back the LKJ2000 monitor recording device.
At first, in the method that above-mentioned data change the outfit, LKJ supervising device secondary data that changes the outfit need spend 40 fens clock times at least, and its efficient is very low.And a Railway Bureau has up to a hundred even thousands of LKJ supervising devices at least, and the data that need the huge manpower of cost to accomplish the overall situation change the outfit.
Secondly, in above-mentioned data change the outfit step (2) and the step (5) of flow process, be easy to damage, even damage LKJ2000 monitoring record plug-in unit owing to the manual operation reason causes EPROM.And EPROM is along with the increase of erasable number of times; Its unfailing performance reduces gradually, and part Railway Bureau stipulates that its erasable number of times must not surpass 7 times, so cause the ratio of performance to price low; This also causes Railway Bureau all need spend many expenses every year to be used to buy the EPROM device, and use cost is too high.
Summary of the invention
The technical matters that the present invention will solve just is: to the technical matters that prior art exists, the present invention provide a kind of operate very easy, can improve the efficient that changes the outfit, prolong device serviceable life, reduce the method that the LKJ supervising device data of use cost change the outfit.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
The method that a kind of LKJ supervising device data change the outfit the steps include:
1. the computing machine data of will waiting to change the outfit are written to storer with the mode of file, and the file of said write store is carried out the legitimacy checking computations, generate the legitimate verification data corresponding with this document; These legitimate verification data are written to storer with the mode of another file;
2. storer is connected with the LKJ supervising device of dead electricity, then the LKJ supervising device is powered on;
3. the LKJ supervising device is discerned the storer that is attached thereto, and the legitimacy of storer is verified; If it is legal to be judged to be, then carry out following steps; As be judged to be illegal, process ends then;
4. the LKJ supervising device is verified according to the legitimate verification data in the storer, promptly treats the pairing file of the data that change the outfit and carries out legitimate verification; If it is legal to be judged to be, then carry out following steps; As be judged to be illegal, process ends then;
5. the treating in data programming to the LKJ supervising device of will waiting to change the outfit changes the outfit in the data storage areas;
6. the data that changed the outfit are carried out legitimate verification, guarantee that the data that changed the outfit are legal.
As further improvement of the present invention:
Be connected through any one communication mode among USB, CAN bus, Ethernet, RS422, RS232, the RS485 etc. between said LKJ supervising device and the storer.
But adopt the memory device of NAND FLASH memory device or online programming in the said LKJ supervising device.
Compared with prior art; The invention has the advantages that: the method that LKJ supervising device data of the present invention change the outfit; Easy and simple to handle, need not to dismantle device, LKJ2000 monitoring record plug-in unit and memory device are installed, need not to make with the light erasing apparatus and wipe empty store spare for a long time; So can greatly improve the efficient that changes the outfit, its speed that changes the outfit can reach 30s/MB; And the not fragile device of the present invention has prolonged device serviceable life, has reduced cost of products.
Description of drawings
Fig. 1 is the schematic flow sheet of the inventive method.
Fig. 2 is the principle schematic of the inventive method in concrete application example.
Marginal data:
1, data to be changed the outfit; 2, computing machine; 3, storer; 4, LKJ supervising device.
Embodiment
Below will combine Figure of description and specific embodiment that the present invention is explained further details.
Method as depicted in figs. 1 and 2, that LKJ supervising device data of the present invention change the outfit, its concrete steps are:
1. computing machine 2 data 1 of will waiting to change the outfit are written to storer 3 with the mode of file, and the file of write store 3 is carried out the legitimacy checking computations, generate the legitimate verification data corresponding with this document; These legitimate verification data are written to storer 3 with the mode of another file.Computing machine 2 can adopt known computing machine, also can adopt special-purpose computing machine or controller.Storer 3 can adopt known storage medium, also can adopt special-purpose storage medium.
2. storer 3 is connected with the LKJ supervising device 4 of dead electricity, then LKJ supervising device 4 is powered on.
3. 4 pairs of storeies that are attached thereto 3 of LKJ supervising device are discerned, and the legitimacy of storer 3 is verified; If it is legal to be judged to be, then carry out following steps; As be judged to be illegal, process ends then.
4. LKJ supervising device 4 is verified according to the legitimate verification data in the storer 3, promptly treats the data 1 pairing file that changes the outfit and carries out legitimate verification; If it is legal to be judged to be, then carry out following steps; As be judged to be illegal, process ends then.
5. the treating in data 1 programming to the LKJ supervising device 4 of will waiting to change the outfit changes the outfit in the data storage areas; That is, wipe original data on the storage medium, data to be changed the outfit are burnt to storage medium, the verification msg of correspondence are burnt to the designated store medium.
6. the data that changed the outfit are carried out legitimate verification, guarantee that the data that changed the outfit are legal.
In the present embodiment, LKJ supervising device 4 is connected with the storer 3 of band write-protect function, adopts USB1.1 communication protocol between the two, supports the transfer rate of 12Mbps at full speed; Storer 3 adopts ripe FAT32 file system, and the plug of tenaculum electric heating is through filename identification data to be changed the outfit; Adopt the CRC algorithm to guarantee the correctness that data change the outfit.
In other embodiments, also can adopt communication modes such as CAN bus, Ethernet, RS422, RS232, RS485 to substitute usb communication, it also should belong to protection scope of the present invention.
In the present embodiment, can adopt NAND FLASH memory device to substitute eprom memory spare in the LKJ supervising device 4, and adopt SMD being welded.
In other embodiments, but also can adopt the memory device of other online programmings to substitute NAND FLASH, it also should belong to protection scope of the present invention.
By on can know, adopt method of the present invention after, need not dismounting, LKJ2000 monitoring record plug-in unit and memory device be installed, need not to make with the light erasing apparatus and wipe empty store spare for a long time, so can greatly improve the efficient that changes the outfit; Therefore and need not plug hardware, can not cause artificial damage to hardware, not fragile device can prolong device serviceable life, reduces cost of products.
Below only be preferred implementation of the present invention, protection scope of the present invention also not only is confined to the foregoing description, and all technical schemes that belongs under the thinking of the present invention all belong to protection scope of the present invention.Should be pointed out that for those skilled in the art some improvement and retouching not breaking away under the principle of the invention prerequisite should be regarded as protection scope of the present invention.