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

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

 



On 8/16/19 2:38 PM, bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
>> Create a vcan and attach your userspace components to it.

> Is there some example code doing something similar?

Basically do the same as cansend and candump:

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

If you receive a CAN frame from the dongle, send it to the vcan. If you
receive a CAN frame from vcan, send it via the dongle.

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: signature.asc
Description: OpenPGP digital signature


[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