All of lore.kernel.org
 help / color / mirror / Atom feed
* Several sockets on one interface in Python
@ 2013-05-31  9:55 Joachim Jaus
  2013-05-31 16:38 ` Oliver Hartkopp
  0 siblings, 1 reply; 3+ messages in thread
From: Joachim Jaus @ 2013-05-31  9:55 UTC (permalink / raw)
  To: linux-can

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

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

end of thread, other threads:[~2013-06-03  7:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-31  9:55 Several sockets on one interface in Python Joachim Jaus
2013-05-31 16:38 ` Oliver Hartkopp
2013-06-03  7:20   ` Yegor Yefremov

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.