Skip to content

How can I simulate the operation of this library? #271

Answered by ad3154
viniciusbaltoe asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! It depends on what exactly you want to simulate.

If you're looking to essentially make two applications that talk to each other via ISOBUS without any hardware, that's easy enough if you have access to a Linux PC of some kind, like a raspberry pi, or a desktop PC with Linux installed. Basically, you could set up two programs to communicate over Linux virtual CAN interfaces.

sudo modprobe vcan
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0

Then when running our tutorials/examples, just replace "can0" with "vcan0" when using the SocketCAN driver.

canDriver = std::make_shared<isobus::SocketCANInterface>("vcan0");

If you're wanting to do something a bit more complicate…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by viniciusbaltoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants