Mobile Device Power Monitor Manual - GitHub Pages
Mobile Device Power Monitor Manual - GitHub Pages
Mobile Device Power Monitor Manual - GitHub Pages
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
44<br />
Marker 0x8000<br />
Voltage 0x0700<br />
Table 3: Channel selection masks<br />
For example, if the bitwise-Boolean expression (captureDataMask & x02000) is non-zero,<br />
then current data for the Aux1 channel is being recorded in the file. If (captureDataMask<br />
& 0x0700) is non-zero or (captureDataMask & 0x8000) is non-zero, then voltages and<br />
markers are being recorded in the file. The section on the sample data will explain this<br />
further.<br />
The file is padded with zeros until offset 272 (144+128), where a Status packet from the<br />
<strong>Power</strong> <strong>Monitor</strong> hardware is recorded, as follows:<br />
Name Description C# data type Bytes File<br />
offset<br />
packetLength Length-1 of packet (59<br />
for Protocol 16, but may<br />
expand in later<br />
protocols)<br />
byte 1 272 0<br />
packetType 0x10 for Status packet byte 1 273 1<br />
firmwareVersion Firmware version byte 1 274 2<br />
protocolVersion Protocol version byte 1 275 3<br />
mainFineCurrent Main current, fine scale short (signed) 2 276 4<br />
usbFineCurrent Usb current, fine scale short (signed) 2 278 6<br />
auxFineCurrent Aux current, fine scale short (signed) 2 280 8<br />
voltage1 Voltage of selected<br />
channel. See Table 6.<br />
mainCoarseCurrent Main current, coarse<br />
scale<br />
usbCoarseCurrent Usb current, coarse<br />
scale<br />
auxCoarseCurrent Aux current, coarse<br />
scale<br />
voltage2 Voltage of selected<br />
channel. See Table 6.<br />
outputVoltageSetting Volts = 2.0 +<br />
outputVoltageSetting *<br />
0.01<br />
ushort 2 282 10<br />
short (signed) 2 284 12<br />
short (signed) 2 286 14<br />
short (signed) 2 288 16<br />
ushort 2 290 18<br />
byte 1 292 20<br />
temperature Degrees Celsius byte 1 293 21<br />
status Bit flags (low to high):<br />
unitNotAtVoltage<br />
cannot<strong>Power</strong>Output<br />
checksumError<br />
followsLastSamplePacke<br />
byte 1 294 22<br />
Packet<br />
offset