I have only theoretical knowledge. But, what you need is a Socket CAN driver for your CAN device. The interface of the socket can driver then needs to be up, wehn the runtime starts.

The rest should work, I guess.