Locked Prerequisites on Raspberry Pi? #raspberryPi


allen KC2KLC
 

I plan to install WSJT-X on my Raspberry Pi 4B (OS is Bullseye) to interface with my Yaesu FT897. I have a USB audio interface working, and I also purchased a USB CAT adapter. I'm trying to use online info & YouTube videos as a guide, but most are several years old. The one question I can't figure out is: Do I need to install flrig for WSJT-X to work, and if so, is it standalone, or do I also need fldigi?

Thanks!


Joel S Retholtz - AC8WS
 

Allen

I am running WSJT-X on my IC-7300 and on an Elecraft KX2 without FLrig just with the correct Hamlib settings for the radio within WSJT-X. This works on my Windows 11 machine and on a RPI 4B with the KM4ACK build-a-pi image. Just make certain the baud rate settings correspond to those set in your radio. FLrig is a convenient interface that will work as a stand alone program but likely not required for your setup. Grid Tracker and/or CQRLog are both programs that will interface with WSJT-X for logging. I am using both. CQRLog to maintain a local log on my Pi and Grid Tracker for online logging and because I like the interface and it is fun to play with. CQRLog will also do online logging so you don’t need both.

Hope this helps
Joel
AC8WS

On Mar 18, 2023, at 4:49 AM, allen KC2KLC <groups.io_user@...> wrote:

I plan to install WSJT-X on my Raspberry Pi 4B (OS is Bullseye) to interface with my Yaesu FT897. I have a USB audio interface working, and I also purchased a USB CAT adapter. I'm trying to use online info & YouTube videos as a guide, but most are several years old. The one question I can't figure out is: Do I need to install flrig for WSJT-X to work, and if so, is it standalone, or do I also need fldigi?

Thanks!





allen KC2KLC
 

Yes, I think that's helpful. I am trying to build a custom Pi installation from scratch, without resorting to an image (in part because I already have working apps I don't want to lose, and in part because I'm trying to learn this thing from the ground up; I do, however, have a couple of images on other SD cards that I've played with). I'm relying somewhat on KM4ACK's videos, but they're a bit dated, which worries me about their reliability (it seems things change quickly in the Linux-based world). I'll install WSJT-X tomorrow and let you know how it foes. Thanks & 73!


allen KC2KLC
 

It's working - partially. I verified no other prerequisites are needed when installing WSJT-X ver. 2.3.0. I'm seeing signals on the waterfall getting decoded, and the CAT interface works when I hit TUNE. However, I still have two significant issues to conquer:

(1) No output is getting to the rig (power and ALC read zero) with the WSJT Pwr selector and Mic gain in the mixer at maximum. I selected "default" for the audio in, and hoped "default" would also work for the audio out (USB interface - C-Media - Card 1 / Device 0). There is a long list of available devices (pictured at https://www.lutins.org/temp/wsjt_dev.jpg - sorry for the poor photo, but with WSJT running the Print Screen button seems to be disabled), and I tried all that made sense (skipping, for example, anything that had "hdmi" in the name), but nothing is working.

(2) If I transmit or tune, then stop, the waterfall stops running and WSJT-X stops decoding.

Also, when I close the application, the task remains running in the background; if I want to restart it, I have to manually kill the task in the Task Manager. However, this is the least of my problems - I can live with it for a while.

I feel like I"m SO close - hopefully a little help from this community will have me on air in the field! Thanks :)


Dennis W1UE
 

Allen
If in doubt on which device is the audio device, if it’s a usb device
simply pull the cable out. The program will let you know which device is
no longer available. Now u know which device to pick!

Dennis W1UE

On Sun, Mar 19, 2023 at 13:38 allen KC2KLC <groups.io_user@...>
wrote:

It's working - partially. I verified no other prerequisites are needed
when installing WSJT-X ver. 2.3.0. I'm seeing signals on the waterfall
getting decoded, and the CAT interface works when I hit TUNE. However, I
still have two significant issues to conquer:

(1) No output is getting to the rig (power and ALC read zero) with the
WSJT Pwr selector and Mic gain in the mixer at maximum. I selected
"default" for the audio in, and hoped "default" would also work for the
audio out (USB interface - C-Media - Card 1 / Device 0). There is a long
list of available devices (pictured at
https://www.lutins.org/temp/wsjt_dev.jpg - sorry for the poor photo, but
with WSJT running the Print Screen button seems to be disabled), and I
tried all that made sense (skipping, for example, anything that had "hdmi"
in the name), but nothing is working.

(2) If I transmit or tune, then stop, the waterfall stops running and
WSJT-X stops decoding.

Also, when I close the application, the task remains running in the
background; if I want to restart it, I have to manually kill the task in
the Task Manager. However, this is the least of my problems - I can live
with it for a while.

I feel like I"m SO close - hopefully a little help from this community
will have me on air in the field! Thanks :)






Joel S Retholtz - AC8WS
 

I agree with Dennis. Do what he suggested for both the speaker and the microphone choices. Please understand that Microphone is your Input (waterfall) – Speakers are your output (power). Make certain that the speaker level is set loud enough.

Joel AC8WS

*From:* Dennis W1UE ( egan.dennis88@... )
*Sent:* Sunday, March 19, 2023 1:53 PM
*To:* main@wsjtx.groups.io
*Subject:* Re: [WSJTX] Prerequisites on Raspberry Pi? #raspberryPi

Allen

If in doubt on which device is the audio device, if it’s a usb device

simply pull the cable out.  The program will let you know which device is

no longer available.  Now u know which device to pick!

Dennis W1UE

On Sun, Mar 19, 2023 at 13:38 allen KC2KLC <groups.io_user@...>

wrote:

It's working - partially. I verified no other prerequisites are needed
when installing WSJT-X ver. 2.3.0. I'm seeing signals on the waterfall
getting decoded, and the CAT interface works when I hit TUNE. However, I
still have two significant issues to conquer:
(1) No output is getting to the rig (power and ALC read zero) with the
WSJT Pwr selector and Mic gain in the mixer at maximum. I selected
"default" for the audio in, and hoped "default" would also work for the
audio out (USB interface - C-Media -  Card 1 / Device 0). There is a long
list of available devices (pictured at
https://www.lutins.org/temp/wsjt_dev.jpg - sorry for the poor photo, but
with WSJT running the Print Screen button seems to be disabled), and I
tried all that made sense (skipping, for example, anything that had "hdmi"
in the name), but nothing is working.
(2) If I transmit or tune, then stop, the waterfall stops running and
WSJT-X stops decoding.
Also, when I close the application, the task remains running in the
background; if I want to restart it, I have to manually kill the task in
the Task Manager. However, this is the least of my problems - I can live
with it for a while.
I feel like I"m SO close - hopefully a little help from this community
will have me on air in the field! Thanks :)


Joel S Retholtz - AC8WS
 

Allen

In a terminal window on the pi you can also enter the following commands before and after you unplug your rig to see which device disappears:

To list your usb devices:

lsusb

To list your serial over usb devices (look at the end of the list for the ones you want):

ls /dev/tty*

Joel AC8WS

*From:* Joel S Retholtz - AC8WS via groups.io ( jretholtz@... )
*Sent:* Sunday, March 19, 2023 2:14 PM
*To:* main@wsjtx.groups.io
*Subject:* Re: [WSJTX] Prerequisites on Raspberry Pi? #raspberryPi

I agree with Dennis. Do what he suggested for both the speaker and the microphone choices. Please understand that Microphone is your Input (waterfall) – Speakers are your output (power). Make certain that the speaker level is set loud enough.

Joel AC8WS

*From:* Dennis W1UE ( egan.dennis88@... )

*Sent:* Sunday, March 19, 2023 1:53 PM

*To:* main@wsjtx.groups.io

*Subject:* Re: [WSJTX] Prerequisites on Raspberry Pi? #raspberryPi

Allen

If in doubt on which device is the audio device, if it’s a usb device

simply pull the cable out.  The program will let you know which device is

no longer available.  Now u know which device to pick!

Dennis W1UE

On Sun, Mar 19, 2023 at 13:38 allen KC2KLC <groups.io_user@...>

wrote:

It's working - partially. I verified no other prerequisites are needed
when installing WSJT-X ver. 2.3.0. I'm seeing signals on the waterfall
getting decoded, and the CAT interface works when I hit TUNE. However, I
still have two significant issues to conquer:
(1) No output is getting to the rig (power and ALC read zero) with the
WSJT Pwr selector and Mic gain in the mixer at maximum. I selected
"default" for the audio in, and hoped "default" would also work for the
audio out (USB interface - C-Media -  Card 1 / Device 0). There is a long
list of available devices (pictured at
https://www.lutins.org/temp/wsjt_dev.jpg - sorry for the poor photo, but
with WSJT running the Print Screen button seems to be disabled), and I
tried all that made sense (skipping, for example, anything that had "hdmi"
in the name), but nothing is working.
(2) If I transmit or tune, then stop, the waterfall stops running and
WSJT-X stops decoding.
Also, when I close the application, the task remains running in the
background; if I want to restart it, I have to manually kill the task in
the Task Manager. However, this is the least of my problems - I can live
with it for a while.
I feel like I"m SO close - hopefully a little help from this community
will have me on air in the field! Thanks :)


allen KC2KLC
 

Thanks for the feedback. I ran lsusb and see my device listed as "Bus 001 Device 004: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)", but that nomenclature doesn't remotely match any of the WSJT devices depicted in my screen capture (linked in previous message), except for maybe the one starting alsa_output.usb-C-Media_Electronics... (which I tried, but that didn't work). The mic (input) is obviously working (WSJT is hearing my radio & decoding properly). I plugged an external speaker into the phone jack (output) and heard nothing when hitting "tune". The same audio output (which is set as the default; I've disabled the internal audio jack) works fine when playing a YouTube video, although I now notice that I've lost the volume control in my system panel, and there isn't one listed in the add/remove panel items list. I guess I can systematically go through every device and try it (I originally omitted unlikely candidates), but something fishy's going on.

Hrm.


Joel S Retholtz - AC8WS
 


Allen

Several thoughts….

In terminal window enter: aplay -l

My output is:

**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: Device [USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

Card 0 is the onboard Pi audio, Cards 1&2 are I believe the audio from the two hdmi ports, Card 3 is my external USB sound dongle.

lsusb shows:

Bus 001 Device 003: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A) <- that is my external dongle.

The default settings you posted are likely correct EXCEPT run aplay —l and make certain they are listed under card 1 as USB audio device.

Have you used your radio with WSJT-X for FT8 before with a laptop? If so, it would indicate that the radio is set up correctly for digital output via the rear ports. If not there is likely a setting that needs to be enabled to do that (I have one on my 7300).

You have two cables going from the Pi to the radio. The USB/CAT is working if you can change frequencies and PTT (in the Hamlib settings I presume you tried the Check CAT and PTT buttons). I have PTT set via CAT. Mode on the Elecraft is set to USB (data/pkt did not work for me). You can also try to set Hamlib and the radio to a lower baud rate.

The second cable USB audio to din plug… is it from Yaesu or aftermarket? Most times I see complaints of no transmit power out it is related to RF interference. You can try to trouble shoot this with a different cable, ferrite cores, or try to transmit at a lower power and see if you get output. I looked at your QRZ page and you are probably better able to trouble shoot that than I am. You can also try to change that USB audio cable from the USB 3 ports to the USB 2 port.

Lastly in pulse audio… make certain under the output tab your audio device shows up. Also under the configuration tab mine is selected as “Analog stereo output + mono input” (for my external stereo dongle).

As Dennis suggested earlier, if your default devices vanish when the USB audio cable is unplugged they are likely the correct ones.

Not certain this is helpful but let me know if you figure it out.

Joel AC8WS

On Mar 20, 2023, at 3:01 AM, allen KC2KLC <groups.io_user@...> wrote:

Thanks for the feedback. I ran lsusb and see my device listed as "Bus 001 Device 004: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)", but that nomenclature doesn't remotely match any of the WSJT devices depicted in my screen capture (linked in previous message), except for maybe the one starting alsa_output.usb-C-Media_Electronics... (which I tried, but that didn't work). The mic (input) is obviously working (WSJT is hearing my radio & decoding properly). I plugged an external speaker into the phone jack (output) and heard nothing when hitting "tune". The same audio output (which is set as the default; I've disabled the internal audio jack) works fine when playing a YouTube video, although I now notice that I've lost the volume control in my system panel, and there isn't one listed in the add/remove panel items list. I guess I can systematically go through every device and try it (I originally omitted unlikely candidates), but something fishy's going on.

Hrm.





allen KC2KLC
 

I appreciate all the help, but there seems to be some confusion about my problem. There is no issue with the CAT interface to my radio - I can tune, I can change bands.

And my C-Media USB audio interface is working properly - The input works (WSJT-X is seeing and decoding FT8 signals just fine) and the output works (I can listen to YouTube video audio through it).

What is not working is hearing audio output from WSJT-X with the audio device. My rig shows no ALC movement, so I'm plugging an amplified speaker into the audio output instead (to listen directly for audio when hitting TUNE). Also, the volume control in my task tray has disappeared - not sure if that's related (it was there before).

If it's any help, here's some output results:
lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 001 Device 004: ID 2222:0048 MacAlly Macally RFKeyboard
Bus 001 Device 003: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

aplay -i:
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

And I've already shared a screen capture of the available devices in WSJT-X at https://www.lutins.org/temp/wsjt_dev.jpg - none of which have device numbers to help me correlate with the above outputs.

I made an image of my SD card prior to installing WSJT-X (with the audio interface verified working). I suppose I can go back to that image and reinstall WSJT-X, but I don't know that it will result in any difference.

Any chance of me being on the air with this setup this spring?


Joel S Retholtz - AC8WS
 

Allen

Sorry about the confusion. I “think” the problem maybe here.... in one of your original posts your state your “default” audio device is - USB interface - C-Media - *Card 1* / Device 0

Aplay -l shows it to be - *card 2* : Device [USB Audio Device], device 0: USB Audio [USB Audio]

I seem to remember there is a way to tell the Pi/software to look for it on card 2. I will have to look for that. If I find it I will get back to you.

Sorry I could not be of more help.

Joel

*From:* allen KC2KLC ( groups.io_user@... )
*Sent:* Saturday, March 25, 2023 10:06 AM
*To:* main@wsjtx.groups.io
*Subject:* Re: [WSJTX] Prerequisites on Raspberry Pi? #raspberryPi

I appreciate all the help, but there seems to be some confusion about my problem. There is no issue with the CAT interface to my radio - I can tune, I can change bands.

And my C-Media USB audio interface is working properly - The input works (WSJT-X is seeing and decoding FT8 signals just fine) and the output works (I can listen to YouTube video audio through it).

What is not working is hearing audio output from WSJT-X with the audio device. My rig shows no ALC movement, so I'm plugging an amplified speaker into the audio output instead (to listen directly for audio when hitting TUNE). Also, the volume control in my task tray has disappeared - not sure if that's related (it was there before).

If it's any help, here's some output results:

lsusb:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 001 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC

Bus 001 Device 004: ID 2222:0048 MacAlly Macally RFKeyboard

Bus 001 Device 003: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)

Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

aplay -i:

**** List of PLAYBACK Hardware Devices ****

card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]

Subdevices: 1/1

Subdevice #0: subdevice #0

card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]

Subdevices: 1/1

Subdevice #0: subdevice #0

card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]

Subdevices: 1/1

Subdevice #0: subdevice #0

And I've already shared a screen capture of the available devices in WSJT-X at https://www.lutins.org/temp/wsjt_dev.jpg - none of which have device numbers to help me correlate with the above outputs.

I made an image of my SD card prior to installing WSJT-X (with the audio interface verified working). I suppose I can go back to that image and reinstall WSJT-X, but I don't know that it will result in any difference.

Any chance of me being on the air with this setup this spring?