From: Wolfgang Grandegger <wg@grandegger.com>
To: Michael Luxen <mluxen@gmx.net>
Cc: Oliver Hartkopp <socketcan@hartkopp.net>,
"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: Re: [Socketcan-users] [socketcan]problem to using CAN with BeagleBone Black A5A
Date: Mon, 10 Jun 2013 19:37:32 +0200 [thread overview]
Message-ID: <51B60EDC.5000402@grandegger.com> (raw)
In-Reply-To: <zarafa.51b5fdad.6ffe.67c77ee34ea9157d@v14647.1blu.de>
On 06/10/2013 06:24 PM, Michael Luxen wrote:
...
>>> I'm not sure about the cpu-load, latency and messages lost problems. My
>> experience on the RasperryPi is that 2x MCP2515 on one SPI-Channel doesn't work
>> with busload above 10% at 500kbit/s.
>>
>> That's not that much. But it's an interesting information to get an estimation
>> what one might get with this setup.
> But keep in mind that the Raspi has only one SPI channel where I've connected two MCP2515 (only independetn ChipSelect and Interrupt lines). Therefore I'm interested in to sees how the BeagleBone Black can handle two MCP2515 on idenpendent SPI channels (SPI1/SPI2).
The problem is not (only) SPI hardware but software. The CAN messages
are not read-out quickly enough due to latencies resulting in message
losses. May user do report that problem with the MPC251x. The following
link does have some nice figures:
http://clientes.netvisao.pt/anbadeol/mcp2515.html
I think the software can do better but still latency is critical for the
MPC251x, especialy MPC2510.
Wolfgang.
> Regards
> Mike
>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Oliver Hartkopp <socketcan@hartkopp.net>
>>> Gesendet: Sa 08.06.2013 13:46
>>> Betreff: Re: AW: [Socketcan-users] [socketcan]problem to using CAN with
>> BeagleBone Black A5A
>>> An: Michael Luxen <mluxen@gmx.net>;
>>> CC: linux-can@vger.kernel.org;
>>>> Hello Mike,
>>>>
>>>> thanks for pointing to that comprehensive documentation.
>>>>
>>>> I was asked by a colleague how to get both internal CAN controllers working
>>>> instead of adding SPI-based MCP2515 interfaces.
>>>>
>>>> Good job!
>>>>
>>>> Best regards,
>>>> Oliver
>>>>
>>>> On 07.06.2013 21:46, Michael Luxen wrote:
>>>>> Hello Mohamed,
>>>>>
>>>>> is you question still open or answered already?
>>>>>
>>>>> If still open, please have a look on this page where you can find how to
>>>> enable the CAN-Devices on BeagleBone Black.
>>>>> http://www.aero-box.co.uk/beaglebone-black#TOC-Enable-CANbus-device
>>>>>
>>>>> The only thing you have to do is to edit the am335x-bone-common.dtsi file
>> for
>>>> enabling dcan0 and/or dcan1.
>>>>> Please have in mind that dcan0 is normaly used for the optional Capes, as
>>>> they use the I2C2 pins which are muxed on the same pins than dcan0.
>>>>> Nevertheless I've edited am335x-bone-common.dtsi successfully to enable
>> dcan0
>>>> and dcan1. On my BeagleBone Black (Hardware A5A) eveything is running fine
>> on
>>>> both internal CAN-Interfaces with latest Angstrom and latest Debian as well.
>>>>> Keep in mind that you have to put a CAN-transceiver on the Pins 20/19
>> (DCAN0)
>>>> an 24/26 (DCAN1) on your BeagleBone Black.
>>>>>
>>>>> Regards
>>>>> Mike
>>>>>
>>>>> -----Ursprüngliche Nachricht-----
>>>>> Von: Martin Gysel <m.gysel@gmail.com>
>>>>> Gesendet: Di 04.06.2013 13:32
>>>>> Betreff: Re: [Socketcan-users] [socketcan]problem to using CAN with
>>>> BeagleBone Black A5A
>>>>> An: linux-can@vger.kernel.org;
>>>>> CC: socketcan-users@lists.berlios.de;
>>>>>> Am 25.05.2013 00:49, schrieb Mohamed HAMZAOUI:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I started with beaglebone black A5A, i installed on it the latest
>>>>>>> Angstrom image with : Linux beaglebone 3.8.13 #1 SMP Mon May 20
>>>>>>> 17:07:58 CEST 2013 armv7l GNU/Linux
>>>>>>>
>>>>>>> I have a problem when I try to add a can device, i load with modprobe
>>>>>>> all necessary kernel module (can, ti_hecc, c_can, c_can_platform,
>>>>>>> can-raw, can-bcm) but when i execute
>>>>>>>> ip link add can0 type can
>>>>>>> I have : RTNETLINK answers: Operation not supported
>>>>>>> I used a recent version of iproute2.
>>>>>>
>>>>>> did you initialize the can module? do you use a can cape? if yes, does
>>>>>> your kernel already include the needed dts to enable the can module?
>>>>>>
>>>>>> /martin
>>>>>>
>>>>>> --
>>>>>> To unsubscribe from this list: send the line "unsubscribe linux-can" in
>>>>>> the body of a message to majordomo@vger.kernel.org
>>>>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>>>>
>>>>> --
>>>>> To unsubscribe from this list: send the line "unsubscribe linux-can" in
>>>>> the body of a message to majordomo@vger.kernel.org
>>>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>>>
>>>>
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe linux-can" in
>>>> the body of a message to majordomo@vger.kernel.org
>>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-can" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-can" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
next prev parent reply other threads:[~2013-06-10 17:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-10 16:24 AW: [Socketcan-users] [socketcan]problem to using CAN with BeagleBone Black A5A Michael Luxen
2013-06-10 17:37 ` Wolfgang Grandegger [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-06-10 19:54 Michael Luxen
2013-06-11 6:30 ` Wolfgang Grandegger
2013-06-15 23:48 ` Mohamed HAMZAOUI
2013-06-16 19:01 ` Sebastian Haas
[not found] <CABMxt4gM55=Og5GdYmK_KHLuH1oQexGhcSpXRP3CA3FywjT5Yg@mail.gmail.com>
2013-06-04 11:23 ` Martin Gysel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51B60EDC.5000402@grandegger.com \
--to=wg@grandegger.com \
--cc=linux-can@vger.kernel.org \
--cc=mluxen@gmx.net \
--cc=socketcan@hartkopp.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).