Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1260

    Hello,
    I’ve tried both COS and VOX mode on three USB sound dongles.
    A CM-118, CM-119, and iMic (mac) USB sound card.

    At least, I think the sound card chipset is the issue, judging by these error messages from /var/log/svxlink:
    Wed Aug 12 09:34:06 2015: SvxLink v1.4.1 (Jul 6 2015) Copyright (C) 2003-2014 Tobias Blomberg / SM0SVX
    Wed Aug 12 09:34:06 2015:
    Wed Aug 12 09:34:06 2015: SvxLink comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
    Wed Aug 12 09:34:06 2015: welcome to redistribute it in accordance with the terms and conditions in the
    Wed Aug 12 09:34:06 2015: GNU GPL (General Public License) version 2 or later.
    Wed Aug 12 09:34:06 2015:
    Wed Aug 12 09:34:06 2015: Using configuration file: /etc/openrepeater/svxlink/svxlink.conf
    Wed Aug 12 09:34:06 2015: — Using sample rate 16000Hz
    Wed Aug 12 09:34:06 2015:
    Wed Aug 12 09:34:06 2015: Starting logic: RepeaterLogic
    Wed Aug 12 09:34:06 2015: Loading RX: Rx1
    Wed Aug 12 09:34:06 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 12 09:34:06 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 12 09:34:06 2015: *** ERROR: Open capture audio device failed: No such file or directory
    Wed Aug 12 09:34:06 2015: *** ERROR: Could not open audio device for receiver “Rx1”
    Wed Aug 12 09:34:06 2015: *** ERROR: Could not initialize RX “Rx1”
    Wed Aug 12 09:34:06 2015: *** ERROR: Could not initialize Logic object “RepeaterLogic”. Skipping…
    Wed Aug 12 09:34:06 2015: *** ERROR: No logics available. Bailing out…

    Do we have a “works with these chipset-based usb audio interfaces” list?
    The getting-started guide isn’t very specific.
    yes, alsamixer is able to control the levels on all three USB cards from the CLI..

    Thanks!
    Joe N8CN

    #1291
    Aaron, N3MBH
    Forum Administrator

    Hey Joe,
    You’re running on a RPI2 right? What image are you running on? Richard has a Beta 2 image up that fixed some stuff on the RPI. I have had success with CM-108 cards. as well as another generic USB sound card. We are working on a hardware design that will incorporate the sound card into the interface board and accessed over I2C instead of USB.

    73,
    Aaron – N3MBH / WRFV871

    OpenRepeater is offered free of charge. Find out how you can support us.

    #1305

    Yep, RPI2 model B version 1.1
    Running Raspi-2 Beta 3 release

    Here is what I’m seeing, from the web UI after a reboot and fresh login:
    Wed Aug 19 12:23:14 2015:
    Wed Aug 19 12:23:14 2015: SvxLink comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
    Wed Aug 19 12:23:14 2015: welcome to redistribute it in accordance with the terms and conditions in the
    Wed Aug 19 12:23:14 2015: GNU GPL (General Public License) version 2 or later.
    Wed Aug 19 12:23:14 2015:
    Wed Aug 19 12:23:14 2015: Using configuration file: /etc/openrepeater/svxlink/svxlink.conf
    Wed Aug 19 12:23:14 2015: — Using sample rate 16000Hz
    Wed Aug 19 12:23:14 2015:
    Wed Aug 19 12:23:14 2015: Starting logic: RepeaterLogic
    Wed Aug 19 12:23:14 2015: Loading RX: Rx1
    Wed Aug 19 12:23:14 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:23:14 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:23:14 2015: *** ERROR: Open capture audio device failed: No such file or directory
    Wed Aug 19 12:23:14 2015: *** ERROR: Could not open audio device for receiver “Rx1”
    Wed Aug 19 12:23:14 2015: *** ERROR: Could not initialize RX “Rx1”
    Wed Aug 19 12:23:14 2015: *** ERROR: Could not initialize Logic object “RepeaterLogic”. Skipping…
    Wed Aug 19 12:23:14 2015: *** ERROR: No logics available. Bailing out…

    looks like the service isn’t even starting:
    root@N8CN-R:~# ps waux | grep sv
    root 72 0.0 0.0 0 0 ? S< 12:23 0:00 [ext4-rsv-conver]
    root 541 0.0 0.0 1388 336 tty1 S+ 12:24 0:00 tail -f /var/log/svxlink
    root 555 0.0 0.1 2064 1172 pts/0 S+ 12:27 0:00 grep sv

    re-inserting the USB audio adapter:
    [ 293.408355] usb 1-1.2: USB disconnect, device number 4
    [ 295.910347] usb 1-1.2: new full-speed USB device number 8 using dwc_otg
    [ 296.060643] usb 1-1.2: New USB device found, idVendor=0d8c, idProduct=000c
    [ 296.112445] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [ 296.160915] usb 1-1.2: Product: C-Media USB Headphone Set
    [ 296.240862] input: C-Media USB Headphone Set as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.3/0003:0D8C:000C.0004/input/input3
    [ 296.294143] hid-generic 0003:0D8C:000C.0004: input,hidraw0: USB HID v1.00 Device [C-Media USB Headphone Set ] on usb-bcm2708_usb-1.2/input3

    I have a few different audio adapters available (I bought a bunch intending to find a chipped C-Media adapter instead of the ‘blobbed’ type so that I could modify them to make a custom URI-X for a radio for use with asterisk, and then kinda decided it would be too much work, so I have a small box full of misc audio adapters. I had chosen the few higher-quality-looking devices, but here I’ll try inserting a few to see what happens..):

    [ 504.833909] usb 1-1.2: new full-speed USB device number 10 using dwc_otg
    [ 504.980051] usb 1-1.2: New USB device found, idVendor=0d8c, idProduct=000e
    [ 505.021808] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [ 505.064082] usb 1-1.2: Product: Generic USB Audio Device
    [ 505.165349] cm109: Keymap for Komunikate KIP1000 phone loaded
    [ 505.208037] input: CM109 USB driver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.3/input/input4
    [ 505.254653] usbcore: registered new interface driver cm109
    [ 505.294836] cm109: CM109 phone driver: 20080805 (C) Alfred E. Heggestad

    Wed Aug 19 12:34:03 2015: Starting logic: RepeaterLogic
    Wed Aug 19 12:34:03 2015: Loading RX: Rx1
    Wed Aug 19 12:34:03 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:34:03 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:34:03 2015: *** ERROR: Open capture audio device failed: No such file or directory
    Wed Aug 19 12:34:03 2015: *** ERROR: Could not open audio device for receiver “Rx1”
    Wed Aug 19 12:34:03 2015: *** ERROR: Could not initialize RX “Rx1”
    Wed Aug 19 12:34:03 2015: *** ERROR: Could not initialize Logic object “RepeaterLogic”. Skipping…
    Wed Aug 19 12:34:03 2015: *** ERROR: No logics available. Bailing out…

    [ 726.302498] usb 1-1.2: new full-speed USB device number 11 using dwc_otg
    [ 726.448696] usb 1-1.2: New USB device found, idVendor=0d8c, idProduct=000e
    [ 726.494767] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [ 726.536504] usb 1-1.2: Product: Generic USB Audio Device
    [ 726.610647] input: CM109 USB driver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.3/input/input5

    Wed Aug 19 12:35:49 2015: Starting logic: RepeaterLogic
    Wed Aug 19 12:35:49 2015: Loading RX: Rx1
    Wed Aug 19 12:35:49 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:35:49 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:35:49 2015: *** ERROR: Open capture audio device failed: No such file or directory
    Wed Aug 19 12:35:49 2015: *** ERROR: Could not open audio device for receiver “Rx1”
    Wed Aug 19 12:35:49 2015: *** ERROR: Could not initialize RX “Rx1”
    Wed Aug 19 12:35:49 2015: *** ERROR: Could not initialize Logic object “RepeaterLogic”. Skipping…
    Wed Aug 19 12:35:49 2015: *** ERROR: No logics available. Bailing out…

    [ 825.903085] usb 1-1.2: new full-speed USB device number 12 using dwc_otg
    [ 826.041604] usb 1-1.2: New USB device found, idVendor=077d, idProduct=07af
    [ 826.081139] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [ 826.120526] usb 1-1.2: Product: iMic USB audio system
    [ 826.157864] usb 1-1.2: Manufacturer: Griffin Technology, Inc
    [ 826.203495] usb 1-1.2: current rate 0 is different from the runtime rate 48000
    [ 826.243402] usb 1-1.2: current rate 0 is different from the runtime rate 48000
    [ 826.300507] usb 1-1.2: Warning! Unlikely big volume range (=656), cval->res is probably wrong.
    [ 826.339914] usb 1-1.2: [1] FU [PCM Playback Volume] ch = 2, val = -10496/0/16

    Wed Aug 19 12:37:28 2015: Using configuration file: /etc/openrepeater/svxlink/svxlink.conf
    Wed Aug 19 12:37:28 2015: — Using sample rate 16000Hz
    Wed Aug 19 12:37:28 2015:
    Wed Aug 19 12:37:28 2015: Starting logic: RepeaterLogic
    Wed Aug 19 12:37:28 2015: Loading RX: Rx1
    Wed Aug 19 12:37:28 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:37:28 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:37:28 2015: *** ERROR: Open capture audio device failed: No such file or directory
    Wed Aug 19 12:37:28 2015: *** ERROR: Could not open audio device for receiver “Rx1”
    Wed Aug 19 12:37:28 2015: *** ERROR: Could not initialize RX “Rx1”
    Wed Aug 19 12:37:28 2015: *** ERROR: Could not initialize Logic object “RepeaterLogic”. Skipping…
    Wed Aug 19 12:37:28 2015: *** ERROR: No logics available. Bailing out…

    at this point, i’m kinda thinking there’s an issue somewhere that I can’t fix..
    -jre

    #1308
    Aaron, N3MBH
    Forum Administrator

    Joe,
    I checked with Richard earlier tonight and he is running Beta 3 with no issues like this. Looking at your code my hunch is that the sound cards under ports is configured incorrectly. That may partially be my fault for not documenting it very clearly. I just updated the Getting Starting Guide with a little more detail.

    Here is an excerpt:

    Before the repeater will be operational you will need to set the following:

    • Go to the “Repeater” settings menu, set your Callsign and click “Update”.
    • Go to the “TX/RX Ports” menu, set your TX and RX port settings and click “Update”. Sample Settings:
      • RX Mode: COS
      • RX GPIO Pin: 22
      • RX Audio Device: alsa:plughw:1
      • RX Audio Channel: 0
      • TX GPIO Pin: 27
      • TX Audio Device: alsa:plughw:1
      • TX Audio Channel: 1
    • At the top of the screen click the “Rebuild Configs & Restart SVXLink” button.
    • Restart the system. This is necessary to initiate the GPIO pins you just set with the OS.

    Your settings may vary some. Give this a try and let me know if this helps.

    73,
    Aaron – N3MBH / WRFV871

    OpenRepeater is offered free of charge. Find out how you can support us.

    #1314

    made updates to this in the related thread at: https://openrepeater.com/forums/topic/errors-help

    Looks like underlying svxlink issues.

    lsusb is not an available command, and I attached the output of aplay -L to that thread also.

    It looks like my issue is not unique, and others are having the same issues.

    I’m tempted to order the SPECIFIC usb audio dongle linked to (via amazon) for $7 or whatever just to see if a minor difference in the chipset is killing the deal, Richard might have a unique variant of USB audio card.

    PS, at the above thread, I also posted the contents of my automatically-made /etc/openrepeater/svxlink/svxlink.conf file.

    Thanks!
    Joe

    #1324
    Aaron, N3MBH
    Forum Administrator

    Thanks for your feedback Joe. I definitely think it is something with your card best I can tell. We are working to try and make sound config a little easier too in the next versions. We are going to make a script that greps the aplay results and format it into a list of available devices and channels so you only have to choose from a drop down menu instead of typing things in like “alsa:plughw:1” and a channel number.

    Just for kicks, try changing your values for alsa:plughw:1 to alsa:plughw:0 as well as toggling the channel from 0 and 1 and see if that helps. I have also had my card crap out on me and not start working again until after a reboot.

    73,
    Aaron – N3MBH / WRFV871

    OpenRepeater is offered free of charge. Find out how you can support us.

    #1370

    Update: all three of my USB sound cards work.
    The default config and example simply referenced a device that doesn’t exist when you only have one USB sound card plugged in: “1”
    The first card detected, and only card when one is detected, is “0” — zero!

    updated data at post:
    https://openrepeater.com/forums/topic/no-logics-available-bailing-out-error

    For some reason, it too me FOREVER to try the last line in your last suggestion:
    “Just for kicks, try changing your values for alsa:plughw:1 to alsa:plughw:0 ”
    .. because that is what worked! 🙂

    Thanks!
    73
    Joe

    #1392
    Aaron, N3MBH
    Forum Administrator

    No problem Joe. Yes number starts at 0 usually. I have seen that vary on two different boards (BBB and RPI2). I am working on an “auto detect” script that will query the system to see what is available and populate a dropdown list. This should make it a little more user friendly.

    73,
    Aaron – N3MBH / WRFV871

    OpenRepeater is offered free of charge. Find out how you can support us.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘usb sound card chipsets?’ is closed to new replies.