Is there any way I can feed can frame to debian linux so that it thinks it came from can device

Hello,

For testing purpose I would like to feed dummy data to my program. Ideally my program would call read (socket can) and think the data came from can device. Is it possible ? I understand that it is possible for uart.

Thanks

Yash

http://www.embeddedhobbyist.com/2015/09/linux-can-development/

Hello William,

I very much appreciate your help. Possibly vcan is what I am looking for. I will try it and let you know. My actual physical can interface is working fine we want something for automated testing.

Thanks

Yash

virtual canbus, and canplayer + candump. I don’t remember if I explained how to candump into a log file or not in that article, but there is information out there on the subject.