CN104714872A - Performance test method for vehicle-mounted USB equipment - Google Patents

Performance test method for vehicle-mounted USB equipment Download PDF

Info

Publication number
CN104714872A
CN104714872A CN201510168590.3A CN201510168590A CN104714872A CN 104714872 A CN104714872 A CN 104714872A CN 201510168590 A CN201510168590 A CN 201510168590A CN 104714872 A CN104714872 A CN 104714872A
Authority
CN
China
Prior art keywords
mobile unit
usb device
instruction
vehicle
performs
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.)
Granted
Application number
CN201510168590.3A
Other languages
Chinese (zh)
Other versions
CN104714872B (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
CSR Zhuzou 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 CSR Zhuzou Institute Co Ltd filed Critical CSR Zhuzou Institute Co Ltd
Priority to CN201510168590.3A priority Critical patent/CN104714872B/en
Publication of CN104714872A publication Critical patent/CN104714872A/en
Application granted granted Critical
Publication of CN104714872B publication Critical patent/CN104714872B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a performance test method for vehicle-mounted USB equipment. The method comprises the following steps: A, electrifying; and B, loading. The method also comprises the following steps that C, a PC machine sends a command in an appointed directory to the vehicle-mounted equipment, and the vehicle-mounted equipment receives and executes the command; D, the PC machine sends a command for operating a testing script in the appointed directory to the vehicle-mounted equipment, and the vehicle-mounted equipment receives and executes the command; and E, the PC machine reads information acquired in the step D line by line, compares error information, and if a situation that a copyfile and a testfile are inconsistent in size or content, the type and time of errors are stored. According to the invention, the copying speed and copying satisfaction situation of the vehicle-mounted equipment at different copying intensities are synthetically considered, so that the reliability of copying operations of the vehicle-mounted USB equipment at different copying intensities can be reflected, and therefore, the error rate is reduced, the reliability of test results is improved, the type of errors can be accurately defined, and then the time for solving problems is shortened.

Description

A kind of vehicle-mounted USB device performance test methods
Technical field
The present invention be more particularly directed to a kind of vehicle-mounted USB device performance test methods.
Background technology
Often adopt USB device as data transmission interface in field of track traffic mobile unit, for guaranteeing that it can meet the requirement of complicated severe on-board running environment, USB device must can steady operation, all kinds of problems of the influential system job stability such as do not occur USB device nonrecognition, data download complete, USB device copy procedure fault, therefore, need to carry out fully and test for a long time the reliability of its work before USB device comes into operation.
Existing vehicle-mounted USB device performance test methods can only carry out basic functional test to USB device, only whether test USB device can identify USB flash disk, namely test USB device whether can power on, load, and whether the performance reliability index can not testing USB device meets the demands.Performance reliability index weighs the major criterion that can USB device meet the severe industry park plan environment of locomotive, comprise copying speed, copy meets and copies intensity, file read-write speed when wherein copying speed refers to copy, copy to meet and refer to that the size of copied files and content are consistent with test file, copy intensity refers to the number of times of copy function.
Summary of the invention
When using existing vehicle-mounted USB device performance test methods to test vehicle-mounted USB device, whether the performance reliability index can not testing USB device meets the demands, and simultaneously test result may exist and is difficult to Wrong localization reason.The object of the invention is to, for above-mentioned the deficiencies in the prior art, provide a kind of vehicle-mounted USB device performance test methods improved.
For solving the problems of the technologies described above, the technical solution adopted in the present invention is:
A kind of vehicle-mounted USB device performance test methods, comprises step:
A. PC send to USB device to power on instruction to mobile unit, mobile unit receives instruction and also performs, and execution result is fed back to PC by mobile unit simultaneously; If power on unsuccessfully, the instruction that PC sends to USB device to power on again is to mobile unit, and mobile unit again receives instruction and performs, and execution result is fed back to PC by mobile unit again simultaneously; If reach the number of times upper limit that powers on of setting, USB device can not successfully power on, and stops powering on to USB device and reporting an error;
The instruction that B.PC machine sends to USB device to load is to mobile unit, and mobile unit receives instruction and performs, and execution result is fed back to PC by mobile unit simultaneously; If load unsuccessfully, the instruction that PC sends to USB device to load again is to mobile unit, and mobile unit again receives instruction and performs, and execution result is fed back to PC by mobile unit again simultaneously; If reach the loading number of times upper limit of setting, USB device can not successfully load, and stops loading to USB device and reporting an error;
Also comprise step:
The transmission of C.PC machine enters the instruction of assigned catalogue to mobile unit, and mobile unit receives instruction and also performs;
D.PC machine sends the instruction of the test script under operation assigned catalogue to mobile unit, and mobile unit receives instruction and also performs; Described test script is used for arranging number of copy operations, arrange initial time that the size of test file and content, reading copy at every turn and the mistiming that end time, calculating copy at every turn, the content of the size reading copied files, contrast copied files and test file; In the process of mobile unit testing results script, if USB device occurs reading or writing protection, then report an error;
The information that E.PC machine collects in read step D line by line, carries out the comparison of error message simultaneously, if there is the size of copied files and test file or content inconsistent, storage errors type and makeing mistakes the time.
Further, when carrying out the comparison of error message in step e, if copied files is with the in the same size of test file and content is consistent, PC calculates, stores and export copying speed information.
Because USB device carries out high strength, repeatedly copy function for a long time, therefore error message and copying speed information can reflect the performance of vehicle-mounted USB device on the whole.
Further, in step D while testing results script, PC sends and checks that the instruction of mobile unit CPU usage and/or memory usage is to mobile unit, and mobile unit receives instruction and performs, and execution result is fed back to PC by mobile unit simultaneously; PC reads line by line, store and export the total CPU usage of the mobile unit that collects and/or memory usage information, screens simultaneously and exports CPU usage and/or the memory usage information of vehicle-mounted USB device performance test.
When utilizing existing vehicle-mounted USB device performance test methods to test, owing to not considering mobile unit CPU usage and memory usage, for because of CPU usage or the too high and situation of the USB flash disk cisco unity malfunction caused of memory usage, may take for is that the performance of vehicle-mounted USB device own can not meet the demands, thus causes test result inaccurate.
Consider total CPU usage of output and/or memory usage information, the CPU usage of vehicle-mounted USB device performance test and/or memory usage information, can analyze further and judge whether the performance of vehicle-mounted USB device own meets the demands, whether vehicle-mounted USB device performance is caused to reduce because mobile unit whole system load is excessive, thus reduce positioning problems error rate, improve the reliability of test result.
Further, also comprise statistics in step e and to make mistakes number of times, number of times of makeing mistakes obtains error rate divided by number of copy operations.
Error rate can reflect the reliability of vehicle-mounted USB device copy work under different copy intensity.
Further, also step is comprised:
F.PC machine sends the instruction of load-off of USB apparatus to mobile unit, and mobile unit receives instruction and performs;
G.PC machine sends to the instruction of USB device power-off to mobile unit, and mobile unit receives instruction and performs, and execution result is fed back to PC by mobile unit simultaneously; If power-off failure, PC sends to the instruction of USB device power-off to mobile unit again, and mobile unit again receives instruction and performs, and execution result is fed back to PC by mobile unit again simultaneously; If reach the power-off number of times upper limit of setting, USB device can not successful power-off, stops to USB device power-off and reports an error.
Compare with prior art, the present invention considers the copying speed of vehicle-mounted USB device under different copy intensity according to performance reliability index comprehensive and copy meets situation, the reliability of vehicle-mounted USB device copy work under different copy intensity can be reflected, by reading mobile unit CPU usage and memory usage, reduce error rate, improve the reliability of test result, simultaneously can accurate Wrong localization type, developer can be suited the remedy to the case, shorten the time of dealing with problems.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of an embodiment of the present invention.
Embodiment
Be illustrated in figure 1 the process flow diagram of an embodiment of the present invention, this embodiment comprises step:
A. PC send to USB device to power on instruction to mobile unit, mobile unit receives instruction and also performs, and execution result is fed back to PC by mobile unit simultaneously; If power on unsuccessfully, the instruction that PC sends to USB device to power on again is to mobile unit, and mobile unit again receives instruction and performs, and execution result is fed back to PC by mobile unit again simultaneously; If reach the number of times upper limit that powers on of setting, USB device can not successfully power on, and stops powering on to USB device and reporting an error;
The instruction that B.PC machine sends to USB device to load is to mobile unit, and mobile unit receives instruction and performs, and execution result is fed back to PC by mobile unit simultaneously; If load unsuccessfully, the instruction that PC sends to USB device to load again is to mobile unit, and mobile unit again receives instruction and performs, and execution result is fed back to PC by mobile unit again simultaneously; If reach the loading number of times upper limit of setting, USB device can not successfully load, and stops loading to USB device and reporting an error;
The transmission of C.PC machine enters the instruction of assigned catalogue to mobile unit, and mobile unit receives instruction and also performs;
D.PC machine sends the instruction of the test script under operation assigned catalogue to mobile unit, and mobile unit receives instruction and also performs; Described test script is used for arranging number of copy operations, arrange initial time that the size of test file and content, reading copy at every turn and the mistiming that end time, calculating copy at every turn, the content of the size reading copied files, contrast copied files and test file; In the process of mobile unit testing results script, if USB device occurs reading or writing protection, then report an error;
Mobile unit testing results script, return data is stored in the internal storage in PC simultaneously.
E.PC machine collects the information be stored in internal storage in read step D line by line, carry out the comparison of error message simultaneously, if there is the size of copied files and test file or content inconsistent, storage errors type and makeing mistakes the time, otherwise PC calculates, stores and export copying speed information.Add up number of times of makeing mistakes, number of times of makeing mistakes obtains error rate divided by number of copy operations.
In step D while testing results script, PC sends and checks that the instruction of mobile unit CPU usage and/or memory usage is to mobile unit, and mobile unit receives instruction and performs, and execution result is fed back to PC by mobile unit simultaneously; PC reads line by line, store and export the total CPU usage of the mobile unit that collects and/or memory usage information, screens simultaneously and exports CPU usage and/or the memory usage information of vehicle-mounted USB device performance test.
F.PC machine sends the instruction of load-off of USB apparatus to mobile unit, and mobile unit receives instruction and performs;
G.PC machine sends to the instruction of USB device power-off to mobile unit, and mobile unit receives instruction and performs, and execution result is fed back to PC by mobile unit simultaneously; If power-off failure, PC sends to the instruction of USB device power-off to mobile unit again, and mobile unit again receives instruction and performs, and execution result is fed back to PC by mobile unit again simultaneously; If reach the power-off number of times upper limit of setting, USB device can not successful power-off, stops to USB device power-off and reports an error.

Claims (5)

1. a vehicle-mounted USB device performance test methods, comprises step:
A. PC send to USB device to power on instruction to mobile unit, mobile unit receives instruction and also performs, and execution result is fed back to PC by mobile unit simultaneously; If power on unsuccessfully, the instruction that PC sends to USB device to power on again is to mobile unit, and mobile unit again receives instruction and performs, and execution result is fed back to PC by mobile unit again simultaneously; If reach the number of times upper limit that powers on of setting, USB device can not successfully power on, and stops powering on to USB device and reporting an error;
The instruction that B.PC machine sends to USB device to load is to mobile unit, and mobile unit receives instruction and performs, and execution result is fed back to PC by mobile unit simultaneously; If load unsuccessfully, the instruction that PC sends to USB device to load again is to mobile unit, and mobile unit again receives instruction and performs, and execution result is fed back to PC by mobile unit again simultaneously; If reach the loading number of times upper limit of setting, USB device can not successfully load, and stops loading to USB device and reporting an error;
It is characterized in that, also comprise step:
The transmission of C.PC machine enters the instruction of assigned catalogue to mobile unit, and mobile unit receives instruction and also performs;
D.PC machine sends the instruction of the test script under operation assigned catalogue to mobile unit, and mobile unit receives instruction and also performs; Described test script is used for arranging number of copy operations, arrange initial time that the size of test file and content, reading copy at every turn and the mistiming that end time, calculating copy at every turn, the content of the size reading copied files, contrast copied files and test file; In the process of mobile unit testing results script, if USB device occurs reading or writing protection, then report an error;
The information that E.PC machine collects in read step D line by line, carries out the comparison of error message simultaneously, if there is the size of copied files and test file or content inconsistent, storage errors type and makeing mistakes the time.
2. vehicle-mounted USB device performance test methods as claimed in claim 1, it is characterized in that, when carrying out the comparison of error message in step e, if copied files is with the in the same size of test file and content is consistent, PC calculates, stores and export copying speed information.
3. vehicle-mounted USB device performance test methods as claimed in claim 1, it is characterized in that, in step D while testing results script, PC sends and checks that the instruction of mobile unit CPU usage and/or memory usage is to mobile unit, mobile unit receives instruction and performs, and execution result is fed back to PC by mobile unit simultaneously; PC reads line by line, store and export the total CPU usage of the mobile unit that collects and/or memory usage information, screens simultaneously and exports CPU usage and/or the memory usage information of vehicle-mounted USB device performance test.
4. vehicle-mounted USB device performance test methods as claimed in claim 1, is characterized in that, also comprise statistics in step e and to make mistakes number of times, number of times of makeing mistakes obtains error rate divided by number of copy operations.
5. vehicle-mounted USB device performance test methods as claimed in claim 1, is characterized in that, also comprise step:
F.PC machine sends the instruction of load-off of USB apparatus to mobile unit, and mobile unit receives instruction and performs;
G.PC machine sends to the instruction of USB device power-off to mobile unit, and mobile unit receives instruction and performs, and execution result is fed back to PC by mobile unit simultaneously; If power-off failure, PC sends to the instruction of USB device power-off to mobile unit again, and mobile unit again receives instruction and performs, and execution result is fed back to PC by mobile unit again simultaneously; If reach the power-off number of times upper limit of setting, USB device can not successful power-off, stops to USB device power-off and reports an error.
CN201510168590.3A 2015-04-10 2015-04-10 A kind of vehicle-mounted USB device performance test methods Active CN104714872B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510168590.3A CN104714872B (en) 2015-04-10 2015-04-10 A kind of vehicle-mounted USB device performance test methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510168590.3A CN104714872B (en) 2015-04-10 2015-04-10 A kind of vehicle-mounted USB device performance test methods

Publications (2)

Publication Number Publication Date
CN104714872A true CN104714872A (en) 2015-06-17
CN104714872B CN104714872B (en) 2017-03-15

Family

ID=53414232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510168590.3A Active CN104714872B (en) 2015-04-10 2015-04-10 A kind of vehicle-mounted USB device performance test methods

Country Status (1)

Country Link
CN (1) CN104714872B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256509A (en) * 2020-10-23 2021-01-22 新晃县顺泰电子有限公司 USB expansion equipment testing method, device, system and storage medium
CN112256510A (en) * 2020-10-23 2021-01-22 新晃县顺泰电子有限公司 USB interface test method, device, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030056036A1 (en) * 2001-09-14 2003-03-20 Carlton Gary Don Apparatus and method for testing universal serial bus communication
CN101059769A (en) * 2007-06-13 2007-10-24 威盛电子股份有限公司 Universal serial bus device test system and its method
CN103136083A (en) * 2011-11-29 2013-06-05 鸿富锦精密工业(深圳)有限公司 Test device and test method of universal serial bus
CN103218280A (en) * 2013-04-15 2013-07-24 飞天诚信科技股份有限公司 Hardware general testing method of USB (Universal Serial Bus) equipment
CN104268041A (en) * 2014-09-22 2015-01-07 南车株洲电力机车研究所有限公司 Automatic closed loop test method for frequent startup and shutdown of vehicle-mounted display

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030056036A1 (en) * 2001-09-14 2003-03-20 Carlton Gary Don Apparatus and method for testing universal serial bus communication
CN101059769A (en) * 2007-06-13 2007-10-24 威盛电子股份有限公司 Universal serial bus device test system and its method
CN103136083A (en) * 2011-11-29 2013-06-05 鸿富锦精密工业(深圳)有限公司 Test device and test method of universal serial bus
CN103218280A (en) * 2013-04-15 2013-07-24 飞天诚信科技股份有限公司 Hardware general testing method of USB (Universal Serial Bus) equipment
CN104268041A (en) * 2014-09-22 2015-01-07 南车株洲电力机车研究所有限公司 Automatic closed loop test method for frequent startup and shutdown of vehicle-mounted display

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256509A (en) * 2020-10-23 2021-01-22 新晃县顺泰电子有限公司 USB expansion equipment testing method, device, system and storage medium
CN112256510A (en) * 2020-10-23 2021-01-22 新晃县顺泰电子有限公司 USB interface test method, device, system and storage medium

Also Published As

Publication number Publication date
CN104714872B (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN108829593B (en) Code coverage rate calculation and analysis method, device, equipment and storage medium
WO2021169260A1 (en) System board card power supply test method, apparatus and device, and storage medium
CN102760090B (en) Debugging method and computer system
CN103268289B (en) Record the method and system of application testing script on mobile terminals
CN109813999B (en) Automatic test platform, method and application of power distribution network fault diagnosis algorithm
US8145942B2 (en) Methods and systems for troubleshooting remote systems through recreation of remote system scenarios
CN104077217A (en) Method and system for compiling and issuing code file
CN104268076A (en) Memory bandwidth automatically testing method applicable to various processor platforms
CN107508727B (en) Automatic network card information checking method and device
CN111198811A (en) Page automatic test method and device, electronic equipment and storage medium
CN110928556A (en) Automatic program burning method and device for railway vehicle, and testing method and system
CN114117973A (en) Logic synthesis method, device and storage medium
CN104714872A (en) Performance test method for vehicle-mounted USB equipment
CN107807791A (en) A kind of hard disc of computer sequence binding method and system
CN106095647A (en) A kind of method of real-time monitoring Seagate hard disk voltage
CN106407117A (en) Universal interface test method
CN103838664A (en) Pressure testing method and device
CN104063308A (en) Data verification method and device
CN109669829A (en) A kind of diagnosis adjustment method, device and server based on BMC
CN111124597B (en) Method, equipment and medium for positioning fault item in Vtermination test
CN105389350A (en) Distributed file system metadata information acquisition method
CN112947964A (en) Chip firmware updating method, device, equipment and storage medium
CN113325297A (en) Chip system level test system and method
CN102984680B (en) A kind of method that realizes number tracking in the external interface of telecom operation system
CN102255674A (en) LUA-script-based wireless module automatic testing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant