Meshtastic device firmware
Go to file
HarukiToreda 1c54388bb8
Toggle Bluetooth with Fn+b shortcut (#4977)
* Toggle Blutooth with Fn+b shortcut

Problem:
As many are aware, ESP32 devices are known for their high power consumption. For instance, the Heltec ESP32 V3 draws around 110mA when powered on with the screen active and connected to a phone via Bluetooth. The Bluetooth radio alone is responsible for approximately 50mA of that consumption. For keyboard-based standalone devices, which rarely need Bluetooth other than for changing settings, users were forced to keep Bluetooth on regardless of necessity. There was no way to toggle Bluetooth on or off without physically connecting the device to a computer via serial or using the admin channel, which required another node for access.

Solution:
I implemented a new feature that allows users to turn off Bluetooth on keyboard devices by pressing Fn+b and turn it back on when needed. This enhancement significantly improves power efficiency for these devices.

Result:
With Bluetooth off, the device now consumes only 55mA. When combined with Power Save mode, the consumption can drop as low as 11mA, a substantial reduction from the previous 110mA. Users can still easily reconnect to a phone using the shortcut when necessary, offering greater flexibility and extended battery life.

* Remove 1 reboot at least.

I was able to prevent a reboot using the disableBluetooth(); command, current tested at 47-55mA, it doesn't require a reboot to turn off, but it does need reboot to turn back on.

* Update CannedMessageModule.cpp
2024-10-07 15:16:10 -05:00
.devcontainer Trunk things 2024-09-25 16:18:45 -05:00
.github Upgrade nanopb (#4973) 2024-10-06 07:55:02 -05:00
.trunk Upgrade nanopb (#4973) 2024-10-06 07:55:02 -05:00
.vscode Support for Polish OLED characters 2024-08-28 13:10:19 +02:00
arch revert .... revert .... 2024-10-01 16:36:44 +02:00
bin Upgrade nanopb (#4973) 2024-10-06 07:55:02 -05:00
boards Remove support for pca10056-rc-clock (#4955) 2024-10-05 05:26:54 -05:00
data/static Bundle WebUI (#878) 2021-10-09 17:15:12 +11:00
extra_scripts Fixes for #4395: nrf52 flash filesystem reliability (#4406) 2024-08-13 06:45:39 -05:00
images remove hard to maintain system-info bootloader 2022-10-01 09:50:16 +02:00
meshtestic@dcac7e5673 python3 ref 2024-09-24 15:24:08 -05:00
monitor Fixes for #4395: nrf52 flash filesystem reliability (#4406) 2024-08-13 06:45:39 -05:00
protobufs@c9ae7fd478 [create-pull-request] automated change (#4974) 2024-10-06 08:14:03 -05:00
release don't keep uf2 files in source control 2020-08-21 09:37:41 -07:00
src Toggle Bluetooth with Fn+b shortcut (#4977) 2024-10-07 15:16:10 -05:00
test/test_crypto Add pkc test (#4878) 2024-09-26 19:33:08 -05:00
variants Revert "Remove rak4631_epaper_onrxtx variant (#4958)" (#4963) 2024-10-05 09:27:10 -05:00
.gitattributes trunk roundhouse kick 2023-01-21 21:23:24 +01:00
.gitignore Remove ancient .gitignore lines (#4952) 2024-10-05 05:15:20 -05:00
.gitmodules Hello world for MeshTestic (#4607) 2024-09-01 11:29:34 -05:00
.gitpod.yml add a .yml to setup a Gitpod instance quickly (#4551) 2024-08-23 20:24:23 -05:00
.semgrepignore Fix de/compression buffer overflows in TAK packets (#4317) 2024-07-23 06:16:53 -05:00
CONTRIBUTING.md lol of course trunk fmt 2024-09-04 15:33:28 -07:00
docker-compose.yml trunk roundhouse kick 2023-01-21 21:23:24 +01:00
Dockerfile Fix that Dockerfile would not run with podman (#4262) 2024-07-13 06:09:51 -05:00
LICENSE move my bt experiment into its own repo (about to remove ttn) 2020-02-01 08:30:53 -08:00
partition-table.csv - new Bootloader for ESP-IDF 4.2 2022-09-26 22:42:58 +02:00
platformio.ini Remove support for pca10056-rc-clock (#4955) 2024-10-05 05:26:54 -05:00
pyocd.yaml Add semihosting support for nrf52 devices (#4137) 2024-06-24 10:27:37 -05:00
README.md Update README.md 2023-10-09 22:30:02 +10:00
SECURITY.md Trunk things 2024-09-25 16:18:45 -05:00
suppressions.txt Cpp-check warnings cleanup (#3014) 2023-12-14 07:35:46 -06:00
userPrefs.h UserPrefs - Preconfigure up to 3 channels, GPS Mode (#4930) 2024-10-06 15:32:07 +08:00
userPrefs.json Start of generating json manifest of macros in userPrefs.h (#4946) 2024-10-06 05:24:57 -05:00
version.properties [create-pull-request] automated change (#4960) 2024-10-05 08:05:44 -05:00

Meshtastic Firmware

GitHub release downloads CI CLA assistant Fiscal Contributors Vercel

Overview

This repository contains the device firmware for the Meshtastic project.

Stats

Alt