09-19-2013 09:13 AM
Hello,
Is there a way to retrieve for logging actual frames send and received on CAN bus when using Automotive Diagnostic Command Set.
I see in structure TD1 a field named LogFrame, what is this field purpose ? logging frames ?
typedef struct {
uint32_t DiagCANHandle;
uint16_t TransportProtocol;
uint8_t ReceiveAddressExtension;
uint8_t TransmitAddressExtension;
uint32_t ReceiveCANId;
uint32_t TransmitCANId;
LVRefNum DiagCANQueue;
LVBoolean LogFrames;
uint8_t MyTPAddress;
uint8_t OtherTPAddress;
uint16_t T1;
uint16_t T2;
uint16_t T3;
uint16_t T4;
uint8_t TxSN;
uint8_t BlockSize;
uint8_t RxSN;
LVBoolean VWTPInitialized;
uint8_t TxBlockNo;
uint32_t baudRate;
LStrHandle Interface;
uint32_t ChannelDiagCANHandle;
LVRefNum UDPConnectionID;
LVRefNum TCPConnectionID;
uint32_t TargetIPAddr;
uint16_t SourceAddress;
uint16_t TargetAddress;
LVBoolean SendHeaderNACK;
uint32_t DLLHandle;
uint8_t NAD;
} TD1;
Thank for your support.
B.W.
09-23-2013 10:07 AM
Hi,
Nothing is mentionned in the documentation. I presume this parameter is either not used or internally set by other functions of the ADCS API.
Indeed, I looked at it in LabVIEW and this parameter is hidden inside the diag ref parameter. Another clue is that no path are available to set up a logging of the frames in/out.
Moreover u can normally used the the frame in/out stream session to retrieve the data as mentionned in this thread:
Did u tried on your side to set up the log frame parameter to true? What happens?
Best regards,
Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France