A kind of embedded PCB A upward method and system thereof of communication module of testing
Technical field
The present invention relates to a kind of method and system thereof that embedded PCB A goes up communication module that test.
Background technology
PCBA: be the abbreviation of English Printed Circuit Board+Assembly, just the PCB hollow plate passes through the SMT(surface mounting technology) go up part, pass through the whole processing procedure of DIP plug-in unit again.PCBA in the present invention is exactly the circuit board that has not also had the complete machine assembling behind the paster.
Embedded device enters in the middle of people's the life more and more, and is industrial as industrial computer, and touch-screen etc. are commercial as client computer, show screen etc., common embedded device just has MP3, MP4, wearable electronic in the life in addition, set-top box, mobile phone, dull and stereotyped etc.Only dull and stereotyped one, at present according to industry development trend and analysis, the shipment amount of panel computer in 2013 is near 200,000,000.Under so large-scale radix background, production efficiency has just become to restrict the short slab of embedded production capacity.Particularly present embedded device will be realized increasing function, is provided with increasing communication module at PCBA, as WIFI module etc.In order to enhance productivity, guarantee production unit in technologic quality, so we need propose a kind of method that the last communication module of embedded PCB A is tested fast.Can test out the quality of communication module fast, guarantee the correct welding of communication module among the PCBA and correct parameter testing, guarantee the reliability of SMT technology.
A kind of " proving installation of mobile TV PCBA and method of testing " disclosed in the prior art, see that publication number is: CN101360257, open day be: 20090204 Chinese patent, describe the proving installation of a kind of PCBA of mobile TV, comprised DVD player, AV signal distributor, modulation, frequency mixer and test fixture.Used DVD player, AV signal distributor, modulation, frequency mixer and test fixture to come mobile TV PCBA is tested in the documents, because the television antenna feedback point on the PCBA plate that the last communication module of embedded PCB A does not have to mention in the documents, can't received RF signal, so this documents can't be tested the communication module on the embedded PCB A.
Disclose a kind of " bluetooth earphone PCBA batch testing method and system " in the prior art, seen that publication number is: CN102243281A open day was: 20111116 Chinese patent, the PCBA batch testing method of bluetooth earphone has been described.Technical characterictic in the documents is for using the computer have test procedure the PCBA of bluetooth earphone is carried out batch testing and showing test results at display, need use test computer and display, when a plurality of testers will test a large amount of PCBA, prepare a plurality of test computers and display.Computer and display are bought and are used the cost that has increased test on the one hand, have also taken the place on the other hand, and simultaneously, also inconvenient when computer and display move, it is very convenient not seem during test, and limitation is arranged.
" a kind of PCBA device for testing functions and method of testing thereof " disclosed in the prior art, see that publication number is: CN 102854452A, open day be: 20130102 Chinese patent, a kind of PCBA device for testing functions has been described, digital multimeter is arranged, and a changeover mechanism and a Function detection mechanism form.Disclosed technical characterictic can be tested multiple current, built-in relay, external relay, switch key and keyboard in this documents, and then can't test for the quality, particularly communication module internal work of the communication module on the embedded PCB A are bad.
Disclose " a kind of PCBA automated testing method and system of display device " in the prior art, seen that publication number is: CN103002317A open day was: 20130327 Chinese patent, a kind of PCBA automated testing method of display device has been described.Documents need be used industrial computer and display device equally to the test of PCBA, and certain limitation is arranged.
A kind of " the open PCBA functional test of modularization platform, test macro and method " disclosed in the prior art, see that publication number is: CN102590730A, open day be: 20120718 Chinese patent, the open PCBA functional test of a kind of modularization platform has been described.In this documents the monitor station that comprises needle-bar has been used in the test of PCBA, also be useful on the testing needle corresponding with the PCBA test point on the monitor station of needle-bar, need when designing, PCB reserve test point in the time of then will detecting PCBA, also to make needle-bar simultaneously, increase the time of research and development to testing process greatly, also strengthened the testing cost of enterprise simultaneously.During the change of the position of components on the PCBA of different batches simultaneously, in case the test point on the PCB is blocked when needing to change the position, then needle-bar will be revised accordingly, and is very loaded down with trivial details.
In sum, problem such as there is the testing cost height in prior art to the test that PCBA goes up communication module, and testing process is loaded down with trivial details has limited the telecommunications production efficiency of products, can not meet the demand of technical development.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of method and system that embedded PCB A goes up communication module of testing, and upward whether communication module SMT is normal can to test out PCBA quickly and accurately.
For achieving the above object, the invention provides a kind of method that embedded PCB A goes up communication module of testing, comprise the steps:
Scanning PCBA goes up the plug type storer in the memory interface;
Loading is pre-stored in the test code of plug type storer, the test communication module;
If test result is normal, then the prompt facility on the driving PCB A sends regular prompt information, if test result is unusual, then the prompt facility on the driving PCB A sends abnormal prompt information.
Further, described plug type storer is the SD card.
Further, load preceding linux kernel and the least root file system that is pre-stored in the plug type storer that load earlier of the test code that is pre-stored in the plug type storer.
Further, the concrete steps of test communication module are:
To communication module sending module type information reading order; Wait for that communication module returns the module type information, if communication module does not return the module type information in the time-out time of setting, then test result is unusual, finishes test;
If communication module returns the module type information in the time-out time of setting, then read and to plug the driving that prestores in the storer and load corresponding the driving according to the module type information, the configuration communication interface, detect the communication interface starting state, if communication interface starts unusual, then test result is unusual, finishes test;
If communication interface starts normally then uses communication module and external communication apparatus to carry out communication, if can not return normal communication information then test result is unusual, finish test, otherwise test result is normal, finish to test.
Further, described communication module is the WIFI module.
Further, described communication interface is radio network interface.
Further, the concrete steps of using communication module and external communication apparatus to carry out communication are:
Use the WIFI module that external WIFI signal is carried out AP scanning, if the AP tabulation is sky, then test result is unusual, finishes test; Otherwise test result is normal, finishes test.
Further, described prompt facility is the LED lamp, and described regular prompt information is LED lamp Chang Liang, and abnormal prompt information is the flicker of LED lamp.
For realizing goal of the invention, the present invention also provides a kind of embedded PCB A to go up the fast testing system of communication module, comprise for pointing out test result whether normally prompt facility, communication module to be measured, the plug type storer that is used for connecting the memory interface of plug type storer and stores test code, it is characterized in that: also comprise with lower module:
Memory Controller is for the plug type storer of swept memory interface;
The communication module controller is used for the control communication module;
Automatically matching module is used for loading the test code that is pre-stored in the plug type storer;
Automatic test module is used for the test communication module;
Wherein, when test result just often, automatic test module drives described prompt facility and sends regular prompt information; When test result was unusual, automatic test module drove described prompt facility and sends abnormal prompt information.
Further, described fast testing system also comprises:
Embedded kernel loads module: be used for before matching module loads the test code that is pre-stored in the plug type storer automatically, loading earlier linux kernel and the least root file system that is pre-stored in the plug type storer.
Further, described automatic test module comprises with lower unit:
Read module model unit is used for to communication module sending module type information reading order; Wait for that communication module returns the module type information, if communication module does not return the module type information in the time-out time of setting, then test result is unusual, finishes test;
The module drive loading unit, be used for when read module model unit successfully reads type information, read and to plug the driving that prestores in the storer and load corresponding the driving according to the module type information, the configuration communication interface, detect the communication interface starting state, if communication interface starts unusual, then test result is unusual, finishes test;
And module communication unit, be used for detecting the communication interface starting state just often when the module drive loading unit, use communication module and external communication apparatus to carry out communication, if can not return normal communication information then test result is unusual, finish test, otherwise test result is normal, finishes test.
The present invention has following advantage: PCBA and powers on and just begin to load in the plug type storer test procedure and test, and does not have other unnecessary steps, demonstrates test result when end of test (EOT) onboard intuitively, has improved testing efficiency.If adopt pipelining especially, prepare a plurality of plug type storeies, a tester inserts the plug-in storer specially and powers on for simultaneously on the PCBA plate PCBA plate, another tester checks test result specially and sorts the PCBA plate of different test results and the plug type storer is taken out, in the time of just can having avoided a people to test in stand-by period of PCBA test process, can test the correctness that Embedded PCBA goes up communication module SMT fast, test and production efficiency have been improved greatly, for the operate as normal of follow-up complete machine provides hardware guarantee, obtained good effect.
Description of drawings
Fig. 1 is that the described PCBA of the specific embodiment of the invention goes up communication module test system structure synoptic diagram;
Fig. 2 is that the described PCBA of the specific embodiment of the invention goes up communication module method of testing process flow diagram.
Embodiment
By describing technology contents of the present invention, structural attitude in detail, realized purpose and effect, give explanation below in conjunction with embodiment and conjunction with figs. are detailed.
The abbreviation of AP:Access point, i.e. access point is in the industry to the general designation of wireless router; AP is responsible for broadcasting the self networks data in the present invention, and WIFI is provided signal, is used for giving the WIFI module of surveying to scan, and judges whether WIFI module scanning router is normal.
As shown in Figure 1, present embodiment provides a kind of embedded PCB A to go up the fast testing system of communication module, comprises communication module, plug type storer, Memory Controller, communication module controller, automatic matching module 4, automatic test module 5, reminding module.Communication module wherein can be WIFI module 1, the plug type storer can be SD card 2, Memory Controller is the SD controller, the communication module controller is that the WIFI module controller is the SDIO controller, the SDIO agreement is the sub-protocol of SD agreement, so they share SD/SDIO controller 3,, reminding module can be LED lamp 6.Native system also is useful on the wireless aps 7 that the WIFI signal is provided outward.
Flow process as shown in Figure 2, below in conjunction with embodiment method of testing of the present invention is described in detail, in this embodiment, embedded PCB A is the dull and stereotyped PCBA of Android, have USB control unit interface or SD control unit interface on the dull and stereotyped PCBA of existing Android, the storer of plug type can be USB flash disk or SD card, these memory sizes are little, cost is mobile everywhere after hanging down and also can plugging, set-up procedure is simple, just can prepare a plurality of storeies that can be used for testing as long as copy to paste, conveniently carry out test in batches.At first the plug type storer in the memory interface scans on step S101 need be to PCBA, for next step loading ready.
Reload the test code that is pre-stored in the plug type storer, the test communication module.Test code is existed in the plug type storer, do not need during test the PCBA plate is made amendment, accelerated testing process.Owing to the plug type storer is scanned, then can directly load test code.Test code can be write the content measurement of communication module as required: if content measurement is simple, as only being that the test communication module exists, that the hardware testing code that can directly write bottom is tested the progress that can accelerate to test.If content measurement relative complex, as need all carrying out the test of integrality to the various aspects of communication module, then can use embedded kernel (as WINCE, Linux etc.) and the least root file system, because embedded kernel and least root file system can provide the environment of an operating system for test process, comprised the environment that the relevant network environment of communication module and subsequent drive load.Reload test code on the basis of embedded kernel and test, also can reduce the workload that test code is write.Present embodiment has been selected linux kernel, then linux kernel and least root file system to be deposited in the plug type storer in advance, in step S102, load earlier linux kernel and the least root file system that is pre-stored in the plug type storer then, after reload test code and enter testing process.
Test PCBA goes up communication module SMT(Surface Mount) quality to test communication module whether can normal communication, can show that then communication module SMT is normal by normal communication, can not normal communication then communication module SMT is unusual.Use communication module to carry out communication test and will drive communication module earlier, drive the model that communication module will be known communication module earlier, according to this principle, then can carry out according to following steps the test of communication module:
To communication module sending module type information reading order.Can use different controllers to operate on it for different communication modules, can adopt the SD(serial data when communication module is the WIFI module) controller operates it, namely utilizes the SDIO(serial data input and output of SD controller in step S103) send bus and send to the WIFI module and read the model message command.Wait in step S104 that then communication module returns the module type information, if communication module does not return the module type information in the time-out time of setting, it is unusual then to enter step S111 test result, finishes test;
If communication module returns the module type information in the time-out time of setting, then read at step S105 and can plug the driving that prestores in the storer and load corresponding the driving according to the module type information, the configuration communication interface, detect the communication interface starting state, judge at step S106 whether network interface starts normal.When communication module is the WIFI module then communication interface be radio network interface WLAN0, then be specially configuring wireless network interface WLAN0 among the step S105 in the present embodiment, detect the WLAN0 starting state.Because test procedure carries out under the Linux environment, the Linux environment provides the radio network interface configurator, and then the radio network interface WLAN0 that the WIFI module drive is registered in linux kernel is configured, and detects the WLAN0 starting state.If the communication interface starting state is unusual, it is unusual then to enter step S111 test result, finishes test;
If the communication interface starting state is normally then use communication module and external communication apparatus communication, if can not Returning communication information then corresponding communication module is unusual, finish test, otherwise test result be normal, finish test.When using communication module to carry out communication detection, corresponding external communication apparatus should be provided, when being the WIFI module as communication module then external communication apparatus should be wireless aps, wireless aps can provide the WIFI signal, then the WIFI module is carried out communication and is entered step S107 and use the WIFI module that the WIFI signal that presets is carried out AP scanning, and whether be empty, if the AP tabulation is to be sky if detecting the AP tabulation at step S108 then, it is unusual then to enter step S111 test result, finishes test; Otherwise it is normal to enter step S109 test result, finishes test.
After above test code executed, if test result is normal, then the prompt facility on the driving PCB A sent regular prompt information, if test result is unusual, then the prompt facility on the driving PCB A sends abnormal prompt information.The dull and stereotyped PCBA of Android often has can allow the user directly get access to test result whether normal prompt facility has LED, loudspeaker or Vib., regular prompt information can be the work of driving arrangement continuation, as LED Chang Liang, loudspeaker ring always, Vib. vibrates always, is LED Chang Liang on the driving PCB A at the normal back of step S109 test result step S110 then; Abnormal prompt information can be the driving arrangement intermittent work, and as LED flicker, loudspeaker ring discontinuously, and Vib. vibrates discontinuously, is LED Chang Liang on the driving PCB A at the unusual back step S112 of step S111 test result then.Like this when end of test (EOT) on the PCBA plate difference of equipment response expressed test result simple and clearly.
When needing simultaneously a large amount of embedded PCB A tested, can use a plurality of SD cards that PCBA is tested, namely can rapidly normal and unusual PCBA plate be separated, just can be ready for ensuing production, have Practical significance.The mobility of plug type storeies such as SD card makes that upward the test of communication module can be in any place for PCBA, and simultaneously because SD card price is cheap, SD card volume is little also only need to take quite little space, can reduce the testing cost of enterprise greatly.
In other embodiments, the corresponding module in the present embodiment and step can be applied among the test of other communication modules such as GPS module, Bluetooth module, modem module.
In other embodiments, the corresponding module in the present embodiment and step can be applied to mobile phone, MP4, other embedded PCBs such as touch-screen A.
The above only is embodiments of the invention; be not so limit claim of the present invention; every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.