Commit Graph

424 Commits

Author SHA1 Message Date
Manuel
a5f5c1bfc4
Merge branch 'master' into tft-gui-work 2024-10-30 20:57:50 +01:00
Jonathan Bennett
b3ba23b4e8 Don't generate or populate PKC keys in licensed mode 2024-10-29 14:17:14 -05:00
Ben Meadors
936260fca3
Default rebroadcast mode for Router and Repeater to ignore problematic portnums (#5178)
* Default rebroadcast mode for Router and Repeater to ignore problematic portnums

* Verbiage

* IS_ONE_OF
2024-10-29 05:44:32 -05:00
mverch67
a8bd1ee0da stability: add SPI lock before saving via littleFS 2024-10-26 16:01:46 +02:00
mverch67
f184ba53b7 stability: add SPI lock before saving via littleFS 2024-10-25 16:09:49 +02:00
Manuel
c655591d87
Merge branch 'master' into tft-gui-work 2024-10-24 21:58:48 +02:00
Ben Meadors
ca5f71f774
Add device unique id (#5092)
* Add device unique id

* Trunk

* WIP

* Esp32 implementation

* Trunk

* Check for ESP_EFUSE_OPTIONAL_UNIQUE_ID

* Comment print

* Trunk
2024-10-23 21:18:37 -05:00
Manuel
171eea045f
Merge branch 'master' into tft-gui-work 2024-10-20 16:02:29 +02:00
Ben Meadors
4575352d8c
Initial NODENUM_BROADCAST_NO_LORA implementation with NeighborInfo module (#5087)
* Initial NODENUM_BROADCAST_NO_LORA implementation with NeighborInfo module

* isBroadcast

* Trunkt
2024-10-19 12:48:00 -05:00
Ben Meadors
ec9e562a77
Coerce minimum telemetry interval of 30 minutes on defaults and make new default interval one hour (#5086)
* Coerce minimum telemetry interval of 30 minutes on defaults and make new default interval one hour

* Smaller log messages
2024-10-17 13:33:52 -05:00
Manuel
39e67aec8f
Merge branch 'master' into tft-gui-work 2024-10-16 23:09:58 +02:00
mverch67
4121abc576 remove newlines from debug log 2024-10-16 22:30:00 +02:00
Andre K
af0db8a29f
retain fixed_position during reset-nodedb (#5067) 2024-10-14 19:32:25 -05:00
mverch67
56ab052892 fix merge issue 2024-10-15 01:31:26 +02:00
Manuel
fa74645096
Merge branch 'master' into tft-gui-work 2024-10-14 22:17:47 +02:00
Thomas Göttgens
e49e584ae1 drop oem.proto support in favor of userprefs 2024-10-14 19:39:07 +02:00
Manuel
f7e708753c
Merge branch 'master' into tft-gui-work 2024-10-14 13:03:48 +02:00
Thomas Göttgens
05e4a639a1
remove newline from logging statements. (#5022)
remove newline from logging statements in code. The LOG_* functions will now magically add it at the end.

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-10-14 15:11:43 +11:00
mverch67
9f15ef50e6 review update 2024-10-11 16:30:42 +02:00
mverch67
24c9b9c879 Merge branch 'tft-gui-work' of https://github.com/meshtastic/firmware into tft-gui-work 2024-10-11 15:19:30 +02:00
mverch67
97a602ebc2 device-ui persistency 2024-10-11 15:19:24 +02:00
Manuel
5b08bc9f82
Merge branch 'master' into tft-gui-work 2024-10-11 09:05:23 +02:00
Ben Meadors
1f2d972e18
Remove waypoint and text message frames on NodeDB reset as well (#5029) 2024-10-10 19:24:37 -05:00
Ben Meadors
e8f287a36f
Fixes critical error rendering before screen thread is running (#5024)
* Fixes critical error rendering before screen thread is running

* Fix GPS thread crashing on probe code attempting to %s print an enum

* 10
2024-10-10 14:58:42 -05:00
Manuel
d4e0c258e2
Merge branch 'master' into tft-gui-work 2024-10-08 09:25:49 +02:00
Ben Meadors
411aedaf5d
Add health telemetry module (#4927)
* Add stub health telemetry module

* Add detection for MAX30102 Health Sensor

It lives on I2C bus at 0x57, which conflicts with an existing
sensor. Add code to check the PARTID register for its response 0x15
per spec.

* Add detection for MLX90614

An IR Temperature sensor suitable for livestock monitoring.

* Add libraries for MLX90614 and MAX30102 sensors

* Fix Trunk

* Add support for MLX90614 IR Temperature Sensor

* Add support for MAX30102 (Temperature)

* Make it build - our first HealthTelemetry on the mesh.

If a MAX30102 is connected, its temperature will be sent to the
mesh as HealthTelemetry.

* Add spo2 and heart rate calculations to MAX30102

* Switch MLX90614 to Adafruit library

Sparkfun was having fun with SDA/SCL variables which we can avoid
by switching to this highly similar library.

* Enable HealthTelemetry if MLX90614 detected

* Change MLX90614 emissivity for human skin.

* Add health screen!

* Remove autogenerated file from branch

* Preparing for review

* Fix MeshService master sync from before.

* Prepare for review

* For the americans

* Fix native build

* Fix for devices with no screen

* Remove extra log causing issues

---------

Co-authored-by: Tom Fifield <tom@tomfifield.net>
2024-10-07 19:50:44 -05:00
Mictronics
94ecbad904
Fix storage of admin key when installing default config. (#4995)
* Fix LED pinout for T-Echo board marked v1.0, date 2021-6-28

* Merge PR #420

* Fixed double and missing Default class.

* Use correct format specifier and fixed typo.

* Removed duplicate code.

* Fix error: #if with no expression

* Fix warning: extra tokens at end of #endif directive.

* Fix antenna switching logic. Complementary-pin control logic is required on the rp2040-lora board.

* Fix deprecated macros.

* Set RP2040 in dormant mode when deep sleep is triggered.

* Fix array out of bounds read.

* Admin key count needs to be set otherwise the key will be zero loaded after reset.

* Don't reset the admin key size when loading defaults. Preserve an existing key in config if possible.

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-10-07 12:44:21 -05:00
Ben Meadors
53f189fff4
Remove has_rx * on installDefaultDeviceState (#4982) 2024-10-07 19:43:55 +08:00
medentem
0952d1b252
UserPrefs - Preconfigure up to 3 channels, GPS Mode (#4930)
* added up to 3 channels via userprefs

* added up to 3 channels via userprefs

* added up to 3 channels via userprefs

* trunk fmt

* Added USERPREFS for GPS MODE
2024-10-06 15:32:07 +08:00
Ludovic BOUÉ
e7cfadacd8
Add Panel_ILI9342 to TFTDisplay.cpp (#4822)
* Add Panel_ILI9342 to TFTDisplay.cpp

[Panel_ILI9342](https://github.com/lovyan03/LovyanGFX/blob/master/src/lgfx/v1/panel/Panel_ILI9342.hpp)

* Add ILI9342_DRIVER to TFTDisplay.cpp

* Add ILI9342_DRIVER to Screen.cpp

* Add ILI9342_DRIVER to ScreenFonts.h

* Add ILI9342_DRIVER to main.cpp

* Add ILI9342_DRIVER to images.h

* Add ILI9342_DRIVER to NodeDB.cpp

* Add ILI9342 to PortduinoGlue.cpp

* Add ili9342 to PortduinoGlue.h

* Fix formatting

* Update Screen.cpp to add ILI9342_DRIVER

* Update TFTDisplay.cpp

* Update TFTDisplay.cpp

* Update Screen.cpp

* Update Screen.cpp

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: Tom Fifield <tom@tomfifield.net>
2024-10-04 07:47:14 -05:00
GUVWAF
673fe294f3
Add rxDupe, txRelay and txRelayCanceled to LocalStats (#4936)
* Introduce `isFromUs()` and `isToUs()`

* Add rxDupe, txRelay and txRelayCanceled to LocalStats
2024-10-04 06:28:51 -05:00
Manuel
6d550fe14e
Merge branch 'master' into tft-gui-work 2024-10-03 18:18:01 +02:00
Ben Meadors
00f15459ec
Userprefs prefix macros for clarity and consistency (#4923)
* Convert userprefs macros to prefixed ones for clarity

* Fix key
2024-10-02 06:14:24 -05:00
Manuel
fd498d9d26
Merge branch 'master' into tft-gui-work 2024-10-02 08:42:03 +02:00
Ben Meadors
18f12584ab
Consolidate and shrink down the re-used strings in logs (#4907)
* Consolidate and shrink down the re-used strings in GPS

* Condense all the things

---------

Co-authored-by: GUVWAF <thijs@havinga.eu>
2024-10-01 15:38:36 -05:00
Manuel
ccc82cec33
Merge branch 'master' into tft-gui-work 2024-10-01 13:28:50 +02:00
Jonathan Bennett
dd587419c7
Regenerate public key on boot, to avoid accidental mismatch. (#4916)
* Regenerate public key on boot, to avoid accidental mismatch.

* Fix ifdefs
2024-09-30 17:06:31 -05:00
Manuel
bfe99b29ac
Merge branch 'master' into tft-gui-work 2024-09-28 17:35:00 +02:00
Thomas Göttgens
62c306a14b
Merge branch 'master' into esp32-c6 2024-09-28 12:33:50 +02:00
Jonathan Bennett
6e1aa52723 More store-n-forward on native 2024-09-28 11:37:27 +02:00
Manuel
61c170ccbc
Merge branch 'master' into tft-gui-work 2024-09-27 15:19:39 +02:00
Thomas Göttgens
3072b2a444
Merge branch 'master' into esp32-c6 2024-09-26 00:20:00 +02:00
Ben Meadors
a7c379961a New detection sensor trigger type value 2024-09-25 07:01:15 -05:00
Jonathan Bennett
dfbd8dbe21 Check for null before printing debug (#4835) 2024-09-23 22:40:07 +02:00
Jonathan Bennett
9a7a4d3814
Check for null before printing debug (#4835) 2024-09-23 13:56:26 -05:00
Thomas Göttgens
6ffdc9875b First stab at ESP32-C6 support for TLora-C6 2024-09-20 19:37:47 +02:00
Manuel
aa20d91d42
Merge branch 'master' into tft-gui-work 2024-09-17 21:39:23 +02:00
Ben Meadors
50fb4ab22a
Implement optional hops_away on NodeInfo/Lite (#4747)
* Implement optional hops_away on NodeInfo/Lite

* Trunk
2024-09-17 12:08:04 -05:00
Manuel
8b9cc00c1b
Merge branch 'master' into tft-gui-work 2024-09-17 17:59:22 +02:00
Thomas Göttgens
f5016763fd
change evaluation order to silence warning about "found" (#4749) 2024-09-17 10:33:21 -05:00