Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power saving sensor #2865

Merged
merged 7 commits into from
Oct 5, 2023
Merged

Power saving sensor #2865

merged 7 commits into from
Oct 5, 2023

Conversation

thebentern
Copy link
Contributor

@thebentern thebentern commented Oct 5, 2023

Closes #2845

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2023

🤖 Pull request artifacts

file commit
pr2865-firmware-2.2.11.9fbbfae.zip 9fbbfae

thebentern added a commit to meshtastic/artifacts that referenced this pull request Oct 5, 2023
@thebentern thebentern merged commit 950d5f0 into master Oct 5, 2023
57 checks passed
@thebentern thebentern deleted the sleepy-sensor branch October 5, 2023 17:42
@rpsainio
Copy link

rpsainio commented Oct 7, 2023

@thebentern Hi I just installed above mentioned pr and it seems to me that it goes to deepsleep before sending

DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] BME680 not updated, IAQ accuracy is 1 >= 3
INFO | 13:18:56 612 [EnvironmentTelemetryModule] (Sending): barometric_pressure=1013.608337, current=0.000000, gas_resistance=879.842407, relative_humidity=52.521740, temperature=23.052370, voltage=0.000000
INFO | 13:18:56 612 [EnvironmentTelemetryModule] Sending packet to mesh
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] Update DB node 0x25c12400, rx_time=3190799936, channel=0
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] handleReceived(LOCAL) (id=0x0a037494 fr=0x00 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 rxtime=3190799936 priority=70)
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] No modules interested in portnum=67, src=LOCAL
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] localSend to channel 0
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] Add packet record (id=0x0a037494 fr=0x00 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 rxtime=3190799936 priority=70)
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] Expanding short PSK #1
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] Using AES128 key!
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] ESP32 crypt fr=25c12400, num=a037494, numBytes=31!
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] enqueuing for send (id=0x0a037494 fr=0x00 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted rxtime=3190799936 priority=70)
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] txGood=5,rxGood=17,rxBad=0
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] Using channel 0 (hash 0x8)
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] Expanding short PSK #1
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] Using AES128 key!
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] ESP32 crypt fr=25c12400, num=a037494, numBytes=31!
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] decoded message (id=0x0a037494 fr=0x00 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 rxtime=3190799936 priority=70)
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] Starting next execution in 5 seconds and then going to sleep.
DEBUG | 13:18:56 612 [EnvironmentTelemetryModule] Sleeping for 600000ms, then awaking to send metrics again.
INFO | 13:18:56 612 [EnvironmentTelemetryModule] Entering deep sleep for 600 seconds
INFO | 13:18:56 612 [EnvironmentTelemetryModule] Saving /prefs/db.proto
INFO | 13:18:56 612 [EnvironmentTelemetryModule] Saving /prefs/config.proto
INFO | 13:18:57 613 [EnvironmentTelemetryModule] Saving /prefs/module.proto
INFO | 13:18:57 614 [EnvironmentTelemetryModule] Saving /prefs/channels.proto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: low-power states for TRACKER/SENSOR roles
2 participants