QA402 Software on Linux and Mac

QA402 console show me as follows.

And I am running Ubuntu on a disk with Windows10 by multi-booting.
If the VM would be more successful to this issue, I can build a VM.

Ok, that’s how it looks for me if I don’t have the QA402 connected.

This is what it says when it is connected:

Existing settings file loaded
Server started listening on port 9402
Usb Connected
Factory calibration data loaded from flash

I have not managed to get the QA401 to work in a VM. Not tried the QA402 though. I don’t think that’s a good solution. It should work natively in Linux.

You have installed libusb right, like it says in the instructions?

One more way to verify permissions is like this:

$ usb-devices
...
T:  Bus=01 Lev=03 Prnt=06 Port=02 Cnt=01 Dev#= 11 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ff(vend.) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=16c0 ProdID=4e37 Rev=01.00
S:  Manufacturer=QUANTASYLUM
S:  Product=QA402 Audio Analyzer
...

Note Bus=01 and Dev#= 11 in my example here.
I can then have a look in the file system to find the actual usb device for the QA402:

$ ls -la /dev/bus/usb/001/011
crw-rw-rw- 1 root root 189, 11 sep.  18 12:37 /dev/bus/usb/001/011

001 in the path is from Bus (with added 0), and 011 is from Dev (with added 0). If you replug the QA402 the last number will likely increase by one every time.

Your output should look the same if it’s correct.

Hi blurpy,

I got as follows.

song@song-MS-7C67:~$ usb-devices

T: Bus=01 Lev=01 Prnt=01 Port=12 Cnt=01 Dev#= 15 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ff(vend.) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=16c0 ProdID=4e37 Rev=01.00
S: Manufacturer=QUANTASYLUM
S: Product=QA402 Audio Analyzer
S: SerialNumber=8431_A2FD
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=498mA
I: If#= 0 Alt= 0 #EPs= 6 Cls=ff(vend.) Sub=06 Prot=50 Driver=(none)

The results are same as yours, except the first “T:” line.
My QA402’s device number is 15.

song@song-MS-7C67:~$ ls -la /dev/bus/usb/001/015
crw-rw-rw- 1 root root 189, 14 9월 18 20:37 /dev/bus/usb/001/015

It is also same as yours.

Looks like nothing is wrong. Did you verify that you have installed libusb?

I’ve tried to install usbutils.

song@song-MS-7C67:~$ sudo apt-get install usbutils
[sudo] password for song:
Reading package lists… Done
Building dependency tree
Reading state information… Done
usbutils is already the newest version (1:007-4build1).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
song@song-MS-7C67:~$ exit

test lsusb:
song@song-MS-7C67:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 004: ID 05af:1012 Jing-Mold Enterprise Co., Ltd
Bus 001 Device 003: ID 2109:2815 VIA Labs, Inc.
Bus 001 Device 002: ID 1462:7c67 Micro Star International
Bus 001 Device 006: ID 16c0:4e37 Van Ooijen Technische Informatica
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I’m not sure, but lsusb command seems no problem.

usbutils and libusb are not the same. libusb contains libraries for applications like QA40x to use when communicating with usb devices. usbutils contains lsusb, which is just for listing usb devices.

See the installation script you created earlier. It shows you how to install it.

OK, I understood.
Thank you for your kind explains.

I met an error message, as follows, “Unable to locate package libusb”

song@song-MS-7C67:~$ sudo apt-get install libusb
[sudo] password for song:
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libusb
song@song-MS-7C67:~$

I should find out the location of the package.

I’ve just installed libusb-1.0-0-dev and at last my QA402 has been connected.
I’ll test more for QA402 app.

Thank you again.

I rebooted Ubuntu and excuted QA402 app.
The control pannel(left side) did not move up/down,
so could not click the run button.
But suddenly it moved after 1~2minutes.
It is not serious problem for me, I’ll test more step by step.

Thank you.


I’ve found out while I run QA402 loopback test, sometimes the app had been frozen.
I’ll reinstall Ubuntu cleanly and repeat the all the process from the first.

I’ll report the test results after 2 or 3 days.

Happy to see you managed to get it working!

The issue with scrolling the left pane is known. You can either click a button to make scrolling work, or use the page up/down keys.

The app is also a bit unstable on Linux. That will likely improve with time. It’s very new code, and Linux support on top of that is also very new. If you find issues be sure to let Matt know so he can fix them.

Hi Matt,

While I ran the command lines of “QA402 Usb Install.readme” script,
I found that libusb was not installed fully and my QA402 couldn’t
be recognized.

         ------ QA402 Usb Install.readme ------

The steps needed to make the Audio Analyzer known to
*# Linux are shown below. You might need to tweak *
# depending on your platform
*# *
# Install MONO
# See Install Mono on Linux | Mono
*# *
# Install LibUSB. This might be already installed.
# sudo apt-get install libusb-1.0-0
:
:
---------------

I changed the libusb command line as follows and succeeded;

before : $ sudo apt-get install libusb-1.0-0
after : $ sudo apt-get install libusb-1.0-0-dev

I could find it thanks to blurpy’s kind advise.