From: Laurent Vaudoit <laurent.vaudoit@gmail.com>
To: linux-can@vger.kernel.org
Subject: Re: J1939 message length
Date: Fri, 16 Jan 2015 13:31:57 +0000 (UTC) [thread overview]
Message-ID: <loom.20150116T143025-691@post.gmane.org> (raw)
In-Reply-To: 20141215093136.GA646@vandijck-laurijssen.be
Kurt Van Dijck <dev.kurt <at> vandijck-laurijssen.be> writes:
Hi Kurt,
>
> Hey,
>
> On Mon, Dec 15, 2014 at 08:58:14AM +0000, pfifre.ext <at> orange.com
wrote:
> > Hi Kurt,
> >
> > I resolved the issue. The problem appears with long message because,
according to the j1939
> specifications, the end of message has to be fulfilled with 0xFF if the
message is not modulo 8.
> > Apparently, the j1939 drivers don't make the padding with 0xFF.
>
> You're not the first to find an actual ECU complaining on this.
> I assembled a patch earlier this year, see http://lists.kde.org/?l=linux-
can&m=139825572207448&w=2
>
> > Then I do that in my software and it works fine know.
>
> I advise to apply that patch, and avoid to calculate packet sizes in
userspace.
I've seen this message concerning a bug in the DLC can frame when a more
than 8 bytes J1939 frame is sent.
Looking at the patch, it seems that every j1939 frame will be padded with
0xFF, even single frame (less than 8 bytes).
I think this is an error as standard SAEJ1939-21 specifies that for example
PGN request (0xEA00) is 3 byes length, and so can frame dlc must be 3 set
to 3.
May be the patch should be move on the transport module who manage Data
transfer protocol?
Is there something i missed?
>
> Which is the remote ECU that does not accept the packets?
>
> >
> > Perhaps, It will be a good idea to add this in the drivers.
>
> Yep, I'll do.
>
Best regards,
Laurent
> Kind regards,
> Kurt
> >
> > Best regards,
> >
> > Pascal
> >
> > -----Message d'origine-----
> > De : Kurt Van Dijck [mailto:dev.kurt <at> vandijck-laurijssen.be]
> > Envoyé : vendredi 12 décembre 2014 12:08
> > À : zze-Open the box FIFRE P ext IMT/OLPS
> > Cc : linux-can <at> vger.kernel.org
> > Objet : Re: J1939 message length
> >
> > Hey Pascal,
> >
> > On Thu, Dec 11, 2014 at 10:44:39AM +0000, pascal wrote:
> > > Hi,
> > >
> > > I've installed the patch for using j1939 socket CAN under linux
> > > (beagleBone black).
> > >
> > > It works fine for receiving j1939 message and sending short message
(8
> > > bytes max).
> > >
> > > But when I try to send long message (>8 bytes long), but the message
> > > has not been sent.
> >
> > Ok.
> > You provide little info how you detect that <=8 bytes work, and >8
bytes do not work.
> >
> > What do you see on the (raw) CAN bus?
> >
> > Are you aware of the Transport Protocol on J1939 that delivers messages
>8 bytes?
> >
> > Kurt
> > >
> > > I use the sendTo method to send frame.
> > >
> > > Do I have to do something special to send long message?
> >
> > no, not necessarily.
> >
> > > I'm working with a 3.8.13 kernel on beaglebone black.
> >
> > Kind regards,
> > Kurt
> >
> >
___________________________________________________________________________
______________________________________________
> >
> > Ce message et ses pieces jointes peuvent contenir des informations
confidentielles ou privilegiees et
> ne doivent donc
> > pas etre diffuses, exploites ou copies sans autorisation. Si vous avez
recu ce message par erreur,
> veuillez le signaler
> > a l'expediteur et le detruire ainsi que les pieces jointes. Les
messages electroniques etant
> susceptibles d'alteration,
> > Orange decline toute responsabilite si ce message a ete altere, deforme
ou falsifie. Merci.
> >
> > This message and its attachments may contain confidential or privileged
information that may be
> protected by law;
> > they should not be distributed, used or copied without authorisation.
> > If you have received this email in error, please notify the sender and
delete this message and its attachments.
> > As emails may be altered, Orange is not liable for messages that have
been modified, changed or falsified.
> > Thank you.
> >
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo <at> vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
next prev parent reply other threads:[~2015-01-16 13:32 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-11 10:44 J1939 message length pascal
2014-12-12 11:07 ` Kurt Van Dijck
2014-12-15 8:58 ` pfifre.ext
2014-12-15 9:31 ` Kurt Van Dijck
2014-12-15 9:37 ` pfifre.ext
2015-01-16 13:31 ` Laurent Vaudoit [this message]
2015-01-19 9:13 ` Kurt Van Dijck
2015-04-27 9:22 ` pfifre.ext
2015-05-19 8:46 ` Kurt Van Dijck
2015-05-19 13:27 ` pfifre.ext
[not found] ` <CAA7hF3y7+j_TZ4nTak8t5Y4ejmE2fOFWxRBKJbrHLiFts_+8eg@mail.gmail.com>
2015-05-19 21:01 ` Kurt Van Dijck
2015-05-20 6:27 ` pfifre.ext
2015-05-21 15:16 ` pfifre.ext
2015-05-21 20:22 ` Oliver Hartkopp
2015-05-22 6:08 ` pfifre.ext
2015-05-19 13:55 ` pfifre.ext
2015-09-04 12:24 ` pfifre.ext
2015-09-07 0:40 ` J1939 + iMX6 + yocto Kurt Van Dijck
2015-09-07 6:31 ` pfifre.ext
2015-09-08 7:58 ` Kurt Van Dijck
2015-09-08 9:33 ` pfifre.ext
2015-09-08 12:32 ` Kurt Van Dijck
2015-09-08 12:45 ` pfifre.ext
2015-09-18 9:04 ` pfifre.ext
2015-09-18 12:10 ` Kurt Van Dijck
2015-09-18 12:29 ` pfifre.ext
2015-09-19 6:34 ` Kurt Van Dijck
2015-09-21 7:27 ` pfifre.ext
2015-09-10 9:56 ` pfifre.ext
2015-09-10 11:34 ` Kurt Van Dijck
2015-09-10 13:18 ` pfifre.ext
2015-09-10 13:30 ` Marc Kleine-Budde
2015-09-10 15:32 ` pfifre.ext
2015-09-11 3:49 ` Kurt Van Dijck
2015-09-11 6:46 ` pfifre.ext
2015-09-11 9:48 ` Kurt Van Dijck
2015-09-11 9:53 ` pfifre.ext
2015-09-15 6:54 ` pfifre.ext
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=loom.20150116T143025-691@post.gmane.org \
--to=laurent.vaudoit@gmail.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