Thursday, April 28, 2011

Straight Forward Aleratec Roboracer CD/DVD Duplex Duplicator under Linux

Rico found cool ways to talk to the Roboracer Duplex Duplicator:

http://ricochen.wordpress.com/2009/07/21/use-aleratec-roboracer-ls-duplex-under-linux-to-automate-daily-dvd-backups/

Not having the unit yet... I didn't understand the typical flow of commands, so here it seems to be.

#!/bin/bash

top=/dev/sr1
bottom=/dev/sr2
tty=/dev/ttyUSB

# clear top and load from hopper
  eject $top
  echo -n "!BNKRG95" > $tty # top_hand_small
  echo -n "!BNKRH96" > $tty # top_hand_back
  echo -n "!BNKDP90" > $tty # top_tray_load_disc
  eject -t $top

# write disc

# clear bottom and load bottom from top
  eject $bottom
  echo -n "!BNKPG93" > $tty # bottom_hand_small
  echo -n "!BNKPH94" > $tty # bottom_hand_back
  echo -n "!BNKRB90" > $tty # top_hand_big
  eject $top
  eject -t $bottom
  echo -n "!BNKRH96" > $tty # top_hand_back
  eject -t $top

# label disc

# drop disc
  echo -n "!BNKPH94" > $tty # bottom_hand_back
  eject $bottom
  echo -n "!BNKPG93" > $tty # bottom_hand_small
  echo -n "!BNKPH94" > $tty # bottom_hand_back
  eject -t $bottom

I've also found some notes on the non-Duplex version here:
http://hyperdiscs.pbworks.com/w/page/19778460/Command%20Sets%20--%20Aleratec%20RoboRacer%20LS

No comments:

Post a Comment