Computer Nerd Kev <n...@telling.you.invalid> wrote:
> bob prohaska <
b...@www.zefox.net> wrote:
>> Computer Nerd Kev <n...@telling.you.invalid> wrote:
>>> bob prohaska <
b...@www.zefox.net> wrote:
>>>> Has anybody used a USB sound capture device for an audio frequency
>>>> oscilloscope on a Raspberry Pi? xoscope is available using apt,
>>>> but I can't find any reference to what sound devices, if any, it
>>>> can use over USB.
>>>
>>> Xoscope's webpage says it supports ALSA as an input source, so as
>>> long as a USB audio adapter is working with ALSA (the cheap Chinese
>>> ones seem to do so without issues) it should be fine.
>>>
>> Ok, that's a good hint. I'm looking at something like:
>>
https://www.amazon.com/DIGITNOW-Capture-Grabber-Cassette-Converter/dp/B079CBGDST/ref=pd_rhf_dp_p_img_2?_encoding=UTF8&psc=1&refRID=YV3EVDFX4FWZF58TY2CW
>> There are reviews saying it works with Raspberry Pi, so maybe it'll work
>> with xoscope.
>
> Xoscope just listens in on the audio stream, so if other ALSA audio
> programs work, it will too.
>
Just got the DIGITNOW audio capture device. Audacity finds it without
trouble and displays AC hum on the VU bargraph, so I'm pretty sure
the hardware works. Dmesg reports
[2795922.290892] hid-generic 0003:2034:0105.000A: input,hidraw3: USB HID v1.00 Device [Generic USB Microphone] on usb-0000:01:00.0-1.4/input2
and lsusb -t reports
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 3: Dev 3, If 0, Class=Hub, Driver=hub/3p, 12M
|__ Port 1: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 1: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 9, If 1, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 4: Dev 9, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 4: Dev 9, If 0, Class=Audio, Driver=snd-usb-audio, 12M
The device file corresponding to the sound capture device is /dev/hidraw3
However, xoscope looks for signal at /dev/comedi0, which isn't created.
There's a dialog box which seems to invite device selection, but the
only choices are NONE and COMEDI.
If I try something like
sudo xoscope hidraw3
xoscope runs but says it can't read hidraw3.
It looks as if I'm either bungling the commandline syntax or the device filename.
Or, maybe some intermediate software is required. Comedi manpages are present, but
there don't seem to be any related executables.
If anybody's got a hint please post!