CN106597085B - Power consumption testing method, device and system - Google Patents

Power consumption testing method, device and system Download PDF

Info

Publication number
CN106597085B
CN106597085B CN201611193838.2A CN201611193838A CN106597085B CN 106597085 B CN106597085 B CN 106597085B CN 201611193838 A CN201611193838 A CN 201611193838A CN 106597085 B CN106597085 B CN 106597085B
Authority
CN
China
Prior art keywords
power
tested
state
power consumption
equipment
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
CN201611193838.2A
Other languages
Chinese (zh)
Other versions
CN106597085A (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.)
Wuhan Xingji Meizu Technology Co ltd
Original Assignee
Meizu Technology 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201611193838.2A priority Critical patent/CN106597085B/en
Publication of CN106597085A publication Critical patent/CN106597085A/en
Application granted granted Critical
Publication of CN106597085B publication Critical patent/CN106597085B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R21/00Arrangements for measuring electric power or power factor
    • G01R21/06Arrangements for measuring electric power or power factor by measuring current and voltage

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a power consumption testing method, a power consumption testing device and a power consumption testing system, which are used for cutting off a power line in a universal serial bus connected between a control device and a tested device through a conversion module arranged on the universal serial bus, so that the universality is strong, the cost is reduced, and the management and control of a production line are facilitated. The power consumption testing method comprises the following steps: the control equipment controls the tested equipment to be in a state to be tested; the control equipment detects output power consumption parameters of a power supply supplying power to the tested equipment and calculates the power consumption of the tested equipment in a to-be-detected state according to the detected output power consumption parameters; the control equipment is connected with the tested equipment through a universal serial bus, a conversion module is arranged on the universal serial bus, a data port of the tested equipment is connected with a data port of the control equipment through a data port of the conversion module, a power port of the tested equipment is connected with a power supply through a power port of the conversion module, and the power port of the conversion module is disconnected with the power port of the control equipment.

Description

Power consumption testing method, device and system
Technical Field
The invention relates to the technical field of terminal testing, in particular to a power consumption testing method, device and system.
Background
With the increasing popularization of mobile terminals, the requirements on the mobile terminals are higher and higher, and the indexes of the mobile terminals to be tested are more and more. In order to shorten the production cycle of a production line, automatic control systems are mostly used to test these indicators, for example: basic function test, radio frequency calibration comprehensive test, antenna coupling test and the like. However, for power consumption testing of mobile terminals, manual testing is still mostly adopted.
If the power consumption of the mobile terminal needs to be automatically tested, the computer and the mobile terminal need to be connected through a Universal Serial Bus (USB), the computer can control the mobile terminal to automatically enter the states of startup, shutdown, standby, flight and the like through the USB, and then the computer reads the current and the voltage of a power supply, so that the power consumption of the mobile terminal in various states can be obtained.
However, when the computer is connected to the mobile terminal through the USB, the computer automatically charges the mobile terminal through the USB, and the charging current flows back to the power supply, which affects the power consumption test of the mobile terminal. The USB2.0 maximum charging current is 500mA, the USB3.0 maximum charging current reaches 900mA, and if the charging current is ignored, the accuracy of the power consumption test of the mobile terminal is seriously reduced.
In order to solve the problem, in the prior art, a function that the USB only performs data transmission and is not charged is mostly realized in a mode of upper-layer software development, and then the purpose of automatically testing the power consumption of the mobile terminal by using a computer can be achieved. However, for different types of mobile terminals, because of differences of platforms and charging chips, a set of software needs to be developed for each type of mobile terminal. Therefore, the implementation mode has the biggest disadvantage of no universality. If a plurality of mobile terminals are produced simultaneously, in order to realize the automatic test of the power consumption of the mobile terminals, a set of upper-layer software needs to be developed for each mobile terminal, so that the production cost is greatly increased, and the management and control of a production line are not facilitated by the plurality of sets of software.
In summary, in the prior art, the function that the USB connected between the computer and the mobile terminal only performs data transmission without charging is realized through upper-layer software, different software needs to be developed for different types of terminals, and the functions are poor in universality, high in cost and not beneficial to management and control of a production line.
Disclosure of Invention
The embodiment of the invention provides a power consumption testing method, a power consumption testing device and a power consumption testing system, which are used for cutting off a power line in a universal serial bus connected between a control device and a tested device through a conversion module arranged on the universal serial bus, so that the universality is strong, the cost is reduced, and the management and control of a production line are facilitated.
The embodiment of the invention provides a power consumption testing method, which comprises the following steps: the control equipment controls the tested equipment to be in a state to be tested; the control equipment detects output power consumption parameters of a power supply supplying power to the tested equipment and calculates the power consumption of the tested equipment in the state to be detected according to the output power consumption parameters; the control device is connected with the tested device through a universal serial bus, a conversion module is arranged on the universal serial bus, a data port of the tested device is connected with a data port of the control device through a data port of the conversion module, a power port of the tested device is connected with a power source through a power port of the conversion module, and the power port of the conversion module is disconnected with the power port of the control device.
In the above method provided by the embodiment of the present invention, the control device controls the device under test to be in the state to be detected, the control device detects the output power consumption parameter of the power supply supplying power to the device under test, and calculates the power consumption of the device under test in the state to be detected according to the detected output power consumption parameter, wherein the control device is connected to the device under test through a universal serial bus, a conversion module is disposed on the universal serial bus, a data port of the device under test is connected to a data port of the control device through a data port of the conversion module, a power port of the device under test is connected to the power supply through a power port of the conversion module, and the power port of the conversion module is disconnected from the power port of the control device, that is, a power line in the universal serial bus connected between the control device and the device under test is cut off through the conversion module disposed on the universal serial bus, so as to implement the function, thereby when carrying out the consumption test, avoided controlgear to charge to equipment under test, influence the problem of consumption test result, with realize through upper software among the prior art that the USB who links to each other between computer and the mobile terminal only carries out data transmission and does not charge the function compare, after setting up conversion module on the USB, different money equipment under test all can use this USB to carry out the consumption test, and the commonality is strong, and the cost is lower, and a plurality of production lines can share, be convenient for to the management and control of production line.
In a possible implementation manner, in the foregoing method provided by an embodiment of the present invention, the method further includes: the control equipment compares the power consumption of the tested equipment in the state to be detected with the rated power consumption of the tested equipment in the state to be detected; and recording abnormal data and alarming and reminding under the condition that the power consumption of the tested equipment in the state to be detected is abnormal according to the comparison result.
In a possible implementation manner, in the foregoing method provided by the embodiment of the present invention, the detecting, by the control device, an output power parameter of a power supply that supplies power to the device under test, and calculating power consumption of the device under test in the state to be detected according to the detected output power consumption parameter includes: and detecting a voltage parameter value and a current parameter value of a power supply for supplying power to the tested device, and taking the product of the voltage parameter value and the current parameter value as the power consumption of the tested device in the state to be detected.
In a possible implementation manner, an embodiment of the present invention provides the above method, where the state to be detected includes one or more of: the system comprises a starting state, a closing state, a standby state, a flight state, a communication state and a data transmission state.
In a possible implementation manner, in the foregoing method provided by an embodiment of the present invention, the method further includes: under the condition that the control equipment controls the tested equipment to be in a call state, the control equipment controls the virtual base station to establish call connection with the tested equipment; and/or under the condition that the control equipment controls the tested equipment to be in a data transmission state, the control equipment controls the virtual base station to establish data transmission connection with the tested equipment.
The embodiment of the invention provides a power consumption testing device, which comprises: the control unit is used for controlling the tested equipment to be in a state to be tested; the detection unit is used for detecting output power consumption parameters of a power supply for supplying power to the equipment to be detected; the power consumption calculation unit is used for calculating the power consumption of the tested equipment in the state to be detected according to the detected output power consumption parameters; the device is connected with the tested equipment through a universal serial bus, a conversion module is arranged on the universal serial bus, a data port of the tested equipment is connected with a data port of the device through a data port of the conversion module, a power port of the tested equipment is connected with a power supply through a power port of the conversion module, and the power port of the conversion module is disconnected with the power port of the device.
In the above apparatus provided in the embodiment of the present invention, the apparatus controls the device to be in the state to be detected, detects the output power consumption parameter of the power supply supplying power to the device to be detected, and calculates the power consumption of the device to be detected in the state to be detected according to the detected output power consumption parameter, wherein the apparatus is connected to the device to be detected through a universal serial bus, a conversion module is disposed on the universal serial bus, a data port of the device to be detected is connected to a data port of the apparatus through a data port of the conversion module, a power port of the device to be detected is connected to the power supply through a power port of the conversion module, and the power port of the conversion module is disconnected from the power port of the apparatus, that is, a power line in the universal serial bus connected between the apparatus and the device to be detected is cut off through the conversion module disposed on the universal serial bus, so as to implement the function of, thereby when carrying out the consumption test, avoided the device to charge to equipment under test, influence the problem of consumption test result, with realize among the prior art that the USB who links to each other between computer and the mobile terminal only carries out data transmission and does not charge the function compare through upper software, after setting up conversion module on the USB, different money equipment under test all can use this USB to carry out the consumption test, and the commonality is strong, and the cost is lower, and a plurality of production lines can share, be convenient for to the management and control of production line.
In a possible implementation manner, in the apparatus provided by the embodiment of the present invention, the power supply supplies power to the device under test through the first output channel, and the power supply supplies power to the universal serial bus through the second output channel.
In a possible implementation manner, an embodiment of the present invention provides the above apparatus, where the apparatus further includes: the comparison unit is used for comparing the power consumption of the tested equipment in the state to be detected with the rated power consumption of the tested equipment in the state to be detected; and the reminding unit is used for recording abnormal data and carrying out alarm reminding under the condition that the abnormal power consumption of the equipment to be tested in the state to be detected is determined according to the comparison result.
In a possible implementation manner, in the above apparatus provided by an embodiment of the present invention, the detection unit is specifically configured to: detecting a voltage parameter and a current parameter of a power supply supplying power to the device under test; the power consumption calculating unit is specifically configured to: and taking the product of the voltage parameter value and the current parameter value as the power consumption of the tested device in the state to be detected.
In a possible implementation manner, an embodiment of the present invention provides the above apparatus, wherein the state to be detected includes one or more of the following: the system comprises a starting state, a closing state, a standby state, a flight state, a communication state and a data transmission state.
In a possible implementation manner, in the above apparatus provided by an embodiment of the present invention, the control unit is further configured to: under the condition of controlling the tested equipment to be in a call state, controlling the virtual base station to establish call connection with the tested equipment; and/or controlling the virtual base station to establish data transmission connection with the tested device under the condition of controlling the tested device to be in a data transmission state.
The embodiment of the invention provides a power consumption test system, which comprises: the device comprises a control device, a tested device connected with the control device through a universal serial bus, a conversion module arranged on the universal serial bus and a power supply, wherein a data port of the tested device is connected with a data port of the control device through a data port of the conversion module, a power port of the tested device is connected with the power supply through a power port of the conversion module, and the power port of the conversion module is disconnected with the power port of the control device; the control device is used for controlling the tested device to be in the state to be detected, detecting the output power consumption parameter of the power supply supplying power to the tested device, and calculating the power consumption of the tested device in the state to be detected according to the detected output power consumption parameter.
In the system provided by the embodiment of the invention, the control device controls the tested device to be in the state to be detected, detects the output power consumption parameter of the power supply supplying power to the tested device, and calculates the power consumption of the tested device in the state to be detected according to the detected output power consumption parameter, wherein the control device is connected with the tested device through a universal serial bus, a conversion module is arranged on the universal serial bus, a data port of the tested device is connected with a data port of the control device through a data port of the conversion module, a power port of the tested device is connected with the power supply through a power port of the conversion module, and the power port of the conversion module is disconnected with the power port of the control device, that is, a power line in the universal serial bus connected between the control device and the tested device is cut off through the conversion module arranged on the universal serial bus, so that the function of only data transmission and no power supply between the control, thereby when carrying out the consumption test, avoided controlgear to charge to equipment under test, influence the problem of consumption test result, with realize through upper software among the prior art that the USB who links to each other between computer and the mobile terminal only carries out data transmission and does not charge the function compare, after setting up conversion module on the USB, different money equipment under test all can use this USB to carry out the consumption test, and the commonality is strong, and the cost is lower, and a plurality of production lines can share, be convenient for to the management and control of production line.
In a possible implementation manner, in the above system provided by the embodiment of the present invention, the power supply supplies power to the device under test through the first output channel, and the power supply supplies power to the universal serial bus through the second output channel.
In a possible implementation manner, an embodiment of the present invention provides the above system, where the state to be detected includes one or more of the following: the system comprises a starting state, a closing state, a standby state, a flight state, a communication state and a data transmission state.
In a possible implementation manner, an embodiment of the present invention provides the above system, where the system further includes: and the virtual base station is used for establishing call connection with the tested equipment under the condition that the control equipment controls the tested equipment to be in a call state according to the control of the control equipment, and/or establishing data transmission connection with the tested equipment under the condition that the control equipment controls the tested equipment to be in a data transmission state.
Drawings
Fig. 1 is a schematic flow chart of a power consumption testing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a power consumption testing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a power consumption testing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a power consumption testing system according to an embodiment of the present invention.
Detailed Description
The following describes specific embodiments of a power consumption testing method, device and system provided in an embodiment of the present invention in detail with reference to the accompanying drawings.
As shown in fig. 1, the method for testing power consumption according to the embodiment of the present invention includes:
and 102, controlling the tested device to be in a state to be detected by the control device.
In specific implementation, after the control device is connected with the tested device through the universal serial bus, the control device can control the state of the tested device, that is, the control device can control the tested device to be in the state to be detected.
Wherein the state to be detected comprises one or more of the following: the system comprises a starting state, a closing state, a standby state, a flight state, a communication state and a data transmission state.
104, detecting output power consumption parameters of a power supply for supplying power to the tested equipment by the control equipment, and calculating the power consumption of the tested equipment in a to-be-detected state according to the detected output power consumption parameters; the control equipment is connected with the tested equipment through a universal serial bus, a conversion module is arranged on the universal serial bus, a data port of the tested equipment is connected with a data port of the control equipment through a data port of the conversion module, a power port of the tested equipment is connected with a power supply through a power port of the conversion module, and the power port of the conversion module is disconnected with the power port of the control equipment.
In the embodiment of the invention, the control equipment is connected with the tested equipment through a universal serial bus, the universal serial bus comprises data lines (two lines) and power lines (two lines), a conversion module is arranged on the universal serial bus, the power lines in the universal serial bus between the control equipment and the tested equipment are cut off by using the conversion module, in the specific implementation, a data port of the tested equipment is connected with a data port of the control equipment through a data port of the conversion module, a power port of the tested equipment is connected with a power supply through a power port of the conversion module, and the power port of the conversion module is disconnected with the power port of the control equipment.
It is worth mentioning that, in the embodiment of the present invention, when the power supply supplies power to the device to be tested, the power supply supplies power to the device to be tested through the dual output channels, wherein the first output channel of the power supply is used as a dummy battery to directly supply power to the device to be tested, specifically, when the power consumption test is performed, a battery is not installed in the device to be tested, the first output channel of the power supply is connected with the device to be tested, and serves as the battery of the device to be tested to supply power to the device to be tested, that is, the first output channel of the power supply is used as the battery of; the second output channel of the power supply is connected with a power line in the universal serial bus through the conversion module, the conversion module cuts off the power line between the conversion module and the control device in the universal serial bus and connects the power line between the tested device and the conversion module in the universal serial bus with the second output channel of the power supply, when the universal serial bus is connected with the tested device, the power line in the universal serial bus can charge the tested device, namely the second output channel of the power supply charges the tested device through the universal serial bus. More preferably, the output voltage of the first output channel is an operating voltage of the device under test, for example: 4.3 volts (V), the output voltage of the second output channel is a charging voltage, for example: 5V. The first output channel and the second output channel are only used for distinguishing two output channels of the power supply, the first output channel serves as a dummy battery to supply power to the tested device, and the second output channel charges the tested device through the universal serial bus.
The following describes in detail the connection relationship among the control device, the device under test, the conversion module, and the power supply, and the principle of the power consumption test according to the embodiment of the present invention with reference to fig. 2.
As shown in fig. 2, the control device 202 is connected to the device under test 204 through a universal serial bus 21, the universal serial bus 21 includes two power lines (P + and P-) and two data lines (D + and D-), a conversion module 206 is disposed on the universal serial bus 21, and the conversion module 206 cuts off the power lines in the universal serial bus 21 between the control device 202 and the device under test 204, for example: the power line P + is cut off, and the power line P-is a ground line, and may be cut off or not cut off, at this time, the data port of the device under test 204 is connected with the data port of the control device 202 through the data port of the conversion module 206, the conversion module 206 connects the power line on the side of the device under test 204 with the power supply 208, that is, the power port of the device under test 204 is connected with the power supply 208 through the power port of the conversion module 206, and the other output channel of the power supply 208 is directly connected with the device under test 204 to supply power to the device under test 204.
Assuming that the output channel of the power supply 208 directly supplying power to the device under test 204 is a first output channel, the output channel of the power supply 208 charging the device under test 204 through the conversion module 206 is a second output channel, and the output power of the first output channel of the power supply 208 is Pout1Indicating that the output power of the second output channel of the power supply 208 is Pout2The power consumed by the device under test 204 is represented by PueP represents charging power for charging the device under test 204cIndicating that the total output power of the power supply 208 is PoutAnd (4) showing.
Because the output voltage (4.3V) of the first output channel of the power supply 208 is less than the output voltage (5V) of the second output channel, when the power consumption test is performed, the first output channel of the power supply 208 serves as a battery of the device under test 204, the second output channel of the power supply 208 charges the first output channel through a charging chip in the device under test 204, and the loss on the line is ignored, so that the output power P of the second output channel of the power supply 208 is obtainedout2P for charging power to the device under test 204cEqual, the following relationship exists:
Pout=Pout1+Pout2-Pc=Pout1=Pue
as can be seen from the above relationship, the total output power of the power supply 208 is equal to the power consumed by the device under test 204, so that when the control device controls the device under test to be in the state to be detected, the control device can obtain the power consumed by the device under test as long as the control device detects the output power of the power supply, and when the control device is specifically implemented, the control device detects the output power consumption parameter of the power supply supplying power to the device under test, and calculates the power consumption of the device under test in the state to be detected according to the detected output power consumption parameter.
Wherein, controlgear is connected with the power through General-Purpose Interface Bus (GPIB), and controlgear detects the output power consumption parameter of the power of supplying power to equipment under test to according to the power consumption parameter of detecting output and calculate equipment under the state of waiting to detect power consumption of equipment under, include: the control equipment detects a voltage parameter value and a current parameter value of a power supply supplying power to the tested equipment, and takes the product of the voltage parameter value and the current parameter value as the power consumption of the tested equipment in a state to be detected. Of course, it should be understood by those skilled in the art that other methods known in the art can be used in other embodiments of the present invention to detect the output power of the power supply supplying power to the device under test, and is not limited herein.
In the method provided by the embodiment of the invention, the control device controls the tested device to be in a state to be detected, the control device detects the output power consumption parameter of a power supply supplying power to the tested device, and calculates the power consumption of the tested device in the state to be detected according to the detected output power consumption parameter, wherein, the control device is connected with the tested device through a universal serial bus, a conversion module is arranged on the universal serial bus, a data port of the tested device is connected with a data port of the control device through a data port of the conversion module, a power port of the tested device is connected with the power supply through a power port of the conversion module, and the power port of the conversion module is disconnected with the power port of the control device, namely, a power line in the universal serial bus connected between the control device and the tested device is cut off through the conversion module arranged on the universal serial bus, thereby realizing the function of only carrying out data transmission and no power supply, thereby when carrying out the consumption test, avoided controlgear to charge to equipment under test, influence the problem of consumption test result, with realize through upper software among the prior art that the USB who links to each other between computer and the mobile terminal only carries out data transmission and does not charge the function compare, after setting up conversion module on the USB, different money equipment under test all can use this USB to carry out the consumption test, and the commonality is strong, and the cost is lower, and a plurality of production lines can share, be convenient for to the management and control of production line.
In a possible implementation manner, in a method provided by an embodiment of the present invention, the method further includes: the control equipment compares the power consumption of the tested equipment in the state to be detected with the rated power consumption of the tested equipment in the state to be detected; and recording abnormal data and alarming and reminding under the condition that the power consumption of the equipment to be tested is determined to be abnormal under the state to be detected according to the comparison result.
In specific implementation, after calculating the power consumption of the device under test in the state to be detected, the control device may compare the power consumption in the state to be detected with the pre-stored rated power consumption in the state to be detected, and if it is determined that the power consumption of the device under test in the state to be detected is abnormal according to the comparison result, for example: if the calculated power consumption is larger than the rated power consumption, recording abnormal data and carrying out alarm reminding, for example: and sound and light alarm reminding. Wherein the state to be detected comprises one or more of the following: the system comprises a starting state, a closing state, a standby state, a flight state, a communication state and a data transmission state.
In a possible implementation manner, in a method provided by an embodiment of the present invention, the method further includes: under the condition that the control equipment controls the tested equipment to be in a call state, the control equipment controls the virtual base station to establish call connection with the tested equipment; and/or under the condition that the control equipment controls the tested equipment to be in a data transmission state, the control equipment controls the virtual base station to establish data transmission connection with the tested equipment.
In the embodiment of the invention, the virtual base station is used for establishing the call connection with the tested equipment, the virtual base station is connected with the control equipment through the GPIB, the virtual base station is controlled by the control equipment, namely the control equipment controls the virtual base station to establish the call connection with the tested equipment under the condition that the control equipment controls the tested equipment to be in the call state, wherein the virtual base station can use the comprehensive testing instrument and can also use other equipment in the prior art, as long as the call connection with the tested equipment can be established. Similarly, under the condition that the control device controls the device under test to be in the data transmission state, the control device may also control the virtual base station to establish the data transmission connection with the device under test.
When the power consumption test is specifically carried out, after the system initialization is completed, the control equipment controls the tested equipment to enter the states of starting, shutting down, flying, standby and the like, the control equipment controls the virtual base station to establish call connection and data transmission connection with the tested equipment, and then the control equipment respectively detects the power consumption of the tested equipment in various states, so that the automatic power consumption test can be realized.
As shown in fig. 3, the power consumption testing apparatus provided in an embodiment of the present invention includes: the control unit 302 is used for controlling the tested device to be in a state to be tested; a detection unit 304 for detecting an output power consumption parameter of a power supply that supplies power to a device under test; the power consumption calculating unit 306 is configured to calculate power consumption of the device under test in the to-be-detected state according to the detected output power consumption parameter; the device is connected with a tested device through a universal serial bus, a conversion module is arranged on the universal serial bus, a data port of the tested device is connected with a data port of the device through a data port of the conversion module, a power port of the tested device is connected with a power supply through a power port of the conversion module, and the power port of the conversion module is disconnected with the power port of the device.
In the device provided by the embodiment of the invention, the device controls the tested equipment to be in a state to be detected, detects the output power consumption parameter of the power supply supplying power to the tested equipment, and calculates the power consumption of the tested equipment in the state to be detected according to the detected output power consumption parameter, wherein the device is connected with the tested equipment through a universal serial bus, a conversion module is arranged on the universal serial bus, a data port of the tested equipment is connected with a data port of the device through a data port of the conversion module, a power port of the tested equipment is connected with the power supply through a power port of the conversion module, and the power port of the conversion module is disconnected with the power port of the device, namely, a power line in the universal serial bus connected between the device and the tested equipment is cut off through the conversion module arranged on the universal serial bus, so that the function of only carrying out data transmission and not supplying power between the device and the tested, thereby when carrying out the consumption test, avoided the device to charge to equipment under test, influence the problem of consumption test result, with realize among the prior art that the USB who links to each other between computer and the mobile terminal only carries out data transmission and does not charge the function compare through upper software, after setting up conversion module on the USB, different money equipment under test all can use this USB to carry out the consumption test, and the commonality is strong, and the cost is lower, and a plurality of production lines can share, be convenient for to the management and control of production line.
In a possible implementation manner, in the apparatus provided in this embodiment of the present invention, the power supply supplies power to the device under test through the first output channel, and the power supply supplies power to the universal serial bus through the second output channel.
In a possible implementation manner, in an apparatus provided in an embodiment of the present invention, the apparatus further includes: the comparing unit 308 is configured to compare the power consumption of the device under test in the state to be detected with the rated power consumption of the device under test in the state to be detected; and the reminding unit 310 is configured to record abnormal data and alarm for reminding under the condition that the power consumption of the device to be tested in the state to be detected is abnormal according to the comparison result.
In a possible implementation manner, in the apparatus provided in the embodiment of the present invention, the detection unit 304 is specifically configured to: detecting a voltage parameter and a current parameter of a power supply supplying power to the tested equipment; the power consumption calculating unit 306 is specifically configured to: and taking the product of the voltage parameter value and the current parameter value as the power consumption of the tested device in the state to be detected.
In a possible implementation manner, in the apparatus provided by the embodiment of the present invention, the state to be detected includes one or more of the following: the system comprises a starting state, a closing state, a standby state, a flight state, a communication state and a data transmission state.
In a possible implementation manner, in the apparatus provided in the embodiment of the present invention, the control unit 302 is further configured to: under the condition of controlling the tested equipment to be in a call state, controlling the virtual base station to establish call connection with the tested equipment; and/or controlling the virtual base station to establish data transmission connection with the tested device under the condition of controlling the tested device to be in a data transmission state.
The power consumption testing device provided by the embodiment of the invention can be integrated on a production line, for example: the power consumption testing system is integrated on a production line of a mobile phone, a tablet personal computer and other wearable intelligent devices and used for performing power consumption testing on the produced devices, wherein the control unit 303, the detection unit 304 and the power consumption calculation unit 306 can all adopt a CPU (central processing unit) processor and the like, the comparison unit 308 can adopt a comparator and the like, and the reminding unit 310 can adopt a loudspeaker or a light emitting diode and the like.
As shown in fig. 4, the power consumption testing system provided in the embodiment of the present invention includes: the control device 402, the device under test 404 connected to the control device 402 via a universal serial bus, the conversion module 406 disposed on the universal serial bus, and the power supply 408, wherein a data port of the device under test 404 is connected to a data port of the control device 402 via a data port of the conversion module 406, a power supply port of the device under test 404 is connected to the power supply 408 via a power supply port of the conversion module 406, and the power supply port of the conversion module 406 is disconnected from the power supply port of the control device 402; the control device 402 is configured to control the device under test 404 to be in a state to be detected, detect an output power consumption parameter of a power supply 408 that supplies power to the device under test 404, and calculate power consumption of the device under test 404 in the state to be detected according to the detected output power consumption parameter.
In the system provided by the embodiment of the present invention, the control device 402 controls the device under test 404 to be in the state to be detected, detects the output power consumption parameter of the power supply 408 supplying power to the device under test 404, and calculates the power consumption of the device under test 404 in the state to be detected according to the detected output power consumption parameter, wherein the control device 402 is connected to the device under test 404 through a universal serial bus, a conversion module 406 is disposed on the universal serial bus, a data port of the device under test 404 is connected to a data port of the control device 402 through a data port of the conversion module 406, a power port of the device under test 404 is connected to the power supply 408 through a power port of the conversion module 406, and the power port of the conversion module 406 is disconnected from the power port of the control device 402, that is, the power line in the universal serial bus connected between the control device 402 and the device under test 404 is cut off through, the function that only data transmission is carried out between the control equipment 402 and the tested equipment 404 without power supply is realized, thereby when power consumption testing is carried out, the problem that the control equipment 402 charges the tested equipment 404 and the power consumption testing result is influenced is avoided, compared with the function that the universal serial bus connected between a computer and a mobile terminal is only carried out with data transmission and without charging through upper software in the prior art, after the conversion module 406 is arranged on the universal serial bus, different types of tested equipment can use the universal serial bus to carry out power consumption testing, the universality is strong, the cost is low, a plurality of production lines can be shared, and the management and control of the production lines are facilitated.
In one possible implementation, the embodiment of the present invention provides a system, in which the power supply 408 supplies power to the device under test 404 through a first output channel, and the power supply 408 supplies power to the usb through a second output channel.
In a possible implementation manner, in the system provided by the embodiment of the present invention, the state to be detected includes one or more of the following: the system comprises a starting state, a closing state, a standby state, a flight state, a communication state and a data transmission state.
In a possible implementation manner, in the system provided in the embodiment of the present invention, the system further includes: the virtual base station 410 is configured to establish a call connection with the device under test 404 under a condition that the control device 402 controls the device under test 404 to be in a call state, and/or establish a data transmission connection with the device under test 404 under a condition that the control device 402 controls the device under test 404 to be in a data transmission state, according to the control of the control device 402.
It is worth to be noted that, in the power consumption testing system provided in the embodiment of the present invention, the control device 402 is connected to the device under test 404 through a universal serial bus, the conversion module 406 is disposed on the universal serial bus connected between the control device 402 and the device under test 404, one output channel of the power source 408 is directly connected to the device under test 404, the other output channel of the power source 408 is connected to the conversion module 406 through the universal serial bus, the control device 402 is connected to the power source 408 through a universal interface bus to detect the output power of the power source 408, the control device 402 is connected to the virtual base station 410 through a universal interface bus to control the virtual base station 410 to establish a call connection or a data transmission connection with the device under test 404, and the virtual base station 410 is connected to the device under test 404 through a radio frequency connection line.
In summary, according to the power consumption testing method, device and system provided in the embodiments of the present invention, the power line in the usb connected between the control device and the device under test is cut off by the conversion module disposed on the usb, so that the function that only data transmission and no power supply are performed between the control device and the device under test is realized, and thus, when performing the power consumption test, the problem that the power consumption test result is affected by charging the device under test by the control device is avoided.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (15)

1. A method for power consumption testing, the method comprising:
the control equipment controls the tested equipment to be in a state to be tested;
the control equipment detects output power consumption parameters of a power supply supplying power to the tested equipment and calculates the power consumption of the tested equipment in the state to be detected according to the output power consumption parameters;
the control device is connected with the tested device through a universal serial bus, a conversion module is arranged on the universal serial bus, a data port of the tested device is connected with a data port of the control device through a data port of the conversion module, a power port of the tested device is connected with a power source through a power port of the conversion module, and the power port of the conversion module is disconnected with the power port of the control device.
2. The method of claim 1, further comprising:
the control equipment compares the power consumption of the tested equipment in the state to be detected with the rated power consumption of the tested equipment in the state to be detected;
and recording abnormal data and alarming and reminding under the condition that the power consumption of the tested equipment in the state to be detected is abnormal according to the comparison result.
3. The method according to claim 1, wherein the controlling device detects an output power parameter of a power supply supplying power to the device under test, and calculates the power consumption of the device under test in the to-be-detected state according to the detected output power parameter, including:
and detecting a voltage parameter value and a current parameter value of a power supply for supplying power to the tested device, and taking the product of the voltage parameter value and the current parameter value as the power consumption of the tested device in the state to be detected.
4. A method according to any one of claims 1 to 3, wherein the conditions to be detected include one or more of: the system comprises a starting state, a closing state, a standby state, a flight state, a communication state and a data transmission state.
5. The method of claim 4, further comprising:
under the condition that the control equipment controls the tested equipment to be in a call state, the control equipment controls the virtual base station to establish call connection with the tested equipment; and/or
Under the condition that the control equipment controls the tested equipment to be in a data transmission state, the control equipment controls the virtual base station to establish data transmission connection with the tested equipment.
6. A power consumption test apparatus, comprising:
the control unit is used for controlling the tested equipment to be in a state to be tested;
the detection unit is used for detecting output power consumption parameters of a power supply for supplying power to the equipment to be detected;
the power consumption calculation unit is used for calculating the power consumption of the tested equipment in the state to be detected according to the detected output power consumption parameters;
the device is connected with the tested equipment through a universal serial bus, a conversion module is arranged on the universal serial bus, a data port of the tested equipment is connected with a data port of the device through a data port of the conversion module, a power port of the tested equipment is connected with a power supply through a power port of the conversion module, and the power port of the conversion module is disconnected with the power port of the device.
7. The apparatus of claim 6,
the power supply supplies power to the tested device through the first output channel, and the power supply supplies power to the universal serial bus through the second output channel.
8. The apparatus of claim 6, further comprising:
the comparison unit is used for comparing the power consumption of the tested equipment in the state to be detected with the rated power consumption of the tested equipment in the state to be detected;
and the reminding unit is used for recording abnormal data and carrying out alarm reminding under the condition that the abnormal power consumption of the equipment to be tested in the state to be detected is determined according to the comparison result.
9. The apparatus according to claim 6, wherein the detection unit is specifically configured to:
detecting a voltage parameter and a current parameter of a power supply supplying power to the device under test;
the power consumption calculating unit is specifically configured to: and taking the product of the voltage parameter value and the current parameter value as the power consumption of the tested device in the state to be detected.
10. The apparatus according to any one of claims 6-9, wherein the conditions to be detected comprise one or more of: the system comprises a starting state, a closing state, a standby state, a flight state, a communication state and a data transmission state.
11. The apparatus of claim 10, wherein the control unit is further configured to:
under the condition of controlling the tested equipment to be in a call state, controlling the virtual base station to establish call connection with the tested equipment; and/or
And under the condition of controlling the tested equipment to be in a data transmission state, controlling the virtual base station to establish data transmission connection with the tested equipment.
12. A power consumption testing system, the system comprising:
the device comprises a control device, a tested device connected with the control device through a universal serial bus, a conversion module arranged on the universal serial bus and a power supply, wherein a data port of the tested device is connected with a data port of the control device through a data port of the conversion module, a power port of the tested device is connected with the power supply through a power port of the conversion module, and the power port of the conversion module is disconnected with the power port of the control device;
the control device is used for controlling the tested device to be in the state to be detected, detecting the output power consumption parameter of the power supply supplying power to the tested device, and calculating the power consumption of the tested device in the state to be detected according to the detected output power consumption parameter.
13. The system of claim 12,
the power supply supplies power to the tested device through the first output channel, and the power supply supplies power to the universal serial bus through the second output channel.
14. The system according to claim 12 or 13, wherein the conditions to be detected comprise one or more of: the system comprises a starting state, a closing state, a standby state, a flight state, a communication state and a data transmission state.
15. The system of claim 14, further comprising:
and the virtual base station is used for establishing call connection with the tested equipment under the condition that the control equipment controls the tested equipment to be in a call state according to the control of the control equipment, and/or establishing data transmission connection with the tested equipment under the condition that the control equipment controls the tested equipment to be in a data transmission state.
CN201611193838.2A 2016-12-21 2016-12-21 Power consumption testing method, device and system Active CN106597085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611193838.2A CN106597085B (en) 2016-12-21 2016-12-21 Power consumption testing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611193838.2A CN106597085B (en) 2016-12-21 2016-12-21 Power consumption testing method, device and system

Publications (2)

Publication Number Publication Date
CN106597085A CN106597085A (en) 2017-04-26
CN106597085B true CN106597085B (en) 2020-02-07

Family

ID=58602422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611193838.2A Active CN106597085B (en) 2016-12-21 2016-12-21 Power consumption testing method, device and system

Country Status (1)

Country Link
CN (1) CN106597085B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697168A (en) * 2019-01-11 2019-04-30 网易(杭州)网络有限公司 Power consumption weight testing method and device, electronic equipment, storage medium
CN111257631B (en) * 2020-01-16 2022-05-06 支付宝(杭州)信息技术有限公司 Terminal equipment power consumption measuring system and method
CN112486778A (en) * 2020-12-14 2021-03-12 Oppo(重庆)智能科技有限公司 Power consumption detection method and device, electronic equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0189754A1 (en) * 1985-01-09 1986-08-06 REFAC Electronics Corp. Power measuring apparatus
CN102023256A (en) * 2009-09-10 2011-04-20 英特尔公司 Power measurement techniques of a system-on-chip (soc)
WO2011144098A2 (en) * 2011-05-26 2011-11-24 华为终端有限公司 Mobile terminal and load power measuring method thereof
CN102590609A (en) * 2012-02-16 2012-07-18 惠州Tcl移动通信有限公司 Mobile terminal and method for measuring power consumption of mobile terminal
CN103763725A (en) * 2014-01-26 2014-04-30 天津市康凯特软件科技有限公司 Mobile terminal centralized control test and management method and device
JP2015210135A (en) * 2014-04-24 2015-11-24 富士電機機器制御株式会社 Electric power measurement device
CN105403764A (en) * 2015-11-04 2016-03-16 上海斐讯数据通信技术有限公司 Mobile terminal power consumption test system and method
CN105785113A (en) * 2014-12-25 2016-07-20 展讯通信(上海)有限公司 System and method for automatically testing power consumption

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI494572B (en) * 2010-12-28 2015-08-01 Prodigit Electronics Co Ltd Power consumption of the measurement circuit

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0189754A1 (en) * 1985-01-09 1986-08-06 REFAC Electronics Corp. Power measuring apparatus
CN102023256A (en) * 2009-09-10 2011-04-20 英特尔公司 Power measurement techniques of a system-on-chip (soc)
WO2011144098A2 (en) * 2011-05-26 2011-11-24 华为终端有限公司 Mobile terminal and load power measuring method thereof
CN102590609A (en) * 2012-02-16 2012-07-18 惠州Tcl移动通信有限公司 Mobile terminal and method for measuring power consumption of mobile terminal
CN103763725A (en) * 2014-01-26 2014-04-30 天津市康凯特软件科技有限公司 Mobile terminal centralized control test and management method and device
JP2015210135A (en) * 2014-04-24 2015-11-24 富士電機機器制御株式会社 Electric power measurement device
CN105785113A (en) * 2014-12-25 2016-07-20 展讯通信(上海)有限公司 System and method for automatically testing power consumption
CN105403764A (en) * 2015-11-04 2016-03-16 上海斐讯数据通信技术有限公司 Mobile terminal power consumption test system and method

Also Published As

Publication number Publication date
CN106597085A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN101674366B (en) Mobile terminal USB, or charger inserting identification method and identification device thereof
CN105814767B (en) A kind of electronic equipment fast charge method, device and equipment
US20130191653A1 (en) Usb hub for supplying power and method thereof
US20100060233A1 (en) Charger with USB detection
CN111239617B (en) Control method and device for charge and discharge test, storage medium and system
CN106597085B (en) Power consumption testing method, device and system
US9018896B2 (en) Method and system for determining whether a portable device is charging
CN105334420B (en) Information processing method and electronic equipment
CN105978093A (en) Mobile terminal
CN106026258A (en) Mobile terminal
CN104617615B (en) Charging method and electronic equipment
CN106469815B (en) Battery module and battery safety method
CN111480152A (en) Interface configuration method, terminal equipment and interface
WO2018174958A1 (en) Comparing electrical quantity output by power adapter to electrical quantity input by computing device
CN105891736A (en) QC2.0 fast charge detection circuit and detection method
CN105375544A (en) Low-battery battery charging method and power management integrated circuit
CN107878243A (en) A kind of battery management system and method
CN103037099B (en) Mobile phone photographing preview method and device
CN202798035U (en) Charging mode detection circuit and mobile terminal
CN106797414A (en) The leakage current detection circuit and terminal of a kind of terminal
KR101389740B1 (en) Battery charger for portable terminal and charging method thereof
CN106300549A (en) Electronic installation and charging method thereof
CN106329625B (en) charging method and device
CN208188289U (en) A kind of test macro of circuit power consumption
CN115333196A (en) Mobile energy storage power supply quick charging method, system, equipment and storage medium

Legal Events

Date Code Title Description
PB01 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
TR01 Transfer of patent right

Effective date of registration: 20240913

Address after: 430000, 14th floor, No. 181 Chunxiao Road, Wuhan Economic and Technological Development Zone, Hubei Province

Patentee after: Wuhan Xingji Meizu Technology Co.,Ltd.

Country or region after: China

Address before: 519085 Guangdong Zhuhai science and technology innovation coastal Meizu Technology Building

Patentee before: MEIZU TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right