Buffer size, maximum number of connected devices

Dear Nordic company,

                                  I am writting to you in order to get some information about buffer sizes in your aplication. I think, I am bale to modify buffer size and maximum number of devices, that could be connected to nrf9151 or into another your devices. I found some CONFIG variables, but I am not sure if I understand to them correctly.

CONFIG_NET_BUF_RX_COUNT -this variable is for configuration of number of receiver buffer. So if I understand to this correctly, this number is saying how many device could be connected to nrf9151 (via TCP or UDP), or what number of connections with my devices could be created.

CONFIG_NET_BUF_TX_COUNT -the same as with RX. RX and TX count could be the same. In many options. Am I right?

CONFIG_NET_BUF_DATA_SIZE -this parametr tell to us what is size of each buffer. But default value is 128. This is very small value to be in bytes. So is it in packets? When packets could be maximum 2048 bytes length. Did I understand to this correctly? Data size is measured in packets?

CONFIG_NET_BUF_FIXED_DATA_SIZE -this parametr is boolean. If I set this to y value, it says, that my buffer has fixed size, so it can oveflow if I will not be so fast in their reading. But if i set value of this config to n, buffer could allocate memory in dynamic way. So if apper situation, that could my buffer overflow, Zephyr allocate much space for my data (if is it possible). I am I right?

What are parametrs for Serial LTE application, that I could use in Quick start menu in nrf Connect? How many clients I am I able to connect into server? What is buffer size (in packet, if I count with packet maximum size 2048 bytes) for each connections?

 

Kind regards

Jaroslav Havel

  • Hi Jaroslav,

    Thanks for reaching out with your questions.

    The configurations you mentioned are defined and explained in zephyr/subsys/net/ip/Kconfig and used within the source codes of zephyr IP stack.

    These settings are part of the IP stack definition, and I’d recommend not modifying them if your goal is simply to work with the Serial LTE Modem application. However, if you're looking to understand their functionality in more detail, I suggest exploring the source codes.

    Since the Serial LTE Modem application supports various communication protocols such as TCP, MQTT, and HTTP, could you clarify which specific protocol you’re interested in using? There are some related definiations you may found, but you also need to monitor and adjust the heap and stack usage during your development anyway. I would suggest you refer to the following discussion if you need more than default defined client numbers.

    https://devzone.nordicsemi.com/support-private/support/338302#permalink=1028675

    Best regards,
    Charlie

Related