using nRF9160 SLM

Hi Team,

Can you please provide your inputs here.

1. Is the nRF9160 SLM supports NIDD(non-ip data delivery)? If yes, can you please provide the AT commands to configure NIDD.

2. Is the  nRF9160 SLM MQTT supports TLS?

3. We have tried  nRF9160 SLM FOTA on nRF9160 DK board, it seems that FOTA upgrade is happening on external Flash and in next power cycle it is copying from external Flash to internal Flash. Is that my understanding correct? Is the external Flash is mandatory for the FOTA? Can't we upgrade the internal Flash directly through FOTA?

Regards,

Sravan Rikka

Parents Reply Children
  • Hi Charlie,

    1. If I want to increase buffer size as CONFIG_SLM_MQTTC_MESSAGE_BUFFER_LEN=65535. Can I increase to 65535, is there any limitation? What is the maximum allowed buffer size?

    2. In data mode maximum CONFIG_SLM_DATAMODE_BUF_SIZE=4096, Is it possible to increase this buffer size to 65535? Is there any limitation? What is the maximum allowed buffer size?

    Regards,

    Sravan Rikka

  • No, the maximum limitation is nRF9160 RAM size, which is 256KB. You can always allocate a biggerbuffer that is not used by the application at build time as long as region `RAM' is not overflowed.

    Best regards,

    Charlie

  • Hi Charlie,

    Can you please respond, I am awaiting for your comments.

    1. CONFIG_SLM_MQTTC_MESSAGE_BUFFER_LEN=512. For example if we want to publish 4KB of data, can we publish 512 bytes 8(4KB/512) times as below? I mean connect one time and publish 8 consecutive packets?

    AT#XMQTTCFG=\"sravan/clientid\",60,0
    AT#XMQTTCON=1,"","",\"192.168.0.102\",1883
    AT#XMQTTPUB=\"sravan/mqtttopic\","1. Hi How are you…......(512 bytes)",1,0
    AT#XMQTTPUB=\"sravan/mqtttopic\","2. Hi How are you…......(512 bytes)",1,0
    .
    .
    .
    .
    AT#XMQTTPUB=\"sravan/mqtttopic\","7. Hi How are you…......(512 bytes)",1,0
    AT#XMQTTPUB=\"sravan/mqtttopic\","8. Hi How are you…......(512 bytes)",1,0
    AT#XMQTTCON=0

    2. OR Do we need to config, connect, publish and disconnect for every 512 bytes as below?

    AT#XMQTTCFG=\"sravan/clientid\",60,0
    AT#XMQTTCON=1,"","",\"192.168.0.102\",1883
    AT#XMQTTPUB=\"sravan/mqtttopic\","1. Hi How are you…......(512 bytes)",1,0
    AT#XMQTTCON=0
    AT#XMQTTCFG=\"sravan/clientid\",60,0
    AT#XMQTTCON=1,"","",\"192.168.0.102\",1883
    AT#XMQTTPUB=\"sravan/mqtttopic\","2. Hi How are you…......(512 bytes)",1,0
    AT#XMQTTCON=0
    .
    .
    .
    .
    .
    .
    .
    .
    .
    AT#XMQTTCFG=\"sravan/clientid\",60,0
    AT#XMQTTCON=1,"","",\"192.168.0.102\",1883
    AT#XMQTTPUB=\"sravan/mqtttopic\","7. Hi How are you…......(512 bytes)",1,0
    AT#XMQTTCON=0
    AT#XMQTTCFG=\"sravan/clientid\",60,0
    AT#XMQTTCON=1,"","",\"192.168.0.102\",1883
    AT#XMQTTPUB=\"sravan/mqtttopic\","8. Hi How are you…......(512 bytes)",1,0
    AT#XMQTTCON=0

    Regards,

    Sravan Rikka

  • Hi Sravan,

    1)Yes, 2) No.

    The buffer will be clean up and reused by next publish action.

    Best regards,

    Charlie

Related