From: Wolfgang Grandegger <wg@grandegger.com>
To: Michael Economides <mecono@gmail.com>
Cc: Oliver Hartkopp <socketcan@hartkopp.net>,
"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: Re: certain CAN frames not being read ok
Date: Tue, 22 May 2012 18:56:30 +0200 [thread overview]
Message-ID: <4FBBC53E.1050901@grandegger.com> (raw)
In-Reply-To: <CABHoAvkZcMDi30MmYr+zYP=QTR_u5DxJ-5ib07L44KOQk8sVAA@mail.gmail.com>
On 05/22/2012 02:37 AM, Michael Economides wrote:
> Hello,
>
> I am reading CAN frames using read()
>
> nbytes = read(s, &rframe, sizeof(rframe));
>
> Sometimes it works fine. For example these frames are read ok:
>
> 123#44 33 33 33 33 33 33 44
> 112#05 01 01 01 22 22 33 33
>
> However, this frame causes an "Ack slot" error:
>
> 123#01 00 00 00 00 00 00 00
>
> Any ideas what could cause this?
This could be due to hardware problems on the CAN bus. Please check:
- bittiming.
- bus termination.
What does "candump -e any,0:0,#FFFFFFFF" report while you receive data?
And what CAN hardware are you using (what does "ip -d -s link show can0"
report)?
Wolfgang.
prev parent reply other threads:[~2012-05-22 16:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 0:37 certain CAN frames not being read ok Michael Economides
2012-05-22 16:56 ` Wolfgang Grandegger [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=4FBBC53E.1050901@grandegger.com \
--to=wg@grandegger.com \
--cc=linux-can@vger.kernel.org \
--cc=mecono@gmail.com \
--cc=socketcan@hartkopp.net \
/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.