How to solve socket -23 error while creating multiple server in nRF9160

Hi Support team,

I am  using nRF9160 module and i want run two server on the module, one is modbus server and other is CoAP server. so is it possible to run both server simultaneously ?

Thanks,

Dvl

Parents
  • Hi Dvl,

    If ports are only listening, nrf91 modem does not support DTLS/TLS server mode, only client mode. Server mode would require running TLS stack on the application core.
    If ports act as clients and if DTLS/TLS is used, modem has a limit of only one handshake that can be ongoing at the time. Once it is connected, memory is very limited and only 3 DTLS/TLS connections can be active at a time.
    Without security and if just listening for incoming packets, number of total sockets is still limited to around 5.

    Best regards,
    Dejan

Reply
  • Hi Dvl,

    If ports are only listening, nrf91 modem does not support DTLS/TLS server mode, only client mode. Server mode would require running TLS stack on the application core.
    If ports act as clients and if DTLS/TLS is used, modem has a limit of only one handshake that can be ongoing at the time. Once it is connected, memory is very limited and only 3 DTLS/TLS connections can be active at a time.
    Without security and if just listening for incoming packets, number of total sockets is still limited to around 5.

    Best regards,
    Dejan

Children
No Data
Related