Hints on Compiling and Using WSJT 9.1 in Ubuntu 64bit 10.04 LTS for use with the SignalLink USB external sound card.
by Larry Jones W0AY Nov 14, 2011
1. Make a directory to hold the source code: lj@lian2:~mkdir $HOME/wsjt
2. Change into the new directory: lj@lian2:~cd ~wsjt
3. Grab the latest version: lj@lian2:~svn checkout svn://svn.code.sf.net/p/wsjt/code/trunk wsjt-code
This creaters a wsjt-code directory. Download of source ends with scrolling output something similar to:
A wsjt-code/wsjt.py U wsjt-code Checked out revision 2506.
4. In the directory wsjt-code, scroll down and find the file "Wsjt_Howto_Ubuntu.html" Open it with your browser (firefox, chromium etc) We will be following Harry's instructions closely.
5. In a terminal enter: lj@lian2:~/wsjt$ sudo apt-get build-dep wsjt
6. Download and Install fftw3 packages: lj@lian2:~/wsjt/wsjt-code$ sudo apt-get install libfftw3-dev libfftw3-3
7. Change to the source code directory: lj@lian2:~/wsjt$ cd wsjt-code
7. Invoke the utility "Configure" from within the wsjt-code source code directory: lj@lian2:~/wsjt/wsjt-code$ ./configure
8. Invoke the compilers using the linux utility make: lj@lian2:~/wsjt/wsjt-code$ make clean;make
9. If compilation proceeds with nothing more than several screens of "WARNINGS", try to invoke the wsjt program from within the wsjt-code directory: lj@lian2:~/wsjt/wsjt-code$ python -O wsjt.py
10. If, upon invoking the python wsjt program (Step 9 above) an Error "bt_audio_service_open: connect() failed: Connection refused (111)" is generated then this is likely caused by bluez-alsa package. Use Synaptic (or apt-get) to remove this package then the error goes away. (sudo apt-get remove bluez-alsa).
11. Once WJST 9.1 is running, File -> Open ->RxWav ->Samples -> W8WN-010890_110400.WAV. If all is well, the resulting screens will match the description in the Step-by-Step Decoding Tutorial, "WSJT6, Users Guide and Reference Manual" [WSJT_User_600.pdf], page 6 found in your source code directory
12. The SignalLink USB sound card add on that I have installed apparently will not sample at the WSJT mandated sample rate of 11025 samples per second. Therefore you have to insert the below .asouncrc file in your $HOME (eg. /home/lj). This file, I think, says create a copy of the SignalLink USB audio stream and set it's sampling rate at 44100 s/sec. Then make a copy of this stream called SignalLinkOut which in turn is offered to the WJST 9.1 program. This virtual stream designated as SignalLinkOut can be sampled at a reduced rate of 11025 required by the WJST 9.1 program.
13. After making changes to (or creating) the hidden file .asoundrc in your $HOME directory, you need to restart the pulse audio system. lj@lian2:~$ sudo service pulseaudio --restart * PulseAudio configured for per-user sessions
14. Finally you need to tell WSJT which of the audio devices it should use for sampling. If you start WSJT in a terminal, you should see something like the output below. Notice that Audio Device 13 in the generated output for my installation calls out the slave virtual stream SignalLinkOut. That device number (13) is the number that I insert in Setup -> Options ->Audio In and Setup -> Options ->Audio Out. Your card and device number may be different. Note that my USB SignalLink external sound card is referenced as Audio Device 3 and carrys the designation of (hw:1,0). You'll find hw:1,0 in the my critical .asoundrc file listed below. Here too your (hw:x,x) might be different. In my PC, I have only the Gigabyte provided Intel ALC888 internal "card" on my motherboard and my external TigerTronics SignalLink USB sound cards. My ALC888 is card hw:0,x and my SignalLink USB is card hw:1,x where x varies according to which card device you are addressing. The SignalLink USB has only one device internal to it so my full designation is hw:1,0. Again your setup maybe different.
Finally if your Rx noise window reads -39 dB, click on the button "Monitor". Typical values here are a few dB.
lj@lian2:~$ bash -c "cd /home/lj/wsjt/wsjt-code;python -O wsjt.py" ************************************************************* WSJT Version 9.1 r2473 , by K1JT Revision date: 2011-10-06 12:58:43 -0600 (Thu, 06 Oct 2011) Run date: Thu Nov 24 16:44:39 2011 UTC
Audio Input Output Device Name Device Channels Channels ------------------------------------------------------------------ 0 2 6 HDA Intel: ALC888 Analog (hw:0,0) 1 2 2 HDA Intel: ALC888 Digital (hw:0,1) 2 2 0 HDA Intel: ALC888 Analog (hw:0,2) 3 2 2 USB Audio CODEC : USB Audio (hw:1,0) 4 0 6 front 5 0 6 surround40 6 0 128 surround41 7 0 128 surround50 8 0 6 surround51 9 0 6 surround71lj@lian2:~$ bash -c "cd /home/lj/wsjt/wsjt-code;python -O wsjt.py" 10 0 2 iec958 11 2 2 spdif 12 2 2 SignalLink-USB 13 2 2 SignalLinkOut 14 32 32 pulse 15 0 2 dmix 16 32 32 default 17 16 16 /dev/dsp 18 16 16 /dev/dsp1
User requested devices: Input = 13 Output = 13 Default devices: Input = 16 Output = 16 Will open devices: Input = 13 Output = 13 Audio streams running normally. ******************************************************************
----- Contents of the suggested .asoundrc text file begin below ------------- pcm.SignalLink-USB { type hw card 1 device 0 } pcm_slave.SignalLinkIn { pcm SignalLink-USB rate 44100 } pcm.SignalLinkOut { type rate slave SignalLinkIn }
-------------------------------------------------------------- Many thanks to (1) Harry Popov LZ1BB "How to compile WSJT under Ubuntu and Debian" (http://lz1bb.bfra.org/wsjt/Wsjt_Howto_Ubuntu.html) (2) Kev Piper, G0CHE, "How to Setup JT6M - Soundcards" (http://www.jt6m.org/soundcards.php) (3) Joe Taylor, K1JT, "WSJT 9.0: Supplement to User's Guide" (physics.princeton.edu/pulsar/K1JT/WSJT_9.0_Supplement.pdf) (4) Andy K3UK "Guide to HF JT65A" (http://www.pe2pe.eu/images/WSJT%20on%20HF.htm) (5) Various, http://en.wikipedia.org/wiki/WSJT_(Amateur_radio_software)
|