RevPi Connect 5 as CANBUS to MODBUS/TCP translator?

Topics about the Software of Revolution Pi
Post Reply
ptthomps
Posts: 4
Joined: 24 Apr 2025, 22:41

RevPi Connect 5 as CANBUS to MODBUS/TCP translator?

Post by ptthomps »

Hello. I have a device that is only capable of communicating via CANBUS ("device A"), and another which is only capable of communicating via MODBUS/TCP ("device B"). I would like to use a RevPi Connect 5 as an intermediary to take commands from device A over CAN, and forward them on to device B over MODBUS/TCP. I also need to be able to forward responses from device B back to device A. I'll need to do a bit of processing on the commands, such as simple multiplication and division, but it shouldn't be too complicated.

My question is if there are any examples of this kind of setup using python? In particular, are there any python examples for how to use CANBUS? The RevPi Connect 5 model we ordered was 100419, with WLAN, 8GB RAM, 1 CAN FD, and one RS485 port. I'm primarily a python developer with limited PLC experience, so that's my preferred toolchain, but if there are other options it would be helpful to see those as well. Thanks!
User avatar
dirk
Posts: 2271
Joined: 15 Dec 2016, 13:19

Re: RevPi Connect 5 as CANBUS to MODBUS/TCP translator?

Post by dirk »

Hello ptthomps, that sounds exciting. You can create such a gateway application with the RevPi Connect 5. This helpful tutorial from our knowledge base can help you and serve as inspiration for your application:
Revolution Pi Gateway Tutorial
Post Reply