Hi everyone,
I'm trying to sniff the FDCAN with the Digilent SDK, using Python. My HW connections are:
- microcontroller that sends data over CAN to the Analog Discovery 2
- Analog Discovery 2 connected to PC
I found the example "Digital_Can.py" in the SDK installation folder and I am able to use it without problems. For example, if from the microcontroller I send 8 bytes in CLASSIC CAN, e.g. 0xAA 0xBB 0xCC 0xDD 0xEE 0xFF 0xAB 0xAC I can correctly receive it in my Python code using the FDwfDigitalCanRx function, and all works fine.
But if I send more than 8 bytes from the microcontroller using FDCAN, I can't receive the data correctly. I searched in the SDK Reference Manual but I didn't find an answer.
So my question is:
- is it possible to sniff FDCAN message with the Waveforms SDK, with a function like FDwfDigitalCanRx but for FDCAN?
I have already used the Waveforms GUI with the Protocol and Scripts tools and here I am able to read both CAN and FDCAN message, but I'd like to read FDCAN message with a custom code using the SDK.
Thanks in advance,
Marco