meshtastic/docs/settings/power.mdx

504 lines
18 KiB
Plaintext
Raw Normal View History

2021-04-27 14:12:18 -07:00
---
id: power
2022-06-24 19:42:37 -07:00
title: 1.2 Power Settings
sidebar_label: 1.2 Power
2021-04-27 14:12:18 -07:00
---
2021-10-22 19:58:41 -07:00
2021-05-05 09:18:44 -07:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2021-04-27 14:12:18 -07:00
## Overview
2022-01-01 23:12:28 -08:00
Power settings on a Meshtastic device can be set like other user-define settings with the `--set` command see ([see Meshtastic-python](/docs/software/python/python-cli)). Some of these options are implicit in other commands. For example, when you set the device to router mode using `is_router true`, it is implied that deep sleep is disabled and we want to constantly listen for messages. Below is a list of all user-definable settings and the acceptable values that these settings can use.
2021-04-27 14:12:18 -07:00
2022-01-01 23:12:28 -08:00
For a description and more information on what exactly all of these mean, please refer to [Power Management State Machine](/docs/software/other/power)
2021-04-27 14:12:18 -07:00
## Settings
2022-03-08 23:51:46 -08:00
| Setting | Acceptable Values | Default |
| :----------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------: |
| charge_current | `MAUnset`, `MA100`, `MA190`, `MA280`, `MA360`, `MA450`, `MA550`, `MA630`, `MA700`, `MA780`, `MA880`, `MA960`, `MA1000`, `MA1080`, `MA1160`, `MA1240`, `MA1320`: | `MAUnset` |
| is_always_powered | `true`, `false` | `false` |
| is_low_power | `true`, `false` | `false` |
| is_router | `true`, `false` | `false` |
| ls_secs | `integer` (seconds) | `0` |
| mesh_sds_timeout_secs | `integer` (seconds) | `0` |
| min_wake_secs | `integer` (seconds) | `0` |
| on_battery_shutdown_after_secs | `integer` (seconds) | `0` |
| phone_timeout_secs | `integer` (seconds) | `0` |
| screen_on_secs | `integer` (seconds) | `0` |
| sds_secs | `integer` (seconds) | `0` |
| wait_bluetooth_secs | `integer` (seconds) | `0` |
2021-04-27 14:12:18 -07:00
2021-05-03 13:15:01 -07:00
:::note
2022-03-09 00:35:21 -08:00
2022-02-02 11:58:04 -08:00
When you change the following settings to `0` they assume the following defaults:
2021-10-22 19:58:41 -07:00
2021-05-03 13:15:01 -07:00
- `ls_secs`: 1 hour
- `mesh_sds_timeout_secs`: 2 hours
- `min_wake_secs`: 10 seconds
- `phone_timeout_secs`: 15 minutes
- `screen_on_secs`: 1 minute
- `sds_secs`: 1 year
- `wait_bluetooth_secs`: 1 minute
2022-03-29 21:05:45 -07:00
:::
2021-05-03 13:15:01 -07:00
### charge_current
2022-02-02 12:46:00 -08:00
Sets the current of the battery charger.
2022-02-02 15:29:56 -08:00
#### Specify charge_current
2022-02-02 12:46:00 -08:00
<Tabs
2022-03-08 23:51:46 -08:00
groupId="settings"
defaultValue="cli"
values={[
{label: 'CLI', value: 'cli'},
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'iOS'},
{label: 'Web', value: 'web'},
]}>
<TabItem value="cli">
```shell title="Unset charge current"
2022-03-08 23:51:46 -08:00
meshtastic --set charge_current MAUnset
```
```shell title="Set charge current"
2022-03-08 23:51:46 -08:00
meshtastic --set charge_current MA100
```
2022-02-02 12:46:00 -08:00
</TabItem>
<TabItem value="android">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="iOS">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="web">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
</Tabs>
2021-05-03 13:15:01 -07:00
2022-01-26 15:16:54 -08:00
### is_always_powered
Circumvents the logic block for determining whether the device is powered or not. Useful for devices with finicky ADC issues on the battery sense pins.
2022-02-02 15:29:56 -08:00
#### Enable/Disable is_always_powered
2022-03-08 23:51:46 -08:00
2022-02-02 12:46:00 -08:00
<Tabs
2022-03-08 23:51:46 -08:00
groupId="settings"
defaultValue="cli"
values={[
{label: 'CLI', value: 'cli'},
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'iOS'},
{label: 'Web', value: 'web'},
]}>
<TabItem value="cli">
```shell title="Enable is_always_powered"
2022-03-08 23:51:46 -08:00
meshtastic --set is_always_powered true
```
```shell title="Disable is_always_powered"
2022-03-08 23:51:46 -08:00
meshtastic --set is_always_powered false
```
2022-02-02 12:46:00 -08:00
</TabItem>
<TabItem value="android">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="iOS">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="web">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
</Tabs>
2021-05-03 13:15:01 -07:00
### is_low_power
2022-02-02 12:48:24 -08:00
If set, we are powered from a low-current source (i.e. solar), so even if it looks like we have power flowing in we should try to minimize power consumption as much as possible.
:::note
2022-03-09 00:35:21 -08:00
2022-02-02 12:48:24 -08:00
You do **not** need to set this if you've set `is_router` (it is implied in that case).
2022-03-09 00:35:21 -08:00
2022-02-02 12:48:24 -08:00
:::
2021-05-03 13:15:01 -07:00
2022-02-02 15:29:56 -08:00
#### Enable/Disable is_low_power
2022-03-08 23:51:46 -08:00
2022-02-02 12:46:00 -08:00
<Tabs
2022-03-08 23:51:46 -08:00
groupId="settings"
defaultValue="cli"
values={[
{label: 'CLI', value: 'cli'},
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'iOS'},
{label: 'Web', value: 'web'},
]}>
<TabItem value="cli">
```shell title="Enable is_low_power"
2022-03-08 23:51:46 -08:00
meshtastic --set is_low_power true
```
```shell title="Disable is_low_power"
2022-03-08 23:51:46 -08:00
meshtastic --set is_low_power false
```
2022-02-02 12:46:00 -08:00
</TabItem>
<TabItem value="android">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="iOS">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="web">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
</Tabs>
2021-05-03 13:15:01 -07:00
### is_router
2022-02-02 12:46:00 -08:00
Are we operating as a router. Changes behavior in the following ways: The device will only sleep for critically low battery level (i.e. always tries to stay alive for the mesh) In the future routing decisions will preferentially route packets through nodes with this attribute (because assumed good line of sight).
2022-02-02 15:29:56 -08:00
#### Enable/Disable is_router
2022-03-08 23:51:46 -08:00
2022-02-02 12:46:00 -08:00
<Tabs
2022-03-08 23:51:46 -08:00
groupId="settings"
defaultValue="cli"
values={[
{label: 'CLI', value: 'cli'},
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'iOS'},
{label: 'Web', value: 'web'},
]}>
<TabItem value="cli">
```shell title="Enable is_router"
2022-03-08 23:51:46 -08:00
meshtastic --set is_router true
```
```shell title="Disable is_router"
2022-03-08 23:51:46 -08:00
meshtastic --set is_router false
```
2022-02-02 12:46:00 -08:00
</TabItem>
<TabItem value="android">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="iOS">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="web">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
</Tabs>
2021-05-03 13:15:01 -07:00
### ls_secs
2022-02-02 12:46:00 -08:00
Power management state machine option. See the [power page](/docs/software/other/power) for details. 0 for default of 3600.
2022-02-02 15:29:56 -08:00
#### Configure ls_secs
2022-03-08 23:51:46 -08:00
2022-02-02 12:46:00 -08:00
<Tabs
2022-03-08 23:51:46 -08:00
groupId="settings"
defaultValue="cli"
values={[
{label: 'CLI', value: 'cli'},
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'iOS'},
{label: 'Web', value: 'web'},
]}>
<TabItem value="cli">
```shell title="Set ls_secs to default (1 hour/3600 seconds)"
2022-03-08 23:51:46 -08:00
meshtastic --set ls_secs 0
```
```shell title="Set ls_secs to 120 seconds"
2022-03-08 23:51:46 -08:00
meshtastic --set ls_secs 120
```
2022-02-02 12:46:00 -08:00
</TabItem>
<TabItem value="android">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="iOS">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="web">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
</Tabs>
2021-05-03 13:15:01 -07:00
### mesh_sds_timeout_secs
2022-02-02 12:46:00 -08:00
Power management state machine option. See the [power page](/docs/software/other/power) for details. 0 for default of two hours, use the MAXUINT or 4294967295 to disable.
2022-02-02 15:29:56 -08:00
#### Configure mesh_sds_timeout_secs
2022-03-08 23:51:46 -08:00
2022-02-02 12:46:00 -08:00
<Tabs
2022-03-08 23:51:46 -08:00
groupId="settings"
defaultValue="cli"
values={[
{label: 'CLI', value: 'cli'},
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'iOS'},
{label: 'Web', value: 'web'},
]}>
<TabItem value="cli">
```shell title="Set mesh_sds_timeout_secs to default (2 hour/7200 seconds)"
2022-03-08 23:51:46 -08:00
meshtastic --set mesh_sds_timeout_secs 0
```
```shell title="Set mesh_sds_timeout_secs to 120 seconds"
2022-03-08 23:51:46 -08:00
meshtastic --set mesh_sds_timeout_secs 120
```
```shell title="Disable mesh_sds_timeout_secs (using MAXUINT)"
2022-03-08 23:51:46 -08:00
meshtastic --set mesh_sds_timeout_secs 4294967295
```
2022-02-02 12:46:00 -08:00
</TabItem>
<TabItem value="android">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="iOS">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="web">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
</Tabs>
2021-05-03 13:15:01 -07:00
### min_wake_secs
2022-02-02 12:46:00 -08:00
Power management state machine option. See the [power page](/docs/software/other/power)for details. 0 for default of 10 seconds.
2022-02-02 15:29:56 -08:00
#### Configure min_wake_secs
2022-02-02 12:46:00 -08:00
<Tabs
2022-03-08 23:51:46 -08:00
groupId="settings"
defaultValue="cli"
values={[
{label: 'CLI', value: 'cli'},
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'iOS'},
{label: 'Web', value: 'web'},
]}>
<TabItem value="cli">
```shell title="Set min_wake_secs to default (10 seconds)"
2022-03-08 23:51:46 -08:00
meshtastic --set min_wake_secs 0
```
```shell title="Set min_wake_secs to 120 seconds"
2022-03-08 23:51:46 -08:00
meshtastic --set min_wake_secs 120
```
2022-02-02 12:46:00 -08:00
</TabItem>
<TabItem value="android">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="iOS">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="web">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
</Tabs>
2021-05-03 13:15:01 -07:00
2022-01-26 15:19:56 -08:00
### on_battery_shutdown_after_secs
If non-zero, the device will fully power off this many seconds after external power is removed.
2022-02-02 15:29:56 -08:00
#### Enable/Disable on_battery_shutdown_after_secs
2022-03-08 23:51:46 -08:00
2022-02-02 12:46:00 -08:00
<Tabs
2022-03-08 23:51:46 -08:00
groupId="settings"
defaultValue="cli"
values={[
{label: 'CLI', value: 'cli'},
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'iOS'},
{label: 'Web', value: 'web'},
]}>
<TabItem value="cli">
```shell title="Disable on_battery_shutdown_after_secs"
2022-03-08 23:51:46 -08:00
meshtastic --set on_battery_shutdown_after_secs 0
```
```shell title="Set device to shutdown after 120 seconds on battery"
2022-03-08 23:51:46 -08:00
meshtastic --set on_battery_shutdown_after_secs 120
```
2022-02-02 12:46:00 -08:00
</TabItem>
<TabItem value="android">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="iOS">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="web">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
</Tabs>
2021-05-03 13:15:01 -07:00
### phone_timeout_secs
2022-02-02 12:46:00 -08:00
Power management state machine option. See the [power page](/docs/software/other/power) for details. 0 for default of 15 minutes.
2022-02-02 15:29:56 -08:00
#### Configure phone_timeout_secs
2022-02-02 12:46:00 -08:00
<Tabs
2022-03-08 23:51:46 -08:00
groupId="settings"
defaultValue="cli"
values={[
{label: 'CLI', value: 'cli'},
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'iOS'},
{label: 'Web', value: 'web'},
]}>
<TabItem value="cli">
```shell title="Set phone_timeout_secs to default (15 minutes)"
2022-03-08 23:51:46 -08:00
meshtastic --set phone_timeout_secs 0
```
```shell title="Set phone_timeout_secs to 120 seconds"
2022-03-08 23:51:46 -08:00
meshtastic --set phone_timeout_secs 120
```
2022-02-02 12:46:00 -08:00
</TabItem>
<TabItem value="android">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="iOS">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="web">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
</Tabs>
2021-05-03 13:15:01 -07:00
### screen_on_secs
2022-06-03 20:42:39 -07:00
Power management state machine option. See the [power page](/docs/software/other/power) for details.
2022-06-03 20:43:41 -07:00
- Greater than Meshtastic 1.3 - 0 for default of 10 minutes
- Less than Meshtastic v1.3 - 0 for default of 1 minute
2021-05-03 13:15:01 -07:00
2022-02-02 15:29:56 -08:00
#### Configure screen_on_secs
2022-02-02 12:46:00 -08:00
<Tabs
2022-03-08 23:51:46 -08:00
groupId="settings"
defaultValue="cli"
values={[
{label: 'CLI', value: 'cli'},
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'iOS'},
{label: 'Web', value: 'web'},
]}>
<TabItem value="cli">
```shell title="Set screen_on_secs to default (1 minute)"
2022-03-08 23:51:46 -08:00
meshtastic --set screen_on_secs 0
```
```shell title="Set screen_on_secs to 120 seconds"
2022-03-08 23:51:46 -08:00
meshtastic --set screen_on_secs 120
```
2022-02-02 12:46:00 -08:00
</TabItem>
<TabItem value="android">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="iOS">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="web">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
</Tabs>
2021-05-03 13:15:01 -07:00
### sds_secs
2022-02-02 12:46:00 -08:00
Power management state machine option. See the [power page](/docs/software/other/power) for details. 0 for default of one year.
2022-02-02 15:29:56 -08:00
#### Configure sds_secs
2022-02-02 12:46:00 -08:00
<Tabs
2022-03-08 23:51:46 -08:00
groupId="settings"
defaultValue="cli"
values={[
{label: 'CLI', value: 'cli'},
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'iOS'},
{label: 'Web', value: 'web'},
]}>
<TabItem value="cli">
```shell title="Set sds_secs to default (1 year)"
2022-03-08 23:51:46 -08:00
meshtastic --set sds_secs 0
```
```shell title="Set sds_secs to 120 seconds"
2022-03-08 23:51:46 -08:00
meshtastic --set sds_secs 120
```
2022-02-02 12:46:00 -08:00
</TabItem>
<TabItem value="android">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="iOS">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="web">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
</Tabs>
2021-05-03 13:15:01 -07:00
### wait_bluetooth_secs
2022-02-02 12:46:00 -08:00
Wait number of seconds for Bluetooth - Power management state machine option. See the [power page](/docs/software/other/power) for details. 0 for default of 1 minute.
2022-02-02 15:29:56 -08:00
#### Configure wait_bluetooth_secs
2022-03-08 23:51:46 -08:00
2022-02-02 12:46:00 -08:00
<Tabs
2022-03-08 23:51:46 -08:00
groupId="settings"
defaultValue="cli"
values={[
{label: 'CLI', value: 'cli'},
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'iOS'},
{label: 'Web', value: 'web'},
]}>
<TabItem value="cli">
```shell title="Set wait_bluetooth_secs to default (60 seconds)"
2022-03-08 23:51:46 -08:00
meshtastic --set wait_bluetooth_secs 0
```
```shell title="Set wait_bluetooth_secs to 120 seconds"
2022-03-08 23:51:46 -08:00
meshtastic --set wait_bluetooth_secs 120
```
2021-05-05 09:18:44 -07:00
</TabItem>
<TabItem value="android">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="iOS">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
</TabItem>
<TabItem value="web">
Configuring this setting is not yet available for the selected platform. If this is incorrect please update the documentation for this page.
2021-05-05 09:18:44 -07:00
</TabItem>
</Tabs>