WIZnet Developer Forum

Is it possible to get the INTn pin to go low when a specific UDP socket receives data?

Is it possible to get the INTn pin to go low when a specific UDP socket receives data?

I have tried the following:

    socket( 0, Sn_MR_UDP, 6789, 0x00 ); // Open socket 0 with port number 6789
    setSIMR (getSIMR() | 0x01); // Enable socket 0 interrupt
    setSn_IMR(0, 0x1F); // Enable all socket 0 interrupts sources

I send data to port 6789 but I still don’t get any change on the INTn pin.

Hello, Eerik

I can’t find any problem with your coding you attached.
So, here are some suggestions I want to give you to solve the problem(INTn doesn’t go to LOW).
Could you read getSMIR and getSn_IMR? Because SPI addressing could be set incorrect.
And I wonder you checked your MCU interrupt enable set then make sure the data you transmit came from MCU to W5500.
Finally, check the INTn Pin with Oscilloscope, if it is still High or it becomes Low.

Thank you.

Sincerely,
Lawrence

The SPI works fine. I have testet the W5500 chip with UDP and TCP communication. So there is no SPI problem.

And I have tested the INTn pin with WOL, and the INTn pin works at least with WOL.

Could you let me know how to test with SPI working?
And I can not understand that testing INTn pin with WOL. Sorry about that.
So, if you do not mind, could you send me more details with your coding and test configuration?

you can send it sangjoonlee874@gmail.com or just post here.

And I recommend you to check SMIR, Sn_IMR.

Thank you,
Lawrence.

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