nrf9160dk + W5500 Ethernet Shield + modbus_tcp_server example socket creation returns 23 error

Hi,

I'm evaluating a scenario of using an nrf9160 with an HMI, communicating via modbus tcp connection.

The hardware setup looks like this:

HMI <-----> Ethernet switch <-----> nrf9160dk + W5500 Ethernet Shield

With this layout, I've managed to get the dhcpv4_client example to function properly (I get a valid ip), so I think my W5500 overlay file is okay.

The problem is that when I load the modbus_tcp_server example I get an error during socket creation with an error code 23.

The same code with nrf5340dk + W5500 Ethernet Shield does not have this error, and it is able to receive and send modbus tcp messages.

My guess is that the I'm not configuring something properly in Kconfig. From what I read, the error code 23 is "too many open files in system" - this could be because nrf9160dk + W5500 Ethernet Shield setup has two ipv4 interface instead of one, but I am not certain. I am using static ip for the modbus_tcp_server example.

I'm attaching my prj.conf and Kconfig fragments files.

Appreciate your help in advance!

Best Regards,

Makoto5875.prj.confnrf9160dk_nrf9160_cpuapp_ns.conf4370.nrf5340dk_nrf5340_cpuapp_ns.conf

Parents Reply Children
Related