From: Marc Kleine-Budde <mkl@pengutronix.de>
To: xuewentian <xuewt@embedinfo.com>
Cc: linux-can@vger.kernel.org
Subject: Re: candump app will lost rx packets while it prints the received data frames
Date: Wed, 28 Aug 2013 12:28:39 +0200 [thread overview]
Message-ID: <521DD0D7.50208@pengutronix.de> (raw)
In-Reply-To: <loom.20130828T111233-886@post.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]
On 08/28/2013 11:17 AM, xuewentian wrote:
> Hi all,
>
> I wonder that when the can select/poll bug can be fixed ? What reason
> has it not been fixed yet? Thanks a lot.
>
> and now I encounter another problem, I use a sufficient delay for cansend
> on the first borad, and anther board using candump to
> receive the data frame.
>
> board 1:
> cansend can0 -l 500 -i 0x123 0x11 0x22 0x33 0x44 0x55 0x66 0x77
> 0x88 //cansend I have added the delay,and no any write failaure report
>
> board 2:
> candump can0 // on the serial terminal, I have only received about 434
> // data frames which are printed on the serial
> // terminal,and no any read error information
>
> and use "ifconfig can0" on the two boards, I found that board 1 has
> increased 500 "TX packets",and board 2 has also increased 500 "RX
> packets", but candump app seemed that lost some packets. what reason is
> it??
Don't print on a serial line what you have received over CAN. Your
serial port is slower than CAN, the socket buffer between kernel and
application will be full sooner or less, then the kernel drops frames.
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
prev parent reply other threads:[~2013-08-28 10:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-28 9:17 candump app will lost rx packets while it prints the received data frames xuewentian
2013-08-28 10:28 ` Marc Kleine-Budde [this message]
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=521DD0D7.50208@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=linux-can@vger.kernel.org \
--cc=xuewt@embedinfo.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).