CAN Message Read from Aurix using Driveworks Api


I am using dwSensorCAN_readMessage(&msg, 0, canSensor) to read can messages from Aurix. I am sending Can messages at 100 ms rate using PCAN. Below is my code.

But I am not receiving anything if I set my receiving Timeout equals to “0” (0 microsecond). I am expecting to receive all the signals captured in the buffer while 100ms.

If I set my timeout equals to “1” (1 microsecond), I am receiving all the signals from buffer correctly.

    dwCANMessage msg{};
    // read all messages until internal queue is empty
    while(dwSensorCAN_readMessage(&msg, 0, canSensor) == DW_SUCCESS)
        cout << "Received Messages" << endl;

Dear dhruvildarji1409,

Regarding to the current architecture, could you please refer EB-DrivePX_Software_User_Guide_DPX2.pdf (in 5.5.1 section) for your topic? Thanks.

Hey Steve,

We are using Drive Xavier not Drive PX.

Is there any similar documentation I can find in Drive Xavier? If yes, then Where can I find it?

Dear dhruvildarji1409,

Oh, my fault.
Could you please find file in /home/{user}/nvidia/nvidia_sdk/DRIVE_Software_9.0_Linux_hyperion_E3550/DriveSDK/drive-t186ref-foundation/utils/scripts folder on your hostPC?
Please unzip the file then you can see the file in DRIVE-V5.1.0-E3550-Aurix. Thanks.