Commit Graph

10 Commits

Author SHA1 Message Date
Vadim Yanitskiy c19f21798e sedbgmux: remove Python shebang and executable flags 2024-04-22 19:35:56 +07:00
Vadim Yanitskiy c69ba9bd3f Make 'pyshark' an optional dependency 2024-04-16 03:04:02 +07:00
Vadim Yanitskiy 9a45680e18 Rework logging: use module-level loggers 2023-04-29 15:58:15 +07:00
Vadim Yanitskiy 61302bf5ee DumpIONative: use Default instead of Rebuild in DumpRecord 2023-01-27 04:14:45 +07:00
Vadim Yanitskiy 6d88d94ebe sedbgmux-dump.py: support parsing PCAPs with BT RFCOMM packets
One of the approaches for sniffing serial port communication on Windows
is using USBPcap, an open-source USB sniffer.  When using Bluetooth as
the transport for DebugMux, the resulting PCAP contains RFCOMM frames,
which can later be analyzed using Wireshark.

This patch adds a new read-only DumpIO interface for sedbgmux-dump.py,
which allows one to parse and convert PCAPs containing DebugMux frames
encapsulated into BT RFCOMM packets.

PCAP parsing is easy thanks to pyshark [1] (new dependency).

[1] https://github.com/KimiNewt/pyshark
2023-01-26 06:40:46 +07:00
Vadim Yanitskiy 168ace9da5 sedbgmux-dump.py: calculate FCS, abort parsing on mismatch 2023-01-26 05:37:04 +07:00
Vadim Yanitskiy a378018178 sedbgmux-dump.py: add support for parsing socat hexdumps 2023-01-16 13:53:53 +06:00
Vadim Yanitskiy 56b0ad8e6e Implement optional dumping of DebugMux frames to file 2023-01-16 13:53:25 +06:00
Vadim Yanitskiy 5b2c57422d DbgMuxIO: separate modem I/O into its own file 2023-01-16 13:53:25 +06:00
Vadim Yanitskiy ca57d7c6c5 Rework project hierarchy: group core files into a module 2023-01-14 21:58:19 +06:00