29 lines
1.7 KiB
Bash
29 lines
1.7 KiB
Bash
# shellcheck shell=bash
|
|
# Build flags of the public firmware, sourced by pub-release.yml -- and by the
|
|
# private mast release, which builds the very same observer image, so what the
|
|
# fork publishes is what runs on its own nodes. PlatformIO appends
|
|
# PLATFORMIO_BUILD_FLAGS after each env's flags: last -D wins.
|
|
#
|
|
# 869.432/62.5/SF7/CR5; repeater + room server: zero-hop advert off, flood
|
|
# advert 25 h, AIRTIME_FACTOR 9 (= `dutycycle` 10 %); repeater: regions cz,cs next to *.
|
|
# Path hash 2 B is this fork's default anyway. TX power stays the board's.
|
|
# FILTER_CHANNEL_PSKS = [channel_filter] in platformio.ini (#meshcore, Public,
|
|
# #test -- public keys): compiles the repeater's `filter` (deny-forward by
|
|
# sender name); inert until an operator adds a name.
|
|
# WITH_RX_POWERSAVING compiles `set radio.rxps` (SX1262 RX duty cycle); off
|
|
# until an operator sets it.
|
|
PUB_FLAGS='-D WITH_RX_POWERSAVING
|
|
-D LORA_FREQ=869.432 -D LORA_BW=62.5 -D LORA_SF=7 -D LORA_CR=5
|
|
-D ADVERT_INTERVAL_DEFAULT=0 -D FLOOD_ADVERT_INTERVAL_DEFAULT=25
|
|
-D AIRTIME_FACTOR_DEFAULT=9.0 -D DEFAULT_REGIONS=\"cz,cs\"
|
|
-D FILTER_CHANNEL_PSKS=\"2fa78a5aef618e7c2a78f0ab5c8869b3,8b3387e9c5cdea6ac9e5edbaa115cd72,9cd8fcf22a47333b591d96a2b848b73f\"'
|
|
# Observer variants of the nRF52 repeaters: BLE console (starts OFF,
|
|
# RPT_BLE_DEFAULT_OFF -- placeholder PIN), `rxlog`/`nodes` and the `pktlog`
|
|
# raw-frame ring that the repeater observer reads over BLE or USB.
|
|
OBS_FLAGS='-D BLE_PIN_CODE=123456 -D RPT_BLE_DEFAULT_OFF=1
|
|
-D MAX_HEARD_NODES=128 -D RXLOG_SIZE=512 -D PKTFEED_SIZE=64'
|
|
# one line each, as the YAML folded scalars they replace were
|
|
PUB_FLAGS=${PUB_FLAGS//$'\n'/ }
|
|
OBS_FLAGS=${OBS_FLAGS//$'\n'/ }
|
|
export PUB_FLAGS OBS_FLAGS
|