GUVWAF
ab282765d4
Let SimRadio start receive a packet if its PortNum is Simulator_App
2022-10-01 12:06:59 +02:00
Thomas Göttgens
f7b12f0695
Adapt to new protobufs - TODO: factory_reset rewire
2022-09-09 12:51:41 +02:00
Ben Meadors
b54073a8a1
Bluetooth mode unification and behavior tweaks ( #1636 )
...
* Esp32 bluetooth modes
* Comment
* Gutting bluetooth
* Cleanup
* Security
* Testing
* NRF bluetooth security
* Reboot on saved lora or bluetooth settings
* Cleanup
* Fixes
* Stub for platforms without screens
* Fixed just-works in esp32
* Cleanup
* Display device name in boot screen
* Added waypoint module routing
* chmod
* Words
* Protos
* Backing out partition changes for testing
* Revert "Backing out partition changes for testing"
This reverts commit 191ed6489c
.
* Chmod PR artifacts
* Trying setInitialState again
* Revert "Trying setInitialState again"
This reverts commit 703eac7277
.
* External notification module
* Cleanup
* Pin display formatting
2022-08-22 16:41:23 -05:00
Ben Meadors
de47cc55a0
Don't reply with null island ( #1605 )
2022-08-07 15:08:46 -05:00
Thomas Göttgens
53e9f4df46
Segemented config works for me (TM)
...
Small GPS Fix that cropped up while testing included.
2022-05-21 22:38:33 +02:00
Sacha Weatherstone
6b0ce6b729
Finish config transition
2022-05-07 20:31:21 +10:00
Ben Meadors
359b41d869
Position fwd phone ( #1413 )
...
* Correct factory reset code for NRF (from 1.2)
* Changes from 1.2
* Update proto ref
* Whoops
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2022-04-26 19:40:24 -05:00
Thomas Göttgens
701707a01b
- Bounds Check is working on big integers, don't throw away valid coordinates.
...
- Set ublox chips back to NMEA mode if they have been configured wrongly before.
2022-04-26 13:00:11 +02:00
Thomas Göttgens
4e29984549
Slightly more verbose GPS debug logging
2022-03-31 18:52:40 +02:00
Ben Meadors
e97bd4f9f9
Battery level / telemetry rework (first pass) ( #1306 )
...
* Update protos
* Removed battery level from position packets
* Send internal metrics
* Handle telemetry on node info for now
* Fixes
* Default telemetry to enabled and same interval as position
* Fixes for lots of interval issues
* Fixed interval
* Regen
* Cleanup
* Newline
* Update proto ref
2022-03-20 09:55:38 -05:00
Jm Casler
e53abbfb2b
more rename plugin to module
2022-02-27 02:21:02 -08:00
Jm Casler
86e767eec2
Update filenames from plugins to modules
2022-02-27 00:18:35 -08:00
Jm Casler
218a208ab7
mv plugins/ to modules/
2022-02-26 23:56:26 -08:00
a-f-G-U-C
5ef9414a25
fix owner name update issue (off #900 )
2021-10-29 13:28:48 +00:00
a-f-G-U-C
da9dd62a33
add the user as distinct message source
2021-10-27 13:16:51 +00:00
a-f-G-U-C
f69c8dddad
update MeshService to use Position struct
2021-10-24 12:48:48 +00:00
a-f-G-U-C
a914ee133c
fix a rare GPS data corruption condition ( #890 )
...
* fix a rare GPS data corruption condition
* don't use hasLock to determine validity
2021-10-23 14:21:59 +11:00
a-f-G-U-C
d0fb363422
discriminate local/remote node position updates ( #889 )
2021-10-23 12:58:56 +11:00
Kevin Hester
057b04a88a
treat RECEIVED_PACKET like PACKET_FOR_PHONE
2021-08-02 22:07:39 -07:00
Kevin Hester
17a1262382
pull in new epaper lib (which required importing configuration.h everywhere
...
for dumb reasons)
2021-06-27 10:56:28 -07:00
Kevin Hester
1e3b037fea
populate position.time for broadcast positions
2021-03-27 16:17:01 +08:00
Kevin Hester
04225f7bc2
change! time of last packet rx in node->last_heard instead of node->position.time
2021-03-26 09:30:15 +08:00
Kevin Hester
b20930c111
move streamapi into a thread, saves power and increases responsiveness
2021-03-25 06:15:15 +08:00
Kevin Hester
a97c2ae6eb
minimize radioconfig file writes
2021-03-11 18:29:47 +08:00
Kevin Hester
2c29e8b179
make nodeinfo & position plugins optional
2021-03-06 10:36:30 +08:00
Kevin Hester
0c0c0babba
combine acks works
2021-03-05 11:44:45 +08:00
Kevin Hester
950b32232f
don't send messages the phone sent us back towards the phone
2021-03-05 10:19:27 +08:00
Kevin Hester
69a11e7375
WIP phone api changes for dev1.2
2021-02-17 19:04:41 +08:00
Kevin Hester
e35f137986
clean up nodeinfo broadcasts and move into plugin
2021-02-14 12:27:10 +08:00
Kevin Hester
66a7e8eab9
oops - we were never sending 'fixed' gps positions to other nodes
2021-02-14 12:02:24 +08:00
Kevin Hester
a872231f8a
clean up position broadcasts, send them even if we don't have gps lock
2021-02-14 11:57:48 +08:00
Kevin Hester
52ec4d511c
oops - we weren't properly stripping timestamps from new style positions
2021-02-14 11:37:32 +08:00
Kevin Hester
917090856f
partial for #681 : Never let stale nodeinfos/positions stay in xmit queue
2021-02-11 18:19:43 +08:00
Kevin Hester
fdfe62edf0
updates to work with new protobuf names
2021-02-10 16:18:41 +08:00
Kevin Hester
7aacfd66ef
add assertIsSetup() and use it from OSThread constructor
...
fixes nasty bug @mc-hamster discovered with plugin order of operations
2021-01-08 13:15:49 +08:00
Kevin Hester
94a47dba7d
fix #624 - update battery level and current time on mynodeinfo
2021-01-04 09:59:53 +08:00
Kevin Hester
651bd71454
show critical faults on the screen
2020-12-26 13:36:21 +08:00
Kevin Hester
15e1a3870c
When new node joins mesh, all other nodes reply with their current state
2020-12-17 10:53:29 +08:00
Kevin Hester
32b8e4f20a
fix #536 allow fixed positions
...
meshtastic --setlat 32.7767 --setlon -96.7970 --setalt 1337
2020-12-09 12:05:15 +08:00
Kevin Hester
79a24c200e
use autogened protobuf init code
2020-12-07 10:27:31 +08:00
Kevin Hester
3e0dc44210
move want_replies into new plugin system
2020-12-05 11:15:06 +08:00
Kevin Hester
ae7d3ee5ed
move nodeinfo messages into new plugin system
2020-12-05 10:00:46 +08:00
Kevin Hester
f1179bd3ea
positions now sent using the new API
2020-12-05 08:46:19 +08:00
Kevin Hester
d3cb9bdd4a
WIP moving positions to new system
2020-12-03 16:48:44 +08:00
Kevin Hester
7737123d0f
begin moving position stuff into plugin
2020-11-28 18:10:31 +08:00
Kevin Hester
ddab4a0235
remove support for 8bit nodenums
2020-11-28 09:56:21 +08:00
Kevin Hester
cfcb62bd18
Make region changes take effect immedately
2020-10-29 13:26:36 +08:00
Kevin Hester
49b4ed2a89
coroutine: kinda works now
2020-10-10 18:03:45 +08:00
Kevin Hester
4b9ea4f808
Merge branch 'dev' into coroutine
2020-10-10 09:22:23 +08:00
Kevin Hester
95cb6b06e4
fix #462 publish immediately on any GPS state change
...
(don't wait until end of aquisition window)
2020-10-10 09:20:38 +08:00
Kevin Hester
2044427e97
coroutines: wip compiles but does not link
2020-10-09 14:16:51 +08:00
Kevin Hester
4a70ba1f7a
fix nodeinfo stored times (I think) for @lgoix
2020-10-09 10:01:13 +08:00
Kevin Hester
023f1c24fb
RTC: add notion of 'quality' for different time sources
...
Allow use of mesh based time until a GPS time arrives
2020-10-08 07:46:20 +08:00
Kevin Hester
f00d07baa3
RTC: pull rtc code into own file for cleanup
2020-10-08 07:28:57 +08:00
Kevin Hester
7480eb1826
Change to use zeros for timeout values that are 'default'
2020-10-06 09:43:00 +08:00
geeksville
3c0429deee
Add new factory_reset preferences option clients can set
2020-09-19 11:19:42 -07:00
geeksville
d3e28e3e2c
Merge branch 'dev'
2020-09-17 11:20:41 -07:00
geeksville
8e988cc926
fix #397 from @a-f-G-U-C - bogus GPS positions during locking could be reported
...
btw - from my read of the NMEA, the lowest value that means 'has a valid
position' is 1 not 2. But I only know this because you pointed me at
it ;-)
Thanks!
2020-09-16 09:18:44 -07:00
geeksville
8c240b59f6
fix #393 . immediately save node db to disk if user changes name
2020-09-16 09:08:35 -07:00
geeksville
2a067e7f6b
make gps optional. Portduino almost works in sim!
2020-09-06 14:45:43 -07:00
geeksville
fefd3d78f3
Portduino WIP now compiles but does not link
2020-09-05 12:34:48 -07:00
geeksville
9b25818a50
fix #249 : report battery levels even if no GPS lock
...
@professr I noticed you added a "newStatus" observable to the GPS class.
Do you remember why you didn't remove the old GPS status (which seemed
to be dumber). Is it just because you didn't want to risk breaking
MeshService? (I assume) In this change I removed the old Observable
and all seems well (just using newStatus everywhere).
2020-08-12 15:51:57 -07:00
geeksville
ed589727d6
Update NRF52 build to work again
2020-07-09 19:57:55 -07:00
grcasanova
9803141fe7
merged with master
2020-07-06 21:53:10 +02:00
grcasanova
92b30ebec6
fixes now compiles
2020-07-06 10:45:55 +02:00
Professr
f5b7c33d4e
Refactored status handlers and merged
2020-06-28 18:17:52 -07:00
Professr
542b8b26ce
Abstracted statuses, made display event-driven
2020-06-27 21:19:49 -07:00
geeksville
60470211e5
expose battery level via the standard BLE battery service
2020-06-22 10:04:26 -07:00
geeksville
c5851a4a0c
Report battery level to other nodes in mesh (and apps).
...
Also today I'll turn back on the the standard "has a battery" BLE
device profile, so the locally connected radio should show up in the
phone's bluetooth popup of battery levels (similar to how a BLE
headphone battery level appears)
cc @lgoix - using code from @professr
```
meshtastic --info
Connected to radio...
my_node_num: 2883444536
has_gps: true
num_channels: 13
region: "unset"
hw_model: "tbeam"
firmware_version: "unset"
packet_id_bits: 32
current_packet_id: 91018534
node_num_bits: 32
message_timeout_msec: 300000
min_app_version: 172
preferences {
position_broadcast_secs: 900
send_owner_interval: 4
wait_bluetooth_secs: 120
screen_on_secs: 300
phone_timeout_secs: 900
phone_sds_timeout_sec: 7200
mesh_sds_timeout_secs: 7200
sds_secs: 31536000
ls_secs: 3600
}
channel_settings {
tx_power: 23
modem_config: Bw125Cr48Sf4096
psk: "\324\361\273: )\007Y\360\274\377\253\317Ni\277"
name: "Default"
}
Nodes in mesh:
{'num': 2883444536, 'user': {'id': '!2462abdddf38', 'longName': 'Unknown df38', 'shortName': '?38', 'macaddr': 'JGKr3d84'}, 'position': {'altitude': 96, 'batteryLevel': 100, 'latitudeI': 375210641, 'longitudeI': -1223090398, 'time': 1592843564, 'latitude': 37.5210641, 'longitude': -122.3090398}}
```
2020-06-22 09:36:19 -07:00
geeksville
aadba1f694
add printPacket for debug printing packets
2020-06-14 15:30:42 -07:00
geeksville
e124d2094f
PROTOCOL CHANGE! activate 32 bit nodenums/packetids
2020-06-06 13:16:36 -07:00
geeksville
829e0b6e26
fix extra free
2020-05-25 08:19:14 -07:00
geeksville
9dd88281af
reliable broadcast now works
2020-05-21 16:34:16 -07:00
geeksville
8bf4919576
wip reliable unicast (1 hop)
2020-05-19 11:56:17 -07:00
geeksville
976bdad067
sniffReceived now allows router to inspect packets not destined for this node
2020-05-18 17:57:58 -07:00
geeksville
26d3ef529e
Use the hop_limit field of MeshPacket to limit max delivery depth in
...
the mesh.
2020-05-18 17:35:23 -07:00
geeksville
b6a202d68e
runs again with new protobufs
2020-05-12 13:35:22 -07:00
geeksville
1cc24de787
stub encryptor seems nicely backwards compatible with old devices and apps
2020-05-09 17:51:20 -07:00
geeksville
933d5424da
abstract out the UBlox GPS driver
2020-05-04 11:15:05 -07:00
geeksville
9b309fe0a0
Use int based lat/long from now on in the device code
...
for https://github.com/meshtastic/Meshtastic-device/issues/124
2020-05-04 08:09:08 -07:00
geeksville
ad2f639195
don't leak messages if they are handled locally
2020-05-02 19:53:13 -07:00
geeksville
5a4fab2506
start msg sequence numbers with a random number each boot
2020-05-01 08:51:53 -07:00
geeksville
82c1752d85
less logspam
2020-05-01 08:31:52 -07:00
geeksville
0096f54ae9
better debug output
2020-04-30 22:53:21 -07:00
geeksville
dec4870649
begin cleaning up mesh library layer so that it could be split someday
2020-04-27 07:54:19 -07:00