made new settings with burst mode as default

This commit is contained in:
2025-11-29 16:12:40 -07:00
parent 2975c2cb45
commit 59b083d7c1
2 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
# Notes # Notes
* using esp-idf v5.5.1 for testin * using esp-idf v5.5.1 for testin
## Wireshark ## Wireshark
* filter for finding these adverts by mac is `btle.advertising_address == xx:xx:xx:xx:xx || btle.scanning_address == xx:xx:xx:xx:xx` * filter for finding these adverts by mac is `btle.advertising_address == xx:xx:xx:xx:xx || btle.scanning_address == xx:xx:xx:xx:xx || btle.target_address == xx:xx:xx:xx:xx`
* filter for narrowing to without mac is `(btcommon.eir_ad.entry.type == 0x01) && (btle.advertising_header == 0x2506)` * filter for narrowing to without mac is `(btcommon.eir_ad.entry.type == 0x01) && (btle.advertising_header == 0x2506)`
## Voltage reading ## Voltage reading
![Wiring SDC to bat voltage to measure with ADC0](assets/read-bat-voltage-schematic.png) ![Wiring SDC to bat voltage to measure with ADC0](assets/read-bat-voltage-schematic.png)
@@ -29,7 +29,7 @@ export to excel
bfmld normal-10.230s-10ms-nousb-noant-109f09e- bfmld normal-10.230s-10ms-nousb-noant-109f09e-
bfm burst-60s-200ms-10ms-3b-nousb-noant-109f09e- bfm burst-60s-200ms-10ms-3b-nousb-noant-109f09e-
next next
burst-120s-40ms-0ms-4b-nousb-noant-109f09e- burst-120s-40ms-0ms-4b-nousb-noant-2975c2c-
get values with (EXCEL paste into cell D1) get values with (EXCEL paste into cell D1)
<table border="1"> <table border="1">
<tr> <tr>
+7 -8
View File
@@ -1,16 +1,16 @@
menu "PrincessPiTracker Config" menu "PrincessPiTracker Config"
config ADVERTISEMENT_INTERVAL config ADVERTISEMENT_INTERVAL
int "Interval between advertisements in milliseconds" int "Interval between advertisements in milliseconds"
default 10230 default 40
range 12 10240 range 12 10240
help help
Int number of milliseconds (ms) in between advertisements min 12 max 10240 Int number of milliseconds (ms) in between advertisements min 12 max 10240
10230 for max delay with 10ms random 40 for max delay with 10ms random
200 for deep sleep burst mode 200 for deep sleep burst mode
config ADVERTISEMENT_INTERVAL_JITTER_MS config ADVERTISEMENT_INTERVAL_JITTER_MS
int "Max Jitter to add to Advertisement Interval in milliseconds" int "Max Jitter to add to Advertisement Interval in milliseconds"
default 10 default 0
range 0 500 range 0 500
help help
Int number of milliseconds (ms) max jitter to add to advertisement interval min 0 max 2000 Int number of milliseconds (ms) max jitter to add to advertisement interval min 0 max 2000
@@ -26,8 +26,7 @@ menu "PrincessPiTracker Config"
default y default y
help help
Enable this option to disable USB Serial and Broadcasting while charging to save power. Enable this option to disable USB Serial and Broadcasting while charging to save power.
config DEVICE_NAME config DEVICE_NAME
string "BLE Device Name" string "BLE Device Name"
default "PrincesiPiTracker" default "PrincesiPiTracker"
@@ -47,13 +46,13 @@ menu "PrincessPiTracker Config"
config DEEP_SLEEP_BURST_MODE config DEEP_SLEEP_BURST_MODE
bool "Enable Deep Sleep Burst Mode" bool "Enable Deep Sleep Burst Mode"
default n default y
help help
Enable this option to wake up, send multiple advertisements in a burst, then go back to deep sleep. Enable this option to wake up, send multiple advertisements in a burst, then go back to deep sleep.
config DEEP_SLEEP_BURST_COUNT config DEEP_SLEEP_BURST_COUNT
int "Number of Advertisements per Burst" int "Number of Advertisements per Burst"
default 3 default 4
range 1 100 range 1 100
depends on DEEP_SLEEP_BURST_MODE depends on DEEP_SLEEP_BURST_MODE
help help
@@ -61,7 +60,7 @@ menu "PrincessPiTracker Config"
config DEEP_SLEEP_DURATION_S config DEEP_SLEEP_DURATION_S
int "Deep Sleep Duration in seconds" int "Deep Sleep Duration in seconds"
default 60 default 120
range 0 86400 range 0 86400
depends on DEEP_SLEEP_BURST_MODE depends on DEEP_SLEEP_BURST_MODE
help help