GPS in continuous hub mode

Is it not possible to use the GPS at all when the hub sync mode is continuous?

Hi @gauteh,

You can use GPS in periodic mode while the cellular modem is in continuous mode, as in:

{
  "req": "card.location.mode",
  "mode": "periodic"
}

Whenever the Notecard needs to sample location (at the interval you specify), the cellular modem will be disabled and then re-enabled after the GPS actions are complete. Note that the amount of time the cellular modem is disabled is dependent upon how long it takes to get a GPS fix (i.e. view of the sky, antenna used, etc).

Thanks,
Rob

2 Likes

I got an error that I could not use card.location.mode at all with continuous. I even had to unset from periodic to off, if that was the previous setting. I had seconds in card.location.mode set to 60.

Hi @gauteh,

If your seconds parameter is < 300 and you’re in periodic mode (see the API doc for details) the GPS will effectively remain in continuous mode since the power requirements of turning GPS on/off that frequently could be significant. Try setting seconds to a higher value.

Thanks,
Rob

1 Like

Thanks, I’ll try that.