Today I had a problem (don’t ask) where I had two computers, each with a CAN interface attached to its own CAN bus. I needed a CAN device on one segment to be able to talk to CAN devices on the other segment. To solve the problem, I wrote this script to bridge together two socketCAN interfaces on different computers via UDP/IP. Here it is, in case it’s useful to anyone else:

There are obviously some technical pitfalls here; first and foremost, the instantaneous arbitration that’s such a central part of CAN is lost. However, this bridge was sufficient to control a Talon SRX and update its firmware over my LAN.


Neat. I also had this problem recently and found this project: GitHub - mguentner/cannelloni: a SocketCAN over Ethernet tunnel

Works well for what I needed it for.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.