SIM / Bytes usage history data?

In the SIM section of a device, is it possible to have a table/history of the bytes used updates?
Much like the session/events… So you can track usage vs time for example.


Hi @ndavey,

Currently that data is not available in Notehub (however, I’ll add it as a request in our engineering team backlog!). Not sure if this will help you, but the card.usage APIs can help you to actively monitor/measure data usage (see this doc for more info).


1 Like

Hi @RobLauer ,
Thanks, on the Notehub side I thought it might be another handy piece of data along with the bits that are currently there. After posting this I did come across card.usage API, useful on the device side/during development… Using it to push usage back outbound seemed not ideal but usable…


Which is the more true value? Bytes used in NoteHub or card.usage?
Bytes used in Notehub is greater than card.usage (x2).
Does card.usage not include connection overhead?

Hi @ndavey,

Great question. In short, card.usage will always be the most accurate, while the values you see in Notehub are more of an approximation.

The reason is because the values from card.usage are derived from the Notecard “asking” the cellular modem (every time the modem powers down) how many bytes were sent over the cellular network. Notehub, on the other hand, can only approximate this number by looking at the bytes transferred at a higher level (TCP/TLS). The numbers you see in Notehub under Device → SIM is updated nightly via a process that asks the cellular carrier how much data has been used for that particular SIM.

Hope that helps!


Thank @RobLauer,
I’ll do some better data collection, because my card.usage value is like 1/2 of what the sim usage says.

I had been running this (hub.get) for a couple of days, just idle (no notes activity):

“unsecure”: true,
“mode”: “continuous”,
“host”: “”,
“product”: “######”,
“device”: “####”,
“sync”: true,
“inbound”: 60,
“outbound”: 60

Did a card.restart today, and card.usage hadn’t changed much, but SIM usage went up ~95KB from one day to the next.

Tonight I’v just added (hub.set):

“duration”: 1440

And over the next few days I’ll better track and record the data (SIM vs card.usage)…


Yes, please update with your findings here. As mentioned, card.usage should be the most accurate, while there can be significant lag in the usage data you see in Notehub (depending on when we’re able to download the latest usage statistics from the cellular provider).