This repository contains examples and wrappers using the API for the Surge Hand.
This API supports Python and C++ for Linux. This API was tested on Ubuntu 22.04 with Python 3.10.
- Build the C++ package
cd surge-hand-api/cpp/surge_wrapper mkdir build && cd build cmake .. make -j4 - Find the corresponding USB Port of the hand(s). The following command may be useful:
You should look for something along the lines of
sudo dmesg | grep -i ftdiwhich helps to indicate which USB port your hand(s) are on. In this example, a singular hand has been detected and is attached to[ 123.456900] ftdi_sio 1-2:1.0: FTDI USB Serial Device converter detected [ 123.457012] usb 1-2: FTDI USB Serial Device converter now attached to ttyUSB0/dev/ttyUSB0. The default port is set to/dev/ttyUSB0, however, you can change the default by editting Line 18 onsurge_wrapper.pyor set the port accordingly when initializing the Surge Hand with theportparameter.
If you have issues with accessing /dev/ttyUSB0, try
sudo usermod -a -G dialout $USER
sudo reboot