CN102664044B - System and method for automatic test on vehicle-mounted radio U disk compatibility - Google Patents

System and method for automatic test on vehicle-mounted radio U disk compatibility Download PDF

Info

Publication number
CN102664044B
CN102664044B CN201210096070.2A CN201210096070A CN102664044B CN 102664044 B CN102664044 B CN 102664044B CN 201210096070 A CN201210096070 A CN 201210096070A CN 102664044 B CN102664044 B CN 102664044B
Authority
CN
China
Prior art keywords
usb
control center
flash disk
usb flash
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210096070.2A
Other languages
Chinese (zh)
Other versions
CN102664044A (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.)
Huizhou Desay SV Automotive Co Ltd
Original Assignee
Huizhou Desay SV Automotive 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 Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN201210096070.2A priority Critical patent/CN102664044B/en
Publication of CN102664044A publication Critical patent/CN102664044A/en
Application granted granted Critical
Publication of CN102664044B publication Critical patent/CN102664044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Testing Electric Properties And Detecting Electric Faults (AREA)

Abstract

The invention discloses a system and a method for an automatic test on vehicle-mounted radio U disk compatibility. The system comprises a control center, a vehicle-mounted radio and multiple U disks to be tested and is characterized by comprising 1, a USB switching circuit which is used for connecting the multiple U disks to be tested and the vehicle-mounted radio and carrying out make-break switching between the multiple U disks to be tested and the vehicle-mounted radio, 2, a USB communication circuit which is connected between the control center and the USB switching circuit and is used for receiving a control instruction from the control center and controlling switching operation of the USB switching circuit, 3, an audio conversion circuit which is connected between the vehicle-mounted radio and the control center and is used for converting an audio signal output by the vehicle-mounted radio into a signal which can be identified by the control center, and 4, a USB port electricity-stealing circuit which is connected to the control center and is used for stealing electricity from the control center and supplying power to the USB switching circuit and the audio conversion circuit. Through the system and the method, a one-step automatic test on compatibility of multiple U disks is realized; manpower is saved; test efficiency is effectively improved; and operation processes are simple and efficient.

Description

A kind of compatibility automated test macro of USB flash disk of vehicular transreceiver and method
Technical field
The present invention relates to the compatibility automated test macro of a kind of USB device, specifically refer to the compatibility automated test macro of a kind of USB device of vehicular transreceiver; The invention still further relates to a kind of USB device compatibility automated test method.
Background technology
At present, the USB flash disk compatibility test of cassette car radio is all manually come, in manual operation process, a USB device can only be tested at every turn, namely artificial by a USB flash disk insertion cassette car radio, and judge that whether this USB flash disk is compatible with cassette car radio according to whether the sound signal of cassette car radio output is identical with the signal be stored in advance in USB flash disk, when testing different brands, the USB device of different capabilities and cassette car radio compatible, need repeatedly to plug USB device, repeatedly intercutting USB makes testing efficiency reduce, and cannot determine the reading time of USB.
Summary of the invention
To the object of the invention is to overcome in above-mentioned prior art existing manual operation efficiency low and can not determine the defect of the reading time of USB flash disk, the compatibility of the multiple USB flash disk of the fast automatic test of a kind of energy is provided and the compatibility automated test macro of USB flash disk and the method that USB flash disk reads the vehicular transreceiver of time can be tested.
The object of the invention is to be achieved through the following technical solutions: a kind of compatibility automated test macro of USB flash disk of vehicular transreceiver, comprises control center, vehicular transreceiver and USB flash disk to be measured, also comprise:
Multiple USB flash disk to be measured is connected to vehicular transreceiver, and switches the USB commutation circuit of the break-make of multiple USB flash disk to be measured and vehicular transreceiver;
Be connected between control center and described USB commutation circuit, for receiving the steering order of control center and controlling the usb communication circuit of the switching action of described USB commutation circuit;
Be connected between vehicular transreceiver and control center, the sound signal for being exported by vehicular transreceiver is converted to the audio conversion circuit of control center's discernible signal;
Be connected with control center, for stealing voltage from control center, and to the USB port stealing circuit that described USB commutation circuit and audio conversion circuit are powered;
Particularly, described usb communication circuit comprises control chip, multiple I/O mouths of control chip connect multiple switches of USB commutation circuit respectively, and control chip receives the control command that control center sends, by controlling the break-make of the level control USB commutation circuit switch of multiple different pin;
Particularly, described USB commutation circuit is provided with multiple switch, multiple pins of the control chip of above-mentioned usb communication circuit connect described multiple switch respectively by triode, be specially the base stage of the pin connecting triode of control chip, the emitter connecting valve of triode, the collector of triode connects USB port stealing circuit steals voltage output terminal from control center, one end corresponding USB interface respectively of described each switch, for connecting multiple USB flash disk to be measured, the other end of switch is all connected to vehicular transreceiver;
In order to accelerate the handoff procedure of USB flash disk, reduce electric quantity consumption, described switch adopts three open type dry-reed relays;
The input end of described audio conversion circuit is connected with the audio output of vehicular transreceiver, and the output terminal of audio conversion circuit is connected with the microphone interface of control center.Described audio conversion circuit forms primarily of an amplifier and signal acquisition module, signal acquisition module forms primarily of multiple sampling resistor, the output terminal that signal acquisition module and USB port stealing circuit steal voltage is connected the input end of described amplifier, and the output terminal of amplifier is connected with the microphone interface of control center.
In order to realize another goal of the invention of the present invention, the USB flash disk compatibility automated test method of a kind of vehicular transreceiver provided by the invention is as follows:
(1), in the controlling the heart pre-set number, the compatible time limit of USB flash disk to be measured and read the relevant parameters such as time limit, in each USB flash disk to be measured, prestore a fixed frequency value is the audio file of mKHz simultaneously;
(2), set test count N from 1, N is natural number;
(3), judge whether test count N is greater than the number of USB port in USB commutation circuit, if test count N is greater than the number of default USB flash disk to be measured, then terminate test; Otherwise, perform next step;
(4), judge whether current test USB flash disk is selected to connect with vehicular transreceiver, if this USB flash disk access failure, then test count N cumulative 1, and repeat step (3); If current test USB flash disk is selected to connect, then perform next step;
(5), the test procedure of control center sends control command, and usb communication circuit receives the steering order of control center, and the corresponding switch of control USB commutation circuit closes, the USB flash disk that turn on-switch is corresponding, and starts timing;
(6), judge whether control center receives the signal of mKHz, if control center does not receive the signal of mKz, perform step (7); If control center receives the signal of mKHz, then timing terminates, and performs step (8);
(7), judge whether timing time is greater than the compatible time limit, if be not more than the compatible time limit, then repeat step (6), if be greater than the compatible time limit, then export the result of " incompatible ", test count N cumulative 1, and repeat step (3);
(8), judge whether the reading time is greater than the reading time limit pre-set, if the reading time is greater than read the time limit, then export result and the time of reading of " NG "; Otherwise export " OK " result and the time of reading, described " NG " represents that current test USB flash disk needs the reading time longer, and compatible bad, " OK " represents that current test USB flash disk needs the reading time longer, compatible good;
(9), after control center outputs test result, test count N cumulative 1, and repeat step (3).
In said method, the described fixed frequency value of step (1) is the audio file of mKHz, is preferably the MP3 audio file of 1KHz.
The present invention has the following advantages and beneficial effect compared to existing technology:
1, the present invention utilizes programmed control test process, can accomplish that automatic test is compatible and read reading time of USB flash disk, saving manpower.
2, the present invention disposablely can carry out programmed control test to multiple USB flash disk, and testing efficiency is high, and can according to actual conditions to system extension to disposable test 64 even 128 USB flash disks.
3, the switch of USB commutation circuit uses dry-reed relay, accelerates handoff procedure, and the power voltage supply using stealing circuit to steal from PC testing, without the need to additional power supply, be easy to carry.
4, circuit component is cheap, and cost performance is high.
Accompanying drawing explanation
Fig. 1 is the hardware structure diagram of the compatibility automated test macro of USB flash disk of a kind of vehicular transreceiver of the present invention;
Fig. 2 is the schematic diagram of usb communication circuit;
Fig. 3 is the schematic diagram of USB commutation circuit;
Fig. 4 is the schematic diagram of audio conversion circuit;
Fig. 5 is test flow chart.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited thereto.
Embodiment
As shown in Figure 1, a kind of compatibility automated test macro of USB flash disk of vehicular transreceiver, comprise control center, vehicular transreceiver and USB flash disk to be measured, control center is PC in this embodiment, and native system also comprises:
Multiple USB flash disk to be measured is connected to vehicular transreceiver, and switches the USB commutation circuit of the break-make of multiple USB flash disk to be measured and vehicular transreceiver;
Be connected between PC and described USB commutation circuit, for receiving the steering order of PC and controlling the usb communication circuit of the switching action of described USB commutation circuit;
Be connected between vehicular transreceiver and PC, the sound signal for being exported by vehicular transreceiver is converted to the audio conversion circuit of PC discernible signal;
Be connected with PC, for stealing voltage from PC, and to the USB port stealing circuit that described USB commutation circuit and audio conversion circuit are powered;
As shown in Figure 2, described usb communication circuit comprises MW2332 chip, 32 I/O mouths (P00 ~ P37 pin) of MW2332 chip connect 32 switches of USB commutation circuit respectively, usb communication circuit is also connected with PC by USB A, MW2332 chip receives the control signal that PC sends, and control P00 ~ P37 pin sends the break-make of the height control USB commutation circuit switch of level respectively;
As shown in Figure 3, described USB commutation circuit is provided with 32 switches (S1 ~ S32), described switch is specially three open type dry-reed relays, 32 pins (P00 ~ P37) of above-mentioned usb communication circuit MW2332 chip connect described switch (S1 ~ S32) respectively by a triode, be specially the base stage of the pin connecting triode of MW2332 chip, the emitter connecting valve of triode, the collector of triode connects the 5V voltage output end that USB port stealing circuit is stolen from PC, one end corresponding USB interface (USB1 ~ USB32) respectively of described each switch (S1 ~ S32), for connecting multiple USB flash disk to be measured, the other end of switch all connects vehicular transreceiver by USB port.
Described USB commutation circuit performs switching action, the connecting and disconnecting of every road USB flash disk to be measured and vehicular transreceiver are controlled respectively by the break-make of switch (S1 ~ S32), when in usb communication circuit, the pin of MW2332 chip is high level, by triode ON, after the coil electricity of dry-reed relay, dry reed attracts each other, and switch closes thus connects circuit, and now USB flash disk and vehicular transreceiver are connected; When pin sends low level, triode ends, and after the coil blackout of dry-reed relay, dry reed separately, and switch opens is by circuitry cuts, and USB flash disk disconnects the connection with vehicular transreceiver.
Change-over switch adopts dry-reed relay matrix, accelerates the handoff procedure of USB flash disk, reduces electric quantity consumption, and uses PC power and test by USB port stealing circuit, without the need to additional power supply, makes test convenient.
As shown in Figure 4, the input end of described audio conversion circuit is connected with the audio output (SPEAKER+, SPEAKER-) of vehicular transreceiver, and the output terminal (OUT) of audio conversion circuit is connected with the microphone interface of PC.Described audio conversion circuit forms primarily of an amplifier UTC4558 and signal acquisition module 100, signal acquisition module 100 forms primarily of sampling resistor 220R, R302 and R304, the 5V voltage output end that signal acquisition module 100 and USB port stealing circuit are stolen is connected the input end of amplifier UTC4558, and the output terminal of amplifier UTC4558 is connected with the microphone interface of PC.After sampling resistor 220R carries out dividing potential drop sampling to the sound signal that vehicular transreceiver exports, by sampled signal input amplifier UTC4558, sampled signal is just converted to the sound signal that PC can identify safely after amplifier UTC4558 carries out amplifying process, and be input in PC, judged by the sound signal of inner test procedure to input by PC, obtain compatibility test result and the reading time of USB flash disk.
The present invention can disposable test 32 different capabilities, different brands the compatibility of USB flash disk, and can according to actual needs system to be expanded, easily extensible disposable test 64 or 128 USB flash disks.
Present invention also offers a kind of USB flash disk compatibility automated test method of vehicular transreceiver, the reading time after the method is accessed by the USB flash disk compatibility and USB flash disk adopting the various different brands of test procedure automatically testing, different capabilities, as shown in Figure 5, its concrete steps are as follows:
Step S101, pre-setting the number of USB flash disk to be measured, compatible time limit, reading the time limit and in each USB flash disk to be measured, prestore a fixed frequency value is the audio file of mKHz, described fixed frequency value is the audio file of mKHz in the present embodiment, is preferably the MP3 audio file of 1KHz;
Step S102, setting test count N is from 1;
Step S103, judge whether test count N is greater than the number of USB port in USB commutation circuit, in the present embodiment, USB commutation circuit is not expanded, therefore USB commutation circuit has 32 USB port, if test count N is greater than 32, then performs step S110, namely terminates test; Otherwise, perform step S104;
Step S104, judges whether current test USB flash disk is selected to connect with vehicular transreceiver, if current test USB flash disk and vehicular transreceiver access failure, then performs step S109; If this USB flash disk is selected to connect, then perform step S105;
Step S105, the test procedure of PC sends control command, and usb communication circuit receives instruction, and the corresponding switch of control USB commutation circuit closes, the USB flash disk that turn on-switch is corresponding, and starts timing;
Step S106, judge whether PC receives the signal of 1KHz, when turn on-switch, if USB flash disk and radio and tape player compatibility, then radio and tape player starts the audio file that reads in USB flash disk, and the 1KHz signal of loudspeaker output audio file by radio and tape player, the power conversion through audio conversion circuit is input to the microphone of PC, the 1KHz signal that PC receives audio file then timing terminates, and performs step S108; If USB flash disk and radio and tape player incompatible, radio and tape player cannot read the audio file in USB flash disk, and PC cannot receive the 1KHz signal of audio file, then perform step S107;
Step S107, judges whether timing time is greater than the compatible time limit, if be not more than the compatible time limit, then repeats step S106, if be greater than the compatible time limit, then export the result of " incompatible ", perform step S109;
Step S108, judges whether the reading time is greater than the reading time limit pre-set, if the reading time is greater than read the time limit, then exports result and the time of reading of " NG "; Otherwise export " OK " result and the time of reading;
Step S 109, test count N cumulative 1, and repeat step S103.
By this test procedure, achieve compatibility and the reading time of automatic test USB flash disk, save manpower, effectively improve testing efficiency.
Above-described embodiment is the present invention's preferably embodiment; but embodiments of the present invention are not restricted to the described embodiments; change, the modification done under other any does not deviate from Spirit Essence of the present invention and principle, substitute, combine, simplify; all should be the substitute mode of equivalence, be included within protection scope of the present invention.

Claims (2)

1. the USB flash disk compatibility automated test method of a vehicular transreceiver, the compatibility automated test macro of USB flash disk of wherein said vehicular transreceiver comprises control center, vehicular transreceiver and USB flash disk to be measured, also comprise: multiple USB flash disk to be measured is connected to vehicular transreceiver, and switch the USB commutation circuit of the break-make of multiple USB flash disk to be measured and vehicular transreceiver; Be connected between control center and described USB commutation circuit, for receiving the steering order of control center and controlling the usb communication circuit of the switching action of described USB commutation circuit; Be connected between vehicular transreceiver and control center, the sound signal for being exported by vehicular transreceiver is converted to the audio conversion circuit of control center's discernible signal; And be connected with control center, for stealing voltage from control center and the USB port stealing circuit of powering to described USB commutation circuit and audio conversion circuit; The input end of described audio conversion circuit is connected with the audio output of vehicular transreceiver, and the output terminal of audio conversion circuit is connected with the microphone interface of control center; Described audio conversion circuit forms primarily of an amplifier and signal acquisition module, signal acquisition module forms primarily of multiple sampling resistor, the output terminal that signal acquisition module and USB port stealing circuit steal voltage is connected the input end of described amplifier, and the output terminal of amplifier is connected with the microphone interface of control center; It is characterized in that, described method of testing concrete steps are as follows:
(1), pre-setting the number of USB flash disk to be measured, compatible time limit, reading the time limit and in each USB flash disk to be measured, prestore a fixed frequency value is the audio file of mKHz;
(2) test count N, is set from l;
(3), judge whether test count N is greater than the number of USB port in USB commutation circuit, if test count N is greater than the number of default USB flash disk to be measured, then terminate test; Otherwise, perform next step;
(4), judge whether current test USB flash disk is selected to connect with vehicular transreceiver, if current test USB flash disk access failure, then test count N adds up l, and repeats step (3); If this USB flash disk is connected, then perform next step;
(5), the test procedure of control center sends control command, and usb communication circuit receives the steering order of control center, and the corresponding switch of control USB commutation circuit closes, the USB flash disk that turn on-switch is corresponding, and starts timing;
(6), judge whether control center receives the signal of mKHz, if control center does not receive the signal of mKz, perform step (7); If control center receives the signal of mKHz, then timing terminates, and performs step (8);
(7), judge whether timing time is greater than the compatible time limit, if be not more than the compatible time limit, then repeat step (6), if be greater than the compatible time limit, then export the result of " incompatible ", test count N adds up l, and repeats step (3);
(8), judge whether the reading time is greater than the reading time limit pre-set, if the reading time is greater than read the time limit, then export result and the time of reading of " NG "; Otherwise export " OK " result and the time of reading;
(9), output test result after, test count N adds up l, and repeats step (3).
2. the USB flash disk compatibility automated test method of a kind of vehicular transreceiver according to claim 1, is characterized in that: the fixed frequency value in described step (1) is the audio file of mKHz, is specially the MP3 audio file of lKHz.
CN201210096070.2A 2012-04-01 2012-04-01 System and method for automatic test on vehicle-mounted radio U disk compatibility Active CN102664044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210096070.2A CN102664044B (en) 2012-04-01 2012-04-01 System and method for automatic test on vehicle-mounted radio U disk compatibility

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210096070.2A CN102664044B (en) 2012-04-01 2012-04-01 System and method for automatic test on vehicle-mounted radio U disk compatibility

Publications (2)

Publication Number Publication Date
CN102664044A CN102664044A (en) 2012-09-12
CN102664044B true CN102664044B (en) 2014-12-31

Family

ID=46773507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210096070.2A Active CN102664044B (en) 2012-04-01 2012-04-01 System and method for automatic test on vehicle-mounted radio U disk compatibility

Country Status (1)

Country Link
CN (1) CN102664044B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747406A (en) * 2013-12-21 2014-04-23 柳州航盛科技有限公司 Safe-type detection tool used for vehicle-mounted sound device
DE102015211036A1 (en) 2015-06-16 2016-12-22 Siemens Healthcare Gmbh Check compatibility of device components of a medical device
CN106407067B (en) * 2015-07-27 2019-03-22 惠州市德赛西威汽车电子股份有限公司 The compatibility automated test method and system of vehicle-mounted USB device
CN109324246A (en) * 2018-09-28 2019-02-12 惠州市德赛西威汽车电子股份有限公司 A kind of Auto-Test System and method of testing mobile phone charging compatibility
CN117079699B (en) * 2023-07-20 2024-09-20 重庆蓝鲸智联科技有限公司 Testing device and testing method for identifying USB flash disk equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329644A (en) * 2007-06-20 2008-12-24 富士通株式会社 Test apparatus, test card and test system
CN101656974A (en) * 2009-07-17 2010-02-24 厦门敏讯信息技术股份有限公司 SIM card compatibility automated test method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329644A (en) * 2007-06-20 2008-12-24 富士通株式会社 Test apparatus, test card and test system
CN101656974A (en) * 2009-07-17 2010-02-24 厦门敏讯信息技术股份有限公司 SIM card compatibility automated test method and device

Also Published As

Publication number Publication date
CN102664044A (en) 2012-09-12

Similar Documents

Publication Publication Date Title
CN102664044B (en) System and method for automatic test on vehicle-mounted radio U disk compatibility
CN102636712B (en) A kind of card compatibility automated test macro of SD of vehicular transreceiver and method
CN102098714B (en) Terminal power consumption testing system and testing method
CN103002473A (en) Method, device and system for testing wireless terminal
CN106532186A (en) Charging method, charging circuit and mobile terminal
CN105187631A (en) Intelligent terminal key device based on earphone interface and control method of intelligent terminal key device
CN103260205A (en) Initiatively switching network connecting method and initiatively switching network connecting device
CN111338867A (en) Type-C interface testing system, method, device and medium
CN201075704Y (en) Detection circuit of electrical equipment and mobile phone having the circuit
CN105406290A (en) Light-load protection type socket
CN104820623A (en) Hardware watchdog system of vehicle controller
CN104842895B (en) Power transfer device and method, car-mounted terminal and vehicle
CN110113692A (en) A kind of sound signal outputting device, computer equipment and its control method
CN207219048U (en) SIM card batch detecting device
CN104917245A (en) Charging management circuit, mobile terminal and charging control method of mobile terminal
CN104714618A (en) Reset circuit
CN103197199B (en) Interrupt detection apparatus and method
CN208001364U (en) A kind of two-way microphone automatic switch-over circuit
CN102104434A (en) Method for testing Bluetooth emission performance of mobile phone by using channel management unit (CMU) spectrum analysis module
CN103872899A (en) Power converter, electronic device and method for detecting output power of power converter
CN112820345A (en) Memory card compatibility testing method and system
CN208767796U (en) Three-phase current unbalance automatic control system
CN201562021U (en) Test circuit, test card and test system of SD card interface
CN101521343B (en) Energy-saving e computer connectors and method for controlling same
CN204312242U (en) A kind of ATS Automatic Test System of ignition module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: HUIZHOU DESAY SV AUTO. ELECTRONICS CO., LTD.

Free format text: FORMER OWNER: HUIZHOU DESAY AUTOMOTIVE ELECTRONICS CO., LTD.

Effective date: 20130105

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 516006 HUIZHOU, GUANGDONG PROVINCE TO: 516000 HUIZHOU, GUANGDONG PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20130105

Address after: 516000 Guangdong province Huizhou City Zhongkai high tech Zone and five West Road No. 103

Applicant after: Huizhou Desay SV Auto. Electronics Co., Ltd.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Industrial Development Zone No. 15 District

Applicant before: Huizhou Desay Automotive Electronics Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 516000 Guangdong province Huizhou Zhongkai high tech Zone and five West Road No. 103

Patentee after: HUIZHOU DESAY SV AUTOMOTIVE CO., LTD.

Address before: 516000 Guangdong province Huizhou Zhongkai high tech Zone and five West Road No. 103

Patentee before: Huizhou Desay SV Auto. Electronics Co., Ltd.