atlas0fd00m/CanCat

Cannot Init Device

decidedlygray opened this issue · 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?

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

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

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,
@

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

kuri05 commented

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:

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.

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