W5500 Socket Status
Posted: Tue Mar 19, 2024 1:20 pm
I'm successfully connecting/testing W5500 networked comms with PuTTY terminal (RAW) via single socket '0'. However, the actual meaning of 'Socket Status' from the component is somewhat elusive, with no supporting information.
I'm returning socket status value via debug UART in 0.5s loop cycles, with the following decimal values returned for each status...
Default from boot (socket created): 20 (0b10100)
On terminal connect (1st message): 23 (0b10111), sustained whilst connected.
On terminal disconnect (PuTTY closed): 28 (0b11100)
After a minute or-so: 0 (0b00000), reconnect refused.
As I could do with understanding this information for appropriate socket management (i.e. close/open socket reset after remote terminal closure), is anyone aware of associated status bit values and how to reliably interpret them please?
Thanks and best regards,
Brendan
I'm returning socket status value via debug UART in 0.5s loop cycles, with the following decimal values returned for each status...
Default from boot (socket created): 20 (0b10100)
On terminal connect (1st message): 23 (0b10111), sustained whilst connected.
On terminal disconnect (PuTTY closed): 28 (0b11100)
After a minute or-so: 0 (0b00000), reconnect refused.
As I could do with understanding this information for appropriate socket management (i.e. close/open socket reset after remote terminal closure), is anyone aware of associated status bit values and how to reliably interpret them please?
Thanks and best regards,
Brendan