* candump app will lost rx packets while it prints the received data frames
@ 2013-08-28 9:17 xuewentian
2013-08-28 10:28 ` Marc Kleine-Budde
0 siblings, 1 reply; 2+ messages in thread
From: xuewentian @ 2013-08-28 9:17 UTC (permalink / raw)
To: linux-can
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??
Thanks a lot.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: candump app will lost rx packets while it prints the received data frames
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
0 siblings, 0 replies; 2+ messages in thread
From: Marc Kleine-Budde @ 2013-08-28 10:28 UTC (permalink / raw)
To: xuewentian; +Cc: linux-can
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-28 10:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).