Loading ...
Sorry, an error occurred while loading the content.

Re: [softrock40] Getting Quisk to work with Ensemble II ?

Expand Messages
  • Sid Boyce
    I have come across that exact problem only with the SDR-Widget. The reason is that the USB interface is claimed by the sound card portion and access to the
    Message 1 of 18 , Jul 22, 2012
    I have come across that exact problem only with the SDR-Widget. The reason is that the USB interface is claimed by the sound card portion and access to the si570 controls section is blocked, i.e it can't handle the 2 devices.

    I have not had this happen with the Ensemble RXTX as it has a separate sound card interface to the PC so is not in contention with the USB interface.

    What problem does the Config button report?
    What's returned from "cat /proc/asound/cards"?

    I just noticed that lsusb suggests you are using a Widget or the other one - forgot it's name.

    In that case you need VK6JBL's changes. Jim doesn't have a Widget to work with so we had to fall back to Andrew's changes which will work with any softrock.

    Attached is a file with those changes included. See the README_G3VBV.txt and the quisk_conf.py_for_Softrock-G3VBV files in the package.
    73 ... Sid.

    On 22/07/12 05:42, Martin Sole wrote:
    Looks like another problem.

    Config first showed it could not find quisk_conf.py but then I noticed it was actually looking for .quisk_conf.py This seems to be a mistake in the Quisk documentation.

    Once that is sorted it now shows:

    (In red) No response

    and underneath that:

    Using configuration file /home/martin/.quisk_conf.py
    No permission to access the SoftRock USB interface

    So it looks like getting the USB to work as noted in my previous post, lsusb doesn’t find it, is the next step.

    Thanks
    Martin, HS0ZED




    On 22/07/12 10:03, Sid Boyce wrote:
    Click the Config button and check for errors or other anomalies.
    73 ... Sid.

    On 22/07/12 03:38, Martin Sole wrote:
     

    Hi,

    After getting my Ensemble II receiver working well with Windows on my
    dual boot computer I would now like to make it work on Linux Mint 13 (Maya).

    I have downloaded the Quisk package 3.6.2 and after following the
    instructions I have the program running. I get the Quisk window, all the
    buttons seem to function and the test button puts a carrier in the
    display and when tuned to it I hear the tone from the speakers. When
    tuned elsewhere I hear the soft white noise from the sound card. I used
    the same on-board sound card for both input and output and I have copied
    the conf_rx_ensemble2.py file to quisk_conf.py in my home folder.

    It would seem that either I have the wrong audio input or the Si570 is
    tuned somewhere else and is not functioning correctly with the software.
    Note that the Ensemble II works well on Windows so I don't suspect the
    hardware as a cause of the problem.

    Any ideas?

    Thanks
    Martin, HS0ZED




    -- 
    Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
    Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
    Senior Staff Specialist, Cricket Coach
    Microsoft Windows Free Zone - Linux used for all Computing Tasks
    
  • Ron Wellsted
    ... Hash: SHA1 ... Over the past few months, I have been using quisk with a couple of different SDRs, a Softrock like Rx and and Ensemble RxTx. The bigest
    Message 2 of 18 , Jul 22, 2012
    • 0 Attachment
      -----BEGIN PGP SIGNED MESSAGE-----
      Hash: SHA1

      On 22/07/12 13:39, Sid Boyce wrote:
      >
      >
      > Those messages are just noise. The bluetooth messages are from the
      > bluez-alsa package that's installed. 73 ... Sid.
      >

      Over the past few months, I have been using quisk with a couple of
      different SDRs, a Softrock like Rx and and Ensemble RxTx.

      The bigest problem I found was to do with the way Linux/alsa handles
      the (multiple) sound cards (onboard which appears as 2 sound cards,
      because of the HDMI output and a PCI soundblaster). As a result my
      /proc/asound/cards looks like this:

      # cat /proc/asound/cards
      0 [SB ]: HDA-Intel - HDA ATI SB
      HDA ATI SB at 0xfe8f0000 irq 16
      1 [HDMI ]: HDA-Intel - HDA ATI HDMI
      HDA ATI HDMI at 0xfeae8000 irq 19
      2 [AudioPCI ]: ENS1371 - Ensoniq AudioPCI
      Ensoniq AudioPCI ENS1371 at 0xe800, irq 20

      A further complication is that which card occupies which slot is
      purely arbitrary as it is determined by the kernel at startup (if
      anybody knows a 100% reliable way of guaranteeing the same order on
      every boot, please share it with the group!), As a result I have
      resorted to using the alsa short names the part between the [] in the
      above, rather than the slot numbers in the ~/.quisk_conf.py file.
      This results in my ~/.quisk_conf.py file being as follows:

      from softrock import hardware_usb as quisk_hardware
      from softrock import widgets_tx as quisk_widgets

      si570_direct_control = True
      # use usbsoftrock -vv status and use the fXtall value
      # for calibration
      si570_xtal_freq = 114285000
      # In ALSA, soundcards have these names.
      # Vendor and product ID's for the SoftRock USB interface
      usb_vendor_id = 0x16c0
      usb_product_id = 0x05dc
      softrock_model = "RxTxEnsemble"

      playback_rate = 48000
      sample_rate = 48000 # ADC hardware sample rate in Hertz
      name_of_sound_capt = "alsa:SB" # Name of soundcard capture hardware
      device.
      name_of_sound_play = "alsa:AudioPCI" # speakers on PCI soundcard

      # Microphone capture:
      microphone_name = "alsa:AudioPCI" # Name of microphone capture
      device
      name_of_mic_play = "alsa:SB" # Name of play device if CW or mic I/Q
      is sent to a sound card
      mic_playback_rate = playback_rate # Playback rate must be a multiple
      1, 2, ... of mic_sample_rate
      mic_out_volume = 1.0 # Transmit sound output volume (after
      all processing) as a fraction 0.0 to 1.0

      default_screen = 'WFall' # personal preference

      # the I/Q channel selections depend on the jumper option on the softrock
      # straight through requires:
      #channel_i = 1
      #channel_q = 0
      channel_i = 0 # Soundcard index of in-phase channel: 0, 1, 2, ...
      channel_q = 1 # Soundcard index of quadrature channel: 0, 1, 2, ...



      Hopefully this will help with getting your Ensemble Rx working with quisk.



      - --
      Ron Wellsted
      ron@... http://www.wellsted.org.uk
      N 52.567623, W 2.136111 Linux Counter No. 202120
      -----BEGIN PGP SIGNATURE-----
      Version: GnuPG v1.4.11 (GNU/Linux)
      Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

      iQEcBAEBAgAGBQJQDGDmAAoJEEtP/KMNOfRbZIMIAKjyrjG/z/lbpcGtPWtJXlB8
      L0wCHk4czulwKszF2R0o4Tq5tcvuXCrl1s76W70E7yJvWgJvj0RH7xu5rtStFqTW
      fsLuCE/bt5GfYF7846+weFk7k0SgUcAErdPCo5vN9hQgAwELOIoeCIGofTdp6Ls8
      LAP84iISjXhR9xQanyArx2vz4bgGftDpt9JVsMEM1r4RAH8kxE6c4vGRTtc7Lyi4
      kJ09QoKoD/aPNiEbo880b7okRxjO2zjCPc3+tMkuTxktGXS39KpnQxlSMjexEI6i
      pWQZoZjzlg5jZFkV+H9ykO5GBs7fOIp6FJORVuX0KlBVfEVX1z9owbxKXz7i4uM=
      =LUKF
      -----END PGP SIGNATURE-----
    • Sid Boyce
      May be these issues never cropped up before, possibly because I and other early users thought in terms of hw: and plughw: addresses being accustomed to using
      Message 3 of 18 , Jul 22, 2012
      • 0 Attachment
        May be these issues never cropped up before, possibly because I and other early users thought in terms of hw: and plughw: addresses being accustomed to using them with aplay to play wav files.

        hw:0,0 below is the Analog and hw:0,1 is the Digital, hw:0 implies hw:0,0.
        root@sdrbox1:~# aplay -l
        **** List of PLAYBACK Hardware Devices ****
        card 0: Intel [HDA Intel], device 0: ALC887-VD Analog [ALC887-VD Analog]
          Subdevices: 0/1
          Subdevice #0: subdevice #0
        card 0: Intel [HDA Intel], device 1: ALC887-VD Digital [ALC887-VD Digital]
          Subdevices: 1/1
          Subdevice #0: subdevice #0
        card 1: DG8SAQI2C [DG8SAQ-I2C], device 0: USB Audio [USB Audio]
          Subdevices: 0/1
          Subdevice #0: subdevice #0

        So you are saying cat /proc/asound/cards always gives the same result, which is as expected.
        It may be better to address the cards by their names hw:0 and hw:2 which are the 2 you need.
        That has always worked.
        Quisk was originally intended to work with his transceiver design that used one sound card only so Jim didn't have to deal with multiple sound cards.

        Another point I-Q reversal can be done by changing "channel_i =" and "channel_1 =" to their complements.
        I had to do that today when using a UHFSDR on a box that was previously used with the Ensemble RXTX. 
        root@sdrbox1:~# cat /proc/asound/cards
         0 [Intel          ]: HDA-Intel - HDA Intel
                              HDA Intel at 0xfdff8000 irq 44
         1 [DG8SAQI2C      ]: USB-Audio - DG8SAQ-I2C
                              www.obdev.at DG8SAQ-I2C at usb-0000:00:1d.7-5, high speed

        sample_rate = 48000                     # ADC hardware sample rate in Hertz                                                                                                                                                                    &nbs p;                              
        name_of_sound_capt = "hw:1"             # Name of soundcard capture hardware device.                                                                                                                                                                    &n bsp;                     
        name_of_sound_play = "hw:0"             # Use the same device for play back                                                                                                                                                                      ;                              
        channel_i = 1                           # Soundcard index of in-phase channel:  0, 1, 2, ...                                                                                                                                                                                   
        channel_q = 0                           # Soundcard index of quadrature channel:  0, 1, 2, ...                                                                                                                                                                                 
                                                                                                                                                                             &nb sp;                                                                                                        
        microphone_name = "hw:0"                                                                                                                                                                    &nb sp;                                                                                 
        name_of_mic_play = "hw:1"                                                                                                                                                                    &nb sp;                                                                                
        mic_channel_I = 0                       # Soundcard index of mic capture audio channel                                                                                                                                                                    &n bsp;                   
        mic_channel_Q = 0                       # Soundcard index of ignored capture channel                                                                                                                                                                    &n bsp;                     
        mic_play_chan_I = 0                     # Soundcard index of mic I play channel                                                                                                                                                                    &n bsp;                          
        mic_play_chan_Q = 1                     # Soundcard index of mic Q play channel                                                                                                                                                                    &n bsp;                          
        mic_sample_rate = 48000         # Microphone capture sample rate in Hertz, must be 48000                                                                                                                                                                    &nbs p;                 
        mic_playback_rate = 48000       # Microphone sound card playback rate, must be 48000                                                                                                                                                                    &nbs p;                     
        mic_out_volume = 550.0            # Microphone output volume (after all processing) as a fraction 0.0 to 1.0
        73 ... Sid.

        On 22/07/12 21:22, Ron Wellsted wrote:
         

        -----BEGIN PGP SIGNED MESSAGE-----
        Hash: SHA1

        On 22/07/12 13:39, Sid Boyce wrote:
        >
        >
        > Those messages are just noise. The bluetooth messages are from the
        > bluez-alsa package that's installed. 73 ... Sid.
        >

        Over the past few months, I have been using quisk with a couple of
        different SDRs, a Softrock like Rx and and Ensemble RxTx.

        The bigest problem I found was to do with the way Linux/alsa handles
        the (multiple) sound cards (onboard which appears as 2 sound cards,
        because of the HDMI output and a PCI soundblaster). As a result my
        /proc/asound/cards looks like this:

        # cat /proc/asound/cards
        0 [SB ]: HDA-Intel - HDA ATI SB
        HDA ATI SB at 0xfe8f0000 irq 16
        1 [HDMI ]: HDA-Intel - HDA ATI HDMI
        HDA ATI HDMI at 0xfeae8000 irq 19
        2 [AudioPCI ]: ENS1371 - Ensoniq AudioPCI
        Ensoniq AudioPCI ENS1371 at 0xe800, irq 20

        A further complication is that which card occupies which slot is
        purely arbitrary as it is determined by the kernel at startup (if
        anybody knows a 100% reliable way of guaranteeing the same order on
        every boot, please share it with the group!), As a result I have
        resorted to using the alsa short names the part between the [] in the
        above, rather than the slot numbers in the ~/.quisk_conf.py file.
        This results in my ~/.quisk_conf.py file being as follows:

        from softrock import hardware_usb as quisk_hardware
        from softrock import widgets_tx as quisk_widgets

        si570_direct_control = True
        # use usbsoftrock -vv status and use the fXtall value
        # for calibration
        si570_xtal_freq = 114285000
        # In ALSA, soundcards have these names.
        # Vendor and product ID's for the SoftRock USB interface
        usb_vendor_id = 0x16c0
        usb_product_id = 0x05dc
        softrock_model = "RxTxEnsemble"

        playback_rate = 48000
        sample_rate = 48000 # ADC hardware sample rate in Hertz
        name_of_sound_capt = "alsa:SB" # Name of soundcard capture hardware
        device.
        name_of_sound_play = "alsa:AudioPCI" # speakers on PCI soundcard

        # Microphone capture:
        microphone_name = "alsa:AudioPCI" # Name of microphone capture
        device
        name_of_mic_play = "alsa:SB" # Name of play device if CW or mic I/Q
        is sent to a sound card
        mic_playback_rate = playback_rate # Playback rate must be a multiple
        1, 2, ... of mic_sample_rate
        mic_out_volume = 1.0 # Transmit sound output volume (after
        all processing) as a fraction 0.0 to 1.0

        default_screen = 'WFall' # personal preference

        # the I/Q channel selections depend on the jumper option on the softrock
        # straight through requires:
        #channel_i = 1
        #channel_q = 0
        channel_i = 0 # Soundcard index of in-phase channel: 0, 1, 2, ...
        channel_q = 1 # Soundcard index of quadrature channel: 0, 1, 2, ...

        Hopefully this will help with getting your Ensemble Rx working with quisk.

        - --
        Ron Wellsted
        ron@... http://www.wellsted.org.uk
        N 52.567623, W 2.136111 Linux Counter No. 202120
        -----BEGIN PGP SIGNATURE-----
        Version: GnuPG v1.4.11 (GNU/Linux)
        Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

        iQEcBAEBAgAGBQJQDGDmAAoJEEtP/KMNOfRbZIMIAKjyrjG/z/lbpcGtPWtJXlB8
        L0wCHk4czulwKszF2R0o4Tq5tcvuXCrl1s76W70E7yJvWgJvj0RH7xu5rtStFqTW
        fsLuCE/bt5GfYF7846+weFk7k0SgUcAErdPCo5vN9hQgAwELOIoeCIGofTdp6Ls8
        LAP84iISjXhR9xQanyArx2vz4bgGftDpt9JVsMEM1r4RAH8kxE6c4vGRTtc7Lyi4
        kJ09QoKoD/aPNiEbo880b7okRxjO2zjCPc3+tMkuTxktGXS39KpnQxlSMjexEI6i
        pWQZoZjzlg5jZFkV+H9ykO5GBs7fOIp6FJORVuX0KlBVfEVX1z9owbxKXz7i4uM=
        =LUKF
        -----END PGP SIGNATURE-----



        -- 
        Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
        Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
        Senior Staff Specialist, Cricket Coach
        Microsoft Windows Free Zone - Linux used for all Computing Tasks
        
      • MIKE DURKIN
        I think ill go with the other route myself Sid... I reboot from time to time(some times because of electrical storms) and the hw: designation changes most of
        Message 4 of 18 , Jul 22, 2012
        • 0 Attachment
          I think ill go with the other route myself Sid...

          I reboot from time to time(some times because of electrical storms) and the hw: designation changes most of the time. I have 3 soundcards ... one if which is a USB.

          Mike KC7NOA

          -----Original Message-----

          From: Sid Boyce
          Sent: 22 Jul 2012 21:35:21 GMT
          To: softrock40@yahoogroups.com
          Subject: Re: [softrock40] Getting Quisk to work with Ensemble II ?

           

          May be these issues never cropped up before, possibly because I and other early users thought in terms of hw: and plughw: addresses being accustomed to using them with aplay to play wav files.

          hw:0,0 below is the Analog and hw:0,1 is the Digital, hw:0 implies hw:0,0.
          root@sdrbox1:~# aplay -l
          **** List of PLAYBACK Hardware Devices ****
          card 0: Intel [HDA Intel], device 0: ALC887-VD Analog [ALC887-VD Analog]
            Subdevices: 0/1
            Subdevice #0: subdevice #0
          card 0: Intel [HDA Intel], device 1: ALC887-VD Digital [ALC887-VD Digital]
            Subdevices: 1/1
            Subdevice #0: subdevice #0
          card 1: DG8SAQI2C [DG8SAQ-I2C], device 0: USB Audio [USB Audio]
            Subdevices: 0/1
            Subdevice #0: subdevice #0

          So you are saying cat /proc/asound/cards always gives the same result, which is as expected.
          It may be better to address the cards by their names hw:0 and hw:2 which are the 2 you need.
          That has always worked.
          Quisk was originally intended to work with his transceiver design that used one sound card only so Jim didn't have to deal with multiple sound cards.

          Another point I-Q reversal can be done by changing "channel_i =" and "channel_1 =" to their complements.
          I had to do that today when using a UHFSDR on a box that was previously used with the Ensemble RXTX. 
          root@sdrbox1:~# cat /proc/asound/cards
           0 [Intel          ]: HDA-Intel - HDA Intel
                                HDA Intel at 0xfdff8000 irq 44
           1 [DG8SAQI2C      ]: USB-Audio - DG8SAQ-I2C
                                www.obdev.at DG8SAQ-I2C at usb-0000:00:1d.7-5, high speed

          sample_rate = 48000                     # ADC hardware sample rate in Hertz                                                                                                                                                                    &nbs p;                              
          name_of_sound_capt = "hw:1"             # Name of soundcard capture hardware device.                                                                                                                                                                    &n bsp;                     
          name_of_sound_play = "hw:0"             # Use the same device for play back                                                                                                                                                                      ;                              
          channel_i = 1                           # Soundcard index of in-phase channel:  0, 1, 2, ...                                                                                                                                                                                   
          channel_q = 0                           # Soundcard index of quadrature channel:  0, 1, 2, ...                                                                                                                                                                                 
                                                                                                                                                                               &nb sp;                                                                                                        
          microphone_name = "hw:0"                                                                                                                                                                    &nb sp;                                                                                 
          name_of_mic_play = "hw:1"                                                                                                                                                                    &nb sp;                                                                                
          mic_channel_I = 0                       # Soundcard index of mic capture audio channel                                                                                                                                                                    &n bsp;                   
          mic_channel_Q = 0                       # Soundcard index of ignored capture channel                                                                                                                                                                    &n bsp;                     
          mic_play_chan_I = 0                     # Soundcard index of mic I play channel                                                                                                                                                                    &n bsp;                          
          mic_play_chan_Q = 1                     # Soundcard index of mic Q play channel                                                                                                                                                                    &n bsp;                          
          mic_sample_rate = 48000         # Microphone capture sample rate in Hertz, must be 48000                                                                                                                                                                    &nbs p;                 
          mic_playback_rate = 48000       # Microphone sound card playback rate, must be 48000                                                                                                                                                                    &nbs p;                     
          mic_out_volume = 550.0            # Microphone output volume (after all processing) as a fraction 0.0 to 1.0
          73 ... Sid.

          On 22/07/12 21:22, Ron Wellsted wrote:
           

          -----BEGIN PGP SIGNED MESSAGE-----
          Hash: SHA1

          On 22/07/12 13:39, Sid Boyce wrote:
          >
          >
          > Those messages are just noise. The bluetooth messages are from the
          > bluez-alsa package that's installed. 73 ... Sid.
          >

          Over the past few months, I have been using quisk with a couple of
          different SDRs, a Softrock like Rx and and Ensemble RxTx.

          The bigest problem I found was to do with the way Linux/alsa handles
          the (multiple) sound cards (onboard which appears as 2 sound cards,
          because of the HDMI output and a PCI soundblaster). As a result my
          /proc/asound/cards looks like this:

          # cat /proc/asound/cards
          0 [SB ]: HDA-Intel - HDA ATI SB
          HDA ATI SB at 0xfe8f0000 irq 16
          1 [HDMI ]: HDA-Intel - HDA ATI HDMI
          HDA ATI HDMI at 0xfeae8000 irq 19
          2 [AudioPCI ]: ENS1371 - Ensoniq AudioPCI
          Ensoniq AudioPCI ENS1371 at 0xe800, irq 20

          A further complication is that which card occupies which slot is
          purely arbitrary as it is determined by the kernel at startup (if
          anybody knows a 100% reliable way of guaranteeing the same order on
          every boot, please share it with the group!), As a result I have
          resorted to using the alsa short names the part between the [] in the
          above, rather than the slot numbers in the ~/.quisk_conf.py file.
          This results in my ~/.quisk_conf.py file being as follows:

          from softrock import hardware_usb as quisk_hardware
          from softrock import widgets_tx as quisk_widgets

          si570_direct_control = True
          # use usbsoftrock -vv status and use the fXtall value
          # for calibration
          si570_xtal_freq = 114285000
          # In ALSA, soundcards have these names.
          # Vendor and product ID's for the SoftRock USB interface
          usb_vendor_id = 0x16c0
          usb_product_id = 0x05dc
          softrock_model = "RxTxEnsemble"

          playback_rate = 48000
          sample_rate = 48000 # ADC hardware sample rate in Hertz
          name_of_sound_capt = "alsa:SB" # Name of soundcard capture hardware
          device.
          name_of_sound_play = "alsa:AudioPCI" # speakers on PCI soundcard

          # Microphone capture:
          microphone_name = "alsa:AudioPCI" # Name of microphone capture
          device
          name_of_mic_play = "alsa:SB" # Name of play device if CW or mic I/Q
          is sent to a sound card
          mic_playback_rate = playback_rate # Playback rate must be a multiple
          1, 2, ... of mic_sample_rate
          mic_out_volume = 1.0 # Transmit sound output volume (after
          all processing) as a fraction 0.0 to 1.0

          default_screen = 'WFall' # personal preference

          # the I/Q channel selections depend on the jumper option on the softrock
          # straight through requires:
          #channel_i = 1
          #channel_q = 0
          channel_i = 0 # Soundcard index of in-phase channel: 0, 1, 2, ...
          channel_q = 1 # Soundcard index of quadrature channel: 0, 1, 2, ...

          Hopefully this will help with getting your Ensemble Rx working with quisk.

          - --
          Ron Wellsted
          ron@... http://www.wellsted.org.uk
          N 52.567623, W 2.136111 Linux Counter No. 202120
          -----BEGIN PGP SIGNATURE-----
          Version: GnuPG v1.4.11 (GNU/Linux)
          Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

          iQEcBAEBAgAGBQJQDGDmAAoJEEtP/KMNOfRbZIMIAKjyrjG/z/lbpcGtPWtJXlB8
          L0wCHk4czulwKszF2R0o4Tq5tcvuXCrl1s76W70E7yJvWgJvj0RH7xu5rtStFqTW
          fsLuCE/bt5GfYF7846+weFk7k0SgUcAErdPCo5vN9hQgAwELOIoeCIGofTdp6Ls8
          LAP84iISjXhR9xQanyArx2vz4bgGftDpt9JVsMEM1r4RAH8kxE6c4vGRTtc7Lyi4
          kJ09QoKoD/aPNiEbo880b7okRxjO2zjCPc3+tMkuTxktGXS39KpnQxlSMjexEI6i
          pWQZoZjzlg5jZFkV+H9ykO5GBs7fOIp6FJORVuX0KlBVfEVX1z9owbxKXz7i4uM=
          =LUKF
          -----END PGP SIGNATURE-----



          -- 
          Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
          Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
          Senior Staff Specialist, Cricket Coach
          Microsoft Windows Free Zone - Linux used for all Computing Tasks
          

        • Gordon JC Pearce
          ... http://www.gjcp.net/blog/2010/oct/07/sorting-out-sound/ -- Gordonjcp MM0YEQ
          Message 5 of 18 , Jul 22, 2012
          • 0 Attachment
            On 22/07/12 21:22, Ron Wellsted wrote:

            > A further complication is that which card occupies which slot is
            > purely arbitrary as it is determined by the kernel at startup (if
            > anybody knows a 100% reliable way of guaranteeing the same order on
            > every boot, please share it with the group!),

            http://www.gjcp.net/blog/2010/oct/07/sorting-out-sound/


            --
            Gordonjcp MM0YEQ
          • Sid Boyce
            That s odd, I have 2 plus the SDR-Widget and they always stay the same. tindog:~ # cat /proc/asound/cards 0 [SB ]: HDA-Intel - HDA ATI SB HDA ATI
            Message 6 of 18 , Jul 22, 2012
            • 0 Attachment
              That's odd, I have 2 plus the SDR-Widget and they always stay the same.
              tindog:~ # cat /proc/asound/cards
               0 [SB             ]: HDA-Intel - HDA ATI SB
                                    HDA ATI SB at 0xfdff4000 irq 16
               1 [Creative       ]: HDA-Intel - HDA Creative
                                    HDA Creative at 0xdfff8000 irq 43
               2 [DG8SAQI2C      ]: USB-Audio - DG8SAQ-I2C
                                    www.obdev.at DG8SAQ-I2C at usb-0000:00:12.2-2, high speed
              73 ... Sid.

              On 22/07/12 22:48, MIKE DURKIN wrote:
               

              I think ill go with the other route myself Sid...

              I reboot from time to time(some times because of electrical storms) and the hw: designation changes most of the time. I have 3 soundcards ... one if which is a USB.

              Mike KC7NOA

              -----Original Message-----

              From: Sid Boyce
              Sent: 22 Jul 2012 21:35:21 GMT
              To: softrock40@yahoogroups.com
              Subject: Re: [softrock40] Getting Quisk to work with Ensemble II ?

               
              May be these issues never cropped up before, possibly because I and other early users thought in terms of hw: and plughw: addresses being accustomed to using them with aplay to play wav files.

              hw:0,0 below is the Analog and hw:0,1 is the Digital, hw:0 implies hw:0,0.
              root@sdrbox1:~# aplay -l
              **** List of PLAYBACK Hardware Devices ****
              card 0: Intel [HDA Intel], device 0: ALC887-VD Analog [ALC887-VD Analog]
                Subdevices: 0/1
                Subdevice #0: subdevice #0
              card 0: Intel [HDA Intel], device 1: ALC887-VD Digital [ALC887-VD Digital]
                Subdevices: 1/1
                Subdevice #0: subdevice #0
              card 1: DG8SAQI2C [DG8SAQ-I2C], device 0: USB Audio [USB Audio]
                Subdevices: 0/1
                Subdevice #0: subdevice #0

              So you are saying cat /proc/asound/cards always gives the same result, which is as expected.
              It may be better to address the cards by their names hw:0 and hw:2 which are the 2 you need.
              That has always worked.
              Quisk was originally intended to work with his transceiver design that used one sound card only so Jim didn't have to deal with multiple sound cards.

              Another point I-Q reversal can be done by changing "channel_i =" and "channel_1 =" to their complements.
              I had to do that today when using a UHFSDR on a box that was previously used with the Ensemble RXTX. 
              root@sdrbox1:~# cat /proc/asound/cards
               0 [Intel          ]: HDA-Intel - HDA Intel
                                    HDA Intel at 0xfdff8000 irq 44
               1 [DG8SAQI2C      ]: USB-Audio - DG8SAQ-I2C
                                    www.obdev.at DG8SAQ-I2C at usb-0000:00:1d.7-5, high speed

              sample_rate = 48000                     # ADC hardware sample rate in Hertz                                                                                                                                                                     &nbs p;                              
              name_of_sound_capt = "hw:1"             # Name of soundcard capture hardware device.                                                                                                                                                                 &nbs p;  &n bsp;                     
              name_of_sound_play = "hw:0"             # Use the same device for play back                                                                                                                                                                  & nbsp;   ;                              
              channel_i = 1                           # Soundcard index of in-phase channel:  0, 1, 2, ...                                                                                                                                                                  &n bsp;               
              channel_q = 0                           # Soundcard index of quadrature channel:  0, 1, 2, ...                                                                                                                                                                  &n bsp;             
                                                                                                                                                                                  ;  &nb sp;                                                                                                        
              microphone_name = "hw:0"                                                                                                                                                                   ;  &nb sp;                                                                                 
              name_of_mic_play = "hw:1"                                                                                                                                                                   ;  &nb sp;                                                                                
              mic_channel_I = 0                       # Soundcard index of mic capture audio channel                                                                                                                                                                 &nbs p;  &n bsp;                   
              mic_channel_Q = 0                       # Soundcard index of ignored capture channel                                                                                                                                                                 &nbs p;  &n bsp;                     
              mic_play_chan_I = 0                     # Soundcard index of mic I play channel                                                                                                                                                                 &nbs p;  &n bsp;                          
              mic_play_chan_Q = 1                     # Soundcard index of mic Q play channel                                                                                                                                                                 &nbs p;  &n bsp;                          
              mic_sample_rate = 48000         # Microphone capture sample rate in Hertz, must be 48000                                                                                                                                                                                       
              mic_playback_rate = 48000       # Microphone sound card playback rate, must be 48000                                                                                                                                                                     &nbs p;                     
              mic_out_volume = 550.0            # Microphone output volume (after all processing) as a fraction 0.0 to 1.0
              73 ... Sid.

              On 22/07/12 21:22, Ron Wellsted wrote:
               

              -----BEGIN PGP SIGNED MESSAGE-----
              Hash: SHA1

              On 22/07/12 13:39, Sid Boyce wrote:
              >
              >
              > Those messages are just noise. The bluetooth messages are from the
              > bluez-alsa package that's installed. 73 ... Sid.
              >

              Over the past few months, I have been using quisk with a couple of
              different SDRs, a Softrock like Rx and and Ensemble RxTx.

              The bigest problem I found was to do with the way Linux/alsa handles
              the (multiple) sound cards (onboard which appears as 2 sound cards,
              because of the HDMI output and a PCI soundblaster). As a result my
              /proc/asound/cards looks like this:

              # cat /proc/asound/cards
              0 [SB ]: HDA-Intel - HDA ATI SB
              HDA ATI SB at 0xfe8f0000 irq 16
              1 [HDMI ]: HDA-Intel - HDA ATI HDMI
              HDA ATI HDMI at 0xfeae8000 irq 19
              2 [AudioPCI ]: ENS1371 - Ensoniq AudioPCI
              Ensoniq AudioPCI ENS1371 at 0xe800, irq 20

              A further complication is that which card occupies which slot is
              purely arbitrary as it is determined by the kernel at startup (if
              anybody knows a 100% reliable way of guaranteeing the same order on
              every boot, please share it with the group!), As a result I have
              resorted to using the alsa short names the part between the [] in the
              above, rather than the slot numbers in the ~/.quisk_conf.py file.
              This results in my ~/.quisk_conf.py file being as follows:

              from softrock import hardware_usb as quisk_hardware
              from softrock import widgets_tx as quisk_widgets

              si570_direct_control = True
              # use usbsoftrock -vv status and use the fXtall value
              # for calibration
              si570_xtal_freq = 114285000
              # In ALSA, soundcards have these names.
              # Vendor and product ID's for the SoftRock USB interface
              usb_vendor_id = 0x16c0
              usb_product_id = 0x05dc
              softrock_model = "RxTxEnsemble"

              playback_rate = 48000
              sample_rate = 48000 # ADC hardware sample rate in Hertz
              name_of_sound_capt = "alsa:SB" # Name of soundcard capture hardware
              device.
              name_of_sound_play = "alsa:AudioPCI" # speakers on PCI soundcard

              # Microphone capture:
              microphone_name = "alsa:AudioPCI" # Name of microphone capture
              device
              name_of_mic_play = "alsa:SB" # Name of play device if CW or mic I/Q
              is sent to a sound card
              mic_playback_rate = playback_rate # Playback rate must be a multiple
              1, 2, ... of mic_sample_rate
              mic_out_volume = 1.0 # Transmit sound output volume (after
              all processing) as a fraction 0.0 to 1.0

              default_screen = 'WFall' # personal preference

              # the I/Q channel selections depend on the jumper option on the softrock
              # straight through requires:
              #channel_i = 1
              #channel_q = 0
              channel_i = 0 # Soundcard index of in-phase channel: 0, 1, 2, ...
              channel_q = 1 # Soundcard index of quadrature channel: 0, 1, 2, ...

              Hopefully this will help with getting your Ensemble Rx working with quisk.

              - --
              Ron Wellsted
              ron@... http://www.wellsted.org.uk
              N 52.567623, W 2.136111 Linux Counter No. 202120
              -----BEGIN PGP SIGNATURE-----
              Version: GnuPG v1.4.11 (GNU/Linux)
              Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
              _._,_.___

              .



              -- 
              Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
              Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
              Senior Staff Specialist, Cricket Coach
              Microsoft Windows Free Zone - Linux used for all Computing Tasks
              
            • Jerry Dunmire
              The link MM0YEQ supplied does solve the problem. I have been using four sound cards in my linux system, along with quisk, for several years. I m including the
              Message 7 of 18 , Jul 22, 2012
              • 0 Attachment
                The link MM0YEQ supplied does solve the problem. I have been using four sound cards in my linux system, along with quisk, for several years. I'm including the /etc/modprobe.d/audioCards.conf file that I created it as a example:
                ----------------------
                # See: http://www.gjcp.net/blog/2010/oct/07/sorting-out-sound/
                #
                # Four audio devices:
                #   on motherboard: Intel ICH6
                #   PCI card: Creative Audigy SE CA0106
                #   USB: C-Media
                #   USB: Creative X-Fi
                options snd_intel8x0 index=0
                options snd_ca0106 index=1
                options snd_usb_audio index=2,3 vid=0x0d8c,0x041e pid=0x0008,0x3042
                --------------------

                Now everytime I boot the /proc/asound/cards file has the same contents.

                $ cat /proc/asound/cards
                 0 [ICH6           ]: ICH4 - Intel ICH6
                                      Intel ICH6 with AD1980 at irq 23
                 1 [CA0106         ]: CA0106 - CA0106
                                      Audigy SE [SB0570] at 0xdce0 irq 17
                 2 [default        ]: USB-Audio - C-Media USB Audio Device  
                                      C-Media USB Audio Device    at usb-0000:00:1d.3-1, full speed
                 3 [S51            ]: USB-Audio - SB X-Fi Surround 5.1
                                      Creative Technology SB X-Fi Surround 5.1 at usb-0000:00:1d.1-2, full speed

                ...jerry
                KA6HLD

                On Sun, Jul 22, 2012 at 3:17 PM, Gordon JC Pearce <gordon@...> wrote:
                 

                On 22/07/12 21:22, Ron Wellsted wrote:

                > A further complication is that which card occupies which slot is
                > purely arbitrary as it is determined by the kernel at startup (if
                > anybody knows a 100% reliable way of guaranteeing the same order on
                > every boot, please share it with the group!),

                http://www.gjcp.net/blog/2010/oct/07/sorting-out-sound/

                --
                Gordonjcp MM0YEQ


              • MIKE DURKIN
                Hey Jerry ... Hummm ... sorry for a partial hijack. What Distro linux are you running and have you tried ghpsdr3-alex? Mike KC7NOA ... From: Jerry Dunmire
                Message 8 of 18 , Jul 22, 2012
                • 0 Attachment
                  Hey Jerry ...

                  Hummm ... sorry for a partial hijack.


                  What Distro linux are you running and have you tried ghpsdr3-alex?

                  Mike KC7NOA
                  ... BTY, I do like Quisk ... Linrad sounds better still for some reason but Quisk does things more friendly ..

                  -----Original Message-----

                  From: Jerry Dunmire
                  Sent: 23 Jul 2012 03:54:15 GMT
                  To: softrock40@yahoogroups.com
                  Subject: Re: [softrock40] Getting Quisk to work with Ensemble II ?

                   

                  The link MM0YEQ supplied does solve the problem. I have been using four sound cards in my linux system, along with quisk, for several years. I'm including the /etc/modprobe.d/audioCards.conf file that I created it as a example:
                  ----------------------
                  # See: http://www.gjcp.net/blog/2010/oct/07/sorting-out-sound/
                  #
                  # Four audio devices:
                  #   on motherboard: Intel ICH6
                  #   PCI card: Creative Audigy SE CA0106
                  #   USB: C-Media
                  #   USB: Creative X-Fi
                  options snd_intel8x0 index=0
                  options snd_ca0106 index=1
                  options snd_usb_audio index=2,3 vid=0x0d8c,0x041e pid=0x0008,0x3042
                  --------------------

                  Now everytime I boot the /proc/asound/cards file has the same contents.

                  $ cat /proc/asound/cards
                   0 [ICH6           ]: ICH4 - Intel ICH6
                                        Intel ICH6 with AD1980 at irq 23
                   1 [CA0106         ]: CA0106 - CA0106
                                        Audigy SE [SB0570] at 0xdce0 irq 17
                   2 [default        ]: USB-Audio - C-Media USB Audio Device  
                                        C-Media USB Audio Device    at usb-0000:00:1d.3-1, full speed
                   3 [S51            ]: USB-Audio - SB X-Fi Surround 5.1
                                        Creative Technology SB X-Fi Surround 5.1 at usb-0000:00:1d.1-2, full speed

                  ...jerry
                  KA6HLD

                  On Sun, Jul 22, 2012 at 3:17 PM, Gordon JC Pearce <gordon@...> wrote:
                   

                  On 22/07/12 21:22, Ron Wellsted wrote:

                  > A further complication is that which card occupies which slot is
                  > purely arbitrary as it is determined by the kernel at startup (if
                  > anybody knows a 100% reliable way of guaranteeing the same order on
                  > every boot, please share it with the group!),

                  http://www.gjcp.net/blog/2010/oct/07/sorting-out-sound/

                  --
                  Gordonjcp MM0YEQ


                • Sid Boyce
                  So contrary to what I thought the device numbering was not static. That should have been automatic and recorded in /etc/modprobe.d/alsa-base.conf in Ubuntu and
                  Message 9 of 18 , Jul 23, 2012
                  • 0 Attachment
                    So contrary to what I thought the device numbering was not static.
                    That should have been automatic and recorded in /etc/modprobe.d/alsa-base.conf in Ubuntu and /etc/modprobe.d/50-sound.conf in openSUSE.
                    73 ... Sid.

                    On 23/07/12 04:54, Jerry Dunmire wrote:
                     

                    The link MM0YEQ supplied does solve the problem. I have been using four sound cards in my linux system, along with quisk, for several years. I'm including the /etc/modprobe.d/audioCards.conf file that I created it as a example:
                    ----------------------
                    # See: http://www.gjcp.net/blog/2010/oct/07/sorting-out-sound/
                    #
                    # Four audio devices:
                    #   on motherboard: Intel ICH6
                    #   PCI card: Creative Audigy SE CA0106
                    #   USB: C-Media
                    #   USB: Creative X-Fi
                    options snd_intel8x0 index=0
                    options snd_ca0106 index=1
                    options snd_usb_audio index=2,3 vid=0x0d8c,0x041e pid=0x0008,0x3042
                    --------------------

                    Now everytime I boot the /proc/asound/cards file has the same contents.

                    $ cat /proc/asound/cards
                     0 [ICH6           ]: ICH4 - Intel ICH6
                                          Intel ICH6 with AD1980 at irq 23
                     1 [CA0106         ]: CA0106 - CA0106
                                          Audigy SE [SB0570] at 0xdce0 irq 17
                     2 [default        ]: USB-Audio - C-Media USB Audio Device  
                                          C-Media USB Audio Device    at usb-0000:00:1d.3-1, full speed
                     3 [S51            ]: USB-Audio - SB X-Fi Surround 5.1
                                          Creative Technology SB X-Fi Surround 5.1 at usb-0000:00:1d.1-2, full speed

                    ...jerry
                    KA6HLD

                    On Sun, Jul 22, 2012 at 3:17 PM, Gordon JC Pearce <gordon@...> wrote:
                     
                    On 22/07/12 21:22, Ron Wellsted wrote:

                    > A further complication is that which card occupies which slot is
                    > purely arbitrary as it is determined by the kernel at startup (if
                    > anybody knows a 100% reliable way of guaranteeing the same order on
                    > every boot, please share it with the group!),

                    http://www.gjcp.net/blog/2010/oct/07/sorting-out-sound/

                    --
                    Gordonjcp MM0YEQ



                    -- 
                    Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
                    Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
                    Senior Staff Specialist, Cricket Coach
                    Microsoft Windows Free Zone - Linux used for all Computing Tasks
                    
                  Your message has been successfully submitted and would be delivered to recipients shortly.