I managed to compile and modprobe the kernel modules in preperation to access CAN via the USB converter (Ubuntu 2.6.38-11-generic). Unfortunately, I don't have one at hands yet. May I assume, that the output
- Code: Select all
$ cat /proc/pcan
*------------ PEAK-Systems CAN interfaces (www.peak-system.com) -------------
*-------------------------- Release_20110728_n (7.3.0) ----------------------
*------------- [mod] [isa] [pci] [dng] [par] [usb] [pcc] [net] --------------
*--------------------- 0 interfaces @ major 249 found -----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
Further, the plan is to access the bus with a C compiled program. The output above is from netdev compilation, but chardev does also work that far. My C experience is a bit outdated. So, secondly, may I assume that chardev would be the easier choice to program open, read/write ... within C?
And finally, I investigated the code sample here, but it seems the termios.h headers are not on my system. Any idea of the package they should be in? (linux-headers are installed, but still ...)
Thank you very much & kind regards
Christian

