linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Acknowledging messages with SocketCAN
       [not found] <CALr1zciumzF8ijW-o4YabN3oi=wf+Ph9N9XSH+b=b1UPQhgzww@mail.gmail.com>
@ 2013-06-04 16:33 ` Marc Kleine-Budde
  0 siblings, 0 replies; only message in thread
From: Marc Kleine-Budde @ 2013-06-04 16:33 UTC (permalink / raw)
  To: Mike Mogenson; +Cc: linux-can@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 1861 bytes --]

Hello Mike,

please use the linux-can mailinglist (Cc'ed)

On 06/04/2013 06:21 PM, Mike Mogenson wrote:
> First, thank you for your project.  

I'm just one of the developers working on this project, you're welcome.

> Second, I'm using your can-utils on a BeagleBone running Ubuntu with the
> 3.2 kernel.  Everything is working well with my can0 device in loopback
> mode.  However, when I connect a CAN enabled motor controller to the
> CANbus, the BeagleBone doesn't appear to acknowledge the motor
> controller's heartbeat message and the motor controller retries its
> message over and over.

It's normal behaviour that a CAN node repeats the message if it is not
acked on the bus.

> I don't see anything with candump or in
> /proc/net/can/stats, but I can see the message repeating over and over
> with an oscilloscope on the CANbus.

Ensure that your CAN network is properly terminated on both ends (120 Ohms).

Configure the bitrate of your d-can correctly, it must be the same as
the bitrate of your motor. With canutils:

    canconfig can0 bitrate 1250000

or iproute2's ip (the "ip" from busybox doesn't work):

    ip link set can0 type can bitrate 125000

Then activate your CAN:

    ifconfig can0 up

> Do I have to configure SocketCAN on the BeagleBone
> to acknowledge messages?  How can I set the BeagleBone to have a
> specific Node ID?  To my knowledge, the heartbeat message is not
> directed at a specific Node ID, but I will eventually need to direct
> messages from CAN devices to the BeagleBone.

regards,
Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-04 16:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CALr1zciumzF8ijW-o4YabN3oi=wf+Ph9N9XSH+b=b1UPQhgzww@mail.gmail.com>
2013-06-04 16:33 ` Acknowledging messages with SocketCAN Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).