# Continuous Mode or Periodic Sync for Cellular Consumption

**URL:** <https://discuss.blues.com/t/continuous-mode-or-periodic-sync-for-cellular-consumption/2413>\
**Category:** Uncategorized\
**Created:** [October 28, 2024, 10:01pm UTC](https://discuss.blues.com/t/continuous-mode-or-periodic-sync-for-cellular-consumption/2413 "2024-10-28T22:01:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas\_stepwise](https://avatars.discourse-cdn.com/v4/letter/l/9de0a6/32.png) [@lucas\_stepwise](https://discuss.blues.com/u/lucas_stepwise)\
**Post date:** [October 28, 2024, 10:01pm UTC](https://discuss.blues.com/t/continuous-mode-or-periodic-sync-for-cellular-consumption/2413/1 "2024-10-28T22:01:46Z")

</div>

Hey y’all,

This is my first time adding cellular to a project. I am working on setting up an application that will send a message to the Notehub for our firmware to execute. We don’t know when that message will come through or in what frequency. Think of it like a button press by a user. It could happen once a day or once a month. We are connected to wall power but can’t assume reliable WiFi connectivity.

Looking through the documentation, I found that the continuous mode will set up a connection and continuously sync. But at what point is our internal worth doing periodic sync? 10 minutes? Once per hour? Since we don’t know when the event will happen we were aiming for a few minutes. Any input would be awesome!

Thank you.

---

<div class="post-metadata">

**Author:** ![zfields](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/zfields/32/29_2.png) [@zfields](https://discuss.blues.com/u/zfields)\
**Post date:** [October 29, 2024, 2:41am UTC](https://discuss.blues.com/t/continuous-mode-or-periodic-sync-for-cellular-consumption/2413/2 "2024-10-29T02:41:43Z")

</div>

Hi @lucas_stepwise, we are excited to have you on the forum!

Is the signal moving inbound (Notehub → Notecard) or outbound (Notecard → Notehub)?

If it’s outbound, that’s easy. You can leave in it periodic mode and add the `"sync":true` parameter to `note.add`. It will only use the resources necessary to send the data on demand.

If it’s inbound, that’s a little more tricky. If you want the message instantly, then you must be in continuous mode with the `"sync":true` parameter added to `hub.set`. `sync` will create an open socket to the Notehub, that will instantly inform the Notecard it has a message waiting on Notehub and should perform a sync. This is the fastest and most resource intensive option. If you are happy with a cadence (5 minutes), then you can use continuous or periodic with an inbound interval.

periodic vs. continuous - Determines whether or not you will need to turn on the modem and establish a connection to the tower or just leave it connected at all times.

sync - is the parameter that can be applied to lower latency.

I would suggest playing with the different combinations to get a feel for what behavior meets the need of your application, then maybe getting an ammeter and monitoring current consumption so you can tailor any final decisions to the resources you have available.

Best,  
Zak

---

<div class="post-metadata">

**Author:** ![lucas\_stepwise](https://avatars.discourse-cdn.com/v4/letter/l/9de0a6/32.png) [@lucas\_stepwise](https://discuss.blues.com/u/lucas_stepwise)\
**Post date:** [October 29, 2024, 5:43pm UTC](https://discuss.blues.com/t/continuous-mode-or-periodic-sync-for-cellular-consumption/2413/3 "2024-10-29T17:43:01Z")

</div>

Thank you Zak!

So the signal will be primarily inbound (Notehub → Notecard) with an outbound ACK.

That makes sense. I guess from a data usage stand point, I’ve read that continuous can sometimes actually use less data since there’s a bit of overhead when establishing a connection. I’m mainly trying to minimize the data usage. Not entirely sure how to find out those two numbers (usage when continuous vs periodic).

I’ll play around with for a bit! Thank you again.

---

<div class="post-metadata">

**Author:** ![tjvantoll](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/tjvantoll/32/231_2.png) [@tjvantoll](https://discuss.blues.com/u/tjvantoll)\
**Post date:** [October 29, 2024, 7:14pm UTC](https://discuss.blues.com/t/continuous-mode-or-periodic-sync-for-cellular-consumption/2413/4 "2024-10-29T19:14:57Z")

</div>

Hey @lucas_stepwise!

A couple of other things / ideas:

- If you’re mostly worried about data usage I’d read this through this section of the documentation if you haven’t already [Low Bandwidth Design - Blues Developers](https://dev.blues.io/notecard/notecard-walkthrough/low-bandwidth-design/#data-usage-estimates).

- For measuring your own usage, Notehub creates a `_session.qo` Note every time a session ends with information on the number of bytes sent and received. [System Notefiles - Blues Developers](https://dev.blues.io/api-reference/system-notefiles/#session-qo)

TJ
