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.