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 being applicable to LKJ supervising device.
Background technology
LKJ supervising device (such as: LKJ2000 type), as train operation monitoring and recording device, is according to domestic transportation by railroad requirement and the train safe equipment with high-performance/cost 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 ultraviolet light erasable EPROM as the storage medium of ground line data; Use the storage medium of Nonvolatile static RAM as omnidistance log sheet of charged pool.Due to the control mode (i.e. vehicle-mounted control pattern) adopting truck-mounted computer to prestore ground line data, equipment investment cost is compared ground paving and is established dot-mode transponder to provide the mode of track data very low.In the past between 10 years, for the safe cause of Chinese Railway has made indelible contribution.
In the use procedure of LKJ supervising device, along with reasons such as each Railway Bureau circuit is newly-built, transformations, need change the outfit vehicle-mounted track data frequently.The flow process that existing LKJ data change the outfit is:
(1) LKJ2000 monitoring record plug-in unit is taken off from LKJ2000 monitor recording device;
(2) EPROM is taken off, 2 or 4 from the dismounting of LKJ2000 monitoring record plug-in unit;
(3) ultraviolet eraser is used to wipe empty EPROM;
(4) use EPROM programmer that data programming to be changed the outfit is entered EPROM;
(5) EPROM is installed back LKJ2000 monitoring record plug-in unit;
(6) finally plug-in unit is installed back LKJ2000 monitor recording device.
First, in the method that above-mentioned data change the outfit, a LKJ supervising device changes the outfit a secondary data, and at least need cost 40 minutes, its efficiency is very low.And a Railway Bureau at least has even thousands of LKJ supervising devices up to a hundred, the data that huge manpower need be spent to have carried out the overall situation change the outfit.
Secondly, change the outfit the step (2) of flow process with step (5) in above-mentioned data, be easy to because manual operation reason causes EPROM to damage, even damage LKJ2000 monitoring record plug-in unit.And EPROM is along with the increase of erasable number of times, its unfailing performance reduces gradually, and part Railway Bureau specifies that its erasable number of times must not more than 7 times, therefore cause the ratio of performance to price low, this also causes Railway Bureau all to need every year to spend many expenses for buying EPROM device, and use cost is too high.
Summary of the invention
The technical problem to be solved in the present invention is just: the technical matters existed for prior art, the invention provides a kind of operation very easy, the efficiency that changes the outfit can be improved, extend device serviceable life, method that the LKJ supervising device data that reduce use cost change the outfit.
For solving the problems of the technologies described above, the present invention by the following technical solutions:
The method that LKJ supervising device data change the outfit, the steps include:
1. data to be changed the outfit are written to storer in the mode of file by computing machine, and carry out legitimacy checking computations to the described file having write storer, generate the legitimate verification data corresponding with this file; These legitimate verification data are written to storer in the mode of another file;
2. storer is connected with the LKJ supervising device of dead electricity, then LKJ supervising device is powered on;
3. LKJ supervising device identifies the storer be attached thereto, and verifies the legitimacy of storer; If it is determined that be legal, then perform following steps; As illegal in being judged to be, then process ends;
4. LKJ supervising device is verified according to the legitimate verification data in storer, namely treats the file changed the outfit corresponding to data and carries out legitimate verification; If it is determined that be legal, then perform following steps; As illegal in being judged to be, then process ends;
5. by data programming to be changed the outfit in the data storage areas to be changed the outfit in LKJ supervising device;
6. legitimate verification is carried out to the data changed the outfit, ensure that the data changed the outfit are legal.
As a further improvement on the present invention:
Described LKJ supervising device is connected by any one communication mode in USB, CAN, Ethernet, RS422, RS232, RS485 etc. with between storer.
NAND FLASH memory part or can the memory device of online programming is adopted in described 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, without the need to dismantling device, installing LKJ2000 monitoring record plug-in unit and memory device, empty store part is wiped for a long time with light erasing apparatus without the need to making, therefore can greatly improve the efficiency that changes the outfit, its speed that changes the outfit can reach 30s/MB; And the not fragile device of the present invention, extend device serviceable life, reduce cost of products.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the inventive method.
Fig. 2 is the principle schematic of the inventive method in embody rule example.
Marginal data:
1, data to be changed the outfit; 2, computing machine; 3, storer; 4, LKJ supervising device.
Embodiment
Below with reference to Figure of description and specific embodiment, the present invention is described in further details.
As depicted in figs. 1 and 2, the method that LKJ supervising device data of the present invention change the outfit, its concrete steps are:
1. data 1 to be changed the outfit are written to storer 3 in the mode of file by computing machine 2, and carry out legitimacy checking computations to the file writing storer 3, generate the legitimate verification data corresponding with this file; These legitimate verification data are written to storer 3 in the mode of another file.Computing machine 2 can adopt known computing machine, also can adopt special computing machine or controller.Storer 3 can adopt known storage medium, also can adopt special 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. LKJ supervising device 4 identifies the storer 3 be attached thereto, and verifies the legitimacy of storer 3; If it is determined that be legal, then perform following steps; As illegal in being judged to be, then process ends.
4. LKJ supervising device 4 is verified according to the legitimate verification data in storer 3, namely treats the file changed the outfit corresponding to data 1 and carries out legitimate verification; If it is determined that be legal, then perform following steps; As illegal in being judged to be, then process ends.
5. by data 1 to be changed the outfit programming in the data storage areas to be changed the outfit in LKJ supervising device 4; That is, wipe original data on storage medium, data to be changed the outfit are burnt to storage medium, the verification msg of correspondence is burnt to designated store medium.
6. legitimate verification is carried out to the data changed the outfit, ensure that the data changed the outfit are legal.
In the present embodiment, LKJ supervising device 4 is connected with the storer 3 of band writing protection 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 tenaculum electric heating plugs, by filename identification data to be changed the outfit; CRC algorithm is adopted to ensure the correctness that data change the outfit.
In other embodiments, the communication mode such as CAN, Ethernet, RS422, RS232, RS485 also can be adopted to substitute usb communication, and it also should belong to protection scope of the present invention.
In the present embodiment, NAND FLASH memory part can be adopted in LKJ supervising device 4 to substitute eprom memory part, and adopt SMD being welded.
In other embodiments, other also can be adopted memory device of online programming can to substitute NAND FLASH, and it also should belong to protection scope of the present invention.
As from the foregoing, after adopting method of the present invention, without the need to dismounting, LKJ2000 monitoring record plug-in unit and memory device are installed, wipe empty store part without the need to making for a long time with light erasing apparatus, therefore can greatly improve the efficiency that changes the outfit; And without the need to plug hardware, therefore would not cause artificial damage to hardware, not fragile device, device serviceable life can be extended, reduce cost of products.
Below be only the preferred embodiment of the present invention, protection scope of the present invention be not only confined to above-described embodiment, all technical schemes belonged under thinking of the present invention all belong to protection scope of the present invention.It should be pointed out that for those skilled in the art, some improvements and modifications without departing from the principles of the present invention, should be considered as protection scope of the present invention.