Size of data base64 encoded data

Hi,

what is the size counted against the quota for base64-encoded payload? Is it less when a template is set up? Is it transmitted in base64 or in a binary format?

Is the quota counted against data routed out of the notehub or for every note that is synced to the notehub?

Best regards, Gaute

HI @gauteh,

When you say quota do you mean the bundled cellular data ?

thanks

Sean

Yes, how can I estimate how much of the bundled cellular data will be used. There’s isn’t any mention of total data in the subscription plans at the notehub. If I subscribe to one of the paid plans, may I use more data than 500mb for each notecard?

Regards, Gaute

I now tried to send some data as base64 encoded payload, but I am getting the error payload too large 250 max. This is really frustrating to work with, since it is not documented and everything has to be trial and error. Can the payload be a maximum of 250 bytes?! That’s not very much!

I need to send about 8 kb size notes. Do I have to run the notecard in continuous mode to be able to use web.post (as suggested in other threads here). What are the size limits in that case?

I’ll try to answer the many different questions.

If a template is not used then note payloads are limited to 250 bytes (I will request to have that added to the documentation). However, if a template is used the payload size can be many kilobytes - 8kb would be fine. In terms of data usage over the air if you are only using binary payloads templates do not offer an advantage - though they allow for much larger payloads. Templates offer significant data savings if your notes are mostly JSON bodies, because the templated notes compress the JSON into a binary array of the field values.

Although the data is sent to the notecard base64 encoded it is sent as binary over the air. It is converted back to base64 at Notehub to facilitate viewing and routing via text based protocols.

Estimating data usage over the air involves much more than just the note content. If the notecard is in continuous mode then syncing a single note will typically not involve much overhead - there is a request / response sequence and, of course TCP/IP headers - perhaps under 1k bytes. However if the Notecard is in periodic mode and has to establish a connection to Notehub to sync the note then there is extra overhead of establishing the TCP/IP connection (~1k) and if the note is in a secure notefile (.qos/.qis) a TLS session is established, which typically uses another 6k of data over the air. Note that, after being powered off the Notecard will make a TLS connection to Notehub on the first sync after power is re-applied, so the first sync after power up will consume an extra 6k of data. For this reason we recommend leaving the Notecard permanently powered up - the standby power consumption is less than 10uA, when not connected to Notehub.

Therefore, for the lowest data usage you would leave the Notecard in a continuous connection to Notehub - the only drawback to this is significantly higher power consumption (~20mA from memory) versus the 10uA standby consumption in periodic mode. However if your application is not battery powered, this may be the better approach.

Finally, rather than trying to make an estimate of data usage it may be easier to run the Notecard for a period and measure the data usage, using {"req":"card.usage.get"}.
https://dev.blues.io/reference/notecard-api/card-requests/#card-usage-get

Note that the Notecard only updates its usage when it disconnects from Notehub, so if you run it in continuous mode you would need to disconnect it periodically to check the updated usage data. You can achieve this by running these commands:

{"req":"hub.set","mode":"off"}
<wait for 30 seconds>
{"req":"card.usage.get"}
{"req":"hub.set","mode":"continuous"}

Thanks
Sean

Thanks a lot for the answer. I am sending time series of 16 bit floats, and I was planning to set up templates anyway so that works fine.

So it might actually be more bandwidth efficient for me to send the arrays of floats in the note body as templated JSON, rather than encoding them as base64? I will probably try to compress the floats and in that case I will have an array of u8’s either for templated body or base64 payload.

It is battery powered, so I think I have to rather turn on continuous mode for sending rather than staying in continuous all the time. In this case it is probably better to be unconnected and sync when necessary. I will cache as much as possible of the data on the MCU before adding the notes, so that syncs can be more infrequent and the notecard can stay mostly in standby mode.

Thanks for the tip on estimating usage.

I would expect the data usage will be lower if your host MCU performs any possible compression and then supplies the data to the Notecard as a base64 encoded payload. Even if templates are used I would expect JSON bodies to be less efficient than a packed payload - but that’s just a hunch.

If your application is battery based you could use periodic mode - there is no advantage to using continuous mode if you are enabling and disabling it. You can also force a particular notefile to be sync’d outside of the periodic schedule by appending sync:true to the note.add - so your application has full control. It’s always a good idea to setup a fallback inbound sync duration, just in case the host MCU misbehaves so that the Notecard will check in to Notehub once a day or once a week:

{"req":"hub.set","mode":"periodic","inbound":1440}

I don’t know if the timestamp of the 16 bit floats is important, but one trade-off you might want to consider is to submit the notes to the notecard more frequently, and with smaller payloads, so that the Notecard captures the time at which the note was added. The notes will then sit in the Notecard filesystem until the next sync. The Notecard LPUART and I2C can both accept note.add while the Notecard is running at the standby current of 10uA.

Thanks
Sean

Thanks for the tips. I think I will send a timestamp in the JSON body with each payload. That’s good to know that the notecard can receive and enqueue the notes while in standby, also good point to configure a regular sync regardless of whether MCU acts up.

Is it possible to use UART over the TX/RX pins from the MCU? Would it be able to operate at a higher speed than the I2C?

I’m trying to send both body and payload with a template, the payload is sent just fine (also with about 8kB!!), and template is true in the response: but the body is empty in the routed event. Any idea what might be going on?

It also seems like the payload is padded with a bunch of NULs (AAAAA…), more than what I specified in the length of the template. Why is that? That means I also need to send a length parameter of the base64 string. I have confirmed that the transmitted base64 string is the same as the length specified in the template.

The body in this case was a timestamp and an offset, both 4 byte ints. It seems that if I set the value to 0 when adding the body, the fields are simply omitted.

@gauteh could you give an example so that we can try to recreate the problem, and also check the response of {"req":"card.version"} to make sure you are running up to date firmware (the LTS 2.1.1 build is the most recent).

If your Notecard is running older firmware please update to 2.1.1 before going any further:

Thanks
Sean

It also seems like the payload is padded with a bunch of NULs (AAAAA…), more than what I specified in the length of the template.

Do you mean that when you take the base64 string received by Notehub and run it through a base64 decoder that the binary data produced is longer than the payload length specified in the note.template ?

The body in this case was a timestamp and an offset , both 4 byte ints. It seems that if I set the value to 0 when adding the body, the fields are simply omitted.

I should have read all of the posts before replying. This is the JSON “omit if empty” feature, which reduces data over the air by eliminating “null” fields.

The “omitempty” option specifies that the field should be omitted from the encoding if the field has an empty value, defined as false, 0, a nil pointer, a nil interface value, and any empty array, slice, map, or string.

Any missing fields are implicitly zero / null / false.

1 Like

This base64 string:

AAAAPABAAEIARABFAEYARwBIgEgASYBJAEqASgBLgEsATEBMgEzATABNQE2ATcBNAE5AToBOwE4AT0BPgE/ATwBQIFBAUGBQgFCgUMBQ4FAAUSBRQFFgUYBRoFHAUeBRAFIgUkBSYFKAUqBSwFLgUgBTIFNAU2BTgFOgU8BT4FMAVBBUIFQwVEBUUFRgVHBUgFSQVKBUsFTAVNBU4FTwVABVEFUgVTBVQFVQVWBVcFWAVZBVoFWwVcBV0FXgVfBVAFYQViBWMFZAVlBWYFZwVoBWkFagVrBWwFbQVuBW8FYAVxBXIFcwV0BXUFdgV3BXgFeQV6BXsFfAV9BX4FfwVwBYCFgQWBhYIFgoWDBYOFhAWEhYUFhYWGBYaFhwWHhYgFiIWJBYmFigWKhYsFi4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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

The length I have specified in the template is 8196.

The DFU version from notehub is:

	Fri 02:03:33 PM 	cain 	1.5.6.13807 	1.5.6.13807

omit if empty won’t present a big problem for my use case, but it is ambiguous: a missing value is not the same as 0 always. Anyway, would be good to see that in the docs :slight_smile:

Makes sense and there probably was some sort of “heads up” warning to developers I missed…
Nonetheless that 250 bytes limit broke code deployed that used to work :frowning:

@RobLauer

The omitempty feature is big problem in my case , speed zero is valid and can’t omit this value. How to suppress this property when using template?

Hi @Srihari,

It’s not possible to override the omitempty feature when using templates. My best recommendation is to account for this in your firmware and/or cloud (e.g. if the fields is missing, assume 0…or send a “speed” of -1 and translate appropriately on the backend).

Rob

Thank you for prompt response.
Unfortunately, many counters and fields will provide zero, wrong data will feed to end systems if I use notetemplates feature.

Because of this limitation, I can not store more than 100 files when notecard last the connection.

I have to design new architecture store the files in external memory and read & send those file through notecard once communication restored.

I hope blues team will introduce new property/field to give a choice to user whether the omitempty property use or not.

Hi @Srihari,

There is actually an undocumented (but will be soon) argument you can add to your note.add request that will ignore OMITEMPTY for templates. Try using "full":true.

3 Likes