I am using PEAK-USB, following setup installed
PCAN LINUX driver-"peak-linux-driver-8.12.0",
PCAN BASIC-"PCAN-Basic_Linux-4.4.2" and PCAN VIEW-"pcanview-ncurses_0.9.0-0_amd64.deb".
PEAK USB (Char Dev)is connected one of my ECU and I am successfully able to see the messages from ECU into the PACN-VIEW.
I built a Linux application using pcan-basic and trying to send the command to the ECU, But these messages are not captured in PCAN-VIEW even though those messages are being sent to ECU.
Please help me to resolve this issue.
Thankyou in Advance
your are using the chardev driver under Linux. This driver does not have a dispatcher included. So you can't see the messages you have sent with your PCANBasic application with pcanview, when using the same chardev device with both applications. If you want to see the data, connect another PCAN device to your CAN bus and use it with pcanview, or use the SocketCAN driver interface. With SocketCAN/Netdev there is a dispatcher included which will send the messages to all connected applications. See manual of our peak linux driver for more details.
Thankyou so much for quick reply.
I have one query, the PEAK USB will be compatible with "SocketCAN/Netdev" driver?
and using the SocketCAN/Netdev, I can able to see the messages from both the application using single "PCAN device"?
yes correct, but you have to use the SocketCAN tools instead of the PCANBasic and pcanview. There is no extra driver installation necessary for the SocketCAN driver, the PCAN-USB is supported by the kernel since kernel version 3.2. To use the SocketCAN driver of the kernel, you have to remove the peak-linux driver with sudo make uninstall and reboot your system once.
Have a look on the SocketCAN documentation for more details on how to use SocketCAN:
https://www.kernel.org/doc/Documentatio ... ng/can.txt
The can-utils applications are available with apt or from github.
Using Socket CAN, how to take the trace?
PCANVIEW will work for the same? or any other tool need to be install?
Thankyou in Advance
pcanview or pcanbasic could not be used with SocketCAN. To trace the CAN data under SocketCAN you can use the candump application, which is part of the can-utils package.
Thankyou So much for the solution.
It is working for me Now !!!
Following link I have followed for adding PEAK USB in module:
** Links changed by Admin **