CN105226741B - A kind of charging method of mobile terminal, electric quantity test method, relevant device and system - Google Patents

A kind of charging method of mobile terminal, electric quantity test method, relevant device and system Download PDF

Info

Publication number
CN105226741B
CN105226741B CN201410317116.8A CN201410317116A CN105226741B CN 105226741 B CN105226741 B CN 105226741B CN 201410317116 A CN201410317116 A CN 201410317116A CN 105226741 B CN105226741 B CN 105226741B
Authority
CN
China
Prior art keywords
test
mobile terminal
charging
remaining capacity
electric quantity
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
CN201410317116.8A
Other languages
Chinese (zh)
Other versions
CN105226741A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410317116.8A priority Critical patent/CN105226741B/en
Publication of CN105226741A publication Critical patent/CN105226741A/en
Application granted granted Critical
Publication of CN105226741B publication Critical patent/CN105226741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B40/00Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of charging methods of mobile terminal, comprising: test host obtains the charging time section of mobile terminal, and the charging time section includes charging start time and charging finishing time;When reaching the charging start time, go code to switching device transmission, the charging interface of the output interface powered on and the mobile terminal so that the switching device goes code according to;When reaching the charging finishing time, electric quantity test instruction is sent to the mobile terminal, and open command is sent to the switching device, so that the switching device disconnects the output interface of the power supply and the charging interface of the mobile terminal according to the open command.The embodiment of the invention also discloses a kind of electric quantity test method, relevant device and systems.Using the present invention, the efficiency of mobile terminal charging and test can be improved.

Description

A kind of charging method of mobile terminal, electric quantity test method, relevant device and system
Technical field
The present invention relates to testing fields more particularly to a kind of charging method of mobile terminal, electric quantity test method, correlation to set Standby and system.
Background technique
The function of mobile terminal is more and more abundant, causes the power consumption of mobile terminal to increase and is getting faster, moves to test The power consumption of dynamic terminal, the method that existing mobile terminal carries out power consumption test are as follows: filled in the charging interface insertion of mobile terminal Electric wire, tester reuse measuring instrument survey after a period of time using the electricity of measuring instrument test mobile terminal The electricity for measuring mobile terminal, the power consumption of mobile terminal during this period of time is calculated by the difference of the two electricity.If moved The electricity of dynamic terminal is very low, can not be normally carried out test, and tester needs to connect power supply for mobile terminal charging.Existing skill In the scheme of art, in order to obtain the accurate electricity data of mobile terminal, the mode of continuous manual plug charging cable is needed to control hand Machine charging and acquisition electricity data need to expend a large amount of manpowers when needing mobile terminal test project to be tested very more, imitate Rate is low.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of charging method of mobile terminal, electricity is surveyed Method for testing, relevant device and system.It can solve in the prior art as mobile terminal charging and the low deficiency of testing time-effectiveness rate.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of charging methods of mobile terminal, comprising:
The charging time section that host obtains mobile terminal is tested, the charging time section includes charging start time and charging Finish time;
When reaching the charging start time, go code to switching device transmission, so that the switching device is according to institute State the charging interface of the go code output interface powered on and the mobile terminal;
When reaching the charging finishing time, Xiang Suoshu mobile terminal sends electric quantity test instruction, and fills to the switch Set transmission open command so that the switching device according to the open command disconnect the power supply output interface and the shifting The charging interface of dynamic terminal.
Correspondingly, the embodiment of the invention also provides a kind of electric quantity test methods of mobile terminal, comprising:
After receiving the electric quantity test instruction that test host is sent, preset electric quantity test period, the electricity are obtained Testing time section includes test start time and test finish time;
When reaching the test start time, the first remaining capacity of the test start time is obtained, and to the survey Examination host reports first remaining capacity;
When reaching the test finish time, the second remaining capacity of the test finish time is obtained, and to the survey Examination host reports second remaining capacity.
Correspondingly, the embodiment of the invention also provides a kind of test hosts, comprising:
First obtains module, and for obtaining the charging time section of mobile terminal, the charging time section includes that charging starts Moment and charging finishing time;
First instruction sending module when for reaching the charging start time, goes code to switching device transmission, with The switching device is set to go code according to the charging interface of the output interface powered on and the mobile terminal;
Second instruction sending module, when for reaching the charging finishing time, Xiang Suoshu mobile terminal sends electricity and surveys Examination instruction, and open command is sent to the switching device, so that the switching device is according to open command disconnection The charging interface of the output interface of power supply and the mobile terminal.
Correspondingly, the embodiment of the invention also provides a kind of mobile terminals, comprising:
Second obtains module, after receiving the electric quantity test instruction that test host is sent, obtains preset electricity and surveys It tries the period, the electric quantity test period includes test start time and test finish time;
First reporting module, when for reaching the test start time, obtain the test start time first is surplus Remaining electricity, and first remaining capacity is reported to the test host;
Second reporting module, when for reaching the test finish time, obtain the test finish time second is surplus Remaining electricity, and second remaining capacity is reported to the test host.
Correspondingly, the embodiment of the invention also provides a kind of electric quantity test systems, including above-mentioned test host and movement Terminal.
The implementation of the embodiments of the present invention has the following beneficial effects:
Implement the embodiment of the present invention, test host by obtaining preset charging time section, charging start time to Switching device transmission goes code, and power supply mobile terminal is made to charge, and sends when reaching charging finishing time to switching device Open command, stopping power supply is that mobile terminal charges.Frequent plug charging cable when for mobile terminal charging is avoided, efficiency is not It is high.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of the charging method of mobile terminal of first embodiment of the invention;
Fig. 2 is a kind of flow diagram of the charging method of mobile terminal of second embodiment of the invention;
Fig. 3 is a kind of flow diagram of the electric quantity test method of mobile terminal of first embodiment of the invention;
Fig. 4 is a kind of flow diagram of the electric quantity test method of mobile terminal of second embodiment of the invention;
Fig. 5 is a kind of structural schematic diagram of test host of first embodiment of the invention;
Fig. 6 is a kind of structural schematic diagram of test host of second embodiment of the invention;
Fig. 7 is a kind of structural schematic diagram of mobile terminal of first embodiment of the invention;
Fig. 8 is a kind of structural schematic diagram of mobile terminal of second embodiment of the invention;
Fig. 9 is a kind of composition schematic diagram of electric quantity test system of the embodiment of the present invention.
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, complete Site 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 on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
It is a kind of flow diagram of the charging method of mobile terminal of the embodiment of the present invention referring to Fig. 1, of the invention real It applies in example, which comprises
S101, test host obtain the charging time section of mobile terminal, and charging time section includes charging start time and fills Electric finish time.
Specifically, the charging time section of test host acquisition mobile terminal, Duan Weiyi time interval of charging time, specifically Including charging start time and charging finishing time, the duration of charging start time to charging finishing time indicates mobile terminal Charging duration.Such as the charging time section be 13::0-14:00, charging start time 13:00, charging finishing time 14:00, The charging duration of mobile terminal is 1 hour.The charging time section of mobile terminal can be only fitted to test this ground of host or mobile In terminal, the present invention is with no restriction.If charging time section configuration tests host and obtains movement from local storage in local The charging time section of terminal;If charging time section configuration is on mobile terminals, test host, which initiates inquiry to mobile terminal, is asked The mode asked obtains charging time section.
When S102, the charging start time arrived, go code to switching device transmission, so that switching device refers to according to connection Enable the charging interface of the output interface and mobile terminal that power on.
Specifically, the output interface of power supply, which is provided as mobile terminal, carries out the required output voltage that charges, the output of power supply Voltage can be that the mobile terminal charges by the charging interface of mobile terminal.The output interface of power supply by switching device with The charging interface of mobile terminal connects, and switching device is three port devices, including input, output end and control terminal, opens Close device by control terminal receive it is externally input control signal with control its input terminal and output end be connected to or disconnection so that It is connected between the input terminal of the switching device and the mobile terminal of output end and power supply in connection or off-state.Example Such as, switching device is relay, and power supply is connected to an electrode of the normally opened contact of relay, and mobile terminal is connected to normally opened touching On another electrode of point, when the control contact of relay does not have electric current to flow through, power supply is in an off state with mobile terminal, That is the output voltage of power supply could not previously be loaded on the charging interface of mobile terminal, cannot charge for mobile terminal;When relay When control contact has electric current to flow through, in an ON state, i.e., the output voltage of power supply can be loaded into shifting for power supply and mobile terminal On the charging interface of dynamic terminal, it can charge for mobile terminal.
In other embodiments of the invention, switching device is also possible to thyristor, triode, field-effect tube etc., this Invention is with no restriction.
When testing the charging start time that Host Detection arrival S101 is obtained, goes code, switch to switching device transmission Device receives go code after, the charging interface of the output interface and mobile terminal that power on, power supply passes through output at this time The output voltage of interface output is mobile terminal charging.
When S103, the charging finishing time arrived, electric quantity test instruction is sent to mobile terminal, and send and break to switching device Instruction is opened, so that switching device disconnects the output interface of power supply and the charging interface of mobile terminal according to open command.
Specifically, sending electricity when test Host Detection reaches the charging finishing time that S101 is obtained to mobile terminal and surveying Examination instruction, and open command is sent to switching device, after mobile terminal receives electric quantity test instruction, triggering carries out electric quantity test Process, after switching device receives open command, disconnect the output interface of power supply and the charging interface of mobile terminal, it is electric at this time Source stops charging to mobile terminal.
It is understood that test host and mobile terminal can be led to by way of wireless connection or wired connection Letter, the present invention is with no restriction.
Implement the embodiment of the present invention, test host by obtaining preset charging time section, charging start time to Switching device transmission goes code, and power supply mobile terminal is made to charge, and sends when reaching charging finishing time to switching device Open command, stopping power supply is that mobile terminal charges.Frequent plug charging cable when for mobile terminal charging is avoided, efficiency is not It is high.
It referring to fig. 2, is a kind of flow diagram of the charging method of mobile terminal of second embodiment of the invention, in this hair In bright embodiment, which comprises
S201, the WIFI connection request that mobile terminal is initiated is received, after verifying mobile terminal is legal, is built with mobile terminal Vertical communication connection.
Specifically, test host receives the WIFI (Wireless that mobile terminal is initiated by wireless router Fidelity, Wireless Fidelity) connection request, verifying username and password it is correct after, determine that the identity of mobile terminal is legal, with Mobile terminal establishes communication connection, tests host and mobile terminal passes through the communication connection interaction data set up.
S202, the current remaining capacity of mobile terminal is obtained by the communication connection of foundation.
Specifically, test host sends the acquisition for obtaining current residual electricity by the communication connection established to mobile terminal Request, mobile terminal return to current remaining capacity after receiving the acquisition request.
Whether S203, remaining capacity are less than preset power threshold.
Specifically, being judged whether according to the current remaining capacity of the mobile terminal that test host S202 is obtained less than threshold value Power threshold, if it is, S204 is executed, if it has not, terminating process.Pass through the comparison of power threshold, it is ensured that mobile terminal Remaining electricity can normally complete subsequent electric quantity test demand.
S204, the identity information for obtaining mobile terminal, and identity information is associated fills according to preset mapping relations inquiry The electric period.
Specifically, the identity information of mobile terminal indicates the character string for distinguishing the identity of other mobile terminals, for example, MAC (Media Access Control, media intervention control) address, IMEI (International of mobile terminal Mobile Equipment Identity, mobile device international identity identification code) number etc..It is different in different mobile terminals Charging time section scene under, test host obtains the identity information of mobile terminal to be charged first, and according to preset The mapping relations of identity information and charging time section inquire the associated charging time section of mobile terminal to be charged, to meet not The charge requirement of same mobile terminal.
Duan Weiyi time interval of charging time, specifically includes charging start time and charging finishing time, and charging starts The duration of moment to charging finishing time indicates the charging duration of mobile terminal.Such as charging time section is 13::0-14:00, is filled Electric start time is 13:00, and charging finishing time 14:00, the charging duration of mobile terminal is 1 hour.
Optionally, the method that test host obtains charging time section, which may also is that mobile terminal, sends inquiry request, connects Receive the charging time section that mobile terminal is returned according to the inquiry request.
S205, when reaching charging start time, to switching device transmission go code so that switching device is according to connection Instruct the charging interface of the output interface and mobile terminal that power on.
Specifically, the output interface of power supply, which is provided as mobile terminal, carries out the required output voltage that charges, the output of power supply Voltage can be that the mobile terminal charges by the charging interface of mobile terminal.The output interface of power supply by switching device with The charging interface of mobile terminal connects, and switching device is three port devices, including input, output end and control terminal, opens Close device by control terminal receive it is externally input control signal with control its input terminal and output end be connected to or disconnection so that It is connected between the input terminal of the switching device and the mobile terminal of output end and power supply in connection or off-state.Example Such as, switching device is thyristor, and power supply is connected on the anode of thyristor, and mobile terminal is connected on the anode of thyristor, when When the control electrode of thyristor flows through electric current greater than current threshold, the cathode and anode of thyristor are not turned on, power supply and mobile terminal It is in an off state, i.e. the output voltage of power supply could not previously be loaded on the charging interface of mobile terminal, cannot fill for mobile terminal Electricity;When the electric current that the control electrode of thyristor flows through is not more than current threshold, the cathode and anode of thyristor are connected, power supply and shifting In an ON state, i.e., the output voltage of power supply can be loaded on the charging interface of mobile terminal dynamic terminal, can be mobile whole End charging.
In other embodiments of the invention, switching device is also possible to relay, triode, field-effect tube etc., this Invention is with no restriction.
When S206, arrival charging finishing time, electric quantity test instruction is sent to mobile terminal, and send and break to switching device Instruction is opened, so that switching device disconnects the output interface of power supply and the charging interface of mobile terminal.
Specifically, sending electricity when test Host Detection reaches the charging finishing time that S204 is obtained to mobile terminal and surveying Examination instruction, and open command is sent to switching device, after mobile terminal receives electric quantity test instruction, triggering carries out electric quantity test Process, after switching device receives open command, disconnect the output interface of power supply and the charging interface of mobile terminal, it is electric at this time Source stops charging to mobile terminal.
S207, receive mobile terminal according to electric quantity test instruct the first remaining capacity for reporting of test start time and The second remaining capacity that measurement finish time reports.
Specifically, test host, which is carved at the end of charging to mobile terminal, sends electric quantity test instruction, mobile terminal is received To after electric quantity test instruction, triggering carries out preset electric quantity test process, and the process of triggering can pass through the broadcast of Android system Mechanism is realized.The electric quantity test process of mobile terminal side specifically: acquisition for mobile terminal preset electric quantity test period, electricity Measuring the examination period includes test start time and test finish time, and mobile terminal reports the first residue in test start time Electricity simultaneously reports the second remaining capacity in test finish time.
S208, the power consumption that mobile terminal is calculated according to the first remaining capacity and the second remaining capacity.
Specifically, the first remaining capacity is subtracted the second remaining capacity by test host obtains mobile terminal in testing time section Power consumption.
Implement the embodiment of the present invention, test host by obtaining preset charging time section, charging start time to Switching device transmission goes code, and power supply mobile terminal is made to charge, and sends when reaching charging finishing time to switching device Open command, stopping power supply is that mobile terminal charges.Frequent plug charging cable when for mobile terminal charging is avoided, is provided The efficiency of charging.
It is a kind of flow diagram of electric quantity test method of first embodiment of the invention, in the present embodiment referring to Fig. 3 In, which comprises
S301, after receiving the electric quantity test instruction that test host is sent, the preset electric quantity test period is obtained, electricity is surveyed Trying the period includes test start time and test finish time.
Specifically, mobile terminal receives the electric quantity test instruction that test host is sent, triggering acquisition for mobile terminal is preset Electric quantity test period, Duan Weiyi time interval of testing time specifically include test start time and test finish time, survey Trying start time indicates the length of testing speech of mobile terminal to test finish time.For example, testing time section is 14:05-15:05, Test start time is 14:05, and test finish time is 15:05, and the length of testing speech of mobile terminal is 1 hour.It is understood that It is that the testing time Duan Buying of mobile terminal is overlapped with charging time section, and testing time section should be later than charging time section.It is mobile The testing time section of terminal can be only fitted on local or test host, and the present invention is with no restriction.
When S302, arrival test start time, the first remaining capacity of test start time is obtained, and on test host Report the first remaining capacity.
Specifically, the first remaining capacity of test start time is obtained when mobile terminal detection reaches test start time, The method for obtaining mobile terminal remaining capacity can be that obtain first by the electric quantity test application program that mobile terminal is installed surplus Remaining electricity, or the electrical measurement API of mobile terminal operating system is called to obtain the first remaining capacity, the present invention is with no restriction.It moves First remaining capacity of acquisition is reported to test host by dynamic terminal, and mobile terminal and test host can be by wirelessly or non-wirelessly Mode is communicated.
When S303, arrival test finish time, the second remaining capacity of test finish time is obtained, and on test host Report the second remaining capacity.
Specifically, the second remaining capacity of test finish time is obtained when mobile terminal detection reaches test finish time, The method for obtaining mobile terminal remaining capacity can be that obtain second by the electric quantity test application program that mobile terminal is installed surplus Remaining electricity, or the electrical measurement API of mobile terminal operating system is called to obtain the second remaining capacity, the present invention is with no restriction.It moves Second remaining capacity of acquisition is reported to test host by dynamic terminal, and mobile terminal and test host can be by wirelessly or non-wirelessly Mode is communicated.
Implement the embodiment of the present invention, mobile terminal receive test host send electric quantity test instruction after, trigger into Row electric quantity test process: the acquisition for mobile terminal preset electric quantity test period, the testing time section include test start time and It tests finish time, mobile terminal reports the first remaining capacity in test start time and reports second to remain in test finish time Remaining electricity, so that test host calculates mobile terminal in the power consumption of testing time section according to the remaining capacity reported.It avoids When carrying out electric quantity test to mobile terminal, frequent plug cable, improves the efficiency of test.
It referring to fig. 4, is a kind of flow diagram of the electric quantity test method of mobile terminal of second embodiment of the invention, In the embodiment of the present invention, which comprises
S401, WIFI connection request is initiated to test host, after test host verification is legal, is established with test host logical Letter connection.
Specifically, mobile terminal initiates WIFI connection request to test host by wireless router, test host is being tested Demonstrate,prove username and password it is correct after, determine that the identity of mobile terminal is legal, with mobile terminal establish communicate to connect, test host and Mobile terminal passes through the communication connection interaction data set up.
The acquisition of the current remaining capacity of S402, the acquisition for receiving communication connection transmission of the test host by foundation is asked When asking, current remaining capacity is returned to test host.
S403, after receiving the electric quantity test instruction that test host is sent, preset electric quantity test period, electricity are obtained Testing time section includes test start time and test finish time.
Specifically, mobile terminal receives the electric quantity test instruction that test host is sent, triggering acquisition for mobile terminal is preset Electric quantity test period, Duan Weiyi time interval of testing time specifically include test start time and test finish time, survey Trying start time indicates the length of testing speech of mobile terminal to test finish time.For example, testing time section is 14:05-15:05, Test start time is 14:05, and test finish time is 15:05, and the length of testing speech of mobile terminal is 1 hour.It is understood that It is that the testing time Duan Buying of mobile terminal is overlapped with charging time section, and testing time section should be later than charging time section.It is mobile The testing time section of terminal can be only fitted on local or test host, and the present invention is with no restriction.
When S404, arrival test start time, the first voltage value of measurement test start time battery is reflected according to preset Corresponding first remaining capacity of relational query the first voltage value is penetrated, and reports the first remaining capacity to test host.
Specifically, when mobile terminal detection reaches test start time, measurement test start time battery of mobile terminal The method of the first voltage value, the voltage value of mobile terminal measurement battery may is that the API tune by the operating system of mobile terminal With the first voltage value for obtaining test start time battery.Mobile terminal is previously provided with voltage value and the mapping of charge value is closed System, mobile terminal obtain corresponding first charge value of the first voltage value, and the communication link by establishing by inquiring mapping relations It connects and the first charge value is reported into test host.
When S405, arrival test finish time, the second voltage value of measurement test finish time battery, according to preset pass Corresponding second remaining capacity of system's inquiry second voltage value, and the second remaining capacity is reported to test host.
Specifically, measure and report the process of the second remaining capacity identical with process described in S404, it is no longer superfluous herein It states.
Implement the embodiment of the present invention, mobile terminal receive test host send electric quantity test instruction after, trigger into Row electric quantity test process: the acquisition for mobile terminal preset electric quantity test period, the testing time section include test start time and It tests finish time, mobile terminal reports the first remaining capacity in test start time and reports second to remain in test finish time Remaining electricity, so that test host calculates mobile terminal in the power consumption of testing time section according to the remaining capacity reported.It avoids When carrying out electric quantity test to mobile terminal, frequent plug cable, improves the efficiency of test.
It is a kind of structural schematic diagram of test host of the embodiment of the present invention, in embodiments of the present invention, institute referring to Fig. 5 Stating test host includes the first acquisition module 10, the first instruction sending module 11 and the second instruction sending module 12.
First obtains module 10, and for obtaining the charging time section of mobile terminal, the charging time section includes that charging is opened Begin moment and charging finishing time.
First instruction sending module 11 when for reaching the charging start time, goes code to switching device transmission, The charging interface of the output interface powered on and the mobile terminal so that the switching device goes code according to.
Second instruction sending module 12, when for reaching the charging finishing time, Xiang Suoshu mobile terminal sends electricity Test instruction, and open command is sent to the switching device, so that the switching device disconnects institute according to the open command State the output interface of power supply and the charging interface of the mobile terminal.
The embodiment of the present invention and embodiment of the method one belong to same design, and bring technical effect is also identical, specific mistake Journey please refers to the description of embodiment of the method one, and details are not described herein again.
It further, is a kind of structural schematic diagram of test host of second embodiment of the invention, in this hair referring to Fig. 6 In bright embodiment, it includes the first acquisition module 10, the first instruction sending module 11 and the second instruction sending module that test host, which removes, It further include WIFI link block 13, electricity acquisition module 14, electricity receiving module 15 and power consumption computing module 16 except 12.
WIFI link block 13, the WIFI connection request initiated for receiving the mobile terminal are verifying the movement After terminal is legal, establishes and communicate to connect with the movable passageway.
Electricity obtains module 14, obtains the current residue electricity of the mobile terminal for the communication connection by the foundation Amount indicates that described first obtains module start-up operation if the remaining capacity is less than preset power threshold.
Electricity receiving module 15, for receiving after the mobile terminal is instructed according to the electric quantity test when measuring beginning The second remaining capacity for engraving the first remaining capacity of report and being reported in measurement finish time.
Power consumption computing module 16, it is described mobile whole for being calculated according to first remaining capacity and the second remaining capacity The power consumption at end.
Optionally, the first acquisition module 10 is specifically used for
The identity information of the mobile terminal is obtained, and associated according to the preset mapping relations inquiry identity information Charging time section;Or
Inquiry request is sent to the mobile terminal, receives the charging that the mobile terminal is returned according to the inquiry request Period.
The embodiment of the present invention and embodiment of the method two belong to same design, and bring technical effect is also identical, specific mistake Journey please refers to the description of embodiment of the method two, and details are not described herein again.
It is a kind of structural schematic diagram of mobile terminal of first embodiment of the invention, in the embodiment of the present invention referring to Fig. 7 In, the mobile terminal includes the second acquisition module 20, the first reporting module 21 and the second reporting module 22.
Second obtains module 20, after receiving the electric quantity test instruction that test host is sent, obtains preset electricity Testing time section, the electric quantity test period include test start time and test finish time.
First reporting module 21 when for reaching the test start time, obtains the first of the test start time Remaining capacity, and first remaining capacity is reported to the test host.
Second reporting module 22 when for reaching the test finish time, obtains the second of the test finish time Remaining capacity, and second remaining capacity is reported to the test host.
The embodiment of the present invention and embodiment of the method three belong to same design, and bring technical effect is also identical, specific mistake Journey please refers to the description of embodiment of the method three, and details are not described herein again.
It is a kind of structural schematic diagram of mobile terminal of second embodiment of the invention, in the present embodiment, institute referring to Fig. 8 Mobile terminal is stated in addition to including the second acquisition module 20, the first reporting module 21 and the second reporting module 22, further includes WIFI Connect initiation module 23 and inquiry response module 24.
WIFI connection initiation module 23, for initiating WIFI connection request to the test host, in the test host Verify it is legal after, with the test host establish communicate to connect.
Inquiry response module 24, the acquisition sent for receiving the test host by the communication connection of the foundation When the acquisition request of current remaining capacity, current remaining capacity is returned to the test host.
Optionally, the first reporting module 21 is used to measure the first voltage value of the test start time battery;According to pre- If mapping relations inquire corresponding first remaining capacity of the voltage value.
Second reporting module 22 is used to measure the second voltage value of the test start time battery;According to preset Mapping relations inquire corresponding second remaining capacity of the voltage value.
The embodiment of the present invention and embodiment of the method four belong to same design, and bring technical effect is also identical, specific mistake Journey please refers to the description of embodiment of the method four, and details are not described herein again.
It is a kind of composition schematic diagram of electric quantity test system of the embodiment of the present invention, in the present embodiment, institute referring to Fig. 9 Stating electric quantity test system includes power supply 3, switching device 4, mobile terminal 1 and test host 2, and the output interface connection of power supply 3 is opened Close the input terminal of device 4, the output end of the charging interface connecting switch 4 of mobile terminal 1, test 2 connection switch of host dress 4 control terminal is set, host 2 is tested and mobile terminal 1 is communicated by way of wirelessly or non-wirelessly, the embodiment of the present invention is with nothing For line communication.
Mobile terminal 1 in the embodiment of the present invention can be smart phone, tablet computer, player, game machine or individual The equipment such as digital assistants, the present invention is with no restriction.
Power supply 3 is one in the demand voltage that the output voltage that output port exports is mobile terminal charging, switching device 4 Three port devices, including input, output end and control terminal, switching device 4 receive the control that test host inputs by control terminal Signal processed with control its input terminal and output end be connected to or disconnection, so as to be connected to the input terminal of the switching device and defeated In connection or off-state between the mobile terminal 1 and power supply 3 of outlet.Preferably, switching device 4 is relay, and power supply 3 connects An electrode in the normally opened contact of relay is connect, mobile terminal 1 is connected on another electrode of normally opened contact, works as relay Control contact when not having electric current to flow through, power supply 3 is in an off state with mobile terminal 1, i.e., the output voltage of power supply 3 can not add It is downloaded on the charging interface of mobile terminal 1, cannot charge for mobile terminal 1;When the control contact of relay has electric current to flow through, In an ON state, i.e., the output voltage of power supply 3 can be loaded into the charging interface of mobile terminal 1 for power supply 3 and mobile terminal 1 On, it can charge for mobile terminal.
The working principle of above-mentioned electric quantity test system are as follows: test host 2 obtains the charging time section of mobile terminal 1, charging Period includes that charging start time and charging finishing time fill when the test detection of host 2 reaches charging start time to switch It sets 4 transmissions to go code, switching device 4 is according to the charging of the go code output interface for powering on 3 and mobile terminal 1 Mouthful, when test Host Detection reaches charging finishing time, electric quantity test instruction is sent to mobile terminal 1, and send out to switching device 4 Open command is sent, switching device 4 disconnects the output interface of power supply 3 and the charging interface of mobile terminal 1 according to open command.It is mobile After terminal 1 receives the electric quantity test instruction that test host 2 is sent, the preset electric quantity test period is obtained, when electric quantity test Between section include test start time and test finish time, mobile terminal 1 detection reach test start time when, obtain test open First remaining capacity at moment beginning, and first remaining capacity is reported to test host 2, the detection of mobile terminal 1 reaches test When finish time, the second remaining capacity of test finish time is obtained, and report second remaining capacity to test host 2. Test host 2 receive after mobile terminal 1 is instructed according to electric quantity test the first remaining capacity for reporting of measurement start time and The second remaining capacity that measurement finish time reports calculates mobile terminal 1 according to the first remaining capacity and the second remaining capacity Power consumption
Implement the embodiment of the present invention, mobile terminal receive test host send electric quantity test instruction after, trigger into Row electric quantity test process: the acquisition for mobile terminal preset electric quantity test period, the testing time section include test start time and It tests finish time, mobile terminal reports the first remaining capacity in test start time and reports second to remain in test finish time Remaining electricity, so that test host calculates mobile terminal in the power consumption of testing time section according to the remaining capacity reported.It avoids When carrying out electric quantity test to mobile terminal, frequent plug cable, improves the efficiency of test.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosed is only a preferred embodiment of the present invention, cannot limit the power of the present invention with this certainly Sharp 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 invention Benefit requires made equivalent variations, still belongs to the scope covered by the invention.

Claims (14)

1. a kind of electric quantity test method of mobile terminal characterized by comprising
The output interface of power supply is connect by switching device with the charging interface of the mobile terminal;The switching device is one Three port devices, including input, output end and control terminal, the switching device are received externally input by the control terminal Control signal with control its input terminal and output end be connected to or disconnection, so as to be connected to the input terminal of the switching device In connection or off-state between the mobile terminal and the power supply of output end;
After receiving the electric quantity test instruction that test host is sent, preset electric quantity test period, the electric quantity test are obtained Period includes test start time and test finish time;
When reaching the test start time, the first remaining capacity of the test start time is obtained, and lead to the test Machine reports first remaining capacity;
When reaching the test finish time, the second remaining capacity of the test finish time is obtained, and lead to the test Machine reports second remaining capacity.
2. the method as described in claim 1, which is characterized in that the electric quantity test instruction for receiving test host and sending Afterwards, before the step of obtaining the preset electric quantity test period, further includes:
WIFI connection request is initiated to the test host to build after the test host verification is legal with the test host Vertical communication connection.
3. method according to claim 2, which is characterized in that first remaining capacity for obtaining the test start time The step of include:
Measure the first voltage value of the test start time battery;
Corresponding first remaining capacity of the first voltage value is inquired according to preset mapping relations;
It is described obtain it is described test finish time the second remaining capacity the step of include:
Measure the second voltage value of the test finish time battery;
Corresponding second remaining capacity of the second voltage value is inquired according to preset mapping relations.
4. method as claimed in claim 3, which is characterized in that further include:
The test host is received to ask by the acquisition for obtaining current remaining capacity that the communication connection of the foundation is sent When asking, current remaining capacity is returned to the test host.
5. a kind of electric quantity test system, which is characterized in that including test host, mobile terminal and switching device;
Wherein, the output interface of power supply is connect by the switching device with the charging interface of the mobile terminal;The switch Device is three port devices, including input, output end and control terminal, the switching device are received by the control terminal Externally input control signal with control its input terminal and output end be connected to or disconnection, filled so as to be connected to the switch In connection or off-state between the input terminal set and the mobile terminal and the power supply of output end;
The test host includes:
First obtains module, and for obtaining the charging time section of mobile terminal, the charging time section includes charging start time And charging finishing time;
First instruction sending module when for reaching the charging start time, goes code, so that institute to switching device transmission Switching device is stated to go code according to the charging interface of the output interface powered on and the mobile terminal;
Second instruction sending module, when for reaching the charging finishing time, Xiang Suoshu mobile terminal sends electric quantity test and refers to It enables, and sends open command to the switching device, so that the switching device disconnects the power supply according to the open command Output interface and the mobile terminal charging interface;
The mobile terminal includes:
Second obtains module, after receiving the electric quantity test instruction that test host is sent, when obtaining preset electric quantity test Between section, the electric quantity test period include test start time and test finish time;
First reporting module when for reaching the test start time, obtains the first remaining electricity of the test start time Amount, and first remaining capacity is reported to the test host;
Second reporting module when for reaching the test finish time, obtains the second remaining electricity of the test finish time Amount, and second remaining capacity is reported to the test host.
6. system as claimed in claim 5, which is characterized in that the first acquisition module is used for
The identity information of the mobile terminal is obtained, and inquires the associated charging of identity information according to preset mapping relations Period;Or
Inquiry request is sent to the mobile terminal, receives the charging time that the mobile terminal is returned according to the inquiry request Section.
7. system as claimed in claim 6, which is characterized in that the test host further include:
WIFI link block, the WIFI connection request initiated for receiving the mobile terminal are closed verifying the mobile terminal After method, establishes and communicate to connect with the mobile terminal.
8. system as claimed in claim 7, which is characterized in that the test host further include:
Electricity obtains module, obtains the current remaining capacity of the mobile terminal for the communication connection by the foundation, if The remaining capacity is less than preset power threshold, indicates that described first obtains module start-up operation.
9. system as claimed in claim 8, which is characterized in that the test host further include:
Electricity receiving module is reported according to after electric quantity test instruction in measurement start time for receiving the mobile terminal The first remaining capacity and in the second remaining capacity for reporting of measurement finish time;
Power consumption computing module, for calculating the mobile terminal according to first remaining capacity and second remaining capacity Power consumption.
10. system as claimed in claim 5, which is characterized in that the mobile terminal further include:
WIFI connection initiation module is closed for initiating WIFI connection request to the test host in the test host verification After method, establishes and communicate to connect with the test host.
11. system as claimed in claim 10, it is characterised in that:
First reporting module is used to measure the first voltage value of the test start time battery;It is closed according to preset mapping Corresponding first remaining capacity of the voltage value is inquired by system;
Second reporting module is used to measure the second voltage value of the test finish time battery;It is closed according to preset mapping Corresponding second remaining capacity of the voltage value is inquired by system.
12. system as claimed in claim 11, which is characterized in that the mobile terminal further include:
Inquiry response module is obtained currently for receiving the test host by what the communication connection of the foundation was sent When the acquisition request of remaining capacity, current remaining capacity is returned to the test host.
13. system as claimed in claim 5, which is characterized in that the switching device includes relay.
14. a kind of computer-readable storage medium, which is characterized in that the computer-readable storage medium, which is stored with, to be used for Execute the computer program of method according to any of claims 1-4.
CN201410317116.8A 2014-07-03 2014-07-03 A kind of charging method of mobile terminal, electric quantity test method, relevant device and system Active CN105226741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410317116.8A CN105226741B (en) 2014-07-03 2014-07-03 A kind of charging method of mobile terminal, electric quantity test method, relevant device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410317116.8A CN105226741B (en) 2014-07-03 2014-07-03 A kind of charging method of mobile terminal, electric quantity test method, relevant device and system

Publications (2)

Publication Number Publication Date
CN105226741A CN105226741A (en) 2016-01-06
CN105226741B true CN105226741B (en) 2019-10-22

Family

ID=54995530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410317116.8A Active CN105226741B (en) 2014-07-03 2014-07-03 A kind of charging method of mobile terminal, electric quantity test method, relevant device and system

Country Status (1)

Country Link
CN (1) CN105226741B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105846263B (en) * 2016-03-23 2018-02-02 广东欧珀移动通信有限公司 A kind of charging measurement method and system of mobile terminal
CN106771572B (en) * 2016-12-12 2019-09-20 深圳市元征科技股份有限公司 Vehicle electric quantity monitoring method and device
CN113030560B (en) * 2019-12-24 2023-06-13 深圳市万普拉斯科技有限公司 Mobile terminal, test instrument and test system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1936777B1 (en) * 2006-12-18 2017-11-01 Nissan Motor Ltd. Abnormality Diagnostic Device
CN100493226C (en) * 2007-01-05 2009-05-27 华为技术有限公司 Test system of the mobile terminal power consumption
CN102918473B (en) * 2010-06-07 2015-07-08 松下电器(美国)知识产权公司 Mobile-type information processing terminal
CN103682498B (en) * 2013-12-04 2016-03-02 华为终端有限公司 A kind of charging method and electronic equipment

Also Published As

Publication number Publication date
CN105226741A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
CN106233565B (en) Charging method and mobile terminal
CN106787027B (en) Charge mode switching circuit and method
CN106663957B (en) Charging method, adapter, mobile terminal and charging system
CN105226741B (en) A kind of charging method of mobile terminal, electric quantity test method, relevant device and system
CN104810874B (en) Charging-starting detection circuit and method
CN103997092B (en) A kind of charging method of intelligent charge socket based on mobile phone
US9841737B2 (en) Automatic test system and method
CN103312852A (en) Automatic mobile terminal current testing device and testing method thereof
CN109327350A (en) A kind of batch carries out the method and apparatus and system of terminal test
CN109038735A (en) A kind of charge control method, apparatus and system
CN105470588A (en) Battery information detection control method, intelligent battery and terminal
CN107529125B (en) Bluetooth device communication method and communication device
CN109961657A (en) A kind of unmanned plane concocting method, unmanned plane and console
CN102883270B (en) A kind of timing sends the terminal and method of geo-localisation information
CN203490285U (en) Unmanned plane full-automatic impedance detection device
CN105509581B (en) The extension time setting method of programmable device and electric detonator
CN106105101A (en) For by via the system and method causing interruption control testing process to test RF transceiver
CN208209199U (en) A kind of new energy vehicle charging interface and a kind of new energy vehicle charging equipment
CN105281407A (en) Charging acceleration method and system for mobile terminal
CN205304831U (en) Testing system
CN103441894A (en) Method and system for L2TP concurrent connection performance test
CN109148986A (en) A kind of charging method and device
CN105701049B (en) System, method, apparatus and the mobile terminal of charge flag position is written
CN107809127A (en) One kind collection charged state data method, secure charging method and safe charging system
CN104615524B (en) The USB plug method of testings of mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant