linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Setting up flexcan mailboxes in Linux
       [not found] <81C1BF6140F61847A49020308B539A57128B21@MBX01.hosting.local>
@ 2015-07-07 10:04 ` Marc Kleine-Budde
       [not found]   ` <81C1BF6140F61847A49020308B539A57128EFA@MBX01.hosting.local>
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Kleine-Budde @ 2015-07-07 10:04 UTC (permalink / raw)
  To: Emil Fors, linux-can

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

Hey Emil,

please use the linux-can mailinglst for CAN related questions.

On 07/07/2015 11:59 AM, Emil Fors wrote:
> my name is Emil and I am trying to configure a Toradex Apalis iMX6q
> module. I need to set up the flexcan mailboxes in order to filter out
> messages I'm not interested in. I have CAN communication working using
> the libsocketcan library written by one Luotao Fu, who seems to be a
> colleague of yours? However, that library doesn't seem to provide me
> with control over mailbox configuration. Could you please advise as to
> how I'd best proceed? I noted that the library is (C) 2009, perhaps it
> is outdated? Do you know of a more recent and perhaps better solution?

Hardware filtering is not supported on an driver so far. But we have an
idea how to implement this.

However you can make use of the software filtering via CAN_RAW_FILTER.
See
http://lxr.free-electrons.com/source/Documentation/networking/can.txt#L433
for more information.

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: 455 bytes --]

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

* Re: SV: Setting up flexcan mailboxes in Linux
       [not found]   ` <81C1BF6140F61847A49020308B539A57128EFA@MBX01.hosting.local>
@ 2015-07-09  8:38     ` Marc Kleine-Budde
  2015-07-09  9:10       ` Emil Fors
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Kleine-Budde @ 2015-07-09  8:38 UTC (permalink / raw)
  To: Emil Fors; +Cc: linux-can

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

Hey Emil,

please just use the mailinglist (CC'ed).

On 07/09/2015 10:33 AM, Emil Fors wrote:
> thank you. I am trying out the software filtering now. It doesn't
> work (lets everything throuh regardless of what filters I set), but I
> won't bother you with that. Going to check out that mailing list you
> mentioned, see if anyone knows what the problem might be.

Please share your filter setup code. The software filters are working in
general. Older version have the limitation that you might get a CAN
frame twice, if you've set up multiple filters that match.

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: 455 bytes --]

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

* RE: SV: Setting up flexcan mailboxes in Linux
  2015-07-09  8:38     ` SV: " Marc Kleine-Budde
@ 2015-07-09  9:10       ` Emil Fors
  0 siblings, 0 replies; 3+ messages in thread
From: Emil Fors @ 2015-07-09  9:10 UTC (permalink / raw)
  To: linux-can

Hi,

never mind, I figured it out. The error was an unrelated technicality.
Thanks for the help, and the pointer to this mailing list!

Cheers,
Emil

-----Original Message-----
From: Marc Kleine-Budde [mailto:mkl@pengutronix.de] 
Sent: Thursday, July 09, 2015 10:38 AM
To: Emil Fors
Cc: linux-can
Subject: Re: SV: Setting up flexcan mailboxes in Linux

Hey Emil,

please just use the mailinglist (CC'ed).

On 07/09/2015 10:33 AM, Emil Fors wrote:
> thank you. I am trying out the software filtering now. It doesn't work 
> (lets everything throuh regardless of what filters I set), but I won't 
> bother you with that. Going to check out that mailing list you 
> mentioned, see if anyone knows what the problem might be.

Please share your filter setup code. The software filters are working in general. Older version have the limitation that you might get a CAN frame twice, if you've set up multiple filters that match.

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   |


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

end of thread, other threads:[~2015-07-09  9:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <81C1BF6140F61847A49020308B539A57128B21@MBX01.hosting.local>
2015-07-07 10:04 ` Setting up flexcan mailboxes in Linux Marc Kleine-Budde
     [not found]   ` <81C1BF6140F61847A49020308B539A57128EFA@MBX01.hosting.local>
2015-07-09  8:38     ` SV: " Marc Kleine-Budde
2015-07-09  9:10       ` Emil Fors

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).