625b0a4dfc
Adds a new CapturingTransport wrapper in minimateplus.transport that mirrors every TX/RX byte to two raw .bin files using the same on-wire format as bridges/ach_mitm.py, so the resulting captures are byte-for-byte compatible with the existing Blastware MITM captures and load directly in the Analyzer. A new "Download" tab in seismo_lab.py lets the user connect to a device over TCP or serial and run connect / list-keys / download-events while the wrapper saves raw_bw_<ts>.bin (our TX) and raw_s3_<ts>.bin (device TX) into a seismo_dl_<ts>[_<label>]/ session directory. On completion, the panel hands both files to the Analyzer and switches tabs, mirroring the UX of the existing Bridge capture flow.
36 lines
987 B
Python
36 lines
987 B
Python
"""
|
|
minimateplus — Instantel MiniMate Plus protocol library.
|
|
|
|
Provides a clean Python API for communicating with MiniMate Plus seismographs
|
|
over RS-232 serial (direct cable) or TCP (modem / ACH Auto Call Home).
|
|
|
|
Typical usage (serial):
|
|
from minimateplus import MiniMateClient
|
|
|
|
with MiniMateClient("COM5") as device:
|
|
info = device.connect()
|
|
events = device.get_events()
|
|
|
|
Typical usage (TCP / modem):
|
|
from minimateplus import MiniMateClient
|
|
from minimateplus.transport import TcpTransport
|
|
|
|
with MiniMateClient(transport=TcpTransport("203.0.113.5", 12345)) as device:
|
|
info = device.connect()
|
|
"""
|
|
|
|
from .client import MiniMateClient
|
|
from .models import DeviceInfo, Event, MonitorLogEntry
|
|
from .transport import CapturingTransport, SerialTransport, TcpTransport
|
|
|
|
__version__ = "0.1.0"
|
|
__all__ = [
|
|
"MiniMateClient",
|
|
"DeviceInfo",
|
|
"Event",
|
|
"MonitorLogEntry",
|
|
"SerialTransport",
|
|
"TcpTransport",
|
|
"CapturingTransport",
|
|
]
|