Skip to content

MISRC Extract

Harry Munday edited this page Mar 27, 2024 · 1 revision

MISRC Extract

MISRC Extract is a simple tool to de-interleave ADC channels and the AUX data from a raw .bin capture.

Description

The MISRC captures with 2 ADC channels 12-bit and the 8-bit AUX data is interleaved into 32 bit words so you end up with a 32-bit .bin file.

This tool deinterleaves that data. For x86_64 (64 bit AMD and Intel processors)

There is handwritten assembly for higher performance using SSE instructions.

Process

capture.bin --> misrc_extract --> Channel_1.s16, Channel_2.s16

Aux Data mode is not yet in use due to lack of sub-boards like audio etc.

Install

Windows, Linux, MacOS Self-Contained Binaries Download Here

Building

Build requirements

Linux

Install the tools that are required to build misrc_extract using your packet manger (example for Debian, Ubuntu, Linux Mint):

sudo apt install build-essential cmake nasm git

Build process (Linux and macOS)

Download the repository

git clone https://github.com/Stefan-Olt/MISRC.git

Enter into the misrc extract folder

cd MISRC/misrc_extract

Then build the software

mkdir build
cd build
cmake ..
make
make install

Usage

-i Input file (use '-' to read from stdin)]

-a ADC A output file (use '-' to write on stdout)]

-b ADC B output file (use '-' to write on stdout)]

-x AUX output file (use '-' to write on stdout)]

Example

Inside the directory of capture run:

misrc_extract -i misrc_capture.bin -a channel_1.s16 -b channel_2.s16

Version History

  • 0.2

    • Fix: signal now with correct polarity
    • Mod: output program name and version
    • New: option to pad lower 4 bits instead of upper 4
  • 0.1

    • Initial Release