Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.4 KB

README.md

File metadata and controls

57 lines (42 loc) · 1.4 KB

Forked the upstream "scope" project by abbradar, translated it to English instead of Russian, and fixed some issues to make it compile with QT5.

Requirements

sudo apt install build-essential qt5-qmake qtbase5-dev

Compilation

Build the userspace part of the software:

cd userspace
qmake .
make
cd ..

Install the firmware so the kernel driver can find it:

sudo cp res/fw.bin /lib/firmware/pcsgu250.bin

Build the kernel driver for the scope:

cd module
sudo apt install linux-headers-$(uname -r) # install the kernel headers (into /lib/modules/KERNELVERSION) if you don't have them already
make # should result in the driver file pcsgu250.ko
sudo insmod pcsgu250.ko # load the driver
dmesg | tail # should show something like "usbcore: registered new interface driver pcsgu250"
lsmod | grep pcsgu250 # check that it's loaded, should show something like: "pcsgu250               28672  0" and "usbcore               331776  7 ...,pcsgu250,..."
cd ..

Running

If the scope is plugged in, the firmware is installed, and driver is loaded, you should have a device file in /dev for it now:

crw------- 1 root root 180, 0 Nov 28 09:12 /dev/scope0

Make sure your user can read and write to it:

sudo chmod 777 /dev/scope0

Then start the scope software:

./userspace/userspace

In the user interface, open the device file (/dev/scope0) and you're good to go!