# About the "imm" location trigger

**URL:** <https://community.particle.io/t/about-the-imm-location-trigger/63843>\
**Category:** Firmware\
**Tags:** tracker\
**Created:** [January 18, 2023, 9:29am UTC](https://community.particle.io/t/about-the-imm-location-trigger/63843 "2023-01-18T09:29:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.motto](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@thomas.motto](https://community.particle.io/u/thomas.motto)\
**Post date:** [January 18, 2023, 9:29am UTC](https://community.particle.io/t/about-the-imm-location-trigger/63843/1 "2023-01-18T09:29:30Z")

</div>

Hi, I’m currently using the tracker-edge firmware and I was wondering what was the utility of the “imm” trigger in the firmware. I’m using the asset tracker config and i’m basically using the radius feature coupled to the minimal interval (6h in my case) to get some location events. When reseting my device, most of the time when the lock takes time, my device will trigger a location event “imm” which does not contain any lat/lng data (lock: 0). I’d prefer waiting a bit more, because this event is starting my min interval and breaks the radius feature (no geo point, meaning no coordinates to compare with radius).

I’ve removed the line that triggers the “imm” location event, but I was wondering if it might have an impact in another place.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [January 18, 2023, 1:52pm UTC](https://community.particle.io/t/about-the-imm-location-trigger/63843/2 "2023-01-18T13:52:37Z")

</div>

What are your settings in the [motion tab](https://docs.particle.io/getting-started/console/console/#motion-settings). The imm trigger is the IMU motion detection (accelerometer), which is unrelated to your GNSS position which is why it can be triggered when you have no fix yet.

---

<div class="post-metadata">

**Author:** ![thomas.motto](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@thomas.motto](https://community.particle.io/u/thomas.motto)\
**Post date:** [January 18, 2023, 2:01pm UTC](https://community.particle.io/t/about-the-imm-location-trigger/63843/3 "2023-01-18T14:01:51Z")

</div>

I’m using this configuration:

 ![Capture d’écran 2023-01-18 à 14.58.15](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/5/3550939b7339efc788e519065a5324a1c211067e.png)

Is this not “imu\_m” and “imu\_g” that is the trigger for this config as specified in this doc : [Cloud API reference | Reference Documentation | Particle](https://docs.particle.io/reference/cloud-apis/api/#trig)

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [January 18, 2023, 3:47pm UTC](https://community.particle.io/t/about-the-imm-location-trigger/63843/4 "2023-01-18T15:47:36Z")

</div>

Oh, sorry. I was thinking of the wrong key. The `imm` key is used when it takes too long to connect to the cloud. You can comment out that line.

---

<div class="post-metadata">

**Author:** ![thomas.motto](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@thomas.motto](https://community.particle.io/u/thomas.motto)\
**Post date:** [January 18, 2023, 4:51pm UTC](https://community.particle.io/t/about-the-imm-location-trigger/63843/5 "2023-01-18T16:51:57Z")

</div>

Thanks ! Do you have any idea why It was added in the code? It is not documented in the Cloud API link I referenced.

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [January 18, 2023, 6:56pm UTC](https://community.particle.io/t/about-the-imm-location-trigger/63843/6 "2023-01-18T18:56:52Z")

</div>

Huh. It was added in Tracker Edge v10 when sleep support was added, 2 years ago. It was just never documented. Since it doesn’t happen on most connections, apparently no one ever noticed before.

---

<div class="post-metadata">

**Author:** ![eberseth](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/eberseth/32/25386_2.png) [@eberseth](https://community.particle.io/u/eberseth)\
**Post date:** [January 18, 2023, 9:43pm UTC](https://community.particle.io/t/about-the-imm-location-trigger/63843/7 "2023-01-18T21:43:16Z")

</div>

The min and max publish rates set bounds for how often the device should publish. If you have a bunch of triggers that warrant a `loc` publish then they will be sent out no more frequent than the max update rate which prevents flooding of `loc` events. Conversely, if no triggers are generated the minimum update rate allows for a guaranteed `loc` publish so you know the device is alive and can track it. The `imm` trigger allows the application to break the min/max rules and publish anyways.

The `imm` trigger can also bypass the max connecting time parameter that generally waits for GNSS lock and connected cellular. The `{"cmd":"get_loc"}` ([doc](https://github.com/particle-iot/tracker-edge/wiki/Various-Console-Commands#general-commands)) is one example to assert an immediate trigger.

Battery alerts and forced publishes before going to sleep are other places in Tracker Edge that use the immediate trigger.

---

<div class="post-metadata">

**Author:** ![thomas.motto](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@thomas.motto](https://community.particle.io/u/thomas.motto)\
**Post date:** [January 19, 2023, 9:19am UTC](https://community.particle.io/t/about-the-imm-location-trigger/63843/8 "2023-01-19T09:19:04Z")

</div>

Very clear, thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/2/3291e3c9351789fe8620ae5bcec8d3fec67ff221.png) [@system](https://community.particle.io/u/system)\
**Post date:** [July 20, 2023, 9:19pm UTC](https://community.particle.io/t/about-the-imm-location-trigger/63843/9 "2023-07-20T21:19:26Z")

</div>

Closed on July 20, 2023, 9:19pm UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
