Changes between Initial Version and Version 1 of PacpusSensors/CanGateway


Ignore:
Timestamp:
02/24/16 17:29:54 (8 years ago)
Author:
DHERBOMEZ Gérald
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PacpusSensors/CanGateway

    v1 v1  
     1= CanGateway plugin =
     2
     3== Goal ==
     4
     5The CanGateway plugin is in charge of interfacing a CAN bus and it manages the CAN card.
     6
     7== Driver installation ==
     8
     9=== Linux driver ===
     10
     11The supported driver are:
     12- socketCAN
     13- kvaser card (USB, PCI, PCIe,...)
     14
     15First of all, follow the README in source:pacpussensors/trunk/CanGateway/driver/kvaser/linuxcan.tar.gz in order to install the kvaser driver.
     16
     17''Note that this procedure blacklist the SocketCAN driver.''
     18
     19To check if the KVASER driver is properly installed, type in a terminal {{{lsmod | grep kv}}}.
     20You must see a kvaser driver running:
     21{{{
     22#!sh
     23$ lsmod | grep kv
     24kvm                   452088  0
     25kvpcican               43541  0
     26}}}
     27
     28If the automatic loading of the driver doesn't work at startup, you can add the file {{{kvaser.conf}}} containing this text:
     29{{{
     30# kvaser module load
     31kvpcican
     32}}}
     33in the {{{/etc/modules-load.d}}} folder.
     34
     35
     36=== Windows driver ===
     37
     38TODO
     39
     40
     41== Compilation ==
     42
     43First, make sure the CMakeList.txt at the root of the directory is well configured (into trunk/). In order to install the CanGateway plugin, modify the file and verify you have the following line :
     44{{{
     45#!sh
     46add_subdirectory(Sick)
     47}}}
     48
     49Also, the environment variable $PACPUS_ROOT must point to the pacpus installation directory (you normally already set it when you installed PACPUS).
     50
     51
     52Then we need to configure the installation :
     53{{{
     54#!sh
     55$ export PACPUS_ROOT=/opt/pacpus/0.0.2 # Pacpus Framework path
     56$ cd trunk/build/ # first go into the build folder
     57$ cmake ..
     58}}}
     59
     60Now we can compile and install :
     61{{{
     62#!sh
     63$ sudo make install
     64}}}
     65
     66Make sure the executable files you just created are copied into $PACPUS_ROOT/lib/.
     67
     68
     69= Execution =
     70
     71In order to work with the plugins we want, PACPUS needs an XML file.
     72
     73== XML configuration ==
     74
     75Put an example xml file.
     76
     77Fields:
     78- source ...
     79- speed ...
     80
     81== Running the plugin ==
     82
     83Please verify that you have a working pacpus installation on your system: refer to the GettingStarted page.
     84
     85=== Testing under Linux ===
     86
     87Run the plugin with this command:
     88
     89{{{
     90cd $PACPUS_ROOT
     91./PacpusSensor can.xml
     92}}}
     93
     94=== Testing under Windows ===
     95
     96TODO