merge: the monitor log line from the file's footer (group F)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
commit
15112ef83b
15 files changed
+659
-16
No files matched your search
@@ -45,12 +45,14 @@ Read this first when picking the project back up.
|
||||
- **Byte layouts** of every field read from the file:
|
||||
`docs/instantel_protocol_reference.md` Appendix **D.6**.
|
||||
|
||||
**Where the decoder stands on `dev`** (2026-11-06, run `20261106-125854`):
|
||||
**71 of 88 fields match on every event**, up from about 6 before v0.33.0,
|
||||
**Where the decoder stands on `dev`** (2026-11-08, run `20261108-034313`):
|
||||
**72 of 88 fields match on every event**, up from about 6 before v0.33.0,
|
||||
47 before group D and 59 after it.
|
||||
- Groups A, B, C and D part 1 shipped in v0.34.0 (#50, #51).
|
||||
- D part 2 (the unit's own summary) and E (the sensor check) are on `dev`
|
||||
and owe the next release a backfill.
|
||||
- D part 2 (the unit's own summary), E (the sensor check) and F (the
|
||||
monitor log) are on `dev` and owe the next release a backfill.
|
||||
- Still open: the mic stragglers, the `OORANGE` tag (18 events), the PPV /
|
||||
vector-sum `OORANGE` carve-out, 4 accelerations.
|
||||
- 🔑 **Events are keyed unit + time + type:** `UNIQUE(serial, timestamp,
|
||||
record_type)` (#51, Migration 3 in `sfm/database.py`, `dev`).
|
||||
- A waveform and its histogram may share a second: 209 times in prod's
|
||||
@@ -81,6 +83,9 @@ Read this first when picking the project back up.
|
||||
result, every record type. Also the unit's own, in each sensor-check
|
||||
record's header. "Check" is the unit's status code, not a limit SFM can
|
||||
recompute.
|
||||
- group F (D.6.14): the Monitor Log line. It is the footer's start and
|
||||
stop plus words from the footer's flag word (Modem Exit, Timer Stop,
|
||||
Keyboard Exit…), character for character on 69,983 / 69,983.
|
||||
- 🔑 **The tail of every event file is one record chain** (D.6.13):
|
||||
event record → unit summary → sensor checks → footer, each
|
||||
`[length][id][payload]`. It ends exactly at the file's end on all 70,041
|
||||
@@ -124,9 +129,7 @@ Read this first when picking the project back up.
|
||||
is Blastware's.
|
||||
- ~~**E. Sensor check results**~~ ✅ done (D.6.13). Plus the traces of a
|
||||
unit without a mic, which the trace decoder had been dropping.
|
||||
- **F. Monitor log:** probably not in the event file at all. Lead, not
|
||||
measured: O117I1NK's report prints its log as the event record's
|
||||
start – stop.
|
||||
- ~~**F. Monitor log**~~ ✅ done (D.6.14): in the footer after all.
|
||||
- 🔶 **#48 is still open.** The event file's setup block puts the pre-trigger
|
||||
where the 1A "stable anchor" `be 80 00 00 00 00` sits. In the file, though,
|
||||
it is **each event's own pre-trigger**, not the setting: 253–256 samples at
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
| Date | Section | Change |
|
||||
|---|---|---|
|
||||
| 2026-11-08 | Appendix D.6.14 (NEW), D.3.3, D.6.11 | ✅ **The monitor log is in the footer.** Every DL2 report prints one Monitor Log line: the footer's ts1 and ts2, then words for the footer's flag word `[18:20]` (`0x0001` Event Recorded, `0x0002` Keyboard Exit, `0x0004` Remote Exit, `0x0008` Selfcheck Passed, `0x0010` Timer Stop, `0x0020` Modem Exit, `0x0200` Battery Low Exit, `0x0800` Memory Full Exit; the higher session-end bit wins, from one file). Rebuilt, it equals Blastware's character for character on 69,983 / 69,983. **D.3.3:** footer `[20:22]` is the trigger source again, `[22:24]` is zero; `[24:26]` still unknown, and no common CRC-16 or sum fits. **72 of 88 report fields now match on every DL2 event.** |
|
||||
| 2026-11-06 | Appendix D.6.13 (NEW), D.3.3, D.6.11, D.6.12 | ✅ **The record chain to the footer, and the sensor check.** Walked from the event record, the chain (event `0x05` → unit's summary `0x32`–`0x35` → sensor checks `0x3c`–`0x3f` → footer `0x0e`) ends exactly at the file's end on all 70,041 DL2 files. The footer is its last record: `00 1a` is its length, `0e` its id. **Each sensor-check record's header holds the unit's results:** channel type `[2]`, status `[4]` (0 = passed), frequency × 10 `[5:7]`, ratio × 10 `[7:9]` and amplitude mV `[9:11]`. Blastware prints them as they are: 209,943 / 209,943 geophone frequencies and ratios, 69,975 / 69,975 mic frequencies and amplitudes. The result is Passed / Check / Disabled by status and type. The status is the unit's own verdict, its bits not decoded. D.6.12's "`0x3c` / `0x3d`, before and after" retracted in place: one record per channel. **71 of 88 report fields now match on every DL2 event.** |
|
||||
| 2026-11-05 | Appendix D.6.12 (NEW), D.6.11, §7.8.9 | ✅ **The unit's own event summary, in every event file.** The embedded event record is the first of a `[length][id][payload]` chain. It holds the vector-sum peak's sample (6,492 / 6,493). Then one 22-byte record per channel, ids `0x32` Tran … `0x35` MicL: min, max, peak sample, **half-period** and a **displacement integral**. Blastware prints them as they are. **ZC frequency** = (rate / 2) / half-period, with the interval rule's words: 25,966 / 25,966 waveform and 253,958 / 253,958 histogram channel values. **Peak displacement** = half the integral: 19,479 / 19,479. Recomputing from the samples had reached 46% and 84%: the unit works at full resolution. **Times of peak** follow the unit's peak sample. That differs from the samples only on **O117I1NK.R70W**, whose stored samples wrap at the trigger by 65,536 counts (Blastware's own table has the same values). Peak acceleration is Blastware's own computation from the stored samples (group D part 1, documented here too). The unit stores its own largest step at `[15:21]` (inferred), which Blastware does not print. §7.8.9's "constant, meaning ❓" bytes amended in place. 59 of 88 report fields now match on every DL2 event (47 before group D). |
|
||||
| 2026-11-04 | SUB 1A / 09 reads, SUB 68–74 settings write, the keypad | **SFM's settings write, benched on BE9441 (Brian at the unit; ~12 writes, each with his go).** **Every write** -- trigger 0.04 ↔ 0.05, a note, several fields at once (Project, job number + its report flag, trigger), the alarm 1.0 ↔ 1.5, and a full restore -- was acknowledged on all nine steps (`97 8C 8E×5 8D 7D 7C 96 8B 8D`), read back as sent, and **confirmed on the unit's own screen**; the unit ended byte for byte as found. Moved bytes were exactly the field's: trigger f32 at each geophone channel +30 (`+31..+33` moved), **alarm f32 at channel +38** (`+39` moved; the first Series-3 alarm write), job number `[40:42]`, its report bit `[39]` `0x02`, a note's value window. **`[26:28]`** went `01 7f` → `00 00` on SFM's first write (Blastware's value) and the unit **set `01 7f` again during the next monitoring session**. The **two bytes after the block** went out as `00 00` (Blastware sends a per-unit constant) and were taken. **🔑 Escaped-checksum artifact:** when a reply's checksum byte is itself escaped (02 / 03 / 04, ~1 frame in 85), `S3FrameParser` keeps the escape's `0x10` and strips only the byte after it, so the frame's data gains one trailing `0x10`. It hit the first live 1A read (frame B 1,026 bytes after the header); the 12 recorded reads never had. SFM's settings read and waveform read now take exactly the length they asked for. **🔑 The keypad menu wins:** a write sent while the setup menu was open was acknowledged and read back, then **lost when the operator pressed Cancel or Save** -- the menu writes its own copy of the **whole** block back (both times the block returned byte for byte to its state when the menu was opened). A keypad Cancel with nothing pending leaves the block unchanged. **While monitoring**, the 1A read returns the device-info block (SFM refuses, nothing sent), and the opening poll was answered only intermittently (2 of 3 attempts timed out). Code: `minimateplus.protocol.read_compliance_content` / `read_waveform_data_raw`, `micromate.setup_fields`; notes `~/bench-logs/2026-11-04-sfm-settings/`. |
|
||||
@@ -3479,8 +3480,11 @@ The footer terminates the N00 file. Its bytes come directly from the terminator
|
||||
| 0 | 2 | `0e 08` | Fixed marker |
|
||||
| 2 | 8 | ts1 | Start timestamp (8B big-endian) |
|
||||
| 10 | 8 | ts2 | Stop timestamp (8B big-endian) |
|
||||
| 18 | 6 | varies | ⚠ **Not fixed** (2026-11-03). `00 01 00 02 00 00` in M529LIY6.N00. Elsewhere: `00 21 04 00 00 00` (K558L9XP.FK0H, K439I2WY.RK0H, T1895KDW.6J0H), `00 01 02 00 00 00` (K5575KDW.5L0W), `00 01 00 01 00 00` (S3545KFL.S60W). Not identified |
|
||||
| 24 | 2 | CRC | 2-byte CRC — algorithm unconfirmed |
|
||||
| 18 | 6 | varies | ⚠ **Not fixed** (2026-11-03). `00 01 00 02 00 00` in M529LIY6.N00. Elsewhere: `00 21 04 00 00 00` (K558L9XP.FK0H, K439I2WY.RK0H, T1895KDW.6J0H), `00 01 02 00 00 00` (K5575KDW.5L0W), `00 01 00 01 00 00` (S3545KFL.S60W). Not identified. **Identified 2026-11-08, three rows below** |
|
||||
| 18 | 2 | monitor-log flags | uint16 BE: the words of Blastware's Monitor Log line (D.6.14) ✅ 69,983 / 69,983 |
|
||||
| 20 | 2 | trigger source | the event record's again: `00 01`–`00 08` a channel, `02 00` Manual, `04 00` a histogram ✅ 69,983 / 69,983 |
|
||||
| 22 | 2 | `00 00` | 69,983 / 69,983 |
|
||||
| 24 | 2 | CRC | 2-byte CRC — algorithm unconfirmed. ⚠ 2026-11-08: no common CRC-16 (XMODEM, CCITT-FALSE, AUG-CCITT, KERMIT, ARC, MODBUS, BUYPASS) nor a 16-bit sum, over the file, from STRT, after STRT or over the footer, fits 40 sampled files. That it is a checksum is not shown |
|
||||
|
||||
**CRC:** The 2-byte CRC at footer[24:26] has an unconfirmed algorithm. In M529LIY6.N00 it reads `fe da`. Attempts to match CRC-16/CCITT, CRC-16/IBM, CRC-32 (truncated), and 40+ polynomial/init combinations all failed. The writer copies it verbatim from the terminator frame.
|
||||
|
||||
@@ -3964,13 +3968,15 @@ All four channels match every DL2 histogram.
|
||||
|
||||
#### D.6.11 Not read from the file yet
|
||||
|
||||
*Updated 2026-11-06. 71 of 88 report fields now match on every DL2 event: 47 before group D,
|
||||
59 after it, 71 with the sensor check (run `20261106-125854`, 0 regressions).*
|
||||
*Updated 2026-11-08. 72 of 88 report fields now match on every DL2 event: 47 before group D,
|
||||
59 after it, 71 with the sensor check, 72 with the monitor log (run `20261108-034313`,
|
||||
0 regressions). Still open: the mic stragglers, the `OORANGE` tag (18 events), the
|
||||
PPV / vector-sum `OORANGE` carve-out, and 4 accelerations (D.6.12).*
|
||||
- **Fields not read yet:**
|
||||
- extended notes
|
||||
- ~~sensor check results~~ **read, 2026-11-06 (D.6.13)**: the unit's own, in the header of
|
||||
each sensor-check record
|
||||
- monitor log
|
||||
- ~~monitor log~~ **read, 2026-11-08 (D.6.14)**: the footer's times and flag word
|
||||
- ~~the values Blastware computes: ZC frequency, acceleration, displacement, time of peak~~
|
||||
**Read, 2026-11-04 → 05 (D.6.12).** Blastware prints the unit's own ZC frequency,
|
||||
displacement and time of peak, all stored in the file. Acceleration is the exception:
|
||||
@@ -4102,6 +4108,49 @@ of the four bits occurs across the whole range of frequency, ratio and amplitude
|
||||
meanings are not decoded. Every mic `Check` in DL2 (691) is status 13 with frequency 0 and
|
||||
amplitude 0: a mic that did not respond (inferred).
|
||||
|
||||
#### D.6.14 The monitor log — the footer ✅ 2026-11-08
|
||||
|
||||
**Every DL2 report prints exactly one Monitor Log line**, built from the footer (D.3.3) alone:
|
||||
|
||||
<footer ts1> - <footer ts2> "<words>"
|
||||
|
||||
- **Start and stop:** the footer's ts1 and ts2 on 69,983 / 69,983. For a waveform ts1 is the
|
||||
monitoring session's start (§7.8.9). For a histogram both are the session's.
|
||||
- **The words** come from the footer's flag word `[18:20]`, uint16 BE:
|
||||
|
||||
| bit | words |
|
||||
|---|---|
|
||||
| `0x0001` | `Event Recorded ` (set on every DL2 line) |
|
||||
| `0x0002` | `Keyboard Exit` |
|
||||
| `0x0004` | `Remote Exit` |
|
||||
| `0x0008` | `Selfcheck Passed` |
|
||||
| `0x0010` | `Timer Stop` |
|
||||
| `0x0020` | `Modem Exit` |
|
||||
| `0x0200` | `Battery Low Exit` |
|
||||
| `0x0800` | `Memory Full Exit` |
|
||||
|
||||
**Rule:** "Event Recorded " plus, when a session-end bit is set, one space and its words.
|
||||
Rebuilt that way, the line equals Blastware's **character for character on 69,983 / 69,983**.
|
||||
- One line sets Modem and Timer (`0x0031`) and prints only "Modem Exit": the higher bit wins.
|
||||
That is one file, so the order of the other bits is inferred.
|
||||
- Bits not seen in DL2 have no known words.
|
||||
|
||||
**How common each is in DL2:**
|
||||
|
||||
| Words | Lines |
|
||||
|---|---|
|
||||
| Modem Exit | 58,941 (a modem connection ended the session; a call-home, inferred from the words) |
|
||||
| no session end (continuous waveforms) | 6,480 |
|
||||
| Timer Stop | 4,046 |
|
||||
| Keyboard Exit | 245 |
|
||||
| Remote Exit | 178 |
|
||||
| Battery Low Exit | 65 |
|
||||
| Selfcheck Passed | 20 |
|
||||
| Memory Full Exit | 8 |
|
||||
|
||||
SFM reads the line only when the record chain is whole (D.6.13), which proves the last 26
|
||||
bytes are the footer.
|
||||
|
||||
---
|
||||
|
||||
*All findings reverse-engineered from live RS-232 bridge captures.*
|
||||
|
||||
@@ -157,6 +157,11 @@ def sfm_side(raw: bytes) -> SfmSide:
|
||||
("LongZCFreq", pv.long_zc_freq), ("MicLZCFreq", pv.mic_zc_freq)):
|
||||
if hz is not None:
|
||||
values[tag] = "<1.0" if hz < 1.0 else hz
|
||||
# The event's Monitor Log line, from the footer (2026-11-08).
|
||||
if ev.monitor_log is not None:
|
||||
ml = ev.monitor_log
|
||||
values["MonitorLog"] = (f'{ml.start:%Y-%m-%d %H:%M:%S} - {ml.stop:%Y-%m-%d %H:%M:%S} '
|
||||
f'"{ml.description}"')
|
||||
# The unit's sensor check (2026-11-06), every record type.
|
||||
for ch, r in (ev.sensor_check_results or {}).items():
|
||||
values[f"{ch}TestResults"] = r.result
|
||||
|
||||
@@ -26,7 +26,8 @@ import struct
|
||||
from pathlib import Path
|
||||
from typing import Optional, Union
|
||||
|
||||
from .models import DeviceInfo, Event, PeakValues, ProjectInfo, SensorCheckResult, Timestamp
|
||||
from .models import (DeviceInfo, Event, MonitorLogLine, PeakValues, ProjectInfo, SensorCheckResult,
|
||||
Timestamp)
|
||||
from . import blastware_file as _bw # avoid circular reference at module load
|
||||
from .bw_ascii_report import BwAsciiReport
|
||||
from . import waveform_codec as _wc
|
||||
@@ -1162,6 +1163,40 @@ def _sensor_check_results(chain: dict[int, bytes]) -> Optional[dict[str, SensorC
|
||||
return out or None
|
||||
|
||||
|
||||
# The Monitor Log line Blastware prints for an event is the footer's start and
|
||||
# stop, then words for the footer's flag word [18:20]: 69,983 / 69,983 DL2
|
||||
# lines, character for character (2026-11-08). Every DL2 line has "Event
|
||||
# Recorded"; a session that ended adds how. One line sets Modem and Timer and
|
||||
# prints Modem, so the higher bit wins -- the order of the others is inferred.
|
||||
_MONITOR_LOG_RECORDED = 0x0001
|
||||
_MONITOR_LOG_ENDS = { # highest bit first
|
||||
0x0800: "Memory Full Exit",
|
||||
0x0200: "Battery Low Exit",
|
||||
0x0020: "Modem Exit",
|
||||
0x0010: "Timer Stop",
|
||||
0x0008: "Selfcheck Passed",
|
||||
0x0004: "Remote Exit",
|
||||
0x0002: "Keyboard Exit",
|
||||
}
|
||||
_FOOTER_ID = 0x0E
|
||||
_FOOTER_LEN = 26
|
||||
|
||||
|
||||
def monitor_log_description(flags: int) -> str:
|
||||
"""Blastware's Monitor Log words for a footer flag word."""
|
||||
words = "Event Recorded " if flags & _MONITOR_LOG_RECORDED else ""
|
||||
end = next((w for bit, w in _MONITOR_LOG_ENDS.items() if flags & bit), None)
|
||||
return words + (" " + end if end else "")
|
||||
|
||||
|
||||
def _monitor_log(footer: bytes) -> Optional[MonitorLogLine]:
|
||||
start, stop = _bw._decode_ts_be(footer[2:10]), _bw._decode_ts_be(footer[10:18])
|
||||
if start is None or stop is None:
|
||||
return None
|
||||
flags = int.from_bytes(footer[18:20], "big")
|
||||
return MonitorLogLine(start, stop, flags, monitor_log_description(flags))
|
||||
|
||||
|
||||
def _parse_record_time_seconds(raw: bytes) -> Optional[float]:
|
||||
"""The configured post-trigger record time in seconds, from the recording-
|
||||
setup config block, or None when absent / implausible."""
|
||||
@@ -1457,12 +1492,13 @@ def decode_blastware_bytes(raw: bytes, *, name: Optional[str] = None) -> Event:
|
||||
body = raw[body_start : footer_pos]
|
||||
footer = raw[footer_pos : footer_pos + 26]
|
||||
|
||||
# Footer layout:
|
||||
# Footer layout (the record chain's last record, id 0e: D.6.13):
|
||||
# [0:2] 0e 08 marker
|
||||
# [2:10] ts1 (start) BE 8B
|
||||
# [10:18] ts2 (stop) BE 8B
|
||||
# [18:24] 00 01 00 02 00 00
|
||||
# [24:26] crc
|
||||
# [18:20] the monitor log's flag word (_monitor_log)
|
||||
# [20:22] the trigger source, as in the event record [22:24] 00 00
|
||||
# [24:26] not identified (no common CRC-16 or 16-bit sum fits)
|
||||
ts1 = _bw._decode_ts_be(footer[2:10])
|
||||
ts2 = _bw._decode_ts_be(footer[10:18])
|
||||
|
||||
@@ -1664,6 +1700,10 @@ def decode_blastware_bytes(raw: bytes, *, name: Optional[str] = None) -> Event:
|
||||
_chain = _record_chain(raw, _record_at) if _record_at is not None else None
|
||||
_summary = _unit_summary(_chain) if _chain is not None else None
|
||||
ev.sensor_check_results = _sensor_check_results(_chain) if _chain is not None else None
|
||||
# A whole chain ends at the file's last byte with the footer, so the last
|
||||
# 26 bytes are proven to be it.
|
||||
if _chain is not None and _FOOTER_ID in _chain:
|
||||
ev.monitor_log = _monitor_log(raw[-_FOOTER_LEN:])
|
||||
if _summary is not None and ev.peak_values is not None and ev.sample_rate:
|
||||
_apply_unit_summary(ev.peak_values, _summary, geo_fs, ev.sample_rate,
|
||||
ev.pretrig_samples if is_waveform_body else None)
|
||||
|
||||
@@ -394,6 +394,17 @@ class SensorCheckResult:
|
||||
amplitude_mv: Optional[int] = None # the mic only
|
||||
|
||||
|
||||
@dataclass
|
||||
class MonitorLogLine:
|
||||
"""The Monitor Log line Blastware prints for an event, from the file's
|
||||
footer (2026-11-08): the monitoring session's start, the stop, and what
|
||||
happened. Not the live 0x0A browse entries (MonitorLogEntry)."""
|
||||
start: datetime.datetime
|
||||
stop: datetime.datetime
|
||||
flags: int # the footer's flag word
|
||||
description: str # Blastware's words, e.g. "Event Recorded Modem Exit"
|
||||
|
||||
|
||||
# ── Project / operator metadata ───────────────────────────────────────────────
|
||||
|
||||
@dataclass
|
||||
@@ -606,6 +617,9 @@ class Event:
|
||||
# And its results per channel, from the same records (2026-11-06): None
|
||||
# when the file's record chain is not whole.
|
||||
sensor_check_results: Optional[dict] = None # channel -> SensorCheckResult
|
||||
# The event's Monitor Log line (2026-11-08): None unless the file's record
|
||||
# chain is whole, which proves the footer.
|
||||
monitor_log: Optional[MonitorLogLine] = None
|
||||
|
||||
# Where `timestamp` came from, when decoded from a Blastware binary
|
||||
# (event_file_io): "event_record" -- the instrument's own event record in
|
||||
|
||||
BIN
Binary file not shown.
+116
@@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Event>
|
||||
<FileVersion>8.0</FileVersion>
|
||||
<EventType>Full Histogram</EventType>
|
||||
<SerialNumber>BE9559</SerialNumber>
|
||||
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||
<FileName>K559HCQ7.IU0H</FileName>
|
||||
<HistogramStartTime>17:06:30</HistogramStartTime>
|
||||
<HistogramStartDate>2018-04-02</HistogramStartDate>
|
||||
<HistogramStopTime>17:07:47</HistogramStopTime>
|
||||
<HistogramStopDate>2018-04-02</HistogramStopDate>
|
||||
<Channels>
|
||||
<Channel>Tran</Channel>
|
||||
<Channel>Vert</Channel>
|
||||
<Channel>Long</Channel>
|
||||
<Channel>MicL</Channel>
|
||||
</Channels>
|
||||
<NumberofIntervals>1.00</NumberofIntervals>
|
||||
<IntervalSize>1 minute</IntervalSize>
|
||||
<SampleRate>1024 sps</SampleRate>
|
||||
<BatteryLevel>6.8 Volts</BatteryLevel>
|
||||
<Calibration>July 24, 2017 by Instantel</Calibration>
|
||||
<Units>in/s and dB(L)</Units>
|
||||
<Project>JV 254</Project>
|
||||
<Client>Walsh Granite JV</Client>
|
||||
<UserName>TMI- DB</UserName>
|
||||
<Seis.Loc>Keim Chevrolet</Seis.Loc>
|
||||
<GeoRange>
|
||||
<Value>10.000</Value>
|
||||
<Units>in/s</Units>
|
||||
</GeoRange>
|
||||
<TranPPV>
|
||||
<Value>0.005</Value>
|
||||
<Units>in/s</Units>
|
||||
</TranPPV>
|
||||
<VertPPV>
|
||||
<Value>0.005</Value>
|
||||
<Units>in/s</Units>
|
||||
</VertPPV>
|
||||
<LongPPV>
|
||||
<Value>0.005</Value>
|
||||
<Units>in/s</Units>
|
||||
</LongPPV>
|
||||
<TranZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</TranZCFreq>
|
||||
<VertZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</VertZCFreq>
|
||||
<LongZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</LongZCFreq>
|
||||
<TranPeakTime>17:07:30</TranPeakTime>
|
||||
<TranPeakDate>2018-04-02</TranPeakDate>
|
||||
<VertPeakTime>17:07:30</VertPeakTime>
|
||||
<VertPeakDate>2018-04-02</VertPeakDate>
|
||||
<LongPeakTime>17:07:30</LongPeakTime>
|
||||
<LongPeakDate>2018-04-02</LongPeakDate>
|
||||
<PeakVectorSum>
|
||||
<Value>0.007</Value>
|
||||
<Units>in/s</Units>
|
||||
</PeakVectorSum>
|
||||
<PeakVectorSumTime>17:07:30</PeakVectorSumTime>
|
||||
<PeakVectorSumDate>2018-04-02</PeakVectorSumDate>
|
||||
<Microphone>Linear Weighting</Microphone>
|
||||
<MicLPSPL>
|
||||
<Value>88.0</Value>
|
||||
<Units>dB(L)</Units>
|
||||
</MicLPSPL>
|
||||
<MicLTime>17:07:30</MicLTime>
|
||||
<MicLDate>2018-04-02</MicLDate>
|
||||
<MicLZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</MicLZCFreq>
|
||||
<TranTestFreq>7.7 Hz.</TranTestFreq>
|
||||
<TranTestRatio>3.8</TranTestRatio>
|
||||
<TranTestResults>Passed</TranTestResults>
|
||||
<VertTestFreq>7.6 Hz.</VertTestFreq>
|
||||
<VertTestRatio>3.5</VertTestRatio>
|
||||
<VertTestResults>Passed</VertTestResults>
|
||||
<LongTestFreq>7.5 Hz.</LongTestFreq>
|
||||
<LongTestRatio>4.3</LongTestRatio>
|
||||
<LongTestResults>Passed</LongTestResults>
|
||||
<MicLTestFreq>20.1 Hz.</MicLTestFreq>
|
||||
<MicLTestAmplitude>589 mv</MicLTestAmplitude>
|
||||
<MicLTestResults>Passed</MicLTestResults>
|
||||
<UsbSummaryChannels>
|
||||
</UsbSummaryChannels>
|
||||
<MonitorLog>2018-04-02 17:06:30 - 2018-04-02 17:07:47 "Event Recorded Remote Exit"</MonitorLog>
|
||||
<HistogramData>
|
||||
<HistogramDataColumnTitle>
|
||||
<ColumnTitle> Tran Peak in/s </ColumnTitle>
|
||||
<ColumnTitle> Tran Freq Hz </ColumnTitle>
|
||||
<ColumnTitle> Vert Peak in/s </ColumnTitle>
|
||||
<ColumnTitle> Vert Freq Hz </ColumnTitle>
|
||||
<ColumnTitle> Long Peak in/s </ColumnTitle>
|
||||
<ColumnTitle> Long Freq Hz </ColumnTitle>
|
||||
<ColumnTitle> Geo PVS in/s </ColumnTitle>
|
||||
<ColumnTitle> MicL Peak psi(L) </ColumnTitle>
|
||||
<ColumnTitle> MicL Peak dB(L) </ColumnTitle>
|
||||
<ColumnTitle> MicL Freq Hz </ColumnTitle>
|
||||
</HistogramDataColumnTitle>
|
||||
<HistogramDataIntervals>
|
||||
<Time>2018-04-02 17:07:30</Time>
|
||||
<Row>
|
||||
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.007</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||
</HistogramDataIntervals>
|
||||
</HistogramData>
|
||||
<HistogramDataUsbChannels>
|
||||
</HistogramDataUsbChannels>
|
||||
|
||||
</Event>
|
||||
BIN
Binary file not shown.
+116
@@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Event>
|
||||
<FileVersion>8.0</FileVersion>
|
||||
<EventType>Full Histogram</EventType>
|
||||
<SerialNumber>BE18189</SerialNumber>
|
||||
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||
<FileName>T189INWA.060H</FileName>
|
||||
<HistogramStartTime>16:04:54</HistogramStartTime>
|
||||
<HistogramStartDate>2020-10-05</HistogramStartDate>
|
||||
<HistogramStopTime>16:06:09</HistogramStopTime>
|
||||
<HistogramStopDate>2020-10-05</HistogramStopDate>
|
||||
<Channels>
|
||||
<Channel>Tran</Channel>
|
||||
<Channel>Vert</Channel>
|
||||
<Channel>Long</Channel>
|
||||
<Channel>MicL</Channel>
|
||||
</Channels>
|
||||
<NumberofIntervals>1.00</NumberofIntervals>
|
||||
<IntervalSize>1 minute</IntervalSize>
|
||||
<SampleRate>1024 sps</SampleRate>
|
||||
<BatteryLevel>6.8 Volts</BatteryLevel>
|
||||
<Calibration>August 25, 2020 by Instantel</Calibration>
|
||||
<Units>in/s and dB(L)</Units>
|
||||
<Project>CMU-New Scaife Hall- Porter Hall</Project>
|
||||
<Client>PJ Dick Inc.</Client>
|
||||
<UserName>Terra-Mechanics, Inc. - D. Harrison</UserName>
|
||||
<Seis.Loc.>Loc. 3 - Porter Hall</Seis.Loc.>
|
||||
<GeoRange>
|
||||
<Value>10.000</Value>
|
||||
<Units>in/s</Units>
|
||||
</GeoRange>
|
||||
<TranPPV>
|
||||
<Value>0.005</Value>
|
||||
<Units>in/s</Units>
|
||||
</TranPPV>
|
||||
<VertPPV>
|
||||
<Value>0.005</Value>
|
||||
<Units>in/s</Units>
|
||||
</VertPPV>
|
||||
<LongPPV>
|
||||
<Value>0.005</Value>
|
||||
<Units>in/s</Units>
|
||||
</LongPPV>
|
||||
<TranZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</TranZCFreq>
|
||||
<VertZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</VertZCFreq>
|
||||
<LongZCFreq>
|
||||
<Value>N/A</Value>
|
||||
<Units>Hz</Units>
|
||||
</LongZCFreq>
|
||||
<TranPeakTime>16:05:54</TranPeakTime>
|
||||
<TranPeakDate>2020-10-05</TranPeakDate>
|
||||
<VertPeakTime>16:05:54</VertPeakTime>
|
||||
<VertPeakDate>2020-10-05</VertPeakDate>
|
||||
<LongPeakTime>16:05:54</LongPeakTime>
|
||||
<LongPeakDate>2020-10-05</LongPeakDate>
|
||||
<PeakVectorSum>
|
||||
<Value>0.009</Value>
|
||||
<Units>in/s</Units>
|
||||
</PeakVectorSum>
|
||||
<PeakVectorSumTime>16:05:54</PeakVectorSumTime>
|
||||
<PeakVectorSumDate>2020-10-05</PeakVectorSumDate>
|
||||
<Microphone>Linear Weighting</Microphone>
|
||||
<MicLPSPL>
|
||||
<Value>106.5</Value>
|
||||
<Units>dB(L)</Units>
|
||||
</MicLPSPL>
|
||||
<MicLTime>16:05:54</MicLTime>
|
||||
<MicLDate>2020-10-05</MicLDate>
|
||||
<MicLZCFreq>
|
||||
<Value>73</Value>
|
||||
<Units>Hz</Units>
|
||||
</MicLZCFreq>
|
||||
<TranTestFreq>7.6 Hz.</TranTestFreq>
|
||||
<TranTestRatio>3.7</TranTestRatio>
|
||||
<TranTestResults>Passed</TranTestResults>
|
||||
<VertTestFreq>7.6 Hz.</VertTestFreq>
|
||||
<VertTestRatio>3.5</VertTestRatio>
|
||||
<VertTestResults>Passed</VertTestResults>
|
||||
<LongTestFreq>7.4 Hz.</LongTestFreq>
|
||||
<LongTestRatio>4.1</LongTestRatio>
|
||||
<LongTestResults>Passed</LongTestResults>
|
||||
<MicLTestFreq>0.0 Hz.</MicLTestFreq>
|
||||
<MicLTestAmplitude>0 mv</MicLTestAmplitude>
|
||||
<MicLTestResults>Check</MicLTestResults>
|
||||
<UsbSummaryChannels>
|
||||
</UsbSummaryChannels>
|
||||
<MonitorLog>2020-10-05 16:04:53 - 2020-10-05 16:06:09 "Event Recorded Keyboard Exit"</MonitorLog>
|
||||
<HistogramData>
|
||||
<HistogramDataColumnTitle>
|
||||
<ColumnTitle> Tran Peak in/s </ColumnTitle>
|
||||
<ColumnTitle> Tran Freq Hz </ColumnTitle>
|
||||
<ColumnTitle> Vert Peak in/s </ColumnTitle>
|
||||
<ColumnTitle> Vert Freq Hz </ColumnTitle>
|
||||
<ColumnTitle> Long Peak in/s </ColumnTitle>
|
||||
<ColumnTitle> Long Freq Hz </ColumnTitle>
|
||||
<ColumnTitle> Geo PVS in/s </ColumnTitle>
|
||||
<ColumnTitle> MicL Peak psi(L) </ColumnTitle>
|
||||
<ColumnTitle> MicL Peak dB(L) </ColumnTitle>
|
||||
<ColumnTitle> MicL Freq Hz </ColumnTitle>
|
||||
</HistogramDataColumnTitle>
|
||||
<HistogramDataIntervals>
|
||||
<Time>2020-10-05 16:05:54</Time>
|
||||
<Row>
|
||||
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>N/A</Cell><Cell>0.009</Cell><Cell>0.001</Cell><Cell>106.5</Cell><Cell>73</Cell></Row>
|
||||
</HistogramDataIntervals>
|
||||
</HistogramData>
|
||||
<HistogramDataUsbChannels>
|
||||
</HistogramDataUsbChannels>
|
||||
|
||||
</Event>
|
||||
BIN
Binary file not shown.
+116
@@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Event>
|
||||
<FileVersion>8.0</FileVersion>
|
||||
<EventType>Full Histogram</EventType>
|
||||
<SerialNumber>BE18189</SerialNumber>
|
||||
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||
<FileName>T189JZY7.L60H</FileName>
|
||||
<HistogramStartTime>20:00:42</HistogramStartTime>
|
||||
<HistogramStartDate>2023-04-27</HistogramStartDate>
|
||||
<HistogramStopTime>20:01:42</HistogramStopTime>
|
||||
<HistogramStopDate>2023-04-27</HistogramStopDate>
|
||||
<Channels>
|
||||
<Channel>Tran</Channel>
|
||||
<Channel>Vert</Channel>
|
||||
<Channel>Long</Channel>
|
||||
<Channel>MicL</Channel>
|
||||
</Channels>
|
||||
<NumberofIntervals>1.00</NumberofIntervals>
|
||||
<IntervalSize>1 minute</IntervalSize>
|
||||
<SampleRate>1024 sps</SampleRate>
|
||||
<BatteryLevel>6.8 Volts</BatteryLevel>
|
||||
<Calibration>February 21, 2023 by Instantel</Calibration>
|
||||
<Units>in/s and dB(L)</Units>
|
||||
<Project>I-70 at SR 51-75978 - Loc 1 - 4256 SR51</Project>
|
||||
<Client>Golden Triangle</Client>
|
||||
<UserName>Terra-Mechanics Inc. - B. Harrison</UserName>
|
||||
<SeisLoc>Location #1 - 4256 SR 51 - Intec</SeisLoc>
|
||||
<GeoRange>
|
||||
<Value>10.000</Value>
|
||||
<Units>in/s</Units>
|
||||
</GeoRange>
|
||||
<TranPPV>
|
||||
<Value>0.015</Value>
|
||||
<Units>in/s</Units>
|
||||
</TranPPV>
|
||||
<VertPPV>
|
||||
<Value>0.020</Value>
|
||||
<Units>in/s</Units>
|
||||
</VertPPV>
|
||||
<LongPPV>
|
||||
<Value>0.015</Value>
|
||||
<Units>in/s</Units>
|
||||
</LongPPV>
|
||||
<TranZCFreq>
|
||||
<Value>N/A</Value>
|
||||
<Units>Hz</Units>
|
||||
</TranZCFreq>
|
||||
<VertZCFreq>
|
||||
<Value>14</Value>
|
||||
<Units>Hz</Units>
|
||||
</VertZCFreq>
|
||||
<LongZCFreq>
|
||||
<Value>N/A</Value>
|
||||
<Units>Hz</Units>
|
||||
</LongZCFreq>
|
||||
<TranPeakTime>20:01:42</TranPeakTime>
|
||||
<TranPeakDate>2023-04-27</TranPeakDate>
|
||||
<VertPeakTime>20:01:42</VertPeakTime>
|
||||
<VertPeakDate>2023-04-27</VertPeakDate>
|
||||
<LongPeakTime>20:01:42</LongPeakTime>
|
||||
<LongPeakDate>2023-04-27</LongPeakDate>
|
||||
<PeakVectorSum>
|
||||
<Value>0.027</Value>
|
||||
<Units>in/s</Units>
|
||||
</PeakVectorSum>
|
||||
<PeakVectorSumTime>20:01:42</PeakVectorSumTime>
|
||||
<PeakVectorSumDate>2023-04-27</PeakVectorSumDate>
|
||||
<Microphone>Linear Weighting</Microphone>
|
||||
<MicLPSPL>
|
||||
<Value>91.5</Value>
|
||||
<Units>dB(L)</Units>
|
||||
</MicLPSPL>
|
||||
<MicLTime>20:01:42</MicLTime>
|
||||
<MicLDate>2023-04-27</MicLDate>
|
||||
<MicLZCFreq>
|
||||
<Value>N/A</Value>
|
||||
<Units>Hz</Units>
|
||||
</MicLZCFreq>
|
||||
<TranTestFreq>7.6 Hz.</TranTestFreq>
|
||||
<TranTestRatio>3.8</TranTestRatio>
|
||||
<TranTestResults>Passed</TranTestResults>
|
||||
<VertTestFreq>7.6 Hz.</VertTestFreq>
|
||||
<VertTestRatio>3.5</VertTestRatio>
|
||||
<VertTestResults>Passed</VertTestResults>
|
||||
<LongTestFreq>7.5 Hz.</LongTestFreq>
|
||||
<LongTestRatio>4.0</LongTestRatio>
|
||||
<LongTestResults>Passed</LongTestResults>
|
||||
<MicLTestFreq>19.7 Hz.</MicLTestFreq>
|
||||
<MicLTestAmplitude>577 mv</MicLTestAmplitude>
|
||||
<MicLTestResults>Passed</MicLTestResults>
|
||||
<UsbSummaryChannels>
|
||||
</UsbSummaryChannels>
|
||||
<MonitorLog>2023-04-27 20:00:41 - 2023-04-27 20:01:42 "Event Recorded Battery Low Exit"</MonitorLog>
|
||||
<HistogramData>
|
||||
<HistogramDataColumnTitle>
|
||||
<ColumnTitle> Tran Peak in/s </ColumnTitle>
|
||||
<ColumnTitle> Tran Freq Hz </ColumnTitle>
|
||||
<ColumnTitle> Vert Peak in/s </ColumnTitle>
|
||||
<ColumnTitle> Vert Freq Hz </ColumnTitle>
|
||||
<ColumnTitle> Long Peak in/s </ColumnTitle>
|
||||
<ColumnTitle> Long Freq Hz </ColumnTitle>
|
||||
<ColumnTitle> Geo PVS in/s </ColumnTitle>
|
||||
<ColumnTitle> MicL Peak psi(L) </ColumnTitle>
|
||||
<ColumnTitle> MicL Peak dB(L) </ColumnTitle>
|
||||
<ColumnTitle> MicL Freq Hz </ColumnTitle>
|
||||
</HistogramDataColumnTitle>
|
||||
<HistogramDataIntervals>
|
||||
<Time>2023-04-27 20:01:42</Time>
|
||||
<Row>
|
||||
<Cell>0.015</Cell><Cell>N/A</Cell><Cell>0.020</Cell><Cell>14</Cell><Cell>0.015</Cell><Cell>N/A</Cell><Cell>0.027</Cell><Cell>0.000</Cell><Cell>91.48</Cell><Cell>N/A</Cell></Row>
|
||||
</HistogramDataIntervals>
|
||||
</HistogramData>
|
||||
<HistogramDataUsbChannels>
|
||||
</HistogramDataUsbChannels>
|
||||
|
||||
</Event>
|
||||
BIN
Binary file not shown.
+116
@@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Event>
|
||||
<FileVersion>8.0</FileVersion>
|
||||
<EventType>Full Histogram</EventType>
|
||||
<SerialNumber>BE18192</SerialNumber>
|
||||
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||
<FileName>T192JWEL.0Y0H</FileName>
|
||||
<HistogramStartTime>21:58:10</HistogramStartTime>
|
||||
<HistogramStartDate>2023-02-17</HistogramStartDate>
|
||||
<HistogramStopTime>22:00:00</HistogramStopTime>
|
||||
<HistogramStopDate>2023-02-17</HistogramStopDate>
|
||||
<Channels>
|
||||
<Channel>Tran</Channel>
|
||||
<Channel>Vert</Channel>
|
||||
<Channel>Long</Channel>
|
||||
<Channel>MicL</Channel>
|
||||
</Channels>
|
||||
<NumberofIntervals>1.00</NumberofIntervals>
|
||||
<IntervalSize>1 minute</IntervalSize>
|
||||
<SampleRate>1024 sps</SampleRate>
|
||||
<BatteryLevel>7.0 Volts</BatteryLevel>
|
||||
<Calibration>September 15, 2022 by Instantel</Calibration>
|
||||
<Units>in/s and dB(L)</Units>
|
||||
<Project>Trumbull-Berkeley By.-Loc 2-85 Pennsyl</Project>
|
||||
<Client>Trumbull Corporation</Client>
|
||||
<UserName>Terra-Mechanics Inc - D Harrison</UserName>
|
||||
<SeisLoc>Loc #2- 85 Pennsylvania Lane</SeisLoc>
|
||||
<GeoRange>
|
||||
<Value>10.000</Value>
|
||||
<Units>in/s</Units>
|
||||
</GeoRange>
|
||||
<TranPPV>
|
||||
<Value>0.010</Value>
|
||||
<Units>in/s</Units>
|
||||
</TranPPV>
|
||||
<VertPPV>
|
||||
<Value>0.010</Value>
|
||||
<Units>in/s</Units>
|
||||
</VertPPV>
|
||||
<LongPPV>
|
||||
<Value>0.010</Value>
|
||||
<Units>in/s</Units>
|
||||
</LongPPV>
|
||||
<TranZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</TranZCFreq>
|
||||
<VertZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</VertZCFreq>
|
||||
<LongZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</LongZCFreq>
|
||||
<TranPeakTime>21:59:10</TranPeakTime>
|
||||
<TranPeakDate>2023-02-17</TranPeakDate>
|
||||
<VertPeakTime>21:59:10</VertPeakTime>
|
||||
<VertPeakDate>2023-02-17</VertPeakDate>
|
||||
<LongPeakTime>21:59:10</LongPeakTime>
|
||||
<LongPeakDate>2023-02-17</LongPeakDate>
|
||||
<PeakVectorSum>
|
||||
<Value>0.014</Value>
|
||||
<Units>in/s</Units>
|
||||
</PeakVectorSum>
|
||||
<PeakVectorSumTime>21:59:10</PeakVectorSumTime>
|
||||
<PeakVectorSumDate>2023-02-17</PeakVectorSumDate>
|
||||
<Microphone>Linear Weighting</Microphone>
|
||||
<MicLPSPL>
|
||||
<Value>120.0</Value>
|
||||
<Units>dB(L)</Units>
|
||||
</MicLPSPL>
|
||||
<MicLTime>21:59:10</MicLTime>
|
||||
<MicLDate>2023-02-17</MicLDate>
|
||||
<MicLZCFreq>
|
||||
<Value>8.8</Value>
|
||||
<Units>Hz</Units>
|
||||
</MicLZCFreq>
|
||||
<TranTestFreq>7.4 Hz.</TranTestFreq>
|
||||
<TranTestRatio>4.1</TranTestRatio>
|
||||
<TranTestResults>Passed</TranTestResults>
|
||||
<VertTestFreq>7.7 Hz.</VertTestFreq>
|
||||
<VertTestRatio>3.6</VertTestRatio>
|
||||
<VertTestResults>Passed</VertTestResults>
|
||||
<LongTestFreq>7.4 Hz.</LongTestFreq>
|
||||
<LongTestRatio>4.2</LongTestRatio>
|
||||
<LongTestResults>Passed</LongTestResults>
|
||||
<MicLTestFreq>19.7 Hz.</MicLTestFreq>
|
||||
<MicLTestAmplitude>688 mv</MicLTestAmplitude>
|
||||
<MicLTestResults>Passed</MicLTestResults>
|
||||
<UsbSummaryChannels>
|
||||
</UsbSummaryChannels>
|
||||
<MonitorLog>2023-02-17 21:58:09 - 2023-02-17 22:00:00 "Event Recorded Timer Stop"</MonitorLog>
|
||||
<HistogramData>
|
||||
<HistogramDataColumnTitle>
|
||||
<ColumnTitle> Tran Peak in/s </ColumnTitle>
|
||||
<ColumnTitle> Tran Freq Hz </ColumnTitle>
|
||||
<ColumnTitle> Vert Peak in/s </ColumnTitle>
|
||||
<ColumnTitle> Vert Freq Hz </ColumnTitle>
|
||||
<ColumnTitle> Long Peak in/s </ColumnTitle>
|
||||
<ColumnTitle> Long Freq Hz </ColumnTitle>
|
||||
<ColumnTitle> Geo PVS in/s </ColumnTitle>
|
||||
<ColumnTitle> MicL Peak psi(L) </ColumnTitle>
|
||||
<ColumnTitle> MicL Peak dB(L) </ColumnTitle>
|
||||
<ColumnTitle> MicL Freq Hz </ColumnTitle>
|
||||
</HistogramDataColumnTitle>
|
||||
<HistogramDataIntervals>
|
||||
<Time>2023-02-17 21:59:10</Time>
|
||||
<Row>
|
||||
<Cell>0.010</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.014</Cell><Cell>0.003</Cell><Cell>120.0</Cell><Cell>8.8</Cell></Row>
|
||||
</HistogramDataIntervals>
|
||||
</HistogramData>
|
||||
<HistogramDataUsbChannels>
|
||||
</HistogramDataUsbChannels>
|
||||
|
||||
</Event>
|
||||
@@ -658,3 +658,56 @@ def test_a_check_keeps_the_units_status_code():
|
||||
# Tran is a Check at 8.1 Hz and 3.3, inside every passing range).
|
||||
got = read_blastware_file(_FIX / f"{_US}/K440HJCN.AS0W").sensor_check_results
|
||||
assert [got[ch].status for ch in ("Tran", "Vert", "Long", "MicL")] == [11, 2, 0, 0]
|
||||
|
||||
|
||||
# ── Group F: the monitor log ────────────────────────────────────────────────
|
||||
# Blastware prints one Monitor Log line per event: the footer's start and stop,
|
||||
# and words from the footer's flag word [18:20]. 69,983 / 69,983 DL2 lines,
|
||||
# character for character (2026-11-08). Expected lines are Blastware's own,
|
||||
# from each file's _XML.XML report.
|
||||
|
||||
_ML = "monitor-log-11-08-26"
|
||||
|
||||
|
||||
def _log_line(ml):
|
||||
return f'{ml.start:%Y-%m-%d %H:%M:%S} - {ml.stop:%Y-%m-%d %H:%M:%S} "{ml.description}"'
|
||||
|
||||
|
||||
@pytest.mark.parametrize("rel,line", [
|
||||
(f"{_US}/I145L6UJ.3Y0W", '2025-08-08 18:23:55 - 2025-08-08 18:24:01 "Event Recorded "'),
|
||||
(f"{_US}/O117I1NK.R70W", '2019-07-31 06:59:31 - 2019-07-31 06:59:33 "Event Recorded "'),
|
||||
(f"{_US}/T193HLJ3.X80H", '2018-09-20 20:07:55 - 2018-09-21 13:20:01 "Event Recorded Modem Exit"'),
|
||||
(f"{_ML}/T189INWA.060H", '2020-10-05 16:04:53 - 2020-10-05 16:06:09 "Event Recorded Keyboard Exit"'),
|
||||
(f"{_ML}/K559HCQ7.IU0H", '2018-04-02 17:06:30 - 2018-04-02 17:07:47 "Event Recorded Remote Exit"'),
|
||||
(f"{_ML}/T192JWEL.0Y0H", '2023-02-17 21:58:09 - 2023-02-17 22:00:00 "Event Recorded Timer Stop"'),
|
||||
(f"{_ML}/T189JZY7.L60H", '2023-04-27 20:00:41 - 2023-04-27 20:01:42 "Event Recorded Battery Low Exit"'),
|
||||
])
|
||||
def test_the_monitor_log_is_the_footers(rel, line):
|
||||
assert _log_line(read_blastware_file(_FIX / rel).monitor_log) == line
|
||||
|
||||
|
||||
from minimateplus.event_file_io import monitor_log_description # noqa: E402
|
||||
|
||||
|
||||
@pytest.mark.parametrize("flags,words", [
|
||||
(0x0001, "Event Recorded "),
|
||||
(0x0003, "Event Recorded Keyboard Exit"),
|
||||
(0x0005, "Event Recorded Remote Exit"),
|
||||
(0x0009, "Event Recorded Selfcheck Passed"),
|
||||
(0x0011, "Event Recorded Timer Stop"),
|
||||
(0x0021, "Event Recorded Modem Exit"),
|
||||
(0x0201, "Event Recorded Battery Low Exit"),
|
||||
(0x0801, "Event Recorded Memory Full Exit"),
|
||||
# One DL2 line sets Modem and Timer; Blastware prints Modem: the higher
|
||||
# bit wins (one file, so the order of the others is inferred).
|
||||
(0x0031, "Event Recorded Modem Exit"),
|
||||
])
|
||||
def test_the_monitor_log_words(flags, words):
|
||||
assert monitor_log_description(flags) == words
|
||||
|
||||
|
||||
def test_without_a_whole_record_chain_there_is_no_monitor_log():
|
||||
raw = bytearray((_FIX / f"{_US}/I145L6UJ.3Y0W").read_bytes())
|
||||
i = raw.find(b"\x00\xd4\x3c")
|
||||
raw[i + 1] = 0xd3 # one byte short: the footer is not proven
|
||||
assert decode_blastware_bytes(bytes(raw), name=None).monitor_log is None
|
||||
@@ -416,3 +416,18 @@ def test_sensor_check_results_match_blastware(path):
|
||||
assert res[f].verdict == "match", (f, res[f])
|
||||
checked += 1
|
||||
assert checked >= 4
|
||||
|
||||
|
||||
# ── Group F: the monitor log (2026-11-08) ───────────────────────────────────
|
||||
_ML = FIX.parent / "monitor-log-11-08-26"
|
||||
|
||||
|
||||
@pytest.mark.parametrize("path", [
|
||||
FIX / "R352HIUI.F40W", FIX / "T004JTRF.ME0H", FIX / "M529L4XQ.R30H",
|
||||
_US / "K440HJCN.AS0W", _US / "O117I1NK.R70W",
|
||||
_ML / "T189INWA.060H", _ML / "K559HCQ7.IU0H", _ML / "T192JWEL.0Y0H", _ML / "T189JZY7.L60H",
|
||||
])
|
||||
def test_the_monitor_log_matches_blastware(path):
|
||||
ref = parse_xml_report_file(path.with_name(path.name.replace(".", "_", 1) + "_XML.XML"))
|
||||
res = {r.field: r for r in compare(sfm_side(path.read_bytes()), ref, CARVEOUTS)}
|
||||
assert res["MonitorLog"].verdict == "match", res["MonitorLog"]
|
||||
Reference in new issue
Block a user