I'm using one of the pcan PCI-FD devices on the Linux development environment. Since I want to get an HW timestamp from this interface, the usage of sockets won't do any good according to this link.
https://www.peak-system.com/forum/viewt ... =3435#wrap. Hence I'm using the char mode driver for data tx/rx. For the installation, I followed all the steps in the documentation and after successful install and insertion of modules, I was able to see the devices listed in the /dev directory. I also modified the *.conf file where deftsmode=2 was provided.
In order to test the driver, I used the receivetest provided in the test directory with appropriate arguments and I got the following output.
Code: Select all
2843402388.878 receivetest: m s 0x00000391 8 00 3c e3 00 00 26 00 10
2843402391.40 receivetest: m s 0x000003dc 8 fc 00 00 00 00 01 00 00
2843402391.266 receivetest: m s 0x000006b2 8 87 6f 35 42 89 e7 6a 07
2843402393.142 receivetest: m e 0x1b000046 8 46 00 04 01 01 00 00 00
2843402393.378 receivetest: m s 0x0000030c 8 e8 f5 3f ff 63 30 00 00
2843402394.385 receivetest: m s 0x0000032a 8 92 0b 00 00 00 02 00 00
2843402395.301 receivetest: m e 0x17333410 8 3d 02 03 01 34 00 03 00
2843402396.999 receivetest: m s 0x00000101 8 6e 05 7e ff 81 16 00 00
2843402398.833 receivetest: m s 0x000003c7 8 01 00 10 00 00 40 a2 00
2843402403.59 receivetest: m s 0x00000107 8 00 00 fe 00 c0 31 00 00
2843402403.348 receivetest: m e 0x1b00004a 8 4a 00 04 01 11 00 00 00
2843402404.48 receivetest: m s 0x0000030b 8 10 25 00 00 08 00 00 10
2843402406.952 receivetest: m s 0x000000fd 8 b7 d5 1f 80 00 00 00 00
2843402413.314 receivetest: m s 0x00000324 8 44 05 00 00 00 00 00 00