General question about pcan driver

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
User avatar
Michael65589
Posts: 4
Joined: Fri 12. Oct 2012, 08:30

General question about pcan driver

Post by Michael65589 » Fri 12. Oct 2012, 08:51

Hello,
I have a general question about the linux pcan driver to get a better knowledgement about the handle.
After "make" and "make install" the pcan driver ist installed to the system. With the command "modprobe pcan" the driver will be load. Is this correct? The command "modprobe pcan" should be execute at every start of the system? Make it a difference if the USB-Dongle is connect or disconnect while the command "modprobe pcan" is call?
After "modprob pcan" executed successfully the command "ifconfig can0 up" should be execute to enable to use the USB-Dongel via sockets. This is also done every time when the system start.
So I can put the two commands "modprobe pcan" and "ifconfig can0 up" in a startscript.

Best regards
Michael

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: General question about pcan driver

Post by M.Maidhof » Fri 12. Oct 2012, 11:12

Hello,

when you have called make install, there is no need to call modprobe pcan after each start of your system. Only when the kernel has changed because of an update of your system, you have to rebuild and install the driver again. (modprobe pcan will only be necessary after the first installation, or when you rebuild the driver, after calling make install, the driver will be automatically loaded with each boot)

When you want to use the NetDev driver, it will be enough to put the ifconfig can0 up into your startscript.

best regards

Michael Maidhof

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: General question about pcan driver

Post by PEAK-Support » Thu 25. Oct 2012, 13:05

simply call

Code: Select all

- Install libpopt-dev: sudo apt-get install libpopt-dev
step by step info at:
Howto install the PEAK Linux driver on a fresh Ubuntu 11.10
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: General question about pcan driver

Post by M.Maidhof » Thu 15. Nov 2012, 14:13

Hi,

did you call sudo make install before? Was the driver builded correctly? To help you with your problem, please provide the output of the make process.

regards

Michael

Post Reply