summaryrefslogtreecommitdiff
path: root/share/max25/max25d.ini.host.example
blob: fc05b9de5d198f28edca4bf8cdb1587b41255150 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
; MainAX25-Stack — max25d Linux host (example setup)
; Copy: sudo cp share/max25/max25d.ini.host.example /etc/max25/max25d.ini
; Unified workflow: docs/PLUGINS-DEVICE-MODEL.md
;
; Example onboard-UART map (single BayCom — no dual on this layout):
;   /dev/ttyS0  BayCom PC-COM (kernel-ser12) — Path B below
;   /dev/ttyS4  TNC2C (packet_radio)         — Path A (default)
;   /dev/ttyS5  PK-TNC2 (packet_radio)       — NOT BayCom
;
; Enable exactly ONE hardware path: comment out Path A [devices] when switching to B or C.

[daemon]
mode = standalone
; Path A (default): TNC2C on ttyS4
hardware = tncs
device = tnc2c
; Path B BayCom: hardware = modems · device = max25e0
; Path C CRDOP:  hardware = soft-modems · device = soft-crdop

[network]
; Listen on all interfaces — remote max25-terminal over LAN
tcp_host = 0.0.0.0
tcp_port = 7325
; systemd RuntimeDirectory=max25 → /run/max25/modem.sock
unix_socket = /run/max25/modem.sock
; Set a password before exposing tcp_host = 0.0.0.0 on LAN
tcp_password = changeme

[modem]
callerid = CB-0
callid = QST
ax25_ui = yes
; Banned AX.25 source callsigns — silent RX drop (one per line in file)
; bans_file = /etc/max25/bans.txt

[reporting]
error_transmissions = yes
voice_transmissions = yes
data_passes = 3
data_quality_min = 50
data_pass_seconds = 20

[stack]
; Starts max25-ctl stack on daemon boot (recover-only for TNC — no power cycle)
auto_start = yes
serial_watch = yes
serial_watch_interval = 60
stack_recover_only = yes
serial_bootwait_escalate = yes
serial_bootwait_escalate_after = 3

; --- Path A: TNC2C (default host) ---
[devices]
default = tnc2c
tnc2c = /dev/ttyS4

[serial.tnc2c]
baud = 19200
line = 8n1
dtr_rts = yes
kiss_entry = kiss_on

; Second TNC — not on same Linux host (use another machine):
; pktnc2 = /dev/ttyS5
; [serial.pktnc2]
; baud = 9600
; line = 8n1
; dtr_rts = no
; kiss_entry = auto

; --- Path B: BayCom PC-COM (single modem on ttyS0) ---
; Comment Path A [devices] + [serial.tnc2c] above, then uncomment:
; [devices]
; default = max25e0
; baycom-ser12 = baycom:a
; [device.baycom-ser12]
; kiss_link = /var/run/baycom-pr/kiss
; modem = a
; baycom_ini = /etc/baycom/baycom-pr.ini
; Prep: sudo cp share/baycom/baycom-pr.pccom-ttyS0-only.ini.example /etc/baycom/baycom-pr.ini
;       sudo baycom-pr-ctl -c /etc/baycom/baycom-pr.ini setup

; --- Path C: CRDOP sound-card modem (CB profile) ---
; Comment Path A [devices] above, set [daemon] soft-modems/soft-crdop, then uncomment:
; [devices]
; default = soft-crdop
; soft-crdop = crdop:default
; [device.soft-crdop]
; host = 127.0.0.1
; port = 8515
; listen = yes
; Prep: cp stacks/crdop/share/crdop.ini.example ~/.config/crdop/crdop.ini (CB / 500MAX)

; Serial env search: /etc/max25/ → local/ → share/max25/serial/ → stacks/tncs/
; USB TNC example: tnc2c = /dev/ttyUSB0  (edit [serial.tnc2c] or tnc2c-serial.env)
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com