CN105068830A - Human-computer interaction unit and update system thereof - Google Patents
Human-computer interaction unit and update system thereof Download PDFInfo
- Publication number
- CN105068830A CN105068830A CN201510458561.0A CN201510458561A CN105068830A CN 105068830 A CN105068830 A CN 105068830A CN 201510458561 A CN201510458561 A CN 201510458561A CN 105068830 A CN105068830 A CN 105068830A
- Authority
- CN
- China
- Prior art keywords
- file
- module
- check code
- interaction unit
- man
- 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.)
- Pending
Links
Landscapes
- Storage Device Security (AREA)
Abstract
The invention discloses a human-computer interaction unit and an update system thereof, which belongs to the technical field of train control and solves the technical problem in the prior art that the convenience of updating programs and files is difficultly improved due to the restriction of safety factors. The human-computer interaction unit comprises a loading module used for opening encrypted files; a reading module used for reading data of fixed bytes at the specific positions of the encrypted files; a calculation module used for calculating a check code according to the read bytes, and generating into the check code; a verification module used for comparing the consistency of the generated check code and check codes conserved in the encrypted files. The human-computer interaction unit and the update system thereof provided by the invention can be applied to updating programs and files of the human-computer interaction unit in an LKJ2000 system.
Description
Technical field
The present invention relates to Train Control Technology field, specifically, relate to a kind of man-machine interaction unit and renewal system thereof.
Background technology
Train operation monitoring and recording device is the important component part ensureing safe train operation, can assist and control driver to the manipulation of train, train operation be got up safer.Wherein, LKJ2000 system is one the most conventional in current train operation monitoring and recording device.
LKJ2000 system is as the train safe equipment of domestic main flow, and man-machine interaction unit is the vitals in LKJ2000 system, carries the work carrying out effectively display with the control information, status information etc. of the form such as word, figure to train.At present, the program of the man-machine interaction unit of LKJ2000 system and file update are by downloading corresponding program and file realizes from special IC-card.Along with the appearance of novel human-machine interaction unit, its memory capacity is increasing, can reach several GB, needs also greatly increasing of the quantity of program and the file upgraded, size, such as larger font file, voice document etc.
But from special IC-card, download file speed is comparatively slow, can only reach 55KB/s, and the capacity of special IC-card is less, is not suitable for preserving larger file, special IC-card capacity conventional at present only has 4MB usually.If use that the memory device of other Large Copacity, fast transport transmits, the program of down loading updating and file, there is the security being difficult to guarantee program and file.Therefore, be subject to the restriction of safety factor in prior art, be difficult to the convenience of raising program and file update.
Summary of the invention
The object of the present invention is to provide a kind of man-machine interaction unit and renewal system thereof, to solve in prior art the restriction being subject to safety factor, be difficult to the technical matters of the convenience of raising program and file update.
The invention provides a kind of man-machine interaction unit, comprising:
Load-on module, for opening encrypt file;
Read module, for reading the data of fixed byte at the ad-hoc location of described encrypt file;
Computing module, for carrying out the calculating of check code according to the byte read, generates check code;
Correction verification module, for carrying out comparison of coherence by the check code preserved in the check code of generation and described encrypt file.
Preferably, described encrypt file be updating file compressed and encryption compressed file.
Further, this man-machine interaction unit also comprises comparison module and update module;
Described comparison module is used for after described correction verification module verification succeeds, judges the version number that preserves in described compressed file whether higher than the version number of current file; If so, then file update is carried out by described update module.
Further, described update module specifically for:
Remove the check code and version number preserved in described compressed file;
Decompress described compressed file, obtains updating file;
Current file is replaced with described updating file.
Preferably, described man-machine interaction unit is arranged in train operation monitoring and recording device.
The present invention also provides a kind of renewal system of man-machine interaction unit, comprises ciphering terminal and above-mentioned man-machine interaction unit.
Wherein, described ciphering terminal comprises:
Load-on module, for opening file to be encrypted;
Read module, for reading the data of fixed byte at the ad-hoc location of described file to be encrypted;
Computing module, for carrying out the calculating of check code according to the byte read, generates check code;
Writing module, for being kept at by described check code in described file to be encrypted, generates encrypt file.
Preferably, described ciphering terminal also comprises compression module, and for by updating file boil down to compressed file, described compressed file is as file to be encrypted.
Further, said write module is also for being kept at the version number of described updating file in described encrypt file.
Further, this renewal system also comprises memory device;
Encrypt file in described ciphering terminal is kept in described memory device, and transfers to described man-machine interaction unit by described memory device.
Present invention offers following beneficial effect: in the renewal system of man-machine interaction unit provided by the invention, ciphering terminal is by reading the data of fixed byte at the ad-hoc location of file to be encrypted, and calculate generation check code, then check code is kept in file to be encrypted, generate encrypt file.Then utilize memory device, encrypt file is transferred to man-machine interaction unit.In man-machine interaction unit, be also the data by reading fixed byte at the ad-hoc location of encrypt file, and calculate generation check code, then carry out comparison of coherence, realize verification, thus improve the security of program and file update.Therefore, utilize the renewal system of man-machine interaction unit provided by the invention, the memory device of the Large Copacity such as use USB device that just can be safe, fast transport carries out the renewal of program and file, thus improves the convenience of program and file update.
Other features and advantages of the present invention will be set forth in the following description, and, becoming apparent from instructions of part, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in instructions, claims and accompanying drawing and obtain.
Accompanying drawing explanation
In order to the technical scheme in the clearer explanation embodiment of the present invention, accompanying drawing required in describing is done simple introduction below to embodiment:
Fig. 1 is the process flow diagram of the encryption method of the file that the embodiment of the present invention provides;
Fig. 2 is the process flow diagram of the decryption method of the file that the embodiment of the present invention provides;
Fig. 3 is the schematic diagram of the renewal system of the man-machine interaction unit that the embodiment of the present invention provides.
Embodiment
Describe embodiments of the present invention in detail below with reference to drawings and Examples, to the present invention, how application technology means solve technical matters whereby, and the implementation procedure reaching technique effect can fully understand and implement according to this.It should be noted that, only otherwise form conflict, each embodiment in the present invention and each feature in each embodiment can be combined with each other, and the technical scheme formed is all within protection scope of the present invention.
embodiment one:
The embodiment of the present invention provides a kind of encryption method and decryption method of file, can be applicable to the program of LKJ2000 Method of Man-computer Interaction unit and the renewal of file.
In the embodiment of the present invention, the updating file (needing the program of renewal or file) that encryption method is used for man-machine interaction unit is encrypted, and as shown in Figure 1, this encryption method comprises the following steps:
S101: open file to be encrypted.
As a preferred version, before carrying out step S101, first by updating file boil down to compressed file, the capacity of updating file can be reduced.This compressed file is namely as the file to be encrypted in the present embodiment.
Then, can software be passed through, open this compressed file in the mode of file.
S102: the data reading fixed byte at the ad-hoc location of compressed file (file to be encrypted).
This ad-hoc location can pre-set according to real needs.Such as, in certain position of compressed file, the data of one section of successive byte can be read; Or, also in multiple positions of compressed file, multiple (or multistage) byte can be read.
S103: the calculating carrying out check code according to the byte read, generates check code.
According to the data of the byte that step S102 reads, carry out checking treatment, i.e. the calculating of check code, generate the check code of this compressed file.Because the data for the byte generating check code read from the ad-hoc location of compressed file, so the check code generated depends on choosing of this ad-hoc location.
S104: be kept at by check code in compressed file (file to be encrypted), generates encrypt file.
After generating check code, check code is kept in the precalculated position of compressed file, can encrypt file be generated.It should be noted that the precalculated position in this step is different from the ad-hoc location in step S102.In addition, the encrypt file generated in this step remains a compressed file.
Further, after generation encrypt file, can also comprise:
S105: the version number of updating file is kept in compressed file (encrypt file).
The version number of this updating file is also kept in compressed file, so that the version of obvious identification renewal file.As a preferred version, the position that version number preserves can be chosen for the compressed file tail of compressed file.
Accordingly, the embodiment of the present invention also provides a kind of decryption method of file, is applied in man-machine interaction unit, and specifically for being decrypted updating file, as shown in Figure 2, this decryption method comprises the following steps:
S201: open encrypt file.
In the present embodiment, this encrypt file be updating file compressed and encryption compressed file.The namely final compressed file generated in above-mentioned encryption method, and wherein preserve check code and version number.
S202: the data reading fixed byte at the ad-hoc location of compressed file (encrypt file).
Ad-hoc location in this step, should be identical with the ad-hoc location in the step S102 of above-mentioned encryption method.
S203: the calculating carrying out check code according to the byte read, generates check code.
According to the data of the byte that step S202 reads, carry out checking treatment, i.e. the calculating of check code, generate the check code of this compressed file.Because the data for the byte generating check code are also read, so the check code generated in this step should be identical with the check code generated in the step S103 of above-mentioned encryption method from the identical ad-hoc location of compressed file.
S204: the check code preserved in the check code generated and compressed file (encrypt file) is carried out comparison of coherence.
If comparative result is consistent, then verification succeeds, can proceed file update.
If comparative result is inconsistent, then verify failure, abandon this file update.Verify failed reason normally, step S202 is different from the data of the byte read in step S102.
Further, after verification succeeds, also comprise:
S205: judge the version number that preserves in compressed file (encrypt file) whether higher than the version number of current file.
By the version number of reading and saving in compressed file tail, the version of this updating file can be known.If the version number of updating file higher than the version number of current file, then proceeds step S206, carry out file update.If the version number of updating file is lower than the version number of current file, or the two is identical, then illustrate that this updating file is not higher version, so abandon file update.
S206: carry out file update, specifically can comprise:
Remove the check code and version number preserved in compressed file, namely eliminate the extra content increased in encryption, decrypting process.Then decompress this compressed file, obtains updating file, and replace current file with updating file, after restarting man-machine interaction unit, can complete file update.
In the encryption method that the embodiment of the present invention provides, by reading the data of fixed byte at the ad-hoc location of compressed file, and calculate generation check code, then check code and version number are kept in compressed file.On the other hand, in decryption method provided by the invention, be also the data by reading fixed byte at the ad-hoc location of compressed file, and calculate generation check code, then carry out comparison of coherence, realize verification, thus improve the security of updating file.Therefore, the encryption utilizing the embodiment of the present invention to provide and decryption method, the memory device of the Large Copacity such as use USB device that just can be safe, fast transport carries out file update, thus improves the convenience that man-machine interaction unit carries out file update.
embodiment two:
The embodiment of the present invention provides a kind of renewal system of man-machine interaction unit, for being encrypted the updating file of man-machine interaction unit.As shown in Figure 3, this renewal system comprises ciphering terminal and man-machine interaction unit, and man-machine interaction unit is preferably LKJ2000 Method of Man-computer Interaction unit.
Ciphering terminal can be computer or other intelligent terminals, is mainly used in being encrypted updating file.In addition, updating file editor, generate and also can complete changing in ciphering terminal.Load-on module, read module, computing module, writing module is mainly comprised in ciphering terminal.
As a preferred version, also comprise compression module in ciphering terminal, for by updating file boil down to compressed file, to reduce the capacity of updating file, this compressed file is as file to be encrypted.
Load-on module is used for opening compressed file (file to be encrypted), specifically can pass through software, open this compressed file in the mode of file.
Read module is used for the data reading fixed byte at the ad-hoc location of compressed file.This ad-hoc location can pre-set according to real needs.Such as, in certain position of compressed file, the data of one section of successive byte can be read; Or, also in multiple positions of compressed file, multiple (or multistage) byte can be read.
Computing module is used for the calculating carrying out check code according to the byte read, and generates check code.Concrete, the data of the byte that computing module reads according to read module, carry out checking treatment, i.e. the calculating of check code, generate the check code of this compressed file.Because the data for the byte generating check code read from the ad-hoc location of compressed file, so the check code generated depends on choosing of this ad-hoc location.
Writing module is used for check code to be kept in file to be encrypted, generates encrypt file.Concrete, after computing module generates check code, check code is kept in the precalculated position of compressed file by writing module, can generate encrypt file.It should be noted that the precalculated position of preserving check code is different from the ad-hoc location that read module reads.In addition, the encrypt file that writing module generates remains a compressed file.
Further, writing module can also be used for the version number of updating file to be kept in compressed file (encrypt file).The version number of this updating file be also kept in compressed file, so that the version of obvious identification renewal file, the position that version number preserves can be preferably the compressed file tail of compressed file.
On the other hand, the man-machine interaction unit that the present embodiment provides is arranged in train operation monitoring and recording device.Computing module, read module, load-on module, correction verification module is mainly comprised in man-machine interaction unit.
Load-on module is used for opening encrypt file, this encrypt file be updating file compressed and encryption compressed file.The compressed file that writing module namely in above-mentioned ciphering terminal generates, and wherein preserve check code and version number.
Read module is used for the data reading fixed byte at the ad-hoc location of compressed file (encrypt file).The ad-hoc location that this ad-hoc location should read with the read module in above-mentioned ciphering terminal is identical.
Computing module is used for the calculating carrying out check code according to the byte read, and generates check code.Concrete, according to the data of the byte that read module reads, carry out checking treatment, i.e. the calculating of check code, generate the check code of this compressed file.Because the data for the byte generating check code are also read, so the check code now generated should be identical with the check code that above-mentioned ciphering terminal generates from the identical ad-hoc location of compressed file.
Correction verification module is used for the check code preserved in the check code generated and compressed file (encrypt file) to carry out comparison of coherence.If comparative result is consistent, then verification succeeds, can proceed file update.If comparative result is inconsistent, then verify failure, abandon this file update.Verify failed reason normally, ciphering terminal is different from the data of the byte that man-machine interaction unit reads.
Further, comparison module and update module is also comprised in the man-machine interaction unit that the embodiment of the present invention provides.Wherein, comparison module is used for after correction verification module verification succeeds, judges the version number that preserves in compressed file whether higher than the version number of current file.If judged result is yes, then carry out file update by update module.
Comparison module, by the version number of reading and saving in compressed file tail, can know the version of this updating file.If the version number of updating file is higher than the version number of current file, then continue to carry out file update by update module.If the version number of updating file is lower than the version number of current file, or the two is identical, then illustrate that this updating file is not higher version, so abandon file update.Certainly, in other embodiments, can there is no comparison module yet, and directly carry out file update by update module after verification succeeds.
In the present embodiment, update module specific works process is, first removes the check code preserved in compressed file and version number, namely removes the extra content increased in encryption, decrypting process.Then, decompress this compressed file, obtains updating file, then replace current file with updating file, after restarting man-machine interaction unit, can complete file update.
Further, also comprise memory device in the renewal system that the embodiment of the present invention provides, memory device is preferably the USB device such as USB flash disk, portable hard drive, also can select the memory device of other Large Copacity, fast transport.
As shown in Figure 3, encrypt file can be kept in USB flash disk (memory device), then USB flash disk be inserted the USB interface of man-machine interaction unit, thus encrypt file is transferred to man-machine interaction unit after generating encrypt file by ciphering terminal.
In the renewal system of the man-machine interaction unit that the embodiment of the present invention provides, ciphering terminal by reading the data of fixed byte at the ad-hoc location of compressed file, and calculates generation check code, then check code and version number is kept in compressed file.Then utilize the memory devices such as USB flash disk, encrypt file is transferred to man-machine interaction unit.In man-machine interaction unit, be also the data by reading fixed byte at the ad-hoc location of compressed file, and calculate generation check code, then carry out comparison of coherence, realize verification, thus improve the security of updating file.Therefore, the renewal system of the man-machine interaction unit utilizing the embodiment of the present invention to provide, the memory device of the Large Copacity such as use USB flash disk that just can be safe, fast transport carries out file update, thus improves the convenience that man-machine interaction unit carries out file update.
Although embodiment disclosed in this invention is as above, the embodiment that described content just adopts for the ease of understanding the present invention, and be not used to limit the present invention.Technician in any the technical field of the invention; under the prerequisite not departing from spirit and scope disclosed in this invention; any amendment and change can be done what implement in form and in details; but scope of patent protection of the present invention, the scope that still must define with appending claims is as the criterion.
Claims (10)
1. a man-machine interaction unit, is characterized in that, comprising:
Load-on module, for opening encrypt file;
Read module, for reading the data of fixed byte at the ad-hoc location of described encrypt file;
Computing module, for carrying out the calculating of check code according to the byte read, generates check code;
Correction verification module, for carrying out comparison of coherence by the check code preserved in the check code of generation and described encrypt file.
2. man-machine interaction unit according to claim 1, is characterized in that, described encrypt file be updating file compressed and encryption compressed file.
3. man-machine interaction unit according to claim 2, is characterized in that, also comprises comparison module and update module;
Described comparison module is used for after described correction verification module verification succeeds, judges the version number that preserves in described compressed file whether higher than the version number of current file; If so, then file update is carried out by described update module.
4. man-machine interaction unit according to claim 3, is characterized in that, described update module specifically for:
Remove the check code and version number preserved in described compressed file;
Decompress described compressed file, obtains updating file;
Current file is replaced with described updating file.
5. man-machine interaction unit according to claim 1, is characterized in that, described man-machine interaction unit is arranged in train operation monitoring and recording device.
6. a renewal system for man-machine interaction unit, is characterized in that, comprises ciphering terminal and the man-machine interaction unit as described in any one of claim 1 to 5.
7. system according to claim 6, is characterized in that, described ciphering terminal comprises:
Load-on module, for opening file to be encrypted;
Read module, for reading the data of fixed byte at the ad-hoc location of described file to be encrypted;
Computing module, for carrying out the calculating of check code according to the byte read, generates check code;
Writing module, for being kept at by described check code in described file to be encrypted, generates encrypt file.
8. system according to claim 7, is characterized in that, described ciphering terminal also comprises compression module, and for by updating file boil down to compressed file, described compressed file is as file to be encrypted.
9. system according to claim 8, is characterized in that, said write module is also for being kept at the version number of described updating file in described encrypt file.
10. system according to claim 6, is characterized in that, also comprises memory device;
Encrypt file in described ciphering terminal is kept in described memory device, and transfers to described man-machine interaction unit by described memory device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510458561.0A CN105068830A (en) | 2015-07-30 | 2015-07-30 | Human-computer interaction unit and update system thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510458561.0A CN105068830A (en) | 2015-07-30 | 2015-07-30 | Human-computer interaction unit and update system thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105068830A true CN105068830A (en) | 2015-11-18 |
Family
ID=54498208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510458561.0A Pending CN105068830A (en) | 2015-07-30 | 2015-07-30 | Human-computer interaction unit and update system thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105068830A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110061793A (en) * | 2019-04-18 | 2019-07-26 | 湖南科大天河通信股份有限公司 | Broadcasting method, device, electronic equipment and the storage medium of anti-air-raid and disaster-preventing alarm |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080005503A1 (en) * | 2006-05-26 | 2008-01-03 | John Rudelic | Updating a memory block without status logging |
CN101183374A (en) * | 2007-10-17 | 2008-05-21 | 北京逍遥掌信息技术有限公司 | Mobile terminal apparatus electronic file memory structure and management techniques |
CN103473088A (en) * | 2013-08-30 | 2013-12-25 | 北京远特科技有限公司 | Method and system for online upgrading of single chip microcomputer |
CN103873440A (en) * | 2012-12-11 | 2014-06-18 | 北京旋极信息技术股份有限公司 | Application program upgrading method and system |
-
2015
- 2015-07-30 CN CN201510458561.0A patent/CN105068830A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080005503A1 (en) * | 2006-05-26 | 2008-01-03 | John Rudelic | Updating a memory block without status logging |
CN101183374A (en) * | 2007-10-17 | 2008-05-21 | 北京逍遥掌信息技术有限公司 | Mobile terminal apparatus electronic file memory structure and management techniques |
CN103873440A (en) * | 2012-12-11 | 2014-06-18 | 北京旋极信息技术股份有限公司 | Application program upgrading method and system |
CN103473088A (en) * | 2013-08-30 | 2013-12-25 | 北京远特科技有限公司 | Method and system for online upgrading of single chip microcomputer |
Non-Patent Citations (2)
Title |
---|
傅建明等: "《计算机病毒分析与对抗》", 30 April 2004, 武汉大学出版社 * |
匡晋湘等: "基于QNX车载显示系统的软件设计", 《机车电传动》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110061793A (en) * | 2019-04-18 | 2019-07-26 | 湖南科大天河通信股份有限公司 | Broadcasting method, device, electronic equipment and the storage medium of anti-air-raid and disaster-preventing alarm |
CN110061793B (en) * | 2019-04-18 | 2021-07-02 | 湖南科大天河通信股份有限公司 | Broadcasting method and device for air defense and disaster prevention alarm, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102136053B (en) | Method and device for protecting source code of executable file | |
CN109598107B (en) | Code conversion method and device based on application installation package file | |
CN104317625A (en) | Dynamic loading method for APK files | |
CN101984449B (en) | Smart card COS operating system | |
TWI443517B (en) | Memory stroage apparatus, memory controller and password verification method | |
CN105141429A (en) | User verifying method, user verifying device and server | |
CN104573527A (en) | UEFI system updating method based on updating security mechanism | |
CN102663471B (en) | Based on mobile terminal safety information storage means and the system of EMMC chip | |
CN104298926A (en) | Method and device for running encrypted file | |
US8898807B2 (en) | Data protecting method, mobile communication device, and memory storage device | |
CN103257938B (en) | Data guard method, Memory Controller and memorizer memory devices | |
CN104915240B (en) | A kind of method of atm device software upgrading | |
TWI467590B (en) | Data processing method, memory controller, and memory storage device | |
CN104462883A (en) | APK file strengthening method | |
CN103593301A (en) | Bad block management method and system | |
CN105068830A (en) | Human-computer interaction unit and update system thereof | |
CN105095011B (en) | Data processing method, memorizer control circuit unit and memory storage apparatus | |
CN103425932A (en) | Signature calibration method and terminal device | |
CN102855090A (en) | Storage equipment and running method thereof | |
CN102012978B (en) | Method and system for safely upgrading ISO (International Standard Code) file | |
CN109375938B (en) | Security upgrade control system, method and program for Linux embedded device | |
CN105069373A (en) | File encryption and decryption methods | |
CN104898985A (en) | Storage device, controller, and data writing method | |
CN105354107A (en) | Data transmission method and system for NOR Flash | |
CN101799858A (en) | FLASH data protection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151118 |