Ben Meadors
dc2ca9c32b
Report special battery_level of > 100 instead of zero to indicate USB ( #2341 )
...
* Report special battery_level of > 100 instead of zero to indicate USB
* Protos
* Helps if you click save
* Wrong method
* Fmt
2023-03-10 19:50:08 -06:00
Thomas Göttgens
033e988e6f
Merge branch 'master' into 2264-feature-check-for-low-heap-before-adding-to-nodedb-was-reboot-loop-heap-too-low
2023-03-10 19:38:14 +01:00
A. Rager
e6d69e2b67
Refactor i2cScan.h To Handle 2 Bus ( #2337 )
...
* Break i2cScan out into a set of classes for scanning i2c
* refactor i2cscan addresses to be structs that allow addressing by port + address
* build whoopsies
* trunk fmt
* trunk fmt
* lost some build fixes from the merge
* more cleaning for build safety, RTC behavior
2023-03-08 21:13:46 -06:00
Ben Meadors
321e41a3aa
Update protos
2023-03-06 16:17:09 -06:00
GUVWAF
3ca1e62b1f
SX126x/8x: Add HEADER_VALID IRQ flag for actively receiving check ( #2333 )
...
* Add HEADER_VALID IRQ flag for SX126x/8x to detect actively receiving
Needs new RadioLib commit
* Update comments
* Use latest RadioLib release
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2023-03-06 15:53:59 -06:00
Thomas Göttgens
8e197fc35b
fixes #2327
2023-03-06 12:50:05 +01:00
Thomas Göttgens
0940c6462b
Leaving this here in case someone ever needs int :-)
2023-03-04 17:25:55 +01:00
Thomas Göttgens
a47364f07b
Merge branch 'master' into 2264-feature-check-for-low-heap-before-adding-to-nodedb-was-reboot-loop-heap-too-low
2023-03-04 17:24:16 +01:00
GUVWAF
eb4ab26e1f
Check if packet is decrypted before searching node in DB ( #2320 )
...
* Check whether TraceRouteModule exists
In case in the future we don't enable it
* Check whether packet is decrypted before searching node in DB
2023-03-02 13:22:14 -06:00
GUVWAF
408c555f0f
Add airtime of current received/transmitted packet to nextTx time of all pending retransmissions ( #2309 )
...
To avoid unnecessary retransmissions when sending them too early
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2023-02-25 19:51:38 -06:00
Ben Meadors
fbfd0f12b5
Change to 5 minutes for Garth's sanity
2023-02-24 12:49:10 -06:00
Ben Meadors
9650adb616
Set reasonable defaults for sensor role and adjust packet priority ( #2305 )
2023-02-24 11:25:50 -06:00
Ben Meadors
46fa08dc33
Air quality specific prefs ( #2303 )
2023-02-23 13:05:24 -06:00
Ben Meadors
48a407bf5c
Merge branch 'master' into 2264-feature-check-for-low-heap-before-adding-to-nodedb-was-reboot-loop-heap-too-low
2023-02-23 07:10:41 -06:00
github-actions[bot]
05b1fc83bd
[create-pull-request] automated change ( #2300 )
...
Co-authored-by: thebentern <thebentern@users.noreply.github.com>
2023-02-22 16:16:38 -06:00
Thomas Göttgens
568899031d
Check if there's something there before we free it
2023-02-22 10:07:03 +01:00
Thomas Göttgens
f1c457f0c3
tryfix #2228 as suggested by @mverch67
2023-02-22 10:07:03 +01:00
GUVWAF
2472d0947f
RadioLib's startChannel returns LORA_DETECTED for SX126x and SX128x ( #2293 )
2023-02-22 10:07:03 +01:00
GUVWAF
83a201fe86
Use LORA_DIO1 as RadioLib GPIO for SX127x chips ( #2290 )
...
* When channel is active, first try receiving that packet
Afterwards we'll try transmitting again
* Remove setStandby in startSend
Already done in isChannelActive()
* Set LORA_DIO1 as RadioLib GPIO for SX127x
* LORA_DIO1 for Heltec v1, overlaps with GPS_TX
Set to RADIOLIB_NC for now
* If receive was not successful, startReceive doesn't trigger the interrupt
So we have to go back to transmitting anyway
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2023-02-22 10:07:03 +01:00
Ben Meadors
3f5c0cb6ac
Don't auto set to default primary channel
2023-02-22 10:07:03 +01:00
thebentern
c2ff6f2f7c
[create-pull-request] automated change
2023-02-22 10:07:03 +01:00
Thomas Göttgens
d830398fc5
Check if there's something there before we free it
2023-02-21 20:01:56 +01:00
Thomas Göttgens
2e80a4ed87
tryfix #2228 as suggested by @mverch67
2023-02-21 14:53:27 +01:00
GUVWAF
83e6cea280
RadioLib's startChannel returns LORA_DETECTED for SX126x and SX128x ( #2293 )
2023-02-20 14:11:54 -06:00
GUVWAF
95bbcd2cb7
Use LORA_DIO1 as RadioLib GPIO for SX127x chips ( #2290 )
...
* When channel is active, first try receiving that packet
Afterwards we'll try transmitting again
* Remove setStandby in startSend
Already done in isChannelActive()
* Set LORA_DIO1 as RadioLib GPIO for SX127x
* LORA_DIO1 for Heltec v1, overlaps with GPS_TX
Set to RADIOLIB_NC for now
* If receive was not successful, startReceive doesn't trigger the interrupt
So we have to go back to transmitting anyway
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2023-02-20 07:40:44 -06:00
Ben Meadors
7264621149
Don't auto set to default primary channel
2023-02-18 18:32:46 -06:00
thebentern
7102fec7b3
[create-pull-request] automated change
2023-02-17 12:50:01 +00:00
Thomas Göttgens
181832aedd
Merge pull request #2282 from meshtastic/master
...
Catch up
2023-02-17 12:32:33 +01:00
Thomas Göttgens
4967a16abe
- Abstract the memory stats into its own class.
...
- Fix a bug with debug mqtt
- nrf52 needs more love, there's a strange error while linking. Help appreciated
2023-02-17 12:31:51 +01:00
Ben Meadors
6f4ac904a5
Merge branch 'master' into preamble-halving
2023-02-16 19:26:48 -06:00
Ben Meadors
643237162e
Regen protos
2023-02-16 19:26:21 -06:00
Ben Meadors
cef11968eb
Merge branch 'master' into preamble-halving
2023-02-16 19:09:47 -06:00
GUVWAF
8aede61adb
Fix setting preambleLength for SX127x
...
Don't set currentLimit, it is set automatically in begin()
2023-02-16 20:58:10 +01:00
Ben Meadors
07b90a61e1
For science
2023-02-16 13:51:20 -06:00
Ben Meadors
221a145d2d
Whoops
2023-02-16 12:58:54 -06:00
Ben Meadors
b3fac71a8d
Missed some stuff
2023-02-16 12:52:03 -06:00
Ben Meadors
2e6e0644d4
Move it around and kill old device metadata gen
2023-02-16 12:18:27 -06:00
Ben Meadors
b78e0dce46
Merge branch 'master' into metadata-phone-api
2023-02-16 10:21:31 -06:00
Ben Meadors
3ae1fdf661
Add metadata to phone api want config messages
2023-02-16 10:21:03 -06:00
GUVWAF
b7895f7038
Sanity check for sending NodeInfo
...
Don't send it if we've done so less than 1 min. ago
2023-02-15 19:31:09 +01:00
GUVWAF
5ca3d9169a
Only set node_info_broadcast_secs when not a Router
2023-02-11 17:17:11 +01:00
GUVWAF
c834252f1c
Check if nodeInfoModule exists (e.g. for Repeater)
2023-02-11 17:16:48 +01:00
GUVWAF
16852da8d4
Set node_info_broadcast_secs to 3 hours instead of default_broadcast_interval
2023-02-11 15:58:26 +01:00
GUVWAF
2d2633d4cf
Increase default NodeInfo broadcast to 3 hours
2023-02-11 15:58:26 +01:00
GUVWAF
5f28ef6814
When hearing a node we don't know, send NodeInfo and ask for response
2023-02-11 15:58:26 +01:00
GUVWAF
a280d7f796
Guard simulator handling with HAS_RADIO flag
2023-02-11 10:00:19 +01:00
Ben Meadors
7100416142
Add short_name
2023-02-09 19:32:32 -06:00
Ben Meadors
1c3970efab
Default node info broadcast secs for ham operation
2023-02-08 15:36:23 -06:00
Ben Meadors
7ddd8c9930
Update protobufs to release version
2023-02-07 07:06:24 -06:00
Thomas Göttgens
b952c35da6
eliminate main source of multiline logging
2023-02-07 01:02:51 +01:00
Thomas Göttgens
b07904fe77
Merge remote-tracking branch 'remotes/origin/master' into rsyslog-client
2023-02-05 01:21:30 +01:00
Thomas Göttgens
829318046a
rsyslog is working
2023-02-05 00:11:00 +01:00
Ben Meadors
d83a0b1818
Initial air quality telemetry feature
2023-02-04 13:07:14 -06:00
Ben Meadors
40b7d783ed
Merge branch 'master' into connectionstatus-and-augment-metadata
2023-02-03 14:27:18 -06:00
Ben Meadors
0414ca2dc0
Fixed it
2023-02-03 10:49:44 -06:00
Thomas Göttgens
7a50934185
change time display to relative for rx messages
2023-02-03 17:45:12 +01:00
Ben Meadors
e8e04d23d7
WIP
2023-02-02 14:05:58 -06:00
Thomas Göttgens
1f0e64e794
Merge branch 'master' into rsyslog-client
2023-01-31 17:26:23 +01:00
Thomas Göttgens
661894f9f9
fix nRF52 and linter errors.
2023-01-31 14:20:04 +01:00
Ben Meadors
860aca9335
Set encryptedOk to false for local_only rebroadcast
2023-01-30 14:50:03 -06:00
Thomas Göttgens
104ffe36b2
Merge branch 'master' into rsyslog-client
2023-01-30 19:06:42 +01:00
Ben Meadors
27bd4fa32e
Merge branch 'master' into prefer-repeaters-too
2023-01-30 10:53:44 -06:00
Ben Meadors
0a3e512387
Merge branch 'master' into prefer-repeaters-too
2023-01-30 10:29:14 -06:00
Ben Meadors
7b249deb26
Trunk it
2023-01-30 10:29:07 -06:00
Thomas Göttgens
7aa4e94e45
Do not send when region unset
2023-01-30 17:25:21 +01:00
Ben Meadors
dab2bb3bcc
Weight tx delay to prefer Repeaters as well
2023-01-30 10:24:46 -06:00
Thomas Göttgens
afcd7acfab
User configurable center frequency
2023-01-30 17:24:19 +01:00
caveman99
0188edb342
[create-pull-request] automated change
2023-01-30 15:57:15 +01:00
Ben Meadors
0633b2f238
Verbiage
2023-01-29 17:45:24 -06:00
Ben Meadors
ec1358b050
Debug log for indicator
2023-01-29 15:42:40 -06:00
Ben Meadors
cd35e92471
Added modes for rebroadcast
2023-01-29 14:22:51 -06:00
thebentern
5f7adf27c3
[create-pull-request] automated change
2023-01-29 19:57:41 +00:00
Ben Meadors
27b1428d6e
Merge branch 'master' into repeaterTraceroute
2023-01-29 11:14:18 -06:00
Ben Meadors
ab6402e4f4
Merge branch 'master' into repeaterTraceroute
2023-01-29 10:11:58 -06:00
Ben Meadors
00196ab7e7
Long moderate
2023-01-29 09:53:38 -06:00
GUVWAF
c499302092
Remove decode guard clause for repeater
2023-01-29 16:32:18 +01:00
thebentern
7ed39d27e4
[create-pull-request] automated change
2023-01-29 13:57:30 +00:00
Ben Meadors
75ea6fd704
Update interval
2023-01-28 14:44:47 -06:00
Ben Meadors
171c1df3fa
Role based defaults
2023-01-28 14:32:57 -06:00
Ben Meadors
bdf3fe3f5c
Logging tweaks
2023-01-28 13:40:14 -06:00
Ben Meadors
d9af4f46fa
Skip decoding for Repeaters
2023-01-28 13:28:57 -06:00
Ben Meadors
103f1992dd
Yank repeater module and just guard clause the alloc
2023-01-28 09:11:12 -06:00
Ben Meadors
e229a67d25
More friends
2023-01-28 08:44:29 -06:00
Ben Meadors
654d38ed3f
Router
2023-01-28 08:17:29 -06:00
Ben Meadors
e8908784f9
Format
2023-01-28 06:39:14 -06:00
Ben Meadors
de82119415
Start of repeater role with in firmware
2023-01-28 06:38:13 -06:00
thebentern
96f763dfa3
[create-pull-request] automated change
2023-01-27 20:16:23 +00:00
Ben Meadors
d51aa60864
Missed one
2023-01-25 15:03:59 -06:00
Ben Meadors
9b18d5d85f
Fmt
2023-01-25 14:59:12 -06:00
Ben Meadors
25096c5c63
Use radiolib native tx/rx_en switch control
2023-01-25 14:58:50 -06:00
Ben Meadors
cb8532f2df
Protos
2023-01-24 12:16:01 -06:00
Ben Meadors
006cddd5cb
Merge branch 'master' into sx126x-rx-boosted-gain
2023-01-24 10:04:31 -06:00
Ben Meadors
2df81810ec
Merge branch 'master' into sx126x-rx-boosted-gain
2023-01-23 06:06:22 -06:00
Thomas Göttgens
014946ad0e
tryfix: also clear the second buffer.
...
Todo: do we really need 2 buffers here?
2023-01-23 12:29:10 +01:00
Ben Meadors
2c1b7840c5
Make this pr great again
2023-01-23 09:22:40 +01:00
Thomas Göttgens
e9acf413fb
After thoroughly reading schematics and documentation, i conclude that this is theoretically the right definition for this hookup.
2023-01-23 09:22:40 +01:00
Thomas Göttgens
3120744716
Missed one :-)
2023-01-22 18:58:14 +01:00
Ben Meadors
ac6d4e33d4
Format
2023-01-22 08:49:06 -06:00
Ben Meadors
4c9f0b2646
Just start a new PR. Conflicts were too wild
2023-01-22 08:48:31 -06:00
Thomas Göttgens
c53c87499b
missed a few
2023-01-21 21:23:24 +01:00
Thomas Göttgens
cdf379616c
whatever makes trunk happy.
2023-01-21 21:23:24 +01:00
Thomas Göttgens
6fdb93cd16
re-add namespacing in protobufs. Let's see what i missed. Portduino likely ...
...
Checking in generated on purpose.
2023-01-21 21:23:24 +01:00
Thomas Göttgens
51b2c431d9
trunk roundhouse kick
2023-01-21 21:23:24 +01:00
GUVWAF
bcf24b8187
Make Trunk happy
2023-01-21 13:01:19 +01:00
a_filonichev
5a2ad03294
Merge branch 'master' of https://github.com/nukevoid/firmware
2023-01-20 23:41:23 +02:00
a_filonichev
a584cac827
fix rxGood counter
2023-01-20 23:41:05 +02:00
Nukevoid
481880872c
Merge branch 'master' into master
2023-01-20 19:03:37 +02:00
Thomas Göttgens
bec0cda175
Merge branch 'master' into printFixes
2023-01-20 14:32:03 +01:00
Ben Meadors
ca298d8a7d
Merge branch 'master' into sx126x-rx-boosted-gain
2023-01-20 07:08:53 -06:00
a_filonichev
3eaa054c68
Fix vulnerability with "h.from == 0"
...
// altered packed with "from == 0" can do Remote Node Administration without permission
2023-01-20 01:38:13 +02:00
caveman99
fda1e29c4d
[create-pull-request] automated change
2023-01-19 14:14:12 +00:00
GUVWAF
836559cda1
Fix two print format specifiers
2023-01-19 15:01:44 +01:00
Ben Meadors
293625924d
Merge branch 'master' into sx126x-rx-boosted-gain
2023-01-18 16:57:41 -06:00
Ben Meadors
ff029ad752
Formatting
2023-01-18 15:37:23 -06:00
Thomas Göttgens
fdf7c3a812
Merge branch 'master' into rsyslog-client
2023-01-18 22:13:38 +01:00
thebentern
ee25a488ef
[create-pull-request] automated change
2023-01-18 21:12:03 +00:00
Ben Meadors
9046dacec8
I don't like this formatting but I need trunk to STFU
2023-01-18 14:51:48 -06:00
Thomas Göttgens
f86eef66c8
Simple UDP calls, if wired up a fair bit of this can go again.
...
this is preliminary work
2023-01-18 21:35:51 +01:00
Ben Meadors
b218ea9ec7
Hopefully ignore generated files
2023-01-18 11:04:06 -06:00
thebentern
80f259cc6c
[create-pull-request] automated change
2023-01-18 16:19:47 +00:00
thebentern
5189e328b6
[create-pull-request] automated change
2023-01-18 14:57:44 +00:00
Ben Meadors
4d4af7de59
generated paths experiment
2023-01-18 08:56:47 -06:00
Ben Meadors
1b932c6bbe
Fix scripts patch and remove files in previous dir
2023-01-18 07:53:19 -06:00
thebentern
cf39628222
[create-pull-request] automated change
2023-01-18 13:42:53 +00:00
Andrew Moroz
0a2539650e
sx126x-rx-boosted-gain: add support for setting Rx gain mode on SX126x chipsets
2023-01-17 00:56:15 -05:00
Thomas Göttgens
0e51a42ce2
Merge branch 'master' into xmodem-proto
2023-01-16 20:11:02 +01:00
Thomas Göttgens
d5a3acb83a
Trigger rebuild
2023-01-16 17:55:17 +01:00
Krezalis
efbdb273c3
Update RadioInterface.cpp
2023-01-16 17:55:17 +01:00
Krezalis
011013ab1a
Update RadioInterface.cpp
2023-01-16 17:55:17 +01:00
Krezalis
49279e56d0
Update RadioInterface.cpp
2023-01-16 17:55:17 +01:00
Krezalis
1cfda77356
Add 868 MHz Ukrainian Band
2023-01-16 17:55:17 +01:00
caveman99
f4779bd93f
[create-pull-request] automated change
2023-01-16 17:51:45 +01:00
Thomas Göttgens
aca1241a7f
Having a first stab at flawfinder errors
2023-01-16 10:55:40 +01:00
Thomas Göttgens
80d1a993dd
Merge branch 'develop' of github.com:meshtastic/firmware into xmodem-proto
2023-01-12 10:00:04 +01:00
thebentern
440b965e71
[create-pull-request] automated change
2023-01-12 01:38:21 +00:00
GUVWAF
fc775012ea
Don't send NodeInfo and DeviceTelemetry at high Tx air util
...
Also move airtime checking to airtime class
2023-01-11 21:52:19 +01:00
thebentern
721f87af7e
[create-pull-request] automated change
2023-01-11 20:35:13 +00:00
Ben Meadors
17a2589b35
Allow time from phone to be sent to the mesh
2023-01-11 07:50:07 -06:00
GUVWAF
ab9d0ba543
Report actual RoutingError
2023-01-10 21:12:40 +01:00
GUVWAF
e13fb9919e
Send NAK only to the API upon duty cycle limit
2023-01-10 21:12:17 +01:00
GUVWAF
a3b93a4dcf
Better not to compare float directly
2023-01-10 21:10:09 +01:00
Thomas Göttgens
6b0f18e1e4
Merge pull request #2113 from meshtastic/mqtt-fix
...
Find the downlink channel to post packet to.
2023-01-10 20:49:18 +01:00
Thomas Göttgens
8f2155f8f9
Merge branch 'develop' into mqtt-fix
2023-01-09 23:28:08 +01:00
Thomas Göttgens
1fc5d70221
let the library handle the reconnect, manually do it after 5 seconds
2023-01-09 23:26:47 +01:00
Ben Meadors
e7d425ef6e
Until we figure out what's going on
2023-01-09 16:19:42 -06:00
Thomas Göttgens
c63536d948
switch to 16 bit packet number
2023-01-09 20:23:32 +01:00
Thomas Göttgens
9c1cfe9358
Merge pull request #2114 from meshtastic/refactor-apiserver
...
make a template class for API Server
2023-01-09 20:11:01 +01:00
Thomas Göttgens
971565aed3
Merge branch 'develop' into xmodem-proto
2023-01-09 20:08:37 +01:00
Thomas Göttgens
3a6e3464e6
notify phoneAPI about new packages to process
2023-01-09 20:06:11 +01:00
Thomas Göttgens
0181e186ac
Merge pull request #2106 from meshtastic/assert-cleanup
...
initial cleanup work
2023-01-09 19:45:23 +01:00