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