{"id":63,"date":"2023-09-26T16:54:50","date_gmt":"2023-09-26T16:54:50","guid":{"rendered":"https:\/\/g1lro.uk\/?p=63"},"modified":"2024-02-14T16:42:51","modified_gmt":"2024-02-14T16:42:51","slug":"digipi-and-the-universal-radio-controller-part-1","status":"publish","type":"post","link":"https:\/\/g1lro.uk\/?p=63","title":{"rendered":"DigiPi and the Universal Radio Controller &#8211; Part 1"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"952\" height=\"1024\" src=\"https:\/\/g1lro.uk\/wp-content\/uploads\/2023\/09\/digipi-952x1024.jpg\" alt=\"\" class=\"wp-image-64\" srcset=\"https:\/\/g1lro.uk\/wp-content\/uploads\/2023\/09\/digipi-952x1024.jpg 952w, https:\/\/g1lro.uk\/wp-content\/uploads\/2023\/09\/digipi-279x300.jpg 279w, https:\/\/g1lro.uk\/wp-content\/uploads\/2023\/09\/digipi-768x826.jpg 768w, https:\/\/g1lro.uk\/wp-content\/uploads\/2023\/09\/digipi.jpg 1080w\" sizes=\"auto, (max-width: 952px) 100vw, 952px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m a big fan (and Patreon) of the KM6LYW Radio DigiPi Project <a href=\"https:\/\/digipi.org\/\">digipi.org<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DigiPi contains a comprehensive suite of digital utilities and applications for ham radio. Several of the utilities use the DireWolf AX.25 packet modem\/TNC and APRS encoder\/decoder.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To help users of DigiPi and the URC (and AIOC) I&#8217;ve worked though the configuration elements needed to adapt the DigiPi software for compatibility.<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">THIS SCRIPT IS FOR DIGIPI V1.8 OR LATER<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Part 1:<\/strong> <strong>Packet and APRS utilities <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For the utilities that use Packet\/APRS I have developed a script to append the required configuration parameters for the Universal Radio Controller and the AIOC card.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ll add the script code in full further down, but for those desperate to get it and run it, then here&#8217;s the process:<\/p>\n\n\n\n<ul class=\"wp-block-list\" start=\"2\">\n<li>Open the Shell command on the menu area at the bottom of the list<br>Login with the pi\/raspberry default credentials if this is not changed<\/li>\n\n\n\n<li>When you get to the prompt: <strong>pi@digipi:~ $<\/strong><\/li>\n\n\n\n<li>Enter (cut &amp; paste) these 4 lines, press enter after each<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-tertiary-background-color has-background\"><code>sudo mount -o remount,rw \/\nrm urc-aioc.sh\nwget www.g1lro.uk\/urc-aioc.sh \nchmod +x urc-aioc.sh\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then run this command at the prompt:<\/p>\n\n\n\n<pre class=\"wp-block-code has-tertiary-background-color has-background\"><code>.\/urc-aioc.sh\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The program will run and importantly give the information about the Serial Port identity that will be needed later:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You should see this output:<\/p>\n\n\n\n<pre class=\"wp-block-code has-tertiary-background-color has-background\"><code>Config files updated for AIOC processor\nReboot DigiPi to write-protect the SD card\n.\n.\nSerial port information for the applications:\n\/dev\/ttyACM1\n.\n.\n.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Note the ttyACM information, you&#8217;ll need this later in Part 2. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For now you should be able to use these DigiPi applications on the URC and AIOC.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"507\" height=\"309\" src=\"https:\/\/g1lro.uk\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-26-170700.png\" alt=\"\" class=\"wp-image-65\" srcset=\"https:\/\/g1lro.uk\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-26-170700.png 507w, https:\/\/g1lro.uk\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-26-170700-300x183.png 300w\" sizes=\"auto, (max-width: 507px) 100vw, 507px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;ll cover the other applications in Part 2<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The script.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The script that&#8217;s hosted on this site is pretty simple. It does 4 things:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Sets the filesystem for read and write (DigiPI has a write protected file system for increased robustness)<\/li>\n\n\n\n<li>Resolves the device name for the serial port (ttyACM device)<\/li>\n\n\n\n<li>Appends three lines to each DireWolf config file to use the URC\/AIOC sound card and relevant PTT port<\/li>\n\n\n\n<li>It reports the serial port device to the user for use in configuring other applications<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the script as-is without the comments:<\/p>\n\n\n\n<pre class=\"wp-block-code has-tertiary-background-color has-background\"><code>sudo mount -o remount,rw \/\nport=$(ls \/dev\/ttyACM*)\n\necho -e \"ADEVICE plughw:0,0\\nPTT $port -RTS DTR\\nARATE 48000\" >> \"direwolf.digipeater.conf\"\necho -e \"ADEVICE plughw:0,0\\nPTT $port -RTS DTR\\nARATE 48000\" >> \"direwolf.node.conf\"\necho -e \"ADEVICE plughw:0,0\\nPTT $port -RTS DTR\\nARATE 48000\" >> \"direwolf.tnc.conf\"\necho -e \"ADEVICE plughw:0,0\\nPTT $port -RTS DTR\\nARATE 48000\" >> \"direwolf.tnc300b.usb.conf\"\necho -e \"ADEVICE plughw:0,0\\nPTT $port -RTS DTR\\nARATE 48000\" >> \"direwolf.tnc.usb.conf\"\necho -e \"ADEVICE plughw:0,0\\nPTT $port -RTS DTR\\nARATE 48000\" >> \"direwolf.winlink.usb.conf\"\necho -e \"ADEVICE plughw:0,0\\nPTT $port -RTS DTR\\nARATE 48000\" >> \"direwolf.digipeater.usb.conf\"\necho -e \"ADEVICE plughw:0,0\\nPTT $port -RTS DTR\\nARATE 48000\" >> \"direwolf.node.usb.conf\"\necho \"Config files updated for AIOC processor\"\necho \"Reboot DigiPi to write-protect the SD card\"\necho \".\"\necho \".\"\necho \"Serial port information for the applications:\"\necho \"$port\"\necho \".\"\necho \".\"\necho \".\"<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m a big fan (and Patreon) of the KM6LYW Radio DigiPi Project digipi.org DigiPi contains a comprehensive suite of digital utilities and applications for ham radio. Several of the utilities use the DireWolf AX.25 packet modem\/TNC and APRS encoder\/decoder. To help users of DigiPi and the URC (and AIOC) I&#8217;ve worked though the configuration elements [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":64,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/g1lro.uk\/index.php?rest_route=\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/g1lro.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/g1lro.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/g1lro.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/g1lro.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=63"}],"version-history":[{"count":12,"href":"https:\/\/g1lro.uk\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":583,"href":"https:\/\/g1lro.uk\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions\/583"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/g1lro.uk\/index.php?rest_route=\/wp\/v2\/media\/64"}],"wp:attachment":[{"href":"https:\/\/g1lro.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/g1lro.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/g1lro.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}