All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joachim Jaus <jaus@black-photon.de>
To: linux-can@vger.kernel.org
Subject: Several sockets on one interface in Python
Date: Fri, 31 May 2013 11:55:29 +0200	[thread overview]
Message-ID: <51A87391.6010308@black-photon.de> (raw)

Hi all,
this is my first email to this list, therefore I want start with a big 
"thank you" to all the people involved in the Linux CAN socket 
development, which has opened up a lot of interesting possibilities for 
sensor and machine control for me and my colleagues.

We would like to bind several sockets with different filter settings to 
one single CAN interface within the same application. Is that generally 
a safe thing to do (both in C and in Python)?
Is there a way to set filters on a CAN socket in Python similar to the 
implementation in C?

Background:
We are implementing a machine control system with several sensors and 
actuators communicating over the same CAN bus using the CAN-open protocol.
There are several control loops running simultaneously, each controlled 
by a python sub-process.
It would be convenient if each subprocess had several sockets, with each 
socket receiving only messages sent by a certain CAN-open node or a 
group of CAN-open nodes. That way, we could most easily receive all 
relevant messages (SDOs, PDOs, ...) from a specific node or group of nodes.

Best regards,
Joachim

             reply	other threads:[~2013-05-31 10:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-31  9:55 Joachim Jaus [this message]
2013-05-31 16:38 ` Several sockets on one interface in Python Oliver Hartkopp
2013-06-03  7:20   ` Yegor Yefremov

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=51A87391.6010308@black-photon.de \
    --to=jaus@black-photon.de \
    --cc=joachim.jaus@black-photon.de \
    --cc=linux-can@vger.kernel.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.