Does AT%XCONNSTAT count retransmissions?

I'm trying to understand how many times the RF front end *actually* transmits data, but things like HARQ and LTE coverage enhancement are invisible to the user. So my question is: 

A) If I transmit a single, 256-byte packet, but the modem is operating in coverage mode enhancement mode A, so it actually sends my data, say, 32 times, will XCONNSTAT say I sent 256 bytes, or 32*256 = 8KB? I would prefer the latter, because that tells me more about the effect on battery

B) If I send a single 256-byte packet, but, because of HARQ, it gets retransmitted two more times, will %CONNSTAT show 256 bytes, or 768 bytes?

Parents
  • Hi,

    This is a good question, let me check internally with the modem team to see how they implemented this command.

    I'll get back to you before the end of the week.

    Best regards,

    Simon

  • Hi,

    It is counted at the IP level.

    So TCP retransmission and such are counted, but the lower layer retransmissions (like the ones you described) are not.

    Best regards,

    Simon

  • Thanks for the quick response. Not the answer I was hoping, but it is the one I expected. :( 

    Is there any way to interrogate those lower-level settings? The IP-layer stats are useful for metering your data usage, but you really need to know what's happening at the physical layer to try to meter your battery usage.

    Before somebody suggests a hardware fuel gauge; I have a very low-power application where I cannot use a hardware fuel gauge, because those fuel gauges all draw more power than the rest of my circuit when idle! Also, this device is using primary batteries, not rechargeables, so a fuel gauge would be kind of overkill.

  • Hi,

    First, If you are using primary batteries, please check that the maximum current output from the battery is high enough to provide the nRF9151 with enough current when transmitting.

    Then, I must say that I partly disagree with your take on hardware fuel gauges. For example, we have the nPM2100 that is made for non-rechargeable batteries and contains a fuel gauge. The fuel gauge is also extremely low power. I can't recommend you this though as it doesn't have a high enough current output to reliably power an nRF9151. I can try to see if one of our PMICs integrating the fuel gauge is suited for your hardware, but I would need more information on your design though.

    However, if you don't want an external fuel gauge, then the only thing that would be somewhat accurate would be to measure the open circuit voltage of the battery with the nRF9151. And to make your own algorithm or table that would give you a battery percentage according to the battery voltage (and maybe adding the temperature as input too can be a good idea).

    But unfortunately I don't think that trying to estimate how much the application draws just by the application behavior is the right path to go... To have a decent estimate, you will also have to know a lot more information (TX Power, RX power, TX time, pagings, SIM consumption, network attachment time, and much more...). This has to be measured directly from the battery either with a fuel gauge or with a simple voltage measurement (not as accurate).

    Best regards,

    Simon

Reply
  • Hi,

    First, If you are using primary batteries, please check that the maximum current output from the battery is high enough to provide the nRF9151 with enough current when transmitting.

    Then, I must say that I partly disagree with your take on hardware fuel gauges. For example, we have the nPM2100 that is made for non-rechargeable batteries and contains a fuel gauge. The fuel gauge is also extremely low power. I can't recommend you this though as it doesn't have a high enough current output to reliably power an nRF9151. I can try to see if one of our PMICs integrating the fuel gauge is suited for your hardware, but I would need more information on your design though.

    However, if you don't want an external fuel gauge, then the only thing that would be somewhat accurate would be to measure the open circuit voltage of the battery with the nRF9151. And to make your own algorithm or table that would give you a battery percentage according to the battery voltage (and maybe adding the temperature as input too can be a good idea).

    But unfortunately I don't think that trying to estimate how much the application draws just by the application behavior is the right path to go... To have a decent estimate, you will also have to know a lot more information (TX Power, RX power, TX time, pagings, SIM consumption, network attachment time, and much more...). This has to be measured directly from the battery either with a fuel gauge or with a simple voltage measurement (not as accurate).

    Best regards,

    Simon

Children
No Data
Related