This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Live fetch amount of bytes sent/received in modem

Hi

We have a budget every month of max bytes we can send (unsure about receive, but prob not included).

We need to be able to ask the modem for the actual NUMBER of bytes sent, including at any level of firmware, ie framing bytes, tcp bytes, encryption bytes, hidden bytes due to x.509 exchange handshake hello, key exchange etc, and also including the bytes we send with the  write call.

This is absolutely necessary to bound the data sent for our customer so they can limit and not go over the monthly budget.

How do you suggest we handle this?

We can only know the bytes written with the lowest level we have access to, and thats the socket.write. The rest done inside the modem, is done by Nordics secret modem firmware. We need access to a counter keeping track of the amount of bytes written to the base station. We need to be able to fetch this via an AT-command. At least.the bytes written, if not also available, the bytes received (but probably not counted towards a reception budget from the operator).

Also a clear command for the counter will be needed to start from 0, next month, or whenever we need to clear the counter.

Johan

Parents Reply
  • When can you get a response from the modem team?

    We need answers asap here, in the middle of a design that relies on protecting our customer from limiting the monthly bandwidth budget. It's not enough that we know how much we write on the socket, you also add data by underlying mechanisms. How hard can it be to have a counter for every byte written in the modem firmware? And to implement 2 commands for fetching and clearing it? We would like to know!

Children
No Data
Related