Electronics - Twostep - Usage

Slowly coming! Here's the current todo list:

  • Compiling the Twostep firmware
  • Initial installation of Twostep firmware
  • Commands


Compiling the Lasershark Twostep Host Application:
The Lasershark Twostep Host Application is a demo application that shows how to transmit/receive Twostep commands through the Lasershark's UART using both the Lasershark UART and Twostep communication libraries. For your own projects you should either modify the demo app or include these libraries in your software.

Compiling and running the application is relatively simple and can be accomplished as follows:

1. Install Lasershark Host application dependencies:

sudo apt-get install git libusb-1.0-0-dev gcc build-essential

2. Download the Lasershark Host application and submodules:
cd ~/Desktop
git clone https://github.com/macpod/lasershark_hostapp.git
cd lasershark_hostapp
git submodule init
git submodule update

3. Compile it:
make lasershark_twostep

4. Add the udev rule for the Lasershark USB Dac:
In order to use a Lasershark, you need to give users permission to access the USB device. This is accomplished by adding a new udev rule. Open the following file...
sudo gedit /etc/udev/rules.d/45-lasershark.rules
Paste the following into it, then save it...
ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="04d8", MODE="0660", GROUP="plugdev"
Afterwards unplug the Lasershark USB Dac (if it happened to be plugged in already) and plug it back in.

5. Run the Lasershark Twostep Host application:


If you found this project interesting or helpful and have the means feel free to donate!