Individual data usage identification of LTE / MQTT connections

Hi Dev team,

I have an application working on the Thingy91 that sends the data of the sensors through MQTT to our server. I was interested in knowing the data usage of the whole sending process as such.

I found an AT command : AT%XCONNSTAT that gives me the details of the overall data transmission in kB which is really good.

However, I was more interested in knowing about the details of the individual data usage of MQTT connection, the LTE connection to the carrier etc.

I usually connect to the LTE and keep it in the PSM mode, and connect to MQTT to send the data and then disconnect it.

Is there a way to estimate as to how much data the MQTT connection consumes and how much the LTE connection consumes individually ?

Regards,

Adeel.

  • Hi,

     

    Is there a way to estimate as to how much data the MQTT connection consumes and how much the LTE connection consumes individually ?

    Unfortunately, there's no way to see the detailed data usage of a specific connection / socket_fd. As you mention, the AT%XCONNSTAT gives overall usage, which is the closest we can offer to your wanted behavior.

     

    Kind regards,

    Håkon

Related