geeksville
8893be57df
kinda ugly but BLE sw update seems reliable again
2020-02-24 18:09:58 -08:00
geeksville
6b696bfdc5
hw vendor strings must match file names for auto update
2020-02-24 11:21:34 -08:00
geeksville
a3df099f60
until my TBEAM is fixed, leave GPS power on in sleep sometimes
2020-02-24 11:21:08 -08:00
geeksville
0ce1bbb758
expose standard ble sw/hw version characteristics from the updater
...
We also implement the following standard GATT entries because SW update probably needs them:
+
+ESP_GATT_UUID_SW_VERSION_STR/0x2a28
+ESP_GATT_UUID_MANU_NAME/0x2a29
+ESP_GATT_UUID_HW_VERSION_STR/0x2a27
2020-02-24 10:24:21 -08:00
geeksville
bb808c6c52
fix bluetooth pairing UX. enter full ON state when requested
2020-02-24 10:23:07 -08:00
geeksville
15ea13c286
start machine generating curfirmwareversion
2020-02-24 09:55:02 -08:00
geeksville
b0e0ee6934
begin to track firmware versions in a machine readable way
2020-02-24 09:46:32 -08:00
geeksville
f4791137fd
keep latest builds in their own directory - so android build can find them
2020-02-24 09:33:41 -08:00
geeksville
51b53f406e
include region code in the BLE HW version string. ie 1.0-US
2020-02-24 09:22:34 -08:00
geeksville
bd0f35ad83
fix encoding of sw version numbers in the BLE device info
2020-02-24 09:12:13 -08:00
geeksville
af5e3a0e02
TODO updates - back to Android app for now
2020-02-24 08:47:02 -08:00
geeksville
0110e1d2e0
release 0.0.4
2020-02-23 20:08:20 -08:00
geeksville
82afd234a1
don't stomp on RX packets when we have something ready to send
2020-02-23 19:51:43 -08:00
geeksville
419dd44ff6
BT sleep leak now down to about 200 bytes
2020-02-23 18:09:40 -08:00
geeksville
621beadb5c
btle leak per sleep now down to about 500 bytes.
2020-02-23 16:42:09 -08:00
geeksville
8dfd7a4a71
the ble goo is still leaking on destroy, but better
2020-02-23 14:09:52 -08:00
geeksville
a45d7be922
still leaking in the BT stack but better
2020-02-23 13:54:40 -08:00
geeksville
f9ce6a53e1
ble works again after sleep - but we are still leaking
2020-02-23 13:20:46 -08:00
geeksville
5f88174dbf
wip - finally done switching to dynamic allocs
2020-02-23 12:25:59 -08:00
geeksville
bf640bec3c
WIP - more progress switching to dynamic alloc
2020-02-23 11:46:58 -08:00
geeksville
76100e23eb
WIP make swupdate keep power on
2020-02-23 11:37:38 -08:00
geeksville
a678dd3ee8
WIP - all BT characteristics must be dynamically alloced
2020-02-23 11:05:55 -08:00
geeksville
356902d552
wip - make ble come back after sleep
2020-02-23 10:49:37 -08:00
geeksville
4906b12489
prevent ble powerdown while phone is connected
2020-02-23 08:53:52 -08:00
geeksville
316347226b
don't use a symlink to find my modified RadioHead, use a pio depdency
...
To make it more easily buildable by others.
2020-02-23 08:24:10 -08:00
geeksville
635e189007
GPS sleep mode WIP - alas this thread will have to be back burner for a
...
while because my TX wire on my ONLY T-BEAM broke while I was soldering
a jtag connector - so I can only RX from the GPS.
My other 5 boards are still delayed due to corona virus.
So I'll work on other features for now
2020-02-22 20:05:38 -08:00
geeksville
6eba792537
WIP - changing to a ublox aware GPS lib so I can put it in sleep
2020-02-22 19:08:16 -08:00
geeksville
4e06d9409a
about to work on new gps code
2020-02-22 18:21:55 -08:00
geeksville
372a3e000e
button presses are fixed
2020-02-22 18:02:44 -08:00
geeksville
5e2044dd63
blink the led very briefly every 5 secs while in light sleep
2020-02-22 17:40:31 -08:00
geeksville
a1a1ceb94d
while not perfect, good enough to move power statemachine to master
2020-02-22 14:56:19 -08:00
geeksville
ca37e50362
WIP light sleep kinda works
2020-02-22 14:45:58 -08:00
geeksville
fe2ca65a11
WIP kinda works but light sleep still busted
2020-02-22 13:50:08 -08:00
geeksville
c7894f3bc5
fsm WIP might work
2020-02-22 13:14:10 -08:00
geeksville
509f9b6e2b
WIP state machine builds
2020-02-22 12:01:59 -08:00
geeksville
045529d91f
begin cleanup of sleep code for new state machine
2020-02-21 17:01:26 -08:00
geeksville
4fa6b64c3d
beginnings of sw design doc
2020-02-21 14:55:28 -08:00
geeksville
fa4c63edc8
document the sleep management state machine
2020-02-21 14:31:15 -08:00
geeksville
aebcbf767f
GPS works better now with light-sleep but not quite done.
2020-02-21 12:24:35 -08:00
geeksville
598023f5db
PMU IRQ polarity was backwards
2020-02-21 11:39:10 -08:00
geeksville
3df81682b3
now that light-sleep kinda works, use deep-sleep far more rarely
2020-02-21 11:32:33 -08:00
geeksville
20461807f3
change screen into a periodictask, so it can be used with the scheduler
2020-02-21 10:51:36 -08:00
geeksville
a6b98bec1f
cleanup period stuff for new scheduler
2020-02-21 10:20:47 -08:00
geeksville
d4efb2c44c
burn _lots_ less cpu updating the display when idle
2020-02-21 10:13:51 -08:00
geeksville
5f3e8b5309
unify periodic timers
2020-02-21 08:41:36 -08:00
geeksville
132e54ecc5
don't turn bluetooth back on every time we exit light sleep
2020-02-21 08:09:07 -08:00
geeksville
7a745c9e65
light sleep seems to work well
2020-02-21 04:57:08 -08:00
geeksville
beccc34ef1
lower cpu freq to 80MHz
2020-02-21 03:48:13 -08:00
geeksville
7e2d765516
omg so many typos.
2020-02-20 22:15:19 -08:00
geeksville
e00d2db741
misc typos
2020-02-20 22:11:13 -08:00