Traceback (most recent call last):
File “/home/pi/klipper/scripts/canbus_query.py”, line 64, in
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/local/lib/python2.7/site-packages/can/interfaces/socketcan/socketcan.py”, line 658, in send
sent = self._send_once(data, msg.channel)
File “/home/pi/klippy-env/local/lib/python2.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
A doubt… when the installation is made so that it works with a CAN adapter, they comment that you have to bridge 2 pins of the Can board with a “termination resistor”, fine. Is a termination resistor the same as placing a jumper?
If they are different, how do I know the difference between a “jumper” or a “termination resistor”
The RPi bitrate and the EBB have to be set the same, and any other CAN bus devices.
The CAN hats typically have a 120-ohm resistor.
The EBB has a 120 ohm jumper to set it as the end device, if there are other CAN bus devices after the EBB then it’s jumper needs to be off, if it is the last device then the jumper needs to be installed.
No ID typically means incomplete wiring or bad connections.
The USB-C connector on the EBB cannot be used for CAN bus to a RPi CAN hat, the other connector on the EBB is for CAN bus communications.
for that, I have made a “fix”, since the resistor that came with the EBB42, I can’t find it, so I have put a 120 ohm resistor, I suppose it will be the same…
A) When send: ifconfig, i can see can0 interface, before no… and see some activity, RX paquets are rrising
B) When run the script: ~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0, no show error, almost an advance…
Questions:
What do the “maqical” command i have sended sudo ip link set up can0 type can bitrate 500000? i ask these, i have read that bitrate in Can adapter and Canboard must be the same, and i haved flashed EBB with a bitrate of 250000. These command, affects this, o i have to reflash? with bitrate of 500000?
How i can do sudo ip link set up can0 type can bitrate 500000 permanent?
How I did it, basically it was simple… you just had to read carefully, I followed the Bigtreetch manual carefully.
I think the main difference is that when I compiled the firmware, I didn’t look at the “coding” of the can ports, and I chose the one indicated by each guide and NO, you have to choose them according to the can board model you have.
In my case EBB42 v1.1, which according to the scheme that you have given me in this forum, uses the ports (PB1/PB0), once the firmware has been compiled and recorded with this option…
And after executing the script that @NAPCAL has passed me… it has found me the EBB42v1.1
When I read this message in the console:
Found canbus_uuid=32c452993a02, Application: Klipper
Total 1 uuids found"
Tears fell…
I just have to mount everything on the site and configure it, which is not a small thing… but at least, this first phase is achieved.
Thank you all for your help, and sorry if I’ve bothered you…