CN116185784A - Calibration device, calibration system and acquisition system - Google Patents

Calibration device, calibration system and acquisition system Download PDF

Info

Publication number
CN116185784A
CN116185784A CN202310453919.5A CN202310453919A CN116185784A CN 116185784 A CN116185784 A CN 116185784A CN 202310453919 A CN202310453919 A CN 202310453919A CN 116185784 A CN116185784 A CN 116185784A
Authority
CN
China
Prior art keywords
calibration
voltage
module
acquisition
current
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
CN202310453919.5A
Other languages
Chinese (zh)
Other versions
CN116185784B (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310453919.5A priority Critical patent/CN116185784B/en
Publication of CN116185784A publication Critical patent/CN116185784A/en
Application granted granted Critical
Publication of CN116185784B publication Critical patent/CN116185784B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Current Or Voltage (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)

Abstract

The application discloses calibration device, calibration system and acquisition system belongs to the computer technology field. The calibration device comprises a voltage output module and at least one calibration module; the output end of each calibration module is connected with at least one detection channel of n detection channels in the acquisition device; the voltage output module outputs a first voltage to each calibration module, each calibration module outputs a second voltage and a third voltage to a connected detection channel when the first voltage is input, each detection channel is used for detecting a target current value according to the second voltage input by the detection channel and detecting a target voltage value according to the third voltage input by the calibration module, a current calibration parameter corresponding to each detection channel is determined according to a theoretical current value and a target current value, and a voltage calibration parameter corresponding to each detection channel is determined according to the theoretical voltage value and the target voltage value. The detection precision of the detection device can be improved.

Description

Calibration device, calibration system and acquisition system
Technical Field
The application relates to the field of computer technology, in particular to a calibration device, a calibration system and an acquisition system.
Background
With rapid development of computer technology, electronic devices have more and more functions and more application scenes. In order to improve the endurance experience of the electronic equipment, the power consumption evaluation of the electronic equipment is particularly important. Currently, the current and voltage of a load in an electronic device may be collected using a collection device to determine a corresponding power consumption therefrom. However, due to manufacturing influence, there is inevitably a deviation between the theoretical value and the detection value of the acquisition device, resulting in a decrease in the detection accuracy of the acquisition device. For this reason, a calibration device is needed to calibrate the acquisition device to improve the detection accuracy of the acquisition device.
Disclosure of Invention
The application provides a calibration device, a calibration system and an acquisition system, which can improve the detection precision of the acquisition device. The technical scheme is as follows:
in a first aspect, there is provided a calibration device comprising: a voltage output module and at least one calibration module.
The output end of the voltage output module is connected with the input end of each calibration module in at least one calibration module, the output end of each calibration module in at least one calibration module is used for being connected with at least one detection channel in n detection channels in the acquisition device, and n is an integer greater than or equal to 2.
The voltage output module is used for outputting a first voltage to each calibration module in the at least one calibration module, each calibration module in the at least one calibration module outputs a second voltage and a third voltage to the connected detection channels under the condition that the first voltage is input, each detection channel in the n detection channels is used for detecting a target current value according to the second voltage input by the connected detection channels and detecting a target voltage value according to the third voltage input by the connected calibration module, a current calibration parameter corresponding to each detection channel is determined according to a theoretical current value and a target current value, and a voltage calibration parameter corresponding to each detection channel is determined according to the theoretical voltage value and the target voltage value.
Optionally, the calibration device and the collection device are for connection through a board-to-board connector.
In the present application, since the circuit structure of each of the at least one calibration module is predicted, in the case where the voltage output module outputs the first voltage to each of the at least one calibration module, the theoretical current value and the theoretical voltage value that each of the at least one calibration module is expected to be detected by the connected detection channel can be known in advance. For any one of the n detection channels, the detection channel actually obtains a target current value and a target voltage value after detecting the connected calibration module. Under the condition, according to the theoretical current value corresponding to the calibration module connected with the detection channel and the target current value actually detected by the detection channel, the current calibration parameter corresponding to the detection channel can be determined, and according to the theoretical voltage value corresponding to the calibration module connected with the detection channel and the target voltage value actually detected by the detection channel, the voltage calibration parameter corresponding to the detection channel can be determined, so that a group of calibration parameters corresponding to the detection channel can be obtained. The set of calibration parameters corresponding to the detection channel is used for calibrating the actual detection value of the detection channel to a theoretical value, that is, the current calibration parameters corresponding to the detection channel are used for calibrating the current value actually detected by the detection channel to be close to or equal to the theoretical current value, and the voltage value actually detected by the detection channel is calibrated to be close to or equal to the theoretical voltage value. Because the calibrated detection value is close to or equal to the theoretical value, the detection precision of the acquisition device can be effectively improved.
Optionally, the voltage output module comprises a reference voltage source, a second processing unit and a digital-to-analog converter DAC. The two output ends of the reference voltage source are connected with the two reference voltage ends of the DAC one by one, the output end of the second processing unit is connected with the input end of the DAC, and the output end of the DAC is connected with the input end of each calibration module in the at least one calibration module.
The reference voltage source is a power source for outputting two reference voltages. One of the two reference voltages is the maximum value of the preset voltage range, and the other reference voltage is the minimum value of the preset voltage range. The DAC can stably and precisely output a desired voltage by the action of the two reference voltages outputted from the reference voltage source.
The second processing unit may output a digital quantity of the first voltage (i.e. a digital voltage) to the DAC when calibration of the acquisition device is required. The DAC may convert the digital voltage into an analog voltage (i.e., an analog quantity of the first voltage) according to two reference voltages input from the reference voltage source, where the analog voltage is within a preset voltage range. The DAC may then output the analog voltage to each of the at least one calibration module.
Optionally, the voltage output module further comprises two first voltage followers, one of the two first voltage followers is connected between one output end of the reference voltage source and one reference voltage end of the DAC, and the other first voltage follower is connected between the other output end of the reference voltage source and the other reference voltage end of the DAC.
The input impedance of the voltage follower is approximately infinite, and the output impedance of the voltage follower is extremely small, so that the voltage follower can play a role of isolation and buffering, and the two first voltage followers can enable two reference voltages output to the DAC by the reference voltage source to be more stable.
Optionally, any one of the at least one calibration module includes a second resistor and a third resistor, a first end of the second resistor is connected with an output end of the voltage output module, a second end of the second resistor is connected with a first end of the third resistor, a second end of the third resistor is connected with a ground wire, and two ends of the second resistor are used for being connected with at least one detection channel of the n detection channels.
In this case, the voltage of the second resistor is the second voltage, the voltage of the third resistor is the third voltage, and the resistance value of the second resistor and the resistance value of the third resistor are known. Since the resistance value of the second resistor and the resistance value of the third resistor are known, the actual current value (i.e., the theoretical current value) of the second resistor and the actual voltage value (i.e., the theoretical voltage value) of the third resistor can be predicted under the condition that the first voltage output to the second resistor by the voltage output module is predicted, that is, the theoretical current value and the theoretical voltage value corresponding to each of the n detection channels are predicted.
Optionally, the calibration module further includes a second voltage follower connected between the output end of the voltage output module and the first end of the second resistor, so as to ensure stability of the first voltage output by the voltage output module.
Optionally, the calibration device further comprises a third voltage follower connected between the output of the voltage output module and the input of each of the at least one calibration module to increase the load capacity of the voltage output module.
In a second aspect, a calibration system is provided that includes a calibration device, an acquisition device, and an electronic device.
The calibration device comprises a voltage output module and at least one calibration module, the acquisition device comprises n detection channels and a first processing unit, and n is a positive integer greater than or equal to 2. The output end of the voltage output module is connected with the input end of each calibration module in the at least one calibration module; the output end of each calibration module in the at least one calibration module is connected with at least one detection channel in the n detection channels; the n acquisition ends of the first processing unit are connected with the n detection channels one by one. The voltage output module is used for outputting a first voltage to each calibration module in the at least one calibration module; each of the at least one calibration module outputs a second voltage and a third voltage to the connected detection channel with the first voltage input. Each of the n detection channels is used for detecting a target current value according to a second voltage input by the connected detection channel and detecting a target voltage value according to a third voltage input by the connected calibration module; the first processing unit is used for acquiring a target current value and a target voltage value detected by each detection channel and sending the target current value and the target voltage value to the electronic equipment. The electronic device is used for determining current calibration parameters corresponding to each detection channel according to the theoretical current value and the target current value, and determining voltage calibration parameters corresponding to each detection channel according to the theoretical voltage value and the target voltage value so as to obtain n groups of calibration parameters corresponding to the n detection channels one by one, wherein each group of calibration parameters in the n groups of calibration parameters comprises the current calibration parameters and the voltage calibration parameters.
In the present application, since the circuit structure of each of the at least one calibration module is predicted, in the case where the voltage output module outputs the first voltage to each of the at least one calibration module, the theoretical current value and the theoretical voltage value that each of the at least one calibration module is expected to be detected by the connected detection channel can be known in advance. For any one of the n detection channels, the detection channel actually obtains a target current value and a target voltage value after detecting the connected calibration module. Under the condition, according to the theoretical current value corresponding to the calibration module connected with the detection channel and the target current value actually detected by the detection channel, the current calibration parameter corresponding to the detection channel can be determined, and according to the theoretical voltage value corresponding to the calibration module connected with the detection channel and the target voltage value actually detected by the detection channel, the voltage calibration parameter corresponding to the detection channel can be determined, so that a group of calibration parameters corresponding to the detection channel can be obtained. The set of calibration parameters corresponding to the detection channel is used for calibrating the actual detection value of the detection channel to a theoretical value, that is, the current calibration parameters corresponding to the detection channel are used for calibrating the current value actually detected by the detection channel to be close to or equal to the theoretical current value, and the voltage value actually detected by the detection channel is calibrated to be close to or equal to the theoretical voltage value. Because the calibrated detection value is close to or equal to the theoretical value, the detection precision of the acquisition device can be effectively improved.
Optionally, the electronic device is configured to send a calibration instruction to the voltage output module; the voltage output module is used for setting the first voltage to be the minimum value of a preset voltage range under the condition that the currently received calibration instruction is the first calibration instruction in the current calibration process, and outputting the first voltage to each calibration module in the at least one calibration module; under the condition that the currently received calibration command is not the first calibration command received in the current calibration process, if the first voltage is determined to be smaller than the maximum value of the preset voltage range, the first voltage is increased by the preset voltage, the first voltage is output to each calibration module in at least one calibration module, and if the first voltage is determined to be equal to the maximum value of the preset voltage range, the current calibration process is ended.
In this application, the electronic device may send a plurality of calibration instructions to the voltage output module. After receiving the target current value and the target voltage value sent by the first processing unit, the electronic device obtains a set of calibration current values corresponding to any one of the n detection channels, wherein the set of calibration current values comprise a theoretical current value and a target current value, and the electronic device obtains a set of calibration voltage values corresponding to the detection channel, and the set of calibration voltage values comprise the theoretical voltage value and the target voltage value.
Optionally, the electronic device is configured to determine, for any one of the n detection channels after the calibration process is finished, a current calibration parameter corresponding to the one detection channel according to a plurality of sets of calibration current values corresponding to the one detection channel obtained in the calibration process, where each set of calibration current values includes a theoretical current value and a target current value, and determine, according to a plurality of sets of calibration voltage values corresponding to the one detection channel obtained in the calibration process, a voltage calibration parameter corresponding to the one detection channel, where each set of calibration voltage values includes a theoretical voltage value and a target voltage value. Therefore, a group of calibration parameters corresponding to each detection channel in the n detection channels can be obtained, and the multi-channel calibration requirement can be met.
Optionally, the electronic device is configured to send the n sets of calibration parameters to the first processing unit for storage.
Optionally, the electronic device is configured to: generating a data packet carrying n groups of calibration parameters; obtaining the residual size of the cache space of the first processing unit; if the size of the data packet is smaller than or equal to the residual size of the buffer space, the data packet is sent to a first processing unit; if the size of the data packet is larger than the remaining size of the buffer space, generating a new data packet according to at least one group of calibration parameters in the data packet, wherein the size of the newly generated data packet is smaller than or equal to the remaining size of the buffer space, and transmitting the newly generated data packet to the first processing unit; if one or more groups of calibration parameters which are not transmitted to the first processing unit exist in the n groups of calibration parameters, generating a data packet carrying one or more groups of calibration parameters, and re-executing the step of acquiring the residual size of the buffer space of the first processing unit and the subsequent steps until all the n groups of calibration parameters are transmitted to the first processing unit.
In the application, a buffer space self-adaptive mode is provided, and the size of a data packet which is to be issued and carries calibration parameters is adjusted by monitoring the residual size of the buffer space of the first processing unit in real time, so that the normal operation of the first processing unit can be ensured, and the resource consumption of an acquisition device can be reduced.
In a third aspect, an acquisition system is provided that includes an electronic device and a plurality of acquisition devices, the electronic device being coupled to the plurality of acquisition devices.
The plurality of collecting devices are all collecting devices calibrated by the calibrating device according to the first aspect, each collecting device in the plurality of collecting devices stores current calibrating parameters and voltage calibrating parameters corresponding to each detecting channel in n detecting channels of the collecting devices, and data acquisition is synchronous when the collecting devices work. Any two acquisition devices in the plurality of acquisition devices are used for acquiring current and voltage data of different objects or current and voltage data of the same object; and each acquisition device in the plurality of acquisition devices uses the current calibration parameters and the voltage calibration parameters to calibrate the current and voltage data and then sends the current and voltage data to the electronic equipment.
The electronic device can thereby realize confirmation of power consumption of more loads of the same object, or confirmation of power consumption of loads of different objects. Therefore, the acquisition system can realize the power consumption measurement of more channels through the expansion of a plurality of acquisition devices, and has quite flexibility.
Optionally, the electronic device is connected to the plurality of acquisition devices through a USB interface extender.
In some embodiments, the electronic device may be connected to a plurality of acquisition devices through a USB interface extender, and the plurality of acquisition devices are each connected to an object to acquire current-voltage data of the object. The electronic device may also be connected to a further plurality of acquisition devices via a further USB interface extender, which may be connected to a further object. In this way, the electronic device can implement power consumption measurement of multiple objects through multiple USB interface expanders.
In other embodiments, the electronic device may be connected to multiple acquisition devices through a USB interface extender, and the multiple acquisition devices may be connected to different objects to acquire current voltage data for different objects. In this way, the electronic device can realize power consumption measurement of multiple objects through one USB interface extender.
Optionally, the designated pin of each of the plurality of collection devices is connected to the same node after the plurality of collection devices are connected to the electronic device. The electronic device is used for: and when the acquisition devices are identified to be connected, if the number of the acquisition devices which are connected currently is determined to be more than or equal to 2, determining the acquisition device which is connected first as a main device, and sending an indication message to the acquisition device which is connected first. The first connected acquisition device is for: after receiving the indication message, determining the self as the main equipment, and pulling up the level of the appointed pin of the self so as to generate a synchronous pulse signal. Other acquisition devices are used to: if the level of the appointed pin of the self is detected to be pulled up, the self is determined to be slave equipment, and data acquisition is carried out according to the synchronous pulse signal generated on the appointed pin of the self.
In the application, a master-slave logic control function is designed, the electronic equipment can define master-slave equipment in a plurality of acquisition devices according to the identification sequence of the acquisition devices, the master acquisition devices can generate synchronous pulse signals, and all detection channels of the plurality of acquisition devices can acquire and transmit data under the control of the synchronous pulse signals.
In a fourth aspect, an electronic device is provided, which includes a processor and a memory in a structure thereof, the memory being configured to store a program for supporting the electronic device to perform the operations performed by the electronic device in the above aspect, and to store data related to the operations performed by the electronic device in the above aspect. The processor is configured to execute a program stored in the memory. The electronic device may further comprise a communication bus for establishing a connection between the processor and the memory.
In a fifth aspect, there is provided a computer-readable storage medium having instructions stored therein that, when run on a computer, cause the computer to perform the operations of the above aspects performed by an electronic device.
In a sixth aspect, there is provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the operations of the above aspects performed by an electronic device.
Drawings
Fig. 1 is a schematic structural diagram of an acquisition device 100 according to an embodiment of the present application;
fig. 2 is a schematic diagram of connection between the first acquisition device 100 and the target object 200 according to an embodiment of the present application;
Fig. 3 is a schematic diagram of connection between the second acquisition device 100 and the target object 200 according to an embodiment of the present application;
fig. 4 is a schematic communication diagram of the first acquisition device 100 and the electronic device 300 according to the embodiment of the present application;
fig. 5 is a schematic communication diagram of the second acquisition device 100 and the electronic device 300 according to the embodiment of the present application;
FIG. 6 is a schematic structural diagram of a first calibration device 400 according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a second calibration device 400 according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of a third calibration device 400 according to an embodiment of the present application;
FIG. 9 is a schematic structural diagram of a fourth calibration device 400 according to an embodiment of the present application;
FIG. 10 is a schematic structural diagram of a fifth calibration device 400 according to an embodiment of the present application;
FIG. 11 is a schematic structural diagram of a sixth calibration device 400 according to an embodiment of the present application;
FIG. 12 is a schematic diagram of a calibration system provided in an embodiment of the present application;
FIG. 13 is a schematic diagram of a calibration process for the acquisition device 100 provided in an embodiment of the present application;
fig. 14 is a schematic diagram of a cache space adaptive manner provided in an embodiment of the present application;
fig. 15 is a schematic diagram illustrating an operation of the acquisition device 100 according to an embodiment of the present application;
FIG. 16 is a schematic diagram of an acquisition system provided in an embodiment of the present application;
fig. 17 is a schematic diagram of a synchronization pulse signal provided in an embodiment of the present application;
FIG. 18 is a schematic diagram of a master-slave logic control function provided by an embodiment of the present application;
fig. 19 is a schematic structural diagram of an electronic device 300 according to an embodiment of the present application;
fig. 20 is a schematic diagram of a software system of an electronic device 300 according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that reference herein to "a plurality" means two or more. In the description of the present application, "/" means or, unless otherwise indicated, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, for the purpose of facilitating the clear description of the technical solutions of the present application, the words "first", "second", etc. are used to distinguish between the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
The statements of "one embodiment" or "some embodiments" and the like, described in this application, mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in various places throughout this application are not necessarily all referring to the same embodiment, but mean "one or more, but not all, embodiments" unless expressly specified otherwise. Furthermore, the terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically noted.
The application scenario related to the embodiment of the present application is described below.
With rapid development of computer technology, electronic devices have more and more functions and more application scenes. In order to improve the endurance experience of the electronic equipment, the power consumption evaluation of the electronic equipment is particularly important. For example, in some application scenarios, with the deep development of the internet of things, more and more terminals powered by batteries begin to appear, and various terminals based on Bluetooth (BT), wireless fidelity (wireless fidelity, wi-Fi), long range (LoRa), narrowband internet of things (narrow band internet of things, NB-IoT), fourth generation mobile communication technology (the 4th generation mobile communication technology,4G), and the like need to be deployed at places where power cannot be supplied, which results in battery power being the only choice, and in this case, evaluation of power consumption of these terminals is critical in the research and development stage. In other application scenes, the wearable devices are more and more extended into daily life of people, and the Bluetooth headset, the Bluetooth bracelet, the intelligent watch, the body temperature detector, the blood pressure monitor, the blood glucose monitor and other wearable devices have no strict requirements on power consumption.
Low power consumption is a key performance index of devices such as mobile phones, personal computers (personal computer, PCs), tablet computers and the like. The low power consumption test is characterized by mainly comprising the following four points: 1. the current is tiny: the need for a small capacity battery to achieve a long endurance requires a small enough current resolution for the device used to perform the power consumption test, uA (microampere) being a fundamental requirement. 2. The dynamic range is large: many products sleep with currents that can reach the uA level, but once they wake up, the current rises rapidly to levels of tens of mA (milliamp) and even a (amp), which requires the device for power consumption testing to be able to accommodate transient changes in current from nearly 0 to several a and to maintain adequate accuracy. 3. The number of channels is large: when power consumption detection is carried out on one product, the power consumption performance of the whole machine is concerned, the power consumption performance of various loads is concerned, the power consumption distribution of the whole machine can be mastered through detailed power consumption splitting, and then a proper optimization strategy is searched for, so that the purpose of increasing endurance is achieved. 4. It is necessary to record the V-I-P (voltage-current-power) characteristic: the operating current and voltage changes are preferably recorded as needed to facilitate hardware and software debug or analytical research.
In view of the four requirements, the embodiments of the present application provide a power consumption detection scheme that supports multi-channel, high-precision detection and numerical recording. The power consumption detection scheme provided by the embodiment of the application can be applied to power consumption detection of a product under development in the product development stage, and also can be applied to power consumption detection of a released product, and the embodiment of the application is not limited to the power consumption detection scheme.
The power consumption detection scheme provided by the embodiment of the application can be realized through the acquisition device, the calibration device and the electronic equipment.
The acquisition device provided in the embodiments of the present application is explained in detail below.
Fig. 1 is a schematic structural diagram of an acquisition device 100 according to an embodiment of the present application. Referring to fig. 1, the acquisition device 100 comprises a first processing unit 102 and n detection channels 101.n is an integer greater than or equal to 2, for example, n may be 50. It should be noted that, in fig. 1, only an example in which the collection device 100 includes greater than or equal to 4 detection channels 101 is illustrated, fig. 1 is not limited to the number of detection channels 101 included in the collection device 100, and in practical application, the collection device 100 may include two or more detection channels 101.
The n detection channels 101 are used to connect with the n loads C in the target object 200 one by one to detect the current value and the voltage value of each of the n loads C. The n collection ends of the first processing unit 102 are connected with the n detection channels 101 one by one, so as to obtain a current value and a voltage value detected by each detection channel 101 in the n detection channels 101.
The target object 200 is an object for which power consumption detection is required. The target object 200 may be various devices, such as a mobile phone, a tablet computer, a wearable device, an augmented reality (augmented reality, AR) device, a Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), etc., which are not limited in this embodiment of the present application.
The n loads C may include various types of loads. For example, the n loads C may include a central processing unit (central processing unit, CPU), a graphics processor (graphics processing unit, GPU), a baseband processor, an internal memory, an external memory, a display screen, a camera, a speaker, a communication module, a voltage conversion unit, a sensor (sensor), and the like, which is not limited in the embodiment of the present application.
Optionally, referring to fig. 2, the target object 200 includes n target modules 201, each target module 201 includes a power source V, a first resistor R1, and a load C, a first end of the first resistor R1 is connected to an anode of the power source V, a second end of the first resistor R1 is connected to a first end of the load C, a second end of the load C is connected to a cathode of the power source V and a ground GND, and since the first resistor R1 is connected in series with the load C, a current of the first resistor R1 is a current of the load C. In this case, the n target modules 201 are in one-to-one correspondence with the n detection channels 101, and each detection channel 101 of the n detection channels 101 is connected to both ends of the first resistor R1 in the corresponding target module 201. Any one detection channel 101 of the n detection channels 101 may detect a current of the first resistor R1 (i.e., a current of the load C) and detect a voltage of the load C.
For example, the detection channel 101 may also be referred to as a power detector. Any one of the n detection channels 101 may include a current detection channel, a voltage detection channel, and an analog-to-digital converter (ADC) acquisition module. The current detection channel is used for detecting the current of the load C and transmitting the detected analog current to the ADC acquisition module, and the ADC acquisition module can convert the analog current into digital current (namely the current value) and store the converted current value in a register in the ADC acquisition module. The voltage detection channel is used for detecting the voltage of the load C and transmitting the detected analog voltage to the ADC acquisition module, and the ADC acquisition module can convert the analog voltage into digital voltage (namely the voltage value) and store the converted voltage value in a register in the ADC acquisition module. In this case, the first processing unit 102 may read the voltage value and the current value from registers in the ADC acquisition module in each of the n detection channels 101.
It should be noted that, the ADC acquisition module in the embodiment of the present application may select a high-bit ADC acquisition module, and the high-bit ADC acquisition module may ensure time resolution and precision of a fast signal, so as to accurately capture a micro signal, and thus, may ensure resolution of a small current. In addition, the ADC acquisition module in the embodiment of the application can be selected from ADC acquisition modules with larger dynamic range, so that the ADC acquisition module can adapt to the transient variation with larger current, and then enough precision is ensured. By way of example, in the embodiment of the application, by selecting the ADC acquisition module, the current measurement accuracy can be guaranteed to be 1% of 0.5mA (i.e. 5 uA), and the voltage measurement accuracy can be guaranteed to be 1% of 0.5V (i.e. 5 mV).
The first processing unit 102 obtains the current value and the voltage value detected by each detection channel 101 of the n detection channels 101, that is, obtains n sets of current-voltage data corresponding to the n detection channels 101 one by one, where each set of current-voltage data includes the current value and the voltage value detected by the corresponding one detection channel 101, that is, each set of current-voltage data includes the current value and the voltage value of the load C detected by the corresponding one detection channel 101. The first processing unit 102 is configured to process the current-voltage data. For example, the first processing unit 102 may be a field-programmable gate array (field-programmable gate array, FPGA) device, and of course, the first processing unit 102 may also be other devices capable of implementing current-voltage data processing, which is not limited in this embodiment of the present application. It should be noted that, in the case where the first processing unit 102 is an FPGA, the acquisition device 100 adopts a parallel acquisition scheme of the FPGA, so that the sampling rate may be ensured not to decrease with the increase of the number of channels, for example, the channel sampling rate may be 7ksps (kilo samples per second, sampled thousands of times per second).
By way of example, any one of the n acquisition terminals of the first processing unit 102 may be an integrated circuit (inter-integrated circuit, I2C) interface. The first processing unit 102 may read the voltage value and the current value from the detection channel 101 through the I2C interface. Of course, the collection end of the first processing unit 102 may be other interfaces, as long as it can read the voltage value and the current value from the detection channel 101.
In this embodiment of the present application, the collecting device 100 may collect the current value and the voltage value of each load C in the n loads C in the target object 200, that is, the collecting device 100 may perform multi-channel current-voltage data collection on the target object 200, and then, according to this, the overall power consumption of the target object 200 and the power consumption of each load C may be confirmed, so that the power consumption detection may be more accurate and flexible. Therefore, a technician can grasp the power consumption distribution of the whole machine through detailed power consumption splitting, so that a proper optimization strategy can be found, and the purpose of increasing the endurance is achieved.
The overall power consumption of the target object 200 is the sum of the power consumption of the n loads C in the target object 200. For example, the power consumption of any one load C may be the power of this load C, that is, the current value of this load C may be multiplied by the voltage value, resulting in the power consumption of this load C. Alternatively, the power consumption of any load C may be the power consumption of the load C for a preset period (e.g., 10 seconds, 30 seconds, or 60 seconds), that is, the current value of the load C may be multiplied by the voltage value and then multiplied by the preset period to obtain the power consumption of the load C.
It should be noted that, when power consumption detection is required by using the acquisition device 100, the acquisition device 100 may be connected to the target object 200. After the acquisition device 100 is connected with the target object 200, n detection channels 101 in the acquisition device 100 are connected with n loads C in the target object 200 one by one, so that the acquisition device 100 can detect a current value and a voltage value of each load C in the n loads C in the target object 200. For example, as shown in fig. 3, the acquisition device 100 and the target object 200 may be connected through a BTB connector (may also be referred to as a board-to-board connector), and of course, the acquisition device 100 and the target object 200 may also be connected through other connectors, which is not limited in the embodiment of the present application.
Alternatively, the first processing unit 102 may implement configuration of each detection channel 101 in the n detection channels 101, for example, may implement functions such as sampling rate configuration, sampling resistance parameter configuration, and the like of each detection channel 101. For example, the first processing unit 102 may obtain a channel configuration parameter, and then configure each detection channel 101 according to the channel configuration parameter, and specifically may send the channel configuration parameter to each detection channel 101, so that each detection channel 101 may be configured according to the channel configuration parameter, for example, configure a sampling rate, a sampling resistance parameter, and so on. Alternatively, the channel configuration parameters may be sent to the first processing unit 102 by other devices, alternatively, the channel configuration parameters may be preset by a technician.
In some embodiments, referring to fig. 4, after the first processing unit 102 obtains n sets of current-voltage data, the n sets of current-voltage data may be sent to the electronic device 300. Optionally, referring to fig. 4, the collecting device 100 includes an interface chip 103, and the first processing unit 102 may send the n sets of current-voltage data to the electronic device 300 through the interface chip 103, and the interface chip 103 may be a universal serial bus (universal serial bus, USB) interface chip (integrated circuit, IC), for example, a USB2.0 interface chip. Further, referring to fig. 4, the collecting device 100 may further include a transmission interface 104 (including but not limited to a Type-c interface), and the first processing unit 102 may send the n sets of current voltage data to the electronic device 300 through the interface chip 103 and the transmission interface 104.
The electronic device 300 is an upper computer, and can determine corresponding power consumption according to the current-voltage data. For example, after receiving n sets of current-voltage data sent by the acquisition device 100, the electronic device 300 may implement confirmation of the overall power consumption of the target object 200 and the power consumption of each load C in the target object 200 according to the n sets of current-voltage data.
Alternatively, referring to fig. 5, the electronic device 300 may have driver software and interface software installed therein. After obtaining the n sets of current-voltage data sent by the acquisition device 100, the driving software may perform data processing on the n sets of current-voltage data, for example, may perform filtering processing, calibration processing, power consumption confirmation, or other expansion processing on the n sets of current-voltage data. After the driving software processes the n groups of current and voltage data, the driving software can report the data processing result to the interface software. The interface software can display data according to the data processing result, for example, the interface software can display a V-I-P characteristic curve, so that a technician can know the change of voltage, current and power in time. In some embodiments, the interface software may also perform related mathematical calculations on the data processing results, such as averaging V-I-P characteristics, etc. Optionally, the interface software may further have a function button, which may be used to implement operations such as zooming, for example, zooming in or out on the displayed V-I-P characteristic curve. Therefore, the technical staff can conveniently conduct hardware and software debugging, analysis and research and the like according to the data processing result of the driving software and the data display condition of the interface software.
Optionally, the driver software may also set a channel configuration parameter of each detection channel 101 in the acquisition device 100, and send the channel configuration parameter to the first processing unit 102 in the acquisition device 100, where the first processing unit 102 configures each detection channel 101 according to the channel configuration parameter.
For manufacturing reasons, most of the components are produced with errors, for example, a deviation between a theoretical value and a detected value of the detection channel 101 may exist. In this case, in order to improve the detection accuracy of the acquisition device 100, the current value and the voltage value detected by the detection channel 101 may be calibrated. Specifically, referring to fig. 1 to 5, the acquisition device 100 may further include a memory 105, where n sets of calibration parameters corresponding to the n detection channels 101 one to one are stored in the memory 105, and each set of calibration parameters in the n sets of calibration parameters includes a current calibration parameter and a voltage calibration parameter. For any one detection channel 101 of the n detection channels 101, after acquiring the current value and the voltage value detected by the detection channel 101, the first processing unit 102 may acquire a set of calibration parameters corresponding to the detection channel 101 from the memory 105, calibrate the current value detected by the detection channel 101 by using the current calibration parameters in the set of calibration parameters, calibrate the voltage value detected by the detection channel 101 by using the voltage calibration parameters in the set of calibration parameters, and send the calibrated current value and voltage value as a set of current-voltage data to the electronic device 300. In this way, high-precision detection can be ensured.
For example, the memory 105 may be a flash memory (also referred to as a flash memory), and of course, the memory 105 may be other types of memory, which is not limited in this embodiment of the present application. Optionally, data transmission between the memory 105 and the first processing unit 102 may be performed through a serial peripheral interface (serial peripheral interface, SPI), and of course, data transmission between the memory 105 and the first processing unit 102 may also be performed through other interfaces, which is not limited in the embodiment of the present application.
It should be noted that, before the power consumption detection of the target object 200 by using the acquisition device 100, the calibration device may be used to calibrate the acquisition device 100 to obtain the n sets of calibration parameters.
The calibration device is explained in detail below.
Fig. 6 is a schematic structural diagram of a calibration device 400 according to an embodiment of the present application. Referring to fig. 6, the calibration device 400 may include a voltage output module 401 and at least one calibration module 402. It should be noted that, fig. 6 is only schematically illustrated by taking an example in which the calibration device 400 includes 4 calibration modules 402, and fig. 6 does not limit the number of calibration modules 402 included in the calibration device 400, and in practical application, the calibration device 400 may include one or more calibration modules 402.
The output of the voltage output module 401 is connected to the input of each calibration module 402 of the at least one calibration module 402, the output of each calibration module 402 of the at least one calibration module 402 being adapted to be connected to the acquisition device 100. Specifically, any one calibration module 402 of the at least one calibration module 402 is connected to at least one detection channel 101 of the n detection channels 101 in the acquisition device 100, in which case each detection channel 101 of the at least one detection channel 101 is configured to detect the calibration module 402, to obtain a target current value and a target voltage value.
The voltage output module 401 is configured to output a first voltage to each calibration module 402 of the at least one calibration module 402. Each calibration module 402 of the at least one calibration module 402 is configured to simulate a target module 201 of the target object 200, and each calibration module 402 of the at least one calibration module 402 outputs a second voltage and a third voltage to the connected detection channel 101 upon input of the first voltage. Each detection channel 101 of the n detection channels 101 is configured to detect a target current value according to the second voltage input by the connected calibration module 402 and to detect a target voltage value according to the third voltage input by the connected calibration module 402. Optionally, the second voltage is a bipolar differential voltage, and the third voltage is a common mode voltage.
Since the circuit configuration of each calibration module 402 of the at least one calibration module 402 is predicted, in the case where the voltage output module 401 outputs the first voltage to each calibration module 402 of the at least one calibration module 402, the theoretical current value and the theoretical voltage value that each calibration module 402 of the at least one calibration module 402 is expected to be detected by the connected detection channel 101 can be known in advance. For any one detection channel 101 of the n detection channels 101, the actual result of this detection channel 101 after detection of the connected calibration module 402 is a target current value and a target voltage value. In this case, according to the theoretical current value corresponding to the calibration module 402 connected to the detection channel 101 and the target current value actually detected by the detection channel 101, the current calibration parameter corresponding to the detection channel 101 may be determined, and according to the theoretical voltage value corresponding to the calibration module 402 connected to the detection channel 101 and the target voltage value actually detected by the detection channel 101, the voltage calibration parameter corresponding to the detection channel 101 may be determined, so that a set of calibration parameters corresponding to the detection channel 101 may be obtained. The set of calibration parameters corresponding to the detection channel 101 is used to calibrate the actual detection value of the detection channel 101 to a theoretical value, i.e. the current calibration parameters corresponding to the detection channel 101 are used to calibrate the current value actually detected by the detection channel 101 to be close to or equal to the theoretical current value, and the voltage value actually detected by the detection channel 101 to be close to or equal to the theoretical voltage value. Since the calibrated detection value is close to or equal to the theoretical value, the detection accuracy of the acquisition device 100 can be effectively improved.
Alternatively, referring to fig. 7, the voltage output module 401 may include a reference voltage source 4011, a second processing unit 4012, and a digital-to-analog converter (Digital to analog converter, DAC) 4013, two output terminals of the reference voltage source 4011 are connected to two reference voltage terminals of the DAC 4013 one by one, an output terminal of the second processing unit 4012 is connected to an input terminal of the DAC 4013, and an output terminal of the DAC 4013 is connected to an input terminal of each of the at least one calibration modules 402.
The reference voltage source 4011 is a power source for outputting two reference voltages. One of the two reference voltages is the maximum value of the preset voltage range, and the other reference voltage is the minimum value of the preset voltage range. For example, if the preset voltage range is-5 v to 5 v, one of the two reference voltages is-5 v, and the other reference voltage is 5 v.
The second processing unit 4012 is a device for outputting a digital voltage. For example, the second processing unit 4012 may be a micro control unit (micro controller unit, MCU), and of course, the second processing unit 4012 may also be other devices capable of outputting digital voltages, which is not limited in the embodiment of the present application. Alternatively, the second processing unit 4012 may receive a calibration instruction transmitted from the electronic device 300, and then output the digital voltage to the DAC 4013 according to the calibration instruction. The calibration instruction is used to instruct the second processing unit 4012 to calibrate the acquisition device 100. The calibration command may be triggered automatically by the electronic device 300 or manually by a technician in the electronic device 300, which is not limited in this embodiment of the present application.
The second processing unit 4012 can output a digital quantity of the first voltage (i.e., a digital voltage) to the DAC 4013 when calibration of the acquisition device 100 is required. The DAC 4013 may convert the digital voltage into an analog voltage (i.e., an analog quantity of the first voltage) according to the two reference voltages input from the reference voltage source 4011, the analog voltage being within a preset voltage range. The DAC 4013 may then output the analog voltage to each calibration module 402 of the at least one calibration module 402.
For example, the DAC 4013 in the embodiment of the present application may be a high-precision DAC, and thus, the DAC 4013 may stably and precisely output a desired voltage by the two reference voltages output from the reference voltage source 4011.
Further, referring to fig. 8, the voltage output module 401 may further include two first voltage followers A1, wherein one first voltage follower A1 is connected between one output terminal of the reference voltage source 4011 and one reference voltage terminal of the DAC 4013, and the other first voltage follower A1 is connected between the other output terminal of the reference voltage source 4011 and the other reference voltage terminal of the DAC 4013. Since the input impedance of the voltage follower is approximately infinite and the output impedance is extremely small, the voltage follower can play a role of isolation buffer, and thus the two first voltage followers A1 can make the two reference voltages output from the reference voltage source 4011 to the DAC 4013 more stable.
For example, the second processing unit 4012 and the DAC 4013 may perform data transmission through the SPI, and of course, the second processing unit 4012 and the DAC 4013 may also perform data transmission through other interfaces, which is not limited in the embodiment of the present application.
Alternatively, referring to fig. 9, any one calibration module 402 of the at least one calibration module 402 may include a second resistor R2 and a third resistor R3, a first end of the second resistor R2 is connected to an output terminal of the voltage output module 401, a second end of the second resistor R2 is connected to a first end of the third resistor R3, and a second end of the third resistor R3 is connected to the ground GND. The second resistor R2 is used to simulate the first resistor R1 in the target module 201 in the target object 200, and the third resistor R3 is used to simulate the load C in the target module 201 in the target object 200. Two ends of the second resistor R2 are used for being connected to each detection channel 101 of at least one detection channel 101 of the n detection channels 101 in the acquisition device 100. In this case, the voltage of the second resistor R2 is the second voltage, the voltage of the second resistor R2 is a bipolar differential voltage, the voltage of the third resistor R3 is the third voltage, the voltage of the third resistor R3 is a common mode voltage, and the resistance of the second resistor R2 and the resistance of the third resistor R3 are known. Since the resistance value of the second resistor R2 and the resistance value of the third resistor R3 are known, in the case where the first voltage output to the second resistor R2 by the voltage output module 401 is predicted, the true current value (i.e., the theoretical current value) of the second resistor R2 and the true voltage value (i.e., the theoretical voltage value) of the third resistor R3 are predicted, that is, the theoretical current value and the theoretical voltage value corresponding to each of the n detection channels 101 are predicted.
The detection channel 101 connected to both ends of the second resistor R2 may detect the current value of the second resistor R2 (i.e., the current value of the third resistor R3) and the voltage value of the third resistor R3. Illustratively, any one of the n detection channels 101 includes a current detection channel, a voltage detection channel, and an ADC acquisition module. The current detection channel is used for detecting the current of the third resistor R3, and transmitting the detected analog current to the ADC acquisition module, and the ADC acquisition module can convert the analog current into digital current (namely the target current value) and store the converted target current value in a register in the ADC acquisition module. The voltage detection channel is used for detecting the voltage of the third resistor R3, transmitting the detected analog voltage to the ADC acquisition module, and the ADC acquisition module can convert the analog voltage into digital voltage (namely the target voltage value) and store the converted target voltage value in a register in the ADC acquisition module. In this case, the first processing unit 102 may read the target voltage value and the target current value from registers in the ADC acquisition module in this detection channel 101.
Further, referring to fig. 10, any one calibration module 402 of the at least one calibration module 402 may further include a second voltage follower A2. The second voltage follower A2 is connected between the output end of the voltage output module 401 and the first end of the second resistor R2, so as to ensure the stability of the first voltage output by the voltage output module 401.
Optionally, referring to fig. 11, the calibration device 400 may further include a third voltage follower A3, the third voltage follower A3 being connected between the output of the voltage output module 401 and the input of each calibration module 402 of the at least one calibration module 402 to increase the load capacity of the voltage output module 401.
Illustratively, the calibration device 400 and the collection device 100 may be connected by a BTB connector, although the calibration device 400 and the collection device 100 may be connected by other connectors, which is not limited in this embodiment.
After the calibration device 400 is connected to the acquisition device 100, each calibration module 402 of the at least one calibration module 402 in the calibration device 400 is connected to at least one detection channel 101 of the n detection channels 101 in the acquisition device 100. In some embodiments, n detection channels 101 in the collection device 100 are divided into at least one group, the number of the groups of at least one group of detection channels 101 is the same as the number of at least one calibration module 402, at least one group of detection channels 101 corresponds to at least one calibration module 402 one by one, after the calibration device 400 is connected with the collection device 100, an output end of each calibration module 402 in the at least one calibration module 402 is connected with each detection channel 101 in the corresponding group of detection channels 101, and each detection channel 101 in each group of detection channels 101 in the at least one group of detection channels 101 can detect the corresponding calibration module 402 to obtain a target current value and a target voltage value.
It should be noted that, one calibration module 402 in the calibration device 400 can be specifically connected to several detection channels 101, which may be obtained by a skilled person through previous experiments. For example, a technician may connect one calibration module 402 in the calibration device 400 to a number of detection channels 101, and in the case that the voltage output module 401 outputs a first voltage to the calibration module 402, use the voltage detection device to detect a second voltage and a third voltage output by the calibration module 402; if the voltage difference between the sum of the second voltage and the third voltage and the first voltage is less than or equal to the preset voltage difference, determining that the calibration module 402 can be connected with at least the number of detection channels 101, that is, the calibration module 402 can support the number of currently connected detection channels 101; if the voltage difference between the sum of the second voltage and the third voltage and the first voltage is greater than the preset voltage difference, it is determined that the calibration module 402 cannot support the number of the currently connected detection channels 101. The preset voltage difference may be preset, for example, the preset voltage difference may be set according to the first voltage, for example, the preset voltage difference may be one thousandth of the first voltage. The technician may then increase or decrease the number of detection channels 101 connected to the calibration module 402 accordingly based on whether the calibration module 402 supports the number of currently connected detection channels 101, and then continue to control the voltage output module 401 to output the first voltage to the calibration module 402, in which case the voltage detection device is used to detect the second voltage and the third voltage output by the calibration module 402, and then determine whether the calibration module 402 can support the number of currently connected detection channels 101. Thus, the number of detection channels 101 to which this calibration module 402 can be connected at most can be obtained by a plurality of experiments. According to the number of detection channels 101 that can be connected to at most one calibration module 402, n detection channels 101 in the acquisition device 100 may be divided into at least one group, where the number of detection channels 101 in each group of detection channels 101 is less than or equal to the number of detection channels 101 that can be connected to at most one calibration module 402.
It should be noted that the calibration process of the acquisition device 100 may be performed by a calibration system. Fig. 12 is a schematic diagram of a calibration system according to an embodiment of the present application. Referring to fig. 12, the calibration system may include a calibration device 400, an acquisition device 100, and an electronic device 300. When calibration of the acquisition device 100 is desired, the calibration device 400 is connected to the acquisition device 100 and the acquisition device 100 may communicate with the electronic device 300. Optionally, the calibration device 400 may also be in communication with the electronic device 300. In addition, since the calibration device 400 is connected to the acquisition device 100, the second processing unit 4012 in the calibration device 400 can also communicate with the first processing unit 102 in the acquisition device 100.
The calibration process of the acquisition device 100 is described below in connection with the calibration system shown in fig. 12:
fig. 13 is a schematic diagram of a calibration process of the acquisition device 100 according to an embodiment of the present application. Referring to fig. 13, the calibration process may include the following steps 1301 to 1310.
Step 1301: n detection channels in the acquisition device 100 are configured.
Optionally, the electronic device 300 sends the channel configuration parameters to the first processing unit 102 in the acquisition device 100. After receiving the channel configuration parameters, the first processing unit 102 configures each detection channel 101 of the n detection channels 101 according to the channel configuration parameters. After the configuration of each detection channel 101 of the n detection channels 101 is completed, the acquisition device 100 may perform normal operation.
Step 1302: the calibration device 400 is connected to the acquisition device 100 to start performing calibration.
Step 1303: the electronic device 300 sends a calibration instruction to the voltage output module 401 in the calibration device 400.
Alternatively, the electronic device 300 may communicate directly with the calibration device 400. In this case, the electronic device 300 may send the calibration instruction directly to the voltage output module 401.
Alternatively, the electronic device 300 may send a calibration instruction to the voltage output module 401 through the first processing unit 102 in the acquisition device 100. For example, the electronic device 300 may send the calibration instructions to the first processing unit 102, and the first processing unit 102 sends the calibration instructions to the second processing unit 4012 in the voltage output module 401.
Step 1304: after the voltage output module 401 receives the calibration command, if it is determined that the currently received calibration command is the first calibration command in the current calibration process, the first voltage is set to the minimum value of the preset voltage range, and the first voltage is output to each calibration module 402 in the at least one calibration module 402.
The calibration device 400 determines to start the calibration process once the voltage output module 401 is connected to the acquisition device 100. The first calibration command in the calibration process is the first calibration command received by the voltage output module 401 after the calibration device 400 is connected to the acquisition device 100.
Optionally, after receiving the calibration instruction, the second processing unit 4012 sets the first voltage to a minimum value of a preset voltage range if it is determined that the currently received calibration instruction is the first calibration instruction in the current calibration process, outputs a digital value of the first voltage to the DAC 4013, converts the digital value of the first voltage to an analog value by the DAC 4013, and outputs the analog value to each calibration module 402 in the at least one calibration module 402.
In this case, each calibration module 402 of the at least one calibration module 402 will output the second voltage and the third voltage to the connected detection channel 101. Each detection channel 101 of the n detection channels 101 in the acquisition device 100 can detect the connected detection channel 101.
Step 1305: each detection channel 101 of the n detection channels 101 in the acquisition device 100 detects a target current value and a target voltage value, and the first processing unit 102 acquires the target current value and the target voltage value detected by each detection channel 101 of the n detection channels 101 and sends the target current value and the target voltage value to the electronic device 300.
It should be noted that, after each calibration command is sent to the voltage output module 401 by the electronic device 300 in this calibration process, the magnitude of the first voltage output by the voltage output module 401 may be predicted, and since the circuit structure of the calibration module 402 is predicted, in the case where the magnitude of the first voltage output by the voltage output module 401 to the calibration module 402 is predicted, the theoretical current value and the theoretical voltage value that the calibration module 402 expects to be detected, that is, the theoretical current value and the theoretical voltage value that correspond to each detection channel 101 in the n detection channels 101 may be predicted, where the theoretical current value is the current value that is expected to be detected by the detection channel 101, and the theoretical voltage value is the voltage value that is expected to be detected by the detection channel 101.
When the electronic device 300 receives the target current value and the target voltage value detected by each detection channel 101 in the n detection channels 101 sent by the first processing unit 102, the electronic device 300 obtains the target current value and the target voltage value corresponding to each detection channel 101 in the n detection channels 101, where the target current value is the current value actually detected by the detection channel 101, and the target voltage value is the voltage value actually detected by the detection channel 101.
In this case, each time the electronic device 300 sends a calibration command to the voltage output module 401, after receiving the target current value and the target voltage value sent by the first processing unit 102, for any one of the n detection channels 101, the electronic device 300 obtains a set of calibration current values corresponding to the detection channel 101, where the set of calibration current values includes a theoretical current value and a target current value, and the electronic device 300 obtains a set of calibration voltage values corresponding to the detection channel 101, where the set of calibration voltage values includes a theoretical voltage value and a target voltage value.
Step 1306: the electronic device 300 continues to send the next calibration instruction to the voltage output module 401.
Step 1307: after receiving the calibration command, the voltage output module 401 determines whether the first voltage is less than the maximum value of the preset voltage range if it is determined that the currently received calibration command is not the first calibration command in the current calibration process.
Step 1308: the voltage output module 401 increases the first voltage by a preset voltage in the case where the first voltage is less than the maximum value of the preset voltage range, and outputs the first voltage to each of the at least one calibration module 402.
The preset voltage may be set in advance. Alternatively, the preset voltage may be set according to a difference between a minimum value and a maximum value of the preset voltage range, for example, the preset voltage may be one tenth of the difference between the minimum value and the maximum value of the preset voltage range.
In this case, each calibration module 402 of the at least one calibration module 402 will output the second voltage and the third voltage to the connected detection channel 101. Each detection channel 101 of the n detection channels 101 in the acquisition device 100 can detect the connected detection channel 101.
Step 1309: each detection channel 101 of the n detection channels 101 in the acquisition device 100 detects a target current value and a target voltage value, and the first processing unit 102 acquires the target current value and the target voltage value detected by each detection channel 101 of the n detection channels 101 and sends the target current value and the target voltage value to the electronic device 300.
In this case, after the electronic device 300 sends a plurality of calibration instructions to the voltage output module 401, for any one of the n detection channels 101, the electronic device 300 obtains a plurality of sets of calibration current values corresponding to the detection channel 101, where each set of calibration current values includes a theoretical current value and a target current value, and the electronic device 300 obtains a plurality of sets of calibration voltage values corresponding to the detection channel 101, where each set of calibration voltage values includes a theoretical voltage value and a target voltage value.
The electronic device 300 may then continue to send the next calibration instruction to the voltage output module 401. After the voltage output module 401 receives the calibration command, if it is determined that the currently received calibration command is not the first calibration command in the current calibration process and it is determined that the first voltage is less than the maximum value of the preset voltage range, the first voltage is increased by the preset voltage, and the first voltage is output to each calibration module 402 in the at least one calibration module 402 to continue the calibration process. If the voltage output module 401 receives the calibration command, it determines that the currently received calibration command is not the first calibration command in the current calibration process, and determines that the first voltage is equal to the maximum value of the preset voltage range, then no voltage is output to the calibration module 402, so as to end the current calibration process.
Optionally, the voltage output module 401 may also send an end message to the electronic device 300 after determining to end the calibration process, so as to indicate to the electronic device 300 that the calibration process has ended. The voltage output module 401 may, for example, send an end message to the electronic device 300 via the first processing unit 102.
After the calibration process is finished, the electronic device 300 may determine a set of calibration parameters corresponding to each detection channel 101 of the n detection channels 101, where each set of calibration parameters includes a current calibration parameter and a voltage calibration parameter.
Step 1310: the electronic device 300 determines a set of calibration parameters corresponding to each detection channel 101 of the n detection channels 101 to obtain n sets of calibration parameters.
After the calibration process is finished, for any one detection channel 101 of the n detection channels 101, there are multiple groups of calibration current values and multiple groups of calibration voltage values corresponding to the detection channel 101 acquired in the calibration process in the electronic device 300. The electronic device 300 may determine the current calibration parameter corresponding to the detection channel 101 according to the plurality of calibration current values corresponding to the detection channel 101, and determine the voltage calibration parameter corresponding to the detection channel 101 according to the plurality of calibration voltage values corresponding to the detection channel 101. Thus, a set of calibration parameters corresponding to each detection channel 101 in the n detection channels 101 can be obtained, and the multi-channel calibration requirement can be satisfied.
Alternatively, the electronic device 300 may obtain the current calibration parameter and the voltage calibration parameter by fitting a straight line using a least square method. The least square fitting line is a best fitting line fitted by using a given plurality of sample data, and the formula of the least square fitting line is y=ax+b, wherein a and b are parameters of the fitting line, a is a slope, b is an intercept, x is an abscissa, and y is an ordinate.
In this case, when the electronic device 300 determines the current calibration parameter corresponding to the detection channel 101 according to the plurality of sets of calibration current values corresponding to the detection channel 101, each set of calibration current values in the plurality of sets of calibration current values corresponding to the detection channel 101 may be used as one sample data to obtain a plurality of sample data, where an abscissa of each sample data is a target current value and an ordinate of each sample data is a theoretical current value; performing straight line fitting according to the plurality of sample data to obtain a slope a and an intercept b of a fitting straight line, namely determining a function y=ax+b; the slope a and intercept b of the fitted line are determined as the corresponding current calibration parameters for this detection channel 101.
When the electronic device 300 determines the voltage calibration parameter corresponding to the detection channel 101 according to the plurality of sets of calibration voltage values corresponding to the detection channel 101, each set of calibration voltage values in the plurality of sets of calibration voltage values corresponding to the detection channel 101 may be used as one sample data to obtain a plurality of sample data, where an abscissa of each sample data is a target voltage value and an ordinate of each sample data is a theoretical voltage value; performing straight line fitting according to the plurality of sample data to obtain a slope a and an intercept b of a fitting straight line, namely determining a function y=ax+b; the slope a and intercept b of the fitted line are determined as the corresponding voltage calibration parameters for this detection channel 101.
After n sets of calibration parameters are obtained, the electronic device 300 completes the calibration process for the acquisition device 100, at which point the connection between the calibration device 400 and the acquisition device 100 may be disconnected.
Further, after obtaining n sets of calibration parameters, the electronic device 300 may further send the n sets of calibration parameters to the first processing unit 102 in the acquisition device 100 for storage. Alternatively, the first processing unit 102 may store n sets of calibration parameters into a memory 105 in the acquisition device 100.
In some embodiments, after the first processing unit 102 receives the calibration parameters sent by the electronic device 300, the calibration parameters are stored in the buffer space of the first processing unit 102, and then the calibration parameters in the buffer space are written into the memory 105. However, due to the size limitation of the acquisition device 100, the power consumption and logic resources of the first processing unit 102 are very limited, so when the electronic device 300 sends the calibration parameters to the first processing unit 102, the embodiment of the application provides a buffer space self-adaptive mode, and the size of the data packet to be issued carrying the calibration parameters is adjusted by monitoring the remaining size of the buffer space of the first processing unit 102 in real time, so that the normal operation of the first processing unit 102 can be ensured, and the resource consumption of the acquisition device 100 can be reduced.
Fig. 14 is a schematic diagram of a buffer space adaptive manner according to an embodiment of the present application. Referring to fig. 14, the cache space adaptation method may include the following steps 1401 to 1405.
Step 1401: after the electronic device 300 obtains the n sets of calibration parameters, a data packet carrying the n sets of calibration parameters is generated.
Step 1402: the electronic device 300 obtains the remaining size of the buffer space of the first processing unit 102.
The remaining size of the buffer space is the size of the space that is not occupied yet in the buffer space of the first processing unit 102.
Alternatively, the electronic device 300 may send a cache acquisition request to the first processing unit 102. After receiving the cache acquisition request sent by the electronic device 300, the first processing unit 102 may determine the current remaining size of the cache space, and send the remaining size of the cache space to the electronic device 300.
If the size of the data packet generated by the electronic device 300 in step 1401 is less than or equal to the remaining size of the buffer space, the electronic device 300 performs step 1403 as follows. If the size of the data packet is greater than the remaining size of the buffer space, the electronic device 300 performs the following step 1404.
Step 1403: if the size of the data packet is less than or equal to the remaining size of the buffer space, the electronic device 300 sends the data packet to the first processing unit 102, and then performs step 1405.
Step 1404: if the size of the data packet is greater than the remaining size of the buffer space, the electronic device 300 generates a new data packet according to at least one set of calibration parameters in the data packet, the size of the newly generated data packet is less than or equal to the remaining size of the buffer space, sends the newly generated data packet to the first processing unit 102, and then performs step 1405.
Step 1405: after the first processing unit 102 receives the data packet, the calibration parameters in the data packet are stored in the buffer space of the first processing unit 102, and then the calibration parameters in the buffer space are stored in the memory 105.
After performing step 1403 or step 1404, if there are one or more calibration parameters in the n sets of calibration parameters that are not sent to the first processing unit 102, the electronic device 300 generates a data packet carrying the one or more calibration parameters, and then re-performs steps 1402 to 1405 until all of the n sets of calibration parameters are sent to the first processing unit 102.
Since the first processing unit 102 continuously stores some data into its own cache space during operation, and also continuously writes the data in its own cache space into the memory 105, the remaining size of the cache space of the first processing unit 102 is continuously changed. Therefore, before the electronic device 300 needs to send the data packet carrying the calibration parameter to the first processing unit 102 each time, the current remaining size of the buffer space of the first processing unit 102 can be obtained, and then the size of the data packet to be sent is adjusted accordingly, so that the size of the data packet carrying the calibration parameter finally sent to the first processing unit 102 is smaller than or equal to the current remaining size of the buffer space of the first processing unit 102, and thus, the normal operation of the first processing unit 102 can be ensured.
It should be noted that the n sets of calibration parameters may be updated at intervals. For example, calibration device 400 may be used to calibrate acquisition device 100 once every half year to obtain new n sets of calibration parameters, which may be updated to electronic device 300 and acquisition device 100 for storage. In this way, in the case that the components of the detection channel 101 in the acquisition device 100 change in performance over time, the high-precision detection of the acquisition device 100 can be continuously maintained by the updated n sets of calibration parameters.
The operation of the harvesting device 100 will be described next.
When it is desired to determine the power consumption of the target object 200, a technician connects the acquisition device 100 with the target object 200. After the acquisition device 100 is connected with the target object 200, n detection channels 101 in the acquisition device 100 are connected with n loads C in the target object 200 one by one, and each detection channel 101 in the n detection channels 101 can detect a current value and a voltage value of the connected load C. In addition, the first processing unit 102 in the acquisition device 100 may be in communication with the electronic device 300.
Fig. 15 is a schematic diagram illustrating an operation of the acquisition device 100 according to an embodiment of the present application. Referring to fig. 15, the operation may include the following steps 1501 to 1504.
Step 1501: the electronic device 300 sends an acquisition instruction to the first processing unit 102.
The electronic device 300 may send an acquisition instruction to the first processing unit 102 when it is desired to determine the power consumption of the target object 200. The acquisition instructions are used for indicating the start of acquisition of current and voltage data. The collection instruction may be triggered by the electronic device 300 automatically or manually by a technician on the electronic device 300, which is not limited in the embodiment of the present application.
Step 1502: after receiving the acquisition instruction sent by the electronic device 300, the first processing unit 102 acquires the current value and the voltage value detected by each detection channel 101 in the n detection channels 101, so as to obtain n groups of current-voltage data.
Step 1503: the first processing unit 102 retrieves n sets of calibration parameters from the memory 105 and calibrates the n sets of current-voltage data using the n sets of calibration parameters.
For a set of current-voltage data detected by any one detection channel 101 of the n detection channels 101, the first processing unit 102 may calibrate the set of current-voltage data by using a set of calibration parameters corresponding to the detection channel 101, to obtain calibrated current-voltage data. For example, if the current calibration parameter corresponding to the detection channel 101 includes a slope a1 and an intercept b1, the first processing unit 102 may multiply the current value detected by the detection channel 101 by a1 and then add the current value to b1, to obtain a calibrated current value. The voltage calibration parameter corresponding to the detection channel 101 includes a slope a2 and an intercept b2, and the first processing unit 102 may multiply the voltage value detected by the detection channel 101 by a2 and then add the multiplied voltage value to b2 to obtain a calibrated voltage value.
Step 1504: the first processing unit 102 sends the calibrated n sets of current voltage data to the electronic device 300.
After receiving the calibrated n sets of current-voltage data sent by the first processing unit 102, the electronic device 300 may implement confirmation of the overall power consumption of the target object 200 and the power consumption of each load C in the target object 200 according to the n sets of current-voltage data.
Alternatively, the electronic device 300 may have driver software and interface software installed therein. The driving software may perform data processing on the n sets of current-voltage data, for example, may perform filtering processing, calibration processing, power consumption confirmation, or other expansion processing on the n sets of current-voltage data, which is not limited in the embodiment of the present application. After the driving software processes the n groups of current and voltage data, the driving software can report the data processing result to the interface software. The interface software can display data according to the data processing result, for example, the interface software can display a V-I-P characteristic curve, so that a technician can know the change of voltage, current and power in time. In some embodiments, the interface software may also perform related mathematical calculations on the data processing results, such as averaging V-I-P characteristics, etc. Optionally, the interface software may further have a function button, which may be used to implement operations such as zooming, for example, zooming in or out on the displayed V-I-P characteristic curve. Therefore, the technical staff can conveniently conduct hardware and software debugging, analysis and research and the like according to the data processing result of the driving software and the data display condition of the interface software.
It should be noted that, after the electronic device 300 sends the acquisition instruction to the first processing unit 102, the first processing unit 102 may continuously acquire the current value and the voltage value detected by each detection channel 101 of the n detection channels 101 and send the current value and the voltage value to the electronic device 300 after calibrating the current value and the voltage value by using the calibration parameters. For example, the first processing unit 102 may periodically (e.g., every 1 second) obtain the current value and the voltage value detected by each detection channel 101 of the n detection channels 101 and send the current value and the voltage value to the electronic device 300 after calibrating the current value and the voltage value by using the calibration parameters. Until the electronic device 300 sends an acquisition end instruction to the first processing unit 102, the first processing unit 102 ends acquisition, and no more current values and voltage values detected by each detection channel 101 in the n detection channels 101 are acquired. Thereafter, the technician may disconnect the connection between the acquisition device 100 and the target object 200.
The electronic device 300 may send an end of acquisition instruction to the first processing unit 102 without continuing to determine the power consumption of the target object 200. The collection end instruction is used for indicating to stop collecting the current and voltage data. The collection end command may be triggered by the electronic device 300 automatically or manually by a technician on the electronic device 300, which is not limited in the embodiment of the present application.
In some embodiments, multiple acquisition devices 100 may also be used in an expanded manner to maximize the testing requirements of multiple channels. In this case, the plurality of acquisition devices 100 may be connected to the same object, or the plurality of acquisition devices 100 may be connected to different objects, and the plurality of acquisition devices 100 may be connected to the electronic apparatus 300, so as to realize simultaneous acquisition of a larger number of channels, which will be described below.
Fig. 16 is a schematic diagram of an acquisition system according to an embodiment of the present application. Referring to fig. 16, the acquisition system may include an electronic device 300 and a plurality of acquisition devices 100. It should be noted that, fig. 16 is only schematically illustrated by taking an example in which the acquisition system includes 4 acquisition devices 100, and fig. 16 is not limited to the number of acquisition devices 100 included in the acquisition system, and in practical applications, the acquisition system may include more or fewer acquisition devices 100 than shown.
The electronic device 300 is connected to a plurality of acquisition devices 100. Optionally, the electronic device 300 and the plurality of acquisition devices 100 may be connected through a USB interface extender (i.e., USB-HUB), and the connection between one electronic device 300 and the plurality of acquisition devices 100 may be implemented through the USB interface extender, so as to implement 1-to-many expansion. For example, the data transfer rate between the capture device 100 and the USB interface extender may be 120Mbps (megabits per second) and the data transfer rate between the electronic device 300 and the USB interface extender may be 480 Mbps.
In this embodiment of the present application, the USB interface extender for connecting the electronic device 300 and the plurality of acquisition devices 100 may be a single USB interface extender, or may be formed by cascading a plurality of USB interface extenders, which is not limited in this embodiment of the present application.
Alternatively, the USB interface extender may be provided on an object for which power consumption measurement is required, in which case, when power consumption measurement is required on the object, the electronic device 300 and the plurality of acquisition devices 100 may be connected through the USB interface extender provided on the object.
For example, the object may be provided with a BTB connector. The USB interface extender may be provided on the BTB connector of the object. In this case, when power consumption measurement is required for the subject, the plurality of acquisition devices 100 are connected to the BTB connector of the subject, and the electronic apparatus 300 is also connected to the BTB connector of the subject, so that not only connection between each acquisition device 100 of the plurality of acquisition devices 100 and the load in the subject but also connection between the plurality of acquisition devices 100 and the electronic apparatus 300 can be achieved.
In some embodiments, the electronic device 300 may be connected to a plurality of acquisition devices 100 through a USB interface extender, and the plurality of acquisition devices 100 are each connected to an object to acquire current-voltage data of the object. Also, the electronic device 300 may be connected to another plurality of acquisition devices 100 through another USB interface extender, and the plurality of acquisition devices 100 may be connected to another object. In this manner, electronic device 300 may enable power consumption measurements for multiple objects through multiple USB interface expanders.
In other embodiments, the electronic device 300 may be connected to a plurality of acquisition devices 100 through a USB interface extender, and the plurality of acquisition devices 100 may be connected to different objects to acquire current voltage data of the different objects. In this manner, the electronic device 300 may implement power consumption measurement of multiple objects through one USB interface extender.
It should be noted that, the plurality of collecting devices 100 are all collecting devices calibrated by the calibrating device 400, and each collecting device 100 in the plurality of collecting devices 100 stores the current calibration parameter and the voltage calibration parameter corresponding to each detecting channel 101 in the n detecting channels 101. Any two acquisition devices 100 of the plurality of acquisition devices 100 are used for acquiring current voltage data of different objects or for acquiring current voltage data of the same object. Each of the plurality of acquisition devices 100 calibrates the detected current-voltage data using the current calibration parameter and the voltage calibration parameter and transmits the calibrated current-voltage data to the electronic device 300. The electronic device 300 may accordingly enable confirmation of power consumption of more loads of the same object, or may enable confirmation of power consumption of loads of different objects. In this way, the acquisition system can realize power consumption measurement of more channels through the extended use of a plurality of acquisition devices 100, and has considerable flexibility.
The data acquisition is synchronized in operation of the plurality of acquisition devices 100. That is, it is necessary to ensure synchronization of data collection and transmission between the respective detection channels 101 of the different collection devices 100 when the plurality of collection devices 100 are operated simultaneously. In this case, as shown in fig. 17, the embodiment of the present application designs a master-slave logic control function, where the electronic device 300 defines master-slave devices in the plurality of acquisition devices 100 according to the identification sequence of the acquisition devices 100, the master acquisition device 100 generates a synchronization pulse signal, and all detection channels 101 of the plurality of acquisition devices 100 perform data acquisition and transmission under the control of the synchronization pulse signal. The master-slave logic control function will be described next.
Fig. 18 is a schematic diagram of a master-slave logic control function according to an embodiment of the present application. Referring to fig. 18, the master-slave logic control function may include the following steps 1801 to 1806.
Step 1801: the electronic device 300 scans for USB devices.
Step 1802: the electronic device 300 recognizes that the first acquisition device 100 is connected.
If the electronic device 300 recognizes that the acquisition device 100 is connected, the identifier of the connected acquisition device 100 may be obtained, and the number of channels of the acquisition device 100 is determined according to the identifier of the acquisition device 100, where the number of channels refers to the number of detection channels 101 that the acquisition device 100 has.
Step 1803: electronic device 300 creates an instrument instance.
The instrument example is used to indicate how many channels all acquisition devices 100 are connected together, i.e. how many detection channels 101 are in the whole.
Step 1804: the electronic device 300 creates a corresponding device instance from the identification of the capture device 100.
A device instance for the acquisition device 100 indicates how many channels the acquisition device 100 is, i.e. how many detection channels 101 the acquisition device 100 has.
Step 1805: the electronic device 300 identifies a second acquisition device 100 or a greater number of acquisition devices 100.
After identifying the first acquisition device 100, the electronic device 300 may update the instrument instance each time a new acquisition device 100 is identified.
Step 1806: the electronic device 300 determines that the number of connected acquisition devices 100 is greater than or equal to 2, and determines a master-slave relationship of the connected plurality of acquisition devices 100.
It should be noted that, after the plurality of collection devices 100 are connected to the electronic apparatus 300, the designated pins of each collection device 100 in the plurality of collection devices 100 are connected to the same node.
The electronic device 300 may determine that the first connected acquisition device 100 is the master device and send an indication message to the first connected acquisition device 100. The acquisition device 100 determines itself to be the master after receiving the indication message, and then pulls the level of its designated pin high to generate a synchronization pulse signal. Since the designated pin of each of the plurality of acquisition devices 100 is connected to the same node, after the acquisition device 100 pulls the level of its designated pin high, other acquisition devices 100 will detect that the level of its designated pin is pulled high, that is, will detect the synchronization pulse signal, in this case, other acquisition devices 100 determine themselves as slave devices, and perform data acquisition and transmission according to the detected synchronization pulse signal.
Optionally, after determining the master-slave relationship of the connected multiple collection devices 100, the electronic device 300 may determine connection information of each collection device 100 in the multiple collection devices 100 according to the instrument instance and the device instance, and transmit the connection information of each collection device 100 in the multiple collection devices 100 to interface software in the electronic device 300, so that the interface software may refer to the connection information for display when performing data display, for example, may perform independent display or joint display on data corresponding to different collection devices 100.
The electronic device 300 according to the embodiment of the present application is described below.
Fig. 19 is a schematic structural diagram of an electronic device 300 according to an embodiment of the present application. Referring to fig. 19, the electronic device 300 includes at least one processor 1901, a communication bus 1902, a memory 1903, and at least one communication interface 1904.
The processor 1901 may be a microprocessor (including a central processing unit (central processing unit, CPU), etc.), an application-specific integrated circuit (ASIC), or may be one or more integrated circuits for controlling the execution of programs in accordance with aspects of the present application.
Communication bus 1902 may include a path for communicating information between the aforementioned components.
The memory 1903 may be, but is not limited to, a read-only memory (ROM), a random-access memory (random access memory, RAM), an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), an optical disk (including a compact disk (compact disc read-only memory, CD-ROM), a compact disk, a laser disk, a digital versatile disk, a blu-ray disk, etc.), a magnetic disk storage medium, or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by a computer. The memory 1903 may be self-contained and coupled to the processor 1901 via the communication bus 1902. The memory 1903 may also be integrated with the processor 1901.
The communication interface 1904 uses any transceiver-like device for communicating with other devices or communication networks, such as ethernet, radio access network (radio access network, RAN), wireless local area network (wireless local area network, WLAN), etc.
In a particular implementation, the processor 1901 may include one or more CPUs, such as CPU0 and CPU1 shown in fig. 19, as one embodiment.
In a particular implementation, as one embodiment, the electronic device 300 may include multiple processors, such as the processor 1901 and the processor 1905 shown in FIG. 19. Each of these processors may be a single-core processor or a multi-core processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a particular implementation, electronic device 300 may also include an output device 1906 and an input device 1907, as one embodiment. The output device 1906 communicates with the processor 1901 and can display information in a variety of ways. For example, the output device 1906 may be a liquid crystal display (liquid crystal display, LCD), a light emitting diode (light emitting diode, LED) display device, a Cathode Ray Tube (CRT) display device, a projector (projector), or the like. The input device 1907 communicates with the processor 1901 and may receive user input in a variety of ways. For example, the input device 1907 may be a mouse, keyboard, touch screen device, or sensing device, among others.
The electronic device 300 may be a general purpose computer device or a special purpose computer device. In a specific implementation, the electronic device 300 may be a desktop, a portable computer, a network server, a palm computer, a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device, and the embodiments of the present application are not limited to the type of electronic device 300.
The memory 1903 is used for storing program codes 1910 for executing the present application, and the processor 1901 is used for executing the program codes 1910 stored in the memory 1903. The electronic device 300 may implement the operations performed by the electronic device 300 in the above embodiments through the processor 1901 and the program code 1910 in the memory 1903.
The software system of the electronic device 300 will be described next.
Fig. 20 is a schematic diagram of a software system of an electronic device 300 according to an embodiment of the present application. Referring to fig. 20, the software system of the electronic device 300 may include: interface software 301, driver software 302, embedded software 303.
The embedded software 303 may perform functions such as collection and transmission of current data, collection and transmission of voltage data, identification and data synchronization of multiple collection devices, and storage and recall of calibration parameters. The acquisition and transmission of the current data are as follows: the embedded software 303 may receive the current data sent by the acquisition device 100 and transmit the current data to the driver software 302 for processing. The acquisition and transmission of the voltage data are as follows: the embedded software 303 may receive the voltage data sent by the acquisition device 100 and transmit the voltage data to the driver software 302 for processing. The multi-acquisition device identification and data synchronization means that: the embedded software 303 may identify a plurality of acquisition devices 100 connected to the electronic apparatus 300 and may determine a master-slave relationship between the plurality of acquisition devices 100 to enable data synchronization between the plurality of acquisition devices 100. The storing and calling of the calibration parameters means that: the embedded software 303 may determine calibration parameters of the acquisition device 100 during the calibration process and may use the calibration parameters to calibrate the corresponding current voltage data when needed.
The driver software 302 may perform data processing on the current voltage data after obtaining the current voltage data, for example, may perform filtering processing, calibration processing, power consumption confirmation, or other expansion processing on the current voltage data, which is not limited in the embodiment of the present application. After the driver software 302 performs data processing on the current and voltage data, the data processing result may be reported to the interface software 301. Optionally, the driver software 302 may also configure the detection channel 101 in the acquisition device 100.
The interface software 301 may display data according to the data processing result, for example, the interface software 301 may display a V-I-P characteristic curve, so that a technician may know the voltage, current, and power changes in time. In some embodiments, the interface software 301 may also perform related mathematical calculations on the data processing results, such as, for example, averaging V-I-P characteristics, etc. Optionally, the interface software 301 may further have a function button, which may be used to implement operations such as zooming, for example, zooming in or out on the displayed V-I-P characteristic curve. In this way, the technician can conveniently perform hardware and software debugging, analysis and research and the like according to the data processing result of the driver software 302 and the data display condition of the interface software 301.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, data subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium such as a floppy Disk, a hard Disk, a magnetic tape, an optical medium such as a digital versatile Disk (Digital Versatile Disc, DVD), or a semiconductor medium such as a Solid State Disk (SSD), etc.
The above embodiments are not intended to limit the present application, and any modifications, equivalent substitutions, improvements, etc. within the technical scope of the present disclosure should be included in the protection scope of the present application.

Claims (15)

1. A calibration device, the calibration device comprising: a voltage output module and at least one calibration module;
the output end of the voltage output module is connected with the input end of each calibration module in the at least one calibration module, the output end of each calibration module in the at least one calibration module is used for being connected with at least one detection channel in n detection channels in the acquisition device, and n is an integer greater than or equal to 2;
the voltage output module is used for outputting a first voltage to each calibration module in the at least one calibration module, each calibration module in the at least one calibration module outputs a second voltage and a third voltage to a connected detection channel under the condition that the first voltage is input, each detection channel in the n detection channels is used for detecting a target current value according to the second voltage input by the connected detection channel and detecting a target voltage value according to the third voltage input by the connected calibration module, a current calibration parameter corresponding to each detection channel is determined according to a theoretical current value and the target current value, and a voltage calibration parameter corresponding to each detection channel is determined according to the theoretical voltage value and the target voltage value.
2. The calibration device of claim 1, wherein the voltage output module comprises a reference voltage source, a second processing unit, and a digital-to-analog converter DAC;
the two output ends of the reference voltage source are connected with the two reference voltage ends of the DAC one by one, the output end of the second processing unit is connected with the input end of the DAC, and the output end of the DAC is connected with the input end of each calibration module in the at least one calibration module.
3. The calibration device of claim 2, wherein the voltage output module further comprises two first voltage followers, one of the two first voltage followers being connected between one output of the reference voltage source and one reference voltage terminal of the DAC, the other first voltage follower being connected between the other output of the reference voltage source and the other reference voltage terminal of the DAC.
4. The calibration device of claim 1, wherein any one of the at least one calibration module comprises a second resistor and a third resistor, a first end of the second resistor being connected to the output of the voltage output module, a second end of the second resistor being connected to a first end of the third resistor, a second end of the third resistor being connected to ground, and two ends of the second resistor being configured to be connected to at least one of the n detection channels.
5. The calibration device of claim 4, wherein the one calibration module further comprises a second voltage follower connected between an output of the voltage output module and a first end of the second resistor.
6. The calibration device of claim 1, further comprising a third voltage follower connected between an output of the voltage output module and an input of each of the at least one calibration module.
7. The calibration device of any one of claims 1 to 6, wherein the calibration device and the acquisition device are configured to be connected by a board-to-board connector.
8. A calibration system, which is characterized by comprising a calibration device, an acquisition device and electronic equipment;
the calibration device comprises a voltage output module and at least one calibration module, the acquisition device comprises n detection channels and a first processing unit, and n is a positive integer greater than or equal to 2;
the output end of the voltage output module is connected with the input end of each calibration module in the at least one calibration module; the output end of each calibration module in the at least one calibration module is connected with at least one detection channel in the n detection channels; the n acquisition ends of the first processing unit are connected with the n detection channels one by one;
The voltage output module is used for outputting a first voltage to each calibration module in the at least one calibration module; each of the at least one calibration module outputs a second voltage and a third voltage to the connected detection channel with the first voltage input;
each of the n detection channels is used for detecting a target current value according to the second voltage input by the connected detection channel and detecting a target voltage value according to the third voltage input by the connected calibration module; the first processing unit is used for acquiring the target current value and the target voltage value detected by each detection channel and sending the target current value and the target voltage value to the electronic equipment;
the electronic device is used for determining current calibration parameters corresponding to each detection channel according to a theoretical current value and the target current value, and determining voltage calibration parameters corresponding to each detection channel according to a theoretical voltage value and the target voltage value so as to obtain n groups of calibration parameters corresponding to the n detection channels one by one, wherein each group of calibration parameters in the n groups of calibration parameters comprises the current calibration parameters and the voltage calibration parameters.
9. The calibration system of claim 8,
the electronic equipment is used for sending a calibration instruction to the voltage output module;
the voltage output module is used for setting the first voltage to be the minimum value of a preset voltage range under the condition that the currently received calibration instruction is the first calibration instruction in the current calibration process, and outputting the first voltage to each calibration module in the at least one calibration module; under the condition that the currently received calibration command is not the first calibration command received in the current calibration process, if the first voltage is determined to be smaller than the maximum value of the preset voltage range, the first voltage is increased by the preset voltage, the first voltage is output to each calibration module in the at least one calibration module, and if the first voltage is determined to be equal to the maximum value of the preset voltage range, the current calibration process is ended.
10. The calibration system of claim 9,
the electronic device is configured to determine, for any one of the n detection channels after the calibration process is finished, a current calibration parameter corresponding to the one detection channel according to a plurality of sets of calibration current values corresponding to the one detection channel obtained in the calibration process, where each set of calibration current values includes the theoretical current value and the target current value, and determine, according to a plurality of sets of calibration voltage values corresponding to the one detection channel obtained in the calibration process, a voltage calibration parameter corresponding to the one detection channel, where each set of calibration voltage values includes the theoretical voltage value and the target voltage value.
11. A calibration system according to any one of claims 8 to 10, wherein the electronic device is arranged to send the n sets of calibration parameters to the first processing unit for storage.
12. The calibration system of claim 11, wherein the electronic device is to:
generating a data packet carrying the n groups of calibration parameters;
obtaining the residual size of the cache space of the first processing unit;
if the size of the data packet is smaller than or equal to the residual size of the buffer space, the data packet is sent to the first processing unit; if the size of the data packet is larger than the residual size of the buffer space, generating a new data packet according to at least one group of calibration parameters in the data packet, wherein the size of the new data packet is smaller than or equal to the residual size of the buffer space, and transmitting the newly generated data packet to the first processing unit;
and if one or more groups of calibration parameters which are not transmitted to the first processing unit exist in the n groups of calibration parameters, generating a data packet carrying the one or more groups of calibration parameters, and re-executing the step of acquiring the residual size of the cache space of the first processing unit and the subsequent steps until the n groups of calibration parameters are transmitted to the first processing unit.
13. The acquisition system is characterized by comprising electronic equipment and a plurality of acquisition devices, wherein the electronic equipment is connected with the plurality of acquisition devices;
the plurality of acquisition devices are all acquisition devices calibrated by the calibration device according to any one of claims 1 to 7, each acquisition device in the plurality of acquisition devices stores current calibration parameters and voltage calibration parameters corresponding to each detection channel in n detection channels of the acquisition devices, and data acquisition is synchronous when the plurality of acquisition devices work;
any two acquisition devices in the plurality of acquisition devices are used for acquiring current and voltage data of different objects or current and voltage data of the same object; and each acquisition device in the plurality of acquisition devices uses the current calibration parameter and the voltage calibration parameter to calibrate the current and voltage data and then sends the current and voltage data to the electronic equipment.
14. The acquisition system of claim 13 wherein the electronic device is coupled to the plurality of acquisition devices through a universal serial bus USB interface extender.
15. The acquisition system of claim 13 or 14, wherein designated pins of each of the plurality of acquisition devices are connected to the same node after the plurality of acquisition devices are connected to the electronic device;
The electronic device is used for: when the acquisition devices are identified to be connected, if the number of the acquisition devices which are connected currently is determined to be more than or equal to 2, determining the acquisition device which is connected first as a main device, and sending an indication message to the acquisition device which is connected first;
the first connected acquisition device is used for: after receiving the indication message, determining the self as main equipment, and raising the level of the appointed pin of the self to generate a synchronous pulse signal;
the other acquisition devices are used for: if the level of the appointed pin of the self is detected to be pulled up, the self is determined to be slave equipment, and data acquisition is carried out according to the synchronous pulse signal generated on the appointed pin of the self.
CN202310453919.5A 2023-04-25 2023-04-25 Calibration device, calibration system and acquisition system Active CN116185784B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310453919.5A CN116185784B (en) 2023-04-25 2023-04-25 Calibration device, calibration system and acquisition system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310453919.5A CN116185784B (en) 2023-04-25 2023-04-25 Calibration device, calibration system and acquisition system

Publications (2)

Publication Number Publication Date
CN116185784A true CN116185784A (en) 2023-05-30
CN116185784B CN116185784B (en) 2023-09-08

Family

ID=86433019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310453919.5A Active CN116185784B (en) 2023-04-25 2023-04-25 Calibration device, calibration system and acquisition system

Country Status (1)

Country Link
CN (1) CN116185784B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117686961A (en) * 2024-02-01 2024-03-12 深圳曦华科技有限公司 Error calibration system, calibration method, computer device, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106501745A (en) * 2016-12-30 2017-03-15 深圳市盛弘电气股份有限公司 A kind of self-checking device and calibration steps
CN112731247A (en) * 2020-12-29 2021-04-30 欣旺达电动汽车电池有限公司 Calibration system, calibration method, and storage medium
CN113094230A (en) * 2021-03-31 2021-07-09 宁畅信息产业(北京)有限公司 Power consumption monitoring method and power consumption monitoring mainboard
CN114121140A (en) * 2022-01-28 2022-03-01 合肥悦芯半导体科技有限公司 Chip testing method, system, electronic device and storage medium
CN114252798A (en) * 2021-12-15 2022-03-29 杭州长川科技股份有限公司 Large-current pulse power supply output calibration method and device and electronic equipment
CN114442021A (en) * 2021-12-01 2022-05-06 国网山东省电力公司物资公司 Power transformer detection system calibration device and method
CN115878418A (en) * 2022-11-29 2023-03-31 浪潮商用机器有限公司 Power consumption monitoring method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106501745A (en) * 2016-12-30 2017-03-15 深圳市盛弘电气股份有限公司 A kind of self-checking device and calibration steps
CN112731247A (en) * 2020-12-29 2021-04-30 欣旺达电动汽车电池有限公司 Calibration system, calibration method, and storage medium
CN113094230A (en) * 2021-03-31 2021-07-09 宁畅信息产业(北京)有限公司 Power consumption monitoring method and power consumption monitoring mainboard
CN114442021A (en) * 2021-12-01 2022-05-06 国网山东省电力公司物资公司 Power transformer detection system calibration device and method
CN114252798A (en) * 2021-12-15 2022-03-29 杭州长川科技股份有限公司 Large-current pulse power supply output calibration method and device and electronic equipment
CN114121140A (en) * 2022-01-28 2022-03-01 合肥悦芯半导体科技有限公司 Chip testing method, system, electronic device and storage medium
CN115878418A (en) * 2022-11-29 2023-03-31 浪潮商用机器有限公司 Power consumption monitoring method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117686961A (en) * 2024-02-01 2024-03-12 深圳曦华科技有限公司 Error calibration system, calibration method, computer device, and storage medium
CN117686961B (en) * 2024-02-01 2024-06-25 深圳曦华科技有限公司 Error calibration system, calibration method, computer device, and storage medium

Also Published As

Publication number Publication date
CN116185784B (en) 2023-09-08

Similar Documents

Publication Publication Date Title
CN107908507B (en) double-CPU multichannel FT (FT) mass production test system and method
CN116185784B (en) Calibration device, calibration system and acquisition system
US10321210B2 (en) Sensor system and method of collecting data
US9339234B2 (en) System and method for measuring physiological parameters
US9696353B2 (en) Measuring power consumption of circuit component operating in run mode
CN116955027B (en) MCU chip test system and test method thereof
CN103822667A (en) Temperature-humidity acquisition system based on Bluetooth technology
CN111736104A (en) Current detection calibration method and device and display device
CN112684234B (en) Probe identification method of oscilloscope and oscilloscope
WO2024002031A1 (en) Chip temperature test method and apparatus
CN109900970A (en) A kind of multi channel detector capacitor automatic measurement system
CN210346590U (en) Wireless static strain tester and wireless static strain test system
CN217687601U (en) MCU temperature sensor ATE equipment
CN211124351U (en) Multifunctional data acquisition unit based on simulation and digital acquisition
CN202043109U (en) Automatic testing system of optical module integrated with transmission and reception
CN108508378B (en) Method and system for testing starting characteristic of power supply
CN210181590U (en) MCU parameter testing system
WO2022057301A1 (en) Current test circuit, device, and method, and storage medium
CN213398860U (en) Battery charging simulation system and test system
CN105388345A (en) Oscilloscope enabling internal phase to be automatically calibrated
CN111624918A (en) Method, device and system for acquiring working state of microcontroller and readable storage medium
US20240230766A9 (en) Battery current monitoring method, controller and circuit
CN214372530U (en) Isolation type laser gyro state monitoring device based on USB interface
CN213693714U (en) Radio frequency signal detection circuit
Nguyen et al. Analog Integrated Circuit Applications

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