Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help setting up AUTOSAR E2E protocol CRC channels with NI-VCOM

Hi all,

I need to set up a CAN network to communicate with a 3rd party controller that uses Autosar E2E protocol counter and CRC channels.

I'm using the Custom Device included in 'NI Vehicle Communcitation Toolkit' on a Linux-RT PXI target with NI Veristand 2023.


I have some experience setting up CAN networks on XNET devices but never used the VCOM custom device or any Autosar E2E...
I read through the VCOM manual but it's not clear to me yet...


I (think I) managed to configure the counter channels ok but I'm struggling with the CRC channels:


With the controller in question, I was given the following information:
- CRC is following the "Autosar profile 1" sceme -- "E2E_P01_DATAID_BOTH"
- I was also given a unique "Data ID" for each message

 

The documentation states that VCOM supports Autosar E2E (that's why we bought it) but there is no mention of it in the 'AutoSignal Types' of the Restbus Simulation Configuration app.


I've found this document, describing the Autosar E2E:
https://www.autosar.org/fileadmin/standards/R20-11/FO/AUTOSAR_PRS_E2EProtocol.pdf


What I took from that is that "E2E_P01_DATAID_BOTH" seems to be a variation of the "J1850 CRC", so I selected "ChecksumUserJ1850" as Autosignal Type in the RBSConfig app. and set 'Initial Value' and 'FinalXORValue' both to '00', correct?


Now I need to figure out what to enter as 'CRCMask', 'UserBytesBefore' and 'UserBytesAfter' and where to enter the "Data ID".

Any help would be greatly appreciated.


-PJ.

 

 

0 Kudos
Message 1 of 23
(5,884 Views)

OK. I think I figured it out.

For anyone interested or facing the same, this is how I configured the CRC AutoChannels for AUTOSAR_E2E_Profile1 ("E2E_P01_DATAID_BOTH") in the RBS descriptor:

 

 - Autosignal Type: "J1850_USER"

 - CRCPolynom: [empty] --> Defined by J1850 as 0x1D

 - CRCMask: "127" --> [01111111] calculate over the first 7 bytes

 - Initial Value: "00" --> Defined by Autosar E2E_P01

 - FinalXORValue: "00" --> Defined by Autosar E2E_P01

 - UserBytesBefore: This is where you enter the unique Data ID for the message, as an array of bytes, starting from the LSB.
        Example: Data ID = 0x2468 (=d9029) --> LSB= 0x68 (=d104), MSB= 0x24 (=d36)

                        --> UserBytesBefore= "104,36" (To be entered in the RBSConfig tool as decimal numbers, separated by a comma)

 - UserBytesAfter: [empty] or "256"

 

Message 2 of 23
(5,824 Views)

How AUTOSAR E2E P02 configure in labview.

 

0 Kudos
Message 3 of 23
(5,515 Views)

@donbosco100 wrote:

How AUTOSAR E2E P02 configure in labview.

 


The configuration for the AUTOSAR E2E is not done in LabVIEW but RBSConfig tool.

End-to-End Communication ProtectionNI-VCOM supports additional checksum mechanisms. You can configure the checksum mechanisms using the RBSConfig tool. 

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 4 of 23
(5,501 Views)

Thank you for your information XYOng,

           I have tried with the RBS config tool there is no clear info. Please share any help docs.

In Canoe we sending the below message with CRC and Counter.

 

How to configure in NI with RBS config tool and send to xnet.

 

donbosco100_0-1695883129060.png

donbosco100_1-1695883274704.png

 

 

OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 c0 00 00 00  PDU should be sent cyclacilly each 320ms
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 5e 01 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 1c 02 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 f6 03 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 25 04 00 00  
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 83 05 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 e1 06 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 4f 07 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 24 08 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 fa 09 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 4c 0a 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 40 0b 00 00  
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 ea 0c 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 28 0d 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 15 0e 00 00  
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 3f 0f 00 00  
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 c0 00 00 00  Here the sequence should re-start again…
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 5e 01 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 1c 02 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 f6 03 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 25 04 00 00  
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 83 05 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 e1 06 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 4f 07 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 24 08 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 fa 09 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 4c 0a 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 40 0b 00 00  
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 ea 0c 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 28 0d 00 00   
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 15 0e 00 00  
OTAMC_D_01_XIX_HCP5_CANFD01 16a95596x 4 3f 0f 00 00  
0 Kudos
Message 5 of 23
(5,475 Views)

See Using NI-VCOM Toolkit to Configure Rolling Counter for CAN Application

Select ChecksumUserJ1850 as the Auto Signal type.

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 6 of 23
(5,472 Views)

Thank you for the info, You mentioned J1850 communication. How to configure CANFD.

 

0 Kudos
Message 7 of 23
(5,406 Views)

CAN FD is defined in the DBC file.

ZYOng_1-1696597235081.png

 

 

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 8 of 23
(5,399 Views)

How to RBL file load labview and use in logic.

Thanks

 

0 Kudos
Message 9 of 23
(5,334 Views)

You should explore the shipping examples and documentation. All you need to get started are provided

<LabVIEW>\examples\NI-VCOM

C:\Users\Public\Documents\National Instruments\NI-VCOM

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 10 of 23
(5,324 Views)