All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Tim Hotfilter <thotfilter@osdr.org>
Cc: "linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: Re: Problem using Linux CAN
Date: Thu, 23 Jul 2015 19:26:17 +0200	[thread overview]
Message-ID: <55B123B9.1090306@hartkopp.net> (raw)
In-Reply-To: <928F9D91-F184-4CEF-850E-899A84D444A1@osdr.org>

Hi Tim,

On 23.07.2015 15:13, Tim Hotfilter wrote:
> Kernel version is 3.19.

ok

> Here is the output of ip link show:
> [root@mcu15 ~]# ip -s -d link show can1
> 3: can1: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 128
>      link/can  promiscuity 0
>      can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
>            bitrate 1000000 sample-point 0.700
>            tq 100 prop-seg 3 phase-seg1 3 phase-seg2 3 sjw 1
>            sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
>            clock 50000000
>            re-started bus-errors arbit-lost error-warn error-pass bus-off
>            0          0          0          0          0          0
>      RX: bytes  packets  errors  dropped overrun mcast
>      54816      12451    0       0       0       0
>      TX: bytes  packets  errors  dropped carrier collsns
>      5279       108392   0       0       0       0
>
> The Inferface does not really go offline. This interface is also not in an error state. Receive still works: I can see incoming can frames via candump.

ok.

> Only the transmit path stops working.

Hm :-(

> My hardware configuration is quite simple: The control unit is directly connected to a vector can case with termination resistors.
 > I can see incoming frames in CanOe and can also transmit frames.

Ah - you are using CANoe with CANcase ...

So here are some ideas.

1. Try it with 500kbit/s with a sampling-point of 80% on both sides.

2. I had a similar CANoe problem in the past. Please try to add *another* CAN 
node which can ACK your sent frames. E.g. connect one of the other CAN 
interfaces of your Xilinx board to the existing bus.

3. The error state handling has changed in 3.19. For a test you might revert 
this commit: 
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit?id=215db1856e8313ef8a1d9b64346dc261570012a6

Regards,
Oliver


  reply	other threads:[~2015-07-23 17:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-22 10:49 Problem using Linux CAN Tim Hotfilter
2015-07-22 17:41 ` Oliver Hartkopp
2015-07-22 17:52   ` Tim Hotfilter
2015-07-22 18:39     ` Oliver Hartkopp
     [not found]       ` <0948A186-060F-4A31-8359-755DE78647A0@osdr.org>
2015-07-23 13:13         ` Tim Hotfilter
2015-07-23 17:26           ` Oliver Hartkopp [this message]
2015-07-24  7:53             ` Tim Hotfilter
2015-07-25 13:45               ` Oliver Hartkopp

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=55B123B9.1090306@hartkopp.net \
    --to=socketcan@hartkopp.net \
    --cc=linux-can@vger.kernel.org \
    --cc=thotfilter@osdr.org \
    /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.