A kind of method and system thereof of testing Modem module on embedded PCB A
Technical field
The present invention relates to a kind of method and system thereof of testing Modem module on embedded PCB A.
Background technology
PCBA: the abbreviation being English PrintedCircuitBoard+Assembly, namely PCB hollow plate, through SMT(surface mounting technology) upper part, then through the whole processing procedure of DIP plug-in unit.PCBA is in the present invention exactly the circuit board also not having complete machine to assemble after paster.
Embedded device enters in the middle of the life of people more and more, industrial as industrial computer, and touch-screen etc. are commercial as thin client, display screens etc., also have common embedded device in life just to have MP3, MP4, wearable electronic, 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 close to 200,000,000.Under so large-scale radix background, production efficiency has just become the short slab of the embedded production capacity of restriction.Particularly present embedded device will realize increasing function, PCBA is provided with increasing functional module, as Modem module etc.In order to enhance productivity, ensure that production unit is in technologic quality, so we need to propose a kind of method of Modem module on embedded PCB A being carried out to test fast.The quality of Modem module can be tested out fast, ensure the correct welding of Modem module in PCBA and correct parameter testing, guarantee the reliability of SMT technique.
One " proving installation of mobile TV PCBA and method of testing " is disclosed in prior art, see that publication number is: CN101360257, publication date is: the Chinese patent of 20090204, describe the proving installation of the PCBA describing a kind of mobile TV, comprise DVD player, AV signal distributor, modulation, frequency mixer and test fixture.Employ DVD player, AV signal distributor, modulation, frequency mixer and test fixture in documents to test mobile TV PCBA, the television antenna feedback point in the PCBA board mentioned in documents is not had due to Modem module on embedded PCB A, cannot received RF signal, therefore this documents cannot be tested the Modem module on embedded PCB A.
Disclose one " bluetooth earphone PCBA batch testing method and system " in prior art, see that publication number is: CN102243281A, publication date is: the Chinese patent of 20111116, describes the PCBA batch testing method of bluetooth earphone.Technical characteristic in documents is use the computer with test procedure to carry out batch testing to the PCBA of bluetooth earphone also to show test results over the display, need to use test computer and display, when there being multiple tester will test a large amount of PCBA, multiple test computer and display be prepared.Computer and display are bought and are used the cost adding test on the one hand, also occupy place on the other hand, meanwhile, also inconvenient when computer and display move, and do not seem very convenient, have limitation during test.
Disclose in prior art " a kind of PCBA device for testing functions and method of testing thereof ", see that publication number is: CN102854452A, publication date is: the Chinese patent of 20130102, describes a kind of PCBA device for testing functions, there is digital multimeter, a changeover mechanism and Function detection mechanism composition.Technical characteristic disclosed in this documents can be tested multiple current, built-in relay, external relay, switch key and keyboard, and for the quality of the Modem module on embedded PCB A, particularly Modem module internal work is bad, cannot test.
Disclose in prior art " a kind of PCBA automated testing method of display device and system ", see that publication number is: CN103002317A, publication date is: the Chinese patent of 20130327, describes a kind of PCBA automated testing method of display device.Documents needs to use industrial computer and display device to the test of PCBA equally, has certain limitation.
One " modularization open PCBA functional test platform, test macro and method " is disclosed in prior art, see that publication number is: CN102590730A, publication date is: the Chinese patent of 20120718, describes a kind of modularization open PCBA functional test platform.In this documents, the monitor station comprising needle-bar is used to the test of PCBA, the monitor station of needle-bar also has for the testing needle corresponding with PCBA test point, need when then will detect PCBA to reserve test point when PCB design, also to make needle-bar simultaneously, considerably increase the time of research and development to testing process, also increase the testing cost of enterprise simultaneously.When position of components simultaneously on the PCBA of different batches changes, be blocked once the test point on PCB and need to change position, then needle-bar will be revised accordingly, very loaded down with trivial details.
In sum, it is high to there is testing cost to the test of Modem module on PCBA in prior art, and the problems such as testing process is loaded down with trivial details, have limited the production efficiency of telecommunications product, 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 testing Modem module on embedded PCB A, whether normally can test out Modem module SMT on PCBA quickly and accurately.
For achieving the above object, the invention provides a kind of method of testing Modem module on embedded PCB A, comprise the steps:
Plug type storer on scanning PCBA in memory interface;
Load the test code being pre-stored in plug type storer, test Modem module;
If test result is normal, then the prompt facility on driving PCB A sends regular prompt information, if test result is abnormal, then the prompt facility on driving PCB A sends abnormal prompt information.
Further, described plug type storer is SD card.
Further, the linux kernel and the least root file system that are pre-stored in plug type storer is first loaded before loading is pre-stored in the test code of plug type storer.
Further, the concrete steps of testing Modem module are:
To Modem module sending module type information reading order; Wait for that Modem module returns module type information, if Modem module does not return module type information in the time-out time of setting, then test result is abnormal, terminates test;
If Modem module returns module type information in the time-out time of setting, then read the driving that prestores in pluggable storer and load corresponding driving according to module type information, the network interface of configuration Modem module, Sampling network interface starting state, if network interface starts abnormal, then test result is abnormal, terminates test;
If network interface starts normal, use Modem module and external communication apparatus to carry out dial-up connection, if dial unsuccessfully, then test result is abnormal, terminates test; Otherwise test result is normal, terminate test.
Further, described prompt facility is LED, and described regular prompt information is LED Chang Liang, and abnormal prompt information is LED flicker.
For realizing goal of the invention, present invention also offers the fast testing system of Modem module on a kind of embedded PCB A, comprising for pointing out test result whether normal prompt facility, Modem module to be measured, plug type storer for the memory interface and On-board test code that connect plug type storer, it is characterized in that: also comprise with lower module:
Memory Controller, for the plug type storer in swept memory interface;
Modem module controller, for communication control module;
Auto-matching module, for loading the test code being pre-stored in plug type storer;
Automatic test module, for testing Modem module;
Wherein, when test result is normal, the prompt facility described in automatic test module drives sends regular prompt information; When test result is abnormal, the prompt facility described in automatic test module drives sends abnormal prompt information.
Further, described fast testing system also comprises:
Embedded mmdb load-on module: for first loading the linux kernel and the least root file system that are pre-stored in plug type storer before Auto-matching module loading is pre-stored in the test code of plug type storer.
Further, described automatic test module comprises with lower unit:
Read module model units, for Modem module sending module type information reading order; Wait for that Modem module returns module type information, if Modem module does not return module type information in the time-out time of setting, then test result is abnormal, terminates test;
Module drive loading unit, for when read module model units successfully reads type information, read the driving that prestores in pluggable storer and load corresponding driving according to module type information, the network interface of configuration Modem module, Sampling network interface starting state, if network interface starts abnormal, then test result is abnormal, terminates test;
And module communication unit, for when module drive loading unit detects that network interface starting state is normal, carry out dial-up connection with external communication apparatus, if dial unsuccessfully, then test result is abnormal, terminates test; Otherwise test result is normal, terminate test.
Tool of the present invention has the following advantages: PCBA powers on and just starts to load test procedure in plug type storer and test, and does not have the step that other are unnecessary, demonstrates test result intuitively onboard, improve testing efficiency at the end of test.If adopt pipelining especially, prepare multiple plug type storer, plug-in storer inserts in PCBA board and powers on to PCBA board simultaneously by a tester specially, another tester checks test result specially and sorts the PCBA board of different test result and taken out by plug type storer, just can be avoided the stand-by period at PCBA test process when a people tests, the correctness of Modem module SMT on Embedded PCBA can be tested fast, greatly improve test and production efficiency, for the normal work of follow-up complete machine provides hardware guarantee, achieve good effect.
Accompanying drawing explanation
Fig. 1 is Modem module test system structure schematic diagram on PCBA described in the specific embodiment of the invention;
Fig. 2 is Modem module method of testing process flow diagram on PCBA described in the specific embodiment of the invention.
Embodiment
By describing technology contents of the present invention, structural attitude in detail, realized object and effect, accompanying drawing is coordinated to be explained in detail below in conjunction with embodiment.
Modem and modulator-demodular unit, it is a kind of computer hardware, it can translate into the pulse signal that can transmit along ordinary telephone line the digital signal of computing machine, and these pulse signals can be received by another modulator-demodular unit of the circuit other end, and is translated into the language that computing machine can understand.This simple procedure completes the communication of two intercomputers.In this case, Modem module can refer to the hardware device of 2G (GSM), 3G (WCDMA, CDMA-EVDO, TDSCDMA), 4G (LTE, WiMax) network.
As shown in Figure 1, present embodiments provide the fast testing system of Modem module on a kind of embedded PCB A, comprise Modem module 1, plug type storer, Memory Controller, Modem module controller, Auto-matching module 4, automatic test module 5, reminding module.Wherein Memory Controller is SD controller 3, and Modem module controller is USB controller 7, and plug type storer can be SD card 2, and reminding module can be LED 6.
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, with 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 low and pluggable after move everywhere, set-up procedure is simple, as long as copy to paste and just can prepare multiple storer that can be used for testing, conveniently carry out the test of batch.First need to scan the plug type storer in memory interface on PCBA, for next step loading is ready in step S101.
Reload the test code being pre-stored in plug type storer, test Modem module.Test code is existed in plug type storer, do not need during test to modify to PCBA board, accelerate testing process.Owing to scanning plug type storer, then directly can load test code.Test code can be write the content measurement of Modem module as required: if content measurement is simple, and as being only that test Modem module exists, that hardware testing code directly can writing bottom is tested, and can accelerate the progress of testing.If content measurement relative complex, as needed, the various aspects of Modem module are all carried out to the test of integrality, embedded mmdb then can be used (as WINCE, Linux etc.) and least root file system, because embedded mmdb and least root file system can provide the environment of an operating system for test process, contain network environment that Modem module is correlated with and the environment that subsequent drive loads.The basis of embedded mmdb reloads test code test, also can reduce the workload that test code is write.The present embodiment have selected linux kernel, then in advance will by linux kernel and least root file system stored in plug type storer, then first load in step s 102 and be pre-stored in linux kernel and the least root file system of plug type storer, after reload test code and enter testing process.
The upper Modem module SMT(Surface Mount of test PCBA) quality to test Modem module whether can normal communication, can then show that Modem module SMT is normal by normal communication, can not normal communication then Modem module SMT exception.Use Modem module to carry out communication test and first will drive Modem module, drive Modem module first will know the model of Modem module, according to this principle, then can carry out in accordance with the following steps the test of Modem module:
To Modem module sending module type information reading order.Different controllers can be used to operate on it for different Modem module, in the present embodiment, USB(USB (universal serial bus) is adopted to Modem module) controller operates it, namely utilizes USB controller to send to Modem module in step s 103 and read model message command.Then in step S104, wait for that Modem module returns module type information, if Modem module does not return module type information in the time-out time of setting, then enter step S111 test result extremely, terminate test;
If Modem module returns module type information in the time-out time of setting, then read in step S105 the driving that prestores in pluggable storer and load corresponding driving according to module type information, the network interface of configuration Modem module, in step S106, Sampling network interface starting state, judges whether network interface starts normal.Because test procedure carries out under Linux environment, respective drive can be loaded to the model of Modem at the library inquiry of Linux radio interface layer, Linux environment provides the network interface configurator of Modem module, then the network interface registered in linux kernel is driven to be configured Modem module, and Sampling network interface starting state.If network interface starting state is abnormal, then enters step S111 test result extremely, terminate test;
If network interface starting state normally, enter step S107 and use Modem module to carry out dial-up connection, whether successfully then detect dialing in step S108, if dial unsuccessfully, then enter step S111 test result extremely, terminate test; Otherwise it is normal to enter step S109 test result, terminates test.Use Modem module when carrying out dial-up connection, the process that to be namely Modem carry out with common carrier base station equipment communicates, should select the stronger place of common carrier signal to test, avoid causing test crash because of operator's signal problem.
After above test code executes, if test result is normal, then the prompt facility on driving PCB A sends regular prompt information, if test result is abnormal, then the prompt facility on driving PCB A sends abnormal prompt information.What the dull and stereotyped PCBA of Android often had can allow user directly get the whether normal prompt facility of test result LED, loudspeaker or Vib., regular prompt information can be the work of driving arrangement continuation, as LED Chang Liang, loudspeaker are sound always, Vib. vibrates always, then after step S109 test result is normal, step S110 is the LED Chang Liang on driving PCB A; Abnormal prompt information can be driving arrangement intermittent work, and as LED flicker, loudspeaker are sound discontinuously, and Vib. vibrates discontinuously, be then the LED Chang Liang on driving PCB A in the abnormal rear step S112 of step S111 test result.At the end of test, in PCBA board, the difference response of equipment have expressed test result simple and clearly like this.
When needing to test a large amount of embedded PCB A simultaneously, multiple SD cards can be used to test PCBA, namely can separate normal with abnormal PCBA board rapidly, can be just that ensuing production is ready, there is Practical significance.The mobility of the plug type storeies such as SD card, makes the test for Modem module on PCBA can in any place, and simultaneously because SD card price is cheap, SD card is amassed and littlely also only need be taken quite little space, greatly can reduce the testing cost of enterprise.
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 foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.