From: Pavel Pisa Date: Mon, 13 Oct 2014 21:58:10 +0000 (+0200) Subject: Initial minimal notice about CAN bus support added. X-Git-Url: https://rtime.felk.cvut.cz/gitweb/ert_linux_web.git/commitdiff_plain/aae7720a0f1ea13a0910d19690161d0d09e676c9?ds=sidebyside Initial minimal notice about CAN bus support added. Signed-off-by: Pavel Pisa --- diff --git a/can_bus/index.html b/can_bus/index.html new file mode 100644 index 0000000..8cae153 --- /dev/null +++ b/can_bus/index.html @@ -0,0 +1,66 @@ + + + + [[!meta title="Simulink Blocks for CAN bus Support under Linux."]] + + + + + +
+ +

+The toolbox provides basic blocks for sending and receiving +CAN messages for ERT Linux +Simulink target when mainlined +socket based CAN bus +support is used. The cantransmit and canreceive blocks +support directly encapsulation and conversion to the Simulink signals for basic +data types: uint8, uint16 and uint32. +The standard Simulink defined CAN MESSAGE TYPE can be used +when more complex structure of CAN message sending and receiption +is required. The signal of CAN MESSAGE TYPE can be connected +to CAN Pack and CAN Unpack blocks which encode or retrieve multiple +signals to/from CAN message. The CAN Pack and CAN Unpack blocks +are provided by canmsglib which is part of standard Simulink +distribution. +

+ +

+The code generation requires to include CAN Setup into diagram +to work correctly. This block is used to setup baudrate for each CAN +channel in the embedded environment but this option is ignored +in the actual setup block implementation on Linux. The baudrate +can be selected by system administrator from commandline +

+ip link set can0 down
+ip link set can0 type can bitrate 1000000 
+ip link set can0 down
+
+or on Debian based systems /etc/network/interfaces +configuration file can be used to setup CAN interface baudrate +at system startup +
+allow-hotplug can0
+iface can0 can static
+    bitrate 1000000
+
+The later setup works automatic even with CAN-USB converter hotplug. +

+ + +
+
Linux CAN bus toolbox repository
+
http://rtime.felk.cvut.cz/gitweb/socketcan-simulink.git +
git clone git://rtime.felk.cvut.cz/socketcan-simulink.git +
+
+ +
+ + + + \ No newline at end of file diff --git a/index.html b/index.html index 3faecf1..4f3f97c 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,7 @@ developers and researchers at the OSADL booth (hall 5 booth 276). -

Native Linux Real-Time and I/O Cards Support

+

Native Linux Real-Time and I/O Cards and Devices Support

Current version of the Linux ERT target is optimized to use the proper Linux kernel timing mechanism with bounded maximal latencies. @@ -74,6 +74,11 @@ for this driver can be found on DCE HW Wiki page.

+

+The basic blocks for CAN messges sending and receiption +under Linux are implemented. +

+

RT-Capable Platform and Kernel

Standard distribution Linux kernel does not guarantee bounded latencies for many operations.