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 present application relates to the field of computer technology, in particular to a calibration device, a calibration system and an acquisition system.

背景技术Background technique

随着计算机技术的迅速发展,电子设备的功能越来越丰富,应用场景也越来越多。为提升电子设备的续航体验,对电子设备的功耗评测显得尤为重要。目前,可以使用采集器件采集电子设备中的负载的电流和电压,以据此确定相应的功耗。然而,因制造影响,采集器件的理论值与检测值之间不可避免的会存在偏差,导致采集器件的检测精度下降。为此,亟需一种校准器件对采集器件进行校准,以提高采集器件的检测精度。With the rapid development of computer technology, electronic devices have more and more functions and more and more application scenarios. In order to improve the battery life experience of electronic devices, it is particularly important to evaluate the power consumption of electronic devices. Currently, a collection device can be used to collect the current and voltage of a load in an electronic device, so as to determine the corresponding power consumption accordingly. However, due to manufacturing influences, there will inevitably be deviations between the theoretical value and the detected value of the acquisition device, resulting in a decrease in the detection accuracy of the acquisition device. Therefore, there is an urgent need for a calibration device to calibrate the acquisition device, so as to improve the detection accuracy of the acquisition device.

发明内容Contents of the invention

本申请提供了一种校准器件、校准系统和采集系统,可以提高采集器件的检测精度。所述技术方案如下:The application provides a calibration device, a calibration system and an acquisition system, which can improve the detection accuracy of the acquisition device. Described technical scheme is as follows:

第一方面,提供了一种校准器件,校准器件包括:电压输出模块和至少一个校准模块。In a first aspect, a calibration device is provided, and the calibration device includes: a voltage output module and at least one calibration module.

电压输出模块的输出端与至少一个校准模块中每个校准模块的输入端连接,至少一个校准模块中每个校准模块的输出端用于与采集器件中n个检测通道中的至少一个检测通道连接,n为大于或等于2的整数。The output terminal of the voltage output module is connected to the input terminal of each calibration module in the at least one calibration module, and the output terminal of each calibration module in the at least one calibration module is used to connect with at least one detection channel in the n detection channels in the acquisition device , n is an integer greater than or equal to 2.

电压输出模块用于向至少一个校准模块中的每个校准模块输出第一电压,至少一个校准模块中的每个校准模块在输入第一电压的情况下向所连接的检测通道输出第二电压和第三电压,n个检测通道中的每个检测通道用于根据所连接的检测通道输入的第二电压检测目标电流值以及根据所连接的校准模块输入的第三电压检测目标电压值,每个检测通道对应的电流校准参数是根据理论电流值和目标电流值确定的,每个检测通道对应的电压校准参数是根据理论电压值和目标电压值确定的。The voltage output module is used to output the first voltage to each calibration module in the at least one calibration module, and each calibration module in the at least one calibration module outputs the second voltage and The third voltage, each detection channel in the n detection channels is used to detect the target current value according to the second voltage input by the connected detection channel and the third voltage detection target voltage value according to the connected calibration module input, each The current calibration parameters corresponding to the detection channels are determined according to the theoretical current value and the target current value, and the voltage calibration parameters corresponding to each detection channel are determined according to the theoretical voltage value and the target voltage value.

可选地,校准器件与采集器件用于通过板对板连接器进行连接。Optionally, the calibration device and the acquisition device are used for connection through a board-to-board connector.

在本申请中,由于至少一个校准模块中每个校准模块的电路结构是预知的,所以在电压输出模块向至少一个校准模块中的每个校准模块输出第一电压的情况下,可事先获知至少一个校准模块中的每个校准模块预期被所连接的检测通道检测到的理论电流值和理论电压值。对于n个检测通道中任意的一个检测通道,这个检测通道在检测所连接的校准模块后实际得到的是目标电流值和目标电压值。这种情况下,根据这个检测通道所连接的校准模块对应的理论电流值和这个检测通道实际检测到的目标电流值,可以确定出这个检测通道对应的电流校准参数,并且,根据这个检测通道所连接的校准模块对应的理论电压值和这个检测通道实际检测到的目标电压值,可以确定出这个检测通道对应的电压校准参数,如此,就得到了这个检测通道对应的一组校准参数。这个检测通道对应的一组校准参数用于将这个检测通道实际的检测值校准为理论值,也即,这个检测通道对应的电流校准参数用于将这个检测通道实际检测到的电流值校准至接近或等于理论电流值,将这个检测通道实际检测到的电压值校准至接近或等于理论电压值。由于校准后的检测值接近或等于理论值,所以可以有效提高采集器件的检测精度。In this application, since the circuit structure of each calibration module in at least one calibration module is known in advance, so in the case that the voltage output module outputs the first voltage to each calibration module in at least one calibration module, it can be known in advance that at least A theoretical current value and a theoretical voltage value expected to be detected by each calibration module in a calibration module by the connected detection channel. For any detection channel among the n detection channels, what this detection channel actually obtains after detecting the connected calibration module is a target current value and a target voltage value. In this case, according to the theoretical current value corresponding to the calibration module connected to the detection channel and the target current value actually detected by the detection channel, the current calibration parameters corresponding to the detection channel can be determined, and, according to the detection channel The theoretical voltage value corresponding to the connected calibration module and the target voltage value actually detected by this detection channel can determine the voltage calibration parameters corresponding to this detection channel, so that a set of calibration parameters corresponding to this detection channel can be obtained. A set of calibration parameters corresponding to this detection channel is used to calibrate the actual detection value of this detection channel to a theoretical value, that is, the current calibration parameters corresponding to this detection channel are used to calibrate the current value actually detected by this detection channel to a value close to Or equal to the theoretical current value, and calibrate the actual detected voltage value of this detection channel 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 can be effectively improved.

可选地,电压输出模块包括基准电压源、第二处理单元和数字模拟转换器DAC。基准电压源的两个输出端一一与DAC的两个基准电压端连接,第二处理单元的输出端与DAC的输入端连接,DAC的输出端与至少一个校准模块中每个校准模块的输入端连接。Optionally, the voltage output module includes a reference voltage source, a second processing unit and a digital-to-analog converter DAC. The two output terminals of the reference voltage source are connected to the two reference voltage terminals of the DAC one by one, the output terminal of the second processing unit is connected to the input terminal of the DAC, and the output terminal of the DAC is connected to the input of each calibration module in at least one calibration module end connection.

基准电压源是用于输出两个基准电压的电源。这两个基准电压中的一个基准电压为预设电压范围的最大值,另一个基准电压为预设电压范围的最小值。在基准电压源输出的两个基准电压的作用下,DAC可以稳定且精确的输出所需的电压。The reference voltage source is a power supply 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. Under the action of the two reference voltages output by the reference voltage source, the DAC can output the required voltage stably and accurately.

在需要对采集器件进行校准时,第二处理单元可以向DAC输出第一电压的数字量(即数字电压)。DAC可以根据基准电压源输入的两个基准电压将该数字电压转换为模拟电压(即第一电压的模拟量),该模拟电压处于预设电压范围内。之后,DAC可以将该模拟电压输出给至少一个校准模块中的每个校准模块。When the acquisition device needs to be calibrated, the second processing unit may output the digital value of the first voltage (ie, the digital voltage) to the DAC. The DAC can convert the digital voltage into an analog voltage (that is, the analog value of the first voltage) according to the two reference voltages input by the reference voltage source, and the analog voltage is within a preset voltage range. The DAC can then output the analog voltage to each of the at least one calibration module.

可选地,电压输出模块还包括两个第一电压跟随器,两个第一电压跟随器中的一个第一电压跟随器连接在基准电压源的一个输出端与DAC的一个基准电压端之间,另一个第一电压跟随器连接在基准电压源的另一个输出端与DAC的另一个基准电压端之间。Optionally, the voltage output module further includes two first voltage followers, and one of the two first voltage followers is connected between an output terminal of the reference voltage source and a reference voltage terminal of the DAC , another first voltage follower is connected between the other output end of the reference voltage source and the other reference voltage end of the DAC.

由于电压跟随器输入阻抗近似无穷大、输出阻抗极小,所以可以起到隔离缓冲的作用,因而这两个第一电压跟随器可以使得基准电压源输出至DAC的两个基准电压更为稳定。Since the input impedance of the voltage follower is approximately infinite and the output impedance is extremely small, it can function as an isolation buffer. Therefore, the two first voltage followers can make the two reference voltages output from the reference voltage source to the DAC more stable.

可选地,至少一个校准模块中任意的一个校准模块包括第二电阻和第三电阻,第二电阻的第一端与电压输出模块的输出端连接,第二电阻的第二端与第三电阻的第一端连接,第三电阻的第二端与地线连接,第二电阻的两端用于与n个检测通道中的至少一个检测通道连接。Optionally, any calibration module in at least one calibration module includes a second resistor and a third resistor, the first end of the second resistor is connected to the output end of the voltage output module, and the second end of the second resistor is connected to the third resistor The first end of the third resistor is connected to the ground wire, and the two ends of the second resistor are used to connect to at least one detection channel in the n detection channels.

这种情况下,第二电阻的电压为上述的第二电压,第三电阻的电压为上述的第三电压,第二电阻的阻值和第三电阻的阻值是已知的。由于第二电阻的阻值和第三电阻的阻值是已知的,所以在预知电压输出模块向第二电阻输出的第一电压的情况下,可预知第二电阻的真实电流值(即理论电流值)和第三电阻的真实电压值(即理论电压值),也就预知了n个检测通道中每个检测通道对应的理论电流值和理论电压值。In this case, the voltage of the second resistor is the above-mentioned second voltage, the voltage of the third resistor is the above-mentioned third voltage, and the resistance values of the second resistor and the third resistor are known. Since the resistance value of the second resistor and the resistance value of the third resistor are known, in the case of predicting the first voltage output from the voltage output module to the second resistor, the real current value of the second resistor (that is, the theoretical current value) and the real voltage value (that is, theoretical voltage value) of the third resistor, which predicts the theoretical current value and theoretical voltage value corresponding to each detection channel in the n detection channels.

可选地,一个校准模块还包括第二电压跟随器,第二电压跟随器连接在电压输出模块的输出端与第二电阻的第一端之间,以保证电压输出模块输出的第一电压的稳定性。Optionally, a calibration module further includes a second voltage follower, and the second voltage follower is connected between the output terminal of the voltage output module and the first terminal of the second resistor to ensure the accuracy of the first voltage output by the voltage output module. stability.

可选地,校准器件还包括第三电压跟随器,第三电压跟随器连接在电压输出模块的输出端与至少一个校准模块中的每个校准模块的输入端之间,以提高电压输出模块的带载能力。Optionally, the calibration device further includes a third voltage follower, and the third voltage follower is connected between the output terminal of the voltage output module and the input terminal of each calibration module in at least one calibration module, so as to improve the voltage output module. carrying capacity.

第二方面,提供了一种校准系统,该校准系统包括校准器件、采集器件、电子设备。In a second aspect, a calibration system is provided, and the calibration system includes a calibration device, an acquisition device, and electronic equipment.

校准器件包括电压输出模块和至少一个校准模块,采集器件包括n个检测通道和第一处理单元,n为大于或等于2的正整数。电压输出模块的输出端与至少一个校准模块中每个校准模块的输入端连接;至少一个校准模块中每个校准模块的输出端与n个检测通道中的至少一个检测通道连接;第一处理单元的n个采集端一一与n个检测通道连接。电压输出模块用于向至少一个校准模块中的每个校准模块输出第一电压;至少一个校准模块中的每个校准模块在输入第一电压的情况下向所连接的检测通道输出第二电压和第三电压。n个检测通道中的每个检测通道用于根据所连接的检测通道输入的第二电压检测目标电流值以及根据所连接的校准模块输入的第三电压检测目标电压值;第一处理单元用于获取每个检测通道检测到的目标电流值和目标电压值,将目标电流值和目标电压值发送给电子设备。电子设备用于根据理论电流值和目标电流值确定每个检测通道对应的电流校准参数,以及根据理论电压值和目标电压值确定每个检测通道对应的电压校准参数,以得到与n个检测通道一一对应的n组校准参数,n组校准参数中的每组校准参数包括电流校准参数和电压校准参数。The calibration device includes a voltage output module and at least one calibration module, and the acquisition device includes n detection channels and a first processing unit, where n is a positive integer greater than or equal to 2. The output terminal of the voltage output module is connected to the input terminal of each calibration module in the at least one calibration module; the output terminal of each calibration module in the at least one calibration module is connected to at least one detection channel in the n detection channels; the first processing unit The n acquisition ends of the n detectors are connected to n detection channels one by one. The voltage output module is used to output the first voltage to each calibration module in the at least one calibration module; each calibration module in the at least one calibration module outputs the second voltage and third voltage. Each of the n detection channels is used to detect the target current value according to the second voltage input by the connected detection channel and detect the target voltage value according to the third voltage input by the connected calibration module; the first processing unit is used for The target current value and the target voltage value detected by each detection channel are obtained, and the target current value and the target voltage value are sent to the electronic device. The electronic device is used to determine the current calibration parameters corresponding to each detection channel according to the theoretical current value and the target current value, and determine the voltage calibration parameters corresponding to each detection channel according to the theoretical voltage value and the target voltage value, so as to obtain the n detection channel There are n sets of calibration parameters in one-to-one correspondence, and each set of calibration parameters in the n sets of calibration parameters includes current calibration parameters and voltage calibration parameters.

在本申请中,由于至少一个校准模块中每个校准模块的电路结构是预知的,所以在电压输出模块向至少一个校准模块中的每个校准模块输出第一电压的情况下,可事先获知至少一个校准模块中的每个校准模块预期被所连接的检测通道检测到的理论电流值和理论电压值。对于n个检测通道中任意的一个检测通道,这个检测通道在检测所连接的校准模块后实际得到的是目标电流值和目标电压值。这种情况下,根据这个检测通道所连接的校准模块对应的理论电流值和这个检测通道实际检测到的目标电流值,可以确定出这个检测通道对应的电流校准参数,并且,根据这个检测通道所连接的校准模块对应的理论电压值和这个检测通道实际检测到的目标电压值,可以确定出这个检测通道对应的电压校准参数,如此,就得到了这个检测通道对应的一组校准参数。这个检测通道对应的一组校准参数用于将这个检测通道实际的检测值校准为理论值,也即,这个检测通道对应的电流校准参数用于将这个检测通道实际检测到的电流值校准至接近或等于理论电流值,将这个检测通道实际检测到的电压值校准至接近或等于理论电压值。由于校准后的检测值接近或等于理论值,所以可以有效提高采集器件的检测精度。In this application, since the circuit structure of each calibration module in at least one calibration module is known in advance, so in the case that the voltage output module outputs the first voltage to each calibration module in at least one calibration module, it can be known in advance that at least A theoretical current value and a theoretical voltage value expected to be detected by each calibration module in a calibration module by the connected detection channel. For any detection channel among the n detection channels, what this detection channel actually obtains after detecting the connected calibration module is a target current value and a target voltage value. In this case, according to the theoretical current value corresponding to the calibration module connected to the detection channel and the target current value actually detected by the detection channel, the current calibration parameters corresponding to the detection channel can be determined, and, according to the detection channel The theoretical voltage value corresponding to the connected calibration module and the target voltage value actually detected by this detection channel can determine the voltage calibration parameters corresponding to this detection channel, so that a set of calibration parameters corresponding to this detection channel can be obtained. A set of calibration parameters corresponding to this detection channel is used to calibrate the actual detection value of this detection channel to a theoretical value, that is, the current calibration parameters corresponding to this detection channel are used to calibrate the current value actually detected by this detection channel to a value close to Or equal to the theoretical current value, and calibrate the actual detected voltage value of this detection channel 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 can be effectively improved.

可选地,电子设备用于向电压输出模块发送校准指令;电压输出模块用于在确定当前接收到的校准指令为本次校准过程中的第一个校准指令的情况下,将第一电压设置为预设电压范围的最小值,向至少一个校准模块中的每个校准模块输出第一电压;在确定当前接收到的校准指令不为本次校准过程中接收到的第一个校准指令的情况下,若确定第一电压小于预设电压范围的最大值,则将第一电压增大预设电压,向至少一个校准模块中的每个校准模块输出第一电压,若确定第一电压等于预设电压范围的最大值,则结束本次校准过程。Optionally, the electronic device is used to send a calibration instruction to the voltage output module; the voltage output module is used to set the first voltage to Outputting the first voltage to each calibration module in at least one calibration module is the minimum value of the preset voltage range; when it is determined that the calibration instruction currently received is not the first calibration instruction received during this calibration process Next, if 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 in at least one calibration module, if it is determined that the first voltage is equal to the preset voltage If the maximum value of the voltage range is set, the calibration process ends.

在本申请中,电子设备可以向电压输出模块发送多个校准指令。电子设备每向电压输出模块发送一个校准指令,在接收到第一处理单元发送的目标电流值和目标电压值后,对于n个检测通道中任意的一个检测通道,电子设备会获得这个检测通道对应的一组校准电流值,这组校准电流值包括理论电流值和目标电流值,且电子设备会获得这个检测通道对应的一组校准电压值,这组校准电压值包括理论电压值和目标电压值。In this application, the electronic device can send multiple calibration instructions to the voltage output module. Each time the electronic device sends a calibration command to the voltage output module, after receiving the target current value and target voltage value sent by the first processing unit, for any one of the n detection channels, the electronic device will obtain the detection channel corresponding to A set of calibration current values, this set of calibration current values includes theoretical current values and target current values, and the electronic device will obtain a set of calibration voltage values corresponding to this detection channel, this set of calibration voltage values includes theoretical voltage values and target voltage values .

可选地,电子设备用于在本次校准过程结束后,对于n个检测通道中任意的一个检测通道,根据在本次校准过程中获取到的一个检测通道对应的多组校准电流值确定一个检测通道对应的电流校准参数,多组校准电流值中每组校准电流值包括理论电流值和目标电流值,以及根据在本次校准过程中获取到的一个检测通道对应的多组校准电压值确定一个检测通道对应的电压校准参数,多组校准电压值中每组校准电压值包括理论电压值和目标电压值。如此,可以获得n个检测通道中每个检测通道对应的一组校准参数,可以满足多通道校准需求。Optionally, the electronic device is configured to, for any one of the n detection channels after the calibration process ends, determine a The current calibration parameters corresponding to the detection channel, each set of calibration current values in multiple sets of calibration current values include theoretical current values and target current values, and are determined according to multiple sets of calibration voltage values corresponding to one detection channel obtained during this calibration process A voltage calibration parameter corresponding to a detection channel, and each set of calibration voltage values in multiple sets of calibration voltage values includes a theoretical voltage value and a target voltage value. In this way, a set of calibration parameters corresponding to each of the n detection channels can be obtained, which can meet the multi-channel calibration requirements.

可选地,电子设备用于将n组校准参数发送给第一处理单元进行存储。Optionally, the electronic device is configured to send n sets of calibration parameters to the first processing unit for storage.

可选地,电子设备用于:生成携带有n组校准参数的数据包;获取第一处理单元的缓存空间剩余大小;若数据包的大小小于或等于缓存空间剩余大小,则将数据包发送给第一处理单元;若数据包的大小大于缓存空间剩余大小,则根据数据包中的至少一组校准参数生成新的数据包,新生成的数据包的大小小于或等于缓存空间剩余大小,将新生成的数据包发送给第一处理单元;若n组校准参数中存在未被发送给第一处理单元的一组或多组校准参数,则生成携带有一组或多组校准参数的数据包,重新执行获取第一处理单元的缓存空间剩余大小的步骤及后续步骤,直至将n组校准参数均发送给第一处理单元为止。Optionally, the electronic device is used to: generate a data packet carrying n sets of calibration parameters; acquire the remaining size of the buffer space of the first processing unit; if the size of the data packet is less than or equal to the remaining size of the buffer space, send the data packet to The first processing unit; if the size of the data packet is greater than the remaining size of the buffer space, a new data packet is generated 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, and the new data packet is generated The generated data packet is sent to the first processing unit; if there is one or more sets of calibration parameters that have not been sent to the first processing unit in the n sets of calibration parameters, then generate a data packet carrying one or more sets of calibration parameters, and re- The step of obtaining the remaining size of the cache space of the first processing unit and subsequent steps are performed until all the n sets of calibration parameters are sent to the first processing unit.

在本申请中,提供了一种缓存空间自适应方式,通过实时监控第一处理单元的缓存空间剩余大小来调整所要下发的携带有校准参数的数据包的大小,从而可以保证第一处理单元的正常运行,也可以降低采集器件的资源消耗。In this application, a buffer space adaptive method is provided, which adjusts the size of the data packet carrying the calibration parameters to be delivered by monitoring the remaining size of the buffer space of the first processing unit in real time, thereby ensuring that the first processing unit The normal operation of the system can also reduce the resource consumption of the acquisition device.

第三方面,提供了一种采集系统,采集系统包括电子设备和多个采集器件,电子设备与多个采集器件进行连接。In a third aspect, a collection system is provided. The collection system includes electronic equipment and multiple collection devices, and the electronic device is connected to the multiple collection devices.

多个采集器件均是经上述第一方面所述的校准器件校准过的采集器件,多个采集器件中的每个采集器件存储有自身的n个检测通道中每个检测通道对应的电流校准参数和电压校准参数,多个采集器件工作时数据采集是同步的。多个采集器件中的任意两个采集器件用于采集不同对象的电流电压数据或用于采集同一对象的电流电压数据;多个采集器件中每个采集器件使用电流校准参数和电压校准参数对电流电压数据后进行校准后发送给电子设备。The plurality of acquisition devices are all acquisition devices calibrated by the calibration device described in the first aspect above, and each acquisition device in the plurality of acquisition devices stores the current calibration parameters corresponding to each detection channel in its own n detection channels And voltage calibration parameters, data acquisition is synchronized when multiple acquisition devices are working. Any two acquisition devices among the multiple acquisition devices are used to collect current and voltage data of different objects or to collect current and voltage data of the same object; each of the multiple acquisition devices uses current calibration parameters and voltage calibration parameters to adjust the current The voltage data is then calibrated and sent to the electronics.

电子设备据此可以实现对同一对象的更多负载的功耗的确认,或者可以实现对不同对象的负载的功耗的确认。如此,该采集系统通过对多个采集器件的扩展使用,可以实现更多通道的功耗测量,具有相当的灵活性。According to this, the electronic device can realize the confirmation of the power consumption of more loads of the same object, or can realize the confirmation of the power consumption of loads of different objects. In this way, the acquisition system can realize the power consumption measurement of more channels through the extended use of multiple acquisition devices, and has considerable flexibility.

可选地,电子设备与多个采集器件通过USB接口扩展器进行连接。Optionally, the electronic device is connected to multiple acquisition devices through a USB interface extender.

在一些实施例中,电子设备可以通过一个USB接口扩展器连接多个采集器件,且这多个采集器件均连接至一个对象,以采集这个对象的电流电压数据。并且,电子设备还可以通过另一个USB接口扩展器连接至另外多个采集器件,这多个采集器件可以连接至另外一个对象。如此,电子设备可以通过多个USB接口扩展器实现对多个对象的功耗测量。In some embodiments, the electronic device can be connected to multiple acquisition devices through a USB interface extender, and the multiple acquisition devices are all connected to an object, so as to collect the current and voltage data of the object. Moreover, the electronic device can also be connected to other multiple acquisition devices through another USB interface expander, and these multiple acquisition devices can be connected to another object. In this way, the electronic device can implement power consumption measurement for multiple objects through multiple USB interface extenders.

在另一些实施例中,电子设备可以通过一个USB接口扩展器连接多个采集器件,且这多个采集器件可以连接至不同的对象,以采集不同对象的电流电压数据。如此,电子设备可以通过一个USB接口扩展器实现对多个对象的功耗测量。In other embodiments, the electronic device can be connected to multiple acquisition devices through a USB interface extender, and the multiple acquisition devices can be connected to different objects to collect current and voltage data of different objects. In this way, the electronic device can implement power consumption measurement for multiple objects through a USB interface extender.

可选地,多个采集器件与电子设备连接后多个采集器件中每个采集器件的指定引脚均连接至同一节点。电子设备用于:在识别到有采集器件连接时,若确定当前已连接的采集器件的数量大于或等于2,则将第一个连接的采集器件确定为主设备,向第一个连接的采集器件发送指示消息。第一个连接的采集器件用于:接收到指示消息后,确定自身为主设备,将自身的指定引脚的电平拉高,以产生同步脉冲信号。其他采集器件用于:若检测到自身的指定引脚的电平被拉高,则确定自身为从设备,根据自身的指定引脚上产生的同步脉冲信号进行数据采集。Optionally, after the multiple collection devices are connected to the electronic device, the specified pins of each collection device in the multiple collection devices are connected to the same node. The electronic equipment is used to: when it is recognized that there is a collection device connected, if it is determined that the number of currently connected collection devices is greater than or equal to 2, then the first connected collection device is determined to be the master device, and the first connected collection device is determined to be the master device. The device sends an indication message. The first connected acquisition device is used to determine itself as the master device after receiving the indication message, and pull up the level of its designated pin to generate a synchronous pulse signal. Other acquisition devices are used to: if it detects that the level of its designated pin is pulled high, it determines itself as a slave device, and performs data acquisition according to the synchronization pulse signal generated on its designated pin.

在本申请中,设计了主从逻辑控制功能,电子设备会按照采集器件的识别顺序定义多个采集器件中的主从设备,主采集器件会产生同步脉冲信号,多个采集器件的全部检测通道都会在同步脉冲信号的控制下进行数据的采集和传输。In this application, the master-slave logic control function is designed. The electronic equipment will define the master-slave devices in multiple acquisition devices according to the identification order of the acquisition devices. The master acquisition device will generate synchronous pulse signals, and all detection channels of multiple acquisition devices Data collection and transmission will be carried out under the control of the synchronous pulse signal.

第四方面,提供了一种电子设备,所述电子设备的结构中包括处理器和存储器,所述存储器用于存储支持电子设备执行上述方面中由电子设备执行的操作的程序,以及存储用于实现上述方面中由电子设备执行的操作所涉及的数据。所述处理器被配置为用于执行所述存储器中存储的程序。所述电子设备还可以包括通信总线,所述通信总线用于在所述处理器与所述存储器之间建立连接。In a fourth aspect, an electronic device is provided, the structure of the electronic device includes a processor and a memory, and the memory is used to store a program that supports the electronic device to perform the operations performed by the electronic device in the above aspect, and stores a program for Data involved in implementing the operations performed by the electronic device in the above aspect. The processor is configured to execute programs stored in the memory. The electronic device may also include a communication bus for establishing a connection between the processor and the memory.

第五方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述方面中由电子设备执行的操作。In a fifth aspect, a computer-readable storage medium is provided, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, it causes the computer to perform the operations performed by the electronic device in the above aspect.

第六方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述方面中由电子设备执行的操作。In a sixth aspect, there is provided a computer program product including instructions, which, when run on a computer, cause the computer to perform the operations performed by the electronic device in the above aspect.

附图说明Description of drawings

图1是本申请实施例提供的一种采集器件100的结构示意图;FIG. 1 is a schematic structural diagram of an acquisition device 100 provided in an embodiment of the present application;

图2是本申请实施例提供的第一种采集器件100与目标对象200的连接示意图;FIG. 2 is a schematic diagram of the connection between the first collection device 100 and the target object 200 provided by the embodiment of the present application;

图3是本申请实施例提供的第二种采集器件100与目标对象200的连接示意图;FIG. 3 is a schematic diagram of the connection between the second collection device 100 and the target object 200 provided by the embodiment of the present application;

图4是本申请实施例提供的第一种采集器件100与电子设备300的通信示意图;FIG. 4 is a schematic diagram of communication between the first collection device 100 and the electronic device 300 provided by the embodiment of the present application;

图5是本申请实施例提供的第二种采集器件100与电子设备300的通信示意图;FIG. 5 is a schematic diagram of communication between the second collection device 100 and the electronic device 300 provided by the embodiment of the present application;

图6是本申请实施例提供的第一种校准器件400的结构示意图;FIG. 6 is a schematic structural diagram of a first calibration device 400 provided in an embodiment of the present application;

图7是本申请实施例提供的第二种校准器件400的结构示意图;FIG. 7 is a schematic structural diagram of a second calibration device 400 provided in an embodiment of the present application;

图8是本申请实施例提供的第三种校准器件400的结构示意图;FIG. 8 is a schematic structural diagram of a third calibration device 400 provided in an embodiment of the present application;

图9是本申请实施例提供的第四种校准器件400的结构示意图;FIG. 9 is a schematic structural diagram of a fourth calibration device 400 provided in an embodiment of the present application;

图10是本申请实施例提供的第五种校准器件400的结构示意图;FIG. 10 is a schematic structural diagram of a fifth calibration device 400 provided in an embodiment of the present application;

图11是本申请实施例提供的第六种校准器件400的结构示意图;FIG. 11 is a schematic structural diagram of a sixth calibration device 400 provided in an embodiment of the present application;

图12是本申请实施例提供的一种校准系统的示意图;Fig. 12 is a schematic diagram of a calibration system provided by an embodiment of the present application;

图13是本申请实施例提供的一种采集器件100的校准过程的示意图;FIG. 13 is a schematic diagram of a calibration process of an acquisition device 100 provided in an embodiment of the present application;

图14是本申请实施例提供的一种缓存空间自适应方式的示意图;FIG. 14 is a schematic diagram of a cache space adaptive manner provided by an embodiment of the present application;

图15是本申请实施例提供的一种采集器件100的工作过程的示意图;FIG. 15 is a schematic diagram of the working process of an acquisition device 100 provided by an embodiment of the present application;

图16是本申请实施例提供的一种采集系统的示意图;Fig. 16 is a schematic diagram of an acquisition system provided by an embodiment of the present application;

图17是本申请实施例提供的一种同步脉冲信号的示意图;Fig. 17 is a schematic diagram of a synchronous pulse signal provided by an embodiment of the present application;

图18是本申请实施例提供的一种主从逻辑控制功能的示意图;Fig. 18 is a schematic diagram of a master-slave logic control function provided by the embodiment of the present application;

图19是本申请实施例提供的一种电子设备300的结构示意图;FIG. 19 is a schematic structural diagram of an electronic device 300 provided in an embodiment of the present application;

图20是本申请实施例提供的一种电子设备300的软件系统的示意图。FIG. 20 is a schematic diagram of a software system of an electronic device 300 provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请的实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manner of the present application will be further described in detail below in conjunction with the accompanying drawings.

应当理解的是,本申请提及的“多个”是指两个或两个以上。在本申请的描述中,除非另有说明,“/”表示或的意思,比如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,比如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,为了便于清楚描述本申请的技术方案,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。It should be understood that the "plurality" mentioned in this application means two or more. In the description of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in this article is just a description of the relationship between associated objects, It means that there can be three kinds of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in order to clearly describe the technical solution of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

在本申请中描述的“一个实施例”或“一些实施例”等语句意味着在本申请的一个或多个实施例中包括该实施例描述的特定特征、结构或特点。由此,在本申请中的不同之处出现的“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等语句不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。此外,术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Phrases such as "one embodiment" or "some embodiments" described in this application mean that a particular feature, structure, or characteristic described by the embodiment is included in one or more embodiments of the present application. Thus, appearances of "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this application are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. In addition, the terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless specifically stated otherwise.

下面对本申请实施例涉及的应用场景予以说明。The application scenarios involved in the embodiments of the present application are described below.

随着计算机技术的迅速发展,电子设备的功能越来越丰富,应用场景也越来越多。为提升电子设备的续航体验,对电子设备的功耗评测显得尤为重要。比如,在一些应用场景中,随着物联网的深入发展,越来越多的采用电池供电的终端开始出现,各种基于蓝牙(bluetooth,BT)、无线保真(wireless fidelity,Wi-Fi)、远距离(long range,LoRa)、窄带物联网(narrow band internet of things,NB-IoT)、第四代移动通信技术(the 4thgeneration mobile communication technology,4G)等通信技术的终端需要部署在无法供电的地点,这就导致电池供电成为了唯一的选择,这种情况下在研发阶段对这些终端的功耗的评测至关重要。在另一些应用场景中,可穿戴设备越来越多的深入到人们的日常生活中,蓝牙耳机、蓝牙手环、智能手表、体温检测仪、血压监测仪、血糖监测仪等可穿戴设备,无不对功耗有着严格的要求。With the rapid development of computer technology, electronic devices have more and more functions and more and more application scenarios. In order to improve the battery life experience of electronic devices, it is particularly important to evaluate the power consumption of electronic devices. For example, in some application scenarios, with the in-depth development of the Internet of Things, more and more battery-powered terminals have begun to appear. Various devices based on Bluetooth (BT), wireless fidelity (Wi-Fi), Terminals of communication technologies such as long range (LoRa), narrow band internet of things (NB-IoT), and the 4th generation mobile communication technology (4G) need to be deployed in places that cannot supply power. location, which leads to battery power supply as the only option. In this case, it is very important to evaluate the power consumption of these terminals during the research and development stage. In other application scenarios, more and more wearable devices have penetrated into people's daily life. Wearable devices such as Bluetooth headsets, Bluetooth bracelets, smart watches, temperature detectors, blood pressure monitors, and blood glucose monitors are all There are strict requirements on power consumption.

低功耗是手机、个人计算机(personal computer,PC)、平板电脑等设备的关键性能指标。低功耗测试的特点主要包括以下四点:1、电流微小:小容量的电池想要达到长续航需要对功耗锱铢必较,这就要求用于进行功耗测试的设备具备足够的小电流分辨能力,uA(微安)是基本要求。2、动态范围大:很多产品休眠的时候电流可以达到uA级别,但是一旦唤醒后电流会快速上升到数十mA(毫安)甚至A(安)的水平,这就需要用于进行功耗测试的设备能够适应电流从接近0到几A的瞬态变化,并且能够保持足够的精度。3、通道数量多:在对一个产品进行功耗检测时,不仅需要关注整机的功耗表现,更要关心各种负载的功耗表现,通过详细的功耗拆分能够掌握整机的功耗分布,继而寻找合适的优化策略,达到增加续航的目的。4、需要记录V-I-P(电压-电流-功率)特性曲线:工作电流和电压变化最好能按照实际需要记录下来,以方便硬件及软件排错(debug),或者分析研究。Low power consumption is a key performance indicator for devices such as mobile phones, personal computers (PCs), and tablets. The characteristics of the low power consumption test mainly include the following four points: 1. The current is small: the battery with a small capacity needs to compare the power consumption in order to achieve a long battery life, which requires that the equipment used for the power consumption test has enough small current Resolving power, uA (microampere) is the basic requirement. 2. Large dynamic range: when many products are in sleep, the current can reach the uA level, but once woken up, the current will quickly rise to tens of mA (milliampere) or even A (ampere) level, which needs to be used for power consumption testing The device can accommodate transient changes in current from close to 0 to several A, and can maintain sufficient accuracy. 3. Large number of channels: When testing the power consumption of a product, it is not only necessary to pay attention to the power consumption performance of the whole machine, but also to pay attention to the power consumption performance of various loads. Through detailed power consumption splitting, the power consumption of the whole machine can be grasped. consumption distribution, and then find a suitable optimization strategy to achieve the purpose of increasing battery life. 4. It is necessary to record the V-I-P (voltage-current-power) characteristic curve: it is best to record the operating current and voltage changes according to actual needs, so as to facilitate hardware and software debugging (debug), or analysis and research.

考虑上述四点需求,本申请实施例提供了一种支持多通道、高精度检测和数值记录的功耗检测方案。本申请实施例提供的功耗检测方案可以应用于在产品研发阶段对正在研发的产品进行功耗检测,也可以应用于对已发布的产品进行功耗检测,本申请实施例对此不作限定。Considering the above four requirements, the embodiment of the present application provides a power consumption detection solution that supports multi-channel, high-precision detection and value recording. The power consumption detection solution provided in the embodiment of the present application can be applied to detect the power consumption of the product under development in the product development stage, and can also be applied to the power consumption detection of the released product, which is not limited in the embodiment of the present application.

本申请实施例提供的功耗检测方案可以通过采集器件、校准器件和电子设备实现。The power consumption detection solution provided in the embodiment of the present application can be implemented by means of acquisition devices, calibration devices and electronic devices.

下面对本申请实施例提供的采集器件进行详细地解释说明。The acquisition device provided by the embodiment of the present application is explained in detail below.

图1是本申请实施例提供的一种采集器件100的结构示意图。参见图1,采集器件100包括第一处理单元102和n个检测通道101。n为大于或等于2的整数,比如,n可以为50。需说明的是,图1中仅是以采集器件100包括大于或等于4个检测通道101为例进行示例性示意,图1并不对采集器件100包括的检测通道101的数量构成限定,实际应用中,采集器件100可以包括两个或两个以上的检测通道101。FIG. 1 is a schematic structural diagram of an acquisition device 100 provided by an embodiment of the present application. Referring to FIG. 1 , an acquisition device 100 includes 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, the collection device 100 includes more than or equal to 4 detection channels 101 as an example, and FIG. 1 does not limit the number of detection channels 101 included in the collection device 100. In practical applications, , the collection device 100 may include two or more detection channels 101 .

n个检测通道101用于与目标对象200中的n个负载C一一连接,以检测n个负载C中每个负载C的电流值和电压值。第一处理单元102的n个采集端一一与n个检测通道101连接,以获取n个检测通道101中的每个检测通道101检测到的电流值和电压值。The n detection channels 101 are used to connect with n loads C in the target object 200 one by one, so as to detect the current value and voltage value of each load C in the n loads C. The n acquisition terminals of the first processing unit 102 are connected to the n detection channels 101 one by one, so as to obtain the current value and the voltage value detected by each detection channel 101 in the n detection channels 101 .

目标对象200是需要进行功耗检测的对象。目标对象200可以是各种设备,如可以是手机、平板电脑、可穿戴设备、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personalcomputer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等,本申请实施例对此不作限定。The target object 200 is an object that requires power consumption detection. 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 (virtual reality, VR) device, a notebook computer, an ultra mobile personal computer (ultra -mobile personalcomputer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), etc., which are not limited in this embodiment of the present application.

该n个负载C可以包括各种类型的负载。比如,该n个负载C可以包括中央处理器(central processing unit,CPU)、图形处理器(graphics processing unit,GPU)、基带处理器、内部存储器、外部存储器、显示屏、摄像头、扬声器、通信模块、电压变换单元、传感器(sensor)等,本申请实施例对此不作限定。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 processing unit (graphics processing unit, GPU), a baseband processor, an internal memory, an external memory, a display screen, a camera, a speaker, and a communication module , a voltage conversion unit, a sensor (sensor), etc., which are not limited in this embodiment of the present application.

可选地,参见图2,目标对象200包括n个目标模块201,每个目标模块201包括电源V、第一电阻R1和负载C,第一电阻R1的第一端与电源V的正极连接,第一电阻R1的第二端与负载C的第一端连接,负载C的第二端与电源V的负极以及地线GND连接,由于第一电阻R1与负载C串联,所以第一电阻R1的电流即为负载C的电流。这种情况下,n个目标模块201与n个检测通道101一一对应,n个检测通道101中的每个检测通道101连接在对应的目标模块201中的第一电阻R1的两端。n个检测通道101中任意的一个检测通道101可以检测第一电阻R1的电流(即负载C的电流)以及检测负载C的电压。Optionally, referring to FIG. 2, the target object 200 includes n target modules 201, each target module 201 includes a power supply V, a first resistor R1 and a load C, and the first end of the first resistor R1 is connected to the positive pole of the power supply V, The second end of the first resistor R1 is connected to the first end of the load C, and the second end of the load C is connected to the negative pole of the power supply V and the ground wire GND. Since the first resistor R1 is connected in series with the load C, the first resistor R1 The current is the current of the load C. In this case, n target modules 201 correspond to n detection channels 101 one by one, and each detection channel 101 in the n detection channels 101 is connected to both ends of the first resistor R1 in the corresponding target module 201 . Any one of the n detection channels 101 can detect the current of the first resistor R1 (ie, the current of the load C) and the voltage of the load C.

示例地,检测通道101也可称为功率检测器。n个检测通道101中任意的一个检测通道101可以包括电流检测通道、电压检测通道和模拟数字转换器(analog-to-digitalconverter,ADC)采集模块。电流检测通道用于检测负载C的电流,且将检测到的模拟电流传输给ADC采集模块,ADC采集模块可以将该模拟电流转换为数字电流(即上述电流值),转换为的电流值存储在ADC采集模块中的寄存器中。电压检测通道用于检测负载C的电压,且将检测到的模拟电压传输给ADC采集模块,ADC采集模块可以将该模拟电压转换为数字电压(即上述电压值),转换为的电压值存储在ADC采集模块中的寄存器中。这种情况下,第一处理单元102可以从n个检测通道101中的每个检测通道101中的ADC采集模块中的寄存器中读取电压值和电流值。Exemplarily, the detection channel 101 may also be called 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 (analog-to-digital converter, ADC) acquisition module. The current detection channel is used to detect the current of the load C, and transmit the detected analog current to the ADC acquisition module. The ADC acquisition module can convert the analog current into a digital current (that is, the above current value), and the converted current value is stored in In the register in the ADC acquisition module. The voltage detection channel is used to detect the voltage of the load C, and transmit the detected analog voltage to the ADC acquisition module. The ADC acquisition module can convert the analog voltage into a digital voltage (that is, the above voltage value), and the converted voltage value is stored in In the register in the ADC acquisition module. In this case, the first processing unit 102 can read the voltage value and the current value from the register in the ADC acquisition module in each of the n detection channels 101 .

需说明的是,本申请实施例中的ADC采集模块可以选用高比特的ADC采集模块,高比特的ADC采集模块可以保证对于快速信号的时间分辨率和精度,从而可以准确捕获微小信号,如此,可以保证对小电流的分辨能力。另外,本申请实施例中的ADC采集模块可以选用动态范围较大的ADC采集模块,如此可以适应电流较大的瞬态变化,继而保证足够的精度。示例地,本申请实施例中通过对ADC采集模块的选型,可以保证电流测量精度在0.5mA的1%(即5uA),保证电压测量精度在0.5V的1%(即5mV)。It should be noted that the ADC acquisition module in the embodiment of the present application can be a high-bit ADC acquisition module, and the high-bit ADC acquisition module can ensure the time resolution and accuracy of fast signals, thereby accurately capturing tiny signals. In this way, It can guarantee the ability to distinguish small currents. In addition, the ADC acquisition module in the embodiment of the present application may choose an ADC acquisition module with a larger dynamic range, so that it can adapt to a large transient change of current, and then ensure sufficient accuracy. For example, in the embodiment of the present application, through the selection of the ADC acquisition module, the current measurement accuracy can be guaranteed to be 1% of 0.5mA (ie 5uA), and the voltage measurement accuracy can be guaranteed to be 1% of 0.5V (ie 5mV).

第一处理单元102获取n个检测通道101中的每个检测通道101检测到的电流值和电压值,即是获取与n个检测通道101一一对应的n组电流电压数据,每组电流电压数据包括对应的一个检测通道101检测到的电流值和电压值,也即,每组电流电压数据包括对应的一个检测通道101所检测的负载C的电流值和电压值。第一处理单元102用于处理电流电压数据。比如,第一处理单元102可以是现场可编程门阵列(field-programmable gate array,FPGA)器件,当然,第一处理单元102也可以是其他能够实现电流电压数据处理的器件,本申请实施例对此不作限定。需说明的是,在第一处理单元102为FPGA的情况下,采集器件100采用的是FPGA的并行采集方案,因而可以保证采样率不随通道数量的增多而下降,示例地,通道采样率可以为7ksps(kilo samples per second,采样千次每秒)。The first processing unit 102 obtains the current value and voltage value detected by each detection channel 101 in the n detection channels 101, that is, obtains n sets of current and voltage data corresponding to the n detection channels 101 one-to-one, and each set of current and voltage The data includes a current value and a voltage value detected by a corresponding detection channel 101 , that is, each set of current and voltage data includes a current value and a voltage value of the load C detected by a corresponding detection channel 101 . The first processing unit 102 is used for processing current and voltage data. For example, the first processing unit 102 may be a field-programmable gate array (FPGA) device, and of course, the first processing unit 102 may also be other devices capable of processing current and voltage data. This is not limited. 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, thereby ensuring that the sampling rate does not decrease as the number of channels increases. For example, the channel sampling rate can be 7ksps (kilo samples per second, thousands of samples per second).

示例地,第一处理单元102的n个采集端中任意的一个采集端可以是集成电路(inter-integrated circuit,I2C)接口。第一处理单元102可以通过I2C接口从检测通道101中读取电压值和电流值。当然,第一处理单元102的采集端也可以为其他接口,只要其能实现从检测通道101中读取电压值和电流值即可。For example, any one of the n collection terminals of the first processing unit 102 may be an integrated circuit (inter-integrated circuit, I2C) interface. The first processing unit 102 can read the voltage value and current value from the detection channel 101 through the I2C interface. Of course, the acquisition end of the first processing unit 102 can also be other interfaces, as long as it can realize reading the voltage value and current value from the detection channel 101 .

在本申请实施例中,采集器件100可以采集目标对象200中的n个负载C中每个负载C的电流值和电压值,也即,采集器件100可以对目标对象200进行多通道的电流电压数据采集,后续据此可以实现对目标对象200的整体功耗和各个负载C功耗的确认,可以使得功耗检测更加准确灵活。如此,通过详细的功耗拆分可以使得技术人员能够掌握整机的功耗分布,从而可以寻找到合适的优化策略,达到增加续航的目的。In the embodiment of the present application, the collection device 100 can collect the current value and voltage value of each load C in the n loads C in the target object 200, that is, the collection device 100 can perform multi-channel current and voltage on the target object 200 Based on the data collection, the overall power consumption of the target object 200 and the power consumption of each load C can be confirmed subsequently, which can make the power consumption detection more accurate and flexible. In this way, through detailed power consumption splitting, technicians can grasp the power consumption distribution of the whole machine, so that they can find a suitable optimization strategy to achieve the purpose of increasing battery life.

目标对象200的整体功耗为目标对象200中n个负载C的功耗之和。示例地,任意一个负载C的功耗可以为这个负载C的功率,也即,可以将这个负载C的电流值乘以电压值,得到这个负载C的功耗。或者,任意一个负载C的功耗可以为这个负载C在预设时长(如10秒、30秒或60秒)内所用电能,也即,可以将这个负载C的电流值乘以电压值后再乘以预设时长,得到这个负载C的功耗。The overall power consumption of the target object 200 is the sum of the power consumption of n loads C in the target object 200 . For example, the power consumption of any load C may be the power of the load C, that is, the power consumption of the load C may be obtained by multiplying the current value of the load C by the voltage value. Alternatively, the power consumption of any load C can be the electric energy used by the load C within a preset time period (such as 10 seconds, 30 seconds or 60 seconds), that is, the current value of the load C can be multiplied by the voltage value and then Multiply by the preset duration to get the power consumption of this load C.

需说明的是,在需要使用采集器件100进行功耗检测时,可以将采集器件100与目标对象200进行连接。采集器件100与目标对象200连接后,采集器件100中的n个检测通道101即与目标对象200中的n个负载C一一连接,如此,采集器件100可以检测到目标对象200中的n个负载C中每个负载C的电流值和电压值。示例地,如图3所示,采集器件100与目标对象200可以通过BTB连接器(也可称为板对板连接器)进行连接,当然,采集器件100与目标对象200也可以通过其他连接器进行连接,本申请实施例对此不作限定。It should be noted that, when the acquisition device 100 needs to be used for power consumption detection, the acquisition device 100 can be connected with the target object 200 . After the acquisition device 100 is connected to the target object 200, the n detection channels 101 in the acquisition device 100 are connected to the n loads C in the target object 200 one by one, so that the acquisition device 100 can detect n loads C in the target object 200 The current value and voltage value of each load C in the load C. For example, as shown in FIG. 3, the acquisition device 100 and the target object 200 can be connected through a BTB connector (also called a board-to-board connector). Of course, the acquisition device 100 and the target object 200 can also be connected through other connectors The connection is performed, which is not limited in this embodiment of the present application.

可选地,第一处理单元102可以实现对n个检测通道101中每个检测通道101的配置,如可实现各个检测通道101的采样率配置、采样电阻参数配置等功能。示例地,第一处理单元102可以获取通道配置参数,然后根据该通道配置参数对各个检测通道101进行配置,具体可以将该通道配置参数发送给各个检测通道101,以便各个检测通道101据此进行配置,如配置采样率、采样电阻参数等。可选地,该通道配置参数可以是由其他设备发送给第一处理单元102的,可选地,该通道配置参数可以由技术人员预先设置。Optionally, the first processing unit 102 can configure each detection channel 101 among the n detection channels 101 , for example, it can implement functions such as sampling rate configuration and sampling resistance parameter configuration of each detection channel 101 . For example, the first processing unit 102 may obtain channel configuration parameters, and then configure each detection channel 101 according to the channel configuration parameters, specifically, the channel configuration parameters may be sent to each detection channel 101, so that each detection channel 101 performs Configuration, such as configuring sampling rate, sampling resistance parameters, etc. Optionally, the channel configuration parameter may be sent to the first processing unit 102 by other devices, and optionally, the channel configuration parameter may be preset by a technician.

在一些实施例中,参见图4,第一处理单元102获取到n组电流电压数据后,可以将该n组电流电压数据发送给电子设备300。可选地,参见图4,采集器件100中包括接口芯片103,第一处理单元102可以将该n组电流电压数据通过接口芯片103发送给电子设备300,示例地,接口芯片103可以为通用串行总线(universal serial bus,USB)接口芯片(integrated circuit,IC),如可以为USB2.0接口芯片。进一步地,参见图4,采集器件100还可以包括传输接口104(包括但不限于Type-c接口),第一处理单元102可以将该n组电流电压数据通过接口芯片103和传输接口104发送给电子设备300。In some embodiments, referring to FIG. 4 , after acquiring n sets of current and voltage data, the first processing unit 102 may send the n sets of current and voltage data to the electronic device 300 . Optionally, referring to FIG. 4 , the acquisition device 100 includes an interface chip 103, and the first processing unit 102 can send the n sets of current and voltage data to the electronic device 300 through the interface chip 103. For example, the interface chip 103 can be a universal serial A universal serial bus (universal serial bus, USB) interface chip (integrated circuit, IC), such as a USB2.0 interface chip. Further, referring to FIG. 4 , the acquisition device 100 may also 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 and voltage data to the electronic device 300 .

电子设备300为上位机,可以根据电流电压数据确定相应的功耗。比如,电子设备300接收到采集器件100发送的n组电流电压数据后,可以根据该n组电流电压数据实现对目标对象200的整体功耗和目标对象200中各个负载C的功耗的确认。The electronic device 300 is a host computer, which can determine the corresponding power consumption according to the current and voltage data. For example, after receiving n sets of current and voltage data sent by the collection device 100 , the electronic device 300 can confirm 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 and voltage data.

可选地,参见图5,电子设备300中可以安装有驱动软件和界面软件。其中,驱动软件在获得采集器件100发送的n组电流电压数据后,可以对该n组电流电压数据进行数据处理,如可以对该n组电流电压数据进行滤波处理、校准处理、功耗确认、或其他扩展处理等,本申请实施例对此不作限定。驱动软件在对该n组电流电压数据进行数据处理后,可以将数据处理结果上报给界面软件。界面软件可以根据该数据处理结果进行数据显示,比如,界面软件可以显示V-I-P特性曲线,以便技术人员可以及时获知电压、电流及功率的变化。在一些实施例中,界面软件还可以对该数据处理结果进行相关的数学计算,比如,可以对V-I-P特性曲线求均值等。可选地,界面软件还可以具有功能按钮,该功能按钮可以用于实现缩放等操作,比如,可以对显示的V-I-P特性曲线进行放大或缩小。如此,可以便于技术人员根据驱动软件的数据处理结果和界面软件的数据显示情况进行硬件及软件排错、分析研究等。Optionally, referring to FIG. 5 , driver software and interface software may be installed in the electronic device 300 . Wherein, after the driver software obtains the n sets of current and voltage data sent by the acquisition device 100, it can perform data processing on the n sets of current and voltage data, such as filter processing, calibration processing, power consumption confirmation, or other extended processing, etc., which are not limited in this embodiment of the present application. After the driving software performs data processing on the n sets of current and voltage data, it can report the data processing results to the interface software. The interface software can display the data according to the data processing results. For example, the interface software can display the V-I-P characteristic curve, so that technicians can know the changes of voltage, current and power in time. In some embodiments, the interface software can also perform relevant mathematical calculations on the data processing results, for example, can calculate the average value of the V-I-P characteristic curve and the like. Optionally, the interface software can also have function buttons, which can be used to implement operations such as zooming, for example, the displayed V-I-P characteristic curve can be zoomed in or out. In this way, it is convenient for technicians to perform hardware and software troubleshooting, analysis and research according to the data processing results of the driver software and the data display of the interface software.

可选地,驱动软件还可以设置采集器件100中各个检测通道101的通道配置参数,并将该通道配置参数发送给采集器件100中的第一处理单元102,由第一处理单元102根据该通道配置参数对各个检测通道101进行配置。Optionally, the driver software can also set the channel configuration parameters of each detection channel 101 in the acquisition device 100, and send the channel configuration parameters to the first processing unit 102 in the acquisition device 100, and the first processing unit 102 can use the The configuration parameters configure each detection channel 101 .

需说明的是,因制造原因,大部分元器件生产出来都有误差,比如,检测通道101的理论值和检测值之间会存在偏差。这种情况下,为了提高采集器件100的检测精度,可以对检测通道101检测到的电流值和电压值进行校准。具体地,参见图1至图5,采集器件100还可以包括存储器105,存储器105中存储有与n个检测通道101一一对应的n组校准参数,n组校准参数中的每组校准参数包括电流校准参数和电压校准参数。对于n个检测通道101中任意的一个检测通道101,第一处理单元102在获取到这个检测通道101检测到的电流值和电压值后,可以从存储器105中获取这个检测通道101对应的一组校准参数,然后使用这组校准参数中的电流校准参数对这个检测通道101检测到的电流值进行校准,以及使用这组校准参数中的电压校准参数对这个检测通道101检测到的电压值进行校准,将校准后的电流值和电压值作为一组电流电压数据发送给电子设备300。如此,可以保证高精度检测。It should be noted that due to manufacturing reasons, most components are produced with errors, for example, there may be deviations between the theoretical value and the detected value of the detection channel 101 . In this case, in order to improve the detection accuracy of the acquisition device 100 , the current value and voltage value detected by the detection channel 101 may be calibrated. Specifically, referring to FIG. 1 to FIG. 5 , the acquisition device 100 may also include a memory 105, and the memory 105 stores n sets of calibration parameters corresponding to the n detection channels 101 one-to-one, and each set of calibration parameters in the n sets of calibration parameters includes Current calibration parameters and voltage calibration parameters. For any detection channel 101 among the n detection channels 101, after the first processing unit 102 obtains the current value and voltage value detected by the detection channel 101, it can obtain a group of corresponding detection channels 101 from the memory 105 calibration parameters, and then use the current calibration parameters in this set of calibration parameters to calibrate the current value detected by the detection channel 101, and use the voltage calibration parameters in this set of calibration parameters to calibrate the voltage value detected by the detection channel 101 , sending the calibrated current value and voltage value to the electronic device 300 as a set of current and voltage data. In this way, high-precision detection can be ensured.

示例地,存储器105可以为flash存储器(也可称为闪存),当然,存储器105也可以为其他类型的存储器,本申请实施例对此不作限定。可选地,存储器105与第一处理单元102之间可以通过串行外设接口(serial peripheral interface,SPI)进行数据传输,当然,存储器105与第一处理单元102之间也可以通过其他接口进行数据传输,本申请实施例对此不作限定。For example, the memory 105 may be a flash memory (also called a flash memory), and of course, the memory 105 may also be other types of memory, which is not limited in this embodiment of the present application. Optionally, data transmission may be performed between the memory 105 and the first processing unit 102 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 Data transmission is not limited in this embodiment of the application.

需说明的是,在使用采集器件100对目标对象200进行功耗检测之前,还可以先使用校准器件对采集器件100进行校准,以得到上述n组校准参数。It should be noted that before using the acquisition device 100 to detect the power consumption of the target object 200 , the calibration device 100 may also be calibrated first to obtain the above n sets of calibration parameters.

下面对校准器件进行详细地解释说明。The calibration device is explained in detail below.

图6是本申请实施例提供的一种校准器件400的结构示意图。参见图6,校准器件400可以包括电压输出模块401和至少一个校准模块402。需说明的是,图6中仅是以校准器件400包括4个校准模块402为例进行示例性示意,图6并不对校准器件400包括的校准模块402的数量构成限定,实际应用中,校准器件400可以包括一个或多个校准模块402。FIG. 6 is a schematic structural diagram of a calibration device 400 provided by 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 in FIG. 6, the calibration device 400 includes four calibration modules 402 as an example for illustrative purposes. FIG. 6 does not limit the number of calibration modules 402 included in the calibration device 400. In practical applications, the calibration device 400 may include one or more calibration modules 402 .

电压输出模块401的输出端与至少一个校准模块402中每个校准模块402的输入端连接,至少一个校准模块402中每个校准模块402的输出端用于与采集器件100连接。具体地,至少一个校准模块402中任意的一个校准模块402与采集器件100中n个检测通道101中的至少一个检测通道101连接,这种情况下,该至少一个检测通道101中的每个检测通道101用于检测这个校准模块402,得到目标电流值和目标电压值。The output terminal of the voltage output module 401 is connected to the input terminal of each calibration module 402 in the at least one calibration module 402 , and the output terminal of each calibration module 402 in the at least one calibration module 402 is used to connect with the acquisition device 100 . Specifically, any calibration module 402 in at least one calibration module 402 is connected to at least one detection channel 101 among the n detection channels 101 in the acquisition device 100. In this case, each detection channel 101 in the at least one detection channel 101 The channel 101 is used to detect the calibration module 402 to obtain the target current value and target voltage value.

电压输出模块401用于向至少一个校准模块402中的每个校准模块402输出第一电压。至少一个校准模块402中的每个校准模块402用于模拟目标对象200中的目标模块201,至少一个校准模块402中的每个校准模块402在输入第一电压的情况下向所连接的检测通道101输出第二电压和第三电压。n个检测通道101中的每个检测通道101用于根据所连接的校准模块402输入的第二电压检测目标电流值以及根据所连接的校准模块402输入的第三电压检测目标电压值。可选地,第二电压为双极性差分电压,第三电压为共模电压。The voltage output module 401 is used for outputting the first voltage to each calibration module 402 in at least one calibration module 402 . Each calibration module 402 in the at least one calibration module 402 is used to simulate the target module 201 in the target object 200, and each calibration module 402 in the at least one calibration module 402 supplies the connected detection channel with the input of the first voltage 101 outputs the second voltage and the third voltage. Each detection channel 101 in the n detection channels 101 is used to detect the target current value according to the second voltage input from the connected calibration module 402 and detect the target voltage value according to the third voltage input from the connected calibration module 402 . Optionally, the second voltage is a bipolar differential voltage, and the third voltage is a common-mode voltage.

由于至少一个校准模块402中每个校准模块402的电路结构是预知的,所以在电压输出模块401向至少一个校准模块402中的每个校准模块402输出第一电压的情况下,可事先获知至少一个校准模块402中的每个校准模块402预期被所连接的检测通道101检测到的理论电流值和理论电压值。对于n个检测通道101中任意的一个检测通道101,这个检测通道101在检测所连接的校准模块402后实际得到的是目标电流值和目标电压值。这种情况下,根据这个检测通道101所连接的校准模块402对应的理论电流值和这个检测通道101实际检测到的目标电流值,可以确定出这个检测通道101对应的电流校准参数,并且,根据这个检测通道101所连接的校准模块402对应的理论电压值和这个检测通道101实际检测到的目标电压值,可以确定出这个检测通道101对应的电压校准参数,如此,就得到了这个检测通道101对应的一组校准参数。这个检测通道101对应的一组校准参数用于将这个检测通道101实际的检测值校准为理论值,也即,这个检测通道101对应的电流校准参数用于将这个检测通道101实际检测到的电流值校准至接近或等于理论电流值,将这个检测通道101实际检测到的电压值校准至接近或等于理论电压值。由于校准后的检测值接近或等于理论值,所以可以有效提高采集器件100的检测精度。Since the circuit structure of each calibration module 402 in the at least one calibration module 402 is known in advance, so in the case that the voltage output module 401 outputs the first voltage to each calibration module 402 in the at least one calibration module 402, it can be known in advance that at least Each calibration module 402 in one calibration module 402 is expected to detect a theoretical current value and a theoretical voltage value detected by the connected detection channel 101 . For any detection channel 101 among the n detection channels 101 , what this detection channel 101 actually obtains after detecting the connected calibration module 402 is a target current value and a target voltage value. In this case, the current calibration parameters corresponding to the detection channel 101 can be determined 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, 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 can determine the voltage calibration parameters corresponding to the detection channel 101, so that the detection channel 101 is obtained The corresponding set of calibration parameters. A 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, that is, the current calibration parameters corresponding to the detection channel 101 are used to calibrate the current actually detected by the detection channel 101 The value is calibrated to be close to or equal to the theoretical current value, and the actual detected voltage value of the detection channel 101 is calibrated 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.

可选地,参见图7,电压输出模块401可以包括基准电压源4011、第二处理单元4012和数字模拟转换器(Digital to analog converter,DAC)4013,基准电压源4011的两个输出端一一与DAC 4013的两个基准电压端连接,第二处理单元4012的输出端与DAC 4013的输入端连接,DAC 4013的输出端与至少一个校准模块402中每个校准模块402的输入端连接。Optionally, 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, and the two output terminals of the reference voltage source 4011 are It is connected to the two reference voltage terminals of the DAC 4013 , the output terminal of the second processing unit 4012 is connected to the input terminal of the DAC 4013 , and the output terminal of the DAC 4013 is connected to the input terminal of each calibration module 402 in at least one calibration module 402 .

基准电压源4011是用于输出两个基准电压的电源。这两个基准电压中的一个基准电压为预设电压范围的最大值,另一个基准电压为预设电压范围的最小值。比如,预设电压范围为-5伏至5伏,则这两个基准电压中的一个基准电压为-5伏,另一个基准电压为5伏。The reference voltage source 4011 is a power supply 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 volts to 5 volts, then one of the two reference voltages is -5 volts, and the other reference voltage is 5 volts.

第二处理单元4012是用于输出数字电压的器件。比如,第二处理单元4012可以为微控制单元(micro controller unit,MCU),当然,第二处理单元4012也可以为其他能够输出数字电压的器件,本申请实施例对此不作限定。可选地,第二处理单元4012可以接收电子设备300发送的校准指令,然后根据该校准指令向DAC 4013输出数字电压。其中,该校准指令用于指示第二处理单元4012对采集器件100进行校准。该校准指令可以由电子设备300自动触发,也可以由技术人员在电子设备300中手动触发,本申请实施例对此不作限定。The second processing unit 4012 is a device for outputting a digital voltage. For example, the second processing unit 4012 may be a micro controller unit (micro controller unit, MCU). Of course, the second processing unit 4012 may also be other devices capable of outputting digital voltages, which is not limited in this embodiment of the present application. Optionally, the second processing unit 4012 may receive a calibration instruction sent by the electronic device 300, and then output a digital voltage to the DAC 4013 according to the calibration instruction. Wherein, the calibration instruction is used to instruct the second processing unit 4012 to calibrate the acquisition device 100 . The calibration instruction may be automatically triggered by the electronic device 300, or manually triggered by a technician in the electronic device 300, which is not limited in this embodiment of the present application.

在需要对采集器件100进行校准时,第二处理单元4012可以向DAC 4013输出第一电压的数字量(即数字电压)。DAC 4013可以根据基准电压源4011输入的两个基准电压将该数字电压转换为模拟电压(即第一电压的模拟量),该模拟电压处于预设电压范围内。之后,DAC 4013可以将该模拟电压输出给至少一个校准模块402中的每个校准模块402。When the acquisition device 100 needs to be calibrated, the second processing unit 4012 can output the digital quantity of the first voltage (ie, the digital voltage) to the DAC 4013 . The DAC 4013 can convert the digital voltage into an analog voltage (that is, the analog value of the first voltage) according to the two reference voltages input by the reference voltage source 4011, and the analog voltage is within a preset voltage range. Afterwards, the DAC 4013 can output the analog voltage to each calibration module 402 in the at least one calibration module 402 .

示例地,本申请实施例中的DAC 4013可以为高精度DAC,如此,在基准电压源4011输出的两个基准电压的作用下,DAC 4013可以稳定且精确的输出所需的电压。For example, the DAC 4013 in the embodiment of the present application can be a high-precision DAC, so that under the action of the two reference voltages output by the reference voltage source 4011, the DAC 4013 can output the required voltage stably and accurately.

进一步地,参见图8,电压输出模块401还可以包括两个第一电压跟随器A1,其中一个第一电压跟随器A1连接在基准电压源4011的一个输出端与DAC 4013的一个基准电压端之间,另一个第一电压跟随器A1连接在基准电压源4011的另一个输出端与DAC 4013的另一个基准电压端之间。由于电压跟随器输入阻抗近似无穷大、输出阻抗极小,所以可以起到隔离缓冲的作用,因而这两个第一电压跟随器A1可以使得基准电压源4011输出至DAC 4013的两个基准电压更为稳定。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 an output terminal of the reference voltage source 4011 and a reference voltage terminal of the DAC 4013 Between, another first voltage follower A1 is connected between the other output end of the reference voltage source 4011 and the other reference voltage end of the DAC 4013 . Since the input impedance of the voltage follower is approximately infinite and the output impedance is extremely small, it can function as an isolation buffer. Therefore, the two first voltage followers A1 can make the two reference voltages output from the reference voltage source 4011 to the DAC 4013 more efficient. Stablize.

示例地,第二处理单元4012与DAC 4013之间可以通过SPI进行数据传输,当然,第二处理单元4012与DAC 4013之间也可以通过其他接口进行数据传输,本申请实施例对此不作限定。For example, data transmission between the second processing unit 4012 and the DAC 4013 can be performed through SPI. Of course, data transmission between the second processing unit 4012 and the DAC 4013 can also be performed through other interfaces, which is not limited in this embodiment of the present application.

可选地,参见图9,至少一个校准模块402中任意的一个校准模块402可以包括第二电阻R2和第三电阻R3,第二电阻R2的第一端与电压输出模块401的输出端连接,第二电阻R2的第二端与第三电阻R3的第一端连接,第三电阻R3的第二端与地线GND连接。第二电阻R2用于模拟目标对象200中的目标模块201中的第一电阻R1,第三电阻R3用于模拟目标对象200中的目标模块201中的负载C。第二电阻R2的两端用于与采集器件100中n个检测通道101中的至少一个检测通道101中的每个检测通道101连接。这种情况下,第二电阻R2的电压为上述的第二电压,第二电阻R2的电压为双极性差分电压,第三电阻R3的电压为上述的第三电压,第三电阻R3的电压为共模电压,第二电阻R2的阻值和第三电阻R3的阻值是已知的。由于第二电阻R2的阻值和第三电阻R3的阻值是已知的,所以在预知电压输出模块401向第二电阻R2输出的第一电压的情况下,可预知第二电阻R2的真实电流值(即理论电流值)和第三电阻R3的真实电压值(即理论电压值),也就预知了n个检测通道101中每个检测通道101对应的理论电流值和理论电压值。Optionally, referring to FIG. 9, any calibration module 402 in at least one calibration module 402 may include a second resistor R2 and a third resistor R3, the first end of the second resistor R2 is connected to the output end of the voltage output module 401, The second end of the second resistor R2 is connected to the first end of the third resistor R3, and the second end of the third resistor R3 is connected to the ground line 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 . Both ends of the second resistor R2 are used to connect to each detection channel 101 of at least one detection channel 101 among the n detection channels 101 in the acquisition device 100 . In this case, the voltage of the second resistor R2 is the above-mentioned second voltage, the voltage of the second resistor R2 is a bipolar differential voltage, the voltage of the third resistor R3 is the above-mentioned third voltage, and the voltage of the third resistor R3 is the common mode voltage, the resistance values of the second resistor R2 and 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 of predicting the first voltage output by the voltage output module 401 to the second resistor R2, the actual value of the second resistor R2 can be predicted. The current value (ie theoretical current value) and the real voltage value (ie theoretical voltage value) of the third resistor R3 predict the theoretical current value and theoretical voltage value corresponding to each detection channel 101 in the n detection channels 101 .

连接在第二电阻R2的两端的检测通道101可以检测第二电阻R2的电流值(即第三电阻R3的电流值)和第三电阻R3的电压值。示例地,n个检测通道101中任意的一个检测通道101包括电流检测通道、电压检测通道和ADC采集模块。电流检测通道用于检测第三电阻R3的电流,将检测到的模拟电流传输给ADC采集模块,ADC采集模块可以将该模拟电流转换为数字电流(即上述目标电流值),转换为的目标电流值存储在ADC采集模块中的寄存器中。电压检测通道用于检测第三电阻R3的电压,将检测到的模拟电压传输给ADC采集模块,ADC采集模块可以将该模拟电压转换为数字电压(即上述目标电压值),转换为的目标电压值存储在ADC采集模块中的寄存器中。这种情况下,第一处理单元102可以从这个检测通道101中的ADC采集模块中的寄存器中读取目标电压值和目标电流值。The detection channel 101 connected to both ends of the second resistor R2 can detect the current value of the second resistor R2 (ie the current value of the third resistor R3 ) and the voltage value of the third resistor R3 . Exemplarily, 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 to detect the current of the third resistor R3, and transmit the detected analog current to the ADC acquisition module. The ADC acquisition module can convert the analog current into a digital current (that is, the above-mentioned target current value), and convert it into the target current Values are stored in registers in the ADC acquisition module. The voltage detection channel is used to detect the voltage of the third resistor R3, and transmit the detected analog voltage to the ADC acquisition module. The ADC acquisition module can convert the analog voltage into a digital voltage (that is, the above-mentioned target voltage value), and convert it into the target voltage Values are stored in registers in the ADC acquisition module. In this case, the first processing unit 102 can read the target voltage value and target current value from the register in the ADC acquisition module in the detection channel 101 .

进一步地,参见图10,至少一个校准模块402中任意的一个校准模块402还可以包括第二电压跟随器A2。第二电压跟随器A2连接在电压输出模块401的输出端与第二电阻R2的第一端之间,以保证电压输出模块401输出的第一电压的稳定性。Further, referring to FIG. 10 , any 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 terminal of the voltage output module 401 and the first terminal of the second resistor R2 to ensure the stability of the first voltage output by the voltage output module 401 .

可选地,参见图11,校准器件400还可以包括第三电压跟随器A3,第三电压跟随器A3连接在电压输出模块401的输出端与至少一个校准模块402中的每个校准模块402的输入端之间,以提高电压输出模块401的带载能力。Optionally, referring to FIG. 11 , the calibration device 400 may further include a third voltage follower A3, and the third voltage follower A3 is connected between the output terminal of the voltage output module 401 and each calibration module 402 in at least one calibration module 402 between the input terminals to improve the load capacity of the voltage output module 401.

示例地,校准器件400与采集器件100可以通过BTB连接器进行连接,当然,校准器件400与采集器件100也可以通过其他连接器进行连接,本申请实施例对此不作限定。For example, the calibration device 400 and the acquisition device 100 may be connected through a BTB connector. Of course, the calibration device 400 and the acquisition device 100 may also be connected through other connectors, which is not limited in this embodiment of the present application.

校准器件400与采集器件100连接后,校准器件400中的至少一个校准模块402中的每个校准模块402与采集器件100中的n个检测通道101中的至少一个检测通道101连接。在一些实施例中,将采集器件100中的n个检测通道101分为至少一组,至少一组检测通道101的组数与至少一个校准模块402的个数相同,至少一组检测通道101与至少一个校准模块402一一对应,校准器件400与采集器件100连接后,至少一个校准模块402中的每个校准模块402的输出端与对应的一组检测通道101中的每个检测通道101连接,至少一组检测通道101中的每组检测通道101中的每个检测通道101可以检测对应的一个校准模块402,得到目标电流值和目标电压值。After the calibration device 400 is connected to the collection device 100 , each calibration module 402 of 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 collection device 100 . In some embodiments, the n detection channels 101 in the acquisition device 100 are divided into at least one group, the number of 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 and At least one calibration module 402 is in one-to-one correspondence. After the calibration device 400 is connected to the acquisition device 100, the output terminal of each calibration module 402 in the at least one calibration module 402 is connected to each detection channel 101 in the corresponding group of detection channels 101 Each detection channel 101 in each group of detection channels 101 in at least one group of detection channels 101 can detect a corresponding calibration module 402 to obtain a target current value and a target voltage value.

需说明的是,校准器件400中的一个校准模块402具体能够与几个检测通道101连接,可以是技术人员事先试验得到的。比如,技术人员可以将校准器件400中的一个校准模块402与一些个数的检测通道101连接,在电压输出模块401向这个校准模块402输出第一电压的情况下,使用电压检测器件检测这个校准模块402输出的第二电压和第三电压;若第二电压与第三电压之和与第一电压之间的电压差小于或等于预设电压差,则确定这个校准模块402至少能够与这些个数的检测通道101连接,即这个校准模块402能够支持当前所连接的检测通道101的个数;若第二电压与第三电压之和与第一电压之间的电压差大于预设电压差,则确定这个校准模块402不能支持当前所连接的检测通道101的个数。其中,预设电压差可以是预先进行设置的,比如,预设电压差可以是根据第一电压设置的,如预设电压差可以为第一电压的千分之一。之后,技术人员可以根据这个校准模块402是否支持当前所连接的检测通道101的个数,来相应的增加或减少这个校准模块402所连接的检测通道101的个数,之后,继续控制电压输出模块401向这个校准模块402输出第一电压,在此情况下,再使用电压检测器件检测这个校准模块402输出的第二电压和第三电压,然后据此确定这个校准模块402是否能支持当前所连接的检测通道101的个数。如此,通过多次试验,可以得到这个校准模块402最多能够连接的检测通道101的个数。根据一个校准模块402最多能够连接的检测通道101的个数,可以将采集器件100中的n个检测通道101分为至少一组,每组检测通道101中检测通道101的个数小于或等于一个校准模块402最多能够连接的检测通道101的个数。It should be noted that one calibration module 402 in the calibration device 400 can specifically be connected to several detection channels 101 , which may be obtained through prior experiments by technicians. For example, technicians can connect a calibration module 402 in the calibration device 400 to some number of detection channels 101, and use the voltage detection device to detect the calibration when the voltage output module 401 outputs the first voltage to the calibration module 402. The second voltage and the third voltage output by the 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, then it is determined that the calibration module 402 can at least be compatible with these Number of detection channels 101 are connected, 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, Then it is determined that the calibration module 402 cannot support the number of detection channels 101 currently connected. Wherein, the preset voltage difference may be set in advance, 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. Afterwards, the technician can increase or decrease the number of detection channels 101 connected to the calibration module 402 accordingly according to whether the calibration module 402 supports the number of detection channels 101 currently connected, and then continue to control the voltage output module 401 outputs the first voltage to the calibration module 402. In this case, use a voltage detection device 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 currently connected The number of detection channels 101. In this way, through multiple tests, the maximum number of detection channels 101 that can be connected to the calibration module 402 can be obtained. According to the maximum number of detection channels 101 that can be connected to one calibration module 402, the n detection channels 101 in the acquisition device 100 can be divided into at least one group, and the number of detection channels 101 in each group of detection channels 101 is less than or equal to one The maximum number of detection channels 101 that can be connected to the calibration module 402 .

需说明的是,采集器件100的校准过程可以通过校准系统来完成。图12是本申请实施例提供的一种校准系统的示意图。参见图12,该校准系统可以包括校准器件400、采集器件100和电子设备300。在需要对采集器件100进行校准时,将校准器件400与采集器件100连接,采集器件100可与电子设备300进行通信。可选地,校准器件400也可与电子设备300进行通信。另外,由于校准器件400与采集器件100连接,所以校准器件400中的第二处理单元4012与采集器件100中的第一处理单元102也可进行通信。It should be noted that, the calibration process of the acquisition device 100 can be completed through a calibration system. Fig. 12 is a schematic diagram of a calibration system provided by 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 the acquisition device 100 needs to be calibrated, the calibration device 400 is connected to the acquisition device 100 , and the acquisition device 100 can communicate with the electronic device 300 . Optionally, the calibration device 400 can also communicate 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 and the first processing unit 102 in the acquisition device 100 can also communicate.

接下来结合图12所示的校准系统对采集器件100的校准过程进行说明:Next, the calibration process of the acquisition device 100 will be described in conjunction with the calibration system shown in FIG. 12 :

图13是本申请实施例提供的一种采集器件100的校准过程的示意图。参见图13,该校准过程可以包括如下步骤1301至步骤1310。FIG. 13 is a schematic diagram of a calibration process of an acquisition device 100 provided by an embodiment of the present application. Referring to FIG. 13 , the calibration process may include steps 1301 to 1310 as follows.

步骤1301:配置采集器件100中的n个检测通道。Step 1301 : configure n detection channels in the acquisition device 100 .

可选地,电子设备300向采集器件100中的第一处理单元102发送通道配置参数。第一处理单元102接收到该通道配置参数后,根据该通道配置参数对n个检测通道101中的每个检测通道101进行配置。在完成对n个检测通道101中的每个检测通道101的配置后,采集器件100即可进行正常工作。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 parameter, the first processing unit 102 configures each detection channel 101 in the n detection channels 101 according to the channel configuration parameter. After the configuration of each detection channel 101 among the n detection channels 101 is completed, the acquisition device 100 can work normally.

步骤1302:将校准器件400与采集器件100进行连接,以开始执行校准。Step 1302: Connect the calibration device 400 to the collection device 100 to start performing calibration.

步骤1303:电子设备300向校准器件400中的电压输出模块401发送校准指令。Step 1303 : the electronic device 300 sends a calibration instruction to the voltage output module 401 in the calibration device 400 .

可选地,电子设备300可与校准器件400直接通信。这种情况下,电子设备300可以直接向电压输出模块401发送校准指令。Optionally, the electronic device 300 can communicate directly with the calibration device 400 . In this case, the electronic device 300 may directly send a calibration instruction to the voltage output module 401 .

或者,电子设备300可以通过采集器件100中的第一处理单元102向电压输出模块401发送校准指令。示例地,电子设备300可以将校准指令发送给第一处理单元102,由第一处理单元102将校准指令发送给电压输出模块401中的第二处理单元4012。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 instruction to the first processing unit 102 , and the first processing unit 102 sends the calibration instruction to the second processing unit 4012 in the voltage output module 401 .

步骤1304:电压输出模块401接收到校准指令后,若确定当前接收到的校准指令为本次校准过程中的第一个校准指令,则将第一电压设置为预设电压范围的最小值,向至少一个校准模块402中的每个校准模块402输出第一电压。Step 1304: After the voltage output module 401 receives the calibration instruction, if it is determined that the currently received calibration instruction is the first calibration instruction in this calibration process, then set the first voltage to the minimum value of the preset voltage range, and send Each calibration module 402 of the at least one calibration module 402 outputs a first voltage.

校准器件400在与采集器件100连接后电压输出模块401即确定开始本次校准过程。本次校准过程中的第一个校准指令即是校准器件400在与采集器件100连接后电压输出模块401接收到的第一个校准指令。After the calibration device 400 is connected to the acquisition device 100 , the voltage output module 401 determines to start the calibration process. The first calibration instruction in this calibration process is the first calibration instruction received by the voltage output module 401 after the calibration device 400 is connected to the acquisition device 100 .

可选地,第二处理单元4012接收到校准指令后,若确定当前接收到的校准指令为本次校准过程中的第一个校准指令,则将第一电压设置为预设电压范围的最小值,向DAC4013输出第一电压的数字量,由DAC 4013将第一电压的数字量转换为模拟量后输出给至少一个校准模块402中的每个校准模块402。Optionally, after the second processing unit 4012 receives the calibration instruction, if it is determined that the currently received calibration instruction is the first calibration instruction in this calibration process, then the first voltage is set to the minimum value of the preset voltage range , output the digital quantity of the first voltage to the DAC4013, and the DAC4013 converts the digital quantity of the first voltage into an analog quantity and then outputs it to each calibration module 402 in the at least one calibration module 402.

这种情况下,至少一个校准模块402中的每个校准模块402会向所连接的检测通道101输出第二电压和第三电压。采集器件100中的n个检测通道101中的每个检测通道101即可检测所连接的检测通道101。In this case, each calibration module 402 of the at least one calibration module 402 outputs the second voltage and the third voltage to the connected detection channel 101 . Each of the n detection channels 101 in the acquisition device 100 can detect the connected detection channel 101 .

步骤1305:采集器件100中的n个检测通道101中的每个检测通道101检测目标电流值和目标电压值,第一处理单元102获取n个检测通道101中每个检测通道101检测到的目标电流值和目标电压值并发送给电子设备300。Step 1305: collect the target current value and target voltage value detected by each detection channel 101 in the n detection channels 101 in the device 100, and the first processing unit 102 obtains the target detected by each detection channel 101 in the n detection channels 101 The current value and the target voltage value are sent to the electronic device 300 .

需说明的是,电子设备300在本次校准过程中每向电压输出模块401发送一个校准指令后,可预知电压输出模块401输出的第一电压的大小,由于校准模块402的电路结构是预知的,所以在预知电压输出模块401向校准模块402输出的第一电压的大小的情况下,可预知校准模块402预期被检测到的理论电流值和理论电压值,也即,可预知n个检测通道101中每个检测通道101对应的理论电流值和理论电压值,理论电流值是期望检测通道101检测到的电流值,理论电压值是期望检测通道101检测到的电压值。It should be noted that, after the electronic device 300 sends a calibration instruction to the voltage output module 401 during this calibration process, the magnitude of the first voltage output by the voltage output module 401 can be predicted, because the circuit structure of the calibration module 402 is predictable , so when the magnitude of the first voltage output from the voltage output module 401 to the calibration module 402 is predicted, the theoretical current value and theoretical voltage value expected to be detected by the calibration module 402 can be predicted, that is, the n detection channels can be predicted The theoretical current value and theoretical voltage value corresponding to each detection channel 101 in 101, the theoretical current value is the current value detected by the detection channel 101, and the theoretical voltage value is the voltage value detected by the detection channel 101.

而当电子设备300接收到第一处理单元102发送的n个检测通道101中每个检测通道101检测到的目标电流值和目标电压值,电子设备300就得到了n个检测通道101中每个检测通道101对应的目标电流值和目标电压值,目标电流值是检测通道101实际检测到的电流值,目标电压值是检测通道101实际检测到的电压值。When the electronic device 300 receives the target current value and target voltage value detected by each of 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 of each of the n detection channels 101. The target current value and the target voltage value corresponding to the detection channel 101 , 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 .

这种情况下,电子设备300每向电压输出模块401发送一个校准指令,在接收到第一处理单元102发送的目标电流值和目标电压值后,对于n个检测通道101中任意的一个检测通道101,电子设备300会获得这个检测通道101对应的一组校准电流值,这组校准电流值包括理论电流值和目标电流值,且电子设备300会获得这个检测通道101对应的一组校准电压值,这组校准电压值包括理论电压值和目标电压值。In this case, each time the electronic device 300 sends a calibration instruction 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 detection channel 101. The electronic device 300 will obtain a set of calibration current values corresponding to the detection channel 101. The set of calibration current values includes a theoretical current value and a target current value, and the electronic device 300 will obtain a set of calibration voltage values corresponding to the detection channel 101. , the set of calibration voltage values includes theoretical voltage values and target voltage values.

步骤1306:电子设备300继续向电压输出模块401发送下一个校准指令。Step 1306: the electronic device 300 continues to send the next calibration instruction to the voltage output module 401 .

步骤1307:电压输出模块401接收到校准指令后,若确定当前接收到的校准指令不为本次校准过程中的第一个校准指令,则判断第一电压是否小于预设电压范围的最大值。Step 1307: 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 this calibration process, then determine whether the first voltage is less than the maximum value of the preset voltage range.

步骤1308:电压输出模块401在第一电压小于预设电压范围的最大值的情况下,将第一电压增大预设电压,向至少一个校准模块402中的每个校准模块402输出第一电压。Step 1308: When the first voltage is less than the maximum value of the preset voltage range, the voltage output module 401 increases the first voltage by a preset voltage, and outputs the first voltage to each calibration module 402 in at least one calibration module 402 .

预设电压可以预先进行设置。可选地,预设电压可以根据预设电压范围的最小值与最大值之间的差值来设置,比如,预设电压可以为预设电压范围的最小值与最大值之间的差值的十分之一。The preset voltage can be set in advance. Optionally, the preset voltage can be set according to the difference between the minimum value and the maximum value of the preset voltage range, for example, the preset voltage can be set as the difference between the minimum value and the maximum value of the preset voltage range one tenth.

这种情况下,至少一个校准模块402中的每个校准模块402会向所连接的检测通道101输出第二电压和第三电压。采集器件100中的n个检测通道101中的每个检测通道101即可检测所连接的检测通道101。In this case, each calibration module 402 of the at least one calibration module 402 outputs the second voltage and the third voltage to the connected detection channel 101 . Each of the n detection channels 101 in the acquisition device 100 can detect the connected detection channel 101 .

步骤1309:采集器件100中的n个检测通道101中的每个检测通道101检测目标电流值和目标电压值,第一处理单元102获取n个检测通道101中每个检测通道101检测到的目标电流值和目标电压值并发送给电子设备300。Step 1309: collect the target current value and target voltage value detected by each detection channel 101 in the n detection channels 101 in the device 100, and the first processing unit 102 obtains the target detected by each detection channel 101 in the n detection channels 101 The current value and the target voltage value are sent to the electronic device 300 .

这种情况下,电子设备300在向电压输出模块401发送多个校准指令后,对于n个检测通道101中任意的一个检测通道101,电子设备300会获得这个检测通道101对应的多组校准电流值,每组校准电流值包括理论电流值和目标电流值,且电子设备300会获得这个检测通道101对应的多组校准电压值,每组校准电压值包括理论电压值和目标电压值。In this case, after the electronic device 300 sends multiple calibration instructions to the voltage output module 401, for any one of the n detection channels 101, the electronic device 300 will obtain multiple sets of calibration currents corresponding to the detection channel 101 Each set of calibration current values includes a theoretical current value and a target current value, and the electronic device 300 will obtain multiple sets of calibration voltage values corresponding to the detection channel 101, and each set of calibration voltage values includes a theoretical voltage value and a target voltage value.

之后,电子设备300可以继续向电压输出模块401发送下一个校准指令。电压输出模块401接收到校准指令后,若确定当前接收到的校准指令不为本次校准过程中的第一个校准指令,且确定第一电压小于预设电压范围的最大值,则将第一电压增大预设电压,向至少一个校准模块402中的每个校准模块402输出第一电压,以继续校准过程。而若电压输出模块401接收到校准指令后,确定当前接收到的校准指令不为本次校准过程中的第一个校准指令,且确定第一电压等于预设电压范围的最大值,则不向校准模块402输出电压,以结束本次校准过程。After that, the electronic device 300 can continue to send the next calibration instruction to the voltage output module 401 . After the voltage output module 401 receives the calibration instruction, if it is determined that the currently received calibration instruction is not the first calibration instruction in this calibration process, and it is determined that the first voltage is less than the maximum value of the preset voltage range, then the first The voltage is increased by a preset voltage, and the first voltage is output to each of the at least one calibration module 402 to continue the calibration process. However, if the voltage output module 401 receives the calibration command and determines that the currently received calibration command is not the first calibration command in this calibration process, and determines that the first voltage is equal to the maximum value of the preset voltage range, then it does not send The calibration module 402 outputs a voltage to end the calibration process.

可选地,电压输出模块401在确定结束本次校准过程后还可以向电子设备300发送结束消息,以指示电子设备300本次校准过程已结束。示例地,电压输出模块401可以通过第一处理单元102向电子设备300发送结束消息。Optionally, after the voltage output module 401 determines to end the current calibration process, it may also send an end message to the electronic device 300 to indicate to the electronic device 300 that the current calibration process has ended. For example, the voltage output module 401 may send an end message to the electronic device 300 through the first processing unit 102 .

在本次校准过程结束后,电子设备300可以确定n个检测通道101中每个检测通道101对应的一组校准参数,每组校准参数包括电流校准参数和电压校准参数。After this calibration process ends, the electronic device 300 can determine a set of calibration parameters corresponding to each detection channel 101 among the n detection channels 101 , each set of calibration parameters includes current calibration parameters and voltage calibration parameters.

步骤1310:电子设备300确定n个检测通道101中每个检测通道101对应的一组校准参数,以得到n组校准参数。Step 1310: The electronic device 300 determines a set of calibration parameters corresponding to each of the n detection channels 101, so as to obtain n sets of calibration parameters.

在本次校准过程结束后,对于n个检测通道101中任意的一个检测通道101,电子设备300中存在在本次校准过程中获取到的这个检测通道101对应的多组校准电流值和多组校准电压值。电子设备300可根据这个检测通道101对应的多组校准电流值确定这个检测通道101对应的电流校准参数,以及根据这个检测通道101对应的多组校准电压值确定这个检测通道101对应的电压校准参数。如此,可以获得n个检测通道101中每个检测通道101对应的一组校准参数,可以满足多通道校准需求。After this calibration process is over, for any one of the n detection channels 101, there are multiple sets of calibration current values and multiple sets of calibration current values corresponding to this detection channel 101 obtained in the current calibration process in the electronic device 300. Calibration voltage value. The electronic device 300 can determine the current calibration parameters corresponding to the detection channel 101 according to the multiple sets of calibration current values corresponding to the detection channel 101, and determine the voltage calibration parameters corresponding to the detection channel 101 according to the multiple sets of calibration voltage values corresponding to the detection channel 101. . In this way, a set of calibration parameters corresponding to each detection channel 101 among the n detection channels 101 can be obtained, which can meet multi-channel calibration requirements.

可选地,电子设备300可以利用最小二乘法拟合直线的方式来得到电流校准参数和电压校准参数。最小二乘法拟合直线是利用给定的多个样本数据来拟合一条最佳的拟合直线,最小二乘法拟合直线的公式为y=ax+b,其中,a、b为拟合直线的参数,a为斜率,b为截距,x为横坐标,y为纵坐标。Optionally, the electronic device 300 may obtain the current calibration parameter and the voltage calibration parameter by fitting a straight line using the least square method. The least squares method for fitting a straight line is to use multiple given sample data to fit a best fitting straight line. The formula for the least squares method for fitting a straight line is y=ax+b, where a and b are the fitted straight lines The parameter, a is the slope, b is the intercept, x is the abscissa, and y is the ordinate.

这种情况下,电子设备300根据这个检测通道101对应的多组校准电流值确定这个检测通道101对应的电流校准参数时,可以将这个检测通道101对应的多组校准电流值中的每组校准电流值作为一个样本数据,以得到多个样本数据,每个样本数据的横坐标为目标电流值、纵坐标为理论电流值;根据该多个样本数据进行直线拟合,得到拟合直线的斜率a和截距b,即确定函数y=ax+b;将拟合直线的斜率a和截距b确定为这个检测通道101对应的电流校准参数。In this case, when the electronic device 300 determines the current calibration parameters corresponding to the detection channel 101 according to the multiple sets of calibration current values corresponding to the detection channel 101, each of the multiple sets of calibration current values corresponding to the detection channel 101 can be calibrated The current value is used as a sample data to obtain multiple sample data, the abscissa of each sample data is the target current value, and the ordinate is the theoretical current value; a straight line is fitted according to the multiple sample data to obtain the slope of the fitted line a and intercept b, that is, determine the function y=ax+b; determine the slope a and intercept b of the fitted line as current calibration parameters corresponding to the detection channel 101 .

电子设备300根据这个检测通道101对应的多组校准电压值确定这个检测通道101对应的电压校准参数时,可以将这个检测通道101对应的多组校准电压值中的每组校准电压值作为一个样本数据,以得到多个样本数据,每个样本数据的横坐标为目标电压值、纵坐标为理论电压值;根据该多个样本数据进行直线拟合,得到拟合直线的斜率a和截距b,即确定函数y=ax+b;将拟合直线的斜率a和截距b确定为这个检测通道101对应的电压校准参数。When the electronic device 300 determines the voltage calibration parameters corresponding to the detection channel 101 according to the multiple sets of calibration voltage values corresponding to the detection channel 101, each set of calibration voltage values in the multiple sets of calibration voltage values corresponding to the detection channel 101 can be used as a sample Data to obtain multiple sample data, the abscissa of each sample data is the target voltage value, and the ordinate is the theoretical voltage value; according to the multiple sample data, a straight line is fitted to obtain the slope a and intercept b of the fitted line , that is, determine the function y=ax+b; determine the slope a and intercept b of the fitted line as the voltage calibration parameters corresponding to the detection channel 101 .

电子设备300在获得n组校准参数后,即完成了对采集器件100的校准过程,此时可以将校准器件400与采集器件100之间的连接断开。After the electronic device 300 has obtained n sets of calibration parameters, the calibration process of the acquisition device 100 is completed, and at this time, the connection between the calibration device 400 and the acquisition device 100 can be disconnected.

进一步地,电子设备300在获得n组校准参数后,还可以将n组校准参数发送给采集器件100中的第一处理单元102进行存储。可选地,第一处理单元102可以将n组校准参数存储至采集器件100中的存储器105中。Further, after obtaining the n sets of calibration parameters, the electronic device 300 may also send the n sets of calibration parameters to the first processing unit 102 in the acquisition device 100 for storage. Optionally, the first processing unit 102 may store n sets of calibration parameters into the memory 105 in the acquisition device 100 .

在一些实施例中,第一处理单元102接收到电子设备300发送的校准参数后,是先将校准参数存储至第一处理单元102的缓存空间中,再将缓存空间中的校准参数写入存储器105中。然而,由于采集器件100的尺寸限制,第一处理单元102的功耗和逻辑资源都十分受限,所以本申请实施例在电子设备300将校准参数发送至第一处理单元102时,提供了一种缓存空间自适应方式,通过实时监控第一处理单元102的缓存空间剩余大小来调整所要下发的携带有校准参数的数据包的大小,从而可以保证第一处理单元102的正常运行,也可以降低采集器件100的资源消耗。In some embodiments, after receiving the calibration parameters sent by the electronic device 300, the first processing unit 102 first stores the calibration parameters in the cache space of the first processing unit 102, and then writes the calibration parameters in the cache space into the memory 105 in. 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 in this embodiment of the present application, when the electronic device 300 sends the calibration parameters to the first processing unit 102, a A cache space self-adaptive method, by monitoring the remaining size of the cache space of the first processing unit 102 in real time to adjust the size of the data packet carrying the calibration parameters to be delivered, so as to ensure the normal operation of the first processing unit 102, or The resource consumption of the acquisition device 100 is reduced.

图14是本申请实施例提供的一种缓存空间自适应方式的示意图。参见图14,该缓存空间自适应方式可以包括如下步骤1401至步骤1405。FIG. 14 is a schematic diagram of a cache space adaptive manner provided by an embodiment of the present application. Referring to FIG. 14 , the caching space adaptive manner may include steps 1401 to 1405 as follows.

步骤1401:电子设备300获取到n组校准参数后,生成携带有n组校准参数的数据包。Step 1401: After obtaining n sets of calibration parameters, the electronic device 300 generates a data packet carrying n sets of calibration parameters.

步骤1402:电子设备300获取第一处理单元102的缓存空间剩余大小。Step 1402: The electronic device 300 acquires the remaining size of the cache space of the first processing unit 102.

该缓存空间剩余大小为第一处理单元102的缓存空间中尚未被占用的空间大小。The remaining size of the cache space is an unoccupied space in the cache space of the first processing unit 102 .

可选地,电子设备300可以向第一处理单元102发送缓存获取请求。第一处理单元102接收到电子设备300发送的缓存获取请求后,可以确定自身当前的缓存空间剩余大小,并将该缓存空间剩余大小发送给电子设备300。Optionally, 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 its own current remaining size of the cache space, and send the remaining size of the cache space to the electronic device 300 .

若电子设备300在步骤1401中生成的该数据包的大小小于或等于该缓存空间剩余大小,则电子设备300执行如下步骤1403。若该数据包的大小大于该缓存空间剩余大小,则电子设备300执行如下步骤1404。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 cache space, the electronic device 300 executes the following step 1403 . If the size of the data packet is greater than the remaining size of the cache space, the electronic device 300 performs the following step 1404 .

步骤1403:若该数据包的大小小于或等于该缓存空间剩余大小,则电子设备300将该数据包发送给第一处理单元102,然后执行步骤1405。Step 1403: If the size of the data packet is less than or equal to the remaining size of the cache space, the electronic device 300 sends the data packet to the first processing unit 102, and then executes step 1405.

步骤1404:若该数据包的大小大于该缓存空间剩余大小,则电子设备300根据该数据包中的至少一组校准参数生成新的数据包,新生成的数据包的大小小于或等于该缓存空间剩余大小,将新生成的数据包发送给第一处理单元102,然后执行步骤1405。Step 1404: If the size of the data packet is greater than the remaining size of the cache space, the electronic device 300 generates a new data packet according to at least one set of calibration parameters in the data packet, and the size of the newly generated data packet is smaller than or equal to the cache space If there is a remaining size, send the newly generated data packet to the first processing unit 102, and then execute step 1405.

步骤1405:第一处理单元102接收到该数据包后,将该数据包中的校准参数存储至第一处理单元102的缓存空间中,之后,将该缓存空间中的校准参数存储至存储器105中。Step 1405: After receiving the data packet, the first processing unit 102 stores the calibration parameters in the data packet into the cache space of the first processing unit 102, and then stores the calibration parameters in the cache space into the memory 105 .

电子设备300在执行完上述步骤1403或步骤1404之后,若n组校准参数中还存在未被发送给第一处理单元102的一组或多组校准参数,则电子设备300生成携带有该一组或多组校准参数的数据包,然后重新执行上述步骤1402至步骤1405,直至将n组校准参数均发送给第一处理单元102为止。After the electronic device 300 executes the above step 1403 or step 1404, if there are one or more sets of calibration parameters that have not been sent to the first processing unit 102 among the n sets of calibration parameters, the electronic device 300 generates an or data packets of multiple sets of calibration parameters, and then re-execute the above steps 1402 to 1405 until all the n sets of calibration parameters are sent to the first processing unit 102 .

由于第一处理单元102是在工作过程中不断向自身的缓存空间存入一些数据,同时也会不断将自身的缓存空间中的数据写入存储器105中,所以第一处理单元102的缓存空间剩余大小是在不断变化的。因而电子设备300在每次需要向第一处理单元102发送携带有校准参数的数据包之前,都可以先获取第一处理单元102当前的缓存空间剩余大小,再据此调整所要发送的数据包的大小,以使得最终发送给第一处理单元102的携带有校准参数的数据包的大小小于或等于第一处理单元102当前的缓存空间剩余大小,如此,可以保证第一处理单元102的正常运行。Since the first processing unit 102 continuously stores some data into its own cache space during the working process, and also continuously writes the data in its own cache space into the memory 105, the cache space of the first processing unit 102 remains Size is constantly changing. Therefore, before each time the electronic device 300 needs to send a data packet carrying calibration parameters to the first processing unit 102, it can first obtain the current remaining size of the buffer space of the first processing unit 102, and then adjust the size of the data packet to be sent accordingly. Size, so that the size of the data packet carrying the calibration parameters finally sent to the first processing unit 102 is less than or equal to the current remaining size of the first processing unit 102 cache space, so that the normal operation of the first processing unit 102 can be guaranteed.

需说明的是,上述n组校准参数可以每隔一段时间进行更新。比如,每隔半年,可以使用校准器件400对采集器件100进行一次校准,以得到新的n组校准参数,新的n组校准参数可以更新至电子设备300和采集器件100中进行存储。如此,在采集器件100中的检测通道101的元器件随着时间的推移而发生性能变化的情况下,通过更新后的n组校准参数可以继续保持采集器件100的高精度检测。It should be noted that the above n groups of calibration parameters may be updated at intervals. For example, every six months, the calibration device 400 can be used to calibrate the acquisition device 100 to obtain new n sets of calibration parameters, and the new n sets of calibration parameters can be updated to the electronic device 300 and the acquisition device 100 for storage. In this way, when the performance of components of the detection channel 101 in the acquisition device 100 changes over time, the high-precision detection of the acquisition device 100 can be maintained through the updated n sets of calibration parameters.

接下来对采集器件100的工作过程进行说明。Next, the working process of the acquisition device 100 will be described.

在需要确定目标对象200的功耗时,技术人员将采集器件100与目标对象200进行连接。采集器件100与目标对象200连接后,采集器件100中的n个检测通道101与目标对象200中的n个负载C一一连接,n个检测通道101中的每个检测通道101可以检测所连接的负载C的电流值和电压值。另外,采集器件100中的第一处理单元102可以与电子设备300进行通信。When it is necessary to determine the power consumption of the target object 200 , the technician connects the acquisition device 100 to the target object 200 . After the acquisition device 100 is connected to the target object 200, the n detection channels 101 in the acquisition device 100 are connected to the n loads C in the target object 200 one by one, and each detection channel 101 in the n detection channels 101 can detect the connected The current value and voltage value of the load C. In addition, the first processing unit 102 in the acquisition device 100 can communicate with the electronic device 300 .

图15是本申请实施例提供的一种采集器件100的工作过程的示意图。参见图15,该工作过程可以包括如下步骤1501至步骤1504。FIG. 15 is a schematic diagram of a working process of an acquisition device 100 provided by an embodiment of the present application. Referring to FIG. 15 , the working process may include steps 1501 to 1504 as follows.

步骤1501:电子设备300向第一处理单元102发送采集指令。Step 1501: the electronic device 300 sends a collection instruction to the first processing unit 102.

电子设备300可以在需要确定目标对象200的功耗的时候向第一处理单元102发送采集指令。该采集指令用于指示开始采集电流电压数据。该采集指令可以是由电子设备300自动触发的,也可以是由技术人员在电子设备300上手动触发的,本申请实施例对此不作限定。The electronic device 300 may send a collection instruction to the first processing unit 102 when the power consumption of the target object 200 needs to be determined. The collection instruction is used to instruct to start collecting current and voltage data. The collection instruction may be automatically triggered by the electronic device 300, or manually triggered by a technician on the electronic device 300, which is not limited in this embodiment of the present application.

步骤1502:第一处理单元102接收到电子设备300发送的采集指令后,获取n个检测通道101中每个检测通道101检测到的电流值和电压值,以得到n组电流电压数据。Step 1502: After receiving the acquisition instruction sent by the electronic device 300, the first processing unit 102 acquires the current value and voltage value detected by each of the n detection channels 101 to obtain n sets of current and voltage data.

步骤1503:第一处理单元102从存储器105中获取n组校准参数,使用该n组校准参数对该n组电流电压数据进行校准。Step 1503: the first processing unit 102 obtains n sets of calibration parameters from the memory 105, and uses the n sets of calibration parameters to calibrate the n sets of current and voltage data.

对于n个检测通道101中任意的一个检测通道101检测到的一组电流电压数据,第一处理单元102可以使用这个检测通道101对应的一组校准参数来对这组电流电压数据进行校准,得到校准后的电流电压数据。示例地,这个检测通道101对应的电流校准参数包括斜率a1和截距b1,则第一处理单元102可以将这个检测通道101检测到的电流值与a1相乘后再与b1相加,得到校准后的电流值。这个检测通道101对应的电压校准参数包括斜率a2和截距b2,则第一处理单元102可以将这个检测通道101检测到的电压值与a2相乘后再与b2相加,得到校准后的电压值。For a set of current and voltage data detected by any one of the n detection channels 101, the first processing unit 102 can use a set of calibration parameters corresponding to the detection channel 101 to calibrate the set of current and voltage data to obtain Calibrated current and voltage data. For example, the current calibration parameters corresponding to the detection channel 101 include slope a1 and intercept b1, then the first processing unit 102 can multiply the current value detected by the detection channel 101 by a1 and then add it to b1 to obtain the calibration After the current value. The voltage calibration parameters corresponding to the detection channel 101 include slope a2 and intercept b2, then the first processing unit 102 can multiply the voltage value detected by the detection channel 101 by a2 and then add it to b2 to obtain the calibrated voltage value.

步骤1504:第一处理单元102将校准后的n组电流电压数据发送给电子设备300。Step 1504: the first processing unit 102 sends the n sets of calibrated current and voltage data to the electronic device 300 .

电子设备300接收到第一处理单元102发送的校准后的n组电流电压数据后,可以根据该n组电流电压数据实现对目标对象200的整体功耗和目标对象200中各个负载C的功耗的确认。After receiving the calibrated n sets of current and voltage data sent by the first processing unit 102, the electronic device 300 can realize 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 and voltage data. confirmation.

可选地,电子设备300中可以安装有驱动软件和界面软件。其中,驱动软件可以对该n组电流电压数据进行数据处理,如可以对该n组电流电压数据进行滤波处理、校准处理、功耗确认、或其他扩展处理等,本申请实施例对此不作限定。驱动软件在对该n组电流电压数据进行数据处理后,可以将数据处理结果上报给界面软件。界面软件可以根据该数据处理结果进行数据显示,比如,界面软件可以显示V-I-P特性曲线,以便技术人员可以及时获知电压、电流及功率的变化。在一些实施例中,界面软件还可以对该数据处理结果进行相关的数学计算,比如,可以对V-I-P特性曲线求均值等。可选地,界面软件还可以具有功能按钮,该功能按钮可以用于实现缩放等操作,比如,可以对显示的V-I-P特性曲线进行放大或缩小。如此,可以便于技术人员根据驱动软件的数据处理结果和界面软件的数据显示情况进行硬件及软件排错、分析研究等。Optionally, driver software and interface software may be installed in the electronic device 300 . Wherein, the driver software can perform data processing on the n sets of current and voltage data, such as filter processing, calibration processing, power consumption confirmation, or other extended processing on the n sets of current and voltage data, which is not limited in this embodiment of the present application . After the driving software performs data processing on the n sets of current and voltage data, it can report the data processing results to the interface software. The interface software can display the data according to the data processing results. For example, the interface software can display the V-I-P characteristic curve, so that technicians can know the changes of voltage, current and power in time. In some embodiments, the interface software can also perform relevant mathematical calculations on the data processing results, for example, can calculate the average value of the V-I-P characteristic curve and the like. Optionally, the interface software can also have function buttons, which can be used to implement operations such as zooming, for example, the displayed V-I-P characteristic curve can be zoomed in or out. In this way, it is convenient for technicians to perform hardware and software troubleshooting, analysis and research according to the data processing results of the driver software and the data display of the interface software.

需说明的是,电子设备300在向第一处理单元102发送采集指令后,第一处理单元102可以不断获取n个检测通道101中每个检测通道101检测到的电流值和电压值并在使用校准参数将其校准后发送给电子设备300。比如,第一处理单元102可以周期性(如每隔1秒)获取n个检测通道101中每个检测通道101检测到的电流值和电压值并在使用校准参数将其校准后发送给电子设备300。直至电子设备300向第一处理单元102发送采集结束指令后,第一处理单元102结束采集,不再获取n个检测通道101中每个检测通道101检测到的电流值和电压值。之后,技术人员可以将采集器件100与目标对象200之间的连接断开。It should be noted that after the electronic device 300 sends the collection instruction to the first processing unit 102, the first processing unit 102 can continuously obtain the current value and voltage value detected by each detection channel 101 in the n detection channels 101 and use the The calibration parameters are sent to the electronic device 300 after calibration. For example, the first processing unit 102 may periodically (for example, every 1 second) obtain the current value and voltage value detected by each detection channel 101 in the n detection channels 101 and send it to the electronic device after being calibrated using calibration parameters 300. Until the electronic device 300 sends the acquisition end instruction to the first processing unit 102 , the first processing unit 102 ends the acquisition and no longer acquires the current value and voltage value detected by each detection channel 101 in the n detection channels 101 . Afterwards, the technician can disconnect the connection between the acquisition device 100 and the target object 200 .

电子设备300可以在无需继续确定目标对象200的功耗的时候向第一处理单元102发送采集结束指令。该采集结束指令用于指示停止采集电流电压数据。该采集结束指令可以是由电子设备300自动触发的,也可以是由技术人员在电子设备300上手动触发的,本申请实施例对此不作限定。The electronic device 300 may send a collection end instruction to the first processing unit 102 when there is no need to continue determining the power consumption of the target object 200 . The collection end instruction is used to instruct to stop collecting current and voltage data. The collection end instruction may be automatically triggered by the electronic device 300, or manually triggered by a technician on the electronic device 300, which is not limited in this embodiment of the present application.

在一些实施例中,为了最大程度满足多通道的测试需求,还可以对多个采集器件100进行扩展使用。这种情况下,可以将多个采集器件100均与同一对象连接,也可以将多个采集器件100与不同的对象连接,并且,将多个采集器件100均与电子设备300连接,以实现较多数量通道的同时采集,下面对此进行说明。In some embodiments, multiple acquisition devices 100 may also be used for extended use in order to meet the testing requirements of multiple channels to the greatest extent. In this case, multiple acquisition devices 100 can be connected to the same object, or multiple acquisition devices 100 can be connected to different objects, and multiple acquisition devices 100 can be connected to the electronic device 300, so as to achieve more Simultaneous acquisition of multiple channels is described below.

图16是本申请实施例提供的一种采集系统的示意图。参见图16,该采集系统可以包括电子设备300和多个采集器件100。需说明的是,图16中仅是以采集系统包括4个采集器件100为例进行示例性示意,图16并不对采集系统包括的采集器件100的数量构成限定,实际应用中,采集系统可以包括比图示更多或更少的采集器件100。Fig. 16 is a schematic diagram of an acquisition system provided by 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 in FIG. 16, the acquisition system includes four acquisition devices 100 as an example for exemplary illustration. FIG. 16 does not limit the number of acquisition devices 100 included in the acquisition system. In practical applications, the acquisition system may include More or fewer acquisition devices 100 than shown.

电子设备300与多个采集器件100进行连接。可选地,电子设备300与多个采集器件100可以通过USB接口扩展器(即USB-HUB)进行连接,通过USB接口扩展器可以实现一个电子设备300与多个采集器件100的连接,实现1拖多扩展。示例地,采集器件100与USB接口扩展器之间的数据传输速率可以为120Mbps(兆比特每秒),电子设备300与USB接口扩展器之间的数据传输速率可以为480 Mbps。The electronic device 300 is connected to a plurality of acquisition devices 100 . Optionally, the electronic device 300 and multiple acquisition devices 100 can be connected through a USB interface expander (that is, USB-HUB), and the connection between one electronic device 300 and multiple acquisition devices 100 can be realized through the USB interface expander, realizing 1 Drag and expand. For example, the data transmission rate between the acquisition device 100 and the USB interface extender may be 120 Mbps (megabits per second), and the data transmission rate between the electronic device 300 and the USB interface extender may be 480 Mbps.

本申请实施例中用于连接电子设备300与多个采集器件100的USB接口扩展器可以是单独的一个USB接口扩展器,也可以是由多个USB接口扩展器级联而成的,本申请实施例对此不作限定。The USB interface expander used to connect the electronic device 300 and multiple acquisition devices 100 in the embodiment of the present application may be a single USB interface expander, or may be formed by cascading multiple USB interface expanders. The embodiment does not limit this.

可选地,USB接口扩展器可以设置在需要进行功耗测量的对象上,这种情况下,在需要对该对象进行功耗测量时,可以通过该对象上设置的USB接口扩展器连接电子设备300与多个采集器件100。Optionally, the USB interface expander can be set on the object that needs to measure the power consumption. In this case, when the power consumption measurement of the object needs to be performed, the electronic device can be connected through the USB interface expander set on the object 300 and multiple acquisition devices 100.

示例地,该对象可以设置有BTB连接器。USB接口扩展器可以设置于该对象的BTB连接器上。这种情况下,在需要对该对象进行功耗测量时,将多个采集器件100连接在该对象的BTB连接器上,将电子设备300也连接在该对象的BTB连接器上,如此,不仅可以实现多个采集器件100中的每个采集器件100与该对象中的负载之间的连接,还可以实现多个采集器件100与电子设备300之间的连接。Exemplarily, the object may be provided with a BTB connector. A USB interface extender may be provided on the BTB connector of the object. In this case, when it is necessary to measure the power consumption of the object, multiple acquisition devices 100 are connected to the BTB connector of the object, and the electronic device 300 is also connected to the BTB connector of the object. In this way, not only The connection between each acquisition device 100 in the plurality of acquisition devices 100 and the load in the object can be realized, and the connection between the plurality of acquisition devices 100 and the electronic device 300 can also be realized.

在一些实施例中,电子设备300可以通过一个USB接口扩展器连接多个采集器件100,且这多个采集器件100均连接至一个对象,以采集这个对象的电流电压数据。并且,电子设备300还可以通过另一个USB接口扩展器连接至另外多个采集器件100,这多个采集器件100可以连接至另外一个对象。如此,电子设备300可以通过多个USB接口扩展器实现对多个对象的功耗测量。In some embodiments, the electronic device 300 can be connected to a plurality of acquisition devices 100 through a USB interface extender, and the plurality of acquisition devices 100 are all connected to an object, so as to collect the current and voltage data of the object. Moreover, the electronic device 300 can also be connected to other multiple acquisition devices 100 through another USB interface extender, and these multiple acquisition devices 100 can be connected to another object. In this way, the electronic device 300 can implement power consumption measurement for multiple objects through multiple USB interface extenders.

在另一些实施例中,电子设备300可以通过一个USB接口扩展器连接多个采集器件100,且这多个采集器件100可以连接至不同的对象,以采集不同对象的电流电压数据。如此,电子设备300可以通过一个USB接口扩展器实现对多个对象的功耗测量。In other embodiments, the electronic device 300 can be connected to multiple acquisition devices 100 through a USB interface extender, and the multiple acquisition devices 100 can be connected to different objects to collect current and voltage data of different objects. In this way, the electronic device 300 can implement power consumption measurement for multiple objects through a USB interface extender.

需说明的是,多个采集器件100均是经上述校准器件400校准过的采集器件,多个采集器件100中的每个采集器件100存储有自身的n个检测通道101中每个检测通道101对应的电流校准参数和电压校准参数。多个采集器件100中的任意两个采集器件100用于采集不同对象的电流电压数据或用于采集同一对象的电流电压数据。多个采集器件100中每个采集器件100使用电流校准参数和电压校准参数对检测到的电流电压数据后进行校准后发送给电子设备300。电子设备300据此可以实现对同一对象的更多负载的功耗的确认,或者可以实现对不同对象的负载的功耗的确认。如此,该采集系统通过对多个采集器件100的扩展使用,可以实现更多通道的功耗测量,具有相当的灵活性。It should be noted that the plurality of acquisition devices 100 are all acquisition devices calibrated by the above-mentioned calibration device 400, and each acquisition device 100 in the plurality of acquisition devices 100 stores its own n detection channels 101 in each detection channel 101 Corresponding current calibration parameters and voltage calibration parameters. Any two acquisition devices 100 among the plurality of acquisition devices 100 are used to collect current and voltage data of different objects or to collect current and voltage data of the same object. Each acquisition device 100 among the plurality of acquisition devices 100 calibrates the detected current and voltage data by using the current calibration parameter and the voltage calibration parameter, and then sends it to the electronic device 300 . According to this, the electronic device 300 can realize the confirmation of the power consumption of more loads of the same object, or can realize the confirmation of the power consumption of loads of different objects. In this way, the acquisition system can realize power consumption measurement of more channels by extending the use of multiple acquisition devices 100 , and has considerable flexibility.

多个采集器件100工作时数据采集是同步的。也即,多个采集器件100同时工作的时候需要保证不同采集器件100的各个检测通道101之间的数据采集和传输的同步。这种情况下,如图17所示,本申请实施例设计了主从逻辑控制功能,电子设备300会按照采集器件100的识别顺序定义多个采集器件100中的主从设备,主采集器件100会产生同步脉冲信号,多个采集器件100的全部检测通道101都会在同步脉冲信号的控制下进行数据的采集和传输。接下来对该主从逻辑控制功能进行说明。Data acquisition is synchronized when multiple acquisition devices 100 work. That is, when multiple acquisition devices 100 work at the same time, it is necessary to ensure the synchronization of data acquisition and transmission among the detection channels 101 of different acquisition devices 100 . In this case, as shown in FIG. 17 , the embodiment of the present application has designed a master-slave logic control function, and the electronic device 300 will define the master-slave devices in the multiple acquisition devices 100 according to the identification order of the acquisition devices 100, and the master acquisition device 100 A synchronous pulse signal will be generated, and all detection channels 101 of the plurality of acquisition devices 100 will collect and transmit data under the control of the synchronous pulse signal. Next, the master-slave logic control function will be described.

图18是本申请实施例提供的一种主从逻辑控制功能的示意图。参见图18,该主从逻辑控制功能可以包括如下步骤1801至步骤1806。Fig. 18 is a schematic diagram of a master-slave logic control function provided by the embodiment of the present application. Referring to FIG. 18 , the master-slave logic control function may include steps 1801 to 1806 as follows.

步骤1801:电子设备300扫描USB设备。Step 1801: The electronic device 300 scans for USB devices.

步骤1802:电子设备300识别到第一个采集器件100连接。Step 1802: The electronic device 300 recognizes that the first acquisition device 100 is connected.

若电子设备300识别到有采集器件100连接,则可以获取所连接的采集器件100的标识,根据该采集器件100的标识确定该采集器件100的通道数,该通道数是指该采集器件100具有的检测通道101的数量。If the electronic device 300 recognizes that there is a collection device 100 connected, it can obtain the identification of the connected collection device 100, and determine the number of channels of the collection device 100 according to the identification of the collection device 100. The number of channels means that the collection device 100 has The number of detection channels 101.

步骤1803:电子设备300创建instrument实例。Step 1803: the electronic device 300 creates an instrument instance.

instrument实例用以指示已连接的所有采集器件100总体是多少通道的,即总体具有多少数量的检测通道101。The instrument instance is used to indicate the total number of channels of all connected acquisition devices 100 , that is, the total number of detection channels 101 .

步骤1804:电子设备300根据该采集器件100的标识创建对应的device实例。Step 1804: The electronic device 300 creates a corresponding device instance according to the identification of the collection device 100 .

一个采集器件100对应的device实例用以指示该采集器件100是多少通道的,即该采集器件100具有多少数量的检测通道101。The device instance corresponding to an acquisition device 100 is used to indicate how many channels the acquisition device 100 has, that is, how many detection channels 101 the acquisition device 100 has.

步骤1805:电子设备300识别到第二个采集器件100或更多数量的采集器件100。Step 1805: The electronic device 300 recognizes the second collection device 100 or more collection devices 100 .

电子设备300在识别到第一个采集器件100之后,每识别到一个新的采集器件100,可以更新instrument实例。After the electronic device 300 recognizes the first acquisition device 100, each time it recognizes a new acquisition device 100, it may update the instrument instance.

步骤1806:电子设备300确定已连接的采集器件100的数量大于或等于2,则确定已连接的多个采集器件100的主从关系。Step 1806: The electronic device 300 determines that the number of connected collection devices 100 is greater than or equal to 2, and then determines the master-slave relationship of the connected collection devices 100 .

需要说明的是,多个采集器件100与电子设备300连接后多个采集器件100中每个采集器件100的指定引脚均连接至同一节点。It should be noted that, after the multiple collection devices 100 are connected to the electronic device 300 , the specified pins of each collection device 100 in the multiple collection devices 100 are connected to the same node.

电子设备300可以确定第一个连接的采集器件100为主设备,向第一个连接的采集器件100发送指示消息。该采集器件100接收到该指示消息后确定自身为主设备,然后将自身的指定引脚的电平拉高,以产生同步脉冲信号。由于多个采集器件100中每个采集器件100的指定引脚均连接至同一节点,所以该采集器件100将自身的指定引脚的电平拉高后,其他采集器件100会检测到自身的指定引脚的电平被拉高,也即会检测到同步脉冲信号,这种情况下,其他采集器件100确定自身为从设备,且根据检测到的同步脉冲信号进行数据采集和传输。The electronic device 300 may determine that the first connected collection device 100 is the master device, and send an indication message to the first connected collection device 100 . The acquisition device 100 determines itself as the master device after receiving the indication message, and then pulls the level of its designated pin high to generate a synchronous pulse signal. Since the designated pins of each collection device 100 among the multiple collection devices 100 are connected to the same node, after the collection device 100 pulls up the level of its designated pin, other collection devices 100 will detect its designated pin. When the level of the pin is pulled high, the synchronization pulse signal will be detected. In this case, other acquisition devices 100 determine themselves as slave devices, and perform data collection and transmission according to the detected synchronization pulse signal.

可选地,电子设备300确定已连接的多个采集器件100的主从关系之后,可以根据instrument实例和device实例确定多个采集器件100中每个采集器件100的连接信息,将多个采集器件100中每个采集器件100的连接信息传输给电子设备300中的界面软件,以便界面软件后续在进行数据显示时可以参考该连接信息进行显示,比如,可以将不同采集器件100对应的数据进行独立显示或联合显示。Optionally, after the electronic device 300 determines the master-slave relationship of the connected multiple acquisition devices 100, it may determine the connection information of each of the multiple acquisition devices 100 according to the instrument instance and the device instance, and connect the multiple acquisition devices 100 to The connection information of each acquisition device 100 in 100 is transmitted to the interface software in the electronic device 300, so that the interface software can refer to the connection information for subsequent display when performing data display. For example, the data corresponding to different acquisition devices 100 can be independently displayed. display or joint display.

下面对本申请实施例涉及的电子设备300予以说明。The electronic device 300 involved in the embodiment of the present application will be described below.

图19是本申请实施例提供的一种电子设备300的结构示意图。参见图19,电子设备300包括至少一个处理器1901、通信总线1902、存储器1903以及至少一个通信接口1904。FIG. 19 is a schematic structural diagram of an electronic device 300 provided by an embodiment of the present application. Referring to FIG. 19 , an electronic device 300 includes at least one processor 1901 , a communication bus 1902 , a memory 1903 and at least one communication interface 1904 .

处理器1901可以是微处理器(包括中央处理器(central processing unit,CPU)等)、特定应用集成电路(application-specific integrated circuit,ASIC),或者可以是一个或多个用于控制本申请方案程序执行的集成电路。The processor 1901 may be a microprocessor (including a central processing unit (central processing unit, CPU), etc.), an application-specific integrated circuit (application-specific integrated circuit, ASIC), or may be one or more integrated circuit for program execution.

通信总线1902可包括一通路,用于在上述组件之间传送信息。Communication bus 1902 may include a path for communicating information between the components described above.

存储器1903可以是只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、电可擦可编程只读存储器(electrically erasableprogrammable read-only memory,EEPROM)、光盘(包括只读光盘(compact disc read-only memory,CD-ROM)、压缩光盘、激光盘、数字通用光盘、蓝光光盘等)、磁盘存储介质或者其它磁存储设备,或者是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器1903可以是独立存在,并通过通信总线1902与处理器1901相连接。存储器1903也可以和处理器1901集成在一起。The memory 1903 can be a read-only memory (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 disc (including compact disc read-only memory (CD-ROM, compact disc, laser disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage medium, or other magnetic storage device, or is capable of carrying or storing or any other medium in which desired program code in the form of a data structure can be accessed by a computer, but is not limited thereto. The memory 1903 may exist independently, and is connected to the processor 1901 through the communication bus 1902 . The memory 1903 can also be integrated with the processor 1901.

通信接口1904使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网、无线接入网(radio access network,RAN)、无线局域网(wireless local areanetwork,WLAN)等。The communication interface 1904 uses any device such as a transceiver 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) and so on.

在具体实现中,作为一种实施例,处理器1901可以包括一个或多个CPU,如图19中所示的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 1901 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 19 .

在具体实现中,作为一种实施例,电子设备300可以包括多个处理器,如图19中所示的处理器1901和处理器1905。这些处理器中的每一个可以是一个单核处理器,也可以是一个多核处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(如计算机程序指令)的处理核。In a specific implementation, as an example, 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 can 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 such as computer program instructions.

在具体实现中,作为一种实施例,电子设备300还可以包括输出设备1906和输入设备1907。输出设备1906和处理器1901通信,可以以多种方式来显示信息。比如,输出设备1906可以是液晶显示器(liquid crystal display,LCD)、发光二级管(light emittingdiode,LED)显示设备、阴极射线管(cathode ray tube,CRT)显示设备或投影仪(projector)等。输入设备1907和处理器1901通信,可以以多种方式接收用户的输入。比如,输入设备1907可以是鼠标、键盘、触摸屏设备或传感设备等。In a specific implementation, as an example, the electronic device 300 may further include an output device 1906 and an input device 1907 . Output device 1906 is in communication with 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 (cathode ray tube, CRT) display device, or a projector (projector), etc. The input device 1907 communicates with the processor 1901 and can receive user input in various ways. For example, the input device 1907 may be a mouse, a keyboard, a touch screen device or a sensing device, etc.

上述的电子设备300可以是一个通用计算机设备或一个专用计算机设备。在具体实现中,电子设备300可以是台式机、便携式电脑、网络服务器、掌上电脑、移动手机、平板电脑、无线终端设备、通信设备或嵌入式设备,本申请实施例不限定电子设备300的类型。The aforementioned 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 computer, a portable computer, a network server, a palmtop computer, a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device, and the embodiment of the present application does not limit the type of the electronic device 300 .

其中,存储器1903用于存储执行本申请方案的程序代码1910,处理器1901用于执行存储器1903中存储的程序代码1910。电子设备300可以通过处理器1901以及存储器1903中的程序代码1910,来实现上文实施例中由电子设备300执行的操作。Wherein, the memory 1903 is used to store the program code 1910 for executing the solution of the present application, and the processor 1901 is used to execute the program code 1910 stored in the memory 1903 . The electronic device 300 may implement the operations performed by the electronic device 300 in the foregoing embodiments through the processor 1901 and the program code 1910 in the memory 1903 .

接下来对电子设备300的软件系统予以说明。Next, the software system of the electronic device 300 will be described.

图20是本申请实施例提供的一种电子设备300的软件系统的示意图。参见图20,电子设备300的软件系统可以包括:界面软件301、驱动软件302、嵌入式软件303。FIG. 20 is a schematic diagram of a software system of an electronic device 300 provided by 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 , and embedded software 303 .

其中,嵌入式软件303可以进行电流数据的采集与传输、电压数据的采集与传输、多采集器件识别与数据同步、校准参数的存储与调用等功能。该电流数据的采集与传输是指:嵌入式软件303可以接收采集器件100发送的电流数据,并将该电流数据传输给驱动软件302进行处理。该电压数据的采集与传输是指:嵌入式软件303可以接收采集器件100发送的电压数据,并将该电压数据传输给驱动软件302进行处理。该多采集器件识别与数据同步是指:嵌入式软件303可以识别与电子设备300连接的多个采集器件100,且可以确定多个采集器件100之间的主从关系,以实现多个采集器件100之间的数据同步。该校准参数的存储与调用是指:嵌入式软件303可以在校准过程中确定采集器件100的校准参数,并且在有需要的时候可以使用该校准参数对相应的电流电压数据进行校准。Among them, the embedded software 303 can perform functions such as collection and transmission of current data, collection and transmission of voltage data, identification and data synchronization of multiple collection devices, storage and recall of calibration parameters, and the like. The collection and transmission of the current data means that the embedded software 303 can receive the current data sent by the collection device 100 and transmit the current data to the driver software 302 for processing. The collection and transmission of the voltage data means that the embedded software 303 can receive the voltage data sent by the collection 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 can identify multiple acquisition devices 100 connected to the electronic device 300, and can determine the master-slave relationship between the multiple acquisition devices 100, so as to realize multiple acquisition devices. Data synchronization between 100. The storage and calling of the calibration parameters means that the embedded software 303 can determine the calibration parameters of the acquisition device 100 during the calibration process, and can use the calibration parameters to calibrate the corresponding current and voltage data when necessary.

驱动软件302可以在获得电流电压数据后,对电流电压数据进行数据处理,如可以对电流电压数据进行滤波处理、校准处理、功耗确认、或其他扩展处理等,本申请实施例对此不作限定。驱动软件302在对电流电压数据进行数据处理后,可以将数据处理结果上报给界面软件301。可选地,驱动软件302还可以对采集器件100中的检测通道101进行配置。The driver software 302 can perform data processing on the current and voltage data after obtaining the current and voltage data, such as filter processing, calibration processing, power consumption confirmation, or other extended processing on the current and voltage data, which is not limited in this embodiment of the present application . After the driver software 302 performs data processing on the current and voltage data, it can report the data processing result to the interface software 301 . Optionally, the driver software 302 can also configure the detection channel 101 in the acquisition device 100 .

界面软件301可以根据该数据处理结果进行数据显示,比如,界面软件301可以显示V-I-P特性曲线,以便技术人员可以及时获知电压、电流及功率的变化。在一些实施例中,界面软件301还可以对该数据处理结果进行相关的数学计算,比如,可以对V-I-P特性曲线求均值等。可选地,界面软件301还可以具有功能按钮,该功能按钮可以用于实现缩放等操作,比如,可以对显示的V-I-P特性曲线进行放大或缩小。如此,可以便于技术人员根据驱动软件302的数据处理结果和界面软件301的数据显示情况进行硬件及软件排错、分析研究等。The interface software 301 can display the data according to the data processing results. For example, the interface software 301 can display the V-I-P characteristic curve, so that technicians can know the changes of voltage, current and power in time. In some embodiments, the interface software 301 can also perform relevant mathematical calculations on the data processing results, for example, can calculate the average value of the V-I-P characteristic curve, and the like. Optionally, the interface software 301 can also have function buttons, which can be used to implement operations such as zooming, for example, the displayed V-I-P characteristic curve can be zoomed in or out. In this way, it is convenient for technicians to perform hardware and software troubleshooting, analysis and research according to the data processing results of the driver software 302 and the data display conditions of the interface software 301 .

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意结合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络或其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,比如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(比如:同轴电缆、光纤、数据用户线(Digital Subscriber Line,DSL))或无线(比如:红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质,或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(比如:软盘、硬盘、磁带)、光介质(比如:数字通用光盘(Digital Versatile Disc,DVD))或半导体介质(比如:固态硬盘(Solid State Disk,SSD))等。In the above embodiments, all or part may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it 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 the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be accessed from a website, computer, server, or data center Transmission to another website site, computer, server or data center via wired (such as: coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as: infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or may be a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or 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 (Solid State Disk, SSD)) wait.

以上所述为本申请提供的可选实施例,并不用以限制本申请,凡在本申请的揭露的技术范围之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above-mentioned optional embodiments provided by the application are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the technical scope of the disclosure of the application shall be included in the scope of the application. within the scope of protection.

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 devices, calibration systems and acquisition systems Active CN116185784B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

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 devices, calibration systems and acquisition systems

Country Status (1)

Country Link
CN (1) CN116185784B (en)

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
CN119447871A (en) * 2025-01-13 2025-02-14 慧创科仪(北京)科技有限公司 Interconnection device, host, host interconnection component, imaging system and acquisition method

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 国网山东省电力公司物资公司 A 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 国网山东省电力公司物资公司 A 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 (4)

* 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
CN119447871A (en) * 2025-01-13 2025-02-14 慧创科仪(北京)科技有限公司 Interconnection device, host, host interconnection component, imaging system and acquisition method
CN119447871B (en) * 2025-01-13 2025-06-17 慧创科仪(北京)科技有限公司 Interconnection device, host, host interconnection component, imaging system and acquisition method

Also Published As

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

Similar Documents

Publication Publication Date Title
CN116185784B (en) Calibration devices, calibration systems and acquisition systems
CN103698686B (en) Signal testing method and signal testing equipment
CN101711350B (en) System and method for testing wireless devices
CN111480152B (en) An interface configuration method, terminal device and interface
CN102793544A (en) System and method for measuring physiological parameter
CN115128429A (en) Chip testing system and testing method
CN110824337A (en) Method and device for high-temperature test of SOC chip
CN115250152A (en) Terminal testing method, computer device and storage medium
CN102096457B (en) processing device and operating system
WO2020244604A1 (en) Circuit detection method and apparatus, device, and storage medium
CN111736104A (en) Current detection calibration method and device and display device
US20140285177A1 (en) Mobile current measurement equipment, current measurement terminal and current measurement method
US20240426931A1 (en) Method, apparatus, storage medium and terminal equipment for estimating the impedance of battery
CN211148835U (en) Open short circuit reverse test circuit and image sensor chip test device
WO2024260197A1 (en) Radio frequency die module debugging device and method
WO2024002031A1 (en) Chip temperature test method and apparatus
TWI765421B (en) Product detection device, product detection system and product detection method applied thereto
CN213398860U (en) Battery charging simulation system and test system
CN212111668U (en) Express delivery cabinet test fixture
CN112394276B (en) Wireless charging test method, device, system, electronic equipment and storage medium
TWI870155B (en) System, device and method for determining test result of usb interface based on multiple output voltages of the usb interface
CN201417447Y (en) USB concentrator device with load current and voltage detection functions
CN114509979B (en) Integrated circuit safety detection system
US9685916B2 (en) Audio interface circuits and methods
CN110377473A (en) MCU parameter test system and method

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
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address