How to use multiple AurixCANs


I want to use multiple AurixCANs simultaneously with DriveWorks.
But, CAN messages is received only in AurixCAN which set “bport=60395”
In the following example, only CAN-bus=a works fine.

sudo ./sample_canbus_logger --driver=can.aurix --params=ip=,bus=a,aport=50000,bport=60395
sudo ./sample_canbus_logger --driver=can.aurix --params=ip=,bus=b,aport=50000,bport=60396
sudo ./sample_canbus_logger --driver=can.aurix --params=ip=,bus=c,aport=50000,bport=60397
sudo ./sample_canbus_logger --driver=can.aurix --params=ip=,bus=d,aport=50000,bport=60398

I guess that the destination UDP port of the send frame from Aurix is due to fixed as “60395”.
I tried to set “bport=60395” to the same value on different CAN-bus, but the following error occured.

EndpointUDP: cannot bind ->
Driveworks exception thrown: DW_HAL_CANNOT_OPEN_CHANNEL: EndpointUDP: cannot bind socket to remote

Is there a solution to this?

Hello atsutaka,

Can you use multile AurixCANs now?


Hello liuhf_2854.

I cheked it with latest SDK version. It has not worked…