CN104714872B - A kind of vehicle-mounted USB device performance test methods - Google Patents
A kind of vehicle-mounted USB device performance test methods Download PDFInfo
- Publication number
- CN104714872B CN104714872B CN201510168590.3A CN201510168590A CN104714872B CN 104714872 B CN104714872 B CN 104714872B CN 201510168590 A CN201510168590 A CN 201510168590A CN 104714872 B CN104714872 B CN 104714872B
- Authority
- CN
- China
- Prior art keywords
- mobile unit
- usb device
- vehicle
- error
- instruction
- 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
Links
Abstract
The invention discloses a kind of vehicle-mounted USB device performance test methods, including step:A. electricity is gone up;B. load;Also include step:C.PC machines are transmitted into the instruction of assigned catalogue to mobile unit, and mobile unit receives and instructs and execute;D.PC machines send the instruction of the test script under operation assigned catalogue to mobile unit, and mobile unit receives and instructs and execute;The information that E.PC machines are collected in read step D line by line, while carrying out the comparison of error message, the size or content if there is copied files and test file is inconsistent, storage type of error and error time.The present invention has considered the copying speed of vehicle-mounted USB device and copy under different copy intensity and has met situation, the reliability of vehicle-mounted USB device copy work under different copy intensity can be reflected, reduce error rate, improve the reliability of test result, type of error can be accurately positioned, the time of solve problem is shortened.
Description
Technical field
The present invention be more particularly directed to a kind of vehicle-mounted USB device performance test methods.
Background technology
Pass through frequently with USB device as data transmission interface in field of track traffic mobile unit, for guaranteeing which can meet
The requirement of complicated severe on-board running environment, USB device must be stable to work, occur without USB device nonrecognition, data
Downloading not complete, USB device copy procedure failure etc. affects all kinds of problems of system job stability, accordingly, it would be desirable in USB device
Abundant and prolonged test is carried out to the reliability of its work before coming into operation.
Existing vehicle-mounted USB device performance test methods can only carry out basic functional test to USB device, only test USB
Whether equipment is capable of identify that USB flash disk, i.e. whether test USB device can go up electricity, loading, and the performance that can not test USB device can
Lean on whether property index meets requirement.Can performance reliability index be to weigh USB device meet the severe industry park plan ring of locomotive
The major criterion in border, meets and copies intensity including copying speed, copy, file read-write when wherein copying speed refers to copy
Speed, copies to meet referring to that the size and content of copied files are consistent with test file, and copy intensity refers to copy function
Number of times.
Content of the invention
When being tested to vehicle-mounted USB device using existing vehicle-mounted USB device performance test methods, it is impossible to test USB
Whether the performance reliability index of equipment meets requirement, while test result there may be is difficult to Wrong localization reason.The present invention
Purpose be, for above-mentioned the deficiencies in the prior art, there is provided a kind of vehicle-mounted USB device performance test methods for improving.
For solving above-mentioned technical problem, the technical solution adopted in the present invention is:
A kind of vehicle-mounted USB device performance test methods, including step:
A. PC is sent to the instruction of electricity on USB device to mobile unit, and mobile unit receives and instructs and execute, while
Implementing result is fed back to PC by mobile unit;If upper electricity failure, PC is sent on USB device the instruction of electricity again to vehicle-mounted
Equipment, mobile unit receive again and instruct and execute, while implementing result is fed back to PC by mobile unit again;If reached
The upper electric number of times upper limit for setting, USB device can not successfully go up electricity, stop to electricity on USB device and report an error;
B.PC machines are sent to the instruction of USB device loading to mobile unit, and mobile unit receives and instructs and execute, while car
Implementing result is fed back to PC by load equipment;If loading failure, PC are sent to the instruction of USB device loading again and set to vehicle-mounted
Standby, mobile unit receives again and instructs and execute, while implementing result is fed back to PC by mobile unit again;If reach set
The fixed loading number of times upper limit, USB device can not successfully load, stop loading to USB device and report an error;
Also include step:
C.PC machines are transmitted into the instruction of assigned catalogue to mobile unit, and mobile unit receives and instructs and execute;
D.PC machines send the instruction of the test script under operation assigned catalogue to mobile unit, and mobile unit receives instruction simultaneously
Execute;The test script is used for arranging number of copy operations, arranges the size and content of test file, reads every time copy
Initial time and end time, the time difference for calculating each copy, the size for reading copied files, contrast copied files and test
The content of file;During mobile unit testing results script, if unreadable or write-protect occurs in USB device, report an error;
The information that E.PC machines are collected in read step D line by line, while the comparison of error message is carried out, if there is copy
The size or content of file and test file is inconsistent, stores type of error and error time.
Further, carry out in step E error message comparison when, if the size one of copied files and test file
Cause and content is consistent, PC calculates, stores and export copying speed information.
As USB device carries out high intensity, prolonged repeatedly copy function, therefore error message and copying speed are believed
Breath can reflect the performance of vehicle-mounted USB device on the whole.
Further, in step D testing results script while, PC send check mobile unit CPU usage and/
Or the instruction of memory usage, to mobile unit, mobile unit receives and instructs and execute, while mobile unit is anti-by implementing result
It is fed to PC;PC reads line by line, stores and exports the total CPU usage of the mobile unit that collects and/or memory usage
Information, while screen and export CPU usage and/or the memory usage information of vehicle-mounted USB device performance test.
When being tested using existing vehicle-mounted USB device performance test methods, make due to not accounting for mobile unit CPU
With rate and memory usage, for because of CPU usage or memory usage is too high and the feelings of USB flash disk cisco unity malfunction that cause
Condition, may be mistaken for vehicle-mounted USB device performance itself and can not meet requirement, so as to cause test result inaccurate.
Consider total CPU usage and/or memory usage information, the vehicle-mounted USB device performance test of output
CPU usage and/or memory usage information, further can analyze judge vehicle-mounted USB device performance itself whether meet will
Ask, if cause vehicle-mounted USB device performance to reduce as mobile unit whole system load is excessive, wrong so as to reduce positioning problems
Rate, improves the reliability of test result by mistake.
Further, also include statistics error number of times in step E, error number of times is malfunctioned divided by number of copy operations
Rate.
Error rate can reflect the reliability of vehicle-mounted USB device copy work under different copy intensity.
Further, also include step:
F.PC machines send the instruction of load-off of USB apparatus to mobile unit, and mobile unit receives and instructs and execute;
G.PC machines are sent to the instruction of USB device power-off to mobile unit, and mobile unit receives and instructs and execute, while car
Implementing result is fed back to PC by load equipment;If power-off fails, PC is sent to the instruction of USB device power-off again and sets to vehicle-mounted
Standby, mobile unit receives again and instructs and execute, while implementing result is fed back to PC by mobile unit again;If reach set
The fixed power-off number of times upper limit, USB device can not successful power-off, stop to USB device power-off and report an error.
Compare with prior art, the present invention considers vehicle-mounted under different copy intensity according to performance reliability index comprehensive
The copying speed of USB device and copy meet situation, and can reflect vehicle-mounted USB device copy work under different copy intensity can
By property, by reading mobile unit CPU usage and memory usage, error rate is reduced, the reliability of test result is improve
Property, while type of error can be accurately positioned so that developer can suit the remedy to the case, shorten the time of solve problem.
Description of the drawings
Flow charts of the Fig. 1 for an embodiment of the present invention.
Specific embodiment
The flow chart of an embodiment of the present invention is illustrated in figure 1, the embodiment includes step:
A. PC is sent to the instruction of electricity on USB device to mobile unit, and mobile unit receives and instructs and execute, while
Implementing result is fed back to PC by mobile unit;If upper electricity failure, PC is sent on USB device the instruction of electricity again to vehicle-mounted
Equipment, mobile unit receive again and instruct and execute, while implementing result is fed back to PC by mobile unit again;If reached
The upper electric number of times upper limit for setting, USB device can not successfully go up electricity, stop to electricity on USB device and report an error;
B.PC machines are sent to the instruction of USB device loading to mobile unit, and mobile unit receives and instructs and execute, while car
Implementing result is fed back to PC by load equipment;If loading failure, PC are sent to the instruction of USB device loading again and set to vehicle-mounted
Standby, mobile unit receives again and instructs and execute, while implementing result is fed back to PC by mobile unit again;If reach set
The fixed loading number of times upper limit, USB device can not successfully load, stop loading to USB device and report an error;
C.PC machines are transmitted into the instruction of assigned catalogue to mobile unit, and mobile unit receives and instructs and execute;
D.PC machines send the instruction of the test script under operation assigned catalogue to mobile unit, and mobile unit receives instruction simultaneously
Execute;The test script is used for arranging number of copy operations, arranges the size and content of test file, reads every time copy
Initial time and end time, the time difference for calculating each copy, the size for reading copied files, contrast copied files and test
The content of file;During mobile unit testing results script, if unreadable or write-protect occurs in USB device, report an error;
Mobile unit testing results script, while returned data is stored in the internal storage in PC.
E.PC machines collect the information being stored in internal storage in read step D line by line, while carrying out error message
Comparison, the size or content if there is copied files and test file be inconsistent, storage type of error and error time,
Otherwise PC calculates, stores and export copying speed information.Statistics error number of times, error number of times is obtained divided by number of copy operations
Arrive error rate.
In step D while testing results script, PC sends and checks that mobile unit CPU usage and/or internal memory are accounted for
To mobile unit, mobile unit receives and instructs and execute, while implementing result is fed back to PC by mobile unit for instruction with rate;
PC reads line by line, stores and exports the total CPU usage of the mobile unit that collects and/or memory usage information, while
Screen and export CPU usage and/or the memory usage information of vehicle-mounted USB device performance test.
F.PC machines send the instruction of load-off of USB apparatus to mobile unit, and mobile unit receives and instructs and execute;
G.PC machines are sent to the instruction of USB device power-off to mobile unit, and mobile unit receives and instructs and execute, while car
Implementing result is fed back to PC by load equipment;If power-off fails, PC is sent to the instruction of USB device power-off again and sets to vehicle-mounted
Standby, mobile unit receives again and instructs and execute, while implementing result is fed back to PC by mobile unit again;If reach set
The fixed power-off number of times upper limit, USB device can not successful power-off, stop to USB device power-off and report an error.
Claims (4)
1. a kind of vehicle-mounted USB device performance test methods, including step:
A. PC is sent to the instruction of electricity on USB device to mobile unit, and mobile unit receives and instructs and execute, while vehicle-mounted
Implementing result is fed back to PC by equipment;If upper electricity failure, PC are sent to the instruction of electricity on USB device again and set to vehicle-mounted
Standby, mobile unit receives again and instructs and execute, while implementing result is fed back to PC by mobile unit again;If reach set
The fixed upper electric number of times upper limit, USB device can not successfully go up electricity, stop to electricity on USB device and report an error;
B.PC machines are sent to the instruction of USB device loading to mobile unit, and mobile unit receives and instructs and execute, while vehicle-mounted set
Standby implementing result is fed back to PC;If loading failure, PC is sent to the instruction of USB device loading again to mobile unit,
Mobile unit receives again and instructs and execute, while implementing result is fed back to PC by mobile unit again;If reaching setting
The loading number of times upper limit, USB device can not successfully load, stop loading to USB device and report an error;
Characterized in that, also including step:
C.PC machines are transmitted into the instruction of assigned catalogue to mobile unit, and mobile unit receives and instructs and execute;
D.PC machines send the instruction of the test script under operation assigned catalogue to mobile unit, and mobile unit receives and instructs and hold
OK;The test script is used for arranging number of copy operations, arranges the size and content of test file, reads every time rising for copy
Time beginning and end time, the time difference for calculating each copy, the size for reading copied files, contrast copied files and test are literary
The content of part;During mobile unit testing results script, if unreadable or write-protect occurs in USB device, report an error;
The information that E.PC machines are collected in read step D line by line, while the comparison of error message is carried out, if there is copied files
Inconsistent with the size of test file or content, store type of error and error time;
In step D while testing results script, PC sends and checks mobile unit CPU usage and/or memory usage
Instruction to mobile unit, mobile unit receives and instructs and execute, while implementing result is fed back to PC by mobile unit;PC
Read line by line, store and export the total CPU usage of the mobile unit that collects and/or memory usage information, while screening
And export CPU usage and/or the memory usage information of vehicle-mounted USB device performance test.
2. vehicle-mounted USB device performance test methods as claimed in claim 1, it is characterised in that carry out wrong letter in step E
During the comparison of breath, if copied files are in the same size with test file and content is consistent, PC calculates, stores and export copy
Velocity information.
3. vehicle-mounted USB device performance test methods as claimed in claim 1, it is characterised in that also include counting in step E
Error number of times is obtained error rate divided by number of copy operations by wrong number of times.
4. vehicle-mounted USB device performance test methods as claimed in claim 1, it is characterised in that also include step:
F.PC machines send the instruction of load-off of USB apparatus to mobile unit, and mobile unit receives and instructs and execute;
G.PC machines are sent to the instruction of USB device power-off to mobile unit, and mobile unit receives and instructs and execute, while vehicle-mounted set
Standby implementing result is fed back to PC;If power-off fails, PC is sent to the instruction of USB device power-off again to mobile unit,
Mobile unit receives again and instructs and execute, while implementing result is fed back to PC by mobile unit again;If reaching setting
The power-off number of times upper limit, USB device can not successful power-off, stop to USB device power-off and report an error.
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 CN104714872A (en) | 2015-06-17 |
CN104714872B true 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) |
Families Citing this family (2)
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 |
Family Cites Families (5)
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 |
CN100498732C (en) * | 2007-06-13 | 2009-06-10 | 威盛电子股份有限公司 | 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 |
CN103218280B (en) * | 2013-04-15 | 2016-12-28 | 飞天诚信科技股份有限公司 | A kind of hardware universal testing method of USB device |
CN104268041B (en) * | 2014-09-22 | 2018-05-04 | 南车株洲电力机车研究所有限公司 | A kind of Vehicular display device equipment frequently switches on machine automatic closed loop test method |
-
2015
- 2015-04-10 CN CN201510168590.3A patent/CN104714872B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104714872A (en) | 2015-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8880779B2 (en) | Debugging a memory subsystem | |
CN103268289B (en) | Record the method and system of application testing script on mobile terminals | |
CN105022694B (en) | Method for generating test case and system for mobile terminal test | |
US20130036255A1 (en) | Testing memory subsystem connectivity | |
CN107508727B (en) | Automatic network card information checking method and device | |
CN104268076A (en) | Memory bandwidth automatically testing method applicable to various processor platforms | |
CN110321292A (en) | Chip detecting method, device, electronic equipment and computer readable storage medium | |
CN104714872B (en) | A kind of vehicle-mounted USB device performance test methods | |
CN111858372A (en) | Automatic testing system and method for TSRS system | |
CN108335722A (en) | A kind of method of automatic test SSD interface rate | |
CN106649020A (en) | Detecting method and device for storage case burn information | |
CN107015911A (en) | The code review method and device of continuous integrating | |
CN101770416B (en) | Bus testing method for new generation of peripheral connecting interface | |
CN105446856B (en) | The detection method of electronic equipment interfaces, device | |
CN105738855A (en) | Intelligent electric meter embedded application-orientated test method | |
CN106095647A (en) | A kind of method of real-time monitoring Seagate hard disk voltage | |
CN104731702B (en) | Test system and its service end | |
CN107907838A (en) | A kind of redundant power module tests system and method | |
CN107145415A (en) | A kind of method of the batch testing HDD LED under Linux system | |
CN103246587A (en) | Method for utilizing SD (secure digital) card for ADB (android debug bridge) debugging on android platform | |
CN107622013B (en) | Distributed system testing method and device | |
CN112947964A (en) | Chip firmware updating method, device, equipment and storage medium | |
CN105450818B (en) | mobile terminal power consumption current measuring method and device | |
CN105630623A (en) | Flash memory particle detection device | |
CN102984680A (en) | Method for realizing number tracking in external interface of telecommunication operation system |
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 |