Corrupting the Ack delimiter and CRC delimiter

CAN FD and LIN Interface for High-Speed USB 2.0
Post Reply
shraavann
Posts: 3
Joined: Thu 5. Jul 2018, 07:46

Corrupting the Ack delimiter and CRC delimiter

Post by shraavann » Thu 26. Jul 2018, 07:12

Hello ,

I'm new to the usage of PCAN usb Pro , i want to corrupt the acknowledgement delimiters and CRC delimiters of a message that is being transmitted from the PCAN usb pro but i could not find any such options on the PCAN view tool or the API .

Is it possible to corrupt these fields for the transmitted message ?

Thanks

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Corrupting the Ack delimiter and CRC delimiter

Post by M.Maidhof » Thu 26. Jul 2018, 09:38

Hi,

with PCAN-View you can use the error generator tab to destroy/change a specific bit of a CAN message. You have to calculate the bitposition of the crc delimiter of your CAN message, and set the bitposition in the errorgenerator tab. Knowledge of the raw CAN protocol definitions are necessary to use that feature. Take care of the stuff bits in your calculation.

regards

Michael

shraavann
Posts: 3
Joined: Thu 5. Jul 2018, 07:46

Re: Corrupting the Ack delimiter and CRC delimiter

Post by shraavann » Thu 26. Jul 2018, 10:56

Hi Mike
I could destroy the required bit positions of a message that is received by the PCAN tool :) .

I'm not able to destroy/corrupt the bit positions of a message that i want to transmit from the PCAN tool to another ECU .


I have uploaded a image where i could destroy a particular bit of a message which is being received by the PCAN.
Attachments
formerr.png
formerr.png (136.44 KiB) Viewed 15215 times

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Corrupting the Ack delimiter and CRC delimiter

Post by M.Maidhof » Thu 26. Jul 2018, 15:58

Hi,

did you set the ID to your transmit message ID? Did you transmit this ID in the transmit list after setup the ID in the error generator tab?

regards

Michael

shraavann
Posts: 3
Joined: Thu 5. Jul 2018, 07:46

Re: Corrupting the Ack delimiter and CRC delimiter

Post by shraavann » Fri 27. Jul 2018, 06:00

Yes i did set a ID in the transmit list ,in this case the transmit message ID is 55h with cycle time of 1000 ms .

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Corrupting the Ack delimiter and CRC delimiter

Post by PEAK-Support » Fri 27. Jul 2018, 08:36

You ignore 50 Messages - with a Sheduler that use 1000ms, you have to wait 50 Seconds before the Device destroy the Frame. After that you destroy for over 50 Seconds every Message (52 Times - 1000ms).

Here a screen - 2 PCAN-USB - destroying 0x1c every 6th Frames
Destroy_0x01c.JPG
Destroy_0x01c.JPG (150.7 KiB) Viewed 15199 times
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply