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
c46a884558
concurrency wip
2020-10-10 08:28:00 +08:00
Kevin Hester
2044427e97
coroutines: wip compiles but does not link
2020-10-09 14:16:51 +08:00
Kevin Hester
10f64590a9
Merge branch 'dev' into coroutine
2020-10-09 10:03:27 +08:00
Kevin Hester
4a70ba1f7a
fix nodeinfo stored times (I think) for @lgoix
2020-10-09 10:01:13 +08:00
Kevin Hester
dd6a402ea0
coroutine: wip
2020-10-09 09:10:44 +08:00
Kevin Hester
bed7d8a619
threads: begin change to cooperative threading
2020-10-08 13:32:34 +08:00
Kevin Hester
1b6e8e36d3
Merge remote-tracking branch 'root/master'
2020-10-08 11:14:28 +08:00
Kevin Hester
7a4b8cde11
keep rf95 max power at 20 dBm so users don't smoke their boards
2020-10-08 10:51:31 +08:00
Kevin Hester
113859e791
increase sx1272 max power
...
+#define MAX_POWER 27
// if we use 20 we are limited to 1% duty cycle or hw might overheat. For continuous operation set a limit of 17
+// In theory up to 27 dBm is possible, but the modules installed in most radios can cope with a max of 20. So BIG WARNING
+// if you set power to something higher than 17 or 20 you might fry your board.
2020-10-08 09:57:59 +08:00
Kevin Hester
a6b82ccfd9
Merge pull request #457 from geeksville/master
...
fixes based on alpha tester report
2020-10-07 16:55:41 -07:00
Kevin Hester
e8b8ec69f1
1.1.2
2020-10-08 07:48:14 +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
62c228b986
gps: don't stop lock attempts just because the main cpu is sleeping
2020-10-08 06:23:53 +08:00
Kevin Hester
1a3cc40c7e
sx1262 better to check for header because preamble might never result in irq
2020-10-08 06:23:05 +08:00
Kevin Hester
bdcd5c3981
allow reporting # sats before we ahve a fix
2020-10-08 06:22:25 +08:00
Kevin Hester
fc82e872d6
don't require gps to have lock before we'll trust GPS time
2020-10-08 05:23:52 +08:00
Kevin Hester
b47c54b5b6
keep lora radio totally unpowered when in deep-sleep
2020-10-07 17:52:44 +08:00
Kevin Hester
c0c83ad389
If we are not supposed to share locations make sure phone doesn't either
2020-10-07 17:46:25 +08:00
Kevin Hester
23aecbdc38
Merge pull request #456 from geeksville/power
...
major cleanup of GPS code and changes to keep GPS asleep
2020-10-06 23:26:39 -07:00
Kevin Hester
eca7242a1f
fix NRF52 build
2020-10-07 14:00:59 +08:00
Kevin Hester
ef899425b8
1.1.1
2020-10-07 13:46:39 +08:00
Kevin Hester
269f90c510
Force GPS power to zero when in deep sleep
2020-10-07 13:44:17 +08:00
Kevin Hester
7a5832ab8a
SX1262: fix serious bug with detecting if we have a rx packet in progress
...
Could cause hangs on the way into sleep (and enormous power consumption).
Instead of checking for rx packet length (which only changes at completion)
check if we've received preamble bits but haven't yet received a completed
packet interrupt.
notes:
wait to sleep loop problem
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
Can not send yet, busyRx
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
vs normal run
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
radio wait to sleep, txEmpty=0
Starting low level send (id=0x53fe1dd0 Fr0xe5 To0xff, WantAck0, HopLim3 encrypted)
Completed sending (id=0x53fe1dd0 Fr0xe5 To0xff, WantAck0, HopLim3 encrypted)
2020-10-07 13:43:51 +08:00
Kevin Hester
044cc26340
#376 use power off command instead of killing gps power per manual 9.5
2020-10-07 11:44:30 +08:00
Kevin Hester
4ccd03623f
bug #376 : disable the "wake on serial" feature, because it causes
...
bogus wakes on TBEAMS because the USB->SERIAL chip pulls the RX input
to ground. This feature is no longer needed because in !isRouter
nodes we force the node to never sleep anyways when on USB power.
// this doesn't work on TBEAMs when the USB is depowered (causes bogus interrupts)
// So we disable this "wake on serial" feature - because now when a TBEAM (only) has power connected it
// never tries to go to sleep if the user is using the API
// gpio_wakeup_enable((gpio_num_t)SERIAL0_RX_GPIO, GPIO_INTR_LOW_LEVEL);
2020-10-06 14:24:08 +08:00
Kevin Hester
7854a22fbf
bug #376 - stop using pmu IRQ - we don't need it and it causes LS wakes
2020-10-06 12:45:19 +08: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
Kevin Hester
c32c97c389
TBEAM 1.1 has an extra controllable LED - blink that also
2020-10-06 08:20:06 +08:00
Kevin Hester
ef146fc0b5
bug #376 - wip time only mode now works
2020-10-06 06:27:46 +08:00
Kevin Hester
f6861a8fe2
bug #376 wip - we now minimize comms to gps to save power
2020-10-06 06:07:30 +08:00
Kevin Hester
736642455f
bug #376 wip - we now respect the new gps_operating_mode pref.
2020-10-06 05:34:56 +08:00
Kevin Hester
3c1c11e439
bug #376 wip - we now kill gps power when it is supposed to be asleep
2020-10-05 15:29:26 +08:00
Kevin Hester
b072eec4ac
wip for #376
2020-10-05 14:43:44 +08:00
Kevin Hester
ff9b49ddaa
add lora32 schematic
...
Signed-off-by: Kevin Hester <kevinh@geeksville.com >
2020-10-05 11:03:30 +08:00
Kevin Hester
b8863c8a07
Merge remote-tracking branch 'root/master' into power
2020-10-05 10:56:50 +08:00
geeksville
1907873831
gps wip for #376
2020-10-01 10:04:04 -07:00
geeksville
bacc6caf04
wip gps power fixes #376
2020-10-01 09:17:43 -07:00
geeksville
56d4250197
Merge remote-tracking branch 'root/master' into power
2020-10-01 07:51:24 -07:00
geeksville
d66cede7fc
Merge branch 'eink' into power
2020-10-01 07:51:01 -07:00
geeksville
3a638090a2
update protos for #376
2020-09-30 07:47:16 -07:00
geeksville
4342ae74fb
Merge remote-tracking branch 'root/master'
2020-09-30 07:24:38 -07:00
Kevin Hester
5a7962896d
Merge pull request #449 from geeksville/eink
...
pulling in some common GPS fixes, so I can use them on ESP32
2020-09-29 14:21:00 -07:00
Kevin Hester
cfb9a600e4
Merge branch 'master' into eink
2020-09-29 14:14:10 -07:00
geeksville
7f3217d69e
update image build script
2020-09-29 14:12:26 -07:00
geeksville
124a82888d
add power testing notes for eink
2020-09-28 17:38:36 -07:00
geeksville
fec7a6bf17
add air530 gps sleep support
2020-09-28 17:04:19 -07:00
geeksville
bc50b39a3b
put eink screen to sleep to save power
2020-09-28 16:08:52 -07:00
geeksville
158e3edbe7
eink generate full image
2020-09-28 15:21:54 -07:00
geeksville
116fe6d109
eink bootloader finished
2020-09-28 15:18:32 -07:00
geeksville
6a4ef7e1d1
eink board serial flash seems to work
2020-09-28 14:10:33 -07:00
geeksville
a0fd83428f
eink use RESET button as regular button instead
2020-09-28 13:10:27 -07:00
geeksville
e5d4fbb164
fix pins per email eink
2020-09-28 13:03:54 -07:00
Kevin Hester
46abb9ae3f
Merge pull request #441 from geeksville/eink
...
add preiminary support for TTGO eink board
2020-09-26 18:39:35 -07:00
geeksville
bf808f57fe
add air530 manuals
2020-09-26 18:25:10 -07:00
geeksville
648589ed16
translate important parts of the Air530 datasheet to english
2020-09-26 18:16:32 -07:00
geeksville
28ec0e310d
make bat voltage sensing work on eink
2020-09-26 18:13:16 -07:00
geeksville
956d9e96f2
Merge branch 'eink' of https://github.com/geeksville/Meshtastic-esp32 into eink
2020-09-26 13:49:54 -07:00
geeksville
266ba03bb7
route debug output back to the CDC-ACM device instead of JLINK
2020-09-26 13:49:22 -07:00
Kevin Hester
04c54840f4
Merge branch 'master' into eink
2020-09-26 12:58:13 -07:00
geeksville
db33200468
remove more stale eink code
2020-09-26 12:51:05 -07:00
geeksville
d7fbcf89bf
cleanup todo eink now ready to merge
2020-09-26 12:36:11 -07:00
geeksville
a8b1bc735a
remove debugging code eink gps now works
2020-09-26 12:12:50 -07:00
geeksville
ba8c640d6e
eink leds kinda work now
2020-09-26 10:53:02 -07:00
geeksville
d88d2780f4
eink display now kinda works
2020-09-26 09:40:48 -07:00
geeksville
b0bbf95b03
LORA now works on the eink board (new schematic from ttgo)
2020-09-26 07:25:32 -07:00
geeksville
7ca150bf07
personal notes about threading
2020-09-26 06:50:54 -07:00
Kevin Hester
6013fceb10
Merge pull request #438 from geeksville/master
...
fix TCP API server and get ready to end "region specific" firmware builds
2020-09-25 16:27:29 -07:00
geeksville
2996c7c8e2
Make tcp API now work. Sample usage and caveats below:
...
Sample usage:
First configure device to use @mc-hamster's new wifi stuff:
meshtastic --set wifi_ssid mylanname --set wifi_password mylanpassword
Then reboot the device (so wifi starts up).
(assuming device was assigned addr 192.168.81.45)
meshtastic --info --host 192.168.81.45
(See the usual device info you previously had to get over USB)
Caveats:
* Currently we are limiting to one active TCP connection open at once, if
you open a new session the old one is closed automatically
* There are no access controls/authentication needed to open a TCP
connection to the device
* Currently main.cpp is kinda dumb about how we should schedule work and
we rely on too many helper loop() functions. Very soon in my queue
(related to all the other cleanup) is to add a basic notion of coroutines,
so that we can get away from freertos threads and this old school arduino
loop function. Once that cleanup happens we can the a) have much lower
battery consumption (always) and b) super fast response for all operations.
2020-09-25 16:18:30 -07:00
geeksville
d1c3078698
shrink guard for channel settings lock
2020-09-25 12:52:26 -07:00
geeksville
3e5f81bf2a
move region into userpreferences, to end region specific firmwares
2020-09-25 12:52:08 -07:00
geeksville
772d045166
more eink notes
2020-09-25 10:41:27 -07:00
geeksville
1a064a4666
Merge remote-tracking branch 'root/master'
2020-09-25 09:19:58 -07:00
Kevin Hester
e81c89dcae
Merge pull request #436 from meshtastic/dev-wifi
...
Initial Merge of WiFi Soft AP, WiFi Client, HTTP Server, DNS Server, Captive Portal and Apple Captive Network Assistant (CNA)
2020-09-25 09:18:44 -07:00
geeksville
1f36139e99
remove Signal
2020-09-25 09:14:44 -07:00
geeksville
6f77244af3
eink wip notes
2020-09-25 09:14:00 -07:00
geeksville
a79aff4778
WIP - I think some pins are wrong, waiting for new schematic
2020-09-24 16:36:07 -07:00
geeksville
86d6f88787
Merge remote-tracking branch 'root/master' into eink
2020-09-24 15:13:08 -07:00
geeksville
5fbeaee0b0
eink kinda builds
2020-09-24 14:36:43 -07:00
Kevin Hester
3c4f56f3bf
Merge pull request #434 from geeksville/dev-wifi
...
Add stubs so that portduino can build with wifi. cc @mc-hamster
2020-09-24 10:51:39 -07:00
geeksville
d3c00584a2
oops - the NRF52 build rules are suppose to inherit from arduino_base.
2020-09-24 10:36:37 -07:00
geeksville
9c0a0ad220
Add stubs so that portduino can build with wifi. cc @mc-hamster
2020-09-23 17:22:17 -07:00
Kevin Hester
22d0ef36b8
Merge pull request #431 from KenVanHoeylandt/patch-1
...
Fix for broken link to device API docs
2020-09-23 17:12:52 -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
9e9c50e6d8
Add API server on port 4403 (kinda a WIP, seems to work but I haven't
...
finished the python client code)
2020-09-19 12:54:49 -07:00
geeksville
3c0429deee
Add new factory_reset preferences option clients can set
2020-09-19 11:19:42 -07:00
Kevin Hester
5d8f541e70
Merge pull request #418 from geeksville/master
...
1.1.0
2020-09-19 10:33:48 -07:00
geeksville
bd126b866c
1.1.0
2020-09-19 10:32:57 -07:00
Kevin Hester
036a1991b8
Merge pull request #403 from r51n/anz
...
Add Australia/New Zealand channels and build target
2020-09-19 07:48:17 -07:00
Kevin Hester
8d4672964c
Merge pull request #409 from geeksville/dev-wifi
...
Make wifi optional and exclude from nrf52 builds
2020-09-18 13:38:00 -07:00
geeksville
6e5e5822aa
Make wifi optional and exclude from nrf52 builds
2020-09-18 10:48:39 -07:00
Kevin Hester
5fb0bf2575
Merge branch 'master' into anz
2020-09-18 10:19:43 -07:00
Kevin Hester
9af2045dc1
Merge pull request #404 from geeksville/master
...
Merge portduino/sim beginnings into mainline
2020-09-18 10:18:33 -07:00
Kevin Hester
9624cc3798
Merge pull request #405 from mc-hamster/master
...
Initial Check-in of wifi changes into dev-wifi
2020-09-18 10:18:12 -07:00
geeksville
3541228c1f
update to my latest radiolib
2020-09-17 11:41:34 -07:00
geeksville
cc95361fdc
Merge remote-tracking branch 'root/master'
2020-09-17 11:24:42 -07:00