From mboxrd@z Thu Jan 1 00:00:00 1970 From: alex889 Date: Thu, 8 Oct 2009 00:41:05 -0700 (PDT) Subject: [U-Boot] Problems with NetConsole II Message-ID: <25799667.post@talk.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, I'm trying to run NetConsole, listen for incoming messages for 1 sec, and continue according to the message type. On the other side (PC) i'm sending a broadcast message on port 6666 every 250 ms. What i see is a very unstable behaviour Sometimes i get nothing, sometime only part of the message, and sometimes it fails to continue.. I also tried to listen for 5 sec, and it looks a little better, but still unstable behaviour The code i use is: setenv("stdin", "nc"); printk("waiting for network message...\n"); timeStart = get_timer(0); while(1) { c = getc(); if(c != 0) { printk("%c", c); buffer[index++] = c; } if(index > 127) break; if((get_timer(0) - timeStart) > 5000) break; } Thanks, Alex -- View this message in context: http://www.nabble.com/-U-Boot--Problems-with-NetConsole-II-tp25799667p25799667.html Sent from the Uboot - Users mailing list archive at Nabble.com.