FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
04-09-2024 02:38 PM
Could you please provide more information on what exactly needs to be done in the custom application in order to use the SocketCAN interface?
Solved! Go to Solution.
04-11-2024 07:10 AM - last edited 3 weeks ago
Moved this topic to the forum from the how to article "Reading CAN bus data into ctrlX CORE". @Sgilk for your information.
Currently there is no way to set up the CAN interface via the ctrlX OS web interface.
When an own snap is created it has to have access to the "network-control" interface via a corresponding slot. This is not auto connected because of security reasons. So three possible ways are available:
$ sudo ip link set can0 type can bitrate 125000
$ sudo ip link set up can0
04-11-2024 02:49 PM
A couple of small clarifications on point #3 above.
4 weeks ago
in the second line above has to be also can0 (sudo ip link set up can0)
2 weeks ago - last edited 2 weeks ago
The can0 is now with a green check at the settings/interfaces after
$ sudo ip link set can0 type can bitrate 125000
$ sudo ip link set up can0
I used bitrate 500000.
How can I use the can0 interface then in node-red? I thought to install https://flows.nodered.org/node/node-red-contrib-socketcan but that doesn't work (some errors occur). But I can import other nodes, connection to internet is working.
2 weeks ago
I have not found any working nodes for CAN in Node-RED. It is also possible that Node-RED needs a plug added for accessing the CAN interface.
I would suggest one of the solutions in this How-To.
2 weeks ago
Thank you @Sgilk ok, I will check...