All of lore.kernel.org
 help / color / mirror / Atom feed
From: alex889 <alex889@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot]  Problems with NetConsole II
Date: Thu, 8 Oct 2009 00:41:05 -0700 (PDT)	[thread overview]
Message-ID: <25799667.post@talk.nabble.com> (raw)


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.

             reply	other threads:[~2009-10-08  7:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-08  7:41 alex889 [this message]
2009-10-08  7:50 ` [U-Boot] Problems with NetConsole II Wolfgang Denk
     [not found] <19418536.543781254988736020.JavaMail.nabble@isper.nabble.com>
2009-10-08 10:57 ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=25799667.post@talk.nabble.com \
    --to=alex889@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.