Switching to continuous mode and GPS polling

Hi all,

I was wondering if any one could tell me what happens in the following scenario:

  • GPS Configured in polling mode say 1 hour
  • Notecard mode is changed from “minimal” → “continuous” to make a web request and then switched back to minimal

What happens here on the off chance the GPS is performing an update at the same time?
Does the move to continuous mode get blocked/error?

Hi @alan01252 and welcome to the Blues community!

The general rule to remember if you’re in continuous mode for either cell or GPS, when the other one tries to initiate connectivity, it will take priority.

More specifically:

  • When hub.set is in continuous mode, GPS can take priority (in that when GPS needs to turn on, the Notecard disconnects from Notehub temporarily)
  • When card.location.mode is in continuous mode, cell can take priority (in that when cell needs to turn on, it stops GPS temporarily)

Hope that helps!
Rob

Thanks Rob,

So just to confirm:

Scenario 1:

  • When the Notecard is in hub continuous mode and the GPS polling interval is reached, the GPS mode will take priority, and the Notecard will drop out of hub continuous mode.

Scenario 2:

  • If the Notecard is in minimal mode and tries to switch to hub continuous mode while the GPS polling is in progress, the hub continuous mode will immediately get priority.

Is that right?

Hi @alan01252,

Yes that is accurate. Also the Notecard will try to re-establish a continuous session once the GPS module is done.

Yes. Effectively whatever tries to initiate a new connection the latest will be given priority. So if something (GPS) is in progress, and the other (cell) tries to create a connection, cell will take priority.

1 Like