Skip to content

heliorc/pegasus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pegasus

No more Mr. Nice Gaius!

MacOS

install libusb using brew

brew install libusb

or install libusb using macports

sudo port install libusb

Windows

If your target device is not HID, you '''must''' install a driver before you can communicate with it using libusb. Currently, this means installing one of Microsoft's WinUSB, [http:https://sourceforge.net/apps/trac/libusb-win32/wiki libusb-win32] or [http:https://libusbk.sourceforge.net/UsbK3/index.html libusbK] drivers. Two options are available:

libusb_context * ctx = NULL;
libusb_init(&ctx);
libusb_set_option(ctx, LIBUSB_OPTION_USE_USBDK);

Linux

Edit/create the file:

sudo vi /etc/udev/rules.d/50-myusb.rules

Copy/paste the contents and save it:

SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5742", GROUP="users", MODE="0666"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5742", GROUP="users", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", GROUP="users"  MODE="0666"

Then run

sudo udevadm control --reload

add yourself to the dialout group for tty/serial permissions

sudo usermod -a -G dialout $USER

To use the appimage

./Pegasus.AppImage --appimage-extract
cd sqaush-fs
./pegasus