title: How to communicate with can with slcan?
body: <p>I have a target board where there is a <code>can</code> interface driven by <code>peak</code> drivers. On the host side I installed <code>can-utils</code>. I have a <code>can</code> cable which gets detected as <code>/dev/ttyUSBx</code> when I plugin.</p>
  
  <p>The target board receives candata at 500000 baud rate</p>
  
  <p>So on the host I executed,</p>
  
  <pre><code>sudo modprobe can
  sudo modprobe can-raw
  sudo modprobe slcan
  
  sudo slcand -o -s8 -t hw -S 500000 /dev/ttyUSBx
  sudo ip link set up slcan0
  </code></pre>
  
  <p>then I sent the candata from the host using:</p>
  
  <pre><code>cansend slcan0 600#ffffffffffffff
  </code></pre>
  
  <p>I can see the same using <code>candump slcan0</code> on the host.</p>
  
  <p>But I don't receive anything on the target.</p>
  
  <p>I tried the same with other cable in which I used (on the host)</p>
  
  <pre><code>sudo modprobe can
  sudo ip link set can0 type can bitrate 500000 triple-sampling on
  sudo ifconfig can0 up
  </code></pre>
  
  <p>then I was able to send can messages. If I try the same on the previous cable it throws error saying <code>Cannot find device "can0"</code>.</p>
  
  <p>So How do I send through <code>slcan</code> interface?</p>