User Tools

Site Tools


pi:babanapi-en

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
pi:babanapi-en [2019/01/14 09:16]
rjversluis created
pi:babanapi-en [2019/01/17 20:16] (current)
rjversluis
Line 1: Line 1:
-======BananaPi======+======BananaPi ​SocketCAN====== 
 +[[:​english#​command_stations|{{ ​ :​interface.png}}]][[:​english|{{ ​ :​rocrail-logo-35.png}}]] 
 +[[:​english|Content]] -> [[:​english#​command_stations|Command Stations]] -> **[[:​english#​can|CAN]]** 
 + \\
  
-=====Links===== + \\ 
-  * https://​www.armbian.com/​bananapi/​ +=====Introduction===== 
-  * http://​lnxpps.de/bpi/+Model M1 and M1+ have the CAN Bus integrated on the board and connected the GPIO pins 16 and 18.\\
  
  
 +
 + \\
 +=====Armbian Setup=====
 +====Hardware=====
 +The CAN Bus must be activated.\\
 +<​code>​
 +sudo armbian-config
 +</​code>​
 +{{pi:​armbian-config.png?​600}}\\
 +
 +====Network Interfaces====
 +Modify the following file as super user, sudo, with a text editor of your choice.\\
 +**/​etc/​network/​interfaces**\\
 +
 +Add the following lines to the end of this file: (The comment line '#'​ is optional.)
 +<​code>​
 +# CAN Interface
 +auto can0
 +iface can0 inet manual
 +        pre-up /sbin/ip link set $IFACE type can bitrate 125000 restart-ms 100
 +        up /​sbin/​ifconfig $IFACE up
 +        down /​sbin/​ifconfig $IFACE down
 +</​code>​
 +//The bitrate must be set to 250000 in case of CAN-CS2. (TrackBox)//​\\
 +
 + \\
 +=====Links=====
 +  * [[https://​www.armbian.com/​bananapi/​|Armbian]]
 +  * [[http://​lnxpps.de/​bpi/​|BPi-CAN]]
pi/babanapi-en.1547453814.txt.gz · Last modified: 2019/01/14 09:16 by rjversluis