Re: DRAWS downloadable Image? #draws #earlyadopters #setup #compassimage

 

Hi August,

The holidays caught us and we don't have the final alpha image ready yet.  However, you can get your DRAWS running with just a bit of work.

First, download http://archive.compasslinux.org/images/image_2018-11-18-compass.zip
Uncompress the image with a zip program
Burn it to a SD card using Etcher or other image copying program (dd on Linux for example)
Boot the image and edit /boot/config.txt and change the last line from dtoverlay=udrc to dtoverlay=draws
Save and reboot.

You should now have an image for DRAWS.

Verifying DRAWS and UDRC Hardware

When using Compass Linux, the command aplay -L will list the sound devices including your DRAWS or UDRC (DRAWS may show UDRC, the sound subsystem is the same).  You can also find the device under /sys/firmware/devicetree/base/hat by looking at the contents of the product file and vendor file.  On DRAWS, the GPS serial port is at /dev/ttySC0 and pulse per second device is at /dev/pps0.

Get the GPS running, if you have an antenna attached - see wiki page

Install chrony and direwolf
sudo apt-get install chrony direwolf

Simple, starter direwolf.conf
-----------------------------------------------------snip--------------------------------------------------------------------------------
ADEVICE plughw:CARD=udrc,DEV=0
ARATE 48000
ACHANNELS 2
#Port 0
CHANNEL 0
MYCALL CALLSIGN-1
MODEM 1200
PTT GPIO 12
#Port 1
CHANNEL 1
MYCALL CALLSIGN-2
MODEM 9600
PTT GPIO 23
AGWPORT 8000
KISSPORT 8001
TBEACON delay=1 sendto=0 every=10 overlay=S symbol="digi" power=5 height=20 gain=6 comment="DRAWS 0 1200" via=WIDE1-1,WIDE2-1
TBEACON delay=1 sendto=1 every=10 overlay=S symbol="digi" power=5 height=20 gain=6 comment="DRAWS 1 9600" via=WIDE1-1,WIDE2-1
DIGIPEAT 0 0 ^WIDE[3-7]-[1-7]$|^TEST$ ^WIDE[12]-[12]$ TRACE
DIGIPEAT 1 1 ^WIDE[3-7]-[1-7]$|^TEST$ ^WIDE[12]-[12]$ TRACE
DIGIPEAT 0 1 ^WIDE[3-7]-[1-7]$|^TEST$ ^WIDE[12]-[12]$ TRACE
DIGIPEAT 1 0 ^WIDE[3-7]-[1-7]$|^TEST$ ^WIDE[12]-[12]$ TRACE
#IGLOGIN YOUR INTERNET LOGIN AND PASSCODE FOR APRS REPORTING
IGLOGIN XXXX 0000
TBEACON sendto=IG delay=1 every=60:00 symbol="igate" overlay=R
IGTXLIMIT 6 10
GPSD localhost
-----------------------------------------------------------end snip---------------------------------------------------------------------------------------------
Simple starter chrony.conf (/etc/chrony/chrony.conf)
-----------------------------------------------------------snip----------------------------------------------------------------------------------------------
keyfile /etc/chrony/chrony.keys
driftfile /var/lib/chrony/chrony.drift
logdir /var/log/chrony
maxupdateskew 100.0
makestep 1 3
refclock SHM 0 refid GPS precision 1e-3 offset 0.5 delay 0.2 poll 3 trust require
refclock SHM 2 refid PPS precision 1e-9 poll 3 trust
----------------------------------------------------------end snip----------------------------------------------------------------------------------------------- 
script to set initial sound chip values, you may need to adjust for your radio (use alsamixer to tweak the levels)
----------------------------------------------------------snip-----------------------------------------------------------------------------------------------
#!/bin/bash

amixer -c udrc -s << EOF
#  Set input and output levels to 0dB
sset 'ADC Level' -2.0dB
sset 'LO Driver Gain' 0dB
sset 'PCM' 0.0dB

#  Turn on AFOUT
sset 'CM_L to Left Mixer Negative Resistor' '10 kOhm'
sset 'IN1_L to Left Mixer Positive Resistor' '10 kOhm'

#  Turn on DISCOUT
sset 'CM_R to Right Mixer Negative Resistor' '10 kOhm'
sset 'IN1_R to Right Mixer Positive Resistor' '10 kOhm'

#  Turn off unnecessary pins
sset 'IN1_L to Right Mixer Negative Resistor' 'Off'
sset 'IN1_R to Left Mixer Positive Resistor' 'Off'
sset 'IN2_L to Left Mixer Positive Resistor' 'Off'
sset 'IN2_L to Right Mixer Positive Resistor' 'Off'
sset 'IN2_R to Left Mixer Negative Resistor' 'Off'
sset 'IN2_R to Right Mixer Positive Resistor' 'Off'
sset 'IN3_L to Left Mixer Positive Resistor' 'Off'
sset 'IN3_L to Right Mixer Negative Resistor' 'Off'
sset 'IN3_R to Left Mixer Negative Resistor' 'Off'
sset 'IN3_R to Right Mixer Positive Resistor' 'Off'

sset 'Mic PGA' off
sset 'PGA Level' 0

# Disable and clear AGC
sset 'ADCFGA Right Mute' off
sset 'ADCFGA Left Mute' off
sset 'AGC Attack Time' 0
sset 'AGC Decay Time' 0
sset 'AGC Gain Hysteresis' 0
sset 'AGC Hysteresis' 0
sset 'AGC Max PGA' 0
sset 'AGC Noise Debounce' 0
sset 'AGC Noise Threshold' 0
sset 'AGC Signal Debounce' 0
sset 'AGC Target Level' 0
sset 'AGC Left' off
sset 'AGC Right' off

# Turn off High Power output
sset 'HP DAC' off
sset 'HP Driver Gain' 0
sset 'HPL Output Mixer L_DAC' off
sset 'HPR Output Mixer R_DAC' off
sset 'HPL Output Mixer IN1_L' off
sset 'HPR Output Mixer IN1_R' off

#  Turn on the LO DAC
sset 'LO DAC' on

#  Turn on AFIN
sset 'LOL Output Mixer L_DAC' on

#  Turn on TONEIN
sset 'LOR Output Mixer R_DAC' on
EOF
alsactl store
------------------------------------------------------------- end snip ----------------------------------------------------------------------



Install and configure other apps. 
Watch for updates in the groups.io forums.


On Fri, Nov 23, 2018 at 7:09 PM August Johnson <augjohnson@...> wrote:

The support page says:

Is there a prebuilt image for DRAWS?

The short answer is Yes.

Starting with delivery of the DRAWS HAT, a downloadable image will be available to run the DRAWS workstation.  It will contain the current version of Raspbian (Stretch) including preloaded DRAWS HAT driver and a selection of applications that have been compiled for and tested on the DRAWS platform.

I now have my DRAWS HAT delivered, where do I find this downloadable image?

Thanks,

August KG7BZ


--


John D. Hays
Edmonds, WA
K7VE

   

Join udrc@nw-digital-radio.groups.io to automatically receive all group messages.