Files
ambed-xombe/README.md
T

64 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ambed-xombe
Versione modificata di **AMBEd** (dal progetto XLX) integrata con il vocoder software **[xombe](https://github.com/x0rro/xombe)** (AMBE+ / AMBE2+) come Git submodule.
Permette la transcodifica cross-mode **D-STAR <-> DMR / YSF-DN / NXDN** e il supporto **M17 (Codec2)** / **P25 (IMBE)** senza dongle hardware USB DVSI (con supporto opzionale per dongle FTDI).
## Requisiti
- `g++` (C++11), `make`, `cmake`
- `git`
Su Debian / Ubuntu / Raspbian:
```bash
sudo apt update && sudo apt install -y build-essential cmake git
```
## Download e compilazione
Clona il repository includendo il submodule `xombe`:
```bash
git clone --recursive https://git.arifvg.it/iv3jdv/ambed-xombe.git /ambed
cd /ambed
make -j$(nproc)
```
Il `Makefile` compila automaticamente `libxombe.a` (solo target libreria, evitando i test non compatibili con GCC 8 su ARMv7) e poi l'eseguibile `ambed`.
### Opzioni di compilazione
- **Con supporto hardware FTDI (USB-3000/3003) + xombe:**
```bash
make USE_FTDI=1 -j$(nproc)
```
- **Usando una cartella `xombe` esterna:**
```bash
make XOMBE_DIR=/percorso/a/xombe -j$(nproc)
```
- **Pulizia completa (inclusa la build di `xombe`):**
```bash
make distclean
```
## Configurazione (`ambed.ini`)
Parametri aggiunti per il pool di vocoder software `xombe`:
| Parametro | Descrizione | Valori consigliati |
| :--- | :--- | :--- |
| `XOMBE_THREADS` | Numero di thread worker (uno per core CPU) | `4` |
| `XOMBE_PAIRS_PER_THREAD` | Coppie di canali (D-STAR + DMR) per thread | `6` su x86_64, `2`–`3` su ARM (es. Raspberry Pi) |
Avvio manuale:
```bash
./ambed ./ambed.ini
```
## Note tecniche
- **Architetture testate:** `x86_64` e `armv7l` (Raspbian 32-bit).
- **Endianness PCM:** `CXombeInterface` gestisce la conversione tra il PCM nativo (`int16_t` little-endian) di `xombe` e il PCM big-endian interno di `CVoicePacket` / `CSignalProcessor` per i percorsi M17 e P25.