linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Receiving messages issue
@ 2013-06-24 12:26 Luka Rahne
  2013-06-24 13:36 ` Marc Kleine-Budde
  0 siblings, 1 reply; 2+ messages in thread
From: Luka Rahne @ 2013-06-24 12:26 UTC (permalink / raw)
  To: linux-can

I am using MCP2515 with  i.MX27

Now my problem is that candump (and my application) doesn't receive
all messages.

I have multiple devices (low end Freescale mcf51JM) on Can that each
send  message at boot-up. If I turn-on all nodes at same time, they
send all messages at same time.

For some reason that makes problem for i.MX27 system

Beside single i.MX27 on bus and 5 mcf51JM nodes there is also PEAK-CAN
usb device for sniffing.

luka@pcan-usb:~$ candump any
  can0      2002  [8] 48 61 69 46 6F 6C 6B 7A
  can0      2012  [8] 48 61 69 46 6F 6C 6B 7A
  can0      2022  [8] 48 61 69 46 6F 6C 6B 7A
  can0      2032  [8] 48 61 69 46 6F 6C 6B 7A
  can0      2042  [8] 48 61 69 46 6F 6C 6B 7A
//this if fine


luka@iMX27:~$ candump
interface = can0, family = 29, type = 3, proto = 1
<0x00002002> [8] 48 61 69 46 6f 6c 6b 7a
<0x00002012> [8] 48 61 69 46 6f 6c 6b 7a
<0x00002032> [8] 48 61 69 46 6f 6c 6b 7a
<0x00002042> [8] 48 61 69 46 6f 6c 6b 7a


As You can see iMX27 lost message (  can0      2022  [8] 48 61 69 46
6F 6C 6B 7A <- is lost )
and this happens each restart on all mcf51JM nodes so it is predictable.

There were some freezing kernel/stalling issue @ kernel 3.0.4 but they
are gone since i compiled on 3.0.81.
Kernel is 3.0.81

I am  new with all this, so any pointers will be appreciated.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Receiving messages issue
  2013-06-24 12:26 Receiving messages issue Luka Rahne
@ 2013-06-24 13:36 ` Marc Kleine-Budde
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Kleine-Budde @ 2013-06-24 13:36 UTC (permalink / raw)
  To: Luka Rahne; +Cc: linux-can

[-- Attachment #1: Type: text/plain, Size: 602 bytes --]

On 06/24/2013 02:26 PM, Luka Rahne wrote:
> I am using MCP2515 with  i.MX27

MCP2515 is the second worst CAN hardware I know. Only MCP2510 is worse.

You can try Andre B. Oliveira's async mcp2515 driver. It's here:

http://git.pengutronix.de/?p=mkl/linux.git;a=shortlog;h=refs/heads/can/mcp2515-async

regards,
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-06-24 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-24 12:26 Receiving messages issue Luka Rahne
2013-06-24 13:36 ` 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).