geeksville
ce58a23f9b
Force a compile time failur if FromRadio or ToRadio get larger than ( #4190 )
...
a BLE packet size. We are actually very close to this threshold so
important to make sure we don't accidentally pass it.
2024-06-28 06:51:04 -05:00
geeksville
41d633bfd8
fix the build - would loop forever if there were no files to send ( #4188 )
2024-06-27 20:43:08 -05:00
Ben Meadors
a966d84e3d
Send file system manifest up on want_config ( #4176 )
...
* Send file system manifest up on want_config
* Platform specific methods
* Helps to actually make the change
* Clear
2024-06-27 07:07:27 -05:00
Jonathan Bennett
0425551341
Display alerts ( #4170 )
...
* Move static functions into Screen.h, show compass during calibration
* Move to _fontHeight macro to avoid collision
* Move some alert functions to new alert handler
* Catch missed reboot code
* ESP32 fixes
* Bump esp8266-oled-ssd1306
* Fixes for when a device has no screen
* Use new startAlert(char*) helper class
* Add EINK bits back to alert handling
* Add noop class for no-display devices
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-06-25 11:26:02 -05:00
github-actions[bot]
626aa762df
[create-pull-request] automated change ( #4174 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-06-24 20:27:00 -05:00
Ben Meadors
d32cdecc06
Pause BLE logging during want_config flow ( #4162 )
2024-06-22 07:00:48 -05:00
github-actions[bot]
f8db38cf99
[create-pull-request] automated change ( #4157 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-06-21 19:02:16 -05:00
Ben Meadors
02d8715ca0
Standardize lat/lon position logs ( #4156 )
...
* Standardize lat/lon position logs
* Missed sone and condensed logs
2024-06-21 17:25:54 -05:00
Mike
2d39911f91
Fix protobuf structs handling ( #4140 )
...
* Fix protobuf structs handling
* Log instead of assert
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-06-20 16:14:34 -05:00
Thomas Göttgens
f0a38a5cf0
Merge branch 'master' into regulatory-gain
2024-06-20 16:13:54 +02:00
github-actions[bot]
c59cb3c292
[create-pull-request] automated change ( #4145 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-06-19 14:48:46 -05:00
caveman99
3c4fa2101f
[create-pull-request] automated change
2024-06-19 19:31:05 +00:00
thebentern
471ee78a5e
[create-pull-request] automated change
2024-06-16 12:25:52 +00:00
Thomas Göttgens
97e8b1fd18
Merge branch 'master' into regulatory-gain
2024-06-16 11:35:11 +02:00
github-actions[bot]
21d47adb8d
[create-pull-request] automated change ( #4114 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-06-15 09:45:33 -05:00
caveman99
75d5cd2c35
[create-pull-request] automated change
2024-06-13 14:50:21 +00:00
github-actions[bot]
26d4d06e2a
[create-pull-request] automated change ( #4093 )
...
Co-authored-by: caveman99 <25002+caveman99@users.noreply.github.com>
2024-06-13 08:39:38 -05:00
github-actions[bot]
c7769274dd
[create-pull-request] automated change ( #4085 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-06-12 07:23:54 -05:00
github-actions[bot]
7f2647abb1
[create-pull-request] automated change ( #4078 )
...
Co-authored-by: jp-bennett <5630967+jp-bennett@users.noreply.github.com>
2024-06-11 14:52:02 -05:00
Andrew Yong
53fc22178b
Merge branch 'master' into regulatory-gain
2024-06-11 21:30:35 +08:00
Michael Gjelsø
a2fb3d23a1
Radio Master 900 Bandit Nano Power output interpolation ( #4057 )
...
* DAC and DB values based on dBm using interpolation
* Moved getDACandDB funtion
Moved getDACandDB funtion up so it won't conflict with RF95_MAX_POWER
* Added DAC output to LOG_INFO
Added DAC output to LOG_INFO
* Make Trunk Happy
2024-06-09 16:03:39 -05:00
GUVWAF
237944aaf0
Avoid assert on receiving undecryptable packet ( #4059 )
...
* Send NAK on primary if original packet couldn't be decoded
* Add checks for `isDecoded` when accessing `decoded`
* Channel index should be of original packet, not of newly allocated NAK
2024-06-09 16:02:52 -05:00
Thomas Göttgens
8a4e91e848
Merge pull request #4048 from Jorropo/improve-eu-868-docs
...
fix dead link in EU_868 documentation
2024-06-07 16:35:11 +02:00
Talie5in
1f9f885aca
If EXCUDE_MQTT Defined, skip reconnecting MQTT in WiFiAPClient and dont check status of is_mqtt_connected
2024-06-06 22:31:10 +09:30
Andrew Yong
08e1c2f681
Rename REGULATORY_GAIN to REGULATORY_GAIN_LORA to allow for other RF gain controls
...
For example, Wi-Fi or BLE gain control (#3962 )
Signed-off-by: Andrew Yong <me@ndoo.sg>
2024-06-06 14:42:30 +08:00
Andrew Yong
3cda598673
Add REGULATORY_GAIN configuration to remain within regulatory ERP limit
...
REGULATORY_GAIN is the total system gain in dBm to subtract from the configured Tx power, to remain within regulatory ERP limit for non-licensed operators.
This value should be set in variant.h and is PA gain + antenna gain (if system ships with an antenna).
This is similar to antenna_gain/NL80211_ATTR_WIPHY_ANTENNA_GAIN/NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN setting in Linux Regulatory/OpenWrt/mac80211/nl80211/iw.
Signed-off-by: Andrew Yong <me@ndoo.sg>
2024-06-06 14:42:30 +08:00
Andrew Yong
5554cc46a7
Add REGULATORY_ prefix to LORA_REGIONCODE
...
Add REGULATORY_ prefix to LORA_REGIONCODE to prepare for more regulatory configuration options, and update comment block accordingly too.
Signed-off-by: Andrew Yong <me@ndoo.sg>
2024-06-06 14:42:30 +08:00
Jorropo
d82d9f5ef1
fix dead link in EU_868 documentation
...
See https://discord.com/channels/867578229534359593/871553168369148024/1248026118276255745 .
2024-06-05 23:32:59 +02:00
github-actions[bot]
67b67a481f
[create-pull-request] automated change ( #4035 )
2024-06-04 08:34:38 -05:00
Thomas Göttgens
b43c7c0f23
LR1110 support ( #3013 )
...
* DOES NOT WORK
* trunk
* DOES NOT WORK
* trunk
* DOES NOT WORK
* trunk
* WIP: LR11x0 non functional interface code. Please don't expect a working firmware out of this! I don't know what i am doing! :-)
* trunk fmt
* use canon toolchain
* update and fix radiolib dependency
* Switch Radiolib back to GIT checkout
* enable tcxo and fix startReceive
* progress
* Correct midjudgement on scope of build defines.
* - enable peripheral power rail during startup init
- fix portduino builds
* add tracker pinout variant
* update to radiolib 6.6.0 API (aka: godmode is not for mere mortals)
* tracker is not so 'extra' any more
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-06-03 16:04:40 -05:00
github-actions[bot]
7cbfe7aa54
[create-pull-request] automated change ( #4029 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-06-03 15:59:39 -05:00
Manuel
2723ae6e9b
fix crash during reset nodedb ( #4017 )
2024-06-02 07:38:20 -05:00
Ben Meadors
17142f8778
Add support for RadioMaster Bandit Nano ( #4005 )
...
* Add support for RadioMaster Bandit Nano
* Add fan to init and sleep
2024-05-31 10:56:04 -05:00
github-actions[bot]
c88278724c
[create-pull-request] automated change ( #4003 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-05-31 07:15:41 -05:00
github-actions[bot]
cd8a7e44a8
[create-pull-request] automated change ( #3992 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-05-30 09:08:32 -05:00
Ben Meadors
af9d825266
Send own node-info earlier and move others to the end of want-config flow ( #3949 )
...
* Send own node-info earlier and move others to the end of want-config flow
* Special nonce skips other nodeinfos
* Missed it
2024-05-28 19:25:19 -05:00
github-actions[bot]
1a253dccc3
[create-pull-request] automated change ( #3964 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-05-23 07:20:13 -05:00
Ben Meadors
4a05874dba
Try-fix: Remove logging of actual payload strings (and compressed) for TAK packets ( #3922 )
...
* Remove logging of actual payload strings (and compressed) for TAK packets
* Don't assert / reboot. Log error and skip decode
2024-05-19 07:24:10 -05:00
caveman99
0976705f25
[create-pull-request] automated change
2024-05-16 17:43:23 +00:00
Henrik Witt-Hansen
1d42a6c48f
Fix static ip assignment on wifi for rp2040 ( #3896 )
...
by rearranging the arguments to match the expected input order.
The lwip library makes an internal reorder or the arguments
depending on the netmask to work with both ESP and Arduino
platforms.
The input order was incorrect when running on an rp2040 device.
Co-authored-by: Henrik Witt-Hansen <henrik@hardttoolkit.org>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-05-15 18:54:51 -05:00
caveman99
c18b4920ae
[create-pull-request] automated change
2024-05-15 23:28:03 +00:00
Thomas Göttgens
306b8d3205
Merge branch 'master' into create-pull-request/patch
2024-05-16 01:17:37 +02:00
caveman99
fe2356ae87
[create-pull-request] automated change
2024-05-15 23:12:12 +00:00
Thomas Göttgens
53dea44983
Revert "Merge pull request #3898 from meshtastic/create-pull-request/patch"
...
This reverts commit 938aba481a
, reversing
changes made to 7810e59b0c
.
2024-05-16 01:08:52 +02:00
Thomas Göttgens
3342395a0b
fix generated files
2024-05-16 01:04:38 +02:00
caveman99
419820f483
[create-pull-request] automated change
2024-05-15 12:47:31 +00:00
Jorge Castillo
8d89e78bbf
Merge branch 'master' into feature/veml7700
2024-05-14 19:00:32 -04:00
Jorge Castillo
a3e47b8d9b
merge master in to veml7700
2024-05-14 17:40:34 -04:00
Jorge Castillo
77e76bc92b
Fix VEML7700Sensor readings and update protobuf and MQTT JSON
2024-05-14 16:42:23 -04:00
Thomas Göttgens
96b5bd2fd0
unphone has a display, don't default BLE PIN to 123456 ( #3865 )
...
fixes #3822
2024-05-11 08:20:11 -05:00
Jonathan Bennett
676319a9ca
Implement chunked SPI transfer for ch341 ( #3847 )
...
This seems to fix the ch341 quirk where large packets fail to send. As it can be problematic for other radios, we gate it behind "ch341_quirk" in the config.
2024-05-10 04:36:20 -05:00
Jorge Castillo
39336847ad
add veml7700 readings to protobuf and to the mqtt json + fix the readigns validator code in env telemetry
2024-05-08 22:14:55 -04:00
Jorge Castillo
23466b5a5f
regenerated files
2024-05-07 18:07:24 -04:00
Ben Meadors
cbf20e4cee
Default to new vendor ntp pool ( #3819 )
2024-05-07 07:57:30 -05:00
caveman99
5e9d48d0d7
[create-pull-request] automated change
2024-05-06 11:37:03 +00:00
caveman99
0b239e618d
[create-pull-request] automated change
2024-05-05 15:32:28 +00:00
GUVWAF
6fb7d7f2d7
Check if packet is not released before CC to phone
2024-05-05 13:49:50 +02:00
tuxphone
70712d859c
Enable compiling with gccnoneeabi 12.3.1 for nRF52 targets, additional small fixes ( #3778 )
...
* Fix type of nodeNum
Type of nodeNum is NodeNum, not uint
* typo
fixed typo "resumeAdverising()"
* fix missing #include "time.h"
Missing include breaks compilation with gccnoneeabi 12.3.1 for nrf52 targets on windows hosts.
* change type uint to unsigned int
uint is not a standard type. Using uint breaks compilation with gccnoneeabi 12.3.1 for nRF52 targets on windows hosts.
* fix type of channel_num
Type of channel_num should be uint32_t (as this is the type of hash() and numChannels).
Using uint non-standard type uint breaks compilation with gccnoneeabi 12.3.1 for nRF52 targets on windows hosts.
* Update nrf52.ini
Default build type should be "release" as this is the default of platformio.
* Update GPS.cpp
uint to unsigned int
2024-05-03 15:49:22 -05:00
Thomas Göttgens
13ad524538
make clang-format happy again. Also fix assorted variable shrouding and logic bleeps
2024-05-03 15:10:57 +02:00
Ben Meadors
ec92f7a5a3
Remove phone nodenum warning and empty else clause ( #3756 )
2024-05-01 08:27:43 -05:00
github-actions[bot]
3619ac87b8
[create-pull-request] automated change ( #3754 )
...
Co-authored-by: thebentern <thebentern@users.noreply.github.com>
2024-04-30 20:14:38 -05:00
GUVWAF
e51ee91c39
Optimization: stop relaying when reply is received ( #3753 )
2024-04-30 20:07:15 -05:00
todd-herbert
21311bbeda
T-Echo touch button no longer requires "wake on tap or motion" ( #3745 )
2024-04-29 08:54:57 -05:00
Ben Meadors
e683d8f552
Rebrand "send network ping" to more honest "try send position" with better output ( #3737 )
2024-04-27 08:55:04 -05:00
github-actions[bot]
27f0e42d2f
[create-pull-request] automated change ( #3708 )
...
Co-authored-by: thebentern <thebentern@users.noreply.github.com>
2024-04-23 13:32:33 -05:00
Tom Fifield
7acaec8ef5
Add power limit for TW region ( #3701 )
...
The TW region had now power limit set, so defaulted to 16dBm.
The relevant regulation is section 5.8.1 of the Low-power Radio-frequency Devices Technical Regulations, which notes the limits of 0.5W (27dBM) indoor or coastal, 1.0W (30dBM) outdoor.
This patch updates the power limit to 27dbM, using the the lower limit specified in the regulations to be conservative.
Regulation references:
https://www.ncc.gov.tw/english/files/23070/102_5190_230703_1_doc_C.PDF (latest English version)
https://gazette.nat.gov.tw/egFront/e_detail.do?metaid=147283 (latest Chinese version, February 2024)
2024-04-23 07:11:22 -05:00
Thomas Göttgens
f47b40cf68
fix signedness warnings of NRF52 toolchain
2024-04-22 09:49:06 +02:00
Mictronics
0406be82d2
Use correct format specifier and fixed typo. ( #3696 )
...
* 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.
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-04-21 12:36:37 -05:00
Ben Meadors
ac87c0065f
Also refresh timestamp for "timeonly" fixed position nodes ( #3689 )
2024-04-21 08:45:36 -05:00
github-actions[bot]
e72792afc8
[create-pull-request] automated change ( #3683 )
...
Co-authored-by: thebentern <thebentern@users.noreply.github.com>
2024-04-20 15:58:42 -05:00
caveman99
0972a8dccb
[create-pull-request] automated change
2024-04-20 18:24:40 +00:00
github-actions[bot]
419eb13968
[create-pull-request] automated change ( #3679 )
...
Co-authored-by: thebentern <thebentern@users.noreply.github.com>
2024-04-20 09:56:55 -05:00
github-actions[bot]
e7828c4c64
[create-pull-request] automated change ( #3676 )
...
Co-authored-by: thebentern <thebentern@users.noreply.github.com>
2024-04-20 07:36:53 -05:00
github-actions[bot]
7a3570aecf
[create-pull-request] automated change ( #3662 )
...
Co-authored-by: thebentern <thebentern@users.noreply.github.com>
2024-04-18 18:29:50 -05:00
GUVWAF
64edfb76e0
Uplink to MQTT after potentially altering content ( #3646 )
...
Mainly for traceroute module now
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-04-18 17:44:13 -05:00
Ben Meadors
425a715995
Added one minute throttling to NodeDB save to disk ( #3648 )
...
* Added one minute throttling to NodeDB
* Derp
2024-04-18 14:20:39 -05:00
GUVWAF
bc085ab840
Fix #3641 : Always set MAC when picking new NodeNum ( #3651 )
...
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-04-17 07:07:40 -05:00
GUVWAF
c34956e9d8
Cosmetics: rename remaining plugins → modules and less errors ( #3645 )
2024-04-16 17:47:56 -05:00
Andrew Yong
9599549477
Add configuration option for LoRa Region Code override for region-locked builds/variants ( #3540 )
...
The main use case for this will be to create a custom Heltec WiFi LoRa 32 V3 SG_923 variant, which will be pre-flashed and sent for regulatory approval for retail sale.
Signed-off-by: Andrew Yong <me@ndoo.sg>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-04-16 09:03:36 -05:00
github-actions[bot]
699ea74672
[create-pull-request] automated change ( #3642 )
...
Co-authored-by: thebentern <thebentern@users.noreply.github.com>
2024-04-16 08:01:32 -05:00
Ben Meadors
2f9b68e08b
File management changes (Part 2 - Reboot instead of reformat NRF52 after two failed file saves) ( #3630 )
...
* Add LoadFileState to differentiate types of success / failures
* Try rebooting NRF52s with multiple failed saves
* Trunkate
2024-04-15 16:36:22 -05:00
Ben Meadors
27ae4399bc
Zero hop always for connected node ( #3634 )
2024-04-15 16:35:52 -05:00
Ben Meadors
2803fa964e
Add LoadFileState to differentiate types of success / failures ( #3625 )
2024-04-15 07:22:05 -05:00
Jonathan Bennett
00d4c011c7
Fix sx126x error log logic
2024-04-14 16:44:28 -05:00
Manuel
5047468d9f
fix/enhancement: TFT device powersave (part 3) ( #3600 )
...
* fix: device TFT powersave (part 3)
* trunk fmt
* trunk fmt
* undo bluetooth deinit from #3596
* revert code for heltec tracker
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-04-14 09:11:27 -05:00
Jonathan Bennett
0a246bfe9b
Add more useful error output in radio interfaces ( #3615 )
...
* Add more useful error output in radio interfaces
* trunk
2024-04-14 00:29:42 -05:00
Ben Meadors
2a6e26620e
Auto-favorite our node ( #3609 )
2024-04-12 20:17:25 -05:00
Jonathan Bennett
3f45c2d4f0
Fix another LOG_DEBUG message that should be LOG_ERROR ( #3607 )
2024-04-12 14:14:56 -05:00
Jonathan Bennett
11adfe05ce
Drop unishox2 functions from Router ( #3606 )
2024-04-12 14:06:05 -05:00
todd-herbert
178877f2d9
Enable T-Echo touch button by default ( #3604 )
...
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-04-12 07:18:36 -05:00
github-actions[bot]
a4a8556aa2
[create-pull-request] automated change ( #3595 )
...
Co-authored-by: thebentern <thebentern@users.noreply.github.com>
2024-04-11 07:41:37 -05:00
GUVWAF
3bee6ce9c3
Only set NodeNum based on MAC if it's still zero ( #3585 )
...
* Only set NodeNum based on MAC if it's still zero
* Already declared
2024-04-10 11:29:29 -05:00
github-actions[bot]
daa64b055a
[create-pull-request] automated change ( #3579 )
...
Co-authored-by: caveman99 <caveman99@users.noreply.github.com>
2024-04-09 08:00:19 -05:00
caveman99
2db061ded9
[create-pull-request] automated change
2024-04-07 13:58:58 +00:00
github-actions[bot]
46ad4bf0e5
[create-pull-request] automated change ( #3542 )
...
Co-authored-by: thebentern <thebentern@users.noreply.github.com>
2024-04-03 08:47:47 -05:00
Jonathan Bennett
8bb562c5fa
Add spiTransfer function to Native to support Linux-managed CS ( #3524 )
...
* Add spiTransfer function to Native to support Linux-managed CS
* Trunk
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-04-01 18:31:36 -05:00
Ben Meadors
4c2d5c6a89
Reorder structs to fix build
2024-03-28 07:16:07 -05:00
github-actions[bot]
b5ec35ec78
[create-pull-request] automated change ( #3502 )
...
Co-authored-by: thebentern <thebentern@users.noreply.github.com>
2024-03-28 06:44:34 -05:00
Jim Whitelaw
acc32916c3
Add multiple configuration options for a minimized build (GPS,WiFi,BT,MQTT,Screen). ( #3469 )
...
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-03-25 06:33:57 -05:00
github-actions[bot]
728b58fb94
[create-pull-request] automated change ( #3489 )
...
Co-authored-by: thebentern <thebentern@users.noreply.github.com>
2024-03-24 18:50:26 -05:00