User Tools

Site Tools


slcan-linux

Differences

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

Link to this comparison view

Next revision
Previous revision
slcan-linux [2015/11/08 21:39] – created maxi2slcan-linux [2017/02/27 10:40] (current) maxi2
Line 1: Line 1:
 ====== slcan unter Linux ====== ====== slcan unter Linux ======
-Mithilfe von //udev// soll die Funktion realisiert werden, dass sobald der UsbTuCan angesteckt wird, dieser auch als socketcan Device attached wird.+Mithilfe von //udev// soll die Funktion realisiert werden, dass sobald der UsbTuCan angesteckt wird, dieser auch als socketcan Device attached wird und beim abstecken automatisch wieder entfernt wird.
  
  
Line 11: Line 11:
 </code> </code>
  
-===== Shellscript für udex =====+===== Shellscript für udev =====
 <code> <code>
 maxi@duplo:~/code/can-utils$ cat /usr/local/bin/slcan-udev maxi@duplo:~/code/can-utils$ cat /usr/local/bin/slcan-udev
Line 53: Line 53:
  
  # attch tty to a slcan device  # attch tty to a slcan device
- INTERFACE=$(slcan_attach -f -s8 -o $DEVNAME | awk 'NF>1{print $NF}')+ INTERFACE=$(slcan_attach -s8 -o $DEVNAME | awk 'NF>1{print $NF}')
  
  # start the slcan userspace daemon  # start the slcan userspace daemon
slcan-linux.1447015170.txt.gz · Last modified: by maxi2