CN112345823A - Power consumption testing method, device and system and storage medium - Google Patents

Power consumption testing method, device and system and storage medium Download PDF

Info

Publication number
CN112345823A
CN112345823A CN202011126249.9A CN202011126249A CN112345823A CN 112345823 A CN112345823 A CN 112345823A CN 202011126249 A CN202011126249 A CN 202011126249A CN 112345823 A CN112345823 A CN 112345823A
Authority
CN
China
Prior art keywords
voltage value
test
power consumption
module
battery
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.)
Granted
Application number
CN202011126249.9A
Other languages
Chinese (zh)
Other versions
CN112345823B (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.)
Shenzhen Xinguodu Tech Co Ltd
Original Assignee
Shenzhen Xinguodu Tech 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 Shenzhen Xinguodu Tech Co Ltd filed Critical Shenzhen Xinguodu Tech Co Ltd
Priority to CN202011126249.9A priority Critical patent/CN112345823B/en
Publication of CN112345823A publication Critical patent/CN112345823A/en
Application granted granted Critical
Publication of CN112345823B publication Critical patent/CN112345823B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The invention discloses a power consumption testing method, a device, a system and a storage medium. The method comprises the following steps: acquiring a battery supply voltage, and recording a first voltage value of the current battery supply voltage; generating a test starting instruction according to the first voltage value; sending the test starting instruction to a device to be tested for testing; monitoring the battery supply voltage, and recording the time difference of the first voltage value falling to a second voltage value when the battery supply voltage falls to the second voltage value so as to determine the power consumption of the device to be tested; the first voltage value is greater than the second voltage value. According to the time difference of the first voltage value and the second voltage value, the power consumption of the equipment to be tested is calculated, the testing method is simple, manual data monitoring through an instrument is not needed, the testing efficiency is improved, and the labor cost can be reduced.

Description

Power consumption testing method, device and system and storage medium
Technical Field
The present invention relates to the field of electronic device testing, and in particular, to a power consumption testing method, apparatus, system, and storage medium.
Background
With the continuous development of science and technology, the application of electronic equipment is more and more extensive, and the convenience of the power consumption test of the electronic equipment is more and more important.
In the correlation technique, the test of the power consumption of a single module of the electronic equipment needs to be carried out manually, the operation is complex and laborious, the test efficiency is lower, and an operator needs to have certain professional knowledge, so that the production cost of the product is increased. For example, a POS terminal includes a communication module, a card reading module, a printing module, a voice module, and a camera module, and it takes a long time to perform a power consumption test on a single module, and a test process is complicated.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the power consumption testing method provided by the invention can realize long-time cycle automatic testing, the power consumption testing data is more accurate, and an operator does not need to have a large amount of professional knowledge.
The power consumption testing method according to the embodiment of the first aspect of the invention comprises the following steps:
acquiring a battery supply voltage, and recording a first voltage value of the current battery supply voltage;
generating a test starting instruction according to the first voltage value;
sending the test starting instruction to a device to be tested for testing;
monitoring the battery supply voltage, and recording the time difference of the first voltage value falling to a second voltage value when the battery supply voltage falls to the second voltage value so as to determine the power consumption of the device to be tested;
the first voltage value is greater than the second voltage value.
The power consumption testing method provided by the embodiment of the invention at least has the following beneficial effects: according to the time difference of the first voltage value and the second voltage value, the power consumption of the device to be tested is determined, the testing method is simple, manual data monitoring through an instrument is not needed, the testing efficiency is improved, and the labor cost can be reduced.
According to some embodiments of the invention, the test initiation instructions comprise a single module test instruction or a plurality of module test instructions; the sending the test starting instruction to the device to be tested for testing comprises the following steps: and sending the single module test instruction or the plurality of module test instructions to the equipment to be tested to correspondingly test the single module or the plurality of modules.
According to some embodiments of the invention, when the battery supply voltage is less than or equal to the second voltage value, outputting a charging instruction to control the battery to be charged so that the battery supply voltage reaches the first voltage value; acquiring a battery supply voltage, and recording a first voltage value of the current battery supply voltage; generating a test starting instruction according to the first voltage value; monitoring the battery supply voltage, and recording the time difference of the first voltage value falling to a second voltage value when the battery supply voltage falls to the second voltage value; circularly executing the steps to obtain a plurality of time differences; and determining the power consumption of the device to be tested according to a plurality of time differences.
According to some embodiments of the invention, the device to be tested is a POS terminal, and the POS terminal includes a communication module, a card reading module, a printing module, a voice module, a camera module, and the like.
The power consumption testing device according to the second aspect of the present invention includes a storage module, a processing module, and a computer program stored on the storage module and executable on the processing module, and the processing module implements, when executing the computer program:
the power consumption testing method according to the embodiment of the first aspect of the invention.
The power consumption testing device provided by the embodiment of the invention at least has the following beneficial effects: the computer program is used for testing the equipment to be tested, the operation method is simpler and more convenient, single-time, multiple-time, single-module and multiple-module tests can be carried out according to actual needs, and the test flexibility is improved.
According to some embodiments of the invention, the processing module comprises:
the processing unit is used for acquiring the power supply voltage of the battery and recording a first voltage value of the current power supply voltage of the battery; generating a test starting instruction according to the first voltage value; sending the test starting instruction to a device to be tested for testing; collecting battery power supply voltage data and sending the test starting instruction;
and the test host is connected with the processing unit and used for monitoring the battery supply voltage, and recording the time difference from the first voltage value to the second voltage value when the battery supply voltage is reduced to the second voltage value so as to determine the power consumption of the equipment to be tested.
A power consumption test system according to an embodiment of a third aspect of the present invention includes:
the power consumption testing device according to the above second aspect of the embodiment of the present invention;
a battery for providing the battery supply voltage;
and the equipment to be tested is connected with the power consumption testing device through an interface.
The power consumption test system provided by the embodiment of the invention at least has the following beneficial effects: the device to be tested is connected with the power consumption testing equipment through the interface, so that the use is convenient, the influence of the device to be tested on the measurement accuracy is reduced, the testing efficiency can be improved, and the error probability is reduced.
According to some embodiments of the invention, further comprising: and the control module is connected with the processing module and the charging module and used for receiving and executing the test starting instruction sent by the processing module and controlling the charging and discharging states of the battery.
According to some embodiments of the invention, the control module comprises a relay switch.
According to a fourth aspect of the present invention, there is provided a computer-readable storage medium having computer-executable instructions for causing a computer to perform the power consumption testing method according to the first aspect of the present invention.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart illustrating a power consumption testing method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a cycle test flow of a power consumption test method according to an embodiment of the invention;
FIG. 3 is a diagram illustrating a power consumption testing apparatus according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a processing module according to an embodiment of the invention;
FIG. 5 is a schematic diagram of the operation of a control module according to an embodiment of the present invention;
FIG. 6 is a flow chart of a power consumption testing system according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of a power consumption testing system according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
It should be noted that, in the following embodiments, the device to be tested may be a mobile terminal device or a non-mobile terminal device. The mobile terminal equipment can be a mobile phone, a tablet computer, a notebook computer, a palm computer, vehicle-mounted terminal equipment, wearable equipment, a super mobile personal computer, a netbook, a personal digital assistant, a sales terminal and the like; the non-mobile terminal equipment can be a personal computer, a television, a teller machine, a POS terminal or a self-service machine and the like; the embodiments of the present invention are not particularly limited. The device to be tested is provided with a battery which can be a lithium battery, a dry battery, a storage battery and the like.
In the following embodiments, taking the example that the device to be tested is a POS terminal, the POS terminal includes a communication module, a card reading module, a printing module, a voice module, a camera module, and the like.
In a first aspect, described with reference to fig. 1, a power consumption testing method according to an embodiment of the present invention includes:
s101: acquiring the power supply voltage of a battery, and recording a first voltage value of the current power supply voltage of the battery.
In some embodiments, the first voltage value may specifically be a parameter value that is set manually. The first voltage value can be a full-power voltage value, and can also be other customized voltage values.
And acquiring the power supply voltage of the battery, and recording the current corresponding moment when the power supply voltage of the battery is equal to the set first voltage value.
S102: and generating a test starting instruction according to the first voltage value.
In some embodiments, when the battery supply voltage reaches a set first voltage value (which may be a full-power voltage value or a self-defined voltage value), the internal processing module generates a test start instruction for starting a test. The test starting instruction may include instructions of test module selection, test selection, and the like.
S103: and sending the test starting instruction to the device to be tested for testing.
In some embodiments, after the battery supply voltage reaches the first voltage value, a test start instruction is generated and sent to the device to be tested, and the device to be tested executes the test start instruction and starts to perform the test until the test is finished. The device to be tested can be a bus card swiping device, a point of sale (POS) machine and the like.
S104: and monitoring the battery supply voltage, and recording the time difference of the first voltage value falling to the second voltage value when the battery supply voltage falls to the second voltage value.
In some embodiments, the second voltage value may be the lowest voltage value at which the device to be tested operates, or may be a voltage value that is artificially defined, the sampling circuit collects information of the battery supply voltage in real time, uploads the information to the processing module, the processing module monitors the battery supply voltage, and when the battery supply voltage drops to the second voltage value, the time difference that the voltage drops from the first voltage value to the second voltage value is recorded, and by using the formula: and the power consumption is (electric quantity corresponding to the first voltage value-electric quantity corresponding to the second voltage value) ÷ time difference, and the electric quantity and the voltage are in a direct proportion relation, so that the power consumed by the operation of the module can be determined according to the first voltage value, the second voltage value and the time difference.
According to the power consumption testing method provided by the embodiment of the invention, the power consumption of the equipment to be tested is calculated by monitoring the time difference of the voltage from the first voltage value to the second voltage value, the power consumption testing method is simple to operate, the testing result is relatively accurate, and an operator does not need to have professional knowledge in hardware and instrument operation, so that the production cost can be reduced. The first voltage value and the second voltage value can be preset or manually input, so that the test flexibility is improved, and the test device can be used for power consumption tests of different electronic devices.
In some embodiments of the invention, the test initiation instructions comprise single module test instructions or multiple module test instructions. Sending the test starting instruction to a device to be tested for testing, comprising: and sending the single module test instruction or the multiple module test instructions to the equipment to be tested to correspondingly test the single module or the multiple modules.
For example, the test initiation command may include a single module test command or a plurality of module test commands, and the operator may select a single module test or a plurality of module tests on the host device. In some embodiments, the module to be tested is a POS terminal, a single module test is selected, for example, a card reading module test, when the battery supply voltage reaches a first voltage value, the processing module records the current time, the test program starts to run, the POS terminal continuously runs the card reading module, the test is stopped until the battery supply voltage drops to a second voltage value, and the processing module records the time when the test is stopped, so that a time difference taken for the first voltage value to drop to the second voltage value is obtained, and further, the power consumption of the module running can be obtained.
In some embodiments, the module to be tested is a POS terminal, two module tests are selected, for example, a card reading module and a printing module test, when the battery supply voltage reaches a first voltage value, the processing module records the current time, the test program starts to run, the POS terminal repeatedly runs the card reading module and the printing module in sequence, the test is stopped until the battery supply voltage drops to a second voltage value, and the processing module records the time when the test is stopped, so that the time difference that the first voltage value drops to the second voltage value is obtained, and further, the power consumption of the module in running can be obtained.
In some embodiments of the present invention, when the battery supply voltage is less than or equal to the second voltage value, the charging command is output to control the battery to be charged, so that the battery supply voltage reaches the first voltage value; acquiring a battery power supply voltage, and recording a first voltage value of the current battery power supply voltage; generating a test starting instruction according to the first voltage value; monitoring the battery supply voltage, and recording the time difference of the first voltage value falling to the second voltage value when the battery supply voltage falls to the second voltage value; circularly executing the steps to obtain a plurality of time differences; and determining the power consumption of the device to be tested according to the plurality of time differences.
For example, as shown in fig. 2, in some embodiments, a plurality of loop tests are selected on the host device, the test module selects the card reading module, and the preset number of tests is two. The processing module acquires data of the battery power supply voltage in real time, when the battery power supply voltage reaches a first voltage value, the testing of the equipment to be tested is started, the card reading module starts to operate until the battery power supply voltage is reduced to a second voltage value, the first testing is completed, and first time difference data are obtained. The processing module acquires the battery supply voltage in real time, and when the battery supply voltage is less than or equal to the second voltage value, the processing module outputs a charging instruction so as to charge the battery, and when the battery supply voltage data acquired in real time reaches the first voltage value, the power consumption testing step is repeatedly executed to perform the second test, namely: the processing module obtains and records the time when the battery power supply voltage reaches the first voltage value, generates a test starting instruction, and the card reading module starts to operate until the battery power supply voltage is reduced to the second voltage value, records the current time, so as to obtain second time difference data, thereby finishing the test, and calculating the average value through two results to obtain the power consumption.
In some embodiments, a plurality of loop tests are selected on the host device, the module selects the card reading module and the printing module, and the preset number of tests is three. The processing module acquires data of the battery power supply voltage in real time, when the battery power supply voltage reaches a first voltage value, the testing of the device to be tested is started, the card reading module and the printing module are repeatedly operated in sequence until the battery power supply voltage is reduced to a second voltage value, the first testing is completed, and first time difference data are acquired. The processing module acquires the battery supply voltage in real time, and when the battery supply voltage is less than or equal to the second voltage value, the processing module outputs a charging instruction so as to charge the battery, and when the battery supply voltage data acquired in real time reaches the first voltage value, the power consumption testing step is repeatedly executed to perform the second test, namely: the processing module obtains and records the time when the battery power supply voltage reaches the first voltage value, a test starting instruction is generated, the card reading module and the printing module start to operate, the current time is recorded until the battery power supply voltage is reduced to the second voltage value, the second time difference data is obtained, whether the test frequency reaches the preset test frequency or not is judged, the test is ended until the test frequency reaches the preset test frequency, and therefore the three time difference data can be obtained, the three time difference data are compared to form normal distribution, and the power consumption is obtained through the expected value. It is conceivable that the number of cycles may be preset to four times, five times, or several times as needed, and the number of cycles of the power consumption test is controlled by the preset number of cycles instruction.
In some embodiments of the present invention, the device to be tested is a POS terminal, and the POS terminal includes a communication module, a card reading module, a printing module, a voice module, a camera module, and the like. For example, a single module may be selected to perform a power consumption test, or two, three, or more modules may be selected to perform multiple module tests, for example, a communication module and a card reading module are selected to perform a single test, when the battery supply voltage reaches a first voltage value, the test is started, the communication module and the card reading module are sequentially and cyclically executed until the battery supply voltage is reduced to a second voltage value, the test is ended, and the power consumption is calculated according to a time difference obtained by the test.
In a second aspect, an embodiment of the present invention provides a power consumption testing apparatus, which includes a storage module, a processing module, and a computer program that is stored in the storage module and is executable on the processing module, where the processing module implements the power consumption testing method in the first aspect when executing the computer program. For example, as shown in fig. 3, the storage module 210, which is a non-transitory computer-readable storage medium, may be used to store a non-transitory software program and a non-transitory computer-executable program, such as the power consumption testing method according to the embodiment of the first aspect of the present invention. The processing module 220 implements the power consumption testing method according to the first embodiment of the present invention by executing the non-transitory software program and the instructions stored in the storage module 210.
The storage module 210 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the stored data area may store data and the like required to perform the power consumption test method according to the embodiment of the first aspect of the present invention. Further, the storage module 210 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the storage module 210 optionally includes memory located remotely from the processor, which may be connected to the terminal over a network.
The non-transitory software program and instructions required to implement the power consumption testing method in the first aspect embodiment of the present invention are stored in the storage module 210, and when executed by the processing module 220, perform the power consumption testing method in the first aspect embodiment of the present invention, for example, perform the above-described method steps S101 to S104 in fig. 1.
In some embodiments of the invention, the processing module comprises: the processing unit is used for acquiring the power supply voltage of the battery, recording a first voltage value of the current power supply voltage of the battery, and generating a test starting instruction according to the first voltage value; sending a test starting instruction to a device to be tested for testing, collecting battery power supply voltage data and sending the test starting instruction; and the test host is connected with the processing unit and used for monitoring the battery supply voltage, and recording the time difference from the first voltage value to the second voltage value when the battery supply voltage is reduced to the second voltage value so as to determine the power consumption of the equipment to be tested. For example, as shown in fig. 4, the processing module 220 includes a processing unit 221 and a test host 222, where the processing unit 221 is configured to obtain data of a battery power supply voltage, transmit a current first time to the test host 222 when the battery power supply voltage reaches a first voltage value, and start the power consumption testing apparatus to start a test; when the battery supply voltage drops to the second voltage value, the current second time is transmitted to the test host 222. The test host 222 is configured to monitor a battery supply voltage, receive the first time and the second time sent by the processing unit 221, calculate a time difference, store a time difference value, and select a test start instruction, such as a single module or multiple modules, on the test host 222. The processing unit 221 may further be provided, where the processing unit 221 is provided with a module having functions of storage, calculation, and the like, and the processing unit 221 obtains the battery power supply voltage data, saves the time when the battery power supply voltage is the first voltage value and the second voltage value, calculates the time difference, and further obtains the power consumption.
In a third aspect, the present invention provides a power consumption testing system, comprising: the power consumption testing device according to the embodiment of the second aspect of the present invention is used for providing a battery of the battery supply voltage and a device to be tested, and the device to be tested is connected with the power consumption testing device through an interface. For example, the battery is used for providing electric energy for the operation of the power consumption testing device, the device to be tested is connected with the power consumption testing device through the USB interface, and the testing content is selected on the testing host, wherein the testing content includes the number of testing times and the selection of the testing module. The voltage data of the battery is collected through the sampling unit, and the battery power supply voltage data is transmitted to the processing module to be processed. When the power supply voltage of the battery reaches a first voltage value, the power consumption testing equipment starts to execute the selected testing option, and the processing module uploads the current moment to the testing host for recording and storing; when the battery supply voltage is reduced to a second voltage value, one test is finished, and the time when the battery supply voltage is reduced to the second voltage value is uploaded to the test host by the processing module for recording and storing, so that the time difference of the first test is obtained. It is conceivable that the device to be tested may be a POS terminal, a bus swipe machine, etc.
In some embodiments of the present invention, the battery further includes a control module, where the control module is connected to the processing module, and is configured to receive and execute a test start instruction sent by the processing module, and control the charging and discharging state of the battery. For example, as shown in fig. 5, the processing module 220 receives the power supply voltage data of the battery 400 collected by the sampling unit, transmits the power supply voltage data of the battery to the control module 230, and sends an on-off command to the control module 230 to control charging and discharging of the battery 40. In some embodiments, when the battery supply voltage reaches the first voltage value, the processing module 220 receives the voltage data and sends a power-off command to the control module 230, so that the battery 400 stops charging, and the power consumption testing device starts to perform the power consumption test; when the battery 400 is charged to the second voltage value, the processing module 220 receives the voltage value data and transmits a charging instruction to the control module 230, so that the battery 400 starts to be charged. The processing module 220 sends the time when the battery supply voltage reaches the first voltage value and the second voltage value to the test host for recording and storing, so as to obtain the time difference and calculate the power consumption.
In some embodiments of the invention, the control module comprises a relay switch. For example, a relay switch is arranged in the control module, and when the battery supply voltage reaches a first voltage value, the processing module sends a power-off instruction to the control module, so that the relay switch is turned off, the battery 400 stops charging, and meanwhile, the processing module sends a test starting instruction; when the battery power supply voltage is consumed to the second voltage value, the processing module sends a charging instruction to the control module, so that the relay switch is closed, the battery 400 starts to be charged, the test host records and stores the time from the first voltage value to the second voltage value of the battery power supply voltage, and the power consumption can be calculated according to the time difference.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the storage module is used as a non-transitory computer-readable storage medium, and may be used to store a non-transitory software program and a non-transitory computer-executable program, such as the power consumption testing method according to the first aspect of the present invention. The processing module executes the non-transitory software program and the instructions stored in the memory, so as to implement the power consumption testing method according to the embodiment of the first aspect of the present invention.
A power consumption test system according to an embodiment of the present invention is described in detail in a specific embodiment with reference to fig. 6 and 7. It is to be understood that the following description is only exemplary, and not a specific limitation of the invention.
As shown in fig. 6, the device to be tested is a POS terminal 300, the POS terminal 300 module includes a communication module, a card reading module, a printing module, a voice module, a camera module, and the like, the first voltage value is set to 4.2V, and the second voltage value is set to 3.6V. The POS terminal 300 is connected to the power consumption test device through the USB interface, and a test module and the number of times of the cycle test are selected on the test host 222.
The sampling unit 250 is used for acquiring the power supply voltage at two ends of the battery 400 in real time, and uploading the voltage data to the processing module 220, when the power supply voltage of the battery is equal to 4.2V, the processing module 220 uploads the current time to the test host 222 for recording and storing, sends a power-off instruction to the control module 230, disconnects the relay, and starts to perform power consumption test on the POS machine terminal; when the power of the battery 400 is consumed to 3.6V, the processing module 220 uploads the current time to the test host 222 for recording and saving, and sends a charging instruction to the control module 230, the relay is closed, the battery 400 is charged through the charging unit 240, the test host 222 calculates the time taken by the battery supply voltage to be consumed from 4.2V to 3.6V, and can generate a test report according to the formula: the power consumption (electric quantity at 4.2V-electric quantity at 3.6V) ÷ time difference can be obtained as the power consumed by the module. When the test is carried out for multiple times of circulation tests, the power consumption can be obtained through the expected values of the test results for multiple times, and therefore the test accuracy can be improved. Meanwhile, the test system can also count the charging time.
In some embodiments, as shown in fig. 7, the device to be tested is a POS terminal 300, the POS terminal 300 modules include a communication module 310, a card reading module 320, a printing module 330, a voice module 340, a camera module 350, and the like, the first voltage value is set to 8.4V, the second voltage value is set to 7V, the POS power adapter 500 is connected with the power consumption testing device, the voltage value is converted into a voltage value which can normally work by the MCU processing unit 223 through the DC-DC600, the MCU processing unit 223 is connected with the testing host 222 through a serial port or a USB700, the test host 222 can select the test module to be tested and the number of times of the cycle test and can display the current running state, the MCU processing unit 223 controls the charge and discharge process of the lithium battery 410 by controlling the switch of the relay 231, and the ADC251 analog-to-digital conversion module collects the voltage information of the lithium battery 410 in real time and uploads the voltage information to the MCU processing unit 223. When the collected voltage of the lithium battery 410 is equal to 8.4V, the MCU processing unit 223 sends a power-off instruction, the relay 231 is disconnected, the lithium battery 410 stops charging, a test starting instruction is sent to the POS terminal 300, the test is started until the battery power supply voltage is consumed to 7V, the test is stopped, the MCU processing unit 223 sends a charging instruction, the relay 231 is closed, and the lithium battery 410 starts to be charged through the charging circuit 241. The test host 222 calculates the time it takes for the battery supply voltage to drain from 8.4V to 7V and may generate a corresponding test report, the amount of power consumption of which can be derived by a formula. The processing unit can be an ARM processor, an FPGA integrated circuit and the like, the test host 222 can be a PC, an industrial computer and the like, and the test host 222 comprises a display and can display the running state and the test result, so that the use of a tester is facilitated. In other embodiments, the ADC251 may be integrated with the processing unit, and the processing unit may be operated to collect the battery supply voltage information.
The power consumption test system can test the equipment to be tested for a long time, and the test method is simple. The test module and the test times can be selected according to actual requirements, so that the flexibility and comprehensiveness of the test are improved, and compared with a test method of manually connecting instruments in series, the accuracy of a test result is improved, and the labor cost is reduced.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made herein without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims (10)

1. The power consumption testing method is characterized by comprising the following steps:
acquiring a battery supply voltage, and recording a first voltage value of the current battery supply voltage;
generating a test starting instruction according to the first voltage value;
sending the test starting instruction to a device to be tested for testing;
monitoring the battery supply voltage, and recording the time difference of the first voltage value falling to a second voltage value when the battery supply voltage falls to the second voltage value so as to determine the power consumption of the device to be tested;
the first voltage value is greater than the second voltage value.
2. The power consumption test method according to claim 1,
the test starting instruction comprises a single module test instruction or a plurality of module test instructions;
the sending the test starting instruction to the device to be tested for testing comprises the following steps:
and sending the single module test instruction or the plurality of module test instructions to the equipment to be tested to correspondingly test the single module or the plurality of modules.
3. The power consumption test method according to claim 1 or 2, further comprising:
when the battery power supply voltage is smaller than or equal to the second voltage value, outputting a charging instruction to control a battery to be charged so that the battery power supply voltage reaches the first voltage value;
acquiring the battery power supply voltage, and recording a first voltage value of the current battery power supply voltage;
generating a test starting instruction according to the first voltage value;
monitoring the battery supply voltage, and recording the time difference of the first voltage value falling to a second voltage value when the battery supply voltage falls to the second voltage value;
circularly executing the steps to obtain a plurality of time differences;
and determining the power consumption of the device to be tested according to a plurality of time differences.
4. The power consumption testing method according to claim 1, wherein the device under test is a POS terminal, and the POS terminal includes a communication module, a card reading module, a printing module, a voice module, a camera module, and the like.
5. The power consumption testing device is characterized by comprising a storage module, a processing module and a computer program which is stored on the storage module and can run on the processing module, wherein the processing module realizes that when executing the computer program:
the power consumption testing method of any one of claims 1 to 4.
6. The power consumption testing apparatus of claim 5, wherein the processing module comprises:
the processing unit is used for acquiring the power supply voltage of the battery and recording a first voltage value of the current power supply voltage of the battery;
generating a test starting instruction according to the first voltage value;
sending the test starting instruction to a device to be tested for testing;
collecting battery power supply voltage data and sending the test starting instruction;
and the test host is connected with the processing unit and used for monitoring the battery supply voltage, and recording the time difference from the first voltage value to the second voltage value when the battery supply voltage is reduced to the second voltage value so as to determine the power consumption of the equipment to be tested.
7. A power consumption test system, comprising:
the power consumption test apparatus according to any one of claims 5 to 6;
a battery for providing the battery supply voltage;
and the equipment to be tested is connected with the power consumption testing device through an interface.
8. The power consumption test system of claim 7, further comprising:
and the control module is connected with the processing module and used for receiving and executing the test starting instruction sent by the processing module and controlling the charging and discharging state of the battery.
9. The power consumption test system of claim 8, wherein the control module comprises a relay switch.
10. Computer-readable storage medium, characterized in that it has computer-executable instructions for causing a computer to perform the power consumption testing method according to any of claims 1 to 4.
CN202011126249.9A 2020-10-20 2020-10-20 Power consumption testing method, device, system and storage medium Active CN112345823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011126249.9A CN112345823B (en) 2020-10-20 2020-10-20 Power consumption testing method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011126249.9A CN112345823B (en) 2020-10-20 2020-10-20 Power consumption testing method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN112345823A true CN112345823A (en) 2021-02-09
CN112345823B CN112345823B (en) 2024-06-18

Family

ID=74358614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011126249.9A Active CN112345823B (en) 2020-10-20 2020-10-20 Power consumption testing method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN112345823B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08320361A (en) * 1995-05-24 1996-12-03 Sharp Corp Method and device for estimating remaining battery charge
CN101587170A (en) * 2008-05-23 2009-11-25 英华达股份有限公司 Method for early warning dangerous state of lithium battery and portable electronic device thereof
KR20100035478A (en) * 2008-09-26 2010-04-05 삼성전자주식회사 Method and apparatus for controlling power consumption of a portable terminal
CN102023256A (en) * 2009-09-10 2011-04-20 英特尔公司 Power measurement techniques of a system-on-chip (soc)
CN103207317A (en) * 2013-03-25 2013-07-17 圣邦微电子(北京)股份有限公司 Voltage change collecting circuit of voltmeter applied to battery
CN103391362A (en) * 2013-07-11 2013-11-13 Tcl通讯(宁波)有限公司 Application classifying method based on power consumption and mobile terminal
CN104375092A (en) * 2014-11-18 2015-02-25 河北省电力建设调整试验所 Method for detecting dry battery voltage by using mobile phone
DE102014001856A1 (en) * 2013-12-16 2015-06-18 Liebherr-Hausgeräte Ochsenhausen GmbH Fridge and / or freezer
CN105071485A (en) * 2015-08-26 2015-11-18 中国电力科学研究院 Split type energy supply system of cable inspection robot and supply method thereof
CN105223504A (en) * 2014-05-30 2016-01-06 Tcl集团股份有限公司 A kind of evaluation method of electric quantity of lithium battery and system
CN106802845A (en) * 2017-01-09 2017-06-06 惠州Tcl移动通信有限公司 A kind of power consumption test method and system based on mobile terminal
WO2018040177A1 (en) * 2016-08-29 2018-03-08 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for rebooting
CN109116241A (en) * 2018-06-28 2019-01-01 厦门美图移动科技有限公司 A kind of battery testing method, mobile terminal and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08320361A (en) * 1995-05-24 1996-12-03 Sharp Corp Method and device for estimating remaining battery charge
CN101587170A (en) * 2008-05-23 2009-11-25 英华达股份有限公司 Method for early warning dangerous state of lithium battery and portable electronic device thereof
KR20100035478A (en) * 2008-09-26 2010-04-05 삼성전자주식회사 Method and apparatus for controlling power consumption of a portable terminal
CN102023256A (en) * 2009-09-10 2011-04-20 英特尔公司 Power measurement techniques of a system-on-chip (soc)
CN103207317A (en) * 2013-03-25 2013-07-17 圣邦微电子(北京)股份有限公司 Voltage change collecting circuit of voltmeter applied to battery
CN103391362A (en) * 2013-07-11 2013-11-13 Tcl通讯(宁波)有限公司 Application classifying method based on power consumption and mobile terminal
DE102014001856A1 (en) * 2013-12-16 2015-06-18 Liebherr-Hausgeräte Ochsenhausen GmbH Fridge and / or freezer
CN105223504A (en) * 2014-05-30 2016-01-06 Tcl集团股份有限公司 A kind of evaluation method of electric quantity of lithium battery and system
CN104375092A (en) * 2014-11-18 2015-02-25 河北省电力建设调整试验所 Method for detecting dry battery voltage by using mobile phone
CN105071485A (en) * 2015-08-26 2015-11-18 中国电力科学研究院 Split type energy supply system of cable inspection robot and supply method thereof
WO2018040177A1 (en) * 2016-08-29 2018-03-08 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for rebooting
CN106802845A (en) * 2017-01-09 2017-06-06 惠州Tcl移动通信有限公司 A kind of power consumption test method and system based on mobile terminal
CN109116241A (en) * 2018-06-28 2019-01-01 厦门美图移动科技有限公司 A kind of battery testing method, mobile terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
唐笛: "UEFI BIOS电源管理研究和应用", 中国优秀硕士学位论文全文数据库 (信息科技辑), no. 07, 15 July 2011 (2011-07-15), pages 137 - 72 *

Also Published As

Publication number Publication date
CN112345823B (en) 2024-06-18

Similar Documents

Publication Publication Date Title
US10191118B2 (en) Battery DC impedance measurement
CN104375085B (en) A kind of method, apparatus and terminal detecting battery capacity
US20180217208A1 (en) External diagnostics and module status change devices for battery modules
CN101097248A (en) Enhanced-accuracy battery capacity prediction
CN109991554B (en) Battery electric quantity detection method and device and terminal equipment
CN109991545B (en) Battery pack electric quantity detection method and device and terminal equipment
WO2019140956A1 (en) Electricity quantity metering accuracy detection method, device and computer storage medium
JP2017106889A (en) Diagnostic frequency determination method, storage battery degradation diagnostic method, diagnostic frequency determination system, and storage battery degradation diagnostic device
CN201886133U (en) Improved battery testing system
CN207457458U (en) A kind of accumulator wireless inspection device
CN110426588A (en) Charger detection device and system
CN109814037A (en) Acquisition methods, terminal device and the medium of the hot coefficient of lithium ion battery entropy
CN115267592A (en) Test system
CN112345823B (en) Power consumption testing method, device, system and storage medium
CN102375123A (en) Improved battery testing system and method
CN111781522B (en) Storage battery detection method, equipment and storage medium
US20220057454A1 (en) Battery emulation apparatus
CN111398726B (en) Method, system and equipment for testing charging and discharging response time of energy storage frequency modulation system
CN204330998U (en) For cell degradation detector and the cell degradation detection system of electric battery
EP2493048A9 (en) Method and system for detecting power supply source electrical current capacity
CN112147523B (en) Button cell allowance measuring method and measuring device
CN210181590U (en) MCU parameter testing system
JP2012088110A (en) Device and method for calculating capacity of secondary battery, and program
CN116068428A (en) Detection method, system, device, medium and equipment for lithium battery acquisition board
CN104569841A (en) Aging detection method and device for battery pack

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