Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Init Device #49

Open
decidedlygray opened this issue Jul 3, 2021 · 6 comments
Open

Cannot Init Device #49

decidedlygray opened this issue Jul 3, 2021 · 6 comments

Comments

@decidedlygray
Copy link
Contributor

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?

@atlas0fd00m
Copy link
Owner

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

@decidedlygray
Copy link
Contributor Author

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

@atlas0fd00m
Copy link
Owner

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

sprout42 pushed a commit to sprout42/CanCat that referenced this issue Apr 6, 2023
Propose adding additional context for init failures to help debugging (related to atlas0fd00m#49)
@decidedlygray
Copy link
Contributor Author

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
Copy link

kuri05 commented Dec 11, 2023

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.

@decidedlygray
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants