Why is there a delay while using the J1939 FIFO blocks in xPC Target 5.0 (R2011a)?
3 views (last 30 days)
Show older comments
I have a model that uses J1939 Transmit/Receive blocks and I experience a 300ms delay when I perform a loopback test. I am sending and receiving 7 messages. The messages are triggered every 10ms.
When I use the equivalent CAN Blocks to transmit and receive I see a 50ms delay which I believe is the network delay. The sample time for my model is 10ms.
Accepted Answer
MathWorks Support Team
on 8 Dec 2011
The following two features can be disabled in the J1939 Protocol Stack to help reduce latency:
1. Double Click the J1939 Protocol Stack Block.
2. Select the "Transport Protocol" tab and uncheck "Enable Transport Protocol". Click "Apply".
3. Select the "Network Management" tab and uncheck "Enable Address Claiming". Click "Apply".
These two features add some latency to the message transmission and reception depending on the type of messages being sent or how the J1939 network is set up.
If these features are not explicitly required, they can be turned off.
If the latency is observed only during the first transmission cycle then specifically address claiming might be the reason for the initial latency (since actual message transmission won't start until the node address is claimed successfully and acknowledged by other nodes).
0 Comments
More Answers (0)
See Also
Categories
Find more on Target Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!