Working with setting dump below still resolving how these map to config above
299 lines
7.6 KiB
Markdown
299 lines
7.6 KiB
Markdown
Known Good Settings:
|
|
|
|
Preferences: {
|
|
"device": {
|
|
"nodeInfoBroadcastSecs": 10800,
|
|
"disableTripleClick": true,
|
|
"tzdef": "PST8PDT,M3.2.0,M11.1.0",
|
|
"role": "CLIENT",
|
|
"serialEnabled": false,
|
|
"buttonGpio": 0,
|
|
"buzzerGpio": 0,
|
|
"rebroadcastMode": "ALL",
|
|
"doubleTapAsButtonPress": false,
|
|
"isManaged": false,
|
|
"ledHeartbeatDisabled": false,
|
|
"buzzerMode": "ALL_ENABLED"
|
|
},
|
|
"position": {
|
|
"positionBroadcastSecs": 900,
|
|
"positionBroadcastSmartEnabled": true,
|
|
"gpsUpdateInterval": 120,
|
|
"positionFlags": 811,
|
|
"broadcastSmartMinimumDistance": 100,
|
|
"broadcastSmartMinimumIntervalSecs": 30,
|
|
"gpsMode": "ENABLED",
|
|
"fixedPosition": false,
|
|
"gpsEnabled": false,
|
|
"gpsAttemptTime": 0,
|
|
"rxGpio": 0,
|
|
"txGpio": 0,
|
|
"gpsEnGpio": 0
|
|
},
|
|
"power": {
|
|
"onBatteryShutdownAfterSecs": 2147483647,
|
|
"waitBluetoothSecs": 60,
|
|
"sdsSecs": 4294967295,
|
|
"lsSecs": 300,
|
|
"minWakeSecs": 60,
|
|
"isPowerSaving": false,
|
|
"adcMultiplierOverride": 0.0,
|
|
"deviceBatteryInaAddress": 0,
|
|
"powermonEnables": "0"
|
|
},
|
|
"network": {
|
|
"ntpServer": "meshtastic.pool.ntp.org",
|
|
"wifiEnabled": false,
|
|
"wifiSsid": "",
|
|
"wifiPsk": "",
|
|
"ethEnabled": false,
|
|
"addressMode": "DHCP",
|
|
"rsyslogServer": "",
|
|
"enabledProtocols": 0,
|
|
"ipv6Enabled": false
|
|
},
|
|
"display": {
|
|
"screenOnSecs": 600,
|
|
"wakeOnTapOrMotion": true,
|
|
"gpsFormat": "UNUSED",
|
|
"autoScreenCarouselSecs": 0,
|
|
"compassNorthTop": false,
|
|
"flipScreen": false,
|
|
"units": "METRIC",
|
|
"oled": "OLED_AUTO",
|
|
"displaymode": "DEFAULT",
|
|
"headingBold": false,
|
|
"compassOrientation": "DEGREES_0",
|
|
"use12hClock": false,
|
|
"useLongNodeName": false
|
|
},
|
|
"lora": {
|
|
"usePreset": true,
|
|
"bandwidth": 250,
|
|
"spreadFactor": 11,
|
|
"codingRate": 5,
|
|
"region": "US",
|
|
"hopLimit": 5,
|
|
"txEnabled": true,
|
|
"txPower": 30,
|
|
"overrideDutyCycle": true,
|
|
"sx126xRxBoostedGain": true,
|
|
"configOkToMqtt": true,
|
|
"modemPreset": "LONG_FAST",
|
|
"frequencyOffset": 0.0,
|
|
"channelNum": 0,
|
|
"overrideFrequency": 0.0,
|
|
"paFanDisabled": false,
|
|
"ignoreIncoming": [],
|
|
"ignoreMqtt": false
|
|
},
|
|
"bluetooth": {
|
|
"enabled": true,
|
|
"mode": "FIXED_PIN",
|
|
"fixedPin": 175648
|
|
},
|
|
"security": {
|
|
"publicKey": "zFCn7RvmnWbQDgKMbq0l54esZmMMXaf9sVzP5k2xdwU=",
|
|
"privateKey": "yC6dx3UAf35GIIU9O/fZVAdTkXPDsRV+LpZbCj3Qxnw=",
|
|
"serialEnabled": true,
|
|
"adminKey": [],
|
|
"isManaged": false,
|
|
"debugLogApiEnabled": false,
|
|
"adminChannelEnabled": false
|
|
},
|
|
"version": 0
|
|
}
|
|
|
|
Module preferences: {
|
|
"mqtt": {
|
|
"enabled": true,
|
|
"address": "mqtt.meshtastic.org",
|
|
"username": "meshdev",
|
|
"password": "large4cats",
|
|
"root": "msh/US",
|
|
"mapReportingEnabled": true,
|
|
"mapReportSettings": {
|
|
"publishIntervalSecs": 3600,
|
|
"positionPrecision": 12,
|
|
"shouldReportLocation": true
|
|
},
|
|
"encryptionEnabled": false,
|
|
"jsonEnabled": false,
|
|
"tlsEnabled": false,
|
|
"proxyToClientEnabled": false
|
|
},
|
|
"serial": {
|
|
"enabled": true,
|
|
"mode": "PROTO",
|
|
"echo": false,
|
|
"rxd": 0,
|
|
"txd": 0,
|
|
"baud": "BAUD_DEFAULT",
|
|
"timeout": 0,
|
|
"overrideConsoleSerialPort": false
|
|
},
|
|
"externalNotification": {
|
|
"enabled": true,
|
|
"outputMs": 1000,
|
|
"output": 36,
|
|
"active": true,
|
|
"alertMessage": true,
|
|
"nagTimeout": 60,
|
|
"outputVibra": 0,
|
|
"outputBuzzer": 0,
|
|
"alertMessageVibra": false,
|
|
"alertMessageBuzzer": false,
|
|
"alertBell": false,
|
|
"alertBellVibra": false,
|
|
"alertBellBuzzer": false,
|
|
"usePwm": false,
|
|
"useI2sAsBuzzer": false
|
|
},
|
|
"storeForward": {
|
|
"enabled": true,
|
|
"heartbeat": false,
|
|
"records": 0,
|
|
"historyReturnMax": 0,
|
|
"historyReturnWindow": 0,
|
|
"isServer": false
|
|
},
|
|
"rangeTest": {
|
|
"enabled": false,
|
|
"sender": 0,
|
|
"save": false,
|
|
"clearOnReboot": false
|
|
},
|
|
"telemetry": {
|
|
"deviceUpdateInterval": 1800,
|
|
"powerUpdateInterval": 1800,
|
|
"deviceTelemetryEnabled": true,
|
|
"environmentUpdateInterval": 0,
|
|
"environmentMeasurementEnabled": false,
|
|
"environmentScreenEnabled": false,
|
|
"environmentDisplayFahrenheit": false,
|
|
"airQualityEnabled": false,
|
|
"airQualityInterval": 0,
|
|
"powerMeasurementEnabled": false,
|
|
"powerScreenEnabled": false,
|
|
"healthMeasurementEnabled": false,
|
|
"healthUpdateInterval": 0,
|
|
"healthScreenEnabled": false
|
|
},
|
|
"cannedMessage": {
|
|
"enabled": true,
|
|
"rotary1Enabled": false,
|
|
"inputbrokerPinA": 0,
|
|
"inputbrokerPinB": 0,
|
|
"inputbrokerPinPress": 0,
|
|
"inputbrokerEventCw": "NONE",
|
|
"inputbrokerEventCcw": "NONE",
|
|
"inputbrokerEventPress": "NONE",
|
|
"updown1Enabled": false,
|
|
"allowInputSource": "",
|
|
"sendBell": false
|
|
},
|
|
"audio": {
|
|
"codec2Enabled": false,
|
|
"pttPin": 0,
|
|
"bitrate": "CODEC2_DEFAULT",
|
|
"i2sWs": 0,
|
|
"i2sSd": 0,
|
|
"i2sDin": 0,
|
|
"i2sSck": 0
|
|
},
|
|
"remoteHardware": {
|
|
"enabled": false,
|
|
"allowUndefinedPinAccess": false,
|
|
"availablePins": []
|
|
},
|
|
"neighborInfo": {
|
|
"enabled": true,
|
|
"updateInterval": 14400,
|
|
"transmitOverLora": false
|
|
},
|
|
"ambientLighting": {
|
|
"current": 10,
|
|
"red": 3,
|
|
"green": 112,
|
|
"blue": 71,
|
|
"ledState": false
|
|
},
|
|
"detectionSensor": {
|
|
"minimumBroadcastSecs": 45,
|
|
"detectionTriggerType": "LOGIC_HIGH",
|
|
"enabled": false,
|
|
"stateBroadcastSecs": 0,
|
|
"sendBell": false,
|
|
"name": "",
|
|
"monitorPin": 0,
|
|
"usePullup": false
|
|
},
|
|
"paxcounter": {
|
|
"enabled": false,
|
|
"paxcounterUpdateInterval": 0,
|
|
"wifiThreshold": 0,
|
|
"bleThreshold": 0
|
|
},
|
|
"version": 0
|
|
}
|
|
|
|
Channels:
|
|
Index 0: PRIMARY psk=default { "psk": "AQ==", "name": "LongFast", "uplinkEnabled": true, "moduleSettings": { "positionPrecision": 13, "isMuted": false }, "channelNum": 0, "id": 0, "downlinkEnabled": false }
|
|
|
|
Primary channel URL: https://meshtastic.org/e/#ChMSAQEaCExvbmdGYXN0KAE6AggNEhgIARj6ASALKAU4AUAFSAFQHmABaAHIBgE
|
|
|
|
Firmware Update
|
|
|
|
adafruit-nrfutil --verbose dfu serial --package firmware-rak4631-2.7.15.567b8ea-ota.zip --port /dev/ttyACM0 -b 115200 --singlebank --touch 1200
|
|
|
|
Software Update
|
|
|
|
TMPDIR=/overlay/tmp/pip-tmp pip3 install meshtastic
|
|
python3 -m meshtastic --port /dev/ttyACM0 --info
|
|
|
|
Test
|
|
python3 /usr/bin/uplink.py
|
|
|
|
Config
|
|
```bash
|
|
meshtastic --port /dev/ttyACM0 \
|
|
--set neighbor_info.transmit_over_lora false \
|
|
--set device.role CLIENT \
|
|
--set device.rebroadcast_mode ALL \
|
|
--set device.node_info_broadcast_secs 10800 \
|
|
--set-owner "Michael Torrez" \
|
|
--set-owner-short "CUN7" \
|
|
--set lora.region US \
|
|
--set lora.modem_preset LONG_FAST \
|
|
--set lora.config_ok_to_mqtt true \
|
|
--set mqtt.enabled true \
|
|
--set mqtt.address "mqtt.meshtastic.org" \
|
|
--set mqtt.username "meshdev" \
|
|
--set mqtt.password "large4cats" \
|
|
--set mqtt.map_reporting_enabled true \
|
|
--set mqtt.proxy_to_client_enabled false \
|
|
--set mqtt.map_report_settings.should_report_location true \
|
|
--set mqtt.mapReportSettings.publishIntervalSecs 300 \
|
|
--set mqtt.mapReportSettings.positionPrecision 32 \
|
|
--set telemetry.send_node_status true \
|
|
--set telemetry.device_update_interval 360 \
|
|
--set neighbor_info.enabled true \
|
|
--set neighbor_info.update_interval 14400 \
|
|
--set external_notification.enabled false \
|
|
--set store_forward.enabled true \
|
|
--set position.gps_mode ENABLED \
|
|
--set position.gps_update_interval 900 \
|
|
--set position.position_broadcast_secs 900 \
|
|
--set position.position_broadcast_smart_enabled true \
|
|
--set position.fixed_position false \
|
|
--set serial.enabled true \
|
|
--set serial.mode PROTO \
|
|
--pos-fields ALTITUDE ALTITUDE_MSL DOP SATINVIEW HEADING SPEED \
|
|
--ch-set module_settings.position_precision 13 --ch-index 0 \
|
|
--ch-set uplink_enabled true --ch-index 0
|
|
|
|
|
|
|
|
|
|
|