domingo, 29 de março de 2020

WSJT-X 2.1.2 Debian Linux compile from source

WSJT-X 2.1.2 Debian Linux compile from source

download source from http://physics.princeton.edu/pulsar/K1JT/wsjtx-2.1.2.tgz
tar xzf wsjtx-version
cd wsjtx-version
mkdir build
cd build

./configure
make
make install

if dependency errors occurs :

sudo apt-get install texinfo gfortran qt5-default qttools5-dev asciidoctor asciidoc qtmultimedia5-dev libqt5serialport5 libqt5serialport5-dev

apt-get install libqt5multimedia5 (* maybe not necessary, test without first *)

cmake --build . --target install

note errors reported, normally dependencies, and go solving one by one (final error changes to next to solve)

tested on Debian 4.9 x86_64 GNU/Linux

sábado, 23 de junho de 2018

SDR Sharp on Ubuntu 16.04

Original procedure from Michael Hirsch on https://www.scivision.co/sdr-sharp-ubuntu/

Build SDR-sharp

This procedure was tested with:
  • Ubuntu 18.04 / Ubuntu 16.04
  • Mono 4.6 / 4.2
  • $20 RTL-SDR USB stick receiver
  1. Install SDR# prereqs
    apt install mono-complete libportaudio2 librtlsdr0 librtlsdr-dev
    
    librtlsdr0 provides file /lib/udev/rules.d/60-librtlsdr0.rules that allows the RTL-SDR stick to be recognized upon USB plugin.
  2. Build SDR#.
    git clone https://github.com/cgommel/sdrsharp
    cd sdrsharp
    xbuild /p:TargetFrameworkVersion="v4.5" /p:Configuration=Release
    
  3. Softlinks help your Mono executable find the audio libraries.
    cd Release
    
    ln -s /usr/lib/x86_64-linux-gnu/libportaudio.so.2 libportaudio.so
    
    ln -s /usr/lib/x86_64-linux-gnu/librtlsdr.so.0 librtlsdr.dll
    

Run SDR

In Linux,
mono SDRSharp.exe
Set audio buffer to 200ms, sample rate to 2.048Mbps

Notes

  • Ubuntu 14.04 does NOT work with Mono 3.2.
  • Ubuntu 16.04 with Mono 4.2 works for SDR#
  • Ubuntu 18.04 with Mono 4.6 works for SDR#
  • RTL-SDR software list

Find library paths

In general you can find the path(s) to a Linux library by:
dpkg -L libportaudio2

Linux RTL-SDR programs

Alternative SDR choices for the RTL-SDR receivers on Linux include

Successful compiler output

Build succeeded.
Warnings:
~/sdrsharp/SDRSharp.sln (default targets) -> (Build target) -> ~/sdrsharp/HackRF/SDRSharp.HackRF.csproj (default targets) -> /usr/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets (CoreCompile target) ->
HackRFDevice.cs(30,38): warning CS0414: The private field `SDRSharp.HackRF.HackRFDevice._readLength' is assigned but its value is never used

 1 Warning(s)
 0 Error(s)

portaudio not found

Will yield errors including:
No portaudio softlink
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for ‘PortAudioSharp.PortAudioAPI’ threw an exception. —> System.DllNotFoundException: portaudio at (wrapper managed-to-native) PortAudioSharp.PortAudioAPI:Pa_Initialize () at PortAudioSharp.PortAudioAPI..cctor () [0x00000] in :0

Device signatures not installed

Error loading ‘SDRSharp.RTLSDR.RtlSdrIO.SDRSharp.RTLSDR’ - Exception has been thrown by the target of an invocation.
Error loading ‘SDRSharp.SDRIQ.SdrIqIO.SDRSHarp.SDRIQ’ - “”””
‘SDRSharp.HackRF.HackRF.HackRFIO.SDSharp.HackRF’

sábado, 26 de agosto de 2017

DV4mini on Linux and MacOS

This procedure has been tested under Ubuntu Linux 16.04 LTS only, but should work on other Linux distros and MacOS as well. If you have the opportunity to test, please send a message to pu2mkj@gmail.com .
Boot your system with the DV4mini USB stick pluged in, then follow the “SETUP” steps below. After making it work for the first time, check “USING AFTER SETUP” section.

IMPORTANT: your system must be set to timezone UTC – on Debian/Ubuntu based distros, use “sudo dpkg-reconfigure tzdata”, on the 1st screen “none of the above”, and next “UTC
You can get your DV4mini USB stick & more information about the device at:

SETUP

1) Install latest winehq “stable” release (by Aug 2017 version 2.0.2) following the procedures:
2) Set wine version to “Windows 10”:
$ winecfg
First time you run winecfg, it's likely to ask you to install some additional modules, normally "mono" and "gecko" - just choose install/yes as much as it asks. After winecfg goes up:

tab “Applications” > “Windows version” > Windows 10 > OK
3) Create symlink on ~/.wine/dosdevices:

You’ll need to find out what device is being created when you insert the DV4mini dongle (you could use “tail -f /var/log/syslog” and watch the logs as you insert the USB device); in my case, it was /dev/ttyACM0
$ ln -s /dev/ttyACM0 ~/.wine/dosdevices/com4
Important: make sure you have proper rights to access the device, by checking if your user is member of the group under wich it has been created:
$ ls -la /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 Ago 25 17:04 /dev/ttyACM0
$ cat /etc/group | grep dialout
dialout:x:20:your_user
If your user isn't on the proper group:
$ sudo usermod -aG dialout your_user
On Ubuntu 16.04, it was necessary to set the serial as “raw” interface, otherwise the voice quality when testing (i.e. connecting to echo module 99) will be bad; to fix that,create an udev rule:
$ sudo vi /etc/udev/rules.d/49-dv4mini.rules
# 04d8:000a - DV4mini
ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="000a", RUN+="/bin/stty -F /dev/%k raw"
Then reboot the system
4) Install DV4mini software (tested version 1.65)

Download dv4mini software from http://www.dv4mini.de/edownload.html
$ wine 2016_05_23_setup.exe
5) First start dv_serial.exe
$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/DV4mini/dv_serial.exe
Depending on what version of dv4mini software you've installed, the path can be either "Program Files (x86)" or "Program Files"; if "wine: cannot find (...)" appears, just change the command above accordly.

If everything goes fine, you’ll see in the logs the dv4mini dongle has been found by the dv_serial.exe (among a lot of other stuff)
6) Then start dv4mini.exe after some seconds
$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/DV4mini/dv4mini.exe
On the 1st time it runs, it’s usual to present internet connection and other kind of errors, show an alert then close itself; just run the command again to star it over
After the GUI comes up, insert your DMR ID and set frequency accordly
Some other messages are likely to show up on promt and on the GUI itself, but the program connects to the reflector and works.

USING AFTER SETUP

In order to have it working with last used settings, you only need dv_serial.exe running in background:
$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/DV4mini/dv_serial.exe > /dev/null &
You could include this line on a boot script – but remember to run it as your user, as the settings reside in your home directory.
Only if you wish to change the settings (i.e. the frequency or reflector, or even the mode), you'll need to open dv4mini.exe - but remember to first start dv_serial.exe as mentioned above, and give at least 30 seconds for it to come up:
$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/DV4mini/dv4mini.exe
If you close dv4mini.exe, it’ll also close dv_serial.exe. So to use the reflector, you’ll need to start dv_serial.exe again
To make life simple, I’ve created startup scripts dv4mini_background and dv4mini_configure .