7 years, 2 months ago.

Ethernet Error Recovery

I am currently using mbed 5.5.6, I am using the Ethernet interface and TCPserver and TCPsocket classes. I am using the timeouts and if I sense no activity on the network I will restart the network. I will do a disconnect, close the server and the socket and then restart everything. When I get to binding the server to a port I get an error (-3003). This only occurs on restarting the network, the server and then the bind. It does not occur on the original start. If I ignore the error everything works fine but I believe this error code is an error in the ethernet driver.

Thanks

1 Answer

7 years, 2 months ago.

Hi Dan,

According to the Network Errors reference here: https://docs.mbed.com/docs/mbed-os-api-reference/en/latest/APIs/communication/network_sockets/#network-errors , Error -3003 means "invalid configuration."

Without seeing your code, I am unsure what could be causing this error, however this Pull Request (https://github.com/ARMmbed/mbed-os/issues/2439#issuecomment-242844254) may help you debug.

Please let me know if you have any questions!

- Jenny, team Mbed