Jonathan Bennett and GitHub
e6fb6b115a
Seems like the last DIY board that's not "extra" ( #5420 )
2024-11-22 05:32:35 -06:00
Jonathan Bennett and GitHub
875b8641d3
Pin library versions in platform.io ( #5293 )
...
* Pin library versions in platform.io
This has been a constant source of headache. This moves to only updating libraries manually. Will eliminate the random build failures, and make rebuilding specific release versions possible.
* Bump ina219 to latest library version
* More lib version bumps
2024-11-09 16:06:17 -06:00
Jonathan Bennett and GitHub
67c2c516a0
Use sudo for building armv7
2024-11-09 12:44:06 -06:00
Jonathan Bennett and GitHub
bf944e78d8
More configs ( #5253 )
...
* Add config.available for the MeshAdv 900M30S
* Move configs out of config.yaml
2024-11-04 11:17:32 -06:00
cf476eb87c
Remove assert in mesh-pb-constants.cpp ( #5207 )
...
* Remove assert in mesh-pb-constants.cpp
* Add raw packet output to portduino trace logging.
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com >
2024-11-02 05:38:44 -05:00
Jonathan Bennett and GitHub
545ebf9b17
Don't skip GPS serial speeds, and always land on GPS_BAUDRATE ( #5195 )
...
* Don't skip GPS serial speeds, and always land on GPS_BAUDRATE
* Update log message to match.
* print the value instead
2024-11-01 08:44:02 +08:00
Jonathan Bennett
b3ba23b4e8
Don't generate or populate PKC keys in licensed mode
2024-10-29 14:17:14 -05:00
Jonathan Bennett and GitHub
850f61d2d0
Native config.d ( #5165 )
...
* Add support for loading yaml from a config directory
* Add waveshare hats to the new config.d approach
* Move to available.d for module inactive module configs
2024-10-28 21:48:10 -05:00
82145e0661
Cherry picks ( #5166 )
...
* fix compiler error std::find()
* fix wifi/bt connection status
* try-fix crash
* added 1200baud reset
---------
Co-authored-by: mverch67 <manuel.verch@gmx.de >
2024-10-28 10:21:57 +10:00
Jonathan Bennett and GitHub
dfeb33d46e
Add DIO2_AS_RF_SWITCH to pinedio prefilled config.
2024-10-18 12:30:46 -05:00
Jonathan Bennett and GitHub
a8c216f4f8
Update main_matrix.yml -- re-enable x86_64 .deb builds
2024-10-11 16:41:41 -05:00
Jonathan Bennett and GitHub
f82585d9b0
Add localhost exception for dontMqttMeBro ( #5023 )
2024-10-10 14:06:47 -05:00
Jonathan Bennett and GitHub
7ff4bafe22
Disentangle NodeDB from the CryptoEngine ( #5013 )
2024-10-10 18:14:11 +08:00
Jonathan Bennett and GitHub
ad8747d914
Possibly forward PKC DMs over MQTT ( #5012 )
2024-10-09 17:56:08 -05:00
Jonathan Bennett and GitHub
93d874b013
set tz config from string if unset ( #4979 )
2024-10-07 05:09:19 -05:00
Jonathan Bennett and GitHub
7e946d15ca
Move ifndef to fix test ( #4950 )
2024-10-04 22:59:00 -05:00
Jonathan Bennett and GitHub
4db0c75c8e
Don't use a static decleration in a header file ( #4944 )
...
* Don't use a static decleration in a header file
* Actually add the rest of the commit
2024-10-04 12:06:02 -05:00
Jonathan Bennett and GitHub
befc2ece6f
Add a Userprefs Timezone String, to be replaced in the web flasher ( #4938 )
...
* Add a Userprefs Timezone String, to be replaced in the web flasher
* Use a volatile char buffer for slipstreamed strings.
* More refinement
2024-10-03 20:51:22 -05:00
Jonathan Bennett and GitHub
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
Jonathan Bennett and Thomas Göttgens
6e1aa52723
More store-n-forward on native
2024-09-28 11:37:27 +02:00
Jonathan Bennett and Thomas Göttgens
5ff265c196
First stab at enabling store and forward for Native
2024-09-28 11:37:27 +02:00
fd1b68513a
Add sx126x_ant_sw for Native ( #4887 )
...
Co-authored-by: Ben Meadors <benmmeadors@gmail.com >
2024-09-27 19:29:44 -05:00
Jonathan Bennett and GitHub
ef223b1195
use delete[] to avoid leaking memory ( #4883 )
2024-09-27 14:55:55 -05:00
Jonathan Bennett and GitHub
5f6d9c3e27
Add pkc test ( #4878 )
...
* Add a second delay() to get the unit tests running on Rak4631
* Add test_PKC_Decrypt
* Remove cruft from test case
2024-09-26 19:33:08 -05:00
Jonathan Bennett and GitHub
1129c92974
Add a second delay() to get the unit tests running on Rak4631 ( #4862 )
2024-09-25 05:31:29 -05:00
Jonathan Bennett and GitHub
c39d270f40
Build message in printBytes, to not spam BLE log ( #4843 )
2024-09-24 12:41:28 +08:00
Jonathan Bennett and GitHub
9a7a4d3814
Check for null before printing debug ( #4835 )
2024-09-23 13:56:26 -05:00
fa1cc59841
Rename message length headers and set payload max to 255 ( #4827 )
...
* Rename message length headers and set payload max to 255
* Add MESHTASTIC_PKC_OVERHEAD
* compare to MESHTASTIC_HEADER_LENGTH
---------
Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com >
2024-09-23 09:20:32 -05:00
Jonathan Bennett
18aac0ba25
Consider the LoRa header when checking packet length
2024-09-22 16:09:46 -05:00
Jonathan Bennett and GitHub
d21087f639
Update platform-native to pick up portduino crash fix ( #4807 )
2024-09-21 16:17:30 -05:00
Jonathan Bennett and GitHub
82f1be33aa
Merge branch 'master' into master
2024-09-19 19:43:05 -05:00
Jonathan Bennett
0f3450ad44
Mark package workflows for gh hosted runners
2024-09-19 18:21:30 -05:00
Jonathan Bennett and GitHub
114df8cb1b
Pin sensorlib version
2024-09-19 13:29:17 -05:00
Jonathan Bennett and GitHub
d3a293a0d8
Flag semgrep to not run on self-hosted
...
The semgrep action runs inside a docker container, and docker in podman just doesn't work.
2024-09-19 12:10:39 -05:00
Jonathan Bennett and GitHub
c6196b2260
Update build_esp32.yml -- less CI fun
2024-09-18 01:11:08 -05:00
Jonathan Bennett
3eebdcefa4
More CI fun
2024-09-18 00:28:54 -05:00
Jonathan Bennett and GitHub
4289cb089b
Update package_raspbian.yml to build on self-hosted ( #4761 )
...
* Update package_raspbian.yml to build on self-hosted
* Update package_raspbian_armv7l.yml to use self hosted
2024-09-18 00:17:48 -05:00
2d52803dbd
Add new admin error types ( #4750 )
...
Co-authored-by: Ben Meadors <benmmeadors@gmail.com >
2024-09-17 21:09:24 -05:00
Jonathan Bennett and GitHub
c78302a2ee
Add hasPKC to deviceMetadata ( #4755 )
2024-09-17 19:34:05 -05:00
Jonathan Bennett and GitHub
a967dd52f3
More useful PKC logging ( #4742 )
2024-09-17 06:31:39 -05:00
Jonathan Bennett and GitHub
ff8baa1c85
Don't use PKC on a non-primary channel unless specifically requested ( #4715 )
...
* Don't use PKC on a non-primary channel unless specifically requested
* Don't change from channel 0 if we can send a PKC packet.
2024-09-15 09:26:43 -05:00
Jonathan Bennett and GitHub
3a10a27851
Actually restrict remote hardware to gpio channel ( #4717 )
2024-09-15 06:27:59 -05:00
1ab5bf4355
Use the time.age() value to correct stale GPS times ( #4705 )
...
* Use the time.age() value to correct stale GPS times
* Trunk
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com >
2024-09-14 07:44:40 -05:00
4e850296b6
Fix repeatedly getting new NodeNum and add more debug ( #4674 )
...
* All the debug
* Change `memccpy()` to `memcpy()`
* Brint all the bytes of the MAC Address from the NodeDB
* Check for blank MAC Address in ourown NodeDB entry
* One more `memccpy()`
* Clean-up debug log
---------
Co-authored-by: GUVWAF <thijs@havinga.eu >
2024-09-10 13:24:57 -05:00
bf34329033
Adds the data bitfield and ok_to_mqtt bit ( #4643 )
...
* Don't filter PKI packets just for being encrypted.
* Add ok_to_mqtt config and bit
* Bitfield
* Adjust dontmqttmebro logic.
* Manipulate bitfield only in router.cpp
* Want_ack is not want_response
* Bitfield macros
* Use new Bitfield macro in MQTT.cpp
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com >
2024-09-07 18:21:59 -05:00
Jonathan Bennett and GitHub
b71e12c5e5
Phone admin work ( #4599 )
...
* Don't throw an error on the sessionkey admin tag
* Throw an error on packet sent to 0
2024-08-31 15:04:35 -05:00
Jonathan Bennett and GitHub
2b0113ae82
Consider an admin timestamp to be higher quality than from net ( #4589 )
2024-08-30 06:02:48 -05:00
Jonathan Bennett and GitHub
5bc17a9911
Key regen and MQTT fix ( #4585 )
...
* Add public key regen
* Properly label and handle PKI MQTT packets
* Extra debug message to indicate PKI_UNKNOWN_PUBKEY
* Ternary!
* Don't call non-existant function on stm32
* Actually fix STM32 compilation
2024-08-29 16:28:03 -05:00
Jonathan Bennett and GitHub
92eae39a1b
Move Time set from system to main ( #4583 )
2024-08-29 05:39:30 -05:00
e3ce3a3a4f
Don't compare nodeDB macaddr to owner.macaddr, because in rare cases that may be unset. ( #4562 )
...
Co-authored-by: Ben Meadors <benmmeadors@gmail.com >
2024-08-28 11:25:54 -07:00
Jonathan Bennett and Kevin Hester
3c4d964334
Mask out random bits when doing queue ordering ( #4561 )
...
* Mask out random bits when doing queue ordering
* Parenthesis
2024-08-28 11:25:54 -07:00
Jonathan Bennett and Kevin Hester
574124aee5
Deal with admin_key being repeated ( #4558 )
2024-08-28 11:25:54 -07:00
Jonathan Bennett and Kevin Hester
9b2ef971c2
Fix copyPasta in NodeDB ( #4538 )
2024-08-28 11:25:54 -07:00
Jonathan Bennett and Kevin Hester
710fdbd4e5
Adds has_x bools to position packet. ( #4540 )
2024-08-28 11:25:54 -07:00
ada61ae178
Don't compare nodeDB macaddr to owner.macaddr, because in rare cases that may be unset. ( #4562 )
...
Co-authored-by: Ben Meadors <benmmeadors@gmail.com >
2024-08-27 14:49:58 -05:00
Jonathan Bennett and GitHub
b9a8683a4b
Mask out random bits when doing queue ordering ( #4561 )
...
* Mask out random bits when doing queue ordering
* Parenthesis
2024-08-26 15:48:47 -05:00
Jonathan Bennett and GitHub
5824a8f4c1
Deal with admin_key being repeated ( #4558 )
2024-08-26 12:29:44 -05:00
Jonathan Bennett and GitHub
00ea9182a4
Fix copyPasta in NodeDB ( #4538 )
2024-08-23 06:26:19 -05:00
Jonathan Bennett and GitHub
601ae29fe9
Adds has_x bools to position packet. ( #4540 )
2024-08-23 06:25:40 -05:00
ab7de7f6a0
Add handling for sessionkey config ( #4513 )
...
* Add handling for sessionkey config
* Protos
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com >
2024-08-20 13:36:24 -05:00
Jonathan Bennett and GitHub
e20d57f3ad
Merge pull request #4431 from meshtastic/2.5-changes
...
2.5 Changes
2024-08-19 18:18:51 -05:00
Jonathan Bennett and GitHub
48dc222b75
Merge branch 'master' into 2.5-changes
2024-08-19 11:28:20 -05:00
Jonathan Bennett
ab9268cba9
Admin session key debugging messages
2024-08-19 11:12:42 -05:00
Jonathan Bennett
273beef148
Re-set the extra-nonce value
2024-08-18 22:25:08 -05:00
Jonathan Bennett
94d5ee9fe6
Deal with adminModule session_time of 0
2024-08-18 22:22:21 -05:00
Jonathan Bennett and GitHub
7b64c4a5bf
Merge branch 'master' into 2.5-changes
2024-08-18 19:14:21 -05:00
Jonathan Bennett
ecb4fb72db
Don't break EXCLUDE_PKI
2024-08-18 15:51:43 -05:00
Jonathan Bennett
f439081674
Don't segfault on PKI from unknown nodes
2024-08-18 14:11:39 -05:00
Jonathan Bennett
bfbc4bf93a
Set the private_key in crypto when changed by admin
2024-08-18 14:11:17 -05:00
Jonathan Bennett
22e129e716
bluetooth != security; security = security
2024-08-18 13:00:52 -05:00
Jonathan Bennett and GitHub
23e3e6db92
Add 4 bytes of random nonce to PKI ( #4493 )
2024-08-18 07:23:56 -05:00
Jonathan Bennett and GitHub
c7c620ac69
Merge branch 'master' into 2.5-changes
2024-08-17 17:38:39 -05:00
Jonathan Bennett and GitHub
1bbc273ba6
Don't reject network time updates unintentionally ( #4489 )
2024-08-17 17:35:05 -05:00
Jonathan Bennett and GitHub
578ac6711b
Merge branch 'master' into 2.5-changes
2024-08-17 15:39:41 -05:00
Jonathan Bennett and GitHub
daddaf7146
Merge branch 'master' into 2.5-changes
2024-08-17 12:24:19 -05:00
Jonathan Bennett
0b010b4fd8
Get STM32 building again by disabling admin module
2024-08-17 11:06:00 -05:00
Jonathan Bennett and GitHub
f86dde3c40
AdminModule session_passkey ( #4478 )
...
* Protobuf
* Adds session_passkey for remote admin changes
2024-08-17 08:41:12 -05:00
Jonathan Bennett and GitHub
7cbae56e6c
Merge branch 'master' into 2.5-changes
2024-08-16 19:39:10 -05:00
Jonathan Bennett
6eabbaf432
Add PKI logiv to KNOWN_ONLY and LOCAL_ONLY routing modes.
2024-08-16 19:37:28 -05:00
Jonathan Bennett
cec8233cd1
Don't attempt PKI decryption on broadcast packets
2024-08-16 19:33:06 -05:00
Jonathan Bennett
b0c1b7b7b5
MQTT PKI fixes
2024-08-16 10:10:08 -05:00
Jonathan Bennett and GitHub
ef56fae976
Merge branch 'master' into 2.5-changes
2024-08-15 11:21:25 -05:00
Jonathan Bennett and GitHub
ced87596cb
Add PKI channel for MQTT ( #4464 )
...
* Add PKI channel for MQTT
2024-08-14 19:32:45 -05:00
Jonathan Bennett
1be635a797
Merge remote-tracking branch 'origin/master' into 2.5-changes
2024-08-14 19:01:06 -05:00
Jonathan Bennett
36f1a62b0b
Merge remote-tracking branch 'origin/2.5-changes' into 2.5-changes
2024-08-14 18:56:41 -05:00
Jonathan Bennett and GitHub
8ef72a5c08
Shorter nodeinfo timeout redux ( #4458 )
...
* Add shorterTimeout bool to sendOurNodeInfo
* Respond to likely PKI decode errors with a quick nodeinfo
* Protbufs
* Move to PKI_UNKNOWN_PUBKEY for PKI decode error
2024-08-14 17:17:53 -05:00
Jonathan Bennett
8ce1c07c4e
Check for blank key coming from client
2024-08-13 22:34:21 -05:00
Jonathan Bennett
2661fc694f
sync protobufs
2024-08-13 20:06:36 -05:00
Jonathan Bennett
b528290fde
Failure returns PKI_FAILED message if client requested PKI
2024-08-13 18:45:40 -05:00
Jonathan Bennett
ff89dca5b3
Add PKI indicator to printPacket
2024-08-13 18:45:40 -05:00
Jonathan Bennett
80fd121d87
Add meshtastic_Routing_Error_NO_CHANNEL
2024-08-13 18:45:40 -05:00
Jonathan Bennett
f3fa8daedf
Revert "Add Routing_Error_NONE"
...
This reverts commit e1985fa0f90db0cbc346db18cecbf3604f6973c1.
2024-08-13 18:45:40 -05:00
Jonathan Bennett
bcd77c4523
Cleanup public_keys ( #4450 )
2024-08-13 18:45:40 -05:00
Jonathan Bennett
308c0a6bb8
Add Routing_Error_NONE
2024-08-13 18:45:40 -05:00
Jonathan Bennett
754db3f2bc
Finish fixing config migrate
2024-08-13 18:45:40 -05:00
Jonathan Bennett
c16f20de21
Make "Alloc an error" a LOG_WARN
2024-08-13 18:45:40 -05:00
Jonathan Bennett
b4cbea1b3d
Move security migrate to if has_security
2024-08-13 18:45:40 -05:00
Jonathan Bennett
b91d66b436
Don't forget public_key.size in converting back
2024-08-13 18:44:27 -05:00
Jonathan Bennett
7537b55586
Ungoober oldestBoring
2024-08-13 18:44:27 -05:00
Jonathan Bennett
2d18130235
Don't goober public_key in Userlite conversion
2024-08-13 18:44:27 -05:00