author | etisserant |
Mon, 28 Apr 2008 11:20:19 +0200 | |
changeset 450 | dff8cc600cba |
parent 400 | 7d845f5d730c |
permissions | -rw-r--r-- |
400
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
1 |
Kvaser driver for CANfestival, the open source CANopen stack. |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
2 |
(C)2008 Giuseppe Massimo Bertani |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
3 |
|
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
4 |
|
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
5 |
This driver should work with any Kvaser product compatible with Kvaser's CANLIB4. |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
6 |
I tested it with CAN Leaf Professional (USB-CAN adapter) on a Suse10.1 Linux box |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
7 |
and CANLIB 4.72 Beta (Oct 1,2007). |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
8 |
|
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
9 |
In order to compile the driver, you should already be able to run the CANlib examples, |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
10 |
and tools, to be sure that CANLIB is able to detect and drive your device. |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
11 |
|
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
12 |
------------------------------------------------------------------------------------------------- |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
13 |
NOTES ABOUT CANLIB4 |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
14 |
|
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
15 |
Since the "Leaf" device was added recently to CANLIB, I had to download the latest linuxcan4 |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
16 |
library sources from http://www.kvaser.com instead of use the CD software shipped with the device. |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
17 |
|
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
18 |
-------------------------------------------------------------------------------------------------- |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
19 |
NOTES ABOUT WINDOWS |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
20 |
|
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
21 |
Sadly, Kvaser's Win32 CANLIB is not provided with sources, so CANLIB cannot be build with GNU |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
22 |
tools. LIB files for MSVC and BCC are provided with the DLL but the DLL itself is stripped and |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
23 |
I've tried an entire day to compile this driver under Cygwin without success, despite |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
24 |
Wu Yongwei's hints (http://www.geocities.com/yongweiwu/dllfaq.htm). |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
25 |
|
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
26 |
This does not mean that it's an impossible task, but probably I left out something important. |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
27 |
Temporary KO. |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
28 |
|
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
29 |
------------------------------------------------------------------------------------------------- |
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
30 |
|
7d845f5d730c
Added Kvaser hardware support, thanks to Giuseppe Massimo Bertani .
etisserant
parents:
diff
changeset
|
31 |
GMB 23/1/08 |