Jump to content

How to Use CAN Toolhead Boards Connected Directly to Octopus / Octopus Pro on CanBoot


Go to solution Solved by mvdveer,

Recommended Posts

1 hour ago, michaelmacintyre said:

Can I just verify that it's a Canbus board your trying to setup?

If it's jst a normal wired toolhead board it's different to setup.

I have attached a picture of a EBB36 can board with the usb jumper next to the usb port.

EBB36 CAN V1.0-PIN.png

That's the one it's a 36 1.1

Link to comment
Share on other sites

41 minutes ago, Thebigm93 said:

That's the one it's a 36 1.1

EBB/BIGTREETECH EBB36 CAN V1.1 User Manual.pdf at master · bigtreetech/EBB (github.com)

page 8 on that manual shows you that you need to connect the jumper onto the vusb pins i think they call it if you are not powering it via 24v. you shouldn't power this board via 24v until it's flashed ready to go as it turns on the heater for the duration it's in flash mode. there should be two buttons on the back to put it into flash mode which is in the manual. once your in dfu mode (flash mode) running the ls /dev/serial command should show the board.

Link to comment
Share on other sites

not spent any time since i fitted the ebb42 but i have found an issue 

I have transferred all the relevant settings to the new ebb42.cfg but my esteps are now miles out. previous rotation distance was 21.9759 new calculated is 3.9117102. i have not applied yet as im thinking this is not right and something else is wrong any ideas?

doesnt matter im an idiot didnt transfer the gear ratio

Edited by JGD13
Link to comment
Share on other sites

 

trying to the can0 up and running but it is not any answers

pi@voron:~ $ ifconfig

 

 


eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether e4:5f:01:91:1e:d4  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.50.234  netmask 255.255.255.0  broadcast 192.168.50.255
        inet6 fe80::da67:eefa:3ed3:f77c  prefixlen 64  scopeid 0x20<link>
        ether e4:5f:01:91:1e:d5  txqueuelen 1000  (Ethernet)
        RX packets 352  bytes 62545 (61.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 242  bytes 47219 (46.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

pi@voron:~ $ ~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0
Traceback (most recent call last):
  File "/home/pi/klippy-env/lib/python3.7/site-packages/can/interfaces/socketcan/socketcan.py", line 679, in _send_once
    sent = self.socket.send(data)
OSError: [Errno 100] Network is down

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/klipper/scripts/canbus_query.py", line 64, in <module>
    main()
  File "/home/pi/klipper/scripts/canbus_query.py", line 61, in main
    query_unassigned(canbus_iface)
  File "/home/pi/klipper/scripts/canbus_query.py", line 25, in query_unassigned
    bus.send(msg)
  File "/home/pi/klippy-env/lib/python3.7/site-packages/can/interfaces/socketcan/socketcan.py", line 658, in send
    sent = self._send_once(data, msg.channel)
  File "/home/pi/klippy-env/lib/python3.7/site-packages/can/interfaces/socketcan/socketcan.py", line 681, in _send_once
    raise can.CanError("Failed to transmit: %s" % exc)
can.CanError: Failed to transmit: [Errno 100] Network is down
pi@voron:~ $
 

 

Link to comment
Share on other sites

14 hours ago, Thebigm93 said:

trying to the can0 up and running but it is not any answers

pi@voron:~ $ ifconfig


eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether e4:5f:01:91:1e:d4  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.50.234  netmask 255.255.255.0  broadcast 192.168.50.255
        inet6 fe80::da67:eefa:3ed3:f77c  prefixlen 64  scopeid 0x20<link>
        ether e4:5f:01:91:1e:d5  txqueuelen 1000  (Ethernet)
        RX packets 352  bytes 62545 (61.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 242  bytes 47219 (46.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

pi@voron:~ $ ~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0
Traceback (most recent call last):
  File "/home/pi/klippy-env/lib/python3.7/site-packages/can/interfaces/socketcan/socketcan.py", line 679, in _send_once
    sent = self.socket.send(data)
OSError: [Errno 100] Network is down

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/klipper/scripts/canbus_query.py", line 64, in <module>
    main()
  File "/home/pi/klipper/scripts/canbus_query.py", line 61, in main
    query_unassigned(canbus_iface)
  File "/home/pi/klipper/scripts/canbus_query.py", line 25, in query_unassigned
    bus.send(msg)
  File "/home/pi/klippy-env/lib/python3.7/site-packages/can/interfaces/socketcan/socketcan.py", line 658, in send
    sent = self._send_once(data, msg.channel)
  File "/home/pi/klippy-env/lib/python3.7/site-packages/can/interfaces/socketcan/socketcan.py", line 681, in _send_once
    raise can.CanError("Failed to transmit: %s" % exc)
can.CanError: Failed to transmit: [Errno 100] Network is down
pi@voron:~ $
 

just seen your message. since it says network is down lets look at that.

Can you remind me please what can controller you are using?

are you using the canbus built into an octopus or something like a U2C?

Have you performed something like this......

 

 

sudo nano /etc/network/interfaces.d/can0

auto can0
iface can0 can static
 bitrate 500000
 up ifconfig $IFACE txqueuelen 256
 pre-up ip link set can0 type can bitrate 500000
 pre-up ip link set can0 txqueuelen 256

 

Link to comment
Share on other sites

4 hours ago, michaelmacintyre said:

just seen your message. since it says network is down lets look at that.

Can you remind me please what can controller you are using?

are you using the canbus built into an octopus or something like a U2C?

Have you performed something like this......

sudo nano /etc/network/interfaces.d/can0

auto can0
iface can0 can static
 bitrate 500000
 up ifconfig $IFACE txqueuelen 256
 pre-up ip link set can0 type can bitrate 500000
 pre-up ip link set can0 txqueuelen 256

Ok I figured it out but I go through everything and mainsail won't allow me to upload my config file. So think I have a bad mainsail 

Link to comment
Share on other sites

2 minutes ago, michaelmacintyre said:

yeah that is strange. have you tried uploading the files using winscp? are the dashboard buttons all there? are you able to get to the dashboard without a config loaded?

So that's my dashboard and the other us my winscp where my config is.

1670515861864509925294093622521.jpg

16705159683437807741736850670698.jpg

Link to comment
Share on other sites

3 minutes ago, Thebigm93 said:

So that's my dashboard and the other us my winscp where my config is.

1670515861864509925294093622521.jpg

16705159683437807741736850670698.jpg

your config has an include in it looking for the ebbcanbus file but the file is not in your klipper_config folder.

I doubt that is why your buttons don't show but it's just what jumped out at me.

 

you might be right though about needing to do install mainsail but i would start by either removing the ebb canbus include first or put the file in the config folder

Link to comment
Share on other sites

1 hour ago, Pradit said:

Hi just would like to know anything wrong with this message?

And the /tmp/printer, baudrate 115200 is that the rate CANBUS use which I set to 500k?

image.thumb.png.462400618c2798c0d20b77bc147cccf6.png

The baudrate is not what's used for canbus it's the bitrate in the canbus network and when your flashing your canbus board. Those need to match so if you set the network to 500Kb then you set the same when flashing the board. the bitrate is usually connecting via serial(usb) to your mcu.

 

Are you using serial to connect to your mcu or are you using canbus bridge?

Link to comment
Share on other sites

24 minutes ago, michaelmacintyre said:

The baudrate is not what's used for canbus it's the bitrate in the canbus network and when your flashing your canbus board. Those need to match so if you set the network to 500Kb then you set the same when flashing the board. the bitrate is usually connecting via serial(usb) to your mcu.

Are you using serial to connect to your mcu or are you using canbus bridge?

I'm using canboot. is it serial or canbus bridge? (EBB36 + Octopus pro)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...