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
Kevin Hester
04c54840f4
Merge branch 'master' into eink
2020-09-26 12:58:13 -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
Jm Casler
6f444ed4b5
Accidently left #include "nimble/BluetoothUtil.h" in screen
2020-09-26 00:03:23 -07:00
Jm Casler
28119bf1bf
Fix for #439 and some cleanup
2020-09-26 00:01:02 -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
1a064a4666
Merge remote-tracking branch 'root/master'
2020-09-25 09:19:58 -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
Jm Casler
fed4dfd410
Merge pull request #435 from mc-hamster/master
...
Update dev-wifi from my fork
2020-09-24 11:15:47 -07:00
Jm Casler
0d3b8bdb22
Note not to file bugs
2020-09-24 11:07:30 -07:00
Jm Casler
ce7fa65595
David's latest changes to the HTML UI
2020-09-23 19:04:12 -07:00
geeksville
9c0a0ad220
Add stubs so that portduino can build with wifi. cc @mc-hamster
2020-09-23 17:22:17 -07:00
Jm Casler
b39f6c96bd
Merge remote-tracking branch 'origin/dev-wifi'
2020-09-22 22:00:07 -07:00
Jm Casler
10b24c0269
Initial check-in of David's UI
2020-09-22 21:01:31 -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
comgram
55cb0c52ee
Add Korean Frequency
2020-09-21 16:10:20 +09:00
Jm Casler
d890068acb
dev-wifi: Detailed error reporting of reason why WiFi didn't connect #424
2020-09-19 21:58:21 -07:00
Jm Casler
5cbe06c2b0
Merge pull request #419 from geeksville/dev-wifi
...
Add API server on port 4403 (kinda a WIP, seems to work but I haven't
2020-09-19 17:25:24 -07:00
Jm Casler
377f0bda5d
Add more detail on the connection status on the screen #422
2020-09-19 17:15:03 -07:00
Jm Casler
464a42258f
Fix for "Wifi in station mode sometimes enters loops of repeatedly joining... #420 "
...
Fix for Wifi in station mode sometimes enters loops of repeatedly joining... #420
2020-09-19 16:38:59 -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
Jm Casler
945f726b65
Merge branch 'master' of https://github.com/mc-hamster/Meshtastic-device
2020-09-19 12:50:46 -07:00
Jm Casler
7c44daf8f4
pushing my chances to personal branch so i can get the changes from the laptop
2020-09-19 12:50:43 -07:00
Jm Casler
c57a9a8613
Update from my laptop
2020-09-19 11:24:55 -07:00
geeksville
3c0429deee
Add new factory_reset preferences option clients can set
2020-09-19 11:19:42 -07:00
Jm Casler
6e3b22c624
Stub for a handler of the root (/) of the web server with a html table and form for chat
2020-09-18 20:42:35 -07:00
Jm Casler
82fbedbf41
Auto formatting of meshwifi.cpp
2020-09-18 18:51:42 -07:00
Jm Casler
65fc1cf4a6
Moved handleDNSResponse into handleWebResponse and used the autoformatter
2020-09-18 18:29:16 -07:00
Jm Casler
4d72afebe6
Soft AP and basic captive portal done.
2020-09-18 18:16:58 -07:00
Jm Casler
362d8cb831
Merge branch 'master' into dev-wifi
2020-09-18 18:02:56 -07:00
Jm Casler
b203c95dd1
changes for soft ap + captive portal
2020-09-18 15:33:03 -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
geeksville
d3e28e3e2c
Merge branch 'dev'
2020-09-17 11:20:41 -07:00
r51n
91305c2c84
add AU/NZ channel definitions
2020-09-17 12:02:38 +00:00
Jm Casler
48dd6d388d
Merge branch 'master' of https://github.com/mc-hamster/Meshtastic-device
2020-09-16 23:16:19 -07:00
Jm Casler
64710a6a04
renamed reconnectWiFi to initWifi
2020-09-16 23:16:11 -07:00
Jm Casler
c83ff03d66
Merge pull request #4 from meshtastic/master
...
Updating form head
2020-09-16 22:51:19 -07:00
Jm Casler
73b47a78aa
Clean up and added comments about the esp32 sdk bug
2020-09-16 22:31:07 -07:00
Jm Casler
493b25f23e
Final checkin of WiFi and basic HTTP server
2020-09-16 20:15:00 -07:00
geeksville
fc20f658e6
Fix #362 by @a-f-G-U-C - I was mispelling NMEA ;-)
2020-09-16 09:22:03 -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
3e64d8439d
Merge branch 'master' into dev
2020-09-15 21:13:24 -07:00
geeksville
435c955acd
make hash prototype a bit stricter
2020-09-15 21:05:57 -07:00
Jm Casler
c656a95a84
Merge pull request #3 from meshtastic/master
...
Update from meshtastic main
2020-09-15 20:34:30 -07:00
Jm Casler
27ad8472c1
remove ssid info from configuration.h
2020-09-15 20:24:58 -07:00
Jm Casler
3fcd4a61aa
commenting out the strcpy to manually set the wifi info.
2020-09-15 20:24:03 -07:00
geeksville
c6d93d1a28
fix #346 limit tx power in japan
2020-09-15 18:54:50 -07:00
geeksville
7d4058f49d
let users set 20 dBm if they wish
2020-09-15 18:00:21 -07:00
geeksville
31fc8fafec
make default power level radio chipset specific
2020-09-15 17:55:33 -07:00
Jm Casler
066d9d48a4
New method to deinit the wifi stack.
2020-09-14 20:27:49 -07:00
Jm Casler
f5c939fb10
Fix to turn WiFi back on after the bluetooth radio is reenabled.
2020-09-13 22:22:49 -07:00
Jm Casler
e508306395
Refactoring to break out HTTP from WiFi
2020-09-13 16:58:36 -07:00
Jm Casler
f129b458ad
Initial Checkin for WiFi and HTTP Server Framework
2020-09-12 21:43:41 -07:00
Jm Casler
b6f71ca1db
Update screen.cpp for for crash when gps gets lock
...
Update screen.cpp for for crash when gps gets a lock
2020-09-11 22:17:45 -07:00
geeksville
92df77f228
Merge remote-tracking branch 'root/master' into dev
2020-09-11 18:15:13 -07:00
geeksville
1cd81208c0
Merge remote-tracking branch 'root/master'
2020-09-10 10:11:15 -07:00
geeksville
ee27c15c2c
likely fix for bug #373 . fix #339 . great gps fixes from @a-f-G-U-C
...
fixes described in bug #376
2020-09-10 09:25:10 -07:00
Garret Kelly
48256d6e9e
Fix compilation without a BUTTON_PIN definition
2020-09-08 15:22:49 -04:00
geeksville
c007302564
fix #363 gps altitude - based on tip by @a-f-G-U-C
2020-09-08 10:28:53 -07:00
geeksville
0a9f7147f3
probably fix #341 enable internal pullup on lora-v2 button
2020-09-08 10:25:37 -07:00
geeksville
46ba36511a
Merge branch 'portduino' into dev
...
# Conflicts:
# platformio.ini
2020-09-07 16:31:17 -07:00
geeksville
f3d38d84c9
fix nrf52 build
2020-09-07 13:03:37 -07:00
geeksville
f8bb6bbcb4
try to bang on SPI from simulator
2020-09-06 16:32:13 -07:00
geeksville
e0d5b9dce1
use simradio on portduino
2020-09-06 16:09:07 -07:00
geeksville
94e4b30125
add crude sim getmacaddr
2020-09-06 16:07:32 -07:00
geeksville
2a067e7f6b
make gps optional. Portduino almost works in sim!
2020-09-06 14:45:43 -07:00
geeksville
b8d39845cf
portduino now links!
2020-09-06 09:24:08 -07:00
Jm Casler
49dea6d6bd
Update Screen.cpp
...
Added commnets for concepts for future TODO work.
2020-09-05 22:36:57 -07:00
Jm Casler
7d4c6c7086
Update Screen.cpp
...
- Changed "No Satellite Lock" to "No GPS Lock"
- Fixed bug when there's no battery. Now shows "USB"
- Tested on tlora-v1
2020-09-05 14:41:00 -07:00
geeksville
fefd3d78f3
Portduino WIP now compiles but does not link
2020-09-05 12:34:48 -07:00
Jm Casler
f41a77c46d
Initial add of status screen
...
Initial add of the status screen.
TODO:
- Get status of the BT Radio
- Display something on line 3
2020-09-05 09:30:18 -07:00
geeksville
6a475d8288
WIP
2020-09-04 17:23:17 -07:00
geeksville
c629b94333
portduino WIP
2020-09-04 15:03:22 -07:00
geeksville
6cdaf8c600
fix #349 channel suffix letter didn't match between device and phone
2020-08-30 12:38:15 -07:00
geeksville
c370eb4a88
allow restarting failed upgrades (fixes an android autobug report)
2020-08-30 12:21:05 -07:00
geeksville
8dc4492ba3
add taiwan frequencies
2020-08-30 12:20:43 -07:00
geeksville
901cc536ef
less logspam
2020-08-29 15:17:32 -07:00
geeksville
dffb6c2f06
If display is on on the @BigCorvus board and we xmit the board browns out?
2020-08-28 17:38:23 -07:00
geeksville
7f214ffbb0
TFT kinda correct now - but slow because of bit banging
2020-08-28 15:33:33 -07:00
geeksville
e049eac38a
TFT display kinda draws stuff (badly)
2020-08-28 15:06:52 -07:00
geeksville
338445d175
basic init of the Corvus TFT display works
2020-08-28 14:24:22 -07:00
geeksville
79498580b1
If LORA32 battery voltage is super low, assume no battery installed
2020-08-27 14:46:59 -07:00
geeksville
af046e7dbd
bug #322 - ttgo lora32 deep sleep
...
oh - I think I found the problem (probably)! we were isolating gpio12 (which isn't used on other boards) to save power during sleep. gpio12 is the button for this board. @thomslik would you mind pulling this commit and seeing if it works better?
2020-08-26 14:00:10 -07:00
geeksville
5c40378805
fix #336 don't send battery status on nodes without batteries
2020-08-25 13:00:55 -07:00
geeksville
780b7e3628
don't show battery status on boards that can't sense that #336
2020-08-25 12:48:47 -07:00
geeksville
f62e6793c5
Fix #333 screens were redrawing when they should not
...
thanks @drewsed for the clear report - made it easy to repro/fix
due to refactoring/cleanup a couple of weeks back
2020-08-25 12:08:18 -07:00
geeksville
de196810a2
add debugging for SNR values on SX1262
2020-08-25 12:06:36 -07:00
geeksville
7b09fbe049
fix #327 side effect noticed by @smarti2019
2020-08-22 09:06:54 -07:00
geeksville
a90bab5455
this seems bad - this value was not inited if it wasn't in bss
2020-08-21 10:56:54 -07:00
geeksville
ff885ef215
Merge remote-tracking branch 'root/post1'
2020-08-21 10:50:49 -07:00
geeksville
d7a1cef046
fix #327 always factory reset the GPS once
2020-08-21 10:14:03 -07:00
geeksville
ca75dcd64d
Add support for SX1262 based TBEAMs, see below for more details.
...
We probe dynamically for the SX1262 or RF95 based radios on TBEAM1.0
boards now. If either is present it will be used.
2020-08-20 15:42:36 -07:00
geeksville
9c9347df23
don't reference tft libs on devices that don't have it
2020-08-17 14:06:31 -07:00
geeksville
d91ab5480f
begin support for TFT displays
2020-08-17 13:47:05 -07:00
geeksville
3c09c3e520
show NRF52840 debug output via the USB CDC-ACM device
2020-08-17 11:50:50 -07:00
geeksville
781077e799
Turn on buck converter for @BigCorvus board, now radio works
2020-08-17 11:42:19 -07:00
geeksville
1c3eff0ee5
turn on fix #279 for tbeam0.7 and ttgo lora32-1.6 battery levels
2020-08-13 19:55:57 -07:00
geeksville
3de1607cea
bug #279 change battery voltage to millivolts
2020-08-13 11:23:27 -07:00
geeksville
6a402b13fa
Add battery sensing (mostly) for TBEAM0.7
...
However, disabled until someone with suitable hardware can test and report
back.
@slavino and @tschundler would you be willing to try it with your boards?
You'll need to uncomment the following line in configuration.h
// #define BATTERY_PIN 35 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage
2020-08-12 17:03:36 -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
55dafcbecb
fix #269 see below
...
/**
* Generate a short suffix used to disambiguate channels that might have the same "name" entered by the human but different PSKs.
* The ideas is that the PSK changing should be visible to the user so that they see they probably messed up and that's why they
their nodes
* aren't talking to each other.
*
* This string is of the form "#name-XY".
*
* Where X is a letter from A to Z (base26), and formed by xoring all the bytes of the PSK together.
* Y is not yet used but should eventually indicate 'speed/range' of the link
*
* This function will also need to be implemented in GUI apps that talk to the radio.
*
* https://github.com/meshtastic/Meshtastic-device/issues/269
*/
const char *getChannelName();
2020-08-12 11:04:03 -07:00
geeksville
178958c165
allow advanced users to specify channel numbers if they wish
2020-08-12 10:46:44 -07:00
geeksville
d7cf7e2eb4
Allow advanced users to set arbitrary spreadfactor/codingrate/bandwidth
2020-08-12 10:42:25 -07:00
Kevin Hester
a7da7cd32e
Merge branch 'post1' into post1
2020-08-10 09:15:49 -07:00
geeksville
047141eb34
make TXEN/RXEN immediately low once changed to be outputs
2020-08-03 11:29:26 -07:00
geeksville
12bf3795ea
less logspam when debugging the serial API
2020-08-02 12:55:22 -07:00
Ellie Hussey
7f45184d90
Fixed message text wrapping, compass rose position, and added device ID on status page ( #300 )
2020-08-01 10:50:06 -07:00
geeksville
d5c46dc114
use max mtusize for speed
2020-07-24 12:39:48 -07:00
geeksville
204f2c1a68
software update service now registered with NimBLE
2020-07-24 11:39:48 -07:00
geeksville
a5b7501a4e
nimble add debug output
2020-07-24 10:12:25 -07:00
geeksville
b0e2c81666
nimble software update WIP builds
2020-07-23 15:57:31 -07:00
geeksville
00ca351169
WIP begin changing software update service over to nimble
2020-07-23 13:01:31 -07:00
geeksville
0415a3c369
Clean up nimble files
2020-07-23 08:10:36 -07:00
geeksville
4eb27b637d
Nimble sleep now works nicely
2020-07-22 22:18:47 -07:00
geeksville
107b56a346
move bluetooth enable
2020-07-22 21:41:56 -07:00
geeksville
abdc4dfae8
remove old mesh ble service
2020-07-22 21:29:32 -07:00
geeksville
014eea2f56
Nimble sleep almost works
2020-07-22 21:26:32 -07:00
geeksville
9b4ca95660
nimble basically works now. Started long bake for bug #266
2020-07-22 18:00:56 -07:00
geeksville
78ff9a8116
Nimble WIP - make notify work
2020-07-22 16:40:00 -07:00
geeksville
66b147fb31
Nimble WIP fix bluetooth pairing screen
2020-07-22 16:16:28 -07:00
geeksville
c5df1bc885
Nimble WIP - woot! basic device API works now
2020-07-22 15:44:45 -07:00
geeksville
00cf3a768e
nimble WIP turn on bonding and security
2020-07-22 13:50:30 -07:00
geeksville
b6a3deb341
nimble WIP - writes kinda work now
2020-07-22 12:08:54 -07:00
geeksville
531f488fe8
WIP nimble ugly but advertise works
2020-07-22 10:46:01 -07:00
geeksville
d674aaaa29
sometimes save config fails on ublox, don't cause a reboot for that
2020-07-22 10:45:38 -07:00
geeksville
7f6dc104f0
nimble WIP - add advertising boilerplate
2020-07-22 09:51:57 -07:00
geeksville
102085808f
WIP nimble now builds
2020-07-21 12:42:24 -07:00
geeksville
2645730329
Merge branch 'post1' into nimble
...
# Conflicts:
# docs/software/TODO.md
# docs/software/nrf52-TODO.md
# platformio.ini
# src/esp32/MeshBluetoothService.cpp
2020-07-21 11:20:09 -07:00
geeksville
6aa28f55dd
WIP stubify to get app building without CONFIG_BLUEDROID (BLE disabled)
2020-07-21 11:16:14 -07:00
geeksville
1e86365167
MITM_BOND supposedly doesn't have the problem mentioned in #266
...
(and it is good / more secure anyways - the old code was just
based on the example docs)
2020-07-19 15:01:15 -07:00
geeksville
9e10ce487c
Merge branch 'master' into post1
2020-07-18 13:32:30 -07:00
geeksville
d9f43d3e2f
update protobufs related to https://github.com/meshtastic/Meshtastic-device/issues/269
2020-07-18 09:12:51 -07:00
geeksville
cfedc97cd0
Show NVS flash utilization at boot (for debugging ble things?)
2020-07-18 08:49:42 -07:00
geeksville
859642d2e4
Merge remote-tracking branch 'root/master' into post1
...
# Conflicts:
# src/configuration.h
2020-07-17 12:06:57 -07:00
Kevin Hester
96f5069742
Merge branch 'post1' into post1
2020-07-17 11:17:12 -07:00
geeksville
2a6df797ca
NRF52 BLE API now works!
2020-07-17 11:12:05 -07:00
geeksville
28aa48c8d2
NRF52 reads now work, but not long reads
2020-07-17 10:40:03 -07:00
geeksville
582f77e4ec
NRF52 BLE now works, except for reads having the wrong payload
2020-07-17 10:02:07 -07:00
geeksville
5700cf96d5
redefine printf to use the segger output system (NRF52)
2020-07-17 09:14:23 -07:00
geeksville
769a98f1f4
nrf52 ble - move service in into the scan info
2020-07-17 09:13:47 -07:00
geeksville
3d0c611896
android app can now talk to NRF52, but writes are lost WIP
2020-07-15 17:09:09 -07:00
geeksville
6cb92143ec
OOM allocing the BLE stack for adafruit
2020-07-15 13:45:57 -07:00
geeksville
f919eb6a64
Install a hardfault handler on NRF52
2020-07-15 13:29:09 -07:00
geeksville
4147786b12
WIP of adding NRF52 bluetooth API, we take a hardfault in Bluefruit init
2020-07-15 13:10:56 -07:00
Professr
e5fac4b78d
UBlox GPS now detects loss of lock
2020-07-14 22:53:36 -07:00
Marlon Spangenberg
44749470a4
fix #272 add support for tlora-v2-1-1.6
2020-07-14 16:16:49 +02:00
geeksville
80e8b4adcc
turn off gps debug output for now RAK815
2020-07-13 14:20:49 -07:00
geeksville
98dfecdb79
Add external RF switch management for RF95 (needed for RAK815)
2020-07-13 13:18:32 -07:00
geeksville
ed6b89b3b1
RAK-815 GPS now kinda works (must update associated libs). comms to it
...
still a bit yucky
2020-07-10 20:34:03 -07:00
geeksville
9d3ca0d0f9
fix esp32 build
2020-07-10 18:46:33 -07:00
geeksville
05a0405709
GPS not yet ready RAK815 WIP
2020-07-10 14:57:33 -07:00
geeksville
efd8b70089
RAK815 GPS WIP
2020-07-10 14:54:32 -07:00
geeksville
e12c057c31
RAK815 lora works
2020-07-10 14:37:01 -07:00
geeksville
0b5b18653a
Panic if new ever returns NULL
2020-07-10 13:52:54 -07:00
geeksville
dc54e7331f
memory is tight on the nrf52832 board (for now) - so don't allocate too much
2020-07-10 13:52:26 -07:00
geeksville
6fbf6b2986
RAK815 WIP - use 115200 for serial to USB on this board, best it can do
2020-07-10 13:24:00 -07:00
geeksville
feb9992d7d
on rak815 use serial port for console
2020-07-10 13:11:29 -07:00
geeksville
fb4ac82d45
fix rf95 renaming
2020-07-10 12:47:10 -07:00
geeksville
63474dd952
Only try for NEMA if we have serial
2020-07-10 12:16:10 -07:00
geeksville
1415f2bed7
WIP add support for i2C GPS
2020-07-10 11:43:14 -07:00
geeksville
b00a936f41
WIP RAK815 support
2020-07-10 11:02:29 -07:00
geeksville
80b14c0a6f
add support for adafruit feather nrf52832 - which is close to a RAK815
2020-07-09 21:27:34 -07:00
geeksville
c7290e6ccc
don't turn wifi on yet, because my fixes for arduino-esp32 haven't been pushed
2020-07-09 20:11:33 -07:00
geeksville
311d1a56b4
make a bare nrf52840dk build which will work for everyone
2020-07-09 20:05:39 -07:00
geeksville
ed589727d6
Update NRF52 build to work again
2020-07-09 19:57:55 -07:00
geeksville
62c9bad183
WIP TCP API server over wifi
2020-07-07 18:37:42 -07:00
geeksville
616da8228e
enable wifi for ESP32
2020-07-07 17:41:35 -07:00
grcasanova
37d9fb2dad
just a cleanup of the graphics
2020-07-07 10:46:49 +02: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
ccadb6a43d
Added sinceLastSeen check to pings generated by node UI
2020-07-05 19:56:57 -07:00
Ellie Hussey
6f7f540c79
Added the option for forced NodeStatus updates on user change or text message, tweaked compass ( #256 )
2020-07-05 17:03:12 -07:00
grcasanova
d5b8038457
fixes
2020-07-06 00:54:30 +02:00
grcasanova
0a6059ba13
refactored threading-related classes, code broken
2020-07-05 23:11:40 +02:00
Kevin Hester
d5116935b5
Merge branch 'master' into issue#199
2020-07-04 12:13:21 -07:00
Professr
4d04d10135
Merge screen.cpp
2020-07-03 02:58:55 -07:00
Professr
cda423acab
Changed GPS DOP display to bars, added satellites display and compass rose
2020-07-03 02:53:56 -07:00
Marcel van der Boom
0b6486256d
Merge remote-tracking branch 'upstream/master' into sh1106-support
2020-07-02 17:36:31 +02:00
Slavomir Hustaty
da12b93f82
Update configuration.h
...
https://user-images.githubusercontent.com/1584034/86362734-08525e00-bc76-11ea-8a34-8579d1fa2965.jpg
related to issue https://github.com/meshtastic/Meshtastic-device/issues/243
2020-07-02 16:54:24 +02:00
geeksville
26c43e7091
minor docs
2020-07-01 10:22:17 -07:00
geeksville
c327fee986
Fix formatting
2020-07-01 10:09:06 -07:00
geeksville
a4f53270e8
fix heltec build (and fix formatting)
2020-07-01 10:08:38 -07:00
Marcel van der Boom
57d968cdcd
Merge remote-tracking branch 'upstream/master' into sh1106-support
2020-06-29 09:26:25 +02:00
Professr
f2e6c6de58
Fixed filename case sensitivity
2020-06-28 19:03:39 -07:00
Professr
8fa44c3590
Disabled the display heartbeat pixel for pull request
2020-06-28 18:55:51 -07:00
Professr
f5b7c33d4e
Refactored status handlers and merged
2020-06-28 18:17:52 -07:00
geeksville
bd477f0fb2
turn on thread watchdog
2020-06-28 11:12:12 -07:00
Professr
5317895a5e
Merged
2020-06-27 21:26:57 -07:00
Professr
542b8b26ce
Abstracted statuses, made display event-driven
2020-06-27 21:19:49 -07:00
Marcel van der Boom
aaca854620
Merge remote-tracking branch 'upstream/master' into sh1106-support
2020-06-27 10:18:55 +02:00
geeksville
a595fc4642
Fix #233 - init distance string before drawing it
...
(and violating my own "no formatting checkins with other changes" rule
to restore proper indentation for this file)
2020-06-26 15:04:22 -07:00
Marcel van der Boom
ac2d3e2ae0
Correct type of setBrightness parameter
2020-06-25 21:16:35 +02:00
Marcel van der Boom
33946af39f
SCREEN_WIDTH is visible area already, not addressable area
...
- sh1106 starts showing from column 2 (the library handles the offsets) so we don't actually need
the different screen width here.
2020-06-25 21:15:12 +02:00
Kevin Hester
8bafd87b76
Merge branch 'master' into pr/228
2020-06-25 11:26:37 -07:00
geeksville
9baaa13897
Add optional external GPS for TTGO Lora V2
...
per this request: https://meshtastic.discourse.group/t/gps-pin-assignments-for-custom-boards/501/9?u=geeksville
2020-06-25 09:45:21 -07:00
Marlon Spangenberg
ae4ab48ddc
fixed int float casting & made fillRect 2px smaller
2020-06-25 18:26:32 +02:00
Marcel van der Boom
a6c6b45576
Take different screen widths into account for brightness bar
...
width of sh1106 display is 132 for example
2020-06-25 16:20:49 +02:00
geeksville
e7eee0995a
fix line endings
2020-06-24 16:14:38 -07:00
geeksville
5687bd09c6
Merge remote-tracking branch 'root/master' into dev
2020-06-24 14:08:36 -07:00
Kevin Hester
dd2ffe5d14
Merge branch 'master' into master
2020-06-24 14:03:56 -07:00
Professr
ec10e784e1
Fix #207 adjust OLED Brightness by attachDuringLongPress
...
adjust the OLED Brightness by "attachDuringLongPress" from "OneButton". It will cycle trough 0 to 254 as long as the button is pressed
2020-06-24 22:58:20 +02:00
geeksville
649faa1d93
Merge remote-tracking branch 'root/master' into dev
2020-06-24 13:56:48 -07:00
geeksville
996821d18e
Merge remote-tracking branch 'root/master'
2020-06-24 13:33:16 -07:00
Zach Whitehead
3df05cd5c1
break out compass display
...
Show question mark if unknown location
2020-06-24 13:27:02 -07:00
geeksville
9f6e23754c
Add a no_save development flag to allow using settings that
...
we don't want to save to flash. Use that flag to guard BLE
stress testing code that makes device repeatedly sleep wake
to force numerous BLE resets
2020-06-24 13:10:36 -07:00
Kevin Hester
ee0e31be97
Merge branch 'master' into issue#154
2020-06-24 08:19:03 -07:00
Marlon Spangenberg
68e57dd3a7
added ttgo-lora32-v1 gps pins again :D
...
Sry I messed up as I closed #213 , so here are the pin definitions again.
2020-06-24 12:15:50 +02:00
Ellie Hussey
2504311671
Merge branch 'master' into issue#154
2020-06-23 18:30:09 -07:00
Professr
e3bcb87cf0
Removed prefix chars, fixed issues related to custom font mappings
2020-06-23 18:02:41 -07:00
Professr
2530dc44c7
Changed unconvertable-character symbol to ¿ and made it return only one per unconvertable sequence
2020-06-23 16:46:41 -07:00
Professr
70a8fe30b7
Merge https://github.com/meshtastic/Meshtastic-device into issue#154
2020-06-23 16:45:40 -07:00
Marlon Spangenberg
30e538e5ed
added Bluetooth Name to paring screen
...
& changed the order
2020-06-24 01:08:23 +02:00
Kevin Hester
210c904604
Merge branch 'master' into issue#162
2020-06-23 15:40:02 -07:00
Kevin Hester
ba3e1abb5e
Merge branch 'master' into dev
2020-06-23 15:37:07 -07:00
geeksville
4e958c9230
make software update keep device from sleeping
2020-06-22 17:10:41 -07:00
Professr
6a857b00db
Add cpp clamp function to util.h, switched battery and signal strength percentage calcs to it #197
2020-06-22 14:06:02 -07:00
Professr
6d60a061bc
Merge https://github.com/meshtastic/Meshtastic-device into issue#154
2020-06-22 12:27:44 -07:00
Professr
6a09ddef18
Resolved merge conflict
2020-06-22 12:25:59 -07:00
Professr
d48e803b7b
Custom utf8 conversion replaces unconvertable chars with ? instead of blanks, #154
2020-06-22 12:03:26 -07:00
Professr
cfcaf28ace
Switched user button to OneButton, added alt button GPIO for #162
2020-06-22 11:09:26 -07:00
geeksville
d9e93f3944
Try turning my software update service back on...
...
Now that I've fixed a couple of nasty esp32-arduino bugs
2020-06-22 10:06:35 -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
0c0b2446b7
Merge remote-tracking branch 'root/master' into dev
2020-06-22 09:22:54 -07:00
geeksville
665d35196d
never wait on GPS reads
2020-06-22 09:17:15 -07:00
Professr
e45d0c4dcf
Offset battery bars by 1 to reflect room between BAT_MILLIVOLTS_EMPTY and MIN_BAT_MILLIVOLTS
2020-06-22 00:10:04 -07:00
Professr
5c9f22bc18
Moved node count graphic slightly to the left, to allow room for triple-digit node counts
2020-06-21 19:44:32 -07:00
Professr
d8287e9cdb
Removed DOP to string utility function from GPS.cpp since it's now drawn directly in screen.cpp
2020-06-21 17:43:34 -07:00
Professr
c66e064f42
Replaced battery, node, and gps text with a graphical header. Added hash to the beginning of the channel name.
2020-06-21 17:28:37 -07:00
Professr
364fc84aaa
Removed unnecessary include, ready for consideration for issue #196
2020-06-21 16:31:09 -07:00
Professr
fe4f86bc84
Added battery charge percent estimation
2020-06-21 16:21:34 -07:00
geeksville
982b2e33ff
Merge remote-tracking branch 'root/master' into dev
2020-06-21 14:11:53 -07:00
geeksville
8190098bb8
experiment with wifi connections for nodes
2020-06-21 14:11:38 -07:00
Professr
da8a048dce
Added GPS DOP support ( #199 )
2020-06-20 18:59:41 -07:00
geeksville
b4de495154
show app version on boot screen
2020-06-20 17:07:17 -07:00
geeksville
6566c4f15e
don't send bogus latitudes
2020-06-18 14:09:13 -07:00
geeksville
c25d6e974f
sometimes first read might return 0 for EITHER lat or lon
2020-06-18 11:22:38 -07:00
geeksville
cd903dceb9
Fix #187 , Ublox GPS fixes, see below:
...
This was a good one. Two problems
1) We've apparently always been using hte sparkfun API the wrong way, but
but we mostly got lucky.
2) Changing to use the API correctly (asyncronously) exposed a bug in
the library - fixed in a seperate commit
2020-06-18 11:17:01 -07:00
geeksville
3005373760
fix wording of GPS screen messages to be less confusing. Now:
...
No GPS
No Sats
GPS OK
2020-06-17 17:26:37 -07:00
geeksville
7678540a93
For #187 was not reporting GPS status on new API
2020-06-17 17:25:55 -07:00
geeksville
463666aec5
oops - can't call DEBUG_MSG this early on ESP32
2020-06-17 16:04:37 -07:00
geeksville
03f019dea2
memory size debugging
2020-06-16 19:55:14 -07:00
geeksville
a47524b762
cubecell wip
2020-06-16 17:13:26 -07:00
geeksville
fd2f5a5ba4
Merge branch 'dev' into cubecell
2020-06-16 16:18:30 -07:00
geeksville
f35b15b09c
Shrink devicestate for small mcus
2020-06-16 15:26:30 -07:00
geeksville
99dac51b9d
Don't use a (huge - 16KB) scratch buffer for device state loading
2020-06-16 15:02:11 -07:00
geeksville
d9ab6986ad
per @dafeman 1.8V works on E22
2020-06-16 12:02:13 -07:00
geeksville
514d45c219
oops supposed to be TXEN
2020-06-16 06:38:08 -07:00
geeksville
e9923ac257
fix LCD build for devboard
2020-06-16 06:26:34 -07:00
geeksville
60ad1793e4
sx1262 improvements attn @dafeman
2020-06-16 06:26:21 -07:00
geeksville
9ad14ad98b
Cleanup to merge NR52 support back into mainline
2020-06-15 14:47:14 -07:00
geeksville
477c62082d
E22 SX1262 module now works!
...
Thanks mostly to an old github comment by @beegee-tokyo the fix was easy
(comment here https://github.com/jgromes/RadioLib/issues/12#issuecomment-520450429 )
We now set DIO3 to 2.4 volts to power the oscillator inside the E22
module (undocumented in the E22 docs)
2020-06-15 14:38:09 -07:00
geeksville
82169d4115
make recent changes work on non ESP hardware
2020-06-15 13:32:06 -07:00
geeksville
92e5a15399
Merge branch 'master' into cubecell
2020-06-15 12:42:01 -07:00
geeksville
114e0c4ada
Merge branch 'master' into bringup
2020-06-15 12:41:22 -07:00
Kevin Hester
d65f2ede81
Merge branch 'master' into sh1106-support
2020-06-15 12:26:12 -07:00
Zombodotcom
1c6092c430
Fixed GPS pin Definitions
2020-06-15 11:38:15 -06:00
geeksville
d8db4449be
0.7.6
2020-06-15 07:04:03 -07:00
geeksville
fda98bbf58
oops BLE auth should not change
2020-06-14 15:52:06 -07:00
geeksville
aadba1f694
add printPacket for debug printing packets
2020-06-14 15:30:42 -07:00
geeksville
2c8d152885
Use old style (pre BLE 4.2) pairing, it seems more reliable
2020-06-14 15:30:21 -07:00
Marcel van der Boom
37c598833c
Add support for SH1106 controller
...
The SH1106 is almost indistinguisable from a SSD1306.
- the nr of columns in the sh1106 is 132 vs 128
- use the proper includes/library functions when in use
2020-06-14 10:28:23 +02:00
geeksville
13307c502f
misc debug output
2020-06-13 16:29:53 -07:00
geeksville
8a1754efe8
leave the software update service off for now - no one is using ityet
2020-06-13 11:36:45 -07:00
geeksville
8caa075bc6
used fixed pool allocator for now - since that's how we've been testing
2020-06-13 11:05:36 -07:00
geeksville
d5deb49d20
use executeDelete to prevent leaking BLE handles
2020-06-13 11:05:13 -07:00
geeksville
575a15e135
remove more dead rev1 protocol code
2020-06-13 08:29:41 -07:00
geeksville
dc7469c64b
useful bluetooth debugging output
2020-06-13 08:29:25 -07:00
geeksville
f54b18f733
each tx packet might have a retransmission/ack copy, make pool bigger
2020-06-13 08:27:44 -07:00
geeksville
db66e4dc00
ensure we never get null from malloc
2020-06-13 08:27:25 -07:00
geeksville
03cb3c2145
basic stack debugging - we are okay for now
2020-06-12 16:37:03 -07:00
geeksville
a8d4b5479d
don't start the BLE update service for now - the android side isn't ready
2020-06-12 15:48:24 -07:00
geeksville
f0b8f10665
Fix #149 : Use a simple heap allocator for now, after 1.0 we can go to
...
fixed sized pools to protect against fragmentation.
2020-06-12 12:11:18 -07:00
geeksville
88b91de197
Prepare to make MemoryDynamic
2020-06-12 11:56:13 -07: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
f02a2c0853
Merge branch 'usb' into bringup
2020-06-09 18:20:34 -07:00
geeksville
00d55c9daa
require min app version 172
2020-06-09 18:20:06 -07:00
geeksville
a05e45f84b
make txQueue private
2020-06-09 15:47:05 -07:00
geeksville
a8a5e036f5
turn off serial debug output once we are using the protocol on the stream
2020-06-09 10:35:06 -07:00
geeksville
009f05b61d
temp workaround for sleep bug #167
2020-06-09 06:38:09 -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
bdbaf9c655
remove old BLE api
2020-06-08 16:08:02 -07:00
geeksville
7473a6c27a
unify activity detection in PhoneAPI, turn off BLE API while serial API in use
2020-06-08 16:06:59 -07:00
geeksville
739f497bbd
Merge branch 'master' into longaddr
2020-06-07 22:16:43 -07:00
geeksville
2d2ed591e9
set num_bits for nodenum and packet id after loading save file
2020-06-07 22:12:06 -07:00
geeksville
871a85d688
force all devices to discard old settings
2020-06-07 17:22:07 -07:00
geeksville
e124d2094f
PROTOCOL CHANGE! activate 32 bit nodenums/packetids
2020-06-06 13:16:36 -07:00
geeksville
9ea65c6793
Fix #153 - details below
...
Somehow nodenum was getting reset to zero (and saved to flash - which is
bad because it makes the failure permanent). So I've changed nodenum
selection to occur after we load the saved preferences (and we try to keep
nodenum stable in that case).
I'm puzzled as to how it ever got set to zero (unless there *shudder*
is some errant pointer that clobbered it). But next week I'm turning
4 byte nodenums back on, which will make this moot - because they
will always be based on macaddr and the current process where nodes
haggle with the mesh to pick a unique one-byte nodenum will be gone.
2020-06-06 08:30:01 -07:00
geeksville
8d14e97dfa
oops - we were not saving radio state
2020-06-06 08:07:21 -07:00
geeksville
1c63a70673
cubecell WIP
2020-06-05 17:30:09 -07:00
geeksville
4db176867b
WIP - bringup on PPR
2020-06-05 11:00:58 -07:00
geeksville
4b5cfaf9ba
changes from bringing up PPR
2020-06-05 11:00:18 -07:00
geeksville
99437d931e
fix #153
2020-06-03 16:08:11 -07:00
geeksville
5166717298
confirm randomSeed is set correctly
2020-06-03 14:24:34 -07:00
geeksville
49b5738f4f
add min_app_version so apps can warn if they are too old
2020-06-03 13:57:30 -07:00
geeksville
c753ea7cd1
don't use a fixed randomSeed.
2020-06-03 13:51:53 -07:00
geeksville
5b1488ddf0
Allow packet and nodenums to be 32 bits long (but don't change yet)
2020-06-03 13:46:31 -07:00
geeksville
a34cfb0ee0
Populate metainfo for apps to allow 32 bit node and packet ids
2020-06-03 13:15:45 -07:00
geeksville
e522e47544
Full DSR WIP
2020-06-03 12:49:36 -07:00
geeksville
ed0f79b683
Merge branch 'master' into nrf52
2020-05-27 15:54:44 -07:00
geeksville
1b34a0c6d8
Help make sx1262 go for @dafeman 's board. See below for details:
...
Hi, I think the problem you were having building for ESP32 was due to
a funny thing. Notice the #define for INTERRUPT_ATTR. That macro expands
to IRAM_ATTR - which is a special flag the ESP32 requires for _any_ code
that is going to be called from an ISR. So that the code is guaranteed
to be in RAM (the ESP32 uses a clever scheme where the FLASH is actually
high speed serial flash and all reads/writes are actually only happening
to a small number of pages in RAM and they have a driver that is constantly
copying blocks they need into that ram. This essentially how VM works
for desktop computers, but in their case they are paging to FLASH.
But for code that runs in an interrupt handler must _always_ be in RAM
because if you took a 'page fault' for that code being missing in RAM they
can't nicely do their clever VM scheme.
So that's all good. The problem was - apparently GCC for the ESP32 has a
a bug when that attribute is applied in the class declaration. So
I moved it out into the cpp file and all seems well now.
2020-05-27 15:47:59 -07:00
geeksville
313380381b
no need for this old debug output
2020-05-27 15:40:47 -07:00
geeksville
f56ff2ca20
DSR WIP
2020-05-27 15:31:32 -07:00
geeksville
f3a1c5e679
Possible fix for https://meshtastic.discourse.group/t/a-note-about-limited-support-for-the-neo-8m-gps-boards/233/3?u=geeksville
2020-05-26 13:10:34 -07:00
geeksville
a96c8fd4db
nrf52 debugging is supported as long as BLE is not advertising
2020-05-25 17:16:09 -07:00
geeksville
da3ed9926b
add monitor mode debugging support
2020-05-25 15:56:06 -07:00
geeksville
fd386d9d7f
UC1701 WIP
2020-05-25 15:55:38 -07:00
geeksville
5d1614989e
Only add interfaces to the router if they can be initied
2020-05-25 15:47:45 -07:00
geeksville
f4b1678535
my DSR changes broke acks for flood routing also. Fix #146
2020-05-25 11:55:42 -07:00
geeksville
03999e9d56
fix build for esp32
2020-05-25 10:46:26 -07:00
geeksville
d5f177b1ee
begin UC1701 driver
2020-05-25 10:41:46 -07:00
geeksville
fdaed7e323
Fix MIN_BAT_MILLIVOLTS per @spattinson
2020-05-25 10:41:19 -07:00
geeksville
d39e775c95
make flash filesystem work on NRF52
2020-05-25 10:07:42 -07:00
geeksville
829e0b6e26
fix extra free
2020-05-25 08:19:14 -07:00
geeksville
1656c8d0cb
use my Timer class on all platforms, it works better than the freertos version
2020-05-25 07:48:36 -07:00
geeksville
2770cc7de3
Use the SX1262 receive duty cycle mode to get radio current draw down to
...
about 2.5mA @ 3V while in receive mode.
2020-05-24 19:23:50 -07:00
geeksville
48de631e04
disable activelyReceiving for sx1262 for now - it doesn't yet work
2020-05-24 16:34:18 -07:00