Jm
eee7e1de57
Update to serial plugin
2021-01-13 22:39:11 -08:00
Jm
3c60df1565
Partial work on the SerialPlugin
2021-01-13 20:22:59 -08:00
Jm Casler
a827017bd2
Merge pull request #53 from crossan007/master
...
add power statistics for #635
2021-01-11 17:54:27 -08:00
Charles Crossan
95c502c658
fix typo
2021-01-11 20:30:02 -05:00
Charles Crossan
0f573901d5
didn't need power.h
2021-01-11 20:28:09 -05:00
Charles Crossan
fdc9bf5783
add power statistics for #635
2021-01-11 20:25:02 -05:00
Jm
0c06d8db3c
maybe this will fix the linux build?
2021-01-09 19:31:16 -08:00
Jm
f02ab88393
Does this fix the linux build?
2021-01-09 19:15:10 -08:00
Jm
adb912b665
fixed in linux now?
2021-01-09 19:06:34 -08:00
Jm
0a40d920e3
Update BluetoothUtil.cpp
...
yet another linux fix?
2021-01-09 18:36:23 -08:00
Jm
9cd24a5646
is linux fixed now?
2021-01-09 18:27:03 -08:00
Jm
c82905bbdd
is linux fixed now?
2021-01-09 18:09:16 -08:00
Jm
5688c8b81e
more linux build fixes
2021-01-09 17:50:58 -08:00
Jm
52dacaed37
more fixes for linux build
2021-01-09 17:30:36 -08:00
Jm
69391e186b
Fix for breaking the linux build
2021-01-09 13:47:10 -08:00
Jm
3798f4ca5b
fix for building on NRF platform.
2021-01-08 22:59:37 -08:00
Jm
d458f673be
Web server is now treaded and moved to mesh/wifi/*
2021-01-08 22:25:44 -08:00
Jm
cfcb00b943
that's enough for tonight. web server is in its own thread, needs to be further optimized but it works enough. next is to refactor.
2021-01-08 20:43:51 -08:00
Jm
977e47d109
partial work
2021-01-08 20:06:11 -08:00
Jm Casler
cfeb40f36d
Merge pull request #41 from mc-hamster/master
...
Updated osthread branch from master
2021-01-08 19:57:19 -08:00
Kevin Hester
74bc05936d
Merge remote-tracking branch 'root/master' into dev
2021-01-08 13:16:27 +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
3636b87db0
formatting
2021-01-08 11:52:43 +08:00
Jm
0af5b225c4
intermediate
2021-01-05 23:32:33 -08:00
Jm
f7dcef39ce
intermediate work
2021-01-05 23:21:14 -08:00
Kevin Hester
243878f2a0
Merge branch 'master' into master
2021-01-06 14:39:57 +08:00
Jm Casler
35bcb5297a
Merge pull request #38 from mc-hamster/master
...
update from master to osthread
2021-01-05 19:04:15 -08:00
Jm
84e3d7c276
Test fixes for Tobiases
2021-01-05 18:57:03 -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
3ddae5faec
fix build for esp32
2021-01-03 20:12:31 +08:00
Kevin Hester
34faea6100
fix #622 - we might not have a local position yet early in the boot
2021-01-03 20:11:26 +08:00
Kevin Hester
10db80541f
Merge remote-tracking branch 'root/master' into dev
2021-01-03 10:12:08 +08:00
Kevin Hester
edd1268f5f
portduino: begin adding wifi implementation
2021-01-03 10:11:20 +08:00
Jm Casler
7d411351c0
Merge pull request #37 from meshtastic/master
...
update from head
2021-01-02 10:20:56 -08:00
Jm
df21602c90
Remove text "This interface is experimental"
2021-01-02 10:18:35 -08:00
Kevin Hester
ce4ccf3cc4
no need for lora CS control on linux, the spi controller handles it
2021-01-02 19:40:24 +08:00
Kevin Hester
a7f93de3ad
add a software based cross platform AES-CTR implementation
2021-01-02 18:20:51 +08:00
Kevin Hester
b3ba557b8b
cleanup portuino
2021-01-02 14:14:59 +08:00
Kevin Hester
42f51f33a8
Merge branch 'master' into master
2021-01-02 14:12:07 +08:00
Jm
8295b88d96
Checking in work so I don't lose it. Nothing's broke with the build.
2021-01-01 21:20:34 -08:00
Kevin Hester
745d3775b4
Merge branch 'master' into dev
2021-01-02 12:54:04 +08:00
Kevin Hester
aa176b6593
portuino now kinda works with the pinetab lora USB module.
...
still need to add an AEX256 impl for the linux port and optimize a bit
2021-01-02 12:38:18 +08:00
Kevin Hester
b0e3a7524f
assign more portduino pins
2021-01-02 11:23:30 +08:00
Kevin Hester
5ceee50bb5
bug: we've always been setting gpio 0 as an input on rf95 based devices
...
found because portduino provides full visibility to all IO operations
to the hw simulator.
2021-01-02 11:23:18 +08:00
Kevin Hester
ebdad76fb2
portduino: gpios now kinda work on linux
2021-01-02 11:06:38 +08:00
Jm
925829dc58
Partial work to migrate to OSThread model
2021-01-01 12:31:46 -08:00
Jm Casler
9587729bb0
Merge branch 'master' into master
2020-12-31 20:55:32 -08:00
Jm
d71c7b512f
Cleanup some compile time warnings that were driving me crazy.
2020-12-31 20:44:53 -08:00
Jm
349701ac14
Display AP connection usage only when in AP mode
2020-12-31 20:17:18 -08:00
Kevin Hester
ca6293eefe
Merge branch 'master' into master
2020-12-31 14:05:56 +08:00
Kevin Hester
d289e8a86f
Merge remote-tracking branch 'root/master' into dev
2020-12-31 14:02:47 +08:00
Wei Fang
279c89dca3
Shall upgrade RTC currentQuality if higher q available
2020-12-30 21:46:43 -08:00
wfang2002
a7a52e08d1
Merge branch 'master' into master
2020-12-30 21:26:51 -08:00
Wei Fang
f6336855d0
Fix GPS turned on then off immediately every 2 minutes
2020-12-30 21:11:03 -08:00
Jm Casler
7b80b95381
Merge pull request #36 from mc-hamster/upload
...
Fix for meshtastic#606 and meshtastic#597
2020-12-30 18:19:52 -08:00
Jm
2867f8fd53
Fix for #606 and #597
...
Upload interface randomly crashes #606
watchdog timer exception while building https certificate #597
2020-12-30 18:10:35 -08:00
Kevin Hester
cdf416cb73
partial fix for #608 - when a new TCP API connection arrives, close old one completely
2020-12-31 10:02:18 +08:00
Jm
7716d62018
Remove old comment
2020-12-30 15:16:04 -08:00
Jm Casler
d5f76b16b9
write readLength to debug console
2020-12-30 14:52:39 -08:00
Kevin Hester
6e31ba30c7
move generated protobuf c code to own directory
2020-12-30 12:34:22 +08:00
Kevin Hester
8fe1c518d9
Merge branch 'mqtt' into dev
...
# Conflicts:
# proto
2020-12-30 12:25:00 +08:00
Kevin Hester
d8a15d6324
Merge branch 'master' into dev
2020-12-30 10:08:01 +08:00
oztug
3ca42b8f51
Merge remote-tracking branch 'upstream/master'
2020-12-30 01:24:13 +03:00
oztug
5595fb38c1
Genieblocks Lora support
2020-12-29 18:08:11 +03:00
Jm
997ed283bf
#601 - tbeam draws too much power from USB port
2020-12-28 01:12:42 -08:00
Kevin Hester
9128f7d4b3
turn on battery pin for lora_v2 per @msws
2020-12-28 15:00:34 +08:00
Kevin Hester
adc71e7ed2
mqtt doc progress
2020-12-28 14:42:24 +08:00
Kevin Hester
4777e53c23
more mqtt design work
2020-12-28 13:36:11 +08:00
Kevin Hester
d6912cfd8e
mqtt design progress
2020-12-28 13:22:10 +08:00
Jm
621306e610
Add IP address and rssi to /json/report
2020-12-27 15:03:32 -08:00
Jm Casler
0e507e1923
Merge branch 'master' into master
2020-12-27 12:39:36 -08:00
Jm
15a0b3694d
Update to #588 - Change "hour" to "period"
2020-12-27 10:50:52 -08:00
Jm Casler
58859848a3
Add RX and RX_ALL analytics for #588
2020-12-27 09:29:48 -08:00
Kevin Hester
c972197643
fix #598 don't corrupt the heap when a TCP connection drops
2020-12-27 16:58:32 +08:00
Jm
3c69beef94
Update to the airtime calculator. I didn't 0 out the RX log.
2020-12-26 23:37:04 -08:00
Jm Casler
e55c5e10bc
Merge branch 'master' into master
2020-12-26 22:43:56 -08:00
Jm
e321528a6d
#588 - Calculate TX air time
2020-12-26 22:39:43 -08:00
Kevin Hester
186a52172c
fix #577 don't make invalid radio settings reboot the board
...
instead raise a critical fault (note though: this is still not ideal
because the radio will be in an undefined state until valid settings
are used)
2020-12-27 13:09:20 +08:00
Kevin Hester
21570fc24f
fix #540 use gps to fix rtc clock drift every 12 hrs
2020-12-27 12:54:44 +08:00
Kevin Hester
0c74303e9d
move criticalerror defs into .proto for cross platform support
2020-12-27 11:22:08 +08:00
Kevin Hester
8d04410f45
improve error descriptions
2020-12-26 13:55:59 +08:00
Kevin Hester
4a653ab054
fix nrf52 build
2020-12-26 13:47:02 +08:00
Kevin Hester
651bd71454
show critical faults on the screen
2020-12-26 13:36:21 +08:00
Kevin Hester
27c16ba185
add ppr1 notes
2020-12-26 12:53:20 +08:00
Jm Casler
ded2b86e55
Calculate TX air time duty cycles #588 -- UNTESTED
2020-12-25 16:10:38 -08:00
Jm Casler
34e6dbec81
Merge pull request #33 from meshtastic/master
...
updated my repo
2020-12-25 09:44:27 -08:00
Kevin Hester
3c2aac87f7
better fix for screen messages in log
2020-12-25 15:39:42 +08:00
Kevin Hester
f45451ca74
missing line term
2020-12-25 15:31:17 +08:00
Kevin Hester
88fa24ce79
Merge branch 'dev' of https://github.com/geeksville/Meshtastic-esp32 into dev
2020-12-25 15:19:25 +08:00
Kevin Hester
59577b9d79
add real formatted debug logging with timestamps
2020-12-25 15:17:56 +08:00
Kevin Hester
c349ad62e7
we set randomSeed at boot so I think probably not good to do again
...
cool @mc-hamster?
2020-12-25 14:53:33 +08:00
Jm
d5b57840d9
checking in a little of the airtime so i can switch to the laptop.
2020-12-24 22:12:59 -08:00
Jm Casler
8080bc608b
Merge pull request #32 from meshtastic/master
...
Update from upstream.
2020-12-24 19:20:36 -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
Kevin Hester
031c58e21c
remove logspam that was busting serial api
2020-12-23 17:12:48 +08:00
Jm
35b1cfcc42
#554 Keep radio turned on if we're contacted over http(s) while on battery power.
2020-12-22 23:15:09 -08:00
Jm
bacc1b1dad
#581 - Quiet a compile time warning I introduced.
2020-12-22 22:37:34 -08:00
Jm
877dc824a9
#407 - Fix for wifi does not come back up after power down
2020-12-22 22:26:08 -08:00
Kevin Hester
2253ea1b41
Merge branch 'master' into master
2020-12-23 09:58:36 +08:00
Charles Crossan
8e0c224813
remove extra whitespace
2020-12-22 17:47:24 -05:00
Charles Crossan
5a96dc0083
move json delete endpoint
2020-12-22 17:44:40 -05:00
Jm Casler
181db06b0c
Merge branch 'master' into master
2020-12-21 19:59:40 -08:00
Charles Crossan
47ccfb6106
add HTTP/Delete method handler for SPIFFS
2020-12-21 21:10:53 -05:00
Jm Casler
5f97740ab7
Fix for #535 -- Heltec board stays asleep ...
2020-12-21 17:42:00 -08:00
Charles Crossan
5c70f36aa5
add mime types for ico and svg
2020-12-21 17:42:55 -05:00
Jm Casler
ef0891ae5d
Fix for #576 - The browser was seeing the other files on the filesystem.
2020-12-20 20:09:17 -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
412916ba7c
fix printf format for 64 bits
2020-12-21 11:13:30 +08:00
Charles Crossan
7f59e76c72
fix formatting
2020-12-20 21:47:46 -05:00
Charles Crossan
dcb9125b32
remove unused parser
2020-12-20 21:47:23 -05:00
Charles Crossan
2743b9d310
use POST URL parameters; fix response status
2020-12-20 21:44:51 -05:00
Charles Crossan
2f779bfd37
improve blink; LED or SCREEN as POST Parameter
2020-12-20 18:24:48 -05:00
Charles Crossan
db2193b526
implement screen blink
2020-12-20 17:45:45 -05:00
Charles Crossan
7205e9a5b4
adjust LED timings; switch to HTTP/POST
2020-12-20 14:50:13 -05:00
Jm Casler
1ca83509dd
Blink the LED for one second on get of /json/blink
2020-12-20 11:32:49 -08:00
Jm Casler
fae9ea8b3b
Update for #571 (i forgot to set the mime type)
2020-12-19 12:18:08 -08:00
Jm Casler
b96ee7be72
New feature #571 - Report contents of spiffs in a json data structure.
2020-12-19 12:09:48 -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
5bdc7216b3
begin support for multiple simultanous channels
2020-12-17 10:32:19 +08:00
Kevin Hester
be38a58a62
finish channel name cleanup
2020-12-15 16:13:16 +08:00
Kevin Hester
5930f8270d
Merge remote-tracking branch 'root/master' into dev
2020-12-15 16:10:35 +08:00
Kevin Hester
c9f2318e78
Use simpler names for standard channels
2020-12-15 13:14:36 +08:00
Kevin Hester
5cdc2f5142
Make ChannelSettings SUPER short for common channels
2020-12-14 21:09:29 +08:00
Jm Casler
474e0e7158
Fixed bad copy/paste of http end points being used as default.
2020-12-13 14:59:56 -08:00
Jm Casler
6975848f45
#563 Don't display the wifi password when we are a client.
2020-12-13 11:01:01 -08:00
Kevin Hester
0cdc1fc959
make gpiowatch work correctly
2020-12-13 16:11:38 +08:00
Kevin Hester
e80c79edbe
clean up debug msgs
2020-12-13 15:59:26 +08:00
Jm Casler
86952c5456
Fixed #541 - Work around to bug in espressif softap event handler
2020-12-12 22:37:07 -08:00
Jm Casler
46781357df
remove hard coded network
2020-12-12 21:43:01 -08:00
Jm Casler
bb9abf2dca
#560 Forgot to switch back to application/json
2020-12-12 21:42:32 -08:00
Jm Casler
5249608dce
#561 Add escapes to strings
2020-12-12 21:35:21 -08:00
Kevin Hester
ee8f4de5ab
make plugin reply handling simpler
2020-12-13 12:57:37 +08:00
Jm Casler
17297db2b1
#561 - Add a scan for SSID
2020-12-12 20:50:41 -08:00
Kevin Hester
138cebbf03
turn nrf52 ble back on
2020-12-13 11:53:32 +08:00
Jm Casler
9f9573d2eb
#560 - Add note that we're in admin mode on network screen
2020-12-12 19:18:51 -08:00
Jm Casler
e10b82c118
#560 Partial changes
2020-12-12 19:09:58 -08:00
Jm Casler
d82aaaa806
#560 - Partial work for Charles.
2020-12-12 18:33:52 -08:00
Jm Casler
c0d94ae4ab
Update main.cpp
2020-12-12 14:04:52 -08:00
Jm Casler
02ce12607c
#560 - Force SoftAP if the user button is held down during startup.
...
#560 - Force SoftAP if the user button is held down during startup.
2020-12-12 13:54:14 -08:00
Jm Casler
26c9585c9d
#557 - Switch from GET to POST
2020-12-12 12:38:17 -08:00
Jm Casler
696255c1f7
#557 - Endpoint to restart device over http(s)
2020-12-12 12:36:16 -08:00
Jm Casler
5852caa61c
Fix bug #551 - Turn the led off before shutting down.
...
Fix bug #551 - Turn the led off before shutting down.
2020-12-11 23:03:32 -08:00
Jm Casler
e82752c777
#552 - Updated the 404 handler for / to refer to instructions for how to fix the problem.
...
#552 - Updated the 404 handler for / to refer to instructions for how to fix the problem.
2020-12-11 22:54:48 -08:00
Kevin Hester
1e5d0b25ad
Add doc note about threading and use OSThread to make GPIO watching work
...
Thanks to @mc-hamster for the idea
2020-12-11 18:29:32 +08:00
Kevin Hester
b9f1ce70cb
begin plugin-api tutorial
2020-12-11 09:11:53 +08:00
Kevin Hester
df8b3ebbc7
always pull min_app_version from appload
2020-12-10 11:32:51 +08:00
Kevin Hester
b1c30f0650
Use a custom platformio py file to always set build version
2020-12-10 11:28:15 +08:00
Kevin Hester
a0076eb394
better position debug output
2020-12-09 13:42:36 +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
3753fef298
add debug_log_enabled
2020-12-09 11:56:41 +08:00
Kevin Hester
a4bb1937c1
Merge remote-tracking branch 'root/master' into udp
2020-12-09 11:21:59 +08:00
Kevin Hester
4bd22dd5db
ignore our own msgs for gpio ctrl
2020-12-08 08:16:58 +08:00
Kevin Hester
79a24c200e
use autogened protobuf init code
2020-12-07 10:27:31 +08:00
Kevin Hester
90060e84c0
WIP on GPIO example
2020-12-07 10:18:11 +08:00
Kevin Hester
8f5a1f19d3
add remote gpio control as an example plugin
...
https://github.com/meshtastic/Meshtastic-device/issues/182
2020-12-06 18:33:42 +08:00
Kevin Hester
3e0dc44210
move want_replies into new plugin system
2020-12-05 11:15:06 +08:00
Kevin Hester
91b99bd584
require apps to be 1.1.20 or later
2020-12-05 10:27:04 +08:00
Kevin Hester
b6e21bcbcd
add SinglePortPlugin to simpilify api
2020-12-05 10:14:15 +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
9b24cc6dd6
update protobufs
2020-12-04 18:54:00 +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
5138aff4b2
fix static initializer bug with mesh plugins
2020-11-28 13:25:03 +08:00
Kevin Hester
0b0d293a66
Move text message handling into the new plugin system
2020-11-28 12:10:19 +08:00
Kevin Hester
ddab4a0235
remove support for 8bit nodenums
2020-11-28 09:56:21 +08:00
Kevin Hester
f5e42b2533
update protos
2020-11-28 09:17:20 +08:00
Kevin Hester
9e9913101f
Merge pull request #527 from geeksville/spiffs-bug496
...
Spiffs bug496
2020-11-27 17:11:34 -08:00
Kevin Hester
c427c8abf9
oops - fix my crummy merge
2020-11-28 08:55:56 +08:00
Kevin Hester
cc36e3a9a6
Merge branch 'dev-https' into spiffs-bug496
2020-11-27 16:15:14 -08:00
Jm Casler
7d4c77abfd
Fix for #533 - deinitWifi() will de initialize the radio even if it was never initialized
2020-11-27 14:49:44 -08:00
Jm Casler
817c99e09c
trying to fix it again
2020-11-22 19:12:11 -08:00
Jm Casler
9801a62d2d
Fix for CI on other boards.
2020-11-22 19:01:48 -08:00
Jm Casler
2bd40b7053
Add support for the power button #528
2020-11-22 18:50:14 -08:00
Jm Casler
3ab9d2a50e
Removing stuff I accidently checked in for the duplexer
2020-11-22 16:24:22 -08:00
Jm Casler
f60922af34
Accidently checked in my rf deduplexer
2020-11-22 15:42:36 -08:00
Kevin Hester
d7d13d637c
clean up filesystem goo, add spiffs to install scripts, fix #496
...
@mc-hamster seems to work pretty good for me, so I'll send a PR to you
for the dev-http branch.
I'll push out an android alpha build later today (once the build is
complete). Once this new device load is out in the field _future_
device builds will support updating spiffs from android. (i.e. device
loads older than 1.1.9 must be updated to 1.1.9 or later before spiffs
support is implemented on the device side - so some users might need to
update twice before the new spiffs contents will appear on their device)
2020-11-19 09:25:02 +08:00
Jm Casler
a02979d564
Merge branch 'externalAmp' into master
2020-11-16 19:54:06 -08:00
Kevin Hester
f2698bbf91
bug #496 - allow update clients to program SPIFFS region
...
also have build system properly build spiffs release builds
2020-11-16 08:56:32 +08:00
Kevin Hester
d045139945
return ble errors for invalid values
2020-11-16 07:57:32 +08:00
Jm Casler
71d1d4d8fa
Merge pull request #521 from meshtastic/master
...
Update dev-https from master
2020-11-13 21:35:20 -08:00
Charles Crossan
49a19e26d5
Only issue ContentType header once; correctly.
2020-11-13 22:07:52 -05:00
Kevin Hester
ccc1600bc9
remove stale fixme
2020-11-14 10:19:55 +08:00
Kevin Hester
1839f8f7ca
fix #513 scale retransmission times based on true packet time on wire
2020-11-14 10:07:25 +08:00
Kevin Hester
f346b4f0f2
Merge branch 'eink' into bug513
2020-11-13 09:41:23 +08:00
Kevin Hester
d407db5ee1
add more deep sleep support for nrf52 boards
2020-11-13 09:33:59 +08:00
Kevin Hester
93afc71e2e
Show "sleeping" on eink while in deep sleep
2020-11-13 07:49:01 +08:00
Kevin Hester
67e657f10f
always print debug output to both serial and segger debug port
...
cc @mc-hamster, this makes USE_SEGGER optional on nrf52 targets
2020-11-13 07:48:25 +08:00
Kevin Hester
68937d52fe
bug #503 wip
2020-11-12 17:49:04 +08:00
Jm Casler
e33657eb75
Toggle GPIO2 to HIGH when transmitting a packet out the LORA radio.
2020-11-09 19:47:31 -08:00
Kevin Hester
2fd5ce00ce
fix build for esp32 targets
2020-11-07 15:09:05 +08:00
Jm Casler
4204c494ae
fix poorly merged file
2020-11-06 22:41:26 -08:00
Jm Casler
84beae1001
Merge branch 'dev-https' into master
2020-11-06 22:29:03 -08:00
Jm Casler
951b4293c4
Set web cookie and web text editor.
2020-11-06 22:21:20 -08:00
Kevin Hester
ff4b03b8c1
Fix #509 was causing failure on non GPS equipped boards
2020-11-07 09:15:28 +08:00
Kevin Hester
c5903a790b
update for portduino
2020-10-31 15:50:39 +08:00
Kevin Hester
bbc36f7b6f
switch to my new SD 7.2.0 S113 based bootloader
2020-10-31 12:22:20 +08:00
Jm Casler
2f9ef463d8
Merge pull request #507 from meshtastic/master
...
update dev-https from master
2020-10-30 21:04:16 -07:00
Jm Casler
bea00569fd
Merge pull request #22 from meshtastic/master
...
update my fork from master
2020-10-30 21:03:40 -07:00
Kevin Hester
d7368d5a51
begin deep sleep support for nrf52
2020-10-30 17:05:32 +08:00
Kevin Hester
47bbde3c60
fix #505 allow forced standby mode to not assert fail
2020-10-29 16:13:44 +08:00
Kevin Hester
04942a3570
fix #505 - device can reboot due to race condition in sending
2020-10-29 15:27:05 +08:00
Kevin Hester
6b442784f3
Merge remote-tracking branch 'root/master' into dev
2020-10-29 13:26:49 +08:00
Kevin Hester
cfcb62bd18
Make region changes take effect immedately
2020-10-29 13:26:36 +08:00
Kevin Hester
f6ec129288
Merge branch 'master' into master
2020-10-28 18:38:27 -07:00
Kevin Hester
4ad562b9f4
The new 7.2.0 soft device works on nrf52833
2020-10-28 13:01:50 +08:00
Jm Casler
44aafd5b9c
Update to basic.js and add mime types.
2020-10-26 18:17:33 -07:00
Kevin Hester
7597d5b3fd
PPR1 - GPS serial now works
2020-10-25 17:07:54 +08:00
Kevin Hester
1a8891c33d
ppr1: add crude version of charge controller driver
2020-10-24 18:40:47 +08:00
Kevin Hester
f0eeaf01d4
ppr1 lcd is 'good enough' for now
2020-10-24 09:49:14 +08:00
Kevin Hester
d4e95e95a6
fix long-press handling on alternate button
2020-10-24 08:44:54 +08:00
Kevin Hester
0767c8be03
PPR1 fix screen mirroring on LCD
2020-10-24 08:16:15 +08:00
Kevin Hester
18bbf3523e
remove unused display code
2020-10-23 22:18:22 +08:00
Kevin Hester
b081a6da56
ppr1 st7567 lcd kinda works now
2020-10-23 18:00:43 +08:00
Kevin Hester
a102e49fdb
PPR1 WIP - hacky code to make LCD talk on I2C. Works!
2020-10-23 17:10:48 +08:00
Kevin Hester
c078c08c3e
Merge branch 'dev' into ppr1
2020-10-23 16:53:38 +08:00
Jm Casler
5981831bc0
Fixed typo. Updated js library. Update root file handler.
...
Typo fixed. I placed the latest javascript library files into the static folder. Updated the root file handler to be able to serve both compressed and uncompressed files.
2020-10-22 18:43:54 -07:00
Jm Casler
00eed206cb
Update typo, import from js library
2020-10-22 18:26:43 -07:00
Jm Casler
13ef48094d
Merge pull request #21 from meshtastic/dev-https
...
Dev https to my fork
2020-10-21 21:20:55 -07:00
Jm Casler
baa3d1dae4
Support for the SPIFFS
2020-10-21 20:57:44 -07:00
Kevin Hester
14c4022c18
1.1.6 (and screen layout tweaks)
2020-10-21 19:18:03 +08:00
Kevin Hester
a5d7bacdbf
Show current region on the boot screen
2020-10-21 17:27:13 +08:00
Kevin Hester
0b3c25f6d9
use correct code for "talking to phone" fixes OTA update while a router
2020-10-21 16:50:09 +08:00
Kevin Hester
430186ec53
Merge remote-tracking branch 'root/master' into dev
2020-10-21 10:44:56 +08:00
Jm Casler
e9279919ae
Remove uncompressed style.css. Combine SSID/PWD on same line and toggle between the two every 10 seconds.
2020-10-19 16:58:11 -07:00
Jm Casler
ff20b29c3c
update case of meshhttpStatic.h
2020-10-18 21:44:55 -07:00
Jm Casler
d4df3f8a7e
mDNS server http://meshtastic.local
2020-10-18 21:39:02 -07:00
Jm Casler
a16c3af30a
Clarified debug message regardding the Web Server startup status.
2020-10-18 18:44:08 -07:00
Jm Casler
3061860dab
Update sleep timer for the CPU clock
2020-10-18 18:30:19 -07:00
Jm Casler
a371592ad9
Added instructions for David
2020-10-18 18:07:44 -07:00
Jm Casler
df2733a3b5
readded nodeScriptScriptsJS. it got lost in the transition to the new webserver
2020-10-17 20:28:19 -07:00
Kevin Hester
8fd3cb1aac
add crude charging detection for 'dumb' voltage based battery sensors
2020-10-18 09:44:29 +08:00
Kevin Hester
485c476f17
cleaner battery debug messages
2020-10-18 09:32:12 +08:00
Jm Casler
7dd4ce32d2
Moved style.css into meshhttpStatic.h
...
Also created /data to store static files before they go into meshhttpStatic.h
2020-10-17 17:33:29 -07:00
Jm Casler
7f12af73d4
Updated to be host and protocol agnostic
2020-10-17 12:00:21 -07:00
Jm Casler
63113d57b3
Initial integration of meshtastic.js and sample code
2020-10-17 11:30:59 -07:00
Jm Casler
2901f773a4
Some cleanup and implement the X-Protobuf-Schema header
2020-10-16 23:33:50 -07:00
Kevin Hester
a7c54e4ad7
Merge remote-tracking branch 'root/master' into dev
2020-10-17 13:41:51 +08:00
Kevin Hester
e1f0e11cb8
ppr1 WIP DO NOT MERGE - will break other clients
2020-10-17 13:15:12 +08:00
Kevin Hester
c73ee98739
Merge branch 'master' into ppr1
2020-10-17 11:00:28 +08:00
Jm Casler
5b4472ab56
fix case of HttpAPI class
2020-10-16 19:38:59 -07:00
Jm Casler
f4d2b10840
Merge pull request #483 from mc-hamster/master
...
Update for interface with the JS client.
2020-10-16 19:18:31 -07:00
Jm Casler
0d9481b6ea
add allow-headers
2020-10-16 18:00:28 -07:00
Jm Casler
8f0105ccd9
don't send content-type when options is set
2020-10-16 17:46:22 -07:00
Kevin Hester
05ca3c3d56
Update to work with my font size change
2020-10-17 08:44:04 +08:00
Jm Casler
ba549d8fcd
Return OPTIONS when requested for toradio
2020-10-16 17:41:08 -07:00
Jm Casler
b9df2c00fa
fromradio all option
...
requesting fromradio will return one protobuf
4:56
requesting fromradio?all=true will give you all of them.
2020-10-16 17:07:35 -07:00
Kevin Hester
d9dcb33576
Merge branch 'master' into dev-https
2020-10-16 17:05:06 -07:00
Jm Casler
f698231be7
Merge branch 'master' of https://github.com/mc-hamster/Meshtastic-device
2020-10-16 16:36:55 -07:00
Jm Casler
8414f4a6a3
Added access-control-allow headers
2020-10-16 16:36:52 -07:00
Kevin Hester
8505020be5
Merge branch 'dev' into ppr1
2020-10-16 17:03:30 +08:00
Kevin Hester
f3b93d55fb
oops fix for esp32
2020-10-16 17:03:04 +08:00
Kevin Hester
9e0731a956
Merge branch 'dev' into ppr1
2020-10-16 17:01:42 +08:00
Kevin Hester
2b373048c6
fix battery voltage sensing on NRF52 boards
2020-10-16 17:00:27 +08:00
Kevin Hester
22f23bb07d
Merge branch 'dev' into ppr1
...
# Conflicts:
# src/gps/NMEAGPS.cpp
2020-10-16 15:59:55 +08:00
Kevin Hester
68ddb712f5
properly keep nrf52s from sleeping
2020-10-16 14:00:56 +08:00
Kevin Hester
2fb5cd8c1c
work with more NMEA gps sentences
2020-10-16 14:00:17 +08:00
Kevin Hester
79aea8231f
make screen positions less hardwired wrt font size
2020-10-16 11:22:07 +08:00
Kevin Hester
b0837c10c6
eink display improvements
2020-10-16 10:53:55 +08:00
Jm Casler
df2976dad0
Merge pull request #18 from meshtastic/dev-https
...
From Dev https to mc-hamster master
2020-10-15 19:40:49 -07:00
Jm Casler
4ccbe6ff71
Merge pull request #480 from meshtastic/master
...
Updating dev-https from master
2020-10-15 19:40:01 -07:00
Jm Casler
038ddb887f
Be a little smarter with setting the CPU frequency
...
in the event we have HTTPS and HTTP requests within close periods, let the speed set by the HTTPS request take presidence.
2020-10-15 19:28:20 -07:00
Kevin Hester
9134faaed1
turn off segger debug in ttgo eink build
2020-10-15 16:11:40 +08:00
Kevin Hester
649a120fe0
make eink screen look nicer
2020-10-15 15:56:38 +08:00
Kevin Hester
4db0c4a563
Make screen code resolution agnostic. Look better on big TFT/eink screens
2020-10-15 15:12:27 +08:00
Kevin Hester
5f2f3c94b9
PPR1 and allow boards to set lower or higher sx1262 power limits
2020-10-15 13:47:10 +08:00
Jm Casler
3b2f5fa5e3
fromRadio now returns all the vailable protobufs. a request to http sets the cpu clock to 160mhz, https to 240mhz then will clock it back down after 2 minutes.
2020-10-14 20:24:19 -07:00
Jm Casler
97adb598b6
toRadio is functional
2020-10-14 16:17:12 -07:00
Kevin Hester
152ebf0dff
Merge branch 'dev' into ppr1
2020-10-14 10:24:39 +08:00
Kevin Hester
1ebd7b0c3e
make lightsleep default time 5 minutes, with 1 minute in for BLE syncing
2020-10-14 08:53:12 +08:00
Kevin Hester
5457541244
fix #477 : sleep behavior was broken in app due to device bug since 1.1.1
...
+ // NOTE: The phone app needs to know the ls_secs value so it can properly expect sleep behavior.
+ // So even if we internally use 0 to represent 'use default' we still need to send the value we are
+ // using to the app (so that even old phone apps work with new device loads).
2020-10-14 08:45:29 +08:00
Kevin Hester
ca77d48b20
corvus2 gps still doesn't work WIP
2020-10-13 14:43:28 +08:00
Kevin Hester
965c2bda8d
corvus2 board builds
2020-10-13 13:59:06 +08:00
Jm Casler
02e3438d5e
Added a favicon.ico
2020-10-11 22:13:14 -07:00
Jm Casler
02b1ece6ac
Update meshhttp.cpp
2020-10-11 21:30:14 -07: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
a9de8b9bb3
oops - only read axp on boards that have it
2020-10-12 09:33:15 +08: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
Kevin Hester
a8e4bbbe65
fix my breaking of button press behavior
2020-10-12 08:25:17 +08:00
Kevin Hester
9a414d9c77
fix my breakage of screen waking
2020-10-12 08:13:32 +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
d39cc3d57b
Checking if ESP32 for the frequency display
2020-10-10 22:06:56 -07:00
Jm Casler
b17a8d7a6a
Removed powerExit -- it wasn't working
2020-10-10 21:54:27 -07:00
Kevin Hester
999b292717
fixes for the posix port
2020-10-11 09:18:47 +08:00
Jm Casler
c16acb904e
Merge branch 'master' of https://github.com/mc-hamster/Meshtastic-device
2020-10-10 17:59:46 -07:00
Jm Casler
5b777219be
Enable the RX LNA #466
...
Enabling the RX LNA
2020-10-10 17:59:32 -07:00
Jm Casler
32ea11d2af
Merge pull request #14 from meshtastic/master
...
Update from head
2020-10-10 17:23:13 -07:00
Kevin Hester
0c8e0efed2
new threading finished- saves about 10mA for the high activity states
2020-10-11 08:12:53 +08: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
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
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
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
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
eca7242a1f
fix NRF52 build
2020-10-07 14:00:59 +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
BeardyWalrus
b4b1b24c84
always need double press, even if you dont have a screen
2020-10-05 20:13:04 -04: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
BeardyWalrus
4d7cd0a09d
conditional on needing ESP32 bluetooth header loaded
2020-10-03 17:23:36 -04:00
BeardyWalrus
b38bcffafb
Merge branch 'master' of https://github.com/BeardyWalrus/Meshtastic-device
2020-10-03 17:02:19 -04:00
BeardyWalrus
530432411e
revised fix for #357
...
Now supports default password for devices with no display, and override with double press of user button
2020-10-03 17:02:17 -04:00
geeksville
bacc6caf04
wip gps power fixes #376
2020-10-01 09:17:43 -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
BeardyWalrus
5150d15997
Merge branch 'master' into master
2020-09-29 19:57:01 -04:00
BeardyWalrus
7d6dbcfa3f
Update BluetoothUtil.cpp
...
fix for #357
use presence of ssd1306 display to set display functionality for bluetooth security.
2020-09-29 19:51:39 -04:00
Kevin Hester
cfb9a600e4
Merge branch 'master' into eink
2020-09-29 14:14:10 -07:00
Jm Casler
423cbc2c6d
Added frequency information to debug output ( #447 ) and cleanup of screen.cpp and meshwifi.cpp
2020-09-29 00:59: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
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
Jm Casler
848760e5bf
Set device hostname with hardwire ID #445
2020-09-27 00:55:41 -07:00
Jm Casler
5ebac0cd54
Merge branch 'master' of https://github.com/mc-hamster/Meshtastic-device
2020-09-26 23:38:22 -07:00
Jm Casler
9b4079317b
Give more details of why wifi is disconnected
2020-09-26 23:37:58 -07:00
Jm Casler
fd62edbcab
Merge branch 'master' into master
2020-09-26 18:44:53 -07:00
Jm Casler
b5361ef89f
Display gps altitude on display #443
2020-09-26 18:37:51 -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