Can bus to Ethernet Converter Using Arduino Uno This device will forward any packet that is receiving on can port to ethernet and vice versa.
To setup this device we need:
First of all attach Ethernet shield on you arduino Uno. Then connect the CAN to SPI module as the picture bellow.
For more information you can visit the reference website.
Device Picture:
After setup phase open Arduino ide and program the device with code. Simply set device ip, mac address and communication ports on line 13-18. This device forward every message that receive on device "ip" address to Canbus and forward every messages that receive from Can to ethernet on "bc" ip.
IPAddress ip(192, 168, 1, 101);
IPAddress bc(192, 168, 1, 255);
unsigned int localPort = 56800; // local port to listen on
unsigned int bcPort = 56801; // local port to listen on
Farshid Abdollahi