please help me…
here is my server ISR code:
ucharIRvalue = getIR();
if (ucharIRvalue & IR_SOCK(SOCKET_0))
/* save interrupt value*/
TCP_IR_Status[SOCKET_0] = read_wiznet_reg(Sn_IR(SOCKET_0));
/* Clear the interrupt */
/* set TCP flag enable*/ uc_IsTCPInterruptOccur = TRUE; } /* re-read interrupt value*/ ucharIRvalue = read_wiznet_reg(W5100_IR);
}while (ucharIRvalue != 0x00); /* if exist, contiue to process */
I am able to connect/disconnect/send/receive using interrupt.
Following are my questions:
when i disconnect the server from TCP client. i am getting interrupt 2 times, first time i am getting ucharIRvalue value of corresponding socket and next time i am getting value of ucharIRvalue 0xff.
i am not getting it,why the interrupt is generated 2ndtime
i want to use all the socket (MAX 4 supported ) simultaneously on port no 502 , i have little idea about linux socket programming in that socket descriptor is generated and that descriptor used for sending and receiving in the child process or thread.
how can i implement it in micro controller without RTOS ? what will be the value of IR register when all socket interrupt occur simultaneously ??