# Local Notecard data - bearings

**URL:** <https://discuss.blues.com/t/local-notecard-data-bearings/977>\
**Category:** Notecard API\
**Created:** [September 7, 2022, 2:47pm UTC](https://discuss.blues.com/t/local-notecard-data-bearings/977 "2022-09-07T14:47:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimC](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@JimC](https://discuss.blues.com/u/JimC)\
**Post date:** [September 7, 2022, 2:47pm UTC](https://discuss.blues.com/t/local-notecard-data-bearings/977/1 "2022-09-07T14:47:23Z")

</div>

For local processing on my Raspberry PI I can request from my notecard battery voltage via:  
req = {“req”: “card.voltage”}

I want to do the same for bearings, which I see is part of \_track.qo, but locally.

---

<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:** [September 7, 2022, 3:40pm UTC](https://discuss.blues.com/t/local-notecard-data-bearings/977/2 "2022-09-07T15:40:00Z")

</div>

Hi @JimC ,

You’re in luck!

We just added a new section to our tracking guide to [describe how to take an immediate GPS reading](https://dev.blues.io/guides-and-tutorials/notecard-guides/asset-tracking/#taking-an-immediate-reading).

You will want to use:  
`req = {“req”: “card.location”}`

Be sure to follow the guide to ensure you get the most accurate information available.

Happy Hacking,  
Zak

---

<div class="post-metadata">

**Author:** ![JimC](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@JimC](https://discuss.blues.com/u/JimC)\
**Post date:** [November 2, 2022, 9:39pm UTC](https://discuss.blues.com/t/local-notecard-data-bearings/977/3 "2022-11-02T21:39:31Z")

</div>

I have never been able to get a signal from a cell tower. Then I realized by firmware version was 1.5.5. Did an upgrade to the latest. Now my regular data events do not work (via add). I see the env.db events (very long compared to the prior rev of firmware) and my data buried in this event at the end, but never produces a data.go file like the past. I did a OFA update, is there something else I need to do?

---

<div class="post-metadata">

**Author:** ![JimC](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@JimC](https://discuss.blues.com/u/JimC)\
**Post date:** [November 4, 2022, 8:10pm UTC](https://discuss.blues.com/t/local-notecard-data-bearings/977/4 "2022-11-04T20:10:59Z")

</div>

I never recevied a clean OFA status until 3 days later. Now my data passes correctly to the notehub. So back to my original ask. I have notecarrier - Pi and the only way to get a GPS signal is to move my antenna to the GPS connector. Any suggestions on an antenna? Also I assume I need to activated it via the dip switch, correct?

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [November 4, 2022, 8:20pm UTC](https://discuss.blues.com/t/local-notecard-data-bearings/977/5 "2022-11-04T20:20:16Z")

</div>

Hi @JimC,

Yes, you do need an antenna attached to the U.FL GPS port to utilize GPS/GNSS functionality. This dual LTE/GPS antenna is a nice one that I use [from Pulse](https://www.mouser.com/ProductDetail/Pulse-Electronics/W3906B0100?qs=pfd5qewlna5HIl%2F39ymRrw%3D%3D).

The `active` dip switch on the back of the Pi HAT specifies whether you are using an active or passive GPS antenna. The one I linked above is passive, so you would leave that off.

Rob

---

<div class="post-metadata">

**Author:** ![JimC](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@JimC](https://discuss.blues.com/u/JimC)\
**Post date:** [November 15, 2022, 2:35am UTC](https://discuss.blues.com/t/local-notecard-data-bearings/977/6 "2022-11-15T02:35:56Z")

</div>

Ended up buying an active antenna, but it seems like I can only get a reading every 90 seconds, am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [November 15, 2022, 2:22pm UTC](https://discuss.blues.com/t/local-notecard-data-bearings/977/7 "2022-11-15T14:22:10Z")

</div>

Hi @JimC,

The frequency at which you acquire GPS location information depends on how you have it configured. It’s important to remember that the Notecard is, by default, a low-power device. Therefore, the GPS module won’t activate unless the onboard accelerometer on the Notecard has detected motion since the last location sampling. Also the cellular modem and GPS cannot be enabled at the same time, so one has to turn off momentarily while the other is active (again, depends on your exact configuration).

I recommend looking closely at the [card.location.mode API](https://dev.blues.io/reference/notecard-api/card-requests/#card-location-mode) as there are many different ways to configure location-sampling settings. Otherwise if you want to describe your exact use case, we can probably suggest some settings to try!

Thanks,  
Rob

---

<div class="post-metadata">

**Author:** ![JimC](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@JimC](https://discuss.blues.com/u/JimC)\
**Post date:** [November 15, 2022, 3:46pm UTC](https://discuss.blues.com/t/local-notecard-data-bearings/977/8 "2022-11-15T15:46:47Z")

</div>

You said something I missed about cell and GPS modems can not be enabled at the same time. How do I disable cell mode, was not clear to me in documentation?

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [November 15, 2022, 4:17pm UTC](https://discuss.blues.com/t/local-notecard-data-bearings/977/9 "2022-11-15T16:17:28Z")

</div>

Hi @JimC,

Sure - take a look at our [Working with GPS on the Notecard](https://dev.blues.io/notecard/notecard-walkthrough/time-and-location-requests/#working-with-gps-on-the-notecard) doc, as I think that will help explain how GPS works for you. At a high level, the `mode` of your `hub.set` and `card.location.mode` requests allow you to configure whether cellular and GPS (respectively) are connected periodically or continuously. Just note that both cannot be in `continuous` mode.

Rob
