{"id":163,"date":"2017-06-10T14:49:18","date_gmt":"2017-06-10T14:49:18","guid":{"rendered":"https:\/\/geekblog.febo.com\/wp\/?p=163"},"modified":"2017-06-10T15:45:47","modified_gmt":"2017-06-10T15:45:47","slug":"20-p25-trunking-scanner-part-3","status":"publish","type":"post","link":"https:\/\/blog.febo.com\/?p=163","title":{"rendered":"$20 P25 Trunking Scanner (Part 3)"},"content":{"rendered":"<p><P><br \/>\n<I>The info in this and in part 4 was aided tremendously by several folks on the &#8220;op25-dev&#8221; mailing list.  Without their help, I would not have even known where to start in getting my system running.  I hope that what I&#8217;m documenting here will be helpful for others going down this path.<\/I><br \/>\n<P><br \/>\nIf you&#8217;ve successfully installed Linux, Gnuradio, and op25 on your computer, you are ready to test the system, and then configure it for trunking.<\/p>\n<p>The scanner application is buried several directories down, and you need to change to that directory and run the program there.  So do this:<\/p>\n<p><code><br \/>\ncd ~\/op25\/op25\/gr-op25_repeater\/apps<br \/>\n<\/code><\/p>\n<p>In that directory, you&#8217;ll find the main program, <code>scope.py<\/code>, and several configuration files with <code>.tsv<\/code> suffixes &#8212; most are examples for specific systems.<\/p>\n<p>Assuming you&#8217;re using a RTL dongle, plug that puppy in to your USB port and then issue this command:<\/p>\n<p><code><br \/>\n.\/scope.py --args 'rtl' -f 853.600e6 -g 65 -o 17e3 -N 'LNA:35' -V -v 0 -S 250000 -q '-1'<br \/>\n<\/code><\/p>\n<p>Change the value following the <code>-f<\/code> to the control channel frequency of the P25 site.  (The <code>e6<\/code> is scientific notiation and indicates to multiply the value by one million.)<\/p>\n<p>If all is well, you&#8217;ll see a box open on your screen showing a spectrum display, with tabs to several other displays as well.<\/p>\n<p>What does the gibberish in the command line mean?  <\/p>\n<p><code>--args 'rtl'<\/code> indicates that you&#8217;re using a RTL dongle receiver.<\/p>\n<p><code>-f 853.600e6<\/code> indicates the frequency to monitor.  853.600 MHz is the primary control panel for the Mongtomery County, Ohio P25 site.<\/p>\n<p><code>-g 65<\/code> sets the audio gain; I&#8217;m not sure just what effect it has. <\/p>\n<p><code>-o 17e3<\/code> sets a tuning offset &#8212; it&#8217;s a little like a local oscillator, and it avoids system-generated noise that appears at the center of the RF tuning.  Here, I am moving the channel frequency 17 kHz from the tuned frequency.<\/p>\n<p><code>-N 'LNA:35'<\/code> sets the RTL gain.<\/p>\n<p><code>-V<\/code> turns on the audio vocoder so you can hear the traffic.<\/p>\n<p><code>-v 0<\/code> sets the verbosity of the console logging.  Set to 255 to see everything.<\/p>\n<p><code>-S 250000<\/code> sets the sample rate.  We only need to receive one NBFM channel at a time, so setting this to a small number reduces unnecessary CPU load.  250000 samples\/second is the slowest rate the RTL-SDR.com dongle supports.<\/p>\n<p><code>-q -1<\/code> adjusts for any frequency error in the dongle.  Mine is pretty close, so I only need to adjust down by 1 PPM.<\/p>\n<p>When you run this command, you should see the program open a window showing a spectrum display tab with the control frequency just about centered.  If you click on the &#8220;traffic&#8221; tab you should see site information at the top, and then individual commands coming from the system controller.<\/p>\n<p>If you&#8217;ve gotten this far, the system works.  All you need to do now is set up the scanning\/trunking capability.  That&#8217;s in <A HREF=https:\/\/blog.febo.com\/?p=165\">part 4<\/A>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The info in this and in part 4 was aided tremendously by several folks on the &#8220;op25-dev&#8221; mailing list. Without their help, I would not have even known where to&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","ngg_post_thumbnail":0,"footnotes":""},"categories":[9],"tags":[13,15,14,12],"class_list":["post-163","post","type-post","status-publish","format-standard","hentry","category-sdr","tag-gnuradio","tag-p25","tag-scanning","tag-sdr"],"_links":{"self":[{"href":"https:\/\/blog.febo.com\/index.php?rest_route=\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.febo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.febo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.febo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.febo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=163"}],"version-history":[{"count":6,"href":"https:\/\/blog.febo.com\/index.php?rest_route=\/wp\/v2\/posts\/163\/revisions"}],"predecessor-version":[{"id":176,"href":"https:\/\/blog.febo.com\/index.php?rest_route=\/wp\/v2\/posts\/163\/revisions\/176"}],"wp:attachment":[{"href":"https:\/\/blog.febo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.febo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.febo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}