gunahmt
Posts: 15
Joined: Mon Jun 25, 2018 12:31 pm
Location: Turkey

Can Bus Problem

Wed Jun 27, 2018 2:12 pm

Hi everyone,

I use mcp2515 for communicate with can bus. i want to use raspberry pi as a gateway. i tried to send and recieve data from mcp2515 arduino module.

I followed the quick-guide can bus module and didn't took any error, but when i tried to send 1 packet to mcp2515 it started sending data and didnt stop. Do you have any idea for reason of this?

scotty101
Posts: 3671
Joined: Fri Jun 08, 2012 6:03 pm

Re: Can Bus Problem

Wed Jun 27, 2018 3:29 pm

gunahmt wrote:
Wed Jun 27, 2018 2:12 pm
the quick-guide can bus module and didn't took any error,
Which guide?
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

gunahmt
Posts: 15
Joined: Mon Jun 25, 2018 12:31 pm
Location: Turkey

Re: Can Bus Problem

Thu Jun 28, 2018 6:27 am

Which guide?
that ; viewtopic.php?f=44&t=141052

User avatar
Laurens-wuyts
Posts: 716
Joined: Wed Aug 21, 2013 7:35 pm
Location: Belgium
Contact: Website

Re: Can Bus Problem

Thu Jun 28, 2018 11:22 am

Hey,

Is there any other device on the CAN bus?
I think the mcp2515 doesn't receive an acknowledge from any other device, so it resends the message over and over :) .

Laurens

Pi Flyer
Posts: 48
Joined: Sat Jun 04, 2016 1:57 pm

Re: Can Bus Problem

Thu Jun 28, 2018 1:34 pm

Are you using a bus terminator?

gunahmt
Posts: 15
Joined: Mon Jun 25, 2018 12:31 pm
Location: Turkey

Re: Can Bus Problem

Fri Jun 29, 2018 8:08 am

Laurens-wuyts wrote:
Thu Jun 28, 2018 11:22 am
Hey,

Is there any other device on the CAN bus?
I think the mcp2515 doesn't receive an acknowledge from any other device, so it resends the message over and over :) .

Laurens
yes that was the problem i figure it out. thank you :)

Return to “Interfacing (DSI, CSI, I2C, etc.)”