Wykres commitów

335 Commity (7f59e76c72cd229ca233384c7414c3310bc384dd)

Autor SHA1 Wiadomość Data
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 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 ef146fc0b5 bug #376 - wip time only mode now works 2020-10-06 06:27:46 +08:00
Kevin Hester 736642455f bug #376 wip - we now respect the new gps_operating_mode pref. 2020-10-06 05:34:56 +08:00
Kevin Hester 3c1c11e439 bug #376 wip - we now kill gps power when it is supposed to be asleep 2020-10-05 15:29:26 +08:00
Kevin Hester b072eec4ac wip for #376 2020-10-05 14:43:44 +08:00
Kevin Hester ff9b49ddaa add lora32 schematic
Signed-off-by: Kevin Hester <kevinh@geeksville.com>
2020-10-05 11:03:30 +08:00
geeksville 1907873831 gps wip for #376 2020-10-01 10:04:04 -07:00
geeksville 4342ae74fb Merge remote-tracking branch 'root/master' 2020-09-30 07:24:38 -07:00
geeksville bf808f57fe add air530 manuals 2020-09-26 18:25:10 -07:00
geeksville 7ca150bf07 personal notes about threading 2020-09-26 06:50:54 -07:00
geeksville 1a064a4666 Merge remote-tracking branch 'root/master' 2020-09-25 09:19:58 -07:00
geeksville 1f36139e99 remove Signal 2020-09-25 09:14:44 -07:00
Ken Van Hoeylandt 829c5f493c
Fix for broken link to device API docs
bluetooth-api.md -> device-api.md
2020-09-23 20:16:21 +02:00
geeksville 3352fae64c fix #371 allow button while using API. also don't let tbeams sleep if they have USB power 2020-09-21 12:41:39 -07:00
geeksville fc20f658e6 Fix #362 by @a-f-G-U-C - I was mispelling NMEA ;-) 2020-09-16 09:22:03 -07:00
geeksville 313cee9a3f update webpage 2020-09-15 17:54:55 -07:00
geeksville 621fcb598e Declare 1.0 2020-09-14 09:25:14 -07:00
drewsed 5423f4e06c Added a new 3D printable case to \README.md and updated \docs\README.md 2020-09-04 10:41:22 +02:00
Dafeman eda4862f0d
Update build-instructions.md 2020-09-03 08:34:52 +12:00
geeksville 83ae3c7714 doc rename 2020-08-25 12:48:19 -07:00
geeksville babd57ecde add hw docs 2020-08-25 12:06:55 -07:00
geeksville 22946b5e51 @BigCorvus board now kinda boots
###RTT Client: -----------------------------------------------
###RTT Client: Connecting to J-Link RTT Server via localhost:19021 ...
###RTT Client: Connected.

SEGGER J-Link V6.70c - Real time terminal output
SEGGER J-Link ARM V9.6, SN=69663845
Process: JLinkGDBServerCLExe
Emitting reboot packet for serial shell
I2C device found at address 0x55
done
Meshtastic swver=unset, hwver=unset
Reset reason: 0x0
FIXME, call randomSeed
ERROR: No UBLOX GPS found
Hoping that NEMA might work
RadioConfig reset!
Initial packet id 1481765933, numPacketId 4294967295
No saved preferences found
NODENUM=0xB18C3A4E, dbsize=1
Starting meshradio init...
Set radio: name=Default, config=3, ch=6, power=17
SX1262 init result 0
sending owner !df5db18c3a4e/Unknown 3a4e/?4E
Update DB node 0xB18C3A4E, rx_time=0
old user !df5db18c3a4e/Unknown 3a4e/?4E
updating changed=0 user !df5db18c3a4e/Unknown 3a4e/?4E
Adding packet record (id=0x5851F430 Fr0x4E To0xFF, WantAck0, HopLim3 Payload:User)
enqueuing for send (id=0x5851F430 Fr0x4E To0xFF, WantAck0, HopLim3 encrypted)
txGood=0,rxGood=0,rxBad=0
Starting low level send (id=0x5851F430 Fr0x4E To0xFF, WantAck0, HopLim3 encrypted)
assert failed src/mesh/SX1262Interface.cpp: 102, virtual void SX1262Interface::setStandby(), test=err == ERR_NONE
2020-08-17 11:29:00 -07:00
geeksville dec88a368b First attempt at better protocol docs. Bug #308
@cyclomies thank you for the prodding and help.  I'm happy to add more
detail, can you insert a few questions inline?  Then I'll answer and
hopefully that will be enough to be useful for others.
2020-08-11 17:34:49 -07:00
Kevin Hester d6658dbb2e
Merge branch 'master' into PlatformIO-build-guide-update 2020-08-10 08:56:15 -07:00
Dafeman 05531b2684
Update build-instructions.md 2020-08-09 14:07:42 +12:00
Dafeman 8b1fb39ce1
Update build-instructions.md 2020-08-06 22:06:38 +12:00
Dafeman da46d4ca0e
Update build-instructions.md 2020-08-06 19:44:42 +12:00
geeksville 75806ee666 clarify build instructions 2020-07-29 10:25:20 -07:00
geeksville 7c4eb3eddd add amazon appstore link 2020-07-24 15:08:10 -07:00
geeksville b617010a46 Merge branch 'post1'
# Conflicts:
#	docs/software/TODO.md
#	docs/software/nrf52-TODO.md
2020-07-24 13:07:33 -07:00
geeksville 92edcb97ed Merge remote-tracking branch 'origin/post1'
# Conflicts:
#	docs/software/TODO.md
#	docs/software/nrf52-TODO.md
2020-07-24 12:49:24 -07:00
geeksville 1aa7451866 0.9.1 2020-07-24 12:41:14 -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 4eb27b637d Nimble sleep now works nicely 2020-07-22 22:18:47 -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 c5df1bc885 Nimble WIP - woot! basic device API works now 2020-07-22 15:44:45 -07:00
geeksville b6a3deb341 nimble WIP - writes kinda work now 2020-07-22 12:08:54 -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 62c20f8ab9 add todo items 2020-07-19 14:59:53 -07:00
Kevin Hester 96f5069742
Merge branch 'post1' into post1 2020-07-17 11:17:12 -07:00
geeksville 6cb92143ec OOM allocing the BLE stack for adafruit 2020-07-15 13:45:57 -07:00
geeksville 3400bcde85 Merge branch 'master' into post1
# Conflicts:
#	docs/README.md
2020-07-15 11:51:05 -07:00
Slavomir Hustaty 8b4cf91f1f
Create SupportedHardware.md
idea on supported hardware matrix - maybe to be referenced from main README.md
2020-07-14 18:20:13 +02:00
geeksville da3b6d1958 Fix URL 2020-07-13 17:55:30 -07:00
geeksville c7213fb710 Fix URL 2020-07-13 17:54:12 -07:00
geeksville be7e4fea6a Merge branch 'master' into post1 2020-07-13 17:49:54 -07:00
geeksville d9209ffaea fix doc typo 2020-07-13 17:47:22 -07:00
Rezl 55673fcd66
Added Beginner's Guide 2020-07-13 19:34:14 -05:00
geeksville 2ff94cb11d Update device protocol docs 2020-07-13 14:41:04 -07:00
geeksville e46bebc06f rename docs 2020-07-13 14:21:28 -07:00
geeksville 98dfecdb79 Add external RF switch management for RF95 (needed for RAK815) 2020-07-13 13:18:32 -07:00
geeksville f2f17c81d4 Merge branch 'dev' into post1 2020-07-11 17:17:27 -07:00
geeksville f78f3232e2 update todo 2020-07-11 17:08:36 -07:00
geeksville a687aa8e75 update nrf52 todo 2020-07-11 17:08:03 -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 e12c057c31 RAK815 lora works 2020-07-10 14:37:01 -07:00
geeksville acbe8c159b move rak815 variant to arduino repo 2020-07-10 12:38:11 -07:00
geeksville cc35ed7782 update build instructions for RAK815 2020-07-10 12:12:03 -07:00
geeksville b00a936f41 WIP RAK815 support 2020-07-10 11:02:29 -07:00
geeksville 5b11c1ca86 Merge branch 'dev' into post1 2020-07-10 10:03:18 -07:00
geeksville 7802d00031 add nrf52832 support 2020-07-10 10:03:08 -07:00
geeksville 6954d0d5f4 Checkout submodules for CI build 2020-07-09 20:31:16 -07:00
geeksville ed589727d6 Update NRF52 build to work again 2020-07-09 19:57:55 -07:00
geeksville 3a62453b8b todo updates for 1.0 2020-07-07 17:40:59 -07:00
geeksville 8381512ce4 todo updates 2020-07-01 09:32:01 -07:00
geeksville bd477f0fb2 turn on thread watchdog 2020-06-28 11:12:12 -07:00
geeksville ac135be8cd move geeksville's personal todos somewhere else (mostly android) 2020-06-25 15:49:49 -07:00
geeksville 8bb85cdc69 personal TODO list updates (sorry github reviewers) 2020-06-24 13:13:20 -07:00
geeksville 5a7cfdffb3 Add links to the preinstalled version of the TBEAMs 2020-06-24 12:49:31 -07:00
geeksville 4e958c9230 make software update keep device from sleeping 2020-06-22 17:10:41 -07:00
geeksville 64cf1890f2 prebump to 0.7.9 build number, though not doing a release yet...
Because I want to pick a min build number for 'BLE OTA update allowed'
2020-06-22 17:10:18 -07:00
geeksville 2839539c6c todo for my personal work queue 2020-06-22 11:36:48 -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 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 9757f9ae53 geeksville personal todo list 2020-06-22 09:17:04 -07:00
geeksville 8190098bb8 experiment with wifi connections for nodes 2020-06-21 14:11:38 -07:00
geeksville 60b38215ce fix docs per @feh123 2020-06-20 09:58:45 -07:00
geeksville 7676ae9184 typo 2020-06-19 13:57:10 -07:00
geeksville 0104a2eb3a Fix crypto doc links 2020-06-19 13:47:00 -07:00
geeksville ea4a678308 Add reviewer comments on crypto 2020-06-19 13:27:31 -07:00
geeksville 6f39f1740f add pinetab work queue 2020-06-18 11:57:29 -07:00
geeksville 8e65db19b0 Add notes on linux drivers & pins for pinetab #143 2020-06-18 11:50:04 -07:00
geeksville 35aae48932 0.7.7 2020-06-18 11:18:53 -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