Summary of the invention
The present invention proposes a kind of discharging automatic testing method and device; Let portable electronic devices under the different operating state, carry out charge-discharge test automatically; And according to test result; The local corrigendum in time of design of hardware and software mistake is come in before portable electronic devices dispatches from the factory, will installing, and the yield of product is improved.
The present invention proposes a kind of discharging automatic testing method, is applicable to portable electronic devices, and the method comprises the steps.At first, operate a plurality of single discharge tests in regular turn, these single discharge tests are a corresponding simple function respectively.Then, write down a plurality of single discharge test standard of these single discharge tests.Then, operate a plurality of compound discharge tests in regular turn, these compound discharge tests are a corresponding complex function respectively.Then, write down a plurality of compound Discharge test of these compound discharge tests.Then, compare these compound Discharge test and these single discharge test standards,, then produce abnormal function report if one of them and the single discharge test standard at least of these compound Discharge test are not inconsistent.
The present invention proposes a kind of discharging automatic testing device in addition, is applicable to the discharging automatic testing of a portable electronic devices, and this discharging automatic testing device comprises a power consumption measuring unit, a timing unit, a record cell, a processing unit and a comparing unit.The power consumption measuring unit is in order to measure the power consumption of portable electronic devices.Timing unit is in order to calculate the discharge time of portable electronic devices.Record cell is in order to the test result of record portable electronic devices.Processing unit is in order to operate a plurality of single discharge tests in regular turn, and wherein, these single discharge tests are a simple function of corresponding portable electronic devices respectively.Record cell can go to write down a plurality of single discharge test standard of these single discharge tests according to the measurement result of power consumption measuring unit and timing unit.In addition, processing unit is more in order to operate a plurality of compound discharge tests in regular turn, and wherein, these compound discharge tests are a complex function of corresponding portable electronic devices respectively.Record cell more writes down a plurality of compound Discharge test of these compound discharge tests.Comparing unit is in order to compare these compound Discharge test and these single discharge test standards.Be not inconsistent if comparing unit is compared out one of them and those single discharge test standards at least of these compound Discharge test, then processing unit can produce abnormal function report.
Embodiment
Please with reference to Fig. 1, it is the circuit block diagram according to a kind of discharging automatic testing device of preferred embodiment of the present invention.As shown in Figure 1, discharging automatic testing device 100 comprises a power consumption measuring unit 103, a comparing unit 107, a processing unit 109, a timing unit 111 and a record cell 113.Power consumption measuring unit 103 is in order to measure the power consumption of portable electronic devices 200.Timing unit 111 is in order to calculate the discharge time of portable electronic devices 200.Record cell 113 is in order to the test result of record portable electronic devices 200.Processing unit 109 is in order to a plurality of single discharge test and a plurality of compound discharge test of operation portable electronic devices 200.
In addition, please with reference to Fig. 2, it is a kind of detail flowchart that discharges and recharges automatic test approach according to preferred embodiment of the present invention.As shown in Figure 2, the method comprises step S11 to S18.Below with the discharging automatic testing device 100 of Fig. 1 the flow process of each step is described progressively.
At first, shown in step S11, operate a plurality of single discharge tests in regular turn, and obtain a plurality of single discharge test standards.In this step, these single discharge tests are a simple function of corresponding portable electronic devices 200 respectively.That is when doing single discharge test, the simple function of only opening portable electronic devices 200 is to carry out discharge test at every turn.Single discharge test standard then for example is power consumption and the time relationship that 200 pairs of portable electronic devices should simple function, and wherein, power consumption and time are measured by power consumption measuring unit 103 and timing unit 111 respectively.
Simple function for example is holding state or other user modes of corresponding portable electronic devices 200.Holding state for example is the state that portable electronic devices 200 has been started shooting, or portable electronic devices 200 leaves standstill a period of time when not using, the power down mode that can set.The user mode of portable electronic devices 200 then for example be portable electronic devices 200 in conversation, watch contents such as picture, character message, and other electronic installations between transmission of status or be wired to states such as world-wide web etc.; That is; State when arbitrary functional module group (like camera-enabled, call function, network connectivity function etc.) that this user mode can be portable electronic devices 200 is opened is all the mode of operation of 200 desires tests of portable electronic devices.
Then, shown in step S12, according to the size ordering of power consumption.In this step, record cell 113 can be arranged these single discharge test standards in regular turn according to the size of these single discharge test standards, to produce a power consumption record sheet.
Then, shown in step S13, operate a plurality of compound discharge tests in regular turn, and obtain a plurality of compound Discharge test, wherein, these compound discharge tests are a complex function of corresponding portable electronic devices 200 respectively.The pattern of complex function is meant the state that a plurality of functions of portable electronic devices 200 are opened simultaneously.The result of compound discharge test can be got up by 113 records of record cell each time.
Afterwards, shown in step S14, produce a power consumption record sheet.Preferably, the power consumption record sheet has multiple row record field, and these record fields respectively write down a compound Discharge test, and the compound Discharge test in these record fields is to greatly from minispread.
The power consumption record sheet
More than table is example, supposes that four simple function a, b, c and d being directed against portable electronic devices 200 altogether carry out single discharge test.When single discharge test, the power consumption size of four simple functions for example is a>b>c>d.Because four simple functions are arranged, these four kinds of functions can be " unlatching " or " closing " two states, and wherein, in the power consumption record sheet, opening is to be denoted as " 1 ", and closed condition then is denoted as " 0 ".Therefore, possible complex function has 2
4(16) plant combination.Deduct the situation that repertoire is closed, have 15 kinds of combinations.As above shown in the power consumption record sheet of table, it has the record field of 15 row, and the record field of these 15 row is the big minispreads (from small to large) according to power consumption.
Then, shown in step S15, judge whether the power consumption of single discharge test is normal.In this step, comparing unit 107 for example is that the result of each single discharge test and the single discharge test standard of (or predetermined) that requires are compared.If the power consumption of one of them of these single discharge tests is undesired, then processing unit 109 can produce abnormal function report, shown in step S16.The abnormal function report for example comprises abnormal function group and the information of power consumption time.
In addition,, then get into step S17, judge whether the power consumption of compound discharge test is normal if each single discharge test is all normal.Same above table is example and since the record field of power consumption record sheet be by minispread to big, therefore the power consumption of a record field certainly will greater than last one write down field power consumption.In this step, comparing unit 107 can for example be the power consumption that the power consumption of a row record field is deducted previous column record field to the power consumption record sheet by the row comparison, when the result who subtracts each other less than 0 the time, unusual test result appears in representative.When processing unit 109 judges that the power consumption of a compound discharge test is undesired, then shown in step S16, also will unusual functionalities and the power consumption time keeping in abnormal function is reported.
Shown in step S18, judge whether last row into the power consumption record sheet, whether finish the discharging automatic testing of portable electronic devices 200 with decision.If not, then get back to step S17, continue to judge whether the power consumption of next compound discharge test is normal.
Discharging automatic testing method that the above embodiment of the present invention disclosed and device; Be that the simulation portable electronic devices is at the single discharge test of simple function and the compound discharge test of complex function, to go judging whether the discharging function of portable electronic devices is normal according to test result.So, not only can save the tester and look on the time of examining, also can increase the accuracy of judgement.Moreover, accomplishing all at the discharge test of difference (or various) modes of operation when portable electronic devices, the result of its test also can intactly be write down.Thus, the test reference before manufacturer or research staff are dispatched from the factory as portable electronic devices can be provided, and then before product export, the place corrigendum of interior dress software and hardware possible errors be come, make the yield of product be able to promote.In addition, when letting the user operate portable electronic devices, can not perplexed by the problem of the undesired discharge of product.
Though the present invention discloses as above with preferred embodiment; Right its is not that any those skilled in the art are not breaking away from the spirit and scope of the present invention in order to qualification the present invention; When can doing a little modification and perfect, so protection scope of the present invention is when being as the criterion with what claims defined.