TX level output too small

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

TX level output too small

pascal
Hi all,
newbie with quisk
installed 3.6.12 on an Odroid-X card with help from Sid,  an E-MU tracker for IQ,  an usb headphone for audio mic & speaker. Hardware is a FA-SDR, similar to the 6,3 or Ensemble Softrock.
RX works well, flently and with a good image rejection.
TX works, but output of E-MU is only a dozen of millivolt instead of a volt, not enough to transmit, but enough to hear a clear modulation on another analog RX, so the system looks working well, except the output power.
I tried a lot of conf , adjusted alsamixer for the mic, put  mic_out_volume = 150.0 ....nothing helps...

see the main part of my quisk_conf :

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

use_sdriq = 1 # Get ADC samples from SDR-IQ
channel_i = 1 # Soundcard index of in-phase channel:  0, 1, 2, ...
channel_q = 0

sample_rate = 96000 # ADC hardware sample rate in Hertz
name_of_sound_capt = "hw:2,0" # Name of soundcard capture hardware device.
name_of_sound_play = "hw:1,0" # Name of soundcard playback hardware device.

# Microphone capture:
microphone_name = "hw:1,0" # Name of microphone capture device
mic_channel_I = 0                       # Soundcard index of mic capture audio channel
mic_channel_Q = 0                       # Soundcard index of ignored capture channel
mic_play_chan_I = 1                     # Soundcard index of mic I play channel
mic_play_chan_Q = 0                     # Soundcard index of mic Q play channel
name_of_mic_play = "hw:2,0" # Name of play device if CW or mic I/Q is sent to a sound card
mic_sample_rate = 48000 # Microphone capture sample rate in Hertz, should be 48000, can be 8000
mic_playback_rate = 96000 # Playback rate must be a multiple 1, 2, ... of mic_sample_rate
mic_out_volume = 150.0 # Transmit sound output volume (after all processing) as a fraction 0.0 to 1.0
use_rxtx = 1
#tx_channel_delay = -1
# For no mic audio processing, use mic_clip = 1.0; mic_preemphasis = 0.0
#mic_clip = 3.0 # Mic amplitude clipping; 1.0 for no clip, larger numbers give more clipping
#mic_preemphasis = 0.6 # Mic pre-emphasis 0.0 (none) to 1.0; or -1.0 for a Butterworth filter
# These parameters control the microphone gain adjustment.
#mic_avg_gain = 10.0 # Typical gain for the microphone in use
#mic_max_gain = 100.0 # Do not increase gain over this value

Any idea ?

73/Pascal   F6EHP
Pascal, F6EHP,  visit  www.f6ehp.fr
Reply | Threaded
Open this post in threaded view
|

Re: TX level output too small

magun
Hi Pascal

Which sound card are you using for mic_play (hw:0,2) and can you set the output level of that card in the ALSA mixer?
The mic_out_volume=150 could be a problem - it should be between 0. and 1., according to the comment at line ens
The thread started by McCody "Transmit audio ....." might help: The output level of a SB USB sound card could not be set in ALSA but with PORTAUDIO and then through mic_out_volume.

73 de Andreas (HB9EHI)
Reply | Threaded
Open this post in threaded view
|

Re: TX level output too small

magun
Sorry, I  overlooked that you mentioned the sound cards.

Where did you find the line use_rxtx=1 ?

Andreas
Reply | Threaded
Open this post in threaded view
|

Re: TX level output too small

pascal
Hi Andreas, thanks for your reply,

1. use_rxtx was found in quisk_conf_sdriq.py...I need it to run quisk...

2. mic_out_volume=150 was given by Sid who was told to use this value for Softrock by Alex, anyway, I tried a lot of number from 0.1 to 100000 without any improvment...

3. mic input is working well, as in conf/Tx audio, mic level goes up to 0 dB, and in a local receiver, I can hear my clear modulation..

4. issue comes probably from name_of_mic_play that gives the analog output to the hardware. alsamixer works for all cards and all settings are closed to max level...( I must say exactly the same hardware (ODROID, E-MU, FA-SDR, cables...) works very well with ghpSDR  RX as well as TX)

5. I tried portaudio:(hw:2,0), but i think that needs jackd running, and it is not running.

6. when I start quisk, I get a lot of messages about sound card ( I don't use the internal audio card0 , as the Odroid drivers doesn't work well, said Sid)

linaro@linaro-ubuntu-desktop:~/quisk$ python quisk.py
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Ooroid-max98090.pcm.front.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Ooroid-max98090.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Ooroid-max98090.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Ooroid-max98090.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Ooroid-max98090.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Ooroid-max98090.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Ooroid-max98090.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Ooroid-max98090.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Ooroid-max98090.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
^C

linaro@linaro-ubuntu-desktop:~/quisk$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Ooroidmax98090 [Ooroid-max98090], device 0: Playback max98090-aif1-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Ooroidmax98090 [Ooroid-max98090], device 1: Capture max98090-aif1-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Headset [Logitech USB Headset], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: USB [E-MU Tracker Pre | USB], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Pascal, F6EHP,  visit  www.f6ehp.fr
Reply | Threaded
Open this post in threaded view
|

Re: TX level output too small

pascal
I will try again to use portaudio this evening...I start quik with it and it seems running, but as I am remote with vnc, I cannot check sound or TX
Pascal, F6EHP,  visit  www.f6ehp.fr
Reply | Threaded
Open this post in threaded view
|

Re: TX level output too small

pascal
GOOD !
Portaudio works fine now for TX
conf is now like that :

# Microphone capture:
microphone_name = "hw:1,0" # Name of microphone capture device
mic_channel_I = 0                       # Soundcard index of mic capture audio channel
mic_channel_Q = 0                       # Soundcard index of ignored capture channel
mic_play_chan_I = 1                     # Soundcard index of mic I play channel
mic_play_chan_Q = 0                     # Soundcard index of mic Q play channel
name_of_mic_play = "portaudio:(hw:2,0)" # Name of play device if CW or mic I/Q is sent to a sound card
mic_sample_rate = 8000 # Microphone capture sample rate in Hertz, should be 48000, can be 8000
mic_playback_rate = 96000 # Playback rate must be a multiple 1, 2, ... of mic_sample_rate
mic_out_volume = 0.2 # Transmit sound output volume (after all processing) as a fraction 0.0 to 1.0
use_rxtx = 1

Thanks for this suggestion !
Pascal, F6EHP,  visit  www.f6ehp.fr
Reply | Threaded
Open this post in threaded view
|

Re: TX level output too small

magun
I am glad that quisk is working allright now.

use_rxtx = 1is only necessary when SDRIQ of the RFSPACE receiver with its special hardware for the I/Q Signals is used.

Cheers
Andreas
Reply | Threaded
Open this post in threaded view
|

Re: TX level output too small

pascal
In reply to this post by pascal
Unfortunatly , there is no TX image rejection, like if there was no phased signal at the output of the E-MU card ....
Pascal, F6EHP,  visit  www.f6ehp.fr
Reply | Threaded
Open this post in threaded view
|

Re: TX level output too small

pascal
Brrrrrrrrrrrrrr. just found a plug out at the back of the E-MU...Ajustment of TX phase and amplitude seems efficient, at first sight, I get over 30 db..I will have to work on the hardware to improve the result, but system is now working...
Pascal, F6EHP,  visit  www.f6ehp.fr
Reply | Threaded
Open this post in threaded view
|

Re: TX level output too small

ahlstromjc
Administrator
In reply to this post by pascal
Please note that the mic_out_volume must be a number between 0.0 and 1.0.  The recommended value is 0.7 to allow headroom.  If the level is still too low, check your mixer volume setting.

Jim
N2ADR
Reply | Threaded
Open this post in threaded view
|

Re: TX level output too small

pascal
Thanks  for help, now all is working well, i think i will enjoy quisk...no latency, good audio...easy to start.
Still a lot of things to adjust, but the main is ok
This subject is closed now
I will edit the procedure used to setup quisk on the Odroid-x card on my website www.f6ehp.fr
73/Pascal
Pascal, F6EHP,  visit  www.f6ehp.fr