PCAN-USB on Mac OS
Posted: Wed 12. Jun 2024, 10:12
Hello,
I have a Perl program that's running a couple of CAN-servers to interact with a HIL setup. And with the connected Linux machines it's just the case of:
ifconfig -a | grep can
ip link set can0 type can bitrate 250000
ip link set up can0
And then I can reference these CAN-interfaces to my perl program via .ini files:
Port 9921
socketCAN:can0:250
But on the OSX system, the CAN-dongles doesn't even show up with ifconfig -a. I thought I just had to install the drivers from Mac-CAN for it to work. I get the dongles listed as available with the can_moni tool and can send/receive frames manually that way. Are there any solutions to achieving this on Mac? Or am I better off trying to get a ubuntu container running and letting it access the host's devices, i.e the CAN dongles?
I have a Perl program that's running a couple of CAN-servers to interact with a HIL setup. And with the connected Linux machines it's just the case of:
ifconfig -a | grep can
ip link set can0 type can bitrate 250000
ip link set up can0
And then I can reference these CAN-interfaces to my perl program via .ini files:
Port 9921
socketCAN:can0:250
But on the OSX system, the CAN-dongles doesn't even show up with ifconfig -a. I thought I just had to install the drivers from Mac-CAN for it to work. I get the dongles listed as available with the can_moni tool and can send/receive frames manually that way. Are there any solutions to achieving this on Mac? Or am I better off trying to get a ubuntu container running and letting it access the host's devices, i.e the CAN dongles?