This repository contains script files to set up a Linux computer to test the custom electronics boards and controllers
used by the da Vinci Research Kit (dVRK). It has been tested with Ubuntu 20.04 and 22.04. There are two setup configurations,
which are selected by command line parameters to the setup.sh
script:
pcb
: Set up for testing assembled PCBsbox
: Set up for testing classic controller box (with 2xFPGA/2xQLA or FPGA/DQLA)
The initial setup should be as follows:
- Install the following packages (if not already installed):
sudo apt install build-essential libraw1394-dev libncurses5-dev cmake-curses-gui cmake-qt-gui git libfuse-dev
- Set permissions on FireWire device, using the "convenient solution" described here.
- Create a subdirectory called
test
(must be in home directory):mkdir ~/test
- Change to the test directory:
cd ~/test
- Clone this repository into a
scripts
subdirectory:git clone https://github.com/jhu-dvrk/dvrk-mfg-test.git scripts
- Run the provided
setup
script, with the appropriate parameter:sh scripts/setup.sh pcb
-- this should create 5 icons on the Desktop for testing assembled boards; it also creates aQLA_test_results
folder for the QLA test log filessh scripts/setup.sh box
-- this should create 2 icons on the Desktop for testing assembled controller boxes
Both configurations create the following desktop icon:
- JHU SW Update: updates the test software
The pcb
configuration also creates the following icons:
- FPGA Connection Test: tests Firewire and Ethernet connectivity for FPGA board
- DQLA1: tests QLA #1 in a DQLA setup
- DQLA2: tests QLA #2 in a DQLA system
- dRAC Test: GUI program that tests dRAC
The box
configuration also creates the following icon:
- Classic Controller Test: tests classic dVRK controller box
Note: setup.sh
also accepts an all
parameter, which is equivalent to both pcb
and box
.
Some of the pcb
testing requires a terminal emulator, such as PuTTY. To install and set up PuTTY:
- Install putty if needed:
sudo apt install putty
- Add the user name to the
dialout
group:sudo usermod -a -G dialout <username>
- Reboot the computer
- Start PuTTy, choose the
Serial
connection type,\dev\ttyUSB0
, and setSpeed
to 115200 - (Optional) Improve appearance by increasing window size (e.g., to 128 x 46) and changing font to
Ubuntu Mono
; note that session settings can be saved