{"id":337,"date":"2026-06-25T13:33:56","date_gmt":"2026-06-25T18:33:56","guid":{"rendered":"https:\/\/anthony.sleck.us\/?p=337"},"modified":"2026-06-25T13:46:56","modified_gmt":"2026-06-25T18:46:56","slug":"can-bus-configuration","status":"publish","type":"post","link":"https:\/\/anthony.sleck.us\/?p=337","title":{"rendered":"CAN BUS Configuration"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Setting up Linux and Getting the Device CANBUS ID<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SSH into the HOST device and edit the can0 file<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/network\/interfaces.d\/can0<\/code><\/pre>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<ul class=\"wp-block-list\">\n<li>Add the following if not already there. <strong>(Set the CANBus speed the same as the speed set in the firmware CAN bus speed)<\/strong><\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>auto can0\n\niface can0 can static\n\nbitrate 1000000\n\nup ifconfig $IFACE txqueuelen 1024<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Save (ctl+s), quit(ctl-x), and reboot the HOST device.<\/li>\n\n\n\n<li>Every device on CANBus generates a canbus_uuid based on the MCU&#8217;s UID, to find each microcontroller device ID, make sure the hardware is powered on and wired correctly, then run the following:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>~\/klippy-env\/bin\/python ~\/klipper\/scripts\/canbus_query.py can0<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If an uninitialized CAN BUS Device exists, you will get a message similar to the following<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Found canbus_uuid=0e0d81e4210c<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Setting up Linux and Getting the Device CANBUS ID<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-337","post","type-post","status-publish","format-standard","hentry","category-klipper-config"],"_links":{"self":[{"href":"https:\/\/anthony.sleck.us\/index.php?rest_route=\/wp\/v2\/posts\/337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anthony.sleck.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anthony.sleck.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anthony.sleck.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anthony.sleck.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=337"}],"version-history":[{"count":6,"href":"https:\/\/anthony.sleck.us\/index.php?rest_route=\/wp\/v2\/posts\/337\/revisions"}],"predecessor-version":[{"id":343,"href":"https:\/\/anthony.sleck.us\/index.php?rest_route=\/wp\/v2\/posts\/337\/revisions\/343"}],"wp:attachment":[{"href":"https:\/\/anthony.sleck.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anthony.sleck.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anthony.sleck.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}