CN110928556A - Automatic program burning method and device for railway vehicle, and testing method and system - Google Patents

Automatic program burning method and device for railway vehicle, and testing method and system Download PDF

Info

Publication number
CN110928556A
CN110928556A CN201811093610.5A CN201811093610A CN110928556A CN 110928556 A CN110928556 A CN 110928556A CN 201811093610 A CN201811093610 A CN 201811093610A CN 110928556 A CN110928556 A CN 110928556A
Authority
CN
China
Prior art keywords
program
burning
file
burned
information
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
Application number
CN201811093610.5A
Other languages
Chinese (zh)
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.)
Zhuzhou CRRC Times Electric Co Ltd
Original Assignee
Zhuzhou CRRC Times Electric 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 Zhuzhou CRRC Times Electric Co Ltd filed Critical Zhuzhou CRRC Times Electric Co Ltd
Priority to CN201811093610.5A priority Critical patent/CN110928556A/en
Publication of CN110928556A publication Critical patent/CN110928556A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for automatically burning a program for a railway vehicle, a test method and a test system, wherein the method comprises the following steps: s1, embedding a burning program module at a specified position, and respectively configuring corresponding program codes for each program file to be burned; s2, respectively obtaining configuration information of each program file to be burned to generate a configuration file; and S3, when the program file is required to be burned, reading the configuration file, acquiring the configuration information of each program file required to be burned from the configuration file, searching each program file according to the program code and the program storage path in the acquired configuration information, extracting to the appointed position to complete the calling of the program file, and burning each called program file by using the burning program module. The invention can realize the automatic calling and burning of the online program and has the advantages of simple realization method, high execution efficiency and automation degree, no need of extra hardware overhead and the like.

Description

Automatic program burning method and device for railway vehicle, and testing method and system
Technical Field
The invention relates to the technical field of rail vehicle product testing, in particular to a rail vehicle program automatic burning method and device, a rail vehicle program automatic burning testing method and a rail vehicle program automatic burning testing system suitable for rail transit vehicle products.
Background
In the development process of rail vehicles such as railway locomotives, various products (chips, network ports and the like) in the vehicles need to be tested, and the rail vehicles comprise a plurality of products such as chips, network ports and the like, so that a large amount of product program tests need to be executed. For program software testing, currently, special programmers and programming development software are usually adopted for implementation, for example, a LA-3500 programmer of Lauterbach company is adopted, a programming cable and a traue 32 development software are cooperatively used, wherein License is integrated in the programming cable, but by adopting the testing method, the programmers and different programming cables are configured according to models of chips, automatic burning cannot be implemented on the basis of existing hardware, special programming development software is required, and meanwhile, customized development is required to be performed by depending on the special programmers for realizing automatic burning, so that the hardware and software costs required in the testing process can be increased. The rail vehicle products have the characteristics of small batch, multiple varieties and the like, and in order to realize the test of the rail vehicle products, the test method adopting the new hardware and the customized development needs to consume a large amount of test cost and workload, so that the test cost is high and the test efficiency is low.
In the testing process of the product, a large amount of testing time is required for program burning, if the product is required to be burned before the product is tested, the product testing program is required to be burned, and after the product is tested, the product delivery program is required to be burned, namely, the program calling and burning are the key for realizing the high-efficiency rail vehicle product testing. For program burning in the product testing process, at present, an off-line manual burning mode is generally adopted, namely, a program file required to be burnt is manually searched from a storage server and then copied into a testing module, and the burning program is manually controlled and started to be burnt. If the automatic program burning can be realized in the testing process, the testing efficiency can be effectively improved, and the testing automation level is improved, but the existing automatic program burning is off-line program burning aiming at a chip level, namely, the program burning can be carried out only aiming at a chip level device which is not welded on a circuit board in an off-line mode, a rail vehicle product comprises a plurality of chips and other components, and the program burning mode can not be directly applicable to the board level type testing of the rail vehicle product.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: aiming at the technical problems in the prior art, the invention provides the automatic program burning method and device for the rail vehicle test, the test method and system, and the automatic program burning device and device for the rail vehicle test, which can realize the automatic calling and burning of the online program, have high execution efficiency and automation degree and do not need extra hardware overhead.
In order to solve the technical problems, the technical scheme provided by the invention is as follows:
an automatic program burning method for a railway vehicle comprises the following steps:
s1, pre-configuration: embedding a burning program module for burning program files at a designated position, and respectively configuring corresponding program codes for each program file to be burned;
s2, generating a configuration file: respectively acquiring configuration information of each program file to be burned to generate a configuration file, wherein the configuration information comprises a program code and a program storage path;
s3, automatic calling and burning: when program files need to be burned, reading the configuration files, obtaining configuration information of each program file needing to be burned from the configuration files, searching each program file according to the obtained program codes and program storage paths in the configuration information, extracting the program files to the appointed position to complete program file calling, and burning each called program file by using the burning program module.
As a further improvement of the automatic burning method of the invention: the configuration information further includes expected check code information corresponding to each of the program files, and is used for verifying each of the program files.
As a further improvement of the automatic burning method of the invention: when the program is called in step S3, the method further includes a step of verifying whether the called program file is correct, and the specific steps are as follows: and acquiring the check code information of the called target program file, comparing the check code information with the preset check code information in the configuration file, and determining whether the program calling is correct according to the comparison result.
As a further improvement of the automatic burning method of the invention: after each program file is burned in the step S3, the method further includes a step of verifying the burned program file, and the specific steps are as follows: and reading the check code information of the burned target program, comparing the read check code information with the preset check code information in the configuration file, and determining whether the check is passed or not according to the comparison result.
As a further improvement of the automatic burning method of the invention: the check code information is a Checksum value.
As a further improvement of the automatic burning method of the invention: the configuration information also comprises a storage path which is used for storing the information when the program file is burnt.
As a further improvement of the automatic burning method of the invention: the method includes the steps that a recording table used for recording information of program files during burning is pre-constructed, the storage path in the configuration information is the position in the recording table, and after each program file is burned in the step S3, the information of burning of each program file is recorded in the corresponding position of the recording table according to the configuration information.
The invention further provides a test method for the rail vehicle, which comprises the following steps:
acquiring a product test sequence file corresponding to a product to be tested;
and testing the product to be tested according to the product test sequence file, wherein when the program file is required to be burned, the program is automatically burned by using the method.
As a further improvement of the test method of the invention: when the program is automatically burned, after the target program file is called and before the target program file is burned, the method also comprises a test state confirmation step, and the specific steps are as follows: when the product is of a chip type, acquiring the communication state of a simulator corresponding to the chip to be tested so as to confirm the communication state of the simulator; and when the product is of the network port type, acquiring the communication state of the network port to be detected so as to confirm the communication state of the network port to be detected.
As a further improvement of the test method of the invention: when the product is of a chip type, the configuration information further comprises chip type information, when the program is automatically burned, after the target program file is called and before the target program file is burned, the method further comprises a chip type confirmation step, and the specific steps are as follows: and acquiring the type information of the chip to be tested, and comparing the type information with the type information of the chip in the configuration information to determine whether the chip mounted on the product is correct.
As a further improvement of the test of the present invention: when the product is of a chip type, the automatic program burning comprises the following steps: and carrying out chip erasing operation on the chip to be tested, and burning each called program file by using the burning program module after the calling of the target program file is completed.
The invention further provides a program automatic burning device for a railway vehicle, which comprises:
the pre-configuration module is used for embedding a burning program module for burning program files at a specified position and respectively configuring corresponding program codes for each program file to be burned;
the device comprises a configuration file generation module, a program storage path generation module and a program recording module, wherein the configuration file generation module is used for respectively acquiring configuration information of each program file to be burned to generate a configuration file, and the configuration information comprises a program code and a program storage path;
the automatic calling burning module is used for reading the configuration files when program files are required to be burned, obtaining the configuration information of each program file required to be burned from the configuration files, finding each program file according to the obtained program codes and the program storage paths in the configuration information, extracting the program files to the appointed position to complete program calling, and burning each called program file by using the burning program module.
As a further improvement of the device of the invention: the automatic calling burning module also comprises a verification unit for verifying whether the called program file is correct or not and/or a verification unit for verifying the burned program file.
The present invention further provides a test system for a rail vehicle, comprising:
the acquisition module is used for acquiring a product test sequence file corresponding to a product to be tested;
and testing the product to be tested according to the product test sequence file, wherein when the program file is required to be burned, the device is used for automatically burning the program.
The system further comprises a test state display module which is used for displaying the state of each required test information when the product to be tested is tested.
Compared with the prior art, the invention has the advantages that:
1. according to the method, the program module is embedded in advance, the corresponding program codes are configured for the program files, after the configuration files are generated according to the configuration information of the program files, when the program files are required to be burnt, the program files can be automatically positioned according to the program codes in the configuration information and the program storage path by reading the configuration files, automatic calling of the program files is achieved, the burning program module is called to burn the called program files, automatic calling and automatic burning of the programs can be achieved, manual participation is not needed in the whole burning process, extra hardware overhead is not needed, the automation degree and the execution efficiency are high, and misoperation is not prone to occur.
2. According to the invention, the program module of the program automatic burning method is integrated into the product test sequence, so that the product automatic test integrating the online program burning and the product function test is realized, manual intervention is not required in the whole test process of the product, the test automation degree can be improved, the test efficiency can be effectively improved, and the product quality is improved and ensured.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of the automatic program burning method for a railway vehicle according to the embodiment.
Fig. 2 is a schematic diagram illustrating the implementation principle of the program call in the embodiment of the present invention.
Fig. 3 is a schematic diagram of an implementation principle of a first sub-module in a specific application embodiment of the present invention.
Fig. 4 is a schematic flow chart of the implementation of the test of the chip product in the embodiment of the present invention.
Fig. 5 is a schematic flow chart of the implementation of the test of the internet access product in the embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the drawings and specific preferred embodiments of the description, without thereby limiting the scope of protection of the invention.
Example 1:
as shown in fig. 1, the automatic program burning method for a railway vehicle of the present embodiment includes the steps of:
s1, pre-configuration: embedding a burning program module for burning program files at a designated position, and respectively configuring corresponding program codes for each program file to be burned;
s2, generating a configuration file: respectively acquiring configuration information of each program file to be burned to generate a configuration file, wherein the configuration information comprises a program code and a program storage path;
s3, automatic calling and burning: when the program file is required to be burned, reading the configuration file, acquiring the configuration information of each program file required to be burned from the configuration file, searching each program file according to the program code and the program storage path in the acquired configuration information, extracting to the appointed position to complete the program file calling, and burning each called program file by using the burning program module.
In the embodiment, by embedding the burning program module in advance and configuring the corresponding program code for each program file, after the configuration file is generated by the configuration information of each program file, when the program file needs to be burned, by reading the configuration file, automatically positioning each program file according to the program code and program storage path in the configuration information to realize automatic calling of the program files, calling the burning program module to burn each called program file, the board-level online program automatic calling and automatic burning can be realized, the whole burning process does not need manual participation, does not need to increase additional hardware expenses such as a programmer, a programming cable and the like, has high automation degree and execution efficiency, is not easy to generate misoperation, therefore, the method can be suitable for high-efficiency automatic program burning in the test of large-batch products or small-batch multi-variety characteristics of the rail vehicles.
The method can be directly realized in the existing software development environment, an additional software development environment is not needed, and the automatic program calling and burning functions are realized through software program configuration.
In this embodiment, program files to be burned are stored in a program storage server in advance, each program file corresponds to a unique program code, and a unique program file path can be generated based on the program code and a storage path of the program in the server, so that the program code and the program storage path can be positioned to each required program file, and the latest program object code can be automatically obtained from the program storage server.
In this embodiment, the configuration information further includes expected check code information corresponding to each program file, and is used to verify each program file, that is, when the program file is burned, whether each program file is correct can be verified by reading the expected check code information in the configuration file, so as to ensure accuracy of program burning.
In this embodiment, specifically, when the program is called in step S3, the method further includes a step of verifying whether the called program file is correct, so as to ensure that the program file is correctly called, and the specific steps are as follows: and acquiring the check code information of the called target program file, comparing the check code information with the preset check code information in the configuration file, and determining whether the program calling is correct according to the comparison result, wherein when the acquired check code information of the target program file is consistent with the preset check code information in the configuration file, the program calling is determined to be correct, otherwise, the program calling is determined to be incorrect. Further, when the program call is judged to be incorrect, a call error prompt message is configured to be sent to prompt a call error.
In this embodiment, after the burning of each program file in step S3, the method further includes a step of verifying the burned program file to ensure correct burning of the program, and the specific steps are as follows: and reading the check code information of the burned target program, comparing the check code information with preset check code information in the configuration file, and determining whether the check passes according to the comparison result, wherein when the acquired check code information of the target burning program is consistent with the preset check code information in the configuration file, the program is judged to be correctly called, and otherwise, the program is judged to be incorrect. Furthermore, when the program is judged to be burnt incorrectly, the method can be configured to send out the burning error prompt information to prompt the burning error.
In a specific application embodiment, the check code information adopts a Checksum value, that is, expected Checksum values corresponding to various program files are stored in a configuration file at first, when the program is called in step S3, the Checksum value of the called target program file is obtained and compared with the expected Checksum value, if the Checksum values are consistent, the program is judged to be called correctly, otherwise, the program is judged to be incorrect, and calling error prompt information is sent; after each program file is burned, reading the Checksum value of the burned target program, comparing the Checksum value with an expected Checksum value, if the program is always burned correctly, judging the program to be burned incorrectly, and sending a burning error prompt message.
The configuration information of this embodiment further includes a storage path for specifying information to be stored when the program file is burned, and after the program is burned, the information during burning is stored based on the storage path, and the information during burning of the program can be subsequently and conveniently acquired based on the storage path.
In this embodiment, a recording table for recording information of the program file during burning is specifically pre-constructed, the program burning information can be quickly obtained by querying the recording table, the storage path in the configuration information is the position of the information of the program file during burning in the recording table, and after the program files are burned in step S3, the information of burning the program files is recorded in the corresponding positions of the recording table according to the configuration information.
The configuration information can be specifically acquired from the test sequence file, can be configured according to different product requirements when the test sequence file is created, and can be directly called when the test sequence file is used subsequently, wherein the configuration information can comprise the information, can also comprise related necessary information required by program burning, and can be specifically set according to actual requirements.
As shown in fig. 2, in the specific application embodiment, the extraction and calling of the program file are implemented by using LabVIEW, and the software to be burned is extracted from the software library, as shown in fig. 2, the software to be burned includes a first sub-module for searching a target code address corresponding to the software, a second sub-module for automatically copying the software, and a third sub-module for extracting software information, which are connected in sequence, an input end of the first sub-module is connected to a path of the software library and a program code, output information includes a program version, a program target code address, and all program file paths copied to the local (i.e. paths of the program file actually to be burned) and the like is provided to the second sub-module, after the program file copying is completed, the output information is output to the third sub-module for software information extraction, and the program calling information obtained by the second sub-module and the burning information of the third sub-module are, so as to carry out retrospective management.
In a specific application embodiment, the detailed process of automatically burning the program by adopting the method of the invention comprises the following steps:
①, to begin;
② obtaining configuration information required by program burning, namely obtaining the configuration information required by program burning from the test sequence file, wherein the configuration information comprises program codes, program storage paths, expected Checksum values, program burning information recording table paths and the like;
③ program automatic call, according to the acquired program code and other configuration information, find the corresponding program file in the program storage server and automatically copy it to the designated location (such as local computer);
④ verifying before burning program, automatically acquiring Checksum value of called program file, and comparing with expected Checksum value to confirm correct program calling, if not, sending error message;
⑤ program automatic burning, which realizes the automatic burning of the program in the background through the background instruction;
⑥ program burning and checking, wherein the burning is finished and then automatic checking is carried out again, a Checksum value is obtained from the burning program, and the Checksum value is compared with an expected Checksum value and if the Checksum value is consistent with the expected Checksum value, the checking is passed;
⑦ recording the program calling and burning information, recording the program calling information and burning information in the form of electronic file for tracing management;
⑧ end.
The present embodiment further provides an automatic program burning device for rail vehicle testing, including:
the pre-configuration module is used for embedding a burning program module for burning program files at a specified position and respectively configuring corresponding program codes for each program file to be burned;
the configuration file generation module is used for respectively acquiring configuration information of each program file to be burned to generate a configuration file, and the configuration information comprises program codes and program storage paths;
and the automatic calling burning module is used for reading the configuration files when the program files are required to be burned, acquiring the configuration information of each program file required to be burned from the configuration files, searching each program file according to the program codes and the program storage paths in the acquired configuration information, extracting to the appointed position to complete program calling, and burning each called program file by using the burning program module.
In this embodiment, the automatic calling burning module further includes a verification unit for verifying whether the called program file is correct, where the verification unit obtains the check code information of the called target program file, compares the check code information with the preset check code information in the configuration file, and determines whether the program calling is correct according to the comparison result, where when the obtained check code information of the target program file is consistent with the preset check code information in the configuration file, the program calling is determined to be correct, and otherwise, the program calling is determined to be incorrect.
In this embodiment, the automatic calling burning module further includes a verification unit for verifying the burned program file, and the verification unit includes: and reading the check code information of the burned target program, comparing the check code information with preset check code information in the configuration file, and determining whether the check passes according to the comparison result, wherein when the acquired check code information of the target burning program is consistent with the preset check code information in the configuration file, the program is judged to be correctly called, and otherwise, the program is judged to be incorrect.
The automatic programming device for the rail vehicle testing program in this embodiment corresponds to the automatic programming method for the rail vehicle testing program one by one, and is not described herein again.
Example 2:
the testing method for the railway vehicle comprises the following steps:
acquiring a product test sequence file corresponding to a product to be tested;
and testing the product to be tested according to the product test sequence file, wherein when the program file needs to be burnt, the method in the embodiment 1 is used for automatically burning the program.
In this embodiment, the automatic program burning method in embodiment 1 is applied to product testing, so as to achieve automatic testing of products, and achieve automatic product testing in which online program burning and product function testing are integrated, and there is no need for manual intervention in the whole testing process of products, so that the automatic program of testing is improved, the testing efficiency can be effectively improved, and the product quality is improved and ensured.
In this embodiment, a program module for implementing the automatic program recording method in embodiment 1 is integrated into a product test sequence, so that the automatic program calling and automatic program recording are embedded into the whole automatic test flow, and online automatic program calling and recording can be implemented, thereby implementing automatic test of a product.
When the program is automatically burned, after the target program file is called and before the target program file is burned, the method further comprises a test state confirmation step for confirming the executable test, and the specific steps are as follows: and when the product is of a chip type, acquiring the communication state of the simulator corresponding to the chip to be tested so as to confirm the communication state of the simulator.
In this embodiment, when the product is a chip type, the configuration information further includes chip type information, and when the program is automatically burned, after the target program file is called and before the target program file is burned, the method further includes a chip type confirmation step, which includes the specific steps of: and acquiring the type information of the chip to be tested, and comparing the type information with the type information of the chip in the configuration information to determine whether the chip mounted on the product is correct or not. The type information of the chip in this embodiment is specifically chip ID information, that is, an ID of a chip to be tested is configured in configuration information, after the target program file is called and before the target program file is burned, the ID of the chip to be tested is obtained and compared with the ID of the chip in the configuration information, if the ID is consistent, it is determined that the installed chip is correct, otherwise, it is determined that the installation is wrong, and an error prompt message is sent.
In this embodiment, when the product is a chip type, the automatically programming the program includes: and carrying out chip erasing operation on the chip to be tested, and burning the called program files by using the burning program module after the target program file is called.
As shown in fig. 3, in the specific application embodiment, the test flow for implementing the type chips such as CPLD, FPGA, and the like is as follows:
① start test sequence management software, such as special test sequence management software Teststand, etc.;
② authorizing account login test sequence management software, setting authority management, only allowing login using authorized account;
③ scanning the serial number/batch number of the product to automatically call the corresponding test sequence file, wherein the serial number/batch number of the product contains the related information such as the product drawing number, and the corresponding test sequence file of the product is automatically called by scanning the serial number of the product;
④ selecting test mode, selecting test mode according to requirement, such as single test, batch test or single step test;
⑤, starting the test, selecting the test mode, and starting the automatic test according to the selected test mode;
⑥ program is automatically called and burned, when the product test program needs to be burned before the product starts to be tested and the product delivery program needs to be burned after the product test is completed, the program burning is automatically executed by using the method in embodiment 1.
⑦ automatic function test of product, wherein the automatic function test of product is started after online program burning is completed, and seamless connection between program burning and function test is realized;
⑧ finish the test.
As shown in fig. 4, the automatic program burning process of the CPLD, FPGA, and other chips in this embodiment specifically includes:
①, to begin;
② obtaining configuration information required by program burning, namely obtaining configuration information required by program burning from the test sequence file, wherein the configuration information comprises a program code, a chip ID, a program storage path, an expected Checksum value, a program burning information recording table path and the like;
③ program automatic call, according to the acquired program code and other configuration information, find the corresponding program file in the program storage server and automatically copy it to the designated location (such as local computer);
④ confirming the state before program recording, wherein before program automatic recording, a series of confirmation information including simulator communication state, chip type, Checksum value confirmation, etc. needs to be completed;
⑤ program automatic burning, which realizes the automatic burning of the program in the background through the background instruction;
⑥ program burning and checking, wherein the burning is finished and then automatic checking is carried out again, a Checksum value is obtained from the burning program, and the Checksum value is compared with an expected Checksum value and if the Checksum value is consistent with the expected Checksum value, the checking is passed;
⑦ recording the program calling and burning information, recording the program calling information and burning information in the form of electronic file for tracing management;
⑧ end.
In this embodiment, the operations of the programmer connection state confirmation, the chip ID confirmation, the chip erasing, the program file loading and verification confirmation, the program automatic burning, the program burning verification and the error check are automatically executed in the background without manual intervention, and the configuration is such that each step of operation feeds back the corresponding state, if one step of operation has an error, the whole program burning execution result is failed, otherwise, the whole program burning execution result is passed.
The embodiment specifically displays the test state of each piece of test information in the test process so as to facilitate observation, and specifically can adopt different colors to identify different test states, such as bright green when passing through and dark cyan when not passing through.
The present embodiment further provides a test system for a rail vehicle, comprising:
the acquisition module is used for acquiring a product test sequence file corresponding to a product to be tested;
and testing the product to be tested according to the product test sequence file, wherein when the program file is required to be burned, the device is used for automatically burning the program.
In this embodiment, the test device further includes a test state display module, configured to display states of required test information when testing a product to be tested, and identify different test states with different colors.
The test system for the rail vehicle in this embodiment corresponds to the test method for the rail vehicle one to one, and details are not repeated herein.
Example 3:
the embodiment is basically the same as the embodiment 2, except that when the product is of the internet access type, after the target program file is called and before the target program file is burned, the test state confirmation step specifically obtains the communication state of the internet access to be tested so as to confirm the communication state of the internet access to be tested.
As shown in fig. 5, in the specific application embodiment, the flow of implementing automatic calling and automatic burning of programs of the types such as the internet access is as follows:
①, to begin;
② obtaining program burning configuration information, namely obtaining configuration information required by program burning from the test sequence file, including program codes and the like, wherein the configuration information needs to be configured according to different product requirements when the automatic test sequence file is created, and is directly called when the automatic test sequence file is used subsequently;
③ program call, finding out corresponding program file in the program storage server according to the obtained configuration information such as program code, and automatically copying it to a designated location (such as local computer);
④ communication confirmation, wherein before the program automatic burning starts, whether the communication is normal or not needs to be confirmed, and the program burning can be carried out only under the condition of normal communication;
⑤, automatically burning the background executive program, namely, automatically burning the application software by using other programming software (such as LabVIEW, C and the like) development programs and calling the developed burning program module in the test sequence management software to realize the automatic burning of the program in the background;
⑥ verifying after burning program, performing another verification, such as verifying the size of the burned file;
⑦ recording the program calling and burning information, recording the program calling information and burning information in the form of electronic file for tracing management;
⑧ end.
The foregoing is considered as illustrative of the preferred embodiments of the invention and is not to be construed as limiting the invention in any way. Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical spirit of the present invention should fall within the protection scope of the technical scheme of the present invention, unless the technical spirit of the present invention departs from the content of the technical scheme of the present invention.

Claims (15)

1. An automatic program burning method for a railway vehicle is characterized by comprising the following steps:
s1, pre-configuration: embedding a burning program module for burning program files at a designated position, and respectively configuring corresponding program codes for each program file to be burned;
s2, generating a configuration file: respectively acquiring configuration information of each program file to be burned to generate a configuration file, wherein the configuration information comprises a program code and a program storage path;
s3, automatic calling and burning: when program files need to be burned, reading the configuration files, obtaining configuration information of each program file needing to be burned from the configuration files, searching each program file according to the obtained program codes and program storage paths in the configuration information, extracting the program files to the appointed position to complete program file calling, and burning each called program file by using the burning program module.
2. The automatic program burning method for the rail vehicle as claimed in claim 1, wherein: the configuration information further includes expected check code information corresponding to each of the program files, and is used for verifying each of the program files.
3. The automatic program burning method for the rail vehicle as claimed in claim 2, wherein the step of verifying whether the called program file is correct when the program is called in the step S3 further comprises the specific steps of: and acquiring the check code information of the called target program file, comparing the check code information with the preset check code information in the configuration file, and determining whether the program calling is correct according to the comparison result.
4. The automatic program burning method for railway vehicles as claimed in claim 2, wherein after each program file is burned in step S3, the method further comprises the step of verifying the burned program files, and the specific steps are as follows: and reading the check code information of the burned target program, comparing the read check code information with the preset check code information in the configuration file, and determining whether the check is passed or not according to the comparison result.
5. The automatic programming method for rail vehicles according to claim 3 or 4, characterized in that: the check code information is a Checksum value.
6. The automatic program burning method for the rail vehicle according to any one of claims 1 to 4, characterized in that: the configuration information also comprises a storage path which is used for storing the information when the program file is burnt.
7. The automatic program burning method for rail vehicles as claimed in claim 6, wherein a recording table for recording information of burning program files is pre-constructed, the storage path in the configuration information is a position in the recording table, and after each program file is burned in step S3, the information of burning each program file is recorded in the corresponding position of the recording table according to the configuration information.
8. A method of testing a rail vehicle, comprising the steps of:
acquiring a product test sequence file corresponding to a product to be tested;
testing a product to be tested according to the product test sequence file, wherein when program file burning is needed, program automatic burning is carried out by using the method of any one of claims 1-7.
9. The method according to claim 8, wherein when the program is automatically programmed, after the target program file is called and before the target program file is programmed, the method further comprises a test status confirmation step, and the method comprises the following specific steps: when the product is of a chip type, acquiring the communication state of a simulator corresponding to the chip to be tested so as to confirm the communication state of the simulator; and when the product is of the network port type, acquiring the communication state of the network port to be detected so as to confirm the communication state of the network port to be detected.
10. The test method for a rail vehicle according to claim 8 or 9, characterized in that: when the product is of a chip type, the configuration information further comprises chip type information, when the program is automatically burned, after the target program file is called and before the target program file is burned, the method further comprises a chip type confirmation step, and the specific steps are as follows: and acquiring the type information of the chip to be tested, and comparing the type information with the type information of the chip in the configuration information to determine whether the chip mounted on the product is correct.
11. The test method for a rail vehicle according to claim 8 or 9, characterized in that: when the product is of a chip type, the automatic program burning comprises the following steps: and carrying out chip erasing operation on the chip to be tested, and burning each called program file by using the burning program module after the calling of the target program file is completed.
12. A program automatic burning device for a railway vehicle is characterized by comprising:
the pre-configuration module is used for embedding a burning program module for burning program files at a specified position and respectively configuring corresponding program codes for each program file to be burned;
the device comprises a configuration file generation module, a program storage path generation module and a program recording module, wherein the configuration file generation module is used for respectively acquiring configuration information of each program file to be burned to generate a configuration file, and the configuration information comprises a program code and a program storage path;
the automatic calling burning module is used for reading the configuration files when program files are required to be burned, obtaining the configuration information of each program file required to be burned from the configuration files, finding each program file according to the obtained program codes and the program storage paths in the configuration information, extracting the program files to the appointed position to complete program calling, and burning each called program file by using the burning program module.
13. The automatic programming device for rail vehicles according to claim 12, wherein: the automatic calling burning module also comprises a verification unit for verifying whether the called program file is correct or not and/or a verification unit for verifying the burned program file.
14. A test system for a rail vehicle, comprising
The acquisition module is used for acquiring a product test sequence file corresponding to a product to be tested;
testing a product to be tested according to the product test sequence file, wherein when program file burning is required, the device of claim 12 or 13 is used for automatic program burning.
15. The rail vehicle test system of claim 14, wherein: the device also comprises a test state display module which is used for displaying the state of each required test information when the product to be tested is tested.
CN201811093610.5A 2018-09-19 2018-09-19 Automatic program burning method and device for railway vehicle, and testing method and system Pending CN110928556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811093610.5A CN110928556A (en) 2018-09-19 2018-09-19 Automatic program burning method and device for railway vehicle, and testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811093610.5A CN110928556A (en) 2018-09-19 2018-09-19 Automatic program burning method and device for railway vehicle, and testing method and system

Publications (1)

Publication Number Publication Date
CN110928556A true CN110928556A (en) 2020-03-27

Family

ID=69855164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811093610.5A Pending CN110928556A (en) 2018-09-19 2018-09-19 Automatic program burning method and device for railway vehicle, and testing method and system

Country Status (1)

Country Link
CN (1) CN110928556A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112130873A (en) * 2020-10-10 2020-12-25 佛吉亚歌乐电子(佛山)有限公司 Embedded development debugging analysis method, system and storage medium
CN113778469A (en) * 2021-09-10 2021-12-10 深圳市华宇福保半导体有限公司 Chip burning pipeline code management system method and system
CN115529295A (en) * 2021-06-24 2022-12-27 株洲中车时代电气股份有限公司 MAC address automatic programming method and system based on MES management
CN116360810A (en) * 2023-06-01 2023-06-30 无锡中微爱芯电子有限公司 Rolling code burning method for programmable integrated circuit element
CN117665545A (en) * 2024-02-01 2024-03-08 广州市大枣信息科技有限公司 Burn-in test device, system and method
CN115079601B (en) * 2022-06-10 2024-05-10 宁波奥克斯电气股份有限公司 Control method, controller and household appliance for displaying program information and production information

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168808A1 (en) * 2001-09-28 2007-07-19 Inapac Technology, Inc. Integrated circuit testing module including data compression
US7480789B1 (en) * 2004-03-29 2009-01-20 Xilinx, Inc. Virtual file system interface to configuration data of a PLD
CN101470410A (en) * 2007-12-26 2009-07-01 比亚迪股份有限公司 Burning apparatus and method for control chip
CN103838585A (en) * 2012-11-20 2014-06-04 广州市暨华医疗器械有限公司 Method for achieving automatic recording of ARM9 embedded system based on SD card
CN106708552A (en) * 2015-11-18 2017-05-24 研祥智能科技股份有限公司 Programming method, apparatus and system for digital power supply
CN107291509A (en) * 2017-06-29 2017-10-24 惠州高盛达科技有限公司 A kind of code method for burn-recording and cd-rom recorder applied to T CON plates
CN107783873A (en) * 2017-11-23 2018-03-09 芯海科技(深圳)股份有限公司 A kind of implementation method of cd-rom recorder automatic test platform
CN108170447A (en) * 2017-12-08 2018-06-15 摩比天线技术(深圳)有限公司 The on-line automatic method for burn-recording of chip and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168808A1 (en) * 2001-09-28 2007-07-19 Inapac Technology, Inc. Integrated circuit testing module including data compression
US7480789B1 (en) * 2004-03-29 2009-01-20 Xilinx, Inc. Virtual file system interface to configuration data of a PLD
CN101470410A (en) * 2007-12-26 2009-07-01 比亚迪股份有限公司 Burning apparatus and method for control chip
CN103838585A (en) * 2012-11-20 2014-06-04 广州市暨华医疗器械有限公司 Method for achieving automatic recording of ARM9 embedded system based on SD card
CN106708552A (en) * 2015-11-18 2017-05-24 研祥智能科技股份有限公司 Programming method, apparatus and system for digital power supply
CN107291509A (en) * 2017-06-29 2017-10-24 惠州高盛达科技有限公司 A kind of code method for burn-recording and cd-rom recorder applied to T CON plates
CN107783873A (en) * 2017-11-23 2018-03-09 芯海科技(深圳)股份有限公司 A kind of implementation method of cd-rom recorder automatic test platform
CN108170447A (en) * 2017-12-08 2018-06-15 摩比天线技术(深圳)有限公司 The on-line automatic method for burn-recording of chip and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112130873A (en) * 2020-10-10 2020-12-25 佛吉亚歌乐电子(佛山)有限公司 Embedded development debugging analysis method, system and storage medium
CN115529295A (en) * 2021-06-24 2022-12-27 株洲中车时代电气股份有限公司 MAC address automatic programming method and system based on MES management
CN113778469A (en) * 2021-09-10 2021-12-10 深圳市华宇福保半导体有限公司 Chip burning pipeline code management system method and system
CN113778469B (en) * 2021-09-10 2024-04-02 深圳市华宇福保半导体有限公司 Chip burning stream code management system method and system
CN115079601B (en) * 2022-06-10 2024-05-10 宁波奥克斯电气股份有限公司 Control method, controller and household appliance for displaying program information and production information
CN116360810A (en) * 2023-06-01 2023-06-30 无锡中微爱芯电子有限公司 Rolling code burning method for programmable integrated circuit element
CN117665545A (en) * 2024-02-01 2024-03-08 广州市大枣信息科技有限公司 Burn-in test device, system and method
CN117665545B (en) * 2024-02-01 2024-05-24 广州市大枣信息科技有限公司 Burn-in test device, system and method

Similar Documents

Publication Publication Date Title
CN110928556A (en) Automatic program burning method and device for railway vehicle, and testing method and system
CN110888414B (en) Test method for upgrading vehicle controller
CN106330618A (en) Gateway routing automatic test system and test method based on CAN/LIN/MOST hybrid buses
CN109933521A (en) Automated testing method, device, computer equipment and storage medium based on BDD
JP2014203314A (en) ECU simulation device
CN107329889B (en) Method for automatically testing C compiler
WO2019134113A1 (en) Automated test method and system
CN114117973A (en) Logic synthesis method, device and storage medium
CN112068530A (en) ECU (electronic control Unit) automatic testing method, system, storage medium and device
CN112181854A (en) Method, device, equipment and storage medium for generating flow automation script
CN110119348B (en) Software upgrading test method and terminal
CN115269384A (en) Integration test method, system, electronic device and storage medium
CN117370214B (en) Program debugging method and device of controller and storage medium
CN116090380B (en) Automatic method and device for verifying digital integrated circuit, storage medium and terminal
CN115840129A (en) Board card testing method and device
CN111581081B (en) Automatic test system and method
CN114879647A (en) ECU fault code test system, electronic controller and car
CN111752823A (en) Method, device and equipment for testing vehicle-mounted power supply application software
CN106446400B (en) Method and device for testing performance of electromechanical system
CN113342693B (en) Method, device and system for generating test data and controller
CN114756217B (en) Plug-in based script generation system
CN118503118A (en) Verification environment construction method, device, verification system and chip verification method
CN115687149A (en) Automatic testing method, device, terminal equipment and system for automobile central control
CN117112443A (en) BootLoader test method, device and system
CN117950391A (en) Diagnostic test method, device and equipment for whole vehicle controller and storage 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200327

RJ01 Rejection of invention patent application after publication