<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Stephen I’m looking to make a rtl sdr the nodes radio receiver. Right now I haven’t found a device that works with asterisk that let’s me specify a device for input and a device for output. The chan_alsa is suppose to do that and when I enable it I get no audio at all. My pipe command works when I output it to the usb fob, the radio keys up because the PTT is high and not under control of asterisk to keep it low so it transmits the audio coming from the rtlsdr. If I key up another radio on the frequency I’m set to I hear it. But that’s just a test because my aplay command can’t be in control of the usb audio fob and asterisk so I’m trying to use the alsa audio loopback so I can pipe the audio to one end of the loop back and then tell asterisk /usbaudio to use the other end of the loopback as audio input. It’s really pretty easy straight forward and kinda trivial in other alsa environments and it seems like asterisk can do it. Maybe I’m missing something in this Doug Crompton build I’m using. <div><br></div><div>Joe</div><div>KD2NFC </div><div><div><div><div><div><br><div id="AppleMailSignature">Sent from my iPad</div><div><br>On May 22, 2018, at 1:40 PM, Stephen - K1LNX <<a href="mailto:k1lnx@k1lnx.net">k1lnx@k1lnx.net</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Are you trying to send RX audio to the simpleusb channel driver? You could always "force" the RPT_RXKEYED variable by issuing rpt setvar nodenumber RPT_RXKEYED=1 at the CLI to pipe audio through without having anything connected. I've done this for testing purposes to assert COS and works as intended. Not sure how you would be able to automate it however, maybe something in cron at boot? <div><br></div><div>Just thinking out loud... I too am interested in the progress of this as I've been wanting to mess with chan_alsa for a while, but never got started with it. </div><div><br></div><div>73</div><div>Stephen</div><div>K1LNX</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 22, 2018 at 1:27 PM, Steven Blackford <span dir="ltr"><<a href="mailto:kb7sqi@gmail.com" target="_blank">kb7sqi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="#954F72"><div class="m_-6781545329253769187WordSection1"><p class="MsoNormal">Have you tried using the chan_usrp module? It’s designed to work with GNU Radio. I use it for bridging, but I’ve never tested it for this particular instance. I’m reading with interest. <span style="font-family:"Segoe UI Emoji",sans-serif">😊</span> 73 de K4SQI!</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Steve, K4SQI</p><p class="MsoNormal"><u></u> <u></u></p><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:kd2nfc@gmail.com" target="_blank">KD2NFC, Joe Puma</a><br><b>Sent: </b>Tuesday, May 22, 2018 1:23 PM<br><b>To: </b><a href="mailto:app_rpt-users@lists.allstarlink.org" target="_blank">Users of Asterisk app_rpt</a><br><b>Subject: </b>Re: [App_rpt-users] RTL_SDR for receive</p></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’m using a image. Not 100% sure where I got it. Might be David’s. I can post the config. What do want to see?<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Yes the rtl_rm and aplay pipe will play on default sound device. The -D in aplay command portion of the command specifies your sound device. Looks like the command I pasted had a double of the aplay command. It should read: <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal"><span style="color:black">rtl_fm -M USB -f 446.160M -A fast -s 12K -p -0 -g 0.0 | aplay -r 12k -t raw<br><br></span><u></u><u></u></p></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal"><span style="color:black">-D default:CARD=Loopback -c 1 -f S16_LE</span><u></u><u></u></p></blockquote></blockquote><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I use to use this with wsjtx and the rtl-SDR for receive only and it piped the audio right into the program. <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">The thing I need to accomplish is allow asterisk to use the usb fob for audio out and make use of the PTT and then allow input from another hardware device. I read that the only way to do it is using usbaudio driver for radio and adding a Alsa.conf file pointing to the input and output device you want to use. <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">When I enable the chan_alsa.so and reboot, the radio keys up because the PTT is high from the usb audio activating but no audio comes from asterisk. It’s certainly not behaving the way should using when using chan_alsa.so by looking in the alsa.conf file and finding its audio in and out devices. <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Wondering how the usbaudio.so find it’s device. Does it assume the usb audio is card 0, or the default audio. What if you had two audio fobs on the system and you wanted to specify a specific one?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">TBC.....<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Joe<u></u><u></u></p></div><div><p class="MsoNormal">Kd2nfc<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p><div id="m_-6781545329253769187AppleMailSignature"><p class="MsoNormal">Sent from my iPad<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>On May 22, 2018, at 3:44 AM, Bryan Fields <<a href="mailto:Bryan@bryanfields.net" target="_blank">Bryan@bryanfields.net</a>> wrote:<u></u><u></u></p></div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><p class="MsoNormal">On 5/22/18 3:29 AM, KD2NFC - Joe wrote:<br><br><u></u><u></u></p><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">I was trying to use a rtl-sdr to pipe a receive signal into the input or<u></u><u></u></p></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">receive audio for asterisk instead of using the mic in on the usb audio fob.<u></u><u></u></p></blockquote><p class="MsoNormal"><br>I've always done this using a usbradio or simpleusb based input, never using<br>the chan_alsa. I don't believe alsa works for radio interfaces as there is no<br>signaling for PTT/COR/PL/etc.<br><br><br><u></u><u></u></p><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">Heres what I got so far. I can get a rtl-sdr installed in the Arch Linux by<u></u><u></u></p></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">using pacman -s rtl-sdr. <u></u><u></u></p></blockquote><p class="MsoNormal"><br>If you're running arch you compiled allstarlink from source, so can you post<br>your config output?<br><br><br><u></u><u></u></p><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">Then if you run this command, it will pipe a FM 12Khz bandwidth centered on<u></u><u></u></p></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">446.160 mhz and pipe it to the loopback device which is the device name of<u></u><u></u></p></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">the loopback.<u></u><u></u></p></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal"><u></u> <u></u></p></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">rtl_fm -M USB -f 446.160M -A fast -s 12K -p -0 -g 0.0 | aplay -r 12k -t raw<u></u><u></u></p></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">-D default:CARD=Loopback -c 1 -f S16_LEaplay -r 12k -t raw -c 1 -f S16_LE<u></u><u></u></p></blockquote><p class="MsoNormal"><br>Does this work if you just output to the local speakers?<br><br><br><u></u><u></u></p><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">in modules.conf I enabled chan_alsa.so and after reboot with chan_alsa.so<u></u><u></u></p></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">loaded I get no audio at all. My radio keys up at bootup but I get no<u></u><u></u></p></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">initial greeting, no audio is coming through. Now I wasn't expecting this to<u></u><u></u></p></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">work of the top, I still need to figure out how the node is going to get cos<u></u><u></u></p></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">from the rtl-sdr, I could try to use ctcss but can anyone help me connect<u></u><u></u></p></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal">the dots on this with what I have so far. <u></u><u></u></p></blockquote></div></blockquote></div></div><p class="MsoNormal" style="margin-right:.5in;margin-bottom:5.0pt;margin-left:.5in"><br>I don't think you'll have the signaling here to make this work. You might be<br>able to loop this into the DSP functions of USBradio, but it's going to need<br>some code to glue it together.<br><br>This sounds like a cool project, but GNUradio isn't the easiest to work with :)<br><br>73's<br>-- <br>Bryan Fields<br><br>727-409-1194 - Voice<br><a href="http://bryanfields.net" target="_blank">http://bryanfields.net</a><br>______________________________<wbr>_________________<br>App_rpt-users mailing list<br><a href="mailto:App_rpt-users@lists.allstarlink.org" target="_blank">App_rpt-users@lists.<wbr>allstarlink.org</a><br><a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://lists.allstarlink.org/<wbr>cgi-bin/mailman/listinfo/app_<wbr>rpt-users</a><br><br>To unsubscribe from this list please visit <a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://lists.allstarlink.org/<wbr>cgi-bin/mailman/listinfo/app_<wbr>rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"<br>You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div><br>______________________________<wbr>_________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@lists.allstarlink.org">App_rpt-users@lists.<wbr>allstarlink.org</a><br>
<a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.org/<wbr>cgi-bin/mailman/listinfo/app_<wbr>rpt-users</a><br>
<br>
To unsubscribe from this list please visit <a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.org/<wbr>cgi-bin/mailman/listinfo/app_<wbr>rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"<br>
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. <br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>App_rpt-users mailing list</span><br><span><a href="mailto:App_rpt-users@lists.allstarlink.org">App_rpt-users@lists.allstarlink.org</a></span><br><span><a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users">http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users</a></span><br><span></span><br><span>To unsubscribe from this list please visit <a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users">http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"</span><br><span>You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. </span></div></blockquote></div></div></div></div></div></body></html>