summaryrefslogtreecommitdiff
path: root/stacks/max25-bcpr/README.md
blob: 375f15a2d46206d3a7efdcbcd541981aa118c18b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# max25-bcpr — BayCom/based PC-COM SER12 (MAX25 userspace)

**Status: available · usable** — default CMake build ON (`MAX25_BUILD_MAX25_BCPR=ON`).

Public mark: **BayCom/based**. Product path: **max25-bcpr** / daemon **max25-bcprd**. Host device: **`max25e0`** (forks `max25e0:bcN` only).

| Layer | Role |
|-------|------|
| Hardware | BayCom/based TCM3105-class AFSK (bits↔tones + PTT) |
| Host | SER12 bit clock, HDLC, KISS PTY via **max25-bcprd-init** → unprivileged **max25-bcprd** loop |
| KISS release | **`/tmp/max25-bcpr/kiss-bc0`** → HyBBX `baycom` transport |
| Device id | **`max25e0`** only — never `bcpr` / `bcpr-bc0` product ids |
| Not | TNC · digipeater · BBX · kernel BayCom product |

Internal C sources may still use `bcpr_*` symbols — product face is **max25-bcpr** only.

## Build (default)

```bash
cmake -S . -B build
cmake --build build --target max25-bcprd max25-bcprd-init test_hdlc_offline
install sets **setuid** on `max25-bcprd-init` (chmod 4755).
```

Opt-out: `-DMAX25_BUILD_MAX25_BCPR=OFF`.

## Offline smoke

```bash
stacks/max25-bcpr/tools/max25-bcpr-ctl -c stacks/max25-bcpr/share/max25-bcpr.ini.example smoke
```

```bash
# Daemon
sudo stacks/max25-bcpr/tools/max25-bcpr-ctl -c /etc/max25/max25-bcpr.ini start
sudo stacks/max25-bcpr/tools/max25-bcpr-ctl -c /etc/max25/max25-bcpr.ini status
sudo stacks/max25-bcpr/tools/max25-bcpr-ctl -c /etc/max25/max25-bcpr.ini stop

# Interactive diag / force-TX ladder (operator — prove RX first)
sudo -n stacks/max25-bcpr/tools/max25-bcpr-ultimate-diag.sh --menu
```

## Localhost standalone (Lite)

```ini
[features]
max25_bcpr = yes

[devices]
default = max25e0
max25e0 = max25-bcpr:bc0

[device.max25e0]
kiss_link = /tmp/max25-bcpr/kiss-bc0
max25_bcpr_ini = /etc/max25/max25-bcpr.ini
```

max25d starts **max25-bcprd-init** (live) or **max25-bcprd** (dry-run) and keeps the KISS PTY on this machine for `max25-terminal` — no co-host attach. Multi-RF co-host modes (`mode = hybbx-cohost` and similar) are a full **MAX25-Stack** feature, not part of Lite — see [wizard.md](https://github.com/ngteq/MAX25-Stack-Lite) / vault `baycom-based.md`.

## Related

| Goal | Doc |
|------|-----|
| Build · wizard | [../../README.md](../../README.md) · [../../docs/README.md](../../docs/README.md) |
| Plain messages | `max25-bcpr-ctl` — new Linux user level |

## License

Algorithms from Linux `baycom_ser_fdx` / `hdlcdrv` (GPL) — `NOTICE.md`.
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com