From: Oliver Hartkopp <socketcan@hartkopp.net>
To: roccafrancesco@gmail.com
Cc: "linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: Re: BCM ISSUE
Date: Tue, 22 Apr 2014 20:05:01 +0200 [thread overview]
Message-ID: <5356AF4D.8030901@hartkopp.net> (raw)
In-Reply-To: <0AD3D310E3BB3A45B6040EDF5C9897721F50711E@VWAGWOXB0401.vw.vwg>
Hello Francesco,
> *Von:*Francesco Rocca [mailto:roccafrancesco@gmail.com]
> *Gesendet:* Samstag, 12. April 2014 18:53
> *Betreff:* BCM ISSUE
>
> i'm starting to work with linux can; i saw you had got a important contribute
> for this library; so i think you are the right person can answer my question
> and solve my doubt.
It's not some kind of library but an application programmer interface to
access the CAN bus with BSD-style sockets.
See some overviews here:
http://events.linuxfoundation.org/sites/events/files/slides/elce2013-Kleine-Budde.pdf
http://www.can-cia.org/fileadmin/cia/files/icc/13/hartkopp.pdf
There's also a documentation in the Kernel Documents - including CAN_BCM:
https://www.kernel.org/doc/Documentation/networking/can.txt
> The BCM facility is interesting but i think i can't use it; i would like
> implement a data based filter;I would like only filter the frame on data
> content and not by can id. Is it possible? or do i have to use another
> approach?
The BCM can filter for data changes in the data section of the CAN frame.
It's a binary mask filter which is also described in can.txt.
There are some code examples in test applications, you can find in the
can-tests repository:
https://gitorious.org/linux-can/can-tests
https://gitorious.org/linux-can
Btw. you need to specify the CAN-ID when defining the content filter in the
CAN frames data section for the BCM. I assume filtering the content without
knowing the CAN-ID was not your real attempt, right?
Regards,
Oliver
ps. Sorry for the late answer - asking these kind of questions is better done
on the linux-can mailing list than sending it to my work mail account which
is not checked when I'm on vacancy :-)
parent reply other threads:[~2014-04-22 18:05 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <0AD3D310E3BB3A45B6040EDF5C9897721F50711E@VWAGWOXB0401.vw.vwg>]
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=5356AF4D.8030901@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=linux-can@vger.kernel.org \
--cc=roccafrancesco@gmail.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).