# Card.voltage mode returning USB when not connected to USB

**URL:** <https://discuss.blues.com/t/card-voltage-mode-returning-usb-when-not-connected-to-usb/2649>\
**Category:** Uncategorized\
**Created:** [January 13, 2025, 10:10am UTC](https://discuss.blues.com/t/card-voltage-mode-returning-usb-when-not-connected-to-usb/2649 "2025-01-13T10:10:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssozonoff](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@ssozonoff](https://discuss.blues.com/u/ssozonoff)\
**Post date:** [January 13, 2025, 10:10am UTC](https://discuss.blues.com/t/card-voltage-mode-returning-usb-when-not-connected-to-usb/2649/1 "2025-01-13T10:10:58Z")

</div>

Hi,

Documentation is a little confusing here [card Requests - API Reference - Blues Developers](https://dev.blues.io/api-reference/notecard-api/card-requests/latest/#card-voltage).

In the response members section it states that “mode” can return USB if the card is connected to USB. My notecard is not connected to USB but it is installed on a Notecarrier F which is connected to a Solar panel.

Is it safe to say that the returning of USB for the mode is related to a voltage threshold and so when the battery is being charged by the solar panel we can also get USB for the mode field ?

Thanks,  
Serge

---

<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:** [January 13, 2025, 5:43pm UTC](https://discuss.blues.com/t/card-voltage-mode-returning-usb-when-not-connected-to-usb/2649/2 "2025-01-13T17:43:13Z")

</div>

Hi @ssozonoff,

You should only see `"mode": "usb"` paired with `"usb":true` in the response, and only if the Notecard is directly powered via the USB port on its host Notecarrier. If you’re seeing other behavior, please let us know and we can look into this more closely!

Rob

---

<div class="post-metadata">

**Author:** ![ssozonoff](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@ssozonoff](https://discuss.blues.com/u/ssozonoff)\
**Post date:** [January 13, 2025, 6:48pm UTC](https://discuss.blues.com/t/card-voltage-mode-returning-usb-when-not-connected-to-usb/2649/3 "2025-01-13T18:48:54Z")

</div>

Hi @RobLauer,

So I am definitely seeing mode change between high and USB with the Notecarrier F when the LIPO is being charged via a solar panel. I am running Notecard firmware 6.2.2.16520.

And it is not accompanied by “usb”:true

The unit is in the field so most certainly not connected to a USB source.

Kind Thanks,  
Serge

---

<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:** [January 14, 2025, 12:40am UTC](https://discuss.blues.com/t/card-voltage-mode-returning-usb-when-not-connected-to-usb/2649/4 "2025-01-14T00:40:22Z")

</div>

Hi @ssozonoff,

Just to confirm - you’re using the green Notecarrier AF? And not the black Notecarrier A or F? Just want to be sure. Thanks!

---

<div class="post-metadata">

**Author:** ![ssozonoff](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@ssozonoff](https://discuss.blues.com/u/ssozonoff)\
**Post date:** [January 14, 2025, 6:55am UTC](https://discuss.blues.com/t/card-voltage-mode-returning-usb-when-not-connected-to-usb/2649/5 "2025-01-14T06:55:10Z")

</div>

Sorry that was a typo. Notecarrier F is what I am using.

---

<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:** [January 14, 2025, 10:11pm UTC](https://discuss.blues.com/t/card-voltage-mode-returning-usb-when-not-connected-to-usb/2649/6 "2025-01-14T22:11:10Z")

</div>

Hi @ssozonoff,

Can you please issue this request and let me know what the response is?

```auto
{
  "req": "card.voltage",
  "mode": "?"
}

```

---

<div class="post-metadata">

**Author:** ![ssozonoff](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@ssozonoff](https://discuss.blues.com/u/ssozonoff)\
**Post date:** [January 15, 2025, 7:56am UTC](https://discuss.blues.com/t/card-voltage-mode-returning-usb-when-not-connected-to-usb/2649/7 "2025-01-15T07:56:09Z")

</div>

Hey Rob,

So at the moment I cannot, the device is up in the mountains accessible only by helicopter.  
I will perform that command as soon as I get a chance however.

Thanks,  
Serge

---

<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:** [January 15, 2025, 2:00pm UTC](https://discuss.blues.com/t/card-voltage-mode-returning-usb-when-not-connected-to-usb/2649/8 "2025-01-15T14:00:32Z")

</div>

Ah ok, good to know! What I expect to see returned from your device is something like:

```auto
{"mode":"usb"}

```

Why? My suspicion is you may have run a command like:

```auto
{
  "req": "card.voltage",
  "mode": "usb"
}

```

And why would that be an issue? Because `mode` is an arbitrary string that must conform to a pattern of `label:voltage;label:voltage;` like this:

```auto
"usb:4.6;high:4.0;normal:3.5;low:3.2;dead:0"

```

And yes, it can also be one of our shortcuts/aliases of “lipo”, “l91”, “alkaline”, “tad”, “lic”, or “default” which map to their own custom strings that are documented in the [card.voltage API docs](https://dev.blues.io/api-reference/notecard-api/card-requests/latest/#card-voltage).

Therefore, if you’re always seeing “usb” returned, it means that you either set this (which is bad because the Notecard interprets this as returning “usb” for any voltage level):

```auto
{
  "req": "card.voltage",
  "mode": "usb"
}

```

Or maybe you customized the string to have the “usb” value be low enough that your LiPo battery’s voltage is high enough to trigger it, like so:

```auto
{
  "req": "card.voltage",
  "mode": "usb:4.0;low:3.2;dead:0"
}

```
