Need support J1939 protocol support to my kernel (v3.8 on BeagleBone Black)
Hi Kurt,
Using the test code given by you I have developed an app but I am
facing some issues i don't know its j1939 limitation or the stack.
1.I want to transmit and single frame message RACM message
canId--18EAFEFF data 00EE00FFFFFFFFFFFF it asks to bind address with 0xFE
note -can i transmit single frame message like raw can from any source
address
to any dest address.
I think address claim is needed for only TP message
2. In case of multiple address claims like 0x80 and 0x90 if i want to transmit the data from both address parallel y do i need to create different socket for each address?
3.It don't reply for RACM message if i send from different adapter
example: 18EAFEFF#00EE00FFFFFFFFFFFF j1939 stack should reply with claimed
address Like 80 and 90
I was busy in creating the app to test the linux j1939 stack on
begalbone Black. thank you very much for the test programs those helped me a lot
Thank
Swapnil
Hi Swapnil,
Quoted 4 lines
Using the test code given by you I have developed an app but I am
facing some issues i don't know its j1939 limitation or the stack.1.I want to transmit and single frame message RACM message
RACM?
I don't know the RACM acronym. Can you explain a bit?
Quoted 1 line
canId--18EAFEFF data 00EE00FFFFFFFFFFFF it asks to bind address with
0xFE
I guess you want 18eafffe#00ee (PGN 0ea00 is per J1939 only 3 bytes long).
Because FF is not allowed as source, and 0xfe is fuzzy to use as destination. Likewise, 0xfe as source is common thing to do for requesting others address claims, and FF as destination is, well, a broadcast.
Quoted 4 lines
note -can i transmit single frame message like raw can from any source
address
to any dest address.
That is true, but not every combination is a 'legal' withing J1939 context.
Quoted 1 line
I think address claim is needed for only TP message
Address claim is needed for dynamic addressing (j1939-81). This can be combined, but it really unrelated to TP (transport protocol). Your story is valid without address claims also, using static addressing.
Quoted 4 lines
2. In case of multiple address claims like
0x80and0x90if i want to transmit the data from both address parallel y do i need to create different socket for each address?
s/multiple address claims/multiple addresses/
If you want to transmit both 18000080#xxxx & 18000090#xxxx, you need a different socket for each address.
Note that a single source address indicates a logical node. It's quite uncommon to combine different logical nodes into 1 program, but if you'd want to, different sockets is the way to go ...
Quoted 4 lines
3.It don't reply for RACM message if i send from different adapter
example: 18EAFEFF#00EE00FFFFFFFFFFFF j1939 stack should reply with claimed
address Like 80 and 90
I see what you mean.
18eafffe#00ee00 from a remote should be replied with the address claims. You should really consider using jacd then.
That will deal with j1939-81 (1 instance for each SA).
Do you need dynamic addresses? Static addresses make things a lot simpler. And static addresses allow Transport Protocol :-).
Quoted 4 lines
I was busy in creating the app to test the linux j1939 stack on
begalbone Black. thank you very much for the test programs those helped me a lot
That's cool! It feels fine that it helps others.
Signature · 1 line
Kurt Van Dijck