J1939 receive outputs incorrect values.

10 visualizzazioni (ultimi 30 giorni)
Andrew Wilson
Andrew Wilson il 7 Mar 2023
Risposto: Shlok il 2 Mag 2025
I am using the vehicle networking toolbox to recieve j1939 messages from a GPS device. The configuration is done using the .dbc associated with network and I have verified the configuration is proper. I am able to read the messages using the Vector Canalyzer software, however the values being output from the J1939 recieve block do not match. Are there some limitations to the j1939 blocks within the vehicle networking toolbox? It seems there is some issue within the block itself that is not exposed to the user.

Risposte (1)

Shlok
Shlok il 2 Mag 2025
Hi Andrew,
I understand that you're encountering incorrect values from the "J1939 Receive" block, even though the configuration appears correct. The limitation arises because the block processes data strictly based on the DBC file, and if the transmitted messages don't fully match the DBC (e.g., in message length or signal packing), it may result in incorrect values.
A possible solution is to ensure that the transmitted message strictly follows the DBC format. Alternatively, you can initialize missing signals to default values using a script.
For further details on "J1939 Communication", refer to the following MathWorks Documentation link:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by