Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

dnet analyzer data log file

Is there any method to convert the NI-DNET analyzer log file (dcap extension) for use with Excel or other applications?
0 Kudos
Message 1 of 7
(7,568 Views)

Hi,

Please post your dcap file and I'll try to find a way to solve your issue.

 

Thanks,

Sammy Z.

0 Kudos
Message 2 of 7
(7,549 Views)

Hi,

 

Since dcap files are binary files, you will not be able to open them in Excel or notepad, but we're looking to see if we have a toolkit that would translate it to Excel, etc.

 

I will post again if we find anything.

 

Regards,

Sammy Z.

0 Kudos
Message 3 of 7
(7,528 Views)
Thanks for the responses. Just as a note, I will hold off on posting the dcap file for now.
0 Kudos
Message 4 of 7
(7,524 Views)

Hi,

 

Unfortunately, we don't have a way of converting dcap files at the moment. 

 

The following may help you in case you would like to parse the packet for detailed DeviceNet information:

 

In short, the file includes header + packets

header format

#pragma pack(push, 1)

typedef struct tagLogFileHeader

{

char szNISignature[32];

BYTE bMajorVer;

BYTE bMinorVer;

DWORD dwIntfName;

DWORD dwBaudRate;

DWORD dwNumOfPkts;

}LogFileHeader;

#pragma pack(pop)

packet format

Typedef struct

{

U32 ArbitrationID;

U32 TimeStampHigh;

U32 TimeStampLow;

U16 MessageType;

U8 DataLen;

U8 SrcMAC;

U8 DestMAC;

U8 Data[8];

};

The file only stores the raw CAN packets instead of the parsed information.

 

 

 

Regards,

Sammy Z.

Message 5 of 7
(7,507 Views)
The file format information is very helpful. I have been able to parse my DCAP file into the appropriate fields but I can't figure out how to reconstruct the timestamp from the two U32's (high and low timestamp) in the DCAP file. Does anyone know how to do this? Thanks.
0 Kudos
Message 6 of 7
(7,116 Views)

 

Hi, could you post the code you used to parse the dcap file?  We need to parse the file as well, and looking at sample code would be very helpful.  

 

Thanks!

 

0 Kudos
Message 7 of 7
(6,296 Views)