Re: J1939: Unable to receive and transmit multi-frame messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 17.02.20 21:49, Elenita Hinds wrote:
Hi,

Back when I was using just the J1939 branch (before it got re-written
and mainlined), I was able to receive and transmit multi-frame
messages.  Upgrading to kernel v5.4, this is no longer the case.

The upstreamed version is not binary compatible to the old version. Please make sure your application is properly updated.

For the receive part, it is failing in j1939_tp_im_involved_anydir()
call, which is the first thing called by j1939_tp_recv(). The socket
is set to promiscuous mode; has no problem receiving ALL the  8-byte
long messages but fails on longer ones. There should not be any
difference with how the socket is setup as far as the message length
goes  but is there a new step needed in order to receive the
multi-frame messages as well?

The TP/ETP (multi-frame message) is the core functionality of j1939 stack. The functionality can be tested with cat-utils. See:
https://github.com/linux-can/can-utils/blob/master/can-j1939-kickstart.md

Please make sure you have all recent fixes:
https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/log/net/can/j1939

If you still have some issue, please provide code example, so we able to reproduce it.

Kind regards,
Oleksij Rempel

--
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux