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
b70a359fe8
leave phone timeout off a bit longer
2021-03-30 23:11:56 +08:00
Kevin Hester
13cfce48fa
cleanly disable bluetooth while serial API is in use (and only then)
2021-03-25 08:54:43 +08:00
Kevin Hester
7b4f8fb6d6
Fix firmware OTA update while is_router
2021-03-23 14:44:50 +08:00
Vadim Furman
c62863b1dc
Merge from origin
2021-03-14 19:42:57 -07:00
Vadim Furman
98d878cdfe
Port to lora_isp4520 board
2021-03-14 19:00:20 -07:00
Kevin Hester
64bc791e48
fix docs
2021-03-07 09:34:29 +08:00
Kevin Hester
ba9a94d026
fix is_low_power detection
2021-03-06 18:00:20 +08:00
Kevin Hester
7312c56d6c
Merge remote-tracking branch 'root/master' into dev
...
# Conflicts:
# src/PowerFSM.cpp
2020-12-25 10:16:12 +08:00
Jm
bacc1b1dad
#581 - Quiet a compile time warning I introduced.
2020-12-22 22:37:34 -08:00
Jm Casler
5f97740ab7
Fix for #535 -- Heltec board stays asleep ...
2020-12-21 17:42:00 -08:00
Kevin Hester
a8d7700295
move more of is_router out of python and into the device code
2020-12-21 11:38:03 +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
d7368d5a51
begin deep sleep support for nrf52
2020-10-30 17:05:32 +08:00
Kevin Hester
d9dcb33576
Merge branch 'master' into dev-https
2020-10-16 17:05:06 -07:00
Kevin Hester
68ddb712f5
properly keep nrf52s from sleeping
2020-10-16 14:00:56 +08:00
Jm Casler
10008d4eef
fix merge conflict
2020-10-11 21:19:22 -07:00
Jm Casler
3d3f7869d4
Increase CPU frequency on HTTPS requests. Clock back down after a period of time.
2020-10-11 20:38:09 -07:00
Kevin Hester
45a36f5571
fix POWER state entry/exit based on loss of USB power (tx @mc-hamster)
2020-10-12 09:27:07 +08:00
Jm Casler
ca48079545
Merge pull request #15 from meshtastic/master
...
updated my branch from head
2020-10-10 22:29:09 -07:00
Jm Casler
b17a8d7a6a
Removed powerExit -- it wasn't working
2020-10-10 21:54:27 -07:00
Kevin Hester
49b4ed2a89
coroutine: kinda works now
2020-10-10 18:03:45 +08:00
Jm Casler
db8faa9faf
added powerExit
2020-10-09 23:07:37 -07:00
Jm Casler
f75a256631
Merge branch 'master' of https://github.com/mc-hamster/Meshtastic-device
2020-10-07 22:02:59 -07:00
Jm Casler
4f659b7563
Initial check in of HTTPS server for #452
...
This switches from the espressif web server to esp32_https_server. Both HTTPS and HTTP have been migrated. On board SSL key generation.
2020-10-07 22:02:53 -07:00
Kevin Hester
943d5cb08d
bug #376 we were not staying in light sleep as long as intended
2020-10-06 11:48:53 +08:00
Kevin Hester
7480eb1826
Change to use zeros for timeout values that are 'default'
2020-10-06 09:43:00 +08:00
geeksville
bacc6caf04
wip gps power fixes #376
2020-10-01 09:17:43 -07:00
geeksville
28ec0e310d
make bat voltage sensing work on eink
2020-09-26 18:13:16 -07:00
geeksville
3352fae64c
fix #371 allow button while using API. also don't let tbeams sleep if they have USB power
2020-09-21 12:41:39 -07:00
geeksville
fefd3d78f3
Portduino WIP now compiles but does not link
2020-09-05 12:34:48 -07:00
grcasanova
37d9fb2dad
just a cleanup of the graphics
2020-07-07 10:46:49 +02:00
grcasanova
92b30ebec6
fixes now compiles
2020-07-06 10:45:55 +02:00
geeksville
1f668046a0
if we can't sleep, at least have the processor block for 100ms
2020-06-10 18:23:20 -07:00
geeksville
8ccd59a7d8
Fix #115 : wake from light sleep if a character arrives on the serial port
...
Note - we do this not by using the uart wake feature, but by the lower
power GPIO edge feature. Recommend sending "Z" 0x5A - because that has
many edges. Send the character 4 times to make sure the device is awake
2020-06-10 15:36:38 -07:00
geeksville
ddfdae64bf
Fix #167 while in light sleep, allow loop() to still run occasionally
2020-06-10 14:11:56 -07:00
geeksville
ce9bac34d6
add a new SERIAL psm state, to ensure device doesn't sleep while
...
connected to the phone over USB.
In support of
https://github.com/meshtastic/Meshtastic-Android/issues/38
2020-06-08 16:37:49 -07:00
geeksville
d2de04d5b2
Fix #59 no need for broadcasts when showing new node pane
2020-05-21 17:21:44 -07:00
geeksville
efc239533c
Fix #133 - force deep sleep if battery reaches 10%
2020-05-17 05:10:51 -07:00
geeksville
933d5424da
abstract out the UBlox GPS driver
2020-05-04 11:15:05 -07:00
geeksville
bebaa838c4
no need for LightSleep state on NRF52 CPUs
2020-04-24 11:21:10 -07:00
geeksville
0a6af936ed
Get build (kinda, not really) running on a NRF52
...
Lots of NO_ESP32 to remove later...
2020-04-14 20:22:27 -07:00
geeksville
4757b6807e
lots of changes:
...
* preflightSleep, notifySleep, notifyDeepSleep now allow arbitrary
drivers/devices/software to register for sleep notification.
* Use the proceeding to clean up MeshRadio - now the mesh radio is more
like an independent driver that doesn't care so much about other systems
* clean up MeshService so that it can work with zero MeshRadios added.
This is a prelude to supporting boards with multiple interfaces (wifi,
extra LORA radios etc) and allows development/testing in sim with a bare
ESP32 board
* Remove remaining ESP32 dependencies from the bare simulation target
this allows running on anything that implements the arduino API
2020-04-14 11:40:49 -07:00
geeksville
6ad451eb5f
move bluetooth code into something that is architecture specific...
...
because the ESP32 implementation will be different from NRF52
to make this possible I needed to decouple knowlege about bluetooth from
our mesh service. Instead mesh service now uses the Obserable pattern
to let any interested consumer get notified of important mesh changes
(currently that is only bluetooth, but really we should do the same
thing for decoupling the GUI 'app' from the mesh service)
@girtsf would you mind reviewing my Observer changes? I haven't written
C++ code in a long time ;-)
2020-04-10 12:18:48 -07:00
geeksville
05a0266fc4
Fix #77 : bluetooth is supposed to be on in DARK state
2020-04-05 13:09:46 -07:00
geeksville
da74803ffb
begin cleanup on radio abstraction, details below:
...
* to allow changing to new mesh transport
* to allow a different chipset for the radio
* to allow testing on hardware with a SimRadio
* new "bare" build env for a devboard with virtually no hardware
* make buttons optional
2020-03-31 21:56:35 -07:00
geeksville
50d724780a
make user presses ask other nodes for their latest status
...
see related bug
https://github.com/meshtastic/Meshtastic-esp32/issues/59
2020-03-25 13:09:12 -07:00
geeksville
3443e60718
never loop waiting on hardware without some sort of timeout ;-)
...
related to https://github.com/meshtastic/Meshtastic-esp32/issues/53
2020-03-25 12:25:46 -07:00
geeksville
32ac5ac9ae
reformat everything
...
using @girtsf clang-format prefs settings. This should allow us to turn
on auto format in our editors without causing spurious file changes.
2020-03-18 19:15:51 -07:00
geeksville
534691f0c2
Merge remote-tracking branch 'root/master'
...
# Conflicts:
# src/main.cpp
# src/screen.cpp
# src/screen.h
2020-03-18 18:44:12 -07:00