Summary of the invention
The purpose of the present invention is to provide a kind of production test method of wireless module for vehicle mounted guidance host and it isSystem, to improve the missing of the prior art.
The present invention in order to solve the above-mentioned technical problem, the technical solution adopted is that: one kind for vehicle mounted guidance host it is wirelessThe production test method of module, for testing the wireless module of vehicle mounted guidance host based on android system, comprising: to be measuredIperf tool is installed respectively in vehicle mounted guidance host and control equipment;The vehicle mounted guidance host to be measured is placed in shielded boxIt is interior, and the antenna of wireless router is placed in the shielded box after attenuator;The wireless router is passed through into netLine is connected to the control equipment, and the control equipment is made to pass through the wireless router and the vehicle mounted guidance host to be measuredIt establishes and is wirelessly connected;And the Iperf tool is separately operable by the vehicle mounted guidance host to be measured and the control equipment,The vehicle mounted guidance to be measured is completed by the wireless communication between the vehicle mounted guidance host to be measured and the control equipmentThe bandwidth test of the wireless module of host.
Preferably, the Iperf tool is separately operable by the vehicle mounted guidance host to be measured and the control equipment, led toThe wireless communication crossed between the vehicle mounted guidance host to be measured and the control equipment completes the vehicle mounted guidance master to be measuredThe step of the bandwidth test of the wireless module of machine includes: by the institute of the vehicle mounted guidance host operation installation to be measuredIperf tool is stated, the first total amount of data is generated;By the Iperf tool of the control equipment operation installation, the second number is generatedAccording to total amount and data average transmission rate;Judge first total amount of data and whether second total amount of data equal and instituteState whether the data average transmission rate is greater than preset value;And if first total amount of data is equal to second dataTotal amount and the data average transmission rate are more than or equal to the preset value, then determine the vehicle mounted guidance host to be measuredThe wireless module be qualified product, otherwise, it is determined that the wireless module of the vehicle mounted guidance host to be measured be it is unqualifiedProduct.
Preferably, the vehicle mounted guidance host to be measured is client, and the control equipment is server.
Correspondingly, it the present invention also provides a kind of production test system for vehicle mounted guidance host wireless module, is used forTest the wireless module of vehicle mounted guidance host based on android system, comprising: the described of the wireless module is installed and vehicle-mounted is ledBoat host is connected to the wireless router of the vehicle mounted guidance host and is connected to the control equipment of the wireless router,In, the vehicle mounted guidance host is equipped with Iperf tool, and it is total to generate the first data for initiating test request as clientAmount;The control equipment is equipped with the Iperf tool, as server, for monitoring from the vehicle mounted guidance hostThe test request generates the second total amount of data and data average transmission rate, be also used to judge first total amount of data andWhether second total amount of data is equal and whether the average transmission rate is greater than preset value, if first data are totalIt measures whether equal and described with second total amount of data average transmission rate is greater than the preset value, then determines described vehicle-mounted leadBoat host is qualified product.
It preferably, further include attenuator, for connecting the Anneta module of the wireless router and the wireless router,The decaying of signal caused by analog signal transmission.
It preferably, further include shielded box, for placing the day of the vehicle mounted guidance host and the wireless routerWire module shields interference of other signals to test signal on production line.
Preferably, built-in antenna and the vehicle mounted guidance master of the wireless router by the vehicle mounted guidance hostMachine.
The implementation of the embodiments of the present invention has the following beneficial effects: provide through the invention for vehicle mounted guidance hostThe production test method and system of wireless module, wireless module that can in the production line to vehicle mounted guidance based on android systemData transmission performance carry out validity test, it is simple to operate.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every otherEmbodiment shall fall within the protection scope of the present invention.
Iperf work need to be used provided by the present invention for the production test method and system of vehicle mounted guidance host wireless moduleTool is tested.Iperf is a applied in network performance test tool, may be conveniently used measurement network bandwidth and network quality.The configuration of the parameters such as Iperf supported protocol, timing, buffer area adjusts, and reports TCP/UDP maximum bandwidth, delay jitter, data packetThe statistical informations such as loss.A host must be set to client when being tested using Iperf, a host is set as takingBusiness device.
Fig. 1 is the production test method 100 for vehicle mounted guidance host wireless module that one embodiment of the invention providesFlow chart.Vehicle based on android system is used for provided by the present invention for the production test method of vehicle mounted guidance host wireless moduleCarry navigation host.As shown in Figure 1, the production test method 100 for vehicle mounted guidance host wireless module includes the following steps.
Step S102: Iperf tool is installed respectively on vehicle mounted guidance host to be measured and control equipment.
Specifically, in an embodiment of the present invention, vehicle mounted guidance host to be measured is asked as client for initiating testIt asks, controls equipment as server, for monitoring the test request from vehicle mounted guidance host to be measured.
Step S104: vehicle mounted guidance host to be measured is placed in shielded box, and by the antenna of wireless router by decliningIt is placed in shielded box after subtracting device.
Specifically, in an embodiment of the present invention, attenuator is 20db attenuator, can be used for analog signal by certainSignal caused by after distance (for example, 100 meters) transmission is decayed.Wireless router passes through the built-in day of vehicle mounted guidance host to be measuredLine is connect with vehicle mounted guidance host to be measured.
Step S106: being connected to control equipment by cable for wireless router, and control equipment is made to pass through wireless routerIt establishes and is wirelessly connected with vehicle mounted guidance host to be measured.
Specifically, in an embodiment of the present invention, control equipment, which can be desktop computer, laptop etc., to pass throughThe equipment that cable is communicated with wireless router.
Step S108: Iperf tool is separately operable by vehicle mounted guidance host to be measured and control equipment, passes through vehicle to be measuredIt carries navigation host and controls the bandwidth test that the wireless communication between equipment completes the wireless module of vehicle mounted guidance host to be measured.
Fig. 2 is separately operable Iperf by vehicle mounted guidance host to be measured and control equipment for what one embodiment of the invention providedTool completes the nothing of vehicle mounted guidance host to be measured by the wireless communication between vehicle mounted guidance host to be measured and control equipmentThe flow chart of the bandwidth test of wire module.
Step S202: by the Iperf tool of vehicle mounted guidance host to be measured operation installation, the first total amount of data is generated.
Specifically, for carrying out TCP test, the test command of the vehicle mounted guidance host to be measured execution as clientAre as follows: Client:iperf-c server-ip-p server-port-i 1-t 10-w 20K.Wherein ,-c is indicated with clientMode operation;Server-ip indicates server ip;- p indicates the port that server is monitored;- i be used for be arranged Bandwidth Report whenBetween be spaced, unit is the second;- t is used to be arranged the duration of test, and unit is the second;- w, generally can be with for tcp window size to be arrangedWithout setting, default.
Step S204: by the Iperf tool of control equipment operation installation, the second total amount of data and data average transmission are generatedRate.
Specifically, for carrying out TCP test, the test command of the control equipment execution as server are as follows: Server:iperf-s-p 12345-i 1-M.Wherein ,-s expression is run with server mode;- p indicates the port that server-side is monitored;- i is usedIn the time interval of setting Bandwidth Report, unit is the second;- t is used to be arranged the duration of test, and unit is the second.
Step S206: judge whether the first total amount of data and the second total amount of data are equal.If equal, step is proceeded toS208;If unequal, determine that vehicle mounted guidance host to be measured is rejected product.
Step S208: judge whether data average transmission rate is greater than preset value.If data average transmission rate is greater thanOr be equal to preset value, then determine that vehicle mounted guidance host to be measured is qualified product;If data average transmission rate is less than preset value,Then determine that vehicle mounted guidance host to be measured is rejected product.
For carrying out TCP test below, the production for vehicle mounted guidance host wireless module that the present invention will be described in detail is surveyedMethod for testing.Firstly, installing Iperf tool respectively on vehicle mounted guidance host to be measured and computer, enable vehicle mounted guidance host for visitorFamily end, computer are server-side;Vehicle mounted guidance host to be measured is placed in shielded box, and the antenna of wireless router is passed throughIt is placed in shielded box after 20db attenuator;Wireless router is connected to computer by cable, and is electricity by wireless routerIt is 192.168.0.3 that brain, which distributes IP address,;The wireless module for opening vehicle mounted guidance host to be measured is searched for and is connected to wirelessRouter is vehicle mounted guidance host assignment IP address 192.167.10.58 by wireless router;In vehicle mounted guidance host to be measuredTest command is executed on Iperf tool: Client:iperf-c server-ip-p server-port-i 1-t 10-w20K, the first total amount of data of generation are 107Mbytes;The test command executed on Iperf tool on computers: Server:Iperf-s-p12345-i 1-M, the second total amount of data of generation is 107Mbytes and data average transmission rate is 89.9Mbit/s;First total amount of data and the second total amount of data is equal and data average transmission rate 89.9Mbit/s is greater than preset value 87Mbit/S, then vehicle mounted guidance host to be measured is qualified product.
Advantageously, the production test method for vehicle mounted guidance host wireless module provided through the invention, Ke YiValidity test is carried out to the data transmission performance of the wireless module of vehicle mounted guidance based on android system on production line, it is easy to operateIt is convenient.
Fig. 3 is the production test system 300 for vehicle mounted guidance host wireless module that one embodiment of the invention providesModule map.Vehicle based on android system is used for provided by the present invention for the production test system of vehicle mounted guidance host wireless moduleCarry navigation host.As shown in figure 3,300 vehicle mounted guidance host 310 of production test system, being connected to the nothing of vehicle mounted guidance host 310Line router 320 and the control equipment 330 for being connected to wireless router 320.
In an embodiment of the present invention, vehicle mounted guidance host 310 is equipped with Iperf tool, as client, for initiatingTest request generates the first total amount of data.Wireless router 320 is led by the built-in antenna of vehicle mounted guidance host 310 with vehicle-mountedThe host 310 that navigates is connected, and is connected by cable with control equipment 330, for building in control equipment 330 with vehicle mounted guidance host 310It is vertical to be wirelessly connected.Control equipment 330 is equipped with Iperf tool, as server, comes from vehicle mounted guidance master to be measured for monitoringThe test request of machine generates the second total amount of data and data average transmission rate.
In an embodiment of the present invention, control equipment 330 is also used to judge the first total amount of data and the second total amount of data isIt is no equal, it is also used to judge whether average transmission rate is greater than preset value, if the first total amount of data and the second total amount of data phaseDeng and average transmission rate whether be greater than preset value, then determine vehicle mounted guidance host 310 be qualified product.
In an embodiment of the present invention, production test system 300 further includes attenuator 340 and shielded box 350.Attenuator340 for connecting the Anneta module 322 of wireless router 320 Yu wireless router 320, and analog signal passes through certain distance (exampleSuch as, 100 meters) transmission after caused by signal decay.Shielded box 350 is for placing vehicle-mounted navigation host 310 and wireless router 320Anneta module 322, shield production line on other signals to test signal interference.
Advantageously, the production test system of the wireless module for vehicle mounted guidance host provided through the invention, can be withValidity test, operation letter are carried out to the data transmission performance of the wireless module of vehicle mounted guidance based on android system in the production lineFolk prescription is just.
Above disclosed is only a preferred embodiment of the present invention, cannot limit the power of the present invention with this certainlySharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and weighs according to the present inventionBenefit requires made equivalent variations, still belongs to the scope covered by the invention.