From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Michal Sojka <sojkam1@fel.cvut.cz>, linux-can@vger.kernel.org
Subject: Re: [PATCH 1/2] canbusload: Add exact CAN frame length calculation (including bitstuffing)
Date: Fri, 31 Jan 2014 11:16:13 +0100 [thread overview]
Message-ID: <52EB77ED.5000902@pengutronix.de> (raw)
In-Reply-To: <1391089139-31201-1-git-send-email-sojkam1@fel.cvut.cz>
[-- Attachment #1: Type: text/plain, Size: 1280 bytes --]
On 01/30/2014 02:38 PM, Michal Sojka wrote:
> This adds an algorithm for calculating the exact number of bits a CAN
> frame occupies on the bus and uses this algorithm in canbusload. It
> also moves the other methods for CAN frame length calculation, already
> present in canbusload, to the new file.
>
> The added algorithm calculates the exact number of stuffed bit in a
> CAN frame. Note that in order to calculate that correctly, we must
> also know the frame's CRC. Hence, the algorithm also includes CRC
> calculation routine.
>
> The correctness of the algorithm was verified on an oscilloscope for
> several different SFF and EFF frames.
>
> Currently only CAN frames are supported. For CANFD frames, a different
> algorithm is needed. CANFD uses different CRC polynomials and
> calculates the CRC from the staffed bit-stream (CAN calculates CRC
> from de-stuffed bit-stream).
>
> Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
Tnx, applied both to master.
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: 242 bytes --]
next prev parent reply other threads:[~2014-01-31 10:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <id:87ob2tkcts.fsf@steelpick.2x.cz>
2014-01-30 10:05 ` [PATCH 1/2] canbusload: Add exact CAN frame length calculation (including bitstuffing) Michal Sojka
2014-01-30 10:05 ` [PATCH 2/2] canbusload: Fix worst-case frame length estimation Michal Sojka
2014-01-30 10:50 ` [PATCH 1/2] canbusload: Add exact CAN frame length calculation (including bitstuffing) Marc Kleine-Budde
2014-01-30 13:36 ` Michal Sojka
2014-01-30 13:38 ` Michal Sojka
2014-01-30 13:38 ` [PATCH 2/2] canbusload: Fix worst-case frame length estimation Michal Sojka
2014-01-31 10:16 ` Marc Kleine-Budde [this message]
2014-01-31 10:17 ` [PATCH 1/2] canbusload: Add exact CAN frame length calculation (including bitstuffing) Marc Kleine-Budde
2014-01-31 10:39 ` [PATCH] Add license to canframelen.h Michal Sojka
2014-01-31 10:52 ` Marc Kleine-Budde
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=52EB77ED.5000902@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=linux-can@vger.kernel.org \
--cc=sojkam1@fel.cvut.cz \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.