Linux HAM/Amateur Radio development
 help / color / mirror / Atom feed
* Soundmodem Not Decoding Real Packets
@ 2005-07-01  8:01 Jonathan Lassoff
       [not found] ` <46479.194.154.200.89.1120206709.squirrel@mail.lx2gt.lu>
  2005-07-01 18:42 ` Dave Platt
  0 siblings, 2 replies; 7+ messages in thread
From: Jonathan Lassoff @ 2005-07-01  8:01 UTC (permalink / raw)
  To: linux-hams

I've been trying to get Tom Sailer's soundmodem to decode AX.25 packets. I've
been able to see the audio coming in from the radio and from other machines
transmitting packets through a cable. The only problem is that the DCD can be
too sensitive and turn on when there is nothing but just inducted noise in the
cable from somewhere. The noise in normal, and the level is very, very low. But,
the problem is that soundmodem tries its best to try and decode the noise. But
when a real packet comes down the line, it tries but fails to decode it
properly. I think that I have an issue with audio levels, but I'm open to being
wrong. Does anyone on list have any good ideas of things to try?

Jonathan Lassoff (KG6THI)


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Soundmodem Not Decoding Real Packets
@ 2005-07-02  4:09 Dave Platt
  2005-07-02  4:58 ` Jonathan Lassoff
  0 siblings, 1 reply; 7+ messages in thread
From: Dave Platt @ 2005-07-02  4:09 UTC (permalink / raw)
  To: Jonathan Lassoff, linux-hams


> 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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-07-02 19:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-01  8:01 Soundmodem Not Decoding Real Packets Jonathan Lassoff
     [not found] ` <46479.194.154.200.89.1120206709.squirrel@mail.lx2gt.lu>
2005-07-01 17:34   ` Jonathan Lassoff
2005-07-01 18:42 ` Dave Platt
2005-07-01 23:56   ` Jonathan Lassoff
  -- strict thread matches above, loose matches on Subject: below --
2005-07-02  4:09 Dave Platt
2005-07-02  4:58 ` Jonathan Lassoff
2005-07-02 19:03   ` ariel mastracchio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox