Processing J1939 BAM messages with VNT
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Charles Coulton
el 14 de Oct. de 2022
Comentada: Charles Coulton
el 20 de Oct. de 2023
I'm trying to use the Vehicle network tool box to capture and process a transport protocol multi packet message.
The message is sent over BAM or broad cast, and i've created blocks to capture when RTS message goes out, but is there a method of captureing the disperate values across a set of packets and present the final thing in an array, or is it dump to the workspace and let some other script figure it out.
0 comentarios
Respuesta aceptada
Shivam Lahoti
el 20 de Oct. de 2023
Hi Charles,
From what I can understand, you want to process a multi-packet transport protocol over the J1939 communication channel and want to capture the disparate values across a set of packets.
The vehicle Network toolbox provides several blocks that could be used to receive packets from different communication protocols, Since the transport protocol is over the J1939 communication channel VNT has a J1939 Receive block. The J1939 Receive block receives a J1939 message from the configured CAN device. Please look at the following documentation to understand the J1939 receive block.
Along with this have a look at the following documentation’s function segment to understand the different functions available to process the transport protocol.
For example, to receive all the available parameter groups from the bus by specifying a count of Inf.:
db = canDatabase('MyDatabase.dbc')
chan = j1939Channel(db,'Vector','CANCaseXL 1',1)
start(chan)
pgrp = receive(chan,Inf)
I hope this helps.
Regards,
Shivam Lahoti.
Más respuestas (0)
Ver también
Categorías
Más información sobre Vehicle Network Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!