Page 1 of 3

Problem in Drivers installation under Linux-Kernel 3.2.0

Posted: Wed 13. Aug 2014, 17:50
by matteo
Hi,
i am trying to install under Linux-Kernel 3.2.0 the drivers of the can - usb interface. I'm following the instruction here http://www.peak-system.com/fileadmin/me ... ng_7.x.pdf indicated.
when i do make in the main directory i get

Code: Select all

src/pcan-settings.c:50:18: fatal error: popt.h: No such file or directory
. After some searching i found out that i have to compile in the "driver" directory.
After that, when i do

Code: Select all

su -c “make install”
i get

Code: Select all

Unknown id: install”
.
what am i doing wrong?
thx
Matteo

Re: Problem in Drivers installation under Linux-Kernel 3.2.0

Posted: Wed 13. Aug 2014, 17:57
by M.Maidhof
Hi,

please see following post: http://www.peak-system.com/forum/viewto ... f=59&t=256

regards

Michael

Re: Problem in Drivers installation under Linux-Kernel 3.2.0

Posted: Thu 14. Aug 2014, 12:41
by matteo
Thanks!!
the compilation seems to work now.
..still i don't manage to read any data from the device (

Code: Select all

 cat /dev/pcan32
command): i don't get any error but neather any data.
any idea?
Thanks again
Matteo

Re: Problem in Drivers installation under Linux-Kernel 3.2.0

Posted: Thu 14. Aug 2014, 15:20
by M.Maidhof
Hi,

please send output of cat /proc/pcan, looks like you have compiled the driver for netdev but you use the chardev tools.

regards

Michael

Re: Problem in Drivers installation under Linux-Kernel 3.2.0

Posted: Thu 14. Aug 2014, 15:31
by matteo

Code: Select all

*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20140723_n (7.12.0) Aug 13 2014 18:20:29 --------------
*---------------- [mod] [isa] [pci] [dng] [par] [usb] [pcc] -----------------
*--------------------- 1 interfaces @ major 250 found -----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32    usb -NA- ffffffff 255 0x001c 00000000 00000000 0000010c 00000000 0x0000
here it is.
best
Matteo

Re: Problem in Drivers installation under Linux-Kernel 3.2.0

Posted: Thu 14. Aug 2014, 15:35
by M.Maidhof
Hi,

looks ok, it is compiled for chardev. Did you use a terminated CAN cable, and does your other CAN node tranmsit at 500k?

regards

Michael

Re: Problem in Drivers installation under Linux-Kernel 3.2.0

Posted: Thu 14. Aug 2014, 16:12
by matteo
hi,
after the pcan-usb converter i just used an adapter to solder the cables of my device (cable lenght ca. 62cm)...not sure whether it is the answer you expected
no, the device is transmitting at 1Mbps (CAN Bus 2.0B).
cheers
Matteo

Re: Problem in Drivers installation under Linux-Kernel 3.2.0

Posted: Thu 14. Aug 2014, 16:21
by M.Maidhof
Ok,

than you have to call echo "i 0x0014 e">/dev/pcan32 to set the baudrate to 1Mbit and enable ext. frames, and put two 120 Ohms resistors between CAN-H and CAN-L on both ends of your CAN cable, to let things work.....is this your first application with CAN?

regards

Michael

Re: Problem in Drivers installation under Linux-Kernel 3.2.0

Posted: Thu 14. Aug 2014, 16:26
by matteo
thank you one more time,
i try immediately.
it is in fact :roll:

Re: Problem in Drivers installation under Linux-Kernel 3.2.0

Posted: Fri 15. Aug 2014, 13:06
by matteo
it works now.
Thanks
Matteo