Auto start can device after boot

Dear Community,

I need my colibri to be able to work with CAN frames right after the modules has booted. The CAN is activated and I built a CAN transceiver on my Viola Plus. I’ve written a test program that allows me to read and send CAN packages, but I still need to activate the CAN with the commands ip link set can1 type can bitrate 250000 ip link set can1 up to be able to use my program properly. Is there a way I can set the bitrate and activate can1 up right after the module has booted?

Thank you very much for the help.

Kind regards.

HI @cae30989

Thanks for writing to the Toradex Community!

There are two solution either you call the commands above in your test program or you write a script which is launched at the start-up.

Best regards,
Jaski

Hi @jaski.tx,

thank you for the quick answer, I’m going to use system()

Kind regards

Pefect. Thanks for the feedback.