Keyboard Shortcuts
Likes
Search
Periodic audio device statistics
I am attempting to set up a Raspberry Pi 3 as a receive only igate. I am using a Syba USB sound card. It indicates CMedia CM119 on the package. Direwolf will not decode packets. I have tried putting an isolation transformer and also a capacitor to block the 5 volts at the sound card input, but it did not help. I won't bother you right now with all the details of why, but I suspect the input audio is not making it to the Direwolf program.
I have tried setting up periodic audio device statistics using "-a 10" but the statistics never show up. Not sure what I am doing wrong or exactly how to do this. Isn't it just added to the end of the command when you start Direwolf? I am running version 1.3 and the release notes indicate this is an option in that version. It would be helpful to know if audio is routed into the application and what level it is. I suspect the fact that these reports do not show up may be related to the audio not making it to the program. I am fairly computer literate, but certainly not a Linux expert (and hope not to become one). Thanks |
¿ªÔÆÌåÓýAre you trying to use pulseaudio or? What is the soundcard ## ... hint alsamixer in terminal
you dont need to be an expert .... your not running 300mph on a track .... but you do need to learn how to drive. From: direwolf_packet@... on behalf of occupant@... [direwolf_packet]
Sent: Tuesday, January 31, 2017 7:19 PM To: direwolf_packet@... Subject: [direwolf_packet] Periodic audio device statistics ?
?
I am attempting to set up a Raspberry Pi 3 as a receive only igate. I am using a Syba USB sound card. It indicates CMedia CM119 on the package. Direwolf will not decode packets. I have tried putting an isolation transformer and also a capacitor to block
the 5 volts at the sound card input, but it did not help. I won't bother you right now with all the details of why, but I suspect the input audio is not making it to the Direwolf program.
|
David Ranch
A good step #1 would be to try to record the audio from your Rpi and see if you can play the audio back though a connected pair of headphones, etc. Though more command line centric, you can follow these steps to troubleshoot your setup:
toggle quoted message
Show quoted text
--David On January 31, 2017 7:19:34 PM PST, "occupant@... [direwolf_packet]" wrote: ? |
I really didn't want to write up all the things I have tried in the last two weeks. Nor did I want to force you to read all of it.
I've been trying to follow what was done in the document at the link below... I purchased one of the sound cards recommended in the pdf. As I said, I'm no Linux expert. I did execute the commands in the document to remove Pulse, but I wouldn't know how to confirm it was successfully removed. I have a degree in electronics and over 30 years of experience in the business so you can get technical about electronics. For things specific to Linux I will need detailed help. |
Okay...tried the recording and nothing on it. I had tried this before with the same results. I sent the wav file to my PC and it was silent. Other wav files play fine on my PC.
Is it for sure that if there is nothing on the wav file, Direwolf is not hearing input on the sound card. Also, is the inverse true? If there is audio on the wav file, can you be certain Direwolf is getting the audio? This is why I wanted to get the periodic device statistics. Do you have any idea why they do not work? Could I be typing the command incorrectly? At the wrong place? Exactly how do you enable the statistics? "direwolf -a 10"? Could the statistics not be working because I don't have the Direwolf configuration file correct? |
David Ranch
¿ªÔÆÌåÓýHello ? I would argue that it's 99% for sure that if you can't record the audio coming in from the USB soundcard's microphone jack, something is wrong.? I would not worry about Direwolf until you can get it to record the open squelch noise from your RX radio or some other audio source.? Please also note that it's important that you add a decoupling capacitor from the USB soundcard's microphone port to your radio's audio output.? There is a multi-volt BIAS voltage coming from the USB device that can harm your radio if it doesn't have any decoupling circuitry itself.
Please tell us about your setup: ?? - Radio you're using ? ? ? - Are you using PTT or VOX ?? - Specific USB sound card you're using ???? - How is it connected?? Direct to the Raspberry Pi (recommended), connected behind a USB hub (not recommended) ?? - Paste in the configuration of your direwolf.conf file
Yes, that would cause it.? Please read the documentation and complete all of the recommended settings before emailing the list asking why it doesn't work. --David KI6ZHD |
David,
I was finally able to see what you said by clicking "view source". I have spent a lot of time on this and have read the documentation...over and over and over again. I have read many other threads. I've tried many things. I've exhaustively done my homework. I know how forums work. I wouldn't bother you but I don't know where else to look for an answer anymore. I'm here because I am desperate. I have answered most of your questions previously in this thread. It seems like I'm just chasing my tail here. Not that I don't appreciate the help, the forum (Yahoo) just doesn't seem to be very efficient. I really don't feel like typing everything over again just to add more clutter to this thread...but here goes... 1. I am setting up a receive-only igate. No transmit. 2. I am using a Syba USB sound card. It indicates CMedia CM119 on the package. This sound card is recommended in the document I list here in #5. 3. I have tried putting an isolation transformer and also a capacitor to block the 5 volts at the sound card input, but it did not help. 4.? I am running version 1.3 5. I've been following what has been done before in the document at this link... 6. Pulse audio should have been removed when I followed the above document. I wouldn't know how to confirm that. 7. I'm using a radio shack scanner that performed perfectly as a receive only igate on my laptop PC for months. 8. As warned about in the document, I am not using a USB hub. 9. When I put audio into the microphone jack on the sound card (using either a microphone or my scanner), it comes out the speaker jack of the sound card and it sounds very good. I can vary the volume levels using the mixer in Linux so the card is communicating with Linux on some level. 10. When I type "arecord -l", it lists my C-Media card as "card 1". 11. I have attached my configuration file and the text copied from the Direwolf terminal when I start the program. One thing that is suspicious to me is that the Direwolf terminal shows "stdin" rather than my sound card as "device for receive". Again, thanks for your help. Randy |
I loaded the Gnome ALSA mixer on my Pi, as I'm more comfortable with a GUI. Some of the input sliders have a check box marked "Rec." (Record). Perhaps that is cause of your issue. ? Patrick (N3TSZ) From: "k9wkj@... [direwolf_packet]" To: direwolf_packet@... Sent: Sunday, February 5, 2017 10:31 AM Subject: Re: [direwolf_packet] Re: Periodic audio device statistics
?
ive seen Davids messages like that many times, i thought he was just being friendly :) and have seen others pop up that way as well
|
Great news. It's working!
I installed the Gnome Alsa Mixer as suggested by Patrick. I had to check the "Record" box and the audio level jumped up. I adjusted the audio level (was way too high) and it is now decoding. There must be a way to change this setting from the command line? Maybe the documentation should include this. Thanks very much to Patrick and David. I doubt I would have got it going on my own. I've been working on this for weeks, the bulk of the things I've tried (and didn't work) are not in this thread. I'll restate how I corrected the original problem I posted of the Periodic Audio Statistics not showing in the terminal... In my configuration file I had "ADEVICE - plughw:1,0". Once I removed the dash, as suggested by David, the statistics started showing. Also this changed the what Direwolf showed as my device for receive when it is started. Thanks again to everybody for the help. 73, Randy KC0CAU |