WIZnet Developer Forum

tcp receive interrupt

Hi,
my W7500p is configured as TCP client. The TCP server will sometimes send notifications and I want to ensure that the client does not miss these notifications.
I thought maybe I could poll the Socket Reveived Size register (Sn_RX_RSR). If data was received (Sn_RX_RSR >0), I would then call the socket receive function.
Is this the “best” way to do it or are there other possibilities? Is there for example a possibility to trigger an interrupt when the TOE RX buffer is loaded with data?

Hi,

There is no example using interrupts.

But, If you use Sn_IR and Sn_IMR, it is possible. (Refer to W7500P Reference Manual p.65~)

Copyright © 2017 WIZnet Co., Ltd. All Rights Reserved.