linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [Socketcan-users] beginner question: can more than one application use one SocketCAN CAN Interface at the same time??
       [not found] <2B7735628AAB044EBC7362D10ED87CE2C850BA11F9@haex.Hamm.lokal>
@ 2013-01-31 10:15 ` Marc Kleine-Budde
  2013-01-31 10:27   ` Willy Lambert
  2013-01-31 10:38 ` Heinz-Jürgen Oertel
  1 sibling, 1 reply; 3+ messages in thread
From: Marc Kleine-Budde @ 2013-01-31 10:15 UTC (permalink / raw)
  To: Markus.Golbs; +Cc: linux-can@vger.kernel.org

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

Hello Markus,

please use linux-can@vger.kernel.org (Cc'ed), as the berlios list is
outdated.

On 01/31/2013 09:45 AM, Markus.Golbs@hamm.eu wrote:
> I’m new by using SocketCAN. The shell communication on an arm board with
> SocketCAN works well, but I’m only use one access task/program to one
> CAN Interface.
>
> My question is, can I use the SocketCAN network Interface from more as
> on application on the same time? I want create two ANCI-C application on
> this board for different functions. The two applications to integrate in
> one, is it not possible. If it possible that both applications use the
> same CAN Interface at the same time? About information I’m very happy.

You can open as many sockets from as many applications to CAN as you
want (until you memory runs out) and send and receive CAN messages.

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

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

* Re: [Socketcan-users] beginner question: can more than one application use one SocketCAN CAN Interface at the same time??
  2013-01-31 10:15 ` [Socketcan-users] beginner question: can more than one application use one SocketCAN CAN Interface at the same time?? Marc Kleine-Budde
@ 2013-01-31 10:27   ` Willy Lambert
  0 siblings, 0 replies; 3+ messages in thread
From: Willy Lambert @ 2013-01-31 10:27 UTC (permalink / raw)
  To: Marc Kleine-Budde; +Cc: Markus.Golbs, linux-can@vger.kernel.org

2013/1/31 Marc Kleine-Budde <mkl@pengutronix.de>:
> Hello Markus,
>
> please use linux-can@vger.kernel.org (Cc'ed), as the berlios list is
> outdated.
>
> On 01/31/2013 09:45 AM, Markus.Golbs@hamm.eu wrote:
>> I’m new by using SocketCAN. The shell communication on an arm board with
>> SocketCAN works well, but I’m only use one access task/program to one
>> CAN Interface.
>>
>> My question is, can I use the SocketCAN network Interface from more as
>> on application on the same time? I want create two ANCI-C application on
>> this board for different functions. The two applications to integrate in
>> one, is it not possible. If it possible that both applications use the
>> same CAN Interface at the same time? About information I’m very happy.
>
> You can open as many sockets from as many applications to CAN as you
> want (until you memory runs out) and send and receive CAN messages.
>
> Marc

The first exemple would be the shell introspection tools to see what's
going in and out when your application will be running.

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

* Re: [Socketcan-users] beginner question: can more than one application use one SocketCAN CAN Interface at the same time??
       [not found] <2B7735628AAB044EBC7362D10ED87CE2C850BA11F9@haex.Hamm.lokal>
  2013-01-31 10:15 ` [Socketcan-users] beginner question: can more than one application use one SocketCAN CAN Interface at the same time?? Marc Kleine-Budde
@ 2013-01-31 10:38 ` Heinz-Jürgen Oertel
  1 sibling, 0 replies; 3+ messages in thread
From: Heinz-Jürgen Oertel @ 2013-01-31 10:38 UTC (permalink / raw)
  To: linux-can@vger.kernel.org; +Cc: Markus.Golbs@hamm.eu

Hello Markus;
(forgot cc: list)
Am Donnerstag, 31. Januar 2013, 09:45:47 schrieben Sie:
> Hello,
> 
> I'm new by using SocketCAN. The shell communication on an arm board with
> SocketCAN works well, but I'm only use one access task/program to one CAN
> Interface.
> 
> My question is, can I use the SocketCAN network Interface from more as on
> application on the same time? I want create two ANCI-C application on this
> board for different functions. The two applications to integrate in one, is
> it not possible. If it possible that both applications use the same CAN
> Interface at the same time? About information I'm very happy.
> 
> thanks and greetings

Short answer:
YES, two or more applications can share one physical interface,
using the same network interface, whether it is can0 or vcan0.

 Best regards
   Heinz-Jürgen Oertel

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

end of thread, other threads:[~2013-01-31 10:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <2B7735628AAB044EBC7362D10ED87CE2C850BA11F9@haex.Hamm.lokal>
2013-01-31 10:15 ` [Socketcan-users] beginner question: can more than one application use one SocketCAN CAN Interface at the same time?? Marc Kleine-Budde
2013-01-31 10:27   ` Willy Lambert
2013-01-31 10:38 ` Heinz-Jürgen Oertel

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