Monsoon Power Monitor Manual
Monsoon Power Monitor Manual
Monsoon Power Monitor Manual
Ver 1.15
Distributed By:
Monsoon Solutions, Inc.
2405 140th Avenue NE
Suite A115
Bellevue, Washington 98005
(425) 378-8081
www.msoon.com
Table of Contents
INTRODUCTION ........................................................................................................ 3
HARDWARE AND SOFTWARE REQUIREMENTS FOR THE DEVELOPMENT WORKSTATION ......................... 5
INSTALLING THE POWERTOOL SOFTWARE, DRIVERS AND CONNECTING TO THE POWER MONITOR
HARDWARE ............................................................................................................. 6
Power Monitor Driver Installation .......................................................................... 6
Firmware Driver Installation Instructions................................................................ 7
Updating the Firmware .................................................................................................. 7
16
17
18
19
20
20
21
22
23
24
40
40
40
40
42
43
43
44
45
46
50
52
52
53
56
57
57
57
63
64
64
Date Released
Revision Number
Notes
May 2007
1.0
Initial release
November 1, 2007
1.1
1.2
1.3
November 9, 2009
1.4
1.5
Consolidated manual
1.6
1.7
1.8
1.9
Aug 9, 2012
1.10
1.11
1.12
April 4, 2013
1.13
1.14
1.15
Introduction
The PowerTool software and the Power Monitor hardware provide a robust power
measurement solution for mobile devices. The PowerTool software and the Power Monitor
hardware can analyze the power on any device that uses up to a 4.55V Battery. Electrical
engineers and software developers can utilize the PowerTool software and the Power
Monitor hardware to optimize the design and analyze the performance of their mobile
devices.
The Power Monitor can measure data on three channels: Main, USB, and Auxiliary. The Main
channel is what most users will use for their measurements. A USB channel is provided as is
an AUX channel. The GUI details are described below for the Main channel, but largely apply
to all sampling sources. Cases where they differ are called out in the appropriate sections on
USB or AUX measurements.
4 GB of system memory
Version 4.0.4.12 and 4.0.5.1 require .Net 4.5. Version 4.0.4.11 requires .Net 4.0.
Versions 4.0.4.0-4.0.4.10 require .Net 3.5.
Full Speed USB 1.1/USB 2.0 integrated chipset or PCI/PCI Express add in card.
USB 3.0 or Downstream Charging ports are recommended for Front-panel connections.
USB Hubs should not be used with the Power Monitor
Power on the Power Monitor in Output Enable mode by depressing the Output Enable
button and the Power button simultaneously Amber led should be on.
2.
Under Device Manager find the Unknown device and right click, select Update Driver
Software
3.
4.
5.
6.
Under Device Manager Custom USB Devices verify that the Microchip Custom USB
Device has enumerated properly.
Click on the Load button and browse to the Firmware folder where the PowerTool application
was installed and select the PM_RevX_ProtXX_VerXX_Boot.hex file. (Note, X is a placeholder
for the proper version information for a given firmware file, for example,
PM_RevD_Prot17_Ver20.hex).
Click on the Write button
Wait until the Status shows Write complete.
Click on the X in the upper right of the window to exit when you are done.
Power off and then power back on the Power Monitor so you now have a green light.
Figure 7 Front view: Engaged power button and powered-up green LED
10
11
Description
HW rev
FW ver
Prot ver
SW ver
PowerTool UI version
HW rev
SW ver
Firmware Version
B, C, D
3.0.4
12
B, C, D
4.0.2, 4.0.1
17, 18
B, C, D
4.0.3
19
B, C, D
4.0.4
19, 20
4.0.5
20
To make sure the correct software is installed, check the revision fields in the UI. Figure 10
below shows the area of the UI that displays the software revision.
12
Figure 12 Sense resistor in series with the regulator, in relation to the red and black
There is resistance in the wiring that can lower the voltage at the device. The resistance of
the wiring plus the sense resistor is similar to the resistance of the lithium battery in the
device; batteries are usually about 0.12 .
The resistance of 20 gauge wire is 0.012 /ft, so if the cables are 20 gauge, and 1 foot in
length, that adds another 0.024 , in addition to the contact resistance.
13
The parameters in the dialog box below are used for device under test power on.
Power up time This specifies the power up time when no current limit is applied to
the Mobile Device Power Monitor.
Power up Current Limit If the Power Up Time is set to default, this parameter will
allow the selected current to be supplied to the device for 1 second.
Run time Current Limit This parameter specifies what the maximum current that
can be sourced by the Mobile Device Power Monitor while it is sampling or in Run
mode.
If a device does not power up with this default profile, the profile may be adjusted. Click on
Parameters in the UI and the dialog box shown below in Figure 15.
15
16
17
Auto: Setting the USB passthrough mode to Auto enables a USB connection from
your device to the computer which allows you to download files, configure test
programs, charge the device, etc. Once sampling is started, the direct USB connection is
disabled, charging over USB is disabled, and samples are measured without the
interference of USB charging. As soon as sampling is stopped, the direct USB connection
is re-enabled and data can once again be transferred to and from the device over USB. A
main channel connection with Vout enabled is required in this setting.
On: Setting the USB passthrough mode to On enables the USB connection and
records the current flowing through the USB connector on the front of the Mobile Device
Power Monitor. The main channel connection is not required when using this
configuration as power is provided through USB. Note, the main channel Vout should still
be enabled to ensure proper readings.
Off: Setting the USB passthrough mode to Off disables the USB connection. The main
channel connection with Vout enabled is required in this setting.
The time scale is always shown along the X axis. The Power, Current, and Voltage scales are
shown along the Y axis depending on the data selected in the Legend dialog box.
The Unit dropdown lets you select the unit to be used for display.
The Units/tick dropdown specifies the granularity of each tick. For example, if you specify a
unit of min and a units/tick of 2, there will be a tick for 2 minutes, 4 minutes, and so on.
The smaller the number you select, the finer the granularity.
The #Ticks dropdown specifies the number of ticks to be displayed. The Units/tick
multiplied by the #ticks will determine the range of data you will see on the graph at any
given time.
The data that is displayed is calculated based on the granularity of the timescale you have
chosen. If the full resolution of data sampled can be displayed in the UI, then
instantaneous data will be plotted and Average, Min and Max values will all be identical, as
there is nothing to smooth or average over.
If the timescale is such that a larger time range or larger granularity is chosen than can
display the full amount of instantaneous data, the data will be averaged across adjacent
samples at the smallest range possible. Max, Min, and Avg data is shown at a given point
to capture the values of that range.
As you increase granularity, the Max/Min/Avg lines will converge and youll ultimately have
only one line. Similarly, as you decrease granularity, Max/Min/avg lines will be calculated
and displayed.
The offset will shift the displayed portion of the graph along the axis. Both positive and
negative numbers may be used.
IMPORTANT: Data is generated and stored in memory for each point drawn to the
graph. If you plan to do an extended measurement (more than 12 hours), you
should choose a timescale that is in minutes or hours and select a broader
granularity to ensure efficient use of system memory. Additionally, if you choose
18
a fine scale such as microseconds, expect a slower UI response time for other
functions due to the resources required for such a high UI refresh rate.
Sampling Data
To begin sampling data, click the Run button. To stop sampling, press the Stop button.
Figure 18 below shows the Run button, which toggles to the Stop button once it is clicked.
19
If more than one Power Monitor is connected to your computer, a dropdown arrow will be
displayed next to the serial number to let you switch which Power Monitor you are currently
connected to for sampling. The Power Tool GUI establishes a connection to only on Power
Monitor at a time, so if you switch which Power Monitor you are connected to, you will be
asked if you want to save your current data. Similarly, a given Power Monitor may only be
accessed by one PowerTool instance at a time. If you are running multiple instances of the
PowerTool software, and another instance has already connected to a given Power Monitor,
it will not be available in your list of serial numbers to select.
If you are running with Enable Device Scanning OFF, the serial number will be greyed out
and you will not be able to change which Power Monitor you are attached to.
Cursors
Cursors enable users to measure the delta (Time and selected data channel) between two
points on the power monitor output data plot.
1. Drag the red and blue arrows (indicator) to the desired position on the power monitor
output data plot, as shown in Figure 22 below.
2. The Delta will be displayed under the Selection Statistics section.
20
Statistics
Battery life, current, and power statistics for the selected channel are visible in the STATS
area of the UI. In order to get correct values for Expected Battery Life, the user should be
sure to set the Battery Size before the run. If there is no region selected, the statistics will
be associated with the entire run as in Figure 23 below.
21
Zoom
Selecting a certain area with the mouse on the graph and by either double clicking or
selecting the scroll mechanism on a mouse (if one is available) will zoom in on the selected
area. Note, even though the screen is not updating during this time, sampling is still
occurring in the background. The statistics are computed only for the selected area, as
shown in Figure 25 below. When you are done looking at this area, press ESC, and the
screen will refresh and return to displaying data as it is sampled.
22
Triggers
Triggers can be set to start and stop sampling based on specified criteria. Your current
trigger setting is shown in the main Power Tool GUI right above the Set Capture Triggers
button, as shown in Figure 26 below. By default, the setting is Manual.
To open the trigger configuration dialog, select the Set Capture Triggers button.
You will then be able to specify both start and stop conditions.
Once you have saved your settings, you will see your choices reflected in the text on the
Power Tool GUI. You must still select RUN and then the trigger conditions will start
evaluating.
USB Measurements
In addition to the Main channel, two other channels are available to do sampling. One of
these is used for monitoring USB power and current draw. To use the USB channel, connect
the USB device to the front of Mobile Device Power Monitor, and connect an additional USB
cable from the front of Mobile Device Power Monitor to the development workstation as
shown in Figure 28 below. In most cases, you will still need to keep the main channel
connected and enabled as well. This will be discussed further below.
24
There are 3 primary modes when using the USB Channel. USB ON, OFF, and AUTO. For
people using active devices such as phones, most will want to use AUTO.
Auto: Setting the USB passthrough mode to Auto enables a USB connection from
your device to the computer which allows you to download files, configure test
programs, charge the device, etc. Once sampling is started, the direct USB connection is
disabled, charging over USB is disabled, and samples are measured without the
interference of USB charging. As soon as sampling is stopped, the direct USB connection
is re-enabled and data can once again be transferred to and from the device over USB. A
main channel connection with Vout enabled is required in this setting.
On: Setting the USB passthrough mode to On enables the USB connection and
records the current flowing through the USB connector on the front of the Mobile Device
Power Monitor. The main channel connection is not required when using this
configuration as power is provided through USB. Note, the main channel Vout should still
be enabled to ensure proper readings.
Off: Setting the USB passthrough mode to Off disables the USB connection. The main
channel connection with Vout enabled is required in this setting.
The USB passthrough mode is set by selecting Parameters, and then specifying the desired
mode.
Measuring Power
Battery powered device, with a battery blank or bypassed battery (mobile phone, etc.)
-USB A cable connected from front of power monitor to device.
-USB B cable connected from front of power monitor to computer.
-USBPassthrough =AUTO
-Main channel is connected and powered (Vout enabled)
-USB channel selected for display
In this configuration, the state is equivalent to having USBPassthrough=ON before you start
sampling. You can communicate with your device under test, send data, etc. As soon as you
start sampling, it is equivalent to USBPassthrough=OFF. All current being provided to the
device is from the power monitor main channel and no USB current is provided. Once
sampling is completed, the state is equivalent to USBPassthrough=ON and the device under
test is once again accessible from your computer and data may be uploaded and analyzed.
25
Figure 31 PowerTool with USB set in the Legend box and in the Capture Stats box
The Aux port is accessed via the bayonet Neill-Concelman (BNC) connector on the front of
the Mobile Device Power Monitor. The Aux port allows you to isolate current measurements
across a sense resistor.
Note, for Aux measurements, the MAIN channel must always be powered (Vout
enabled) even though it is not being used for measurements or to power the
device under test.
Figure 32 shows the Power Monitor when wired for calibration (This is using a precision
adjustable load of 40 as the load, and the Power Monitors Main Channel is the Power
Source). Note the .1 ohm sense resistor across the aux channels, as shown in Figure 33.
You should use the same wires for calibration that you plan to use for actual measurement,
to ensure you are accounting for all system resistance.
28
29
If you dont have an adjustable load, you can use any resistor with a value of approximately
20-40 ohms. Be sure to measure the resistor so you know its exact value.
30
The goal is to get the Aux channel to as close to the main channel as possible. To do this,
RUN the Power Monitor and toggle between Main & Aux and observe the values.
Apply the parameter change and then re-run the Power Monitor to see if youre closer to a
match between the two channels. After youve fine-tuned the Course resistor, you will want
to repeat this process with the Aux (fine) channel and a resistor with a value closer to 1000
ohms.
31
Before calibration, your display will show the Main and AUX current as separated lines.
Connect the outside of the BNC connector to the high side of the sense resistor.
Connect the inside of the BNC connector to the low side of the sense resistor.
Enable Vout
In Figure 40 below, the mobile device is powered by the Mobile Device Power Monitor and
its processor core power is being monitored on the Aux port with a 0.1 resistor. In the
Mobile Device Power Monitor, the data for the main supply and the core supply can be
displayed and analyzed simultaneously.
33
If you require a higher measurement voltage, the AUX channel can support up to
5.5V.
If you require larger sustained currents, the AUX channel can support up to 4.5
Amps continuous current.
If it is necessary to vary voltage continuously, without ending the sampling run.
34
35
Description
.PT5
.PT4
.PT3
The PT5 file format, when saved, contains data at the maximum time resolution, regardless
of the Capture Settings. Thus, when you read this file format in, you will have the full set of
data from your recorded session.
When you SAVE data, it will save in a PT5 format and will save all field data at the
maximum time resolution, regardless of the capture settings or what is displayed on the
screen. A PT5 index file (.CD5) will also be saved to optimize the process of recreating the
graphical display data when you re-import the PT5.
When you EXPORT data, it can be exported in the file formats shown below. You will have
the option to select to export only the highlighted or displayed region, or all data sampled.
36
File format
Description
.PT5
.PT4
.CSV
The data is exported at the full resolution of the sampling run, but only for the range
specified.
37
Because the dropped samples are less than one percent of a run, the error is minimal.
Usually this loss of data is less than 0.1 percent. However, sometimes on long runs or on
38
loaded systems the dropped sample count can exceed 65,000. When this occurs, the
PowerTool lost communication for more than 10 seconds. A count of dropped connections is
maintained in the UI, as shown above in Figure 44. Both of these counts are reset to zero
when a run is restarted. These counts are useful to determine how stable the connection is.
If the dropped packets are greater than one percent of all samples, or if there are more
than one or two dropped connections per hour, then it is likely that the development
workstation has other applications running that are causing delays. Closing these
applications or installing the PowerTool software on a clean machine should solve these
issues and reduce the dropped samples and packets.
39
APPENDIX:
Frequently Asked Questions
Do you provide Linux or Mac support?
The Power Monitor is specifically designed for the Microsoft Windows operating system
and relies on custom device drivers only available for Windows. We are not presently
looking at a solution that will run natively on Linux or Mac. We understand some users
have environments that are primarily Linux or Mac. The following are our
recommendations.
Fully supported:
Option 1: Setup a windows machine with the power monitor software, .Net and a
webserver. Write a simple webserver wrapper using the Power Monitor API. Expose
this webservice as desired, and call it from within your Linux or Mac environment.
You will connect your power monitor device(s) to the windows machine and control
them remotely through your Linux environment over the webservice. This is the
most robust and flexible method to complete integration for automated testing,
especially if you need real-time access to data while the sampling is running.
Option 2: Setup a windows machine with the power monitor software and .Net. Write
a script in any desired scripting language that will execute PowerToolCmd command
line calls. Open ports to exec these calls remotely from your Linux/Mac environment.
This method works well if you dont want to add a webservice wrapper and simply
need the output of a power monitor run, but dont need to access any data during
the run.
Not fully supported, but reported as successful. We do not test or provide technical
support for this configuration.
Option 1: Setup a virtual machine with a supported Windows Operating system, and
host that virtual machine from your Linux or Mac environment. Install the power
monitor software and drivers on the virtual machine. Attach the power monitor
device(s) directly to your Linux/Mac host and access them via the Virtual Machine.
Power off the power monitor, connect the 40 ohm resistor across the main channel
leads, power on the power monitor and Power Tool software, enable Vout at 3.7 volts
and start a sampling run.
41
42
Calibrated Channel
Current Range
Main Fine
MainFine
0-45 mA
Main Coarse
MainCoarse
45 mA 3.0A
USB Fine
USBFine
0-45 mA
USB Coarse
USBCoarse
45 800 mA
Aux Fine
AuxFine
0-45 mA
AuxCoarse
AuxCoarse
45 mA 3.0 A
Minimum
Maximum
2.01 V
4.55 V
Continuous current
Integrator cutoff
frequency
4.0 A
300 kHz
2.86 uA
+/- 1% or +/- 50 uA
(whichever is greater)
30 mA
286 uA
+/- 1% or +/- 1 mA
(whichever is greater)
Programmable current
limit range
8 mA
8A
Programmable current
limit accuracy
Positive temperature
coefficient (PTC) hold
limit at 6 V of direct
current input (DCIN)
3A
Not applicable
43
40 mA
4A
6A
50 C
USB Channel
Component
Min
Max
2.1 V
5.4 V
Continuous current
0.8 A
Integrator cutoff
frequency
44
300 kHz
50 uA
2.86 uA
+/- 1% or +/- 50 uA
(whichever is greater)
30 mA
286 uA
+/- 1% or +/- 1 mA
(whichever is greater)
0.52 A
0.85 A
1.04 A
1.7 A
40 mA
4.5 A
Auxiliary Channel
Component
Min
Max
1.0 V
5.0 V
45
0.1 V
Integrator cutoff
frequency
300 kHz
0 mA
2.58 uA
+/- 1% or +/- 50 uA
(whichever is greater)
10 mA
100 uA
+/- 1% or +/-1mA
(whichever is greater)
22uF+/- 20%
Not applicable
12 mA
500 mA @ Vin = 1V
1 A @ Vin = 1.8 V
1% of 0.1 resistor
current
The battery bypass provides a means for the device under test to communicate with the
battery while drawing power from the Power Monitor. The connection is created by
insulating the Voltage (+) terminal on the battery and creating a direct bypass between the
Power Monitor Vout to the device. The circuit is completed by connecting directly to the
Ground (-) terminal on the battery.
In order to modify the battery to properly connect to the Power Monitor please follow these
steps.
Note: Wear safety goggles at all times while working with exposed battery
terminals and wiring. Connecting the Mobile Device Power Monitor to a device to
collect current measurements can be complicated and dangerous. Be sure that the
area you are conducting power measurements is protected from fire dangers and
do not have flammable items nearby. These measurements are at your own risk
and these procedures are not guaranteed to prevent damage or injury.
46
Locate the Voltage (+) and Ground (-) terminals on the battery as shown in Figure 465. If
they are not labeled verify using an ohmmeter/voltmeter.
Cover the Voltage (+) terminal with insulating Kapton tape to isolate it from any ground
connection.
47
Cover the main body of the battery with Kapton tape to protect from solder drippings and if
needed, to easily be able to remove the copper tape.
48
Cut 2 pieces of the copper tape into approximately 8 centimeters length and 5 millimeter
width. Taper the end to match the width of the battery terminals. Widths of the terminals
vary from battery to battery.
Place the adhesive side of the copper tape on the Voltage (+) battery terminal. Make sure
that the copper tape does not make contact with the adjacent battery terminals.
The copper tape should sit on top of Kapton tape of the Voltage (+) terminal and not make
any contact with the Voltage (+) battery terminal.
Place a second strip of tape adhesive side down over the Ground (-) battery terminal
making sure it sits in securely in the Ground (-) battery terminal and makes good contact.
The copper tape should not come in contact with any other adjacent battery terminal.
Fold both copper tapes over the battery on the side that will be exposed when placed into
the device. Secure the copper tape with Kapton tape leaving the ends of the copper tape
exposed.
49
Cut a 10 centimeter length piece each of the black and red 24 AWG wire. Solder the black
test point to the black wire to create a test lead. Solder the red test point to the red wire to
create a test lead. Cover the solder connection to the test points with heat shrink (optional).
You can cover the solder joints with epoxy to make them more secure. This is optional.
Test the copper tape connections by first placing the battery back into the device. Do not
connect the device under test to the Power Monitor.
Try to power-up the device. The device should not power-up because the battery voltage
has been bypassed with the copper and insulating tape. If the device powers-up, then go
back and re-assess the application of the copper and insulating tape and make sure you
have selected the correct battery terminals.
If the device does not power up, then the connections are correct and testing may begin.
Connect the supplied mini grabber J-hooks to the corresponding loops from the battery.
Plug the banana plugs to the correct voltage output channels on the Power Monitor. Device
under test should only power up when power is supplied by the Power Monitor Vout
enabled.
Figure 52
If the device under test is exhibiting low battery warnings and higher voltage is required to
power the device up, it is likely that the battery test leads are too long and/or have an
incorrect cable gauge rating.
51
52
Switch
Description
/LOADFILE=file
/ISTART
/TRIGGER=string
See section on
/TESTMINPOWER=value
/TESTMAXPOWER=value
/SAVEFILE=file
/CAPTUREDATAMASK=value
/NOHARDWARE
/SERIAL=value
/KEEPPOWER
/VOUT=value
/TEMPDIR=path
/USBPASSTHROUGH=mode
/USB=mode
/NOEXITWAIT
/EXITCODES
Trigger codes
The following is the syntax of a trigger code:
{A|Bn|Cnt|Dqrn|E}[{An|Bn}]T[{Yn}]{A|Bn|Cn|Dnt|Eqrn}[An]
The capital letters are literals. n represents a numeric quantity (in positive decimal or
integer values, depending on the code), and q, r and t are place-holders for code
letters, explained below.
The T is the dividing line in the trigger code between values that are interpreted as start
conditions (those before the T) and values that are interpreted as stop conditions (those
after the T).
At the highest level, the string breaks down into:
<start_code><optional_start_qualifier>T<optional_export_flag><stop_code><o
ptional_stop_qualifier>
The following table lists the possible values of <start_code>:
53
Code
Meaning
Bn
Code
Meaning
Cnt
Dqrn
Start when quantity q has relationship r with the number n (see q and r
below), where n is a positive decimal
Start immediately
Meaning
An
Bn
Meaning
Yn
Note: CSV export support were added in version 4.0.4.4. Prior to that version, this feature
was not implemented. Granularity of export was added in version 4.0.4.12.
The following table lists the possible values of <stop_code>:
Code
Meaning
Manual stop [Warning: do NOT use when running in command line mode or you
will need to manually kill the process to exit the application.]
Bn
Cn
Dnt
Stop after n time units of type t (see t below), where n is a positive integer
Eqrn
Stop when quantity q has relationship r with the number n (see q and r
below), where n is a positive decimal
Meaning
An
Meaning
Min power
Avg power
Max power
Min current
Avg current
Max current
Min Vout
Avg Vout
Max Vout
Meaning
>=
<=
Rises above
Falls below
Meaning
Seconds (s)
Milliseconds (ms)
The shortest time allowed is 1 msec. The longest time allowed to be specified is equivalent
to 4 weeks.
For example, a trigger code DBA300A500TYC20000A500 would be interpreted as follows:
55
Code
Meaning
DBA300
A500
Fixed delimiter
C20000
A500
If no trigger code is specified at all, a default of ATA will be used, which is how the main
GUI PowerTool application starts. This is not desirable for command-line operation, as it
causes it to run in manual exit mode and there is no way to issue a signal to exit the
application from the executing command line. When running in command line mode, you
should be sure to specify a TRIGGER setting with a stop_code of other than A.
The main PowerTool GUI application has the ability to help you formulate trigger codes for
use with the command line version of the application. From the PowerTool GUI application,
select Set Capture Triggers, put in your desired settings, and then select Code. The
resulting trigger code will be displayed in a separate window.
56
The capture data mask stores the values you have specified in the UI to preserve your
preferences in the ini file, and is also how you specify what to export when using command
line operation.
Test complete OK
Header section
The first 212 bytes are the header, as follows:
57
Name
Description
C# data type
Bytes
File
offset
headSize
Header size
int
Name
PowerTool
string
20
batterySize
mAh
int
24
captureDate
System.DateTime binary
long
28
serialNumber
string
20
36
calibrationStatus
CalibrationStatu
s enum
56
voutSetting
VoutSetting
enum
60
voutValue
float
64
Name
Description
C# data type
Bytes
File
offset
hardwareRate
Hz
int
68
softwareRate
Hz
float
72
powerField
SelectField enum
76
currentField
SelectField enum
80
voltageField
SelectField enum
84
captureSetting
Trigger specification
string
30
88
swVersion
PowerTool version
string
10
118
runMode
RunMode enum
128
exitCode
int
132
totalCount
long
136
statusOffset
ushort
144
statusSize
ushort
146
sampleOffset
ushort
148
sampleSize
ushort
150
initialMainVoltage
See Table 5.
ushort
152
initialUsbVoltage
See Table 5.
ushort
154
initialAuxVoltage
See Table 5.
ushort
156
captureDataMask
ushort
158
sampleCount
Sample count
ulong
160
missingCount
ulong
168
sumMainVoltage
float
176
sumMainCurrent
float
180
sumMainPower
float
184
sumUsbVoltage
float
188
sumUsbCurrent
float
192
sumUsbPower
float
196
sumAuxVoltage
float
200
sumAuxCurrent
float
204
sumAuxPower
float
208
Total length:
58
212
Definition
Description
CalibrationStatus
OK=0
Failed=1
Status of calibration
VoutSetting
Typical=0 (3.7 V)
Low=1 (3.35 V)
High=2 (4.2 V)
Custom=3
SelectField
None=0x00
Avg=0x01
Min=0x02
Max=0x04
Main=0x08
Usb=0x10
Aux=0x20
Marker=0x40
RunMode
NoGUI=0
GUI=1
Channel
0x1000
Main
0x2000
USB
0x4000
Aux
59
Mask
Field
Mask
Field
Mask
Field
0x0100
Min Voltage
0x0010
Min Current
0x0001
Min Power
0x0200
Avg Voltage
0x0020
Avg Current
0x0002
Avg Power
0x0400
Max Voltage
0x0040
Max Current
0x0004
Max Power
0x1020
0x1222
0x2002
0x1637
0x2777
The file is padded with zeros until offset 272 (144+128), where a Status packet from the
Power Monitor hardware is recorded, as follows:
60
Name
Description
C# data type
Bytes
File
offset
Packet
offset
packetLength
byte
272
packetType
byte
273
firmwareVersion
Firmware version
byte
274
protocolVersion
Protocol version
byte
275
mainFineCurrent
short (signed)
276
usbFineCurrent
short (signed)
278
auxFineCurrent
short (signed)
280
voltage1
Voltage of selected
channel. See Table 5.
ushort
282
10
mainCoarseCurrent
short (signed)
284
12
usbCoarseCurrent
short (signed)
286
14
auxCoarseCurrent
short (signed)
288
16
voltage2
Voltage of selected
channel. See Table 5.
ushort
290
18
outputVoltageSetting
Volts = 2.0 +
outputVoltageSetting *
0.01
byte
292
20
temperature
Degrees Celsius
byte
293
21
status
byte
294
22
reserved
Unused
byte
295
23
leds
byte
296
24
voltageIsAux
mainFineResistor
Resistor offset
(ohms = 0.05 + offset *
0.0001)
sbyte (signed)
297
25
serialNumber
Serial number
ushort
298
26
sampleRate
kHz
byte
300
28
dacCalLow
ushort
301
29
dacCalHigh
ushort
303
31
powerUpCurrentLimit
ushort
305
33
(amps = 8 * ((1limit)/1023)
61
runTimeCurrentLimit
ushort
307
35
powerUpTime
ms
byte
309
37
usbFineResistor
Resistor offset
(ohms = 0.05 + offset *
0.0001)
sybte (signed)
310
38
auxFineResistor
Resistor offset
(ohms = 0.10 + offset *
0.0001)
sbyte (signed)
311
39
initialUsbVoltage
See Table 5.
ushort
312
40
initialAuxVoltage
See Table 5.
ushort
314
42
hardwareRevision
byte
312
44
temperatureLimit
Degrees Celsius
byte
313
45
usbPassthroughMode
byte
314
46
mainCoarseResistor
Resistor offset
(ohms = 0.05 + offset *
0.0001)
sbyte (signed)
315
47
usbCoarseResistor
Resistor offset
(ohms = 0.05 + offset *
0.0001)
sbyte (signed)
316
48
auxCoarseResistor
Resistor offset
(ohms = 0.10 + offset *
0.0001)
sbyte (signed)
317
49
defMainFineResistor
sbyte (signed)
318
50
defUsbFineResistor
sbyte (signed)
319
51
defAuxFineResistor
sbyte (signed)
320
52
defMainCoarseResistor
sbyte (signed)
321
53
defUsbCoarseResistor
sbyte (signed)
322
54
defAuxCoarseResistor
sbyte (signed)
323
55
eventCode
Event code:
byte
324
56
0 = none
1 = USB connection lost
2 = too many dropped
samples
3 = reset requested by
host
eventData
Supplementary event
data (interpretation
depends on eventCode)
ushort
325
57
reserved
varied
varied
327
59
checkSum
Checksum byte
byte
varied
varied
Total length
varied
Table 3 Status packet layout
The file is then padded with zeros up until file offset 1024, where the sample data begins.
62
C# Data
Type
Bytes
Tick value
Present if:
Main Current
Int32
(signed)
1 uA (fine)
(captureDataMask &
0x1000) != 0
Int32
(signed)
Int32
(signed)
ushort
(unsigned)
USB Current
Aux Current
Main or Aux
Voltage, and
Markers
250 uA (coarse)
1 uA (fine)
250 uA (coarse)
1 uA (fine)
(captureDataMask &
0x2000) != 0
250 uA (coarse)
(captureDataMask &
0x4000) != 0
See Table 5.
Always
The following table lists the value of each voltage tick in microvolts (uV), depending on the
hardware revision level and the channel:
63
Hardware
Revision
Main
USB
Aux
62.5 uV / tick
62.5 uV / tick
62.5 uV / tick
125 uV / tick
125 uV / tick
62.5 uV / tick
C or later
125 uV / tick
125 uV / tick
125 uV / tick
64
65