Last edited · 67 revisions   


UDRC / DRAWS Raspberry Pi image

Provision the micro SD Card

Start Initial Configuration

  • Boot the newly provisioned microSD card

    login: pi
    passwd: digiberry
  • Immediately verify that the DRAWS hat and its driver are operating.

    • Open a console and type:

      aplay -l
  • You should see a line in the output that looks something like this:

    card 0: udrc [udrc], device 0: bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0 []
  • If you do NOT see udrc enumerated do NOT continue

    • Until the UDRC/DRAWS drivers are loaded the configuration scripts will NOT succeed.

Initial Configuration

  • Run script

    cd n7nix/config
  • The above script completes by rebooting the first time it is run

  • Upon logging in after the automatic reboot:

    • Verify DRAWS codec is still enumerated

      aplay -l

Set your ALSA configuration

  • You must set your ALSA configuration for your particular radio at this time

    • Also note which connector you are using as you can vary ALSA settings based on which channel you are using
    • On a DRAWS hat left connector is left channel
    • On a UDRC II hat mDin6 connector is right channel
    • You also must route the AFOUT, compensated receive signal or the DISC, discriminator receive signal with ALSA settings.
    • Verify your ALSA settings by running
  • Link to verify your installation is working properly

  • NOTE: running the init.cfg script leaves AX.25 & direwolf NOT running & NOT enabled

    • The default config is to run HF applications like js8call, wsjtx and FLdigi
    • If you are not interested in packet and want to run an HF app then go ahead & do that now.

If you want to run Packet Turn on Direwolf & AX.25

  • If you want to run a packet application or run some tests on the DRAWS board that requires direwolf then enable AX.25 and Direwolf by running the following command:

Reboot to verify Packet configuration
  • Now reboot and verify by running:

    ax25-status -d

More Packet Program Options

  • After confirming that the core functionality works you can configure other packet programs that will use direwolf such as rmsgw, paclink-unix, etc:
cd n7nix/config
# Become root
sudo su
# If you want to run a Linux RMS Gateway
./ rmsgw
# If you want to send & receive Winlink messages
./ plu

For HAM apps that do NOT use direwolf

  • If you previously ran a packet app and now want to run some other program that does NOT use direwolf like: js8call, wsjtx, FLdigi, then do this:
  • This will stop direwolf & all the AX.25 services allowing another program to use the DRAWS sound card.
  • Soundcard device

    • Configure->Config dialog->Soundcard->Devices
    • Click on PortAudio check box and deselect all others

      capture: udrc: bcm2835-i2s-tlv320aic32x4-hifi-0
      playback: udrc: bcm2835-i2s-tlv320aic32x4-hifi-0
  • PTT

    • Configuration->Rig->GPIO
    • For left mDin6 connector
      • Select BCM 12, check box =1
    • For right mDin6 connector
      • Select BCM 23, check box =1
  • Soundcard device

    • File->Settings-Audio->Modulation Sound Card

      Input:  plughw:CARD=udrc,DEV=0
      Output: plughw:CARD=udrc,DEV=0
  • PTT

    • The following allows JS8Call to execute an external script for controlling a rig's PTT:
    • File->Settings->Radio->Rig Options->Advanced->PTT Command

  • Script defaults to using left connector, to use right connector

    /home/pi/bin/ -r

To Enable the RPi On-Board Audio Device

  • The default configuration enables the RPi on board bcm2835 sound device
  • If for some reason you want to disable the sound device then:

    • As root comment the following line in /boot/config.txt
    • ie. put a hash character at the beginning of the line.

  • You need to reboot for any changes in /boot/config.txt to take effect

  • after a reboot verify by listing all the sound playback hardware devices:

    aplay -l

Make your own Raspberry Pi image

  • The driver required by the NW Digital Radio is now in the main line Linux kernel (since kernel version 4.19.66)
  • To make your own Raspberry Pi image
    • Download the lastest version of Raspbian from here
    • Choose one of:
      • Raspbian Buster Lite
      • Raspbian Buster with desktop
      • desktop and recommended software
  • Add the following lines to the bottom of /boot/config.txt

  • If you want to ssh into your device then add an ssh file to the /boot directory

    touch /boot/ssh
  • Boot the new micro SD card.