From: gianluca <gianlucarenzi@eurekelettronica.it>
To: "Pankajkumar Misra (RBEI/EEA2)" <Pankaj.Kumar@in.bosch.com>
Cc: linux-can@vger.kernel.org
Subject: Re: MCP2515 implementation is slow
Date: Tue, 25 Nov 2014 17:47:57 +0100 [thread overview]
Message-ID: <5474B2BD.1030901@eurekelettronica.it> (raw)
In-Reply-To: <84a1d29551f84f5494b309e1ad1e0840@SGPMBX1004.APAC.bosch.com>
On 11/25/2014 05:19 PM, Pankajkumar Misra (RBEI/EEA2) wrote:
> Hello Guys,
>
> I have compiled MCP251x.c kernel driver module for Olimex A20-Olinuxino Micro.
>
> The device is working fine for one frame at a time at 500ms. If I send two or more frame at the same time,
> CAN is going to bus-off due to overrun errors.
> Even if I send one frame at faster rate say, 100ms,results in bus-off.
>
> I am communicating with module with ip commands, cansend & candump.
> Also my SPI module is working only at 250K baud, not any other baud.
>
> Any suggestions.
>
> Best Regards,
> Pankaj
> --
> 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
>
>
Once upon a time there were a custom mcp2515.c driver rewritten by
Oliveira and modified by myself to obtain the maximum performance
possible with this VERY POOR chip.
http://clientes.netvisao.pt/anbadeol/mcp2515.html
If you are interested, please feel-free to contact me to obtain a
modified version (maybe better? :-P ) of this driver.
Actually it runs on a 2.6.27 kernel with a Samsung S3C2442 SoC. It runs
without any problem running @ 250Kbit/s and 125Kbit/s with some burst of
a frame every 2 or 4 msecs. For sure your application has to be 'niced'
to a be almost-real-time over other processes and the socket receive
queues have to be increased a little bit.
But it works good over the past 3 years with approx. 1k custom boards
batch worldwide sold.
It would not so difficult to adapt it to run over a 3.x kernel and maybe
in a near future I will add a DEVICE TREE support for it.
Best regards,
--
,,,
(o o)
======oOO==(_)==OOo======
Gianluca Renzi
R&D
phone: +39.0542.609120
fax: +39.0542.609212
.oooO Oooo.
======( )==( )=======
\ ( ) /
\_) (_/
===================
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(".)_/¯
next prev parent reply other threads:[~2014-11-25 16:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-25 16:19 MCP2515 implementation is slow Pankajkumar Misra (RBEI/EEA2)
2014-11-25 16:47 ` gianluca [this message]
2014-11-26 5:02 ` Pankajkumar Misra (RBEI/EEA2)
2014-11-26 16:13 ` gianluca
2014-11-26 12:02 ` Rost, Martin
2014-11-26 12:32 ` Andri Yngvason
2014-11-27 7:46 ` David Jander
2014-11-27 7:33 ` David Jander
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=5474B2BD.1030901@eurekelettronica.it \
--to=gianlucarenzi@eurekelettronica.it \
--cc=Pankaj.Kumar@in.bosch.com \
--cc=linux-can@vger.kernel.org \
/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