# ERMINAZ

Notes written 2025-09-25 by Fabian P. Schmidt (kerel).

The packet format used for telemetry and SSDV transmission by ERMINAZ has been changed in commit
[erminaz-comms-sw@bdd65f8a](https://gitlab.com/amsat-dl/erminaz/erminaz-comms-sw/-/commit/bdd65f8a65cddb9abf93bda4ab65b36420ccd7b5)
). The order of operations for FEC (Reed-Solomon) and scrambling has been flipped
to correctly follow the recommendations by
[CCSDS 131.0-B-5: TM Synchronization and Channel Coding](https://ccsds.org/wp-content/uploads/gravity_forms/5-448e85c647331d9cbaf66c096458bdd5/2025/01//131x0b5.pdf).

See also:
- Article ["Decoding ERMINAZ"](https://destevez.net/2024/06/decoding-erminaz/) by Daniel Estévez

## Recording 2024-06-04 (old custom framing)

Recording [20240604_57600.wav](https://pe0sat.vgnet.nl/download/ERMINAZ-1U/20240604_57600.wav) shared by PE0SAT,
referenced in [erminaz-comms-sw#2 (comment)](https://gitlab.com/amsat-dl/erminaz/erminaz-comms-sw/-/issues/2#note_1949892185).

Frames in this recording use the old custom framing by ERMINAZ.

### Decode frames

```
gr_satellites ERMINAZ-1U --rawint16 20240604_57600.wav --iq --samp_rate 57600 --kiss_out 20240604_57600.kss
```

```
❯ kiss_info 20240604_57600.kss
Input File: 20240604_57600.kss
Frames:     302
Frame size
       min: 126
       max: 126
```

### Decode SSDV

```
❯ gr_satellites_ssdv --satellite ERMINAZ 20240604_57600.kss 20240604_57600_ssdv
Calling SSDV decoder for image 0x3
Callsign: DP0SAT
Image ID: 03
Resolution: 480x304
MCU blocks: 570
Sampling factor: 2x2
Quality level: 4
Gap detected between packets 11 and 13
Gap detected between packets 104 and 106
Gap detected between packets 129 and 131
Read 197 packets

Calling SSDV decoder for image 0xff
Callsign: DP0SAT
Image ID: FF
Resolution: 144x144
MCU blocks: 324
Sampling factor: 1x1
Quality level: 4
Read 50 packets
```

## Recording 2025-09-20 (new framing)

ERMINAZ recording shared by Patrick Dohmen (DL4PD).
Frames in this recording use the new framing.

### Decode frames

A modified satyaml `ERMINAZ-1U.yml` is shared to provide gr-satellites with the
required framing information.

```
gr_satellites ERMINAZ-1U.yml --sigmf recording_435775000Hz_20-43-13_20-09-2025.sigmf-meta --kiss_out recording_435775000Hz_20-43-13_20-09-2025.kss
```

gr-satellites version: `5.8`

This will create the KISS file `recording_435775000Hz_20-43-13_20-09-2025.kss`.

```
$ kiss_info recording_435775000Hz_20-43-13_20-09-2025.kiss
Input File: recording_435775000Hz_20-43-13_20-09-2025.kiss
Frames:     633
Frame Size
       min: 128
       max: 128
```
