title: Raspberry Pi USB to serial - multiple ACM0 devices spawning
body: <p>I am trying to get a Raspberry Pi running Octoprint (a kind of 3D print server) to talk to my Lulzbot Kittaz (RAMBo controller board, an Arduino Mega derivative), but something keeps creating bogus serial ports that seem to be getting in the way.</p>
  
  <p>Here's what I know:</p>
  
  <p>I try and connect over USB and here is the error message I get in the octoprint console:</p>
  
  <pre><code>Error: SerialException: 'device reports readiness to read but returned no data (device disconnected or multiple access on port?)
  </code></pre>
  
  <p>Further googling has lead me to SSH in to the pi and run</p>
  
  <pre><code>dmesg | grep tty
  </code></pre>
  
  <p>and I get:</p>
  
  <pre><code>[    6.117809] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device
  [   28.949094] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device
  [   35.389154] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device
  [   36.119582] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device
  ... on and on
  [  146.219829] cdc_acm 1-1.4:1.0: ttyACM1: USB ACM device
  [  156.209130] cdc_acm 1-1.4:1.0: ttyACM1: USB ACM device
  [  166.450016] cdc_acm 1-1.4:1.0: ttyACM1: USB ACM device
  [  167.590072] cdc_acm 1-1.4:1.0: ttyACM1: USB ACM device
  </code></pre>
  
  <p>If I reboot the pi, without the printer connected, the output is:</p>
  
  <pre><code>[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708.boardrev=0x10 bcm2708.serial=0x6024d696 smsc95xx.macaddr=B8:27:EB:24:D6:96 bcm2708_fb.fbswap=1 bcm2708.disk_led_gpio=47 bcm2708.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
  [    0.001437] console [tty1] enabled
  [    0.646366] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
  [    1.033111] console [ttyAMA0] enabled
  </code></pre>
  
  <p>As soon as I connect the printer to the RasPi, ACM0 and sometimes ACM1 devices start spawning, with a new one appearing every 3-10 seconds.  Which seems like that would be a problem for a USB to serial connection.  I'm guessing this is the problem.  Any ideas on what could be causing it?</p>
  
  <p>Here's what I've done so far:</p>
  
  <ul>
  <li>Disabled getty</li>
  <li>Gotten the printer to work with another (lost) install of octopi in the same hardware</li>
  <li>Re-installed octopi 3 times</li>
  <li>Gotten the printer to connect to my Windows machine</li>
  <li>Re-uploaded the firmware to the printer</li>
  </ul>