This forum covers PCAN-Linux and Linux development issues concerning our products
-
matteo
- Posts: 13
- Joined: Wed 13. Aug 2014, 17:29
Post
by matteo » Wed 13. Aug 2014, 17:50
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
i get
.
what am i doing wrong?
thx
Matteo
-
matteo
- Posts: 13
- Joined: Wed 13. Aug 2014, 17:29
Post
by matteo » Thu 14. Aug 2014, 12:41
Thanks!!
the compilation seems to work now.
..still i don't manage to read any data from the device (
command): i don't get any error but neather any data.
any idea?
Thanks again
Matteo
-
M.Maidhof
- Support

- Posts: 1753
- Joined: Wed 22. Sep 2010, 14:00
Post
by M.Maidhof » Thu 14. Aug 2014, 15:20
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
-
matteo
- Posts: 13
- Joined: Wed 13. Aug 2014, 17:29
Post
by matteo » Thu 14. Aug 2014, 15:31
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
-
M.Maidhof
- Support

- Posts: 1753
- Joined: Wed 22. Sep 2010, 14:00
Post
by M.Maidhof » Thu 14. Aug 2014, 15:35
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
-
matteo
- Posts: 13
- Joined: Wed 13. Aug 2014, 17:29
Post
by matteo » Thu 14. Aug 2014, 16:12
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
Last edited by
matteo on Thu 14. Aug 2014, 16:24, edited 1 time in total.
-
M.Maidhof
- Support

- Posts: 1753
- Joined: Wed 22. Sep 2010, 14:00
Post
by M.Maidhof » Thu 14. Aug 2014, 16:21
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
-
matteo
- Posts: 13
- Joined: Wed 13. Aug 2014, 17:29
Post
by matteo » Thu 14. Aug 2014, 16:26
thank you one more time,
i try immediately.
it is in fact

-
matteo
- Posts: 13
- Joined: Wed 13. Aug 2014, 17:29
Post
by matteo » Fri 15. Aug 2014, 13:06
it works now.
Thanks
Matteo