public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot]  Problems with NetConsole II
@ 2009-10-08  7:41 alex889
  2009-10-08  7:50 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: alex889 @ 2009-10-08  7:41 UTC (permalink / raw)
  To: u-boot


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.

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <19418536.543781254988736020.JavaMail.nabble@isper.nabble.com>]

end of thread, other threads:[~2009-10-08 10:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-08  7:41 [U-Boot] Problems with NetConsole II alex889
2009-10-08  7:50 ` Wolfgang Denk
     [not found] <19418536.543781254988736020.JavaMail.nabble@isper.nabble.com>
2009-10-08 10:57 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox