CN113761546B - Method and system for automatically downloading train communication data record file - Google Patents

Method and system for automatically downloading train communication data record file Download PDF

Info

Publication number
CN113761546B
CN113761546B CN202010499232.1A CN202010499232A CN113761546B CN 113761546 B CN113761546 B CN 113761546B CN 202010499232 A CN202010499232 A CN 202010499232A CN 113761546 B CN113761546 B CN 113761546B
Authority
CN
China
Prior art keywords
file
downloading
configurable
download
record
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.)
Active
Application number
CN202010499232.1A
Other languages
Chinese (zh)
Other versions
CN113761546A (en
Inventor
高英明
莫云
蒋国涛
邹智荣
唐鹏辉
罗源
石焜
邓晓欧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRRC Zhuzhou Institute Co Ltd
Original Assignee
CRRC Zhuzhou Institute Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by CRRC Zhuzhou Institute Co Ltd filed Critical CRRC Zhuzhou Institute Co Ltd
Priority to CN202010499232.1A priority Critical patent/CN113761546B/en
Publication of CN113761546A publication Critical patent/CN113761546A/en
Application granted granted Critical
Publication of CN113761546B publication Critical patent/CN113761546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Databases & Information Systems (AREA)
  • Storage Device Security (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and a system for automatically downloading a train communication data record file, wherein the method comprises the steps of judging whether an encrypted configurable file containing preset downloading rules exists in an accessed storage device, if so, decrypting and storing the encrypted configurable file, further obtaining the downloading rules contained in the encrypted configurable file and related to a target record file through analysis, and finally automatically matching and obtaining the target record file to be downloaded in a record module according to the obtained downloading rules. By adopting the technical scheme of the invention, the parameters in the encrypted configurable file containing the preset downloading rules are adjusted, so that different downloading rules can be adopted to automatically match and download the required record file, and the problems of complex operation and high error probability in the existing downloading technology are solved. Meanwhile, the configurable file is encrypted, so that the safety of train communication data is ensured to a great extent.

Description

Method and system for automatically downloading train communication data record file
Technical Field
The invention relates to the technical field of rail transit data communication, in particular to a method and a system for automatically downloading a train communication data record file.
Background
The progress of traffic is an important embodiment of the development of human society, and the application of the traffic in society is more and more wide due to the convenience and high efficiency of the rail traffic, and different from the conventional vehicles, the communication system and subsystem on the train in the rail traffic field are various, the communication technology mainly comprises Ethernet, MVB (multifunctional vehicle bus) and the like, the communication equipment is arranged in a limited space, and a recording module is designed on the train for real-time recording of communication data information on the train for facilitating the analysis and positioning of communication faults. The recorded information is stored in a recording module in the form of files, and as the number and variety of the recorded files are large, under the condition that the operation space and resources of an application person are limited, how to safely, quickly and conveniently find and download the target recorded files becomes a problem;
According to the traditional method, an application personnel specially responsible for recording all the recorded files stored in the recording module according to the identification information of the files required to be recorded searches for related files matched with the identification information, and selects the files from the related files and drags the files to the storage device.
Disclosure of Invention
To solve the above-mentioned problems, the present invention provides a system for automatically downloading a train communication data record file, and in one embodiment, the method includes:
Step S1, judging whether an encryption configurable file containing a preset downloading rule exists in the accessed storage equipment, and if so, executing step S2;
s2, decrypting the encrypted configurable file by using a preset decryption algorithm and storing the encrypted configurable file, wherein the preset decryption algorithm corresponds to an encryption algorithm for encrypting the configurable download file;
s3, analyzing the decrypted configurable file to obtain a downloading rule of the target record file contained in the configurable file;
And S4, automatically matching the target record file to be downloaded in the record module according to the acquired downloading rule, and transmitting the target record file to the accessed storage equipment.
In a preferred embodiment, before said step S1, the following operations are further included:
Combining the storage format parameters of the record module to which the target record file to be downloaded belongs to generate a configurable file containing preset downloading rules;
Encrypting the generated configurable file by using a preset encryption algorithm;
The encrypted configurable file is imported into a storage device for storing the desired target record file.
In one embodiment, the storage format parameters of the recording module include the following parameters:
the initial recording time of the recorded file, the full storage time of the recorded file and the corresponding serial number of the recorded file are recorded in the recording module; the full storage time of the recorded file refers to the time when the file reaches a specified size in the recording process.
In one embodiment, the downloading rule of the target record file includes a downloading mode flag, and in step S4, the method includes the following operations:
When the download mode mark value is a first preset mark, automatically matching the corresponding record file according to a first download parameter corresponding to the mark, wherein the first download parameter comprises: downloading a starting sequence number, a downloading sequence and a target downloading quantity;
When the download mode mark value is a second preset mark, automatically matching the corresponding record file according to a second download parameter corresponding to the mark, wherein the second download parameter comprises: a download start time and a target download duration.
In one embodiment, the method further comprises: judging whether the decrypted configurable file is analyzed, if so, deleting the stored decrypted configurable file.
Based on other aspects of any one or more of the embodiments described above, the present invention also provides a system for automatically downloading a train communication data record file, the system comprising:
a download configuration judging unit, which is used for judging whether an encryption configurable file containing a preset download rule exists in the accessed storage equipment, and if so, starting a decryption unit;
The decryption unit is used for decrypting the encrypted configurable file by using a preset decryption algorithm and storing the encrypted configurable file, wherein the preset decryption algorithm corresponds to the encryption algorithm for encrypting the configurable file;
The analysis unit is used for analyzing the decrypted configurable file and acquiring a downloading rule of the target record file contained in the configurable file;
and the automatic matching and downloading unit is used for automatically matching the target record file to be downloaded in the record module according to the acquired downloading rule and transmitting the target record file to the accessed storage equipment.
In a preferred embodiment, the system further comprises: a download configuration generating unit that generates an encrypted configurable file by:
Combining the storage format parameters of the record module to which the target record file to be downloaded belongs to generate a configurable file containing preset downloading rules;
Encrypting the generated configurable file by using a preset encryption algorithm;
The encrypted configurable file is imported into a storage device for storing the desired target record file.
In one embodiment, the storage format parameters of the recording module include the following parameters:
the initial recording time of the recorded file, the full storage time of the recorded file and the corresponding serial number of the recorded file are recorded in the recording module; the full storage time of the recorded file refers to the time when the file reaches a specified size in the recording process.
In one embodiment, the downloading rule of the target record file includes a downloading mode flag, and the automatic matching and downloading unit performs the following operations to automatically match the target record file to be downloaded:
When the download mode mark value is a first preset mark, automatically matching the corresponding record file according to a first download parameter corresponding to the mark, wherein the first download parameter comprises: downloading a starting sequence number, a downloading sequence and a target downloading quantity;
When the download mode mark value is a second preset mark, automatically matching the corresponding record file according to a second download parameter corresponding to the mark, wherein the second download parameter comprises: a download start time and a target download duration.
In one embodiment, the system further comprises:
And the risk file deleting unit is used for judging whether the decrypted configurable file is analyzed, and if yes, deleting the stored decrypted configurable file.
Compared with the closest prior art, the invention has the following beneficial effects:
The method and the system for automatically downloading the train communication data record file provided by the invention have the advantages that the encrypted configurable file containing the preset downloading rule in the access storage equipment is utilized to automatically match and acquire the target record file to be downloaded in the record module, and the parameters in the encrypted configurable file containing the preset downloading rule are adjusted, so that the record files required by the users can be automatically matched and downloaded by adopting different downloading rules, the problems of complex operation and high error probability in the prior art are overcome, and the flexibility and the convenience of downloading the event recording device file by the application personnel are improved. Meanwhile, the configurable file is encrypted, so that the safety of train communication data is ensured to a great extent. On the basis, the downloaded train record file can be supplied for human analysis, and is helpful for promoting the stable operation and optimizing maintenance of the train.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention, without limitation to the invention. In the drawings:
FIG. 1 is a flow chart of a method for automatically downloading a train communication data record file according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a process flow for encrypting a configurable file according to an embodiment of the present invention;
Fig. 3 is a schematic structural view of a system for automatically downloading a train communication data record file according to another embodiment of the present invention.
Detailed Description
The following will explain the embodiments of the present invention in detail with reference to the drawings and examples, so that the practitioner of the present invention can fully understand how to apply the technical means to solve the technical problems, achieve the implementation process of the technical effects, and implement the present invention according to the implementation process. It should be noted that, as long as no conflict is formed, each embodiment of the present invention and each feature of each embodiment may be combined with each other, and the formed technical solutions are all within the protection scope of the present invention.
Because of the convenience and high efficiency of rail traffic, the application of the system in society is more and more extensive, and the system is different from conventional vehicles, and the communication technology is mainly Ethernet, MVB (multifunctional vehicle bus) and the like, and the communication equipment is arranged in a limited space, so that the system is convenient for communication fault analysis and positioning, and a recording module is designed on the train to record communication data information on the train in real time. The recorded information is stored in a recording module in the form of files, and as the number and variety of the recorded files are large, under the condition that the operation space and resources of an application person are limited, how to safely, quickly and conveniently find and download the target recorded files becomes a problem;
According to the traditional method, an application personnel specially responsible for traversing all record files stored in a record module according to the identification information of the record files required, searching related files matched with the identification information, selecting required target record files from the related files to download, and the method is complex in operation and long in time consumption, and particularly for the condition that the record files required relate to multiple types and files, the traditional method consumes great manpower and time resources, has high probability of error, and cannot guarantee the reliability of downloaded data.
In order to solve the above problems, the present invention provides a method and a system for automatically downloading a train communication data record file, which are safe, fast and convenient, and can find and download a target record file from a plurality of record files in a train record module to a portable storage device. Various embodiments of the present invention are described below with reference to the accompanying drawings.
Example 1
Fig. 1 is a flowchart of a method for automatically downloading a train communication data record file according to an embodiment of the present invention, and as can be seen with reference to fig. 1, the method includes the following steps.
And generating a configurable file containing preset downloading rules by combining the storage format parameters of the record module to which the target record file to be downloaded belongs.
The storage format parameters of the recording module comprise the following parameters: the initial recording time of the recorded file, the full storage time of the recorded file and the corresponding serial number of the recorded file are recorded in the recording module; in practical applications, the full time of a recorded file may also be referred to as: the recording time of file full refers to the time when the file reaches a prescribed size during recording.
In practical application, the naming method of the name of the record file in the communication record module in the track traffic field is generally as follows: starting the sequence number of the recording time_file full of the recording time_file; for example: 201903131415_201903141718_1, this example shows that the recording start time of the file is: 14 minutes at 13.3.2019, and 15 minutes at 13.13, the time for the file record to reach the specified size is: 17.18 minutes in 2019, 3, 14, this document has a ranking number of 1.
According to the embodiment of the invention, the downloading rule of the target record file is embodied by a downloading mode mark in the configurable file and comprises two downloading mode marks, wherein when the downloading mode mark value is a first preset mark, the first downloading parameter corresponding to the mark comprises: downloading a starting sequence number, a downloading sequence and a target downloading quantity; when the download mode flag value is a second set flag, the second download parameters corresponding to the flag include: a download start time and a target download duration.
In practical application, the download mode flag may be embodied by a "mode" flag in the configurable file, and when the value of "mode" is equal to 0, downloading is performed according to the serial number of the file, where the corresponding first download parameter includes: the starting sequence number of downloads, the order of downloads and the number of target downloads, when a failure occurs, will generally require downloading the latest several files, so that the latest sequence number can be recursively forward in reverse order, and in particular, in an alternative embodiment, the number of target downloads for downloading a file may be determined by the value of the set quantity parameter "count".
Correspondingly, when the value of the mode is equal to 1, a downloading rule is set according to the starting time set in the file and the time for downloading the record, and then the names of the record files are matched according to the starting time parameters. When the occurrence time of the fault is known, the target downloading time length can be set according to the requirement based on the specific time of the fault occurrence or the set time before the fault as the starting time. By adopting the downloading rule, the workload can be greatly reduced on the basis of guaranteeing the reliability.
Further, after the configurable file (such as xml type configurable file) is generated, if the related data of train communication is obtained through some illegal data obtaining channels, a potential safety hazard will be caused, in order to avoid that the recorded data of the train is not illegally downloaded and utilized, the generated configurable file needs to be encrypted, specifically, the encryption algorithm may be utilized to encrypt the xml file as the configurable file, and then the encrypted configurable xml file is placed in the usb disk, so the invention includes the following operations:
And encrypting the generated configurable file by using a preset encryption algorithm. The encrypted configurable file is imported into a storage device for storing the desired target record file.
Based on the above technical solution, the following operations are implemented in the embodiments of the present invention to automatically download a record file:
Step S110, judging whether an encryption configurable file containing a preset downloading rule exists in the accessed storage equipment, if so, executing step S120, otherwise, ending the operation, wherein the encryption configurable file is used as a downloading configuration file for guiding the automatic matching and downloading of the record file.
And step S120, decrypting the encrypted configurable file by using a preset decryption algorithm and storing, wherein the preset decryption algorithm corresponds to the encryption algorithm for encrypting the configurable file.
And step S130, analyzing the decrypted configurable file to obtain a downloading rule of the target record file contained in the configurable file.
When in use, a user inserts a portable storage device (such as a U disk) with an encrypted configurable file (such as an encrypted xml file) into the train recording module; the recording module can immediately detect that the USB flash disk is inserted, then judges whether an encrypted configurable file containing a preset downloading rule exists in the accessed storage equipment, if so, the encrypted xml file is decrypted according to a corresponding decryption algorithm, the decrypted xml file is stored in a disk character of the recording module, and a CPU of the recording module reads and analyzes the decrypted xml file from the disk character.
The download rule contained in the xml file can be obtained by parsing the decrypted xml file, and then the following steps are executed:
And step 140, automatically matching the target record file to be downloaded in the record module according to the acquired downloading rule, and transmitting the target record file to the accessed storage equipment.
Specifically, in this step, the download rule of the target record file includes a download mode flag of the configurable file, including two download mode flags, where the download mode flag can embody the download rule in the corresponding configurable file, specifically, in step S140, the matching of the target record file is achieved based on the download mode flag by: when the download mode flag value is a first set flag, the first download parameters corresponding to the flag include: downloading a starting sequence number, a downloading sequence and a target downloading quantity; when the download mode flag value is a second set flag, the second download parameters corresponding to the flag include: a download start time and a target download duration.
In practical application, the download mode flag may be embodied by a "mode" flag in the configurable file, and when the value of "mode" is equal to 0, downloading is performed according to the serial number of the file, where the corresponding first download parameter includes: the starting sequence number of downloads, the order of downloads and the number of target downloads, when a failure occurs, will typically require downloading the latest several files, so that the latest sequence number can be recursively forward in reverse order, and in particular, in an alternative embodiment, the number of target downloads for downloading a file may be determined by the value of "count".
Correspondingly, when the value of the mode is equal to 1, a downloading rule is set according to the starting time set in the file and the time for downloading the record, and then the names of the record files are matched according to the starting time parameters. When the occurrence time of the fault is known, the target downloading time length can be set according to the requirement based on the specific time of the fault occurrence or the set time before the fault as the starting time.
Further, in order to ensure safe transmission of train communication data, considering that the decrypted configurable file stored in the recording module may be illegally acquired or tampered, a policy is adopted that the decrypted downloaded file is deleted after the downloading operation is performed, so in one embodiment, the present invention further includes the following operations: judging whether the analysis of the decrypted configurable file is finished, if so, deleting the stored decrypted configurable file, and if not, judging again after setting a time period until the fact that all the analysis of the decrypted configurable file is finished is determined.
In practical application, the record module reads and analyzes the decrypted xml file, and gives the relevant download rule parameter value to the parameter in the record module, so as to delete the decrypted xml file stored in the record module. Specifically, the processing flow of the method for encrypting the configurable file is shown in fig. 2. And then the recording module matches the files in the recording module according to the downloading mode and the number of the downloaded files configured in the xml file, the matching is successful, and finally the target recording file is written into the U disk. By adopting the operation, the decrypted configurable file deleting operation is started in time, so that the automatic deletion of the risk file is realized, and the safety of train communication data is ensured to the greatest extent.
The invention designs an encryption configurable file serving as an intermediate downloading tool aiming at file downloading of a recording module in the field of rail transit, an application personnel only needs to modify related parameters of the configurable file and store the encryption configurable file in a USB flash disk, and then the USB flash disk is inserted into the recording module, so that automatic matching downloading of a train recording file can be carried out without the need of the application personnel to pick up and drag the file to the USB flash disk, the flexibility and convenience of the application personnel to download the event recording device file are improved, especially, the application personnel on the train have limited operating space and carry a computer inconveniently, the encryption file is configured by the USB flash disk to actively download, in addition, the encrypted xml downloading file improves the safety of the data of the recording module, and illegal tampering of the file and acquisition of recorded data can be prevented. The embodiment of the invention provides the configurable downloading mode in step 2, thereby increasing the selectivity of the data downloading mode.
Based on the method, the target record file is found out and downloaded to the USB flash disk safely, quickly and conveniently while the data safety is ensured, so that the working efficiency of operators is improved, and in addition, the downloaded train record file can be analyzed by personnel, thereby being beneficial to the stable operation and the optimized maintenance of the train.
Example two
Based on other aspects of any one or more of the embodiments described above, the present invention also provides a system for automatically downloading a train communication data record file. Specifically, fig. 3 is a schematic structural diagram of a system for automatically downloading a train communication data record file according to an embodiment of the present invention, and referring to information in fig. 3, it can be known that the system includes:
And the download configuration determining unit 31 is configured to determine whether an encrypted configurable file containing a preset download rule exists in the accessed storage device, and if so, start the decryption unit, where the encrypted configurable file is used as a download configuration file for guiding automatic matching and downloading of the record file.
And a decryption unit 33, configured to decrypt and store the encrypted configurable file by using a preset decryption algorithm, where the preset decryption algorithm corresponds to an encryption algorithm for encrypting the configurable file.
And the parsing unit 35 is configured to parse the decrypted configurable file, and obtain a downloading rule of the target record file included in the decrypted configurable file.
The automatic matching and downloading unit 37 is configured to automatically match the target record file to be downloaded in the record module according to the obtained downloading rule, and transmit the target record file to the accessed storage device.
When in use, a user inserts a portable storage device (such as a U disk) with an encrypted configurable file (such as an encrypted xml file) into the train recording module; the recording module can immediately detect that the USB flash disk is inserted, then judges whether an encrypted configurable file containing a preset downloading rule exists in the accessed storage equipment, if so, the encrypted xml file is decrypted according to a corresponding decryption algorithm, the decrypted xml file is stored in a disk character of the recording module, and a CPU of the recording module reads and analyzes the decrypted xml file from the disk character.
In one embodiment, the system further comprises: a download configuration generating unit 30 that generates an encrypted configurable file by:
Combining the storage format parameters of the record module to which the target record file to be downloaded belongs to generate a configurable file containing preset downloading rules;
Encrypting the generated configurable file by using a preset encryption algorithm;
The encrypted configurable file is imported into a storage device for storing the desired target record file.
In one embodiment, the storage format parameters of the recording module include the following parameters:
the initial recording time of the recorded file, the full storage time of the recorded file and the corresponding serial number of the recorded file are recorded in the recording module; the full storage time of the recorded file refers to the time when the file reaches a specified size in the recording process.
In one embodiment, the downloading rule of the target record file includes a configurable file downloading mode flag, where the downloading mode flag can embody the downloading rule in the corresponding configurable file, and specifically, the automatic matching and downloading unit performs the following operations based on the downloading mode flag to implement matching of the target record file:
When the download mode mark value is a first preset mark, automatically matching the corresponding record file according to a first download parameter corresponding to the mark, wherein the first download parameter comprises: downloading a starting sequence number, a downloading sequence and a target downloading quantity;
When the download mode mark value is a second preset mark, automatically matching the corresponding record file according to a second download parameter corresponding to the mark, wherein the second download parameter comprises: a download start time and a target download duration.
In practical application, the naming method of the name of the record file in the communication record module in the track traffic field is generally as follows: starting the sequence number of the recording time_file full of the recording time_file; for example: 201903131415_201903141718_1, this example shows that the recording start time of the file is: 14 minutes at 13.3.2019, and 15 minutes at 13.13, the time for the file record to reach the specified size is: 17.18 minutes in 2019, 3, 14, this document has a ranking number of 1.
According to the embodiment of the invention, the downloading rule of the target record file is embodied by a downloading mode mark in the configurable file and comprises two downloading mode marks, wherein when the downloading mode mark value is a first preset mark, the first downloading parameter corresponding to the mark comprises: downloading a starting sequence number, a downloading sequence and a target downloading quantity; when the download mode flag value is a second set flag, the second download parameters corresponding to the flag include: a download start time and a target download duration.
In practical application, the download mode flag may be embodied by a "mode" flag in the configurable file, and when the value of "mode" is equal to 0, downloading is performed according to the serial number of the file, where the corresponding first download parameter includes: the starting sequence number of downloads, the order of downloads and the number of target downloads, when a failure occurs, will typically require downloading the latest several files, so that the latest sequence number can be recursively forward in reverse order, and in particular, in an alternative embodiment, the number of target downloads for downloading a file may be determined by the value of "count".
Correspondingly, when the value of the mode is equal to 1, a downloading rule is set according to the starting time set in the file and the time for downloading the record, and then the names of the record files are matched according to the starting time parameters. When the occurrence time of the fault is known, the target downloading time length can be set according to the requirement based on the specific time of the fault occurrence or the set time before the fault as the starting time. By adopting the downloading rule, the workload can be greatly reduced on the basis of guaranteeing the reliability.
In order to ensure the safe transmission of train communication data, taking into account that the decrypted configurable file stored in the recording module is possibly illegally acquired or tampered, a strategy of deleting the decrypted downloaded file after the downloading action is executed is adopted. Based on this, in one embodiment, the system further comprises:
and a risk file deleting unit 36, configured to determine whether the decrypted configurable file is parsed, and if yes, delete the stored decrypted configurable file.
In practical application, the record module reads and analyzes the decrypted xml file, and gives the relevant download rule parameter value to the parameter in the record module, so as to delete the decrypted xml file stored in the record module. Specifically, the processing flow of the method for encrypting the configurable file is shown in fig. 2. And then the recording module matches the files in the recording module according to the downloading mode and the number of the downloaded files configured in the xml file, the matching is successful, and finally the target recording file is written into the U disk. By adopting the operation, the decrypted configurable file deleting operation is started in time, the risk file deleting unit realizes automatic deletion of the risk file, and the safety of train communication data is ensured to the greatest extent.
In the system for automatically downloading the train communication data record file provided by the embodiment of the invention, each module or unit structure can independently operate or operate in a combined mode according to actual application requirements so as to achieve corresponding technical effects.
It is to be understood that the disclosed embodiments are not limited to the specific structures, process steps, or materials disclosed herein, but are intended to extend to equivalents of these features as would be understood by one of ordinary skill in the relevant arts. It is also to be understood that the terminology used herein is for the purpose of describing particular embodiments only, and is not intended to be limiting.
Reference in the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. Thus, the appearances of the phrase "one embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment.
Although the embodiments of the present invention are described above, the embodiments are only used for facilitating understanding of the present invention, and are not intended to limit the present invention. Any person skilled in the art can make any modification and variation in form and detail without departing from the spirit and scope of the present disclosure, but the scope of the present disclosure is still subject to the scope of the appended claims.

Claims (8)

1. A method for automatically downloading a train communication data record file, the method comprising the steps of:
Step S1, judging whether an encryption configurable file containing a preset downloading rule exists in the accessed storage equipment, and if so, executing step S2;
s2, decrypting the encrypted configurable file by using a preset decryption algorithm and storing the encrypted configurable file, wherein the preset decryption algorithm corresponds to an encryption algorithm for encrypting the configurable download file;
s3, analyzing the decrypted configurable file to obtain a downloading rule of the target record file contained in the configurable file;
Step S4, automatically matching the target record file to be downloaded in the record module according to the acquired downloading rule, and transmitting the target record file to the accessed storage equipment;
the download rule of the target record file includes a download mode flag, and in the step S4, the following operations are included:
When the download mode mark value is a first preset mark, automatically matching the corresponding record file according to a first download parameter corresponding to the mark, wherein the first download parameter comprises: downloading a starting sequence number, a downloading sequence and a target downloading quantity;
When the download mode mark value is a second preset mark, automatically matching the corresponding record file according to a second download parameter corresponding to the mark, wherein the second download parameter comprises: a download start time and a target download duration.
2. The method of claim 1, further comprising, prior to said step S1, the operations of:
Combining the storage format parameters of the record module to which the target record file to be downloaded belongs to generate a configurable file containing preset downloading rules;
Encrypting the generated configurable file by using a preset encryption algorithm;
The encrypted configurable file is imported into a storage device for storing the desired target record file.
3. The method of claim 2, wherein the storage format parameters of the recording module include the following parameters:
the initial recording time of the recorded file, the full storage time of the recorded file and the corresponding serial number of the recorded file are recorded in the recording module; the full storage time of the recorded file refers to the time when the file reaches a specified size in the recording process.
4. A method according to any one of claims 1 to 3, wherein the method further comprises: judging whether the decrypted configurable file is analyzed, if so, deleting the stored decrypted configurable file.
5. A system for automatically downloading a train communication data record file, the system comprising:
a download configuration judging unit, which is used for judging whether an encryption configurable file containing a preset download rule exists in the accessed storage equipment, and if so, starting a decryption unit;
The decryption unit is used for decrypting the encrypted configurable file by using a preset decryption algorithm and storing the encrypted configurable file, wherein the preset decryption algorithm corresponds to the encryption algorithm for encrypting the configurable file;
The analysis unit is used for analyzing the decrypted configurable file and acquiring a downloading rule of the target record file contained in the configurable file;
the automatic matching and downloading unit is used for automatically matching the target record file to be downloaded in the record module according to the acquired downloading rule and transmitting the target record file to the accessed storage equipment;
The automatic matching and downloading unit sets the downloading rule of the target record file to include a downloading mode mark, and the automatic matching and downloading unit automatically matches the target record file to be downloaded in the record module according to the downloading rule by the following operations:
When the download mode mark value is a first preset mark, automatically matching the corresponding record file according to a first download parameter corresponding to the mark, wherein the first download parameter comprises: downloading a starting sequence number, a downloading sequence and a target downloading quantity;
When the download mode mark value is a second preset mark, automatically matching the corresponding record file according to a second download parameter corresponding to the mark, wherein the second download parameter comprises: a download start time and a target download duration.
6. The system of claim 5, wherein the system further comprises: a download configuration generating unit that generates an encrypted configurable file by:
Combining the storage format parameters of the record module to which the target record file to be downloaded belongs to generate a configurable file containing preset downloading rules;
Encrypting the generated configurable file by using a preset encryption algorithm;
The encrypted configurable file is imported into a storage device for storing the desired target record file.
7. The system of claim 6, wherein the storage format parameters of the recording module include the following parameters:
the initial recording time of the recorded file, the full storage time of the recorded file and the corresponding serial number of the recorded file are recorded in the recording module; the full storage time of the recorded file refers to the time when the file reaches a specified size in the recording process.
8. The system of any one of claims 5-7, wherein the system further comprises:
And the risk file deleting unit is used for judging whether the decrypted configurable file is analyzed, and if yes, deleting the stored decrypted configurable file.
CN202010499232.1A 2020-06-04 2020-06-04 Method and system for automatically downloading train communication data record file Active CN113761546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010499232.1A CN113761546B (en) 2020-06-04 2020-06-04 Method and system for automatically downloading train communication data record file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010499232.1A CN113761546B (en) 2020-06-04 2020-06-04 Method and system for automatically downloading train communication data record file

Publications (2)

Publication Number Publication Date
CN113761546A CN113761546A (en) 2021-12-07
CN113761546B true CN113761546B (en) 2024-05-14

Family

ID=78783559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010499232.1A Active CN113761546B (en) 2020-06-04 2020-06-04 Method and system for automatically downloading train communication data record file

Country Status (1)

Country Link
CN (1) CN113761546B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198261A (en) * 2012-01-09 2013-07-10 鸿富锦精密工业(深圳)有限公司 Method and system for protecting file content security
WO2015184834A1 (en) * 2014-12-18 2015-12-10 中兴通讯股份有限公司 Encryption/decryption method and device for file of embedded type storage device, and terminal
CN105302606A (en) * 2015-11-03 2016-02-03 用友网络科技股份有限公司 Project permission based patch downloading method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070250515A1 (en) * 2006-04-21 2007-10-25 Lea David H Method and system of securing content and destination of digital download via the internet

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198261A (en) * 2012-01-09 2013-07-10 鸿富锦精密工业(深圳)有限公司 Method and system for protecting file content security
WO2015184834A1 (en) * 2014-12-18 2015-12-10 中兴通讯股份有限公司 Encryption/decryption method and device for file of embedded type storage device, and terminal
CN105302606A (en) * 2015-11-03 2016-02-03 用友网络科技股份有限公司 Project permission based patch downloading method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网银数据下载加密组件的工作原理;付欣;付帅;;电子商务(07);全文 *

Also Published As

Publication number Publication date
CN113761546A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN108900511B (en) File encryption and decryption method, device and equipment
CN110008757B (en) Data protection method and system in updating of terminal firmware of Internet of things
CN113378236B (en) Evidence data online security notarization platform and security method
CN108133008B (en) Method, device, equipment and storage medium for processing service data in database
CN107528865A (en) The method for down loading and system of file
CN110245515B (en) Protection method and system for HDFS (Hadoop distributed File System) access mode
CN104966023A (en) Data protection system, method and apparatus
CN110334531A (en) Management method, host node, system, storage medium and the device of virtual machine key
CN112291071A (en) Password management method and system suitable for zero trust network
CN113761546B (en) Method and system for automatically downloading train communication data record file
CN111711671B (en) Cloud storage method for updating efficient ciphertext file based on blind storage
CN115238320B (en) Power data storage management method
CN115225392B (en) Safety protection system for smart library
CN116069729A (en) Intelligent document packaging method, system and medium
CN109284836A (en) Shared vehicle maintenance management method and device
CN115347675A (en) Smart power grid data secure access method and system
CN112926050B (en) Method for obtaining SSH encrypted content based on HOOK technology and application thereof
CN109951735A (en) A kind of video playing address resolution acquisition methods, system and medium
CN103034815A (en) Detection method and device for portable document format (PDF) file
CN106339301A (en) Method for acquiring operation log of TPM (Trusted Platform Module)
CN113783887B (en) Remote control method, system and storage medium based on network communication
CN117112956B (en) Remote control method and system for browser
CN117668920B (en) Secure access method, system, equipment and medium based on internal energy storage system
CN117135621A (en) Vehicle control method and device
CN113268517B (en) Data analysis method and device, electronic equipment and readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant