Issue with PEAK-System, PCAN_USBBUS1, on CAN FD

46 次查看(过去 30 天)
Hello all,
I do not receive any signal on a real vehicle working with CAN FD protocol. It seems that HW (PCAN) and Matlab driver matching is not working. Is there anyone having been working with 'PCAN-USB FD' from PeaK Systems?
% Commands were taken from the docu for
canch = canChannel('PEAK-System','PCAN_USBBUS1','ProtocolMode','CAN FD')
configBusSpeed(canch,20,5,1,2,1,2,1,3,1)
start(canch)
rxMsgAry = receive(canch, Inf);
if isempty(rxMsgAry)
disp 'A previous step failed to get all requested Rx messages'
end
get(canch)
stop(canch)

回答(1 个)

Pooja Kumari
Pooja Kumari 2023-9-4
Dear Jorge,
I understand that you are facing issue with CAN FD Protocol and Matlab driver is not working with HW(PCAN). Follow the below steps to resolve the issue:
  1. Ensure that the PCAN-USB FD device is compatible with the version of the MATLAB driver. Check the compatibility information provided by MathWorks on their hardware support page:
  1. Ensure that you have MATLAB version after R2020a installed in your system as Peak System is compatible with MATLAB R2020a and later versions.
  2. Go to Peak Systems' website for the latest PCAN-USB FD driver. Check compatibility, download from the driver downloads section: https://www.peak-system.com/produktcd/
  3. Verify the correct installation of the PCAN driver by checking the Device Manager or using system utilities. Ensure that the PCAN-USB FD device is listed without errors or warnings.
  4. Restart your computer.
  5. Verify that the hardware and driver are working correctly based on the documentation provided below.
You can refer to the below documentation for more information on CAN Communication : https://de.mathworks.com/help/vnt/ug/transmit-and-receive-can-messages.html and the code provided below:
canch = canChannel('PEAK-System','PCAN_USBBUS1','ProtocolMode','CAN FD')
You can also refer to the below documentation for more information on Vehicle Network Toolbox Support Package:
I hope this helps!
Regards,
Pooja Kumari

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by