# Octave 3.20 FX30S Green signal and Red power LED - how to turn them off

**URL:** <https://forum.sierrawireless.com/t/octave-3-20-fx30s-green-signal-and-red-power-led-how-to-turn-them-off/24324>\
**Category:** Octave\
**Created:** [July 21, 2021, 1:56pm UTC](https://forum.sierrawireless.com/t/octave-3-20-fx30s-green-signal-and-red-power-led-how-to-turn-them-off/24324 "2021-07-21T13:56:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnofleek](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/johnofleek/32/4726_2.png) [@johnofleek](https://forum.sierrawireless.com/u/johnofleek)\
**Post date:** [July 21, 2021, 1:56pm UTC](https://forum.sierrawireless.com/t/octave-3-20-fx30s-green-signal-and-red-power-led-how-to-turn-them-off/24324/1 "2021-07-21T13:56:22Z")

</div>

Hi  
I would like to minimise FX30S current consumption by turning of all LEDs.

How do I turn off the cellular network (Green) LED ?

I have tried using the following resources LED\_PWR\_RED does turn of the RED led but LED\_PWR\_GRN does not turn off the green LED

```auto
Resource "/io/config"
 {
  "devs": [
    {
      "conf": [
        {
          "cntr": 0,
          "name": "EXT_IO2_AI",
          "res": "EXT_IO2_AI",
          "type": "AI",
          "unit": "none"
        },
        {
          "name": "LED_PWR_GRN",
          "res": "LED_PWR_GRN",
          "type": "DO"
        },
        {
          "name": "LED_PWR_RED",
          "res": "LED_PWR_RED",
          "type": "DO"
        }
      ],
      "type": "basic"
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![djudkins](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@djudkins](https://forum.sierrawireless.com/u/djudkins)\
**Post date:** [July 21, 2021, 5:12pm UTC](https://forum.sierrawireless.com/t/octave-3-20-fx30s-green-signal-and-red-power-led-how-to-turn-them-off/24324/2 "2021-07-21T17:12:25Z")

</div>

Hi John

For the Power LED, to turn it off  
LED\_PWR\_GRN\_FCN = true /\* Allows control of Power LED  
LED\_PWR\_GRN = true  
LED\_PWR\_RED = false

I know this seems inverted and yes it is to me. We have JIRA tickets to change but it would impact a lot of existing users code.

For the USER\_LED, this is the logic from one of my edge actions  
grn\_led = true;  
red\_led = false;  
fx30\_user\_led = “red”

```
 grn_led = true;
 red_led = true;
 fx30_user_led = "off"

  grn_led = false;
  red_led = true;
  fx30_user_led = "green"

  grn_led = false;
  red_led = false;
  fx30_user_led = "amber"
```

---

<div class="post-metadata">

**Author:** ![johnofleek](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/johnofleek/32/4726_2.png) [@johnofleek](https://forum.sierrawireless.com/u/johnofleek)\
**Post date:** [July 21, 2021, 8:58pm UTC](https://forum.sierrawireless.com/t/octave-3-20-fx30s-green-signal-and-red-power-led-how-to-turn-them-off/24324/3 "2021-07-21T20:58:19Z")

</div>

Hi David

Many thanks for the prompt reply - that makes sense (as much as the FX30(S) hardware ever does :))

I have noticed that following entry then exit from ULPM the PWR LEDs are switched back on. Octave (in developer mode) thinks that the PWR LEDS are off. Is this expected behaviour?

For anyone else messing with power saving this is the io/config that I used to enable access to the PWR GREEN (cellular) and PWR RED (power) LEDs

```auto
{
  "devs": [
    {
      "conf": [
        {
          "name": "LED_PWR_GRN",
          "res": "LED_PWR_GRN",
          "type": "DO"
        },
        {
          "name": "LED_PWR_GRN_FCN",
          "res": "LED_PWR_GRN_FCN",
          "type": "DO"
        },
        {
          "name": "LED_PWR_RED",
          "res": "LED_PWR_RED",
          "type": "DO"
        }
      ],
      "type": "basic"
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![djudkins](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@djudkins](https://forum.sierrawireless.com/u/djudkins)\
**Post date:** [July 22, 2021, 2:03am UTC](https://forum.sierrawireless.com/t/octave-3-20-fx30s-green-signal-and-red-power-led-how-to-turn-them-off/24324/4 "2021-07-22T02:03:26Z")

</div>

Hey John,

I will look into the ULPM / LED behavior.

---

<div class="post-metadata">

**Author:** ![johnofleek](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/johnofleek/32/4726_2.png) [@johnofleek](https://forum.sierrawireless.com/u/johnofleek)\
**Post date:** [July 23, 2021, 11:15am UTC](https://forum.sierrawireless.com/t/octave-3-20-fx30s-green-signal-and-red-power-led-how-to-turn-them-off/24324/5 "2021-07-23T11:15:12Z")

</div>

Current bodge / workaround for FX30S PWR LED volatility

**Note** that this doesn’t fix the issue of the FX30S LEDs behaviour during the period of time (~50 seconds) between ULPM exit ( or POR) and the Octave Edge apps running correctly. During this period the LED\_PWR\_RED is on, LED\_PWR\_GRN is on when the Radio connects to the network. Consuming a chunk of current.

```auto
/*

  To save power the FX30 RED and Green "PWR" LEDs need to off
  With Current 3.2.1 FW the LEDs revert to default after system POR

  Intention is for this handler to run once on boot
  The only way I have found to trigger this handler is with a one shot auto timer

  Notes

  A one shot timer is actually 2 shot  
  First shot event.value.state == "running"
  Second shot event.value.state == "idle"

  There will be a WP7702 boot delay ~25 seconds before this handler fires
  Not great for power saving because the RED led will be on anyway
*/

function (event) {

  var retVal = {};

  console.log(event);

  if(event.value.state == "running") {
    retVal["dh://io/LED_PWR_GRN_FCN/value"] = [true];
    retVal["dh://io/LED_PWR_GRN/value"] = [true];
    retVal["dh://io/LED_PWR_RED/value"] = [false];
    retVal["cl://boot_oneshot"] = [{ boot__oneshot: "set to correct values" }];
  }

  return retVal;
}

```

---

<div class="post-metadata">

**Author:** ![djudkins](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@djudkins](https://forum.sierrawireless.com/u/djudkins)\
**Post date:** [July 23, 2021, 5:41pm UTC](https://forum.sierrawireless.com/t/octave-3-20-fx30s-green-signal-and-red-power-led-how-to-turn-them-off/24324/6 "2021-07-23T17:41:31Z")

</div>

Very nice and helpful John
