Skip to content

Crackling noise with Pi/ALSA? #81

Description

@craigerl

Hi guys, I still don't know what to expect, but maybe you can tell me if this is normal.

I'm using "pat" winlink client in varahf mode and it's communicating with mercury api
just fine, but I'm getting maybe a 5% decode rate and cannot complete a transaction.

https://craiger.org/craiger/mercury-noise.mkv << video/audio, with crackle, is this normal?

It sounds like a sample/bitrate issue I've seen before on some radios and rasperry
Pi, and it's present on the ic7300 and ic705.

I tried forcing 44.1Khz with .asoundrc, but that produced pure noise. is there
a way to have mercury use a sample rate other than 48000Hz?

Loaded configuration from mercury.ini
Audio System: Advanced Linux Sound Architecture (ALSA)
16:53:53.840 [+0.000s] [INF] [main] Async logger initialized (min_level=INFO)
16:53:53.840 [+0.000s] [INF] [main] Initializing I/O from Sound Card
16:53:53.841 [+0.001s] [INF] [radio-io] Initializing radio (type=3085, device=/dev/ttyACM0, hamlib_log_level=0, serial_speed=115200)
16:53:53.841 [+0.001s] [INF] [radio-io] Serial speed overridden to 115200 baud
16:53:53.920 [+0.080s] [INF] [audio-play] I/O playback (default) int32 / 48000Hz / 2ch / 42ms buffer
16:53:54.007 [+0.167s] [INF] [radio-io] Radio control: HAMLIB (model 3085, device /dev/ttyACM0)
16:53:54.007 [+0.167s] [INF] [main] Initializing Modem
16:53:54.007 [+0.167s] [INF] [modem] Created data buffers for ARQ and BROADCAST datalink, tx/rx paths.
16:53:54.009 [+0.169s] [INF] [modem] Initialized persistent FreeDV mode pool (DATAC13/DATAC4/DATAC3/DATAC1), frames per burst: 1
TX test: bytes_per_modem_frame=128, payload_size=126
16:53:54.009 [+0.169s] [INF] [modem] Active FreeDV mode at startup: 12 (DATAC3), verbosity: 0
16:53:54.009 [+0.169s] [INF] [modem] Modem expects sample rate: 8000 Hz
16:53:54.009 [+0.169s] [INF] [modem] Modem payload bytes per frame: 126
16:53:54.009 [+0.169s] [INF] [modem] Split control/data mode switching: ENABLED
16:53:54.022 [+0.182s] [INF] [radio] TX enabled (PTT ON)
16:53:54.048 [+0.208s] [INF] [audio-cap] I/O capture (default) int32 / 48000Hz / 2ch / 42ms buffer
16:53:57.895 [+4.055s] [INF] [radio] TX disabled (PTT OFF)
16:53:57.909 [+4.069s] [INF] [radio] TX enabled (PTT ON)
^X16:54:01.782 [+7.942s] [INF] [radio] TX disabled (PTT OFF)
16:54:01.797 [+7.957s] [INF] [radio] TX enabled (PTT ON)
^C16:54:05.241 [+11.401s] [INF] [main] Termination signal received, shutting down...
16:54:05.248 [+11.408s] [ERR] [audio-cap] ffaudio.stop: snd_pcm_pause: (-5) Input/output error
16:54:05.312 [+11.472s] [INF] [audio-cap] radio_capture_thread exit
16:54:05.440 [+11.600s] [INF] [audio-play] radio_playback_thread exit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions