Skip to content

Linux software for 10cf:2501 Velleman PCSGU250 Oscilloscope/Function Generator

Notifications You must be signed in to change notification settings

tomvanbraeckel/scope

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Linux software for 10cf:2501 Velleman PCSGU250 Oscilloscope/Function Generator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 92.4%
  • C 5.9%
  • Python 1.5%
  • Other 0.2%