Return-Path: Received: from mtain-de04.r1000.mx.aol.com (mtain-de04.r1000.mx.aol.com [172.29.64.204]) by air-dc09.mail.aol.com (v129.4) with ESMTP id MAILINDC093-86554d78888621d; Thu, 10 Mar 2011 03:15:02 -0500 Received: from post.thorcom.com (post.thorcom.com [195.171.43.25]) by mtain-de04.r1000.mx.aol.com (Internet Inbound) with ESMTP id 8B22838000147; Thu, 10 Mar 2011 03:14:59 -0500 (EST) Received: from majordom by post.thorcom.com with local (Exim 4.14) id 1Pxazz-0007R2-5A for rs_out_1@blacksheep.org; Thu, 10 Mar 2011 08:13:31 +0000 Received: from [195.171.43.32] (helo=relay1.thorcom.net) by post.thorcom.com with esmtp (Exim 4.14) id 1Pxazx-0007Qt-Tq for rsgb_lf_group@blacksheep.org; Thu, 10 Mar 2011 08:13:29 +0000 Received: from mail-iy0-f171.google.com ([209.85.210.171]) by relay1.thorcom.net with esmtp (Exim 4.63) (envelope-from ) id 1Pxazv-0003gj-9I for rsgb_lf_group@blacksheep.org; Thu, 10 Mar 2011 08:13:29 +0000 Received: by iyf40 with SMTP id 40so1751649iyf.16 for ; Thu, 10 Mar 2011 00:13:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=ZUX4CF5e+a5wiXt8NVANxHd0argaoK1jnhtKNKlK8Ws=; b=RKMxVCu9BdXW6RsDxSM15uPrdu1bTzIb6756aO8L65Zs5NrYFat+nqQxxFAoSCKGQf xw9Mjpr4Ui5eIIf3G2u6gOBjbJx5KxrUYKnUHUyrx2fXnRcylut1Jgspnj14p7XCjgpF yQ2bydghCi9XjcyKblYDe9o7irjVrDBNy19QY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IxXi6Or8x9vm8WxQhkSA4/mYG8ZEqwLr1KQKvdHXV6P5Z2/b74Z28PJgYU7bkd9LAO WLUl8los0fgj9zg6cnGxq0QmX4mXSMkrliotULZElDoOe1faQq9IQfRbI18h9AXdZ63v BobaHLvOT8/7pqU9EU+zDejfDdPk1A6/EV0fo= MIME-Version: 1.0 Received: by 10.231.29.101 with SMTP id p37mr5845010ibc.3.1299744798299; Thu, 10 Mar 2011 00:13:18 -0800 (PST) Received: by 10.231.199.197 with HTTP; Thu, 10 Mar 2011 00:13:18 -0800 (PST) In-Reply-To: <6F4ACB3DA2BB4E338E9278EEDE300D20@JimPC> References: <003201cbde72$606d6090$0401a8c0@xphd97xgq27nyf> <543492.45357.qm@web28102.mail.ukl.yahoo.com> <998C9385-2AEE-4C44-91FE-86FE85F09BA9@gmail.com> <6F4ACB3DA2BB4E338E9278EEDE300D20@JimPC> Date: Thu, 10 Mar 2011 08:13:18 +0000 Message-ID: From: Andy Talbot To: rsgb_lf_group@blacksheep.org DomainKey-Status: good (testing) X-Spam-Score: 0.9 (/) X-Spam-Report: autolearn=disabled,HTML_10_20=0.945,HTML_MESSAGE=0.001 Subject: Re: LF: Re: VLF Stability and soundcard locking Content-Type: multipart/alternative; boundary=00151773e34000569d049e1c6b56 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on post.thorcom.com X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=HTML_MESSAGE autolearn=no version=2.63 X-SA-Exim-Scanned: Yes Sender: owner-rsgb_lf_group@blacksheep.org Precedence: bulk Reply-To: rsgb_lf_group@blacksheep.org X-Listname: rsgb_lf_group X-SA-Exim-Rcpt-To: rs_out_1@blacksheep.org X-SA-Exim-Scanned: No; SAEximRunCond expanded to false x-aol-global-disposition: G X-AOL-SCOLL-AUTHENTICATION: mail_rly_antispam_dkim-m021.2 ; domain : gmail.com DKIM : pass x-aol-sid: 3039ac1d40cc4d7888830627 X-AOL-IP: 195.171.43.25 X-AOL-SPF: domain : blacksheep.org SPF : none X-Mailer: Unknown (No Version) --00151773e34000569d049e1c6b56 Content-Type: text/plain; charset=ISO-8859-1 That is very much what I feared would happen. USB interfaces run based on a clock of 6MHz, which is unfortunately an exact sub-multiple of the codec reference. So the difference between the clock in the transmitter (the codec) and the receiver (the PC) will cause a regular slippage. Now, soundcards communicate on USB using Isochronous mode which sacrifices data accuracy in favor of guaranteed timing of data delivery. Other USB modes perform error checking and repeat failed packets, or are simple Human Interfaces (HID) like keyboards and mice which have low occasional data rate and no checking. When you plug other devices into the bus, the negotiaion going on takes up some overhead and you'll lose more data blocks. So, we are forced to accept data glitches and resulting sampling rate errors in USB soundcards. The only way to overcome this, is to force the USB to use another protocol, which means not using a plug-and-play soundcard chip / headphone dongle, or whatever. This means a dedicated A/D converter, glue logic - which is probably going to have to be FPGA based, a PIC or like probably won't be able to hack-it - and a proper fully corrected USB link. Such interfaces already exist and are in the mainstearm of amateur radio. They are *Direct Sampling SDRs*. The SDR-IQ has a sampling rate defined only by its on board 66.6666MHz clock (which can come from a locked reference) and sends error corrected packets to the host. Other radios use Ethernet instead of USB for a faster transfer rate. That's life. Mind you, when I get round to it, still going to get that chip operational with a locked reference 12MHz and accurately measure its sampling rate. If it is not exactly 48kHz then we know the USB channel has to be at fault. One thing that PCM2900 codec chip is useful for - its the only soundcard I know of that DOESN'T allow you to change the recording level. Voltage in is related to digits out - exactly. So that makes it of inestimably more use in soundcard based test equipment as you don't have to keep making a level calibration check every other measurement. As far as I recall, it is even calibrated by design, so a 1VRMS sine (2.82V pk-pk) is full scale. Andy www.g4jnt.com On 10 March 2011 01:28, James Moritz wrote: > Dear Andy, LF Group, > > Not sure if the first mail I sent on this topic ever got through - not to > me, anyway... > > I have been using a USB sound card for VLF reception with my lap-top PC, > and, like all the PCs/sound cardsI have tried, it shows what appear to be > transient changes in the sample rate from time to time. It uses an > integrated codec/usb interface chip similar to the device Andy mentioned, > with a 12MHz clock crystal. I measured the actual clock frequency, which is > about +47ppm from nominal. With a suitable stable calibration source, and > 48kHz sample rate, Spec Lab indicated a sample rate error of -87ppm. The SR > compensation facility in Spec Lab makes the indicated frequency on the > spectrogram correct to within a fraction of 1ppm. The sample rate calibrator > reflects exactly the slow thermal drift of the sound card crystal, less than > 1ppm, but always with the much larger and constant offset of about 130ppm in > total from what you would expect. Changing the sample rate to 44.1kHz gave > an indicated sample rate error of -115ppm. I found by accident that plugging > a USB memory stick into another USB port on the laptop caused the sample > rate to change as well - just plugging it in gave a brief glitch of several > ppm, but opening the folders on the USB stick resulted in an additional > -81ppm shift, which remained until the USB stick was unplugged again, when > the SR returned to the previous value. The actual 12MHz clock frequency was > not noticeably affected by any of this activity. > > In addition to these apparently stable shifts in sample rate, transients > occur now and again of several ppm, aparently at random, maybe once an hour > on average. These give rise to glitches in a strong trace on a spectrogram > with resolution about 1mHz. But on weak amateur signals these would probably > not be visible, since the transient sidebands mostly only last for a few > pixels and are 20 or 30dB below the main spectral line, which remains on the > correct frequency. However, I think when one gets into the microhertz > resolution range, it would be a problem, because the transients occur often > enough to merge together and smear out the spectral line. > > Cheers, Jim Moritz > 73 de M0BMU > > --00151773e34000569d049e1c6b56 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
That is very much what I feared would happen.
=A0
USB interfaces run based on a=A0 clock of 6MHz, which is unfortunatel= y an exact sub-multiple of the codec reference.=A0=A0 So the difference be= tween the clock in the transmitter (the codec) and the receiver (the PC)= will cause a regular slippage.=A0=A0
=A0
Now, soundcards communicate on USB using Isochronous mode which sacri= fices data accuracy in favor of guaranteed timing of data delivery.=A0=A0= Other USB modes perform error checking and repeat failed packets, or are= simple Human Interfaces (HID) like keyboards and mice which have low occa= sional data rate and no checking.
=A0
When you plug other devices into the bus, the negotiaion going on tak= es up some overhead and you'll lose more data blocks.
=A0
So, we are forced to accept data=A0 glitches and resulting sampling= rate errors in USB soundcards.
=A0
The only way to overcome this, is to force the USB to use another pro= tocol, which means not using a plug-and-play soundcard chip / headphone do= ngle, or whatever.=A0=A0 This means a dedicated A/D converter, glue logic= - which is probably going to have to be FPGA based, a PIC or like probabl= y won't be able to hack-it - and a proper fully corrected USB link.=A0= =A0
=A0
Such interfaces already exist and are in the mainstearm of amateur ra= dio.=A0They are =A0 Direct Sampling SDRs.=A0 The SDR-IQ has a sampl= ing rate defined only by its on board 66.6666MHz clock (which can come fro= m a locked reference) and sends error corrected packets to the host.=A0=A0= Other radios use Ethernet instead of USB for a faster transfer rate.
=A0
That's life.=A0=A0 Mind you, when I get round to it, still going= to get that chip operational with a locked reference 12MHz and accurately= measure its sampling rate.=A0=A0 If it is not exactly 48kHz then we know= the USB channel has to be at fault.
=A0
One thing that PCM2900 codec chip is useful for - its the only soundc= ard I know of that DOESN'T=A0 allow you to change the recording level.= =A0=A0 Voltage in is related to digits=A0out - exactly.=A0=A0=A0 So that= makes it of inestimably more use in soundcard based test equipment as you= don't have to keep making a level calibration check every other measu= rement.=A0=A0 As far as=A0I recall, it=A0is even calibrated by design, so= a 1VRMS sine (2.82V pk-pk) is full scale.
=A0
Andy


=A0
On 10 March 2011 01:28, James Moritz <james.moritz@= btopenworld.com> wrote:
Dear Andy, LF Group,

No= t sure if the first mail I sent on this topic ever got through - not to me= , anyway...

I have been using a USB sound card for VLF reception with my lap-top= PC, and, like all the PCs/sound cardsI have tried, it shows what appear= to be transient changes in the sample rate from time to time. It uses an= integrated codec/usb interface chip similar to the device Andy mentioned,= with a 12MHz clock crystal. I measured the actual clock frequency, which= is about +47ppm from nominal. With a suitable stable calibration source,= and 48kHz sample rate, Spec Lab indicated a sample rate error of -87ppm.= The SR compensation facility in Spec Lab makes the indicated frequency on= the spectrogram correct to within a fraction of 1ppm. The sample rate cal= ibrator reflects exactly the slow thermal drift of the sound card crystal,= less than 1ppm, but always with the much larger and constant offset of ab= out 130ppm in total from what you would expect. Changing the sample rate= to 44.1kHz gave an indicated sample rate error of -115ppm. I found by acc= ident that plugging a USB memory stick into another USB port on the laptop= caused the sample rate to change as well - just plugging it in gave a bri= ef glitch of several ppm, but opening the folders on the USB stick resulte= d in an additional -81ppm shift, which remained until the USB stick was un= plugged again, when the SR returned to the previous value. The actual 12MH= z clock frequency was not noticeably affected by any of this activity.

In addition to these apparently stable shifts in sample rate, transien= ts occur now and again of several ppm, aparently at random, maybe once an= hour on average. These give rise to glitches in a strong trace on a spect= rogram with resolution about 1mHz. But on weak amateur signals these would= probably not be visible, since the transient sidebands mostly only last= for a few pixels and are 20 or 30dB below the main spectral line, which= remains on the correct frequency. However, I think when one gets into the= microhertz resolution range, it would be a problem, because the transient= s occur often enough to merge together and smear out the spectral line.
Cheers, Jim Moritz
73 de M0BMU


--00151773e34000569d049e1c6b56--