Jonathan Bennett and GitHub
6b1c01ce02
Trunk n stuff ( #5833 )
...
* Trunk
* Allow new gpio syntax with defaults
* Exit on pin init failure
2025-01-12 15:10:50 -06:00
Jonathan Bennett and GitHub
395469d20a
As Per XKCD #1168
2025-01-06 19:59:02 -06:00
Jonathan Bennett and GitHub
4c3a3ca47d
Specify the *correct* scons version
2025-01-06 13:02:53 -06:00
Jonathan Bennett and GitHub
78371dfdb7
Add PPA to nightly
2025-01-06 12:26:17 -06:00
Jonathan Bennett and GitHub
ca32889893
Specify scons version
2025-01-06 12:23:08 -06:00
Jonathan Bennett and GitHub
f1a8900288
Don't push to PPA for every commit
2025-01-05 23:50:32 -06:00
Jonathan Bennett
16bc89ea57
Explicitly install tools-scons
2025-01-05 22:23:34 -06:00
Jonathan Bennett and GitHub
6edf74e8f1
Tab not spaces
2025-01-05 19:58:34 -06:00
Jonathan Bennett
7f280dd556
Hide pio folder in a tarball to preserve .git folders
2025-01-05 19:38:08 -06:00
Jonathan Bennett and GitHub
2396aa77ca
don't run the clean step
2025-01-05 19:03:44 -06:00
Jonathan Bennett and GitHub
d3cbbfd345
Try adding tar-ignore to preserve .git directories
2025-01-05 18:59:14 -06:00
Jonathan Bennett and GitHub
6aabbedc00
Last Ditch effort for PPA build
2025-01-04 15:41:49 -06:00
Jonathan Bennett and GitHub
eb72ee0fc1
don't use "source" for deb builds
2025-01-04 14:51:36 -06:00
Jonathan Bennett and GitHub
7480378aed
Update debian build rules
2025-01-04 14:37:13 -06:00
Jonathan Bennett and GitHub
7c21d7761c
Move the RFM9x to config.available ( #5742 )
2025-01-04 14:12:54 -06:00
Jonathan Bennett and GitHub
9abd07bb05
Set ch341 MAD Address via sprintf formatting ( #5713 )
2025-01-01 09:06:38 +11:00
58ebd5bcdb
Actually use the MAC address from a ch341 ( #5704 )
...
Co-authored-by: Tom Fifield <tom@tomfifield.net >
2024-12-31 17:46:03 +11:00
Jonathan Bennett and GitHub
57a9a5ca21
Another Valgrind fix ( #5690 )
2024-12-28 18:48:54 -06:00
Jonathan Bennett and GitHub
a8e2446f00
Initialize array to 0s ( #5688 )
2024-12-29 11:05:25 +11:00
Jonathan Bennett and GitHub
8f8e304216
Add packet length to printPacket() ( #5672 )
2024-12-26 18:58:26 -06:00
Jonathan Bennett
13960874ae
Bump libch341 userspace to dev branch
2024-12-25 16:47:00 -06:00
Jonathan Bennett and GitHub
32719f69c9
Add NXP_SE050 detection ( #5651 )
...
* Add NXP_SE050 detection
* Put the flag in the right place
* Include libi2c0 dependency in .deb packages
2024-12-23 15:53:54 +11:00
Jonathan Bennett
6a2a4ffa2a
Add libi2c-dev to native builds
2024-12-22 21:25:48 -06:00
Jonathan Bennett and GitHub
960626e498
Ch341 ( #5474 )
...
* Very hacky first attempt at usermod ech341
* Fixes and debug printfs
* Move to library version of libpinedio-usb
* Add spidev: ch341 option in meshtasticd config.yaml
* Only check settingsStrings on native
* Use new CH341 code
* Bump ch341 lib
* Cleanup USBHal
* Add ch341 config.d files
* Remove ch341quirk
* Bump to most recent spi-userspace driver
* Add handling for ch341 serial, pid, and vid
* Minor fixes from pio check
* Trunk
* Add include for musl compliance
* Point to upstream libch341
2024-12-20 17:34:02 -06:00
Jonathan Bennett and GitHub
92225eb6c3
DIO3_TCXO_VOLTAGE in config.yaml can now take an exact voltage ( #5558 )
2024-12-13 11:48:27 -06:00
Jonathan Bennett and GitHub
0e3dae4fec
Initialize dmac array to nulls ( #5538 )
...
* Initialize dmac array to nulls
* Use std::cout for print before console is init.
2024-12-09 21:51:55 -06:00
4a34bf648f
Add MACAddress to config.yaml ( #5506 )
...
* Add MACAddress to config.yaml
* Better error handling on native, including failing to launch with blank MAC Address and real hardware.
* Re-arrange Mac Address handling and add MACAddressSource
* Bump portduino to remove macaddr function there
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com >
2024-12-07 10:29:49 -06:00
Jonathan Bennett and GitHub
d3e3985e39
Fix minor typos in package workflows ( #5505 )
2024-12-04 12:15:17 -06:00
Jonathan Bennett and GitHub
43b8972171
Portduino fixes ( #5479 )
...
* Set config.yaml defaults even if General is missing
* Unsigned values should get %u in logging
2024-11-30 11:29:45 +08:00
Jonathan Bennett and GitHub
ac6b6c8d83
Adds libusb dev package to Raspbian build steps ( #5480 )
2024-11-30 07:05:28 +08:00
Jonathan Bennett and GitHub
ae4f54224e
Actually gunzip all the files when building a .deb ( #5449 )
2024-11-26 12:49:13 +08:00
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