Re: User-Space Can dongles? Stlink-v3Bridge as CAN dongle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Uwe,

long time no read ;-)

On 16/08/2019 14.38, bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
Marc Kleine-Budde writes:
On 8/16/19 12:52 PM, bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:

However this would imply a user-space socketcan adapter. Is such a
thing possible?

Create a vcan and attach your userspace components to it.


ACK.

Is there some example code doing something similar?
There were some binary CAN tools that needed a serial line with SLCAN protocol to work.

For that reason I built this piece of code to emulate a serial line with a pty and connected the frame flow to a CAN socket.

https://github.com/linux-can/can-utils/blob/master/slcanpty.c

Best,
Oliver



[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux