CanCat icon indicating copy to clipboard operation
CanCat copied to clipboard

Cannot Init Device

Open decidedlygray opened this issue 3 years ago • 6 comments

Hello,

I'm hoping you might be able to point me in the right direction. I'm using an Arduino Uno with SeeedStudio's CANBUS Shield. I am able to build and upload the sketch, and was able to install the required Python dependencies as well. The shield powers on fine, and when I have it hooked into my vehicle I see the RX light go on which indicates to me that it is actively seeing data on the CAN Bus.

All that said, I cannot seem to use the tool. When I try to start up, this is what I get:

/opt/CanCat/# ./CanCat.py -p /dev/ttyACM0
CAN INIT FAILED: Retrying

I've also tried:

>>> import cancat
>>> CANalysis = cancat.CanInterface('/dev/ttyACM0', 115200) # your device may vary
>>> CANalysis.ping()
(None, None)

But I cannot ping the device.

Any tips?

decidedlygray avatar Jul 03 '21 00:07 decidedlygray

was this resolved to your satisfaction? do you still need help? (if so, i'm terribly sorry for the delay)

atlas0fd00m avatar Dec 30 '21 21:12 atlas0fd00m

Hey @atlas0fd00m - I have not been able to get the software to work with my setup. I can try it again with the latest but this hasn't worked for me sadly

decidedlygray avatar Dec 30 '21 23:12 decidedlygray

i have to admit, i haven't run CanCat on the UNO in over 4 years. the DUE (ARM-based) is so much more powerful and i had issues with the UNO being unable to keep up with an active CAN bus of a modern vehicle.

could i interest you in purchasing a Macchina M2? :)

how did you compile the firmware and upload it to the UNO?
my mind wanders to whether the firmware is operating at all.

can you try doing this and seeing if you are able to see much indication of communication with the Arduino (you can muck with the level of verboseness):

>>> import cancat
>>> CANalysis = cancat.CanInterface('/dev/ttyACM0', 115200, verbose=True)

i'm not sure if the baud rate matters either. are you sure that's what the Arduino is setup to use? iirc, the M2/DUE system it doesn't matter.

thanks, @

atlas0fd00m avatar Jan 02 '22 23:01 atlas0fd00m

Any good places to pick up a Macchina M2? :) everywhere is out of stock. Ditching the UNO to try and get an interface working

decidedlygray avatar Dec 07 '23 02:12 decidedlygray

Arduino DUE with DUE_CAN shield what we supported before M2 existed. Hopefully the M2's can become available again (or something else to take it's place), but you should try that in the interim.

Here are a couple example links:

  • https://store-usa.arduino.cc/products/arduino-due?selectedStore=us
  • https://togglebit.net/product/arduino-due-can-shield/

Good luck! It's been a while since I needed a new unit. Please let us know if you have better options that end up working.

kuri05 avatar Dec 11 '23 17:12 kuri05

Thanks for the links @kuri05!

I was looking at the Macchina A0, but I don't think it's a drop in replacement for the M2 for this scenario sadly

I'll check out the Arduino Due and shield

decidedlygray avatar Dec 11 '23 21:12 decidedlygray