Description of all parameters

Hi

Where can I find description of all the parameters available in the python api?

I want to tune my devices for a much more interactive use. Like, GPS updates every minute. Repeat messages for a long time, so users having been offline will get the message. Don’t go to sleep, so phones are disconnected.

My settings. Only adjusted position_broadcast_secs so far.

$ meshtastic --info
Connected to radio
my_node_num: 84748836
has_gps: true
num_channels: 10
region: "1.0"
hw_model: "tbeam"
firmware_version: "1.1.32"
packet_id_bits: 32
current_packet_id: 1279394785
node_num_bits: 32
message_timeout_msec: 300000
min_app_version: 20120

preferences {
  position_broadcast_secs: 60
  send_owner_interval: 4
  wait_bluetooth_secs: 28800
  screen_on_secs: 60
  phone_timeout_secs: 900
  phone_sds_timeout_sec: 4294967295
  mesh_sds_timeout_secs: 4294967295
  sds_secs: 31536000
  ls_secs: 86400
  min_wake_secs: 10
  wifi_ssid: ...
  wifi_password: ...
  region: EU865
  gps_operation: GpsOpMobile
  gps_update_interval: 86400
  gps_attempt_time: 300
  is_router: true
  is_low_power: true
}
channel_settings {
  psk: ...
  name: ...
}

Channel URL ...
Nodes in mesh:
...
1 Like

Welcome!!

I think this might be the page you are looking for.

I am trying similar things with my devices, sacrifice some battery life to get the highest accuracy, frequency, and reliability of messages and location. Pretty much staring at the screen and tracking the other device with the pointer for hours.

1 Like

Hi @Lure.Exciting.Salads , @lais this is great. I have been trying this too with much the same aim - to get accurate positioning for hiking. Do you think it’s possible now to have a standard list of values optimised for hiking? I realise battery life is an issue but 24 hours looks fairly easy to achieve. So with a spare that would be fine for me. Thanks.

1 Like

Very nice, thanks!

Wrote this short script to set similar values to all my devices. Will test to see if it works for my case.

#!/bin/bash
meshcmd="meshtastic"

echo "Set values to high update freq. Sacrifice battery life."
# https://github.com/meshtastic/Meshtastic-protobufs/blob/master/docs/docs.md#.RadioConfig.UserPreferences

# Numeric configs
declare -A prefarray
prefarray=( \
  # send our position this often
  [position_broadcast_secs]=60 \

  # stay alive after position_broadcast_secs, allows a paired phone to hear from us
  [wait_bluetooth_secs]=20 \

  # delay before killing Bluetooth when no phone
  [phone_timeout_secs]=3600 \

  # phone_sds_timeout_sec is currently disabled, but keep an eye on it

  # Turn off after this time
  [mesh_sds_timeout_secs]=$((24*3600)) \

  # How often should we try to get GPS position
  [gps_update_interval]=30 \
)

for key in "${!prefarray[@]}"; do
  echo "setting $key to ${prefarray[$key]}"
  $meshcmd --set $key ${prefarray[$key]}

done
3 Likes