开云体育

ctrl + shift + ? for shortcuts
© 2025 Groups.io

192kHz usb audio patch for Teensyduino - testers?


 

I’m interested in digital modes and want to use the T41's usb interface for audio. However the standard Audio Library only supports usb-audio for the default 44,100 Hz sample rate. Unfortunately since the T41 code increases the sample rate to 192kHz (via the call to SetI2SFreq()) this breaks the usb-audio - any audio received or transmitted at this sample rate is severely distorted.


I’ve been working on source-code changes to the Audio Library (7x Teensyduino source files changed), and now have 192kHz usb-audio working on my Windows pc. With quick hacks to the T41 code I have also confirmed that the radio works for both receive and transmit with wsjt-x. (the T41 code would need extra work to integrate usb-audio properly, including CAT support).

?

The patch requires Teensyduino Version 1.59 and either Arduino 1.8.19 or Arduino 2.3.2.


I’m wondering whether there is sufficient interest in my Audio Library patch, and if so, whether a small number of “beta tester” volunteers would be willing to further test it before I make the patch and installation instructions generally available. Ideally the volunteers would have good programming and fault diagnosis skills (in case things go wrong), a Teensy 4.1 with an Audio Shield fitted, and an oscilloscope to confirm the correct waveforms . It would be great if one or more volunteers can test it on linux (both the development environment and as a linux audio host).

?

Volunteers please contact me direct. All feedback welcome.

?

Rgds,

Dave Mugridge M0JTS

?

?

?

?


 

Hi Dave,

I would be interested as I have tried the USB audio and ran into the same problems?

Would work well with my CAT code that I have tested with WSJT-X.

-- John G0ORX?

On Sat, 3 Aug 2024, 15:33 david mugridge via , <dave=[email protected]> wrote:

I’m interested in digital modes and want to use the T41's usb interface for audio. However the standard Audio Library only supports usb-audio for the default 44,100 Hz sample rate. Unfortunately since the T41 code increases the sample rate to 192kHz (via the call to SetI2SFreq()) this breaks the usb-audio - any audio received or transmitted at this sample rate is severely distorted.


I’ve been working on source-code changes to the Audio Library (7x Teensyduino source files changed), and now have 192kHz usb-audio working on my Windows pc. With quick hacks to the T41 code I have also confirmed that the radio works for both receive and transmit with wsjt-x. (the T41 code would need extra work to integrate usb-audio properly, including CAT support).

?

The patch requires Teensyduino Version 1.59 and either Arduino 1.8.19 or Arduino 2.3.2.


I’m wondering whether there is sufficient interest in my Audio Library patch, and if so, whether a small number of “beta tester” volunteers would be willing to further test it before I make the patch and installation instructions generally available. Ideally the volunteers would have good programming and fault diagnosis skills (in case things go wrong), a Teensy 4.1 with an Audio Shield fitted, and an oscilloscope to confirm the correct waveforms . It would be great if one or more volunteers can test it on linux (both the development environment and as a linux audio host).

?

Volunteers please contact me direct. All feedback welcome.

?

Rgds,

Dave Mugridge M0JTS

?

?

?

?


 

Excellent! I was hoping you'd volunteer, given your clear expertise and linux background too.? I'm polishing some bits of documentation off and hope to have something for you tomorrow.


On Sat, 3 Aug 2024 at 15:36, John Melton via <john.d.melton=[email protected]> wrote:
Hi Dave,

I would be interested as I have tried the USB audio and ran into the same problems?

Would work well with my CAT code that I have tested with WSJT-X.

-- John G0ORX?

On Sat, 3 Aug 2024, 15:33 david mugridge via , <dave=[email protected]> wrote:

I’m interested in digital modes and want to use the T41's usb interface for audio. However the standard Audio Library only supports usb-audio for the default 44,100 Hz sample rate. Unfortunately since the T41 code increases the sample rate to 192kHz (via the call to SetI2SFreq()) this breaks the usb-audio - any audio received or transmitted at this sample rate is severely distorted.


I’ve been working on source-code changes to the Audio Library (7x Teensyduino source files changed), and now have 192kHz usb-audio working on my Windows pc. With quick hacks to the T41 code I have also confirmed that the radio works for both receive and transmit with wsjt-x. (the T41 code would need extra work to integrate usb-audio properly, including CAT support).

?

The patch requires Teensyduino Version 1.59 and either Arduino 1.8.19 or Arduino 2.3.2.


I’m wondering whether there is sufficient interest in my Audio Library patch, and if so, whether a small number of “beta tester” volunteers would be willing to further test it before I make the patch and installation instructions generally available. Ideally the volunteers would have good programming and fault diagnosis skills (in case things go wrong), a Teensy 4.1 with an Audio Shield fitted, and an oscilloscope to confirm the correct waveforms . It would be great if one or more volunteers can test it on linux (both the development environment and as a linux audio host).

?

Volunteers please contact me direct. All feedback welcome.

?

Rgds,

Dave Mugridge M0JTS

?

?

?

?


 

Great. I will try to get some time next week to look at it. I am currently working on re-staining all the outside wood on the house but will need a break!

-- John G0ORX

On Sat, 3 Aug 2024, 15:42 david mugridge via , <dave=[email protected]> wrote:
Excellent! I was hoping you'd volunteer, given your clear expertise and linux background too.? I'm polishing some bits of documentation off and hope to have something for you tomorrow.

On Sat, 3 Aug 2024 at 15:36, John Melton via <john.d.melton=[email protected]> wrote:
Hi Dave,

I would be interested as I have tried the USB audio and ran into the same problems?

Would work well with my CAT code that I have tested with WSJT-X.

-- John G0ORX?

On Sat, 3 Aug 2024, 15:33 david mugridge via , <dave=[email protected]> wrote:

I’m interested in digital modes and want to use the T41's usb interface for audio. However the standard Audio Library only supports usb-audio for the default 44,100 Hz sample rate. Unfortunately since the T41 code increases the sample rate to 192kHz (via the call to SetI2SFreq()) this breaks the usb-audio - any audio received or transmitted at this sample rate is severely distorted.


I’ve been working on source-code changes to the Audio Library (7x Teensyduino source files changed), and now have 192kHz usb-audio working on my Windows pc. With quick hacks to the T41 code I have also confirmed that the radio works for both receive and transmit with wsjt-x. (the T41 code would need extra work to integrate usb-audio properly, including CAT support).

?

The patch requires Teensyduino Version 1.59 and either Arduino 1.8.19 or Arduino 2.3.2.


I’m wondering whether there is sufficient interest in my Audio Library patch, and if so, whether a small number of “beta tester” volunteers would be willing to further test it before I make the patch and installation instructions generally available. Ideally the volunteers would have good programming and fault diagnosis skills (in case things go wrong), a Teensy 4.1 with an Audio Shield fitted, and an oscilloscope to confirm the correct waveforms . It would be great if one or more volunteers can test it on linux (both the development environment and as a linux audio host).

?

Volunteers please contact me direct. All feedback welcome.

?

Rgds,

Dave Mugridge M0JTS

?

?

?

?


 

Does it have to be precisely 44.1 ksps?? I've seen that some of the classes in the Open Audio Library will also work at 48 ksps.
I have successfully operated the receiver at 48 ksps.? I had to do that as the CESSB class runs at 48 ksps (or apparently at 44.1 ksps),
and the receiver has to also work at 48 ksps during calibration.? The adjustments to go back and forth between 48 and 192 ksps for the receiver are not much.
Now I haven't done anything other than simple tones, so perhaps I didn't get everything exactly correct.? But the original Teensy Convolution SDR
is capable of numerous sample rates, including 44.1 and 48 ksps and I tried to imitate that as much as possible.
The spectral display will be restricted to 4X Zoom of course, but digital modes should work in that restricted bandwidth.
I am working on a transmitter chain which will work at 48 ksps rate for use with digital modes (no compressor or other processing).? CESSB is not recommend for digital modes.
Now if there is some restriction which forces 44.1 ksps, that could be possible, but it is not a nice integer division of 192 ksps, and thus more work would have to be done.
?
--
73 Greg KF5N


 

Greg,
?
I'm only talking about (lifting) the restriction on usb-audio, where the Teensyduino Library only supports precisely 44.1kHz sampling rate. It's hardwired into the usb descriptors and usb-comms between the host and peripheral. If you don't use usb-audio then you have a lot more flexibility with setting the sampling rate.
?
The Open Audio Library doesn't touch the internals of the core usb interface; it only "wraps" the existing Teensyduino usb interface to translate between F32 and I16 representations. The same restriction on 44.1kHz usb audio therefore still applies.
?
Dave M0JTS
?


 

Oh, that's too bad it is that restrictive.? I will add an experiment to my list for the future to try to run the receiver at 44.1 ksps.? I think there may be some extra work due to the display graphics, which will not be fun.
?
--
73 Greg KF5N


 

I was wondering about using the USB interface on the T41 as a "sound card" interface.? Then you could plug the T41SDT into your computer and run GNU radio.? Now I know the whole idea behind the T41EP software is a 'stand alone' radio that doesn't need a PC. However, it might be interesting to run it the other way as well. If in the future the hardware could be upgraded to faster ADC's in the receiver side (394khz sampling rate or higher) you would be able to see a wider slice of spectrum in the FFT display running under GNU radio.? A poor man's Flex radio?


 

By no means ready, but I have been playing with using the ethernet interface to stream I/Q data.

I have a lot of experience with the HPSDR protocols so that is what I am emulating.

-- John G0ORX?

On Sat, 3 Aug 2024, 19:16 ken WA2MZE via , <wa2mze=[email protected]> wrote:
I was wondering about using the USB interface on the T41 as a "sound
card" interface.? Then you could plug the T41SDT into your computer and
run GNU radio.? Now I know the whole idea behind the T41EP software is a
'stand alone' radio that doesn't need a PC. However, it might be
interesting to run it the other way as well. If in the future the
hardware could be upgraded to faster ADC's in the receiver side (394khz
sampling rate or higher) you would be able to see a wider slice of
spectrum in the FFT display running under GNU radio.? A poor man's Flex
radio?









 

Hi Ken, I've done that with an SDRPlay.? I was able to get several MHz of bandwidth and demodulate using GNU Radio.

--
73 Greg KF5N


 

Again, I'm really bad at EE topics, but in all fairness, Al designed the T41 ADC processing 5 years ago and COVID was just starting to rear its ugly head. At that time, some high performance ADCs were almost $60 each, which seems out of reach at the time. Today, ADCs with 500ksps are around $15. My guess is that it would be doable now without breaking the bank.

Jack, W8TEE

On Saturday, August 3, 2024 at 02:16:19 PM EDT, ken WA2MZE <wa2mze@...> wrote:


I was wondering about using the USB interface on the T41 as a "sound
card" interface.? Then you could plug the T41SDT into your computer and
run GNU radio.? Now I know the whole idea behind the T41EP software is a
'stand alone' radio that doesn't need a PC. However, it might be
interesting to run it the other way as well. If in the future the
hardware could be upgraded to faster ADC's in the receiver side (394khz
sampling rate or higher) you would be able to see a wider slice of
spectrum in the FFT display running under GNU radio.? A poor man's Flex
radio?









--
Jack, W8TEE


 

开云体育

What version of code are you modifying?


Dr.?William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ

?

Owner - Operator

Big Signal Ranch – K9ZC

Staunton, Illinois

?

Owner – Operator

Villa Grand Piton - J68HZ

Soufriere, St. Lucia W.I.

Rent it: www.VillaGrandPiton.com


email:??bill@...

?


On Aug 3, 2024, at 10:33?AM, david mugridge <dave@...> wrote:

?

I’m interested in digital modes and want to use the T41's usb interface for audio. However the standard Audio Library only supports usb-audio for the default 44,100 Hz sample rate. Unfortunately since the T41 code increases the sample rate to 192kHz (via the call to SetI2SFreq()) this breaks the usb-audio - any audio received or transmitted at this sample rate is severely distorted.


I’ve been working on source-code changes to the Audio Library (7x Teensyduino source files changed), and now have 192kHz usb-audio working on my Windows pc. With quick hacks to the T41 code I have also confirmed that the radio works for both receive and transmit with wsjt-x. (the T41 code would need extra work to integrate usb-audio properly, including CAT support).

?

The patch requires Teensyduino Version 1.59 and either Arduino 1.8.19 or Arduino 2.3.2.


I’m wondering whether there is sufficient interest in my Audio Library patch, and if so, whether a small number of “beta tester” volunteers would be willing to further test it before I make the patch and installation instructions generally available. Ideally the volunteers would have good programming and fault diagnosis skills (in case things go wrong), a Teensy 4.1 with an Audio Shield fitted, and an oscilloscope to confirm the correct waveforms . It would be great if one or more volunteers can test it on linux (both the development environment and as a linux audio host).

?

Volunteers please contact me direct. All feedback welcome.

?

Rgds,

Dave Mugridge M0JTS

?

?

?

?


 

开云体育

I looked at this myself. ?I dont think it makes sense to run the complete radio that way… rather you would take the I/Q input and outputs from the RF board straight into the appropriate audio card in the computer, and then use [your fav SDT program here] to direct the audio card in the computer as its interface while using USB cat control to run the radio functions (set mode, frequency, t/r, etc). That actually works today just plugging cables in different places. ?

Bice versa… if you have another SDT/ SDR that you want to use with the T41?main/display/ demod/mod.. you can do that too with a small bot of work.?


Dr.?William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ

?

Owner - Operator

Big Signal Ranch – K9ZC

Staunton, Illinois

?

Owner – Operator

Villa Grand Piton - J68HZ

Soufriere, St. Lucia W.I.

Rent it: www.VillaGrandPiton.com


email:??bill@...

?


On Aug 3, 2024, at 2:16?PM, ken WA2MZE <wa2mze@...> wrote:

?I was wondering about using the USB interface on the T41 as a "sound card" interface.? Then you could plug the T41SDT into your computer and run GNU radio.? Now I know the whole idea behind the T41EP software is a 'stand alone' radio that doesn't need a PC. However, it might be interesting to run it the other way as well. If in the future the hardware could be upgraded to faster ADC's in the receiver side (394khz sampling rate or higher) you would be able to see a wider slice of spectrum in the FFT display running under GNU radio.? A poor man's Flex radio?









 

I've successfully used WSJT-X with Windows 11 with the T41 passing audio over USB along with control signals.? I patched the 192 kHz sampled audio to an AudioOutputUSB and it is transferred to the PC without distortion.? Other than having to pass the audio through an AudioAmplifier object first, no other audio code changes were needed.


 

开云体育

Next main board revision…


Dr.?William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ

?

Owner - Operator

Big Signal Ranch – K9ZC

Staunton, Illinois

?

Owner – Operator

Villa Grand Piton - J68HZ

Soufriere, St. Lucia W.I.

Rent it: www.VillaGrandPiton.com


email:??bill@...

?


On Aug 3, 2024, at 3:14?PM, jjpurdum via groups.io <jjpurdum@...> wrote:

?
Again, I'm really bad at EE topics, but in all fairness, Al designed the T41 ADC processing 5 years ago and COVID was just starting to rear its ugly head. At that time, some high performance ADCs were almost $60 each, which seems out of reach at the time. Today, ADCs with 500ksps are around $15. My guess is that it would be doable now without breaking the bank.

Jack, W8TEE

On Saturday, August 3, 2024 at 02:16:19 PM EDT, ken WA2MZE <wa2mze@...> wrote:


I was wondering about using the USB interface on the T41 as a "sound
card" interface.? Then you could plug the T41SDT into your computer and
run GNU radio.? Now I know the whole idea behind the T41EP software is a
'stand alone' radio that doesn't need a PC. However, it might be
interesting to run it the other way as well. If in the future the
hardware could be upgraded to faster ADC's in the receiver side (394khz
sampling rate or higher) you would be able to see a wider slice of
spectrum in the FFT display running under GNU radio.? A poor man's Flex
radio?









--
Jack, W8TEE


 

On 2024-08-03 15:43, K9HZ wrote:
I looked at this myself. I dont think it makes sense to run the
complete radio that way…
*** I once tried operating with my KWM-2 using USB audio. Well, I had this
gadget with a Teensy that massaged the outgoing audio. I was working on the Teensy program, and discovered that the USB supported audio transfer into a software PC device.

I discovered that I could NOT send CW with this setup, because there was too much
delay in the USB audio.

I suspect there will be a similar delay in I/Q input.

- Jerry, KF6VB


 

Bill,
?
>> What version of code are you modifying?
?
I'm modifying Teensyduino V1.59, and modified a few files in the <core> section (). I've tested it on Windows Arduino 1.8.19 (portable mode) and Windows Arduino 2.3.2.
?
Dave M0JTS
?


 

开云体育

But are you working with a V11 system or a V12 system?

?

?

Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ VP2EHZ

?

Owner - Operator

Big Signal Ranch – K9ZC

Staunton, Illinois

?

Owner – Operator

Villa Grand Piton – J68HZ

Soufriere, St. Lucia W.I.

Rent it:

?

Moderator: North American QRO Group at Groups.IO.

Moderator: Amateur Radio Builders Group at Groups.IO.

?

email:? bill@...

?

?

From: [email protected] <[email protected]> On Behalf Of david mugridge
Sent: Sunday, August 4, 2024 3:31 AM
To: [email protected]
Subject: Re: [SoftwareControlledHamRadio] 192kHz usb audio patch for Teensyduino - testers?

?

Bill,

?

>> What version of code are you modifying?

?

I'm modifying Teensyduino V1.59, and modified a few files in the <core> section (). I've tested it on Windows Arduino 1.8.19 (portable mode) and Windows Arduino 2.3.2.

?

Dave M0JTS

?


 

The Audio Library patch is completely independent of the T41 hardware and software versions. The patch just provides the capability; the?T41 software would then need to be enhanced to use this new capability.

-Dave


On Sun, 4 Aug 2024 at 13:38, K9HZ <bill@...> wrote:

But are you working with a V11 system or a V12 system?

?

?

Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ VP2EHZ

?


 

开云体育

“the?T41 software would then need to be enhanced to use this new capability.”

?

My very reason for asking.

?

?

?

Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ VP2EHZ

?

Owner - Operator

Big Signal Ranch – K9ZC

Staunton, Illinois

?

Owner – Operator

Villa Grand Piton – J68HZ

Soufriere, St. Lucia W.I.

Rent it:

?

Moderator: North American QRO Group at Groups.IO.

Moderator: Amateur Radio Builders Group at Groups.IO.

?

email:? bill@...

?

?

From: [email protected] <[email protected]> On Behalf Of david mugridge
Sent: Sunday, August 4, 2024 7:55 AM
To: [email protected]
Subject: Re: [SoftwareControlledHamRadio] 192kHz usb audio patch for Teensyduino - testers?

?

The Audio Library patch is completely independent of the T41 hardware and software versions. The patch just provides the capability; the?T41 software would then need to be enhanced to use this new capability.

?

-Dave

?

On Sun, 4 Aug 2024 at 13:38, K9HZ <bill@...> wrote:

But are you working with a V11 system or a V12 system?

?

?

Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ VP2EHZ

?