This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LEDswitch do not working when sending and receiving time is decreased.

I use MCB2300 and I chage LEDswitch souce code. I use UDP. and When MCB2300 receive UDP frame, MCB2300 echo that frame. Everything works fine, but When I try to reduce sending time(<100ms), ethernet port do not work in a few minutes. ping test is also unreachable.
In that time I reset the board. It did not work in a few minutes,too.

//----------------------test ---------------------//
void send_data (U8 * buf,U16 len) {
  static  U8 rem_IP[4] = {10,168,3,78};
  U8 *sendbuf;

  sendbuf = udp_get_buf (len);

  strncpy ((char *)sendbuf, (char *) buf,len);

  printf("%s",(char*)buf);
  udp_send (socket_udp, rem_IP, 1001,sendbuf, len);

}




/*------------ UDP socket ------------------*/

U16 udp_callback (U8 soc, U8 *rip, U16 rport, U8 *buf, U16 len) {
   rip  = rip;
   rport= rport;
   len  = len;
   printf("%d", len);
   if (soc != socket_udp) {
  /* Check if this is the socket we are connected to */

      return (0);
   }
   send_data(buf,len);
   procrec(buf);
   return (0);
}

plz, help me.

Have a nice day.

0