Skip to contentSkip to conversation

Soundmodem Not Decoding Real Packets

DISCUSSION Dave Platt 3 participants 3 messages Jul 2, 2005

lore
Share & tools
lore

Dave Platt

author
#0 lore raw
Quoted 9 lines

I did find out that the audio output from my radio was a bit high. I don't have an oscilloscope to play with, so I just used audacity to see the audio while recording it. I trimmed it down so that everything is there. I'm still having the same problem though. I have also been trying to decode packets off of APRS here in California on 144.390 to no avail. I also tried the decoding process with squelch open. I'm not really sure what is going on here. I also tried twiddling with the audio levels on my input channel in a mixer program. Any crafty diagnostic ideas?

Hmmm.

Which audio drivers are you using - OSS, or ALSA?

I've seen some rather bizarre things with some combinations of card, driver, and software setting. In particular, problems can occur if:

[1] The card itself is only capable of supporting a small selection of sampling rates (many AC97 codes seem to want to run at 48000 samples/second), and

[2] You set up the sound modem to use the "natural" sampling rate for the modulation in question (e.g. 9600 samples/second for 1200-baud packet), and

[3] The soundmodem is configured to use /dev/dsp, and

[4] You're using an ALSA driver with OSS emulation.

What seems to happen is that the OSS emulation layer quite politely lies to the soundmodem, says "Sure, 9600 samples/second is supported", and then tells the ALSA PCM layer to do sample-rate conversion in software. The ALSA rate converter has some problems, and it ends up introducing noise into the received audio signal occasionally (usually on internal buffer boundaries, I believe). The noise is sufficient to mess up the audio reception.

The solution to this involves disabling the sample rate conversion process. I _think_ (but am not sure) that the best way to do this is to tell the soundmodem to use the ALSA API directly, rather than using the OSS emulation via /dev/dsp - recent versions of the soundmodem can do this, and are smart enough to use a sampling rate that the audio chip supports directly with no conversion being required.

#1 lore raw
Quoted 3 lines · Dave Platt <dplatt <at> radagast.org> writes:

Hmmm.

Which audio drivers are you using - OSS, or ALSA?

I've tried both. I'm using the i810_audio module with the AC97 codec for an on-board sound device on a laptop.

Quoted 10 lines

I've seen some rather bizarre things with some combinations of card, driver, and software setting. In particular, problems can occur if:

[1] The card itself is only capable of supporting a small selection of sampling rates (many AC97 codes seem to want to run at 48000 samples/second), and

[2] You set up the sound modem to use the "natural" sampling rate for the modulation in question (e.g. 9600 samples/second for 1200-baud packet), and

I cannot seem to find where this is set. Are the specifications for the config file somewhere?

Quoted 12 lines

[3] The soundmodem is configured to use /dev/dsp, and

[4] You're using an ALSA driver with OSS emulation.

What seems to happen is that the OSS emulation layer quite politely lies to the soundmodem, says "Sure, 9600 samples/second is supported", and then tells the ALSA PCM layer to do sample-rate conversion in software. The ALSA rate converter has some problems, and it ends up introducing noise into the received audio signal occasionally (usually on internal buffer boundaries, I believe). The noise is sufficient to mess up the audio reception.

Quoted 6 lines

The solution to this involves disabling the sample rate conversion process. I _think_ (but am not sure) that the best way to do this is to tell the soundmodem to use the ALSA API directly, rather than using the OSS emulation via /dev/dsp - recent versions of the soundmodem can do this, and are smart enough to use a sampling rate that the audio chip supports directly with no conversion being required.

Well, from some of the things you have pointed out, I might suspect an audio driver issue, but I'm not sure if the ALSA driver is using OSS emulation with the older i810_audio driver.

#2 lore raw

Hello,

The motherboard i have with onboard sound card
didn't work (it transmit ok, but dont decode packets, the scope graph show a very small bandwidth with blank noise) , i have to buy a sound blaste PCI, and work fine!!

hugs
lu9aum

Quoted 69 lines · --- Jonathan Lassoff
Quoted 3 lines · Dave Platt <dplatt <at> radagast.org> writes:

Hmmm.

Which audio drivers are you using - OSS, or ALSA?

I've tried both. I'm using the i810_audio module with the AC97 codec for an
on-board sound device on a laptop.

Quoted 1 line

I've seen some rather bizarre things with some

combinations of card,

Quoted 1 line

driver, and software setting. In particular,

problems can occur if:

Quoted 2 lines

[1] The card itself is only capable of supporting

a small selection of

Quoted 1 line

sampling rates (many AC97 codes seem to want

to run at 48000

Quoted 3 lines

samples/second), and

[2] You set up the sound modem to use the

"natural" sampling rate for

Quoted 1 line

the modulation in question (e.g. 9600

samples/second for 1200-baud

Quoted 1 line

packet), and

I cannot seem to find where this is set. Are the specifications for the config
file somewhere?

Quoted 1 line

[3] The soundmodem is configured to use /dev/dsp,

and

Quoted 2 lines

[4] You're using an ALSA driver with OSS

emulation.

Quoted 2 lines

What seems to happen is that the OSS emulation

layer quite politely

Quoted 1 line

lies to the soundmodem, says "Sure, 9600

samples/second is supported",

Quoted 1 line

and then tells the ALSA PCM layer to do

sample-rate conversion in

Quoted 1 line

software. The ALSA rate converter has some

problems, and it ends up

Quoted 1 line

introducing noise into the received audio signal

occasionally (usually

Quoted 1 line

on internal buffer boundaries, I believe). The

noise is sufficient to

Quoted 3 lines

mess up the audio reception.

The solution to this involves disabling the sample

rate conversion

Quoted 1 line

process. I _think_ (but am not sure) that the

best way to do this is

Quoted 1 line

to tell the soundmodem to use the ALSA API

directly, rather than using

Quoted 1 line

the OSS emulation via /dev/dsp - recent versions

of the soundmodem can

Quoted 1 line

do this, and are smart enough to use a sampling

rate that the audio

Quoted 1 line

chip supports directly with no conversion being

required.

Well, from some of the things you have pointed out, I might suspect an audio
driver issue, but I'm not sure if the ALSA driver is using OSS emulation with
the older i810_audio driver.

Quoted 7 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com