Topics

piardopc?


km4ack
 

I posted this in the main group but maybe that was the wrong place.

Is it possible to run piardopc by John Wiseman with the DRAWS hat? If so, what startup parameters would I use?

73,
Jason
KM4ACK
Find me on YouTube


 

I haven't had a chance to play with it yet and thus have not configured it.

From a high level, you should be able to use DRAWS™ for piardopc.  

You would configure the sound to use the ALSA sound channels (left or right) or install pulse audio and be able to select the left or right channel from it.  See: https://github.com/nwdigitalradio/split-channels 

Based on this document, you should be able to activate PTT on GPIO 12 ( -c GPIO=12) or 23 ( -c GPIO=23) depending which DIN connector you are using.

Use the DRAWS™ Manager tool to set levels, if using ALSA raw left and right. See  https://www.youtube.com/watch?v=v5C3cWVVz_A

Schematic and pinout is at https://nw-digital-radio.groups.io/g/udrc/files/DRAWSTech.pdf

On Wed, Jul 3, 2019 at 8:35 AM km4ack <jason.oleham@...> wrote:
I posted this in the main group but maybe that was the wrong place.

Is it possible to run piardopc by John Wiseman with the DRAWS hat? If so, what startup parameters would I use?

73,
Jason
KM4ACK
Find me on YouTube


--
John D. Hays
Kingston, WA
K7VE

 


km4ack
 

John,

Thank you for the information. I'll look into it and report back as time permits.

73,
Jason
KM4ACK
Find me on YouTube


km4ack
 

installed pulse audio (no errors seen)

sudo systemctl enable pulseaudio
returns
Failed to enable unit: File pulseaudio.service: No such file or directory

Just for grins I ran

./piardopc -c GPIO=12 8515 plughw:CARD=udrc,DEV=0 plughw:CARD=udrc,DEV=0
Below are the results. Note the second line. Same results with GPIO=23

------------------------------------------------------------------------------

ARDOPC Version 1.0.4.1i-BPQ
 GPIO=12 could not be opened
ARDOPC listening on port 8515
Capture Devices

Card 0, ID `ALSA', name `bcm2835 ALSA'

Card 1, ID `udrc', name `udrc'
  Device hw:1,0 ID `Universal Digital Radio Controller tlv320aic32x4-hifi-0', name `', 1 subdevices (1 available)
    2 channels,  sampling rate 8000..96000 Hz

Playback Devices

Card 0, ID `ALSA', name `bcm2835 ALSA'
  Device hw:0,0 ID `bcm2835 ALSA', name `bcm2835 ALSA', 7 subdevices (7 available)
    1..2 channels, sampling rate 8000..48000 Hz
  Device hw:0,1 ID `bcm2835 ALSA', name `bcm2835 IEC958/HDMI', 1 subdevices (1 available)
    2 channels,  sampling rate 44100..48000 Hz

Card 1, ID `udrc', name `udrc'
  Device hw:1,0 ID `Universal Digital Radio Controller tlv320aic32x4-hifi-0', name `', 1 subdevices (1 available)
    2 channels,  sampling rate 8000..96000 Hz

Opening Playback Device plughw:CARD=udrc,DEV=0 Rate 12000
Opening Capture Device plughw:CARD=udrc,DEV=0 Rate 12000
ARDOPC listening on port 8515
Input peaks = -856, 793
terminating on SIGINT


 

Try running as root (sudo), it may just be a permissions issue.

On Wed, Jul 3, 2019 at 4:53 PM km4ack <jason.oleham@...> wrote:
installed pulse audio (no errors seen)

sudo systemctl enable pulseaudio
returns
Failed to enable unit: File pulseaudio.service: No such file or directory

Just for grins I ran

./piardopc -c GPIO=12 8515 plughw:CARD=udrc,DEV=0 plughw:CARD=udrc,DEV=0
Below are the results. Note the second line. Same results with GPIO=23

------------------------------------------------------------------------------

ARDOPC Version 1.0.4.1i-BPQ
 GPIO=12 could not be opened
ARDOPC listening on port 8515
Capture Devices

Card 0, ID `ALSA', name `bcm2835 ALSA'

Card 1, ID `udrc', name `udrc'
  Device hw:1,0 ID `Universal Digital Radio Controller tlv320aic32x4-hifi-0', name `', 1 subdevices (1 available)
    2 channels,  sampling rate 8000..96000 Hz

Playback Devices

Card 0, ID `ALSA', name `bcm2835 ALSA'
  Device hw:0,0 ID `bcm2835 ALSA', name `bcm2835 ALSA', 7 subdevices (7 available)
    1..2 channels, sampling rate 8000..48000 Hz
  Device hw:0,1 ID `bcm2835 ALSA', name `bcm2835 IEC958/HDMI', 1 subdevices (1 available)
    2 channels,  sampling rate 44100..48000 Hz

Card 1, ID `udrc', name `udrc'
  Device hw:1,0 ID `Universal Digital Radio Controller tlv320aic32x4-hifi-0', name `', 1 subdevices (1 available)
    2 channels,  sampling rate 8000..96000 Hz

Opening Playback Device plughw:CARD=udrc,DEV=0 Rate 12000
Opening Capture Device plughw:CARD=udrc,DEV=0 Rate 12000
ARDOPC listening on port 8515
Input peaks = -856, 793
terminating on SIGINT



--
John D. Hays
Kingston, WA
K7VE

 


km4ack
 

So I was looking in the wrong direction. PTT is controlled in Pat instead of piARDOPc. PTT is working. Will have to try and deal with audio tomorrow evening. The learning curve continues.


73,
Jason
KM4ACK
Find me on YouTube


Basil Gunn
 

I had piardopc working with arim on the original UDRC & UDRC II hats
about a year ago. Should work with DRAWS hat as well.

Set you gpio depending on which mDin6 connector you are using.
For a DRAWS hat left = gpio 12, right = gpio 23. Make sure that direwolf
is NOT running.

Command line I used:
./piardopc 8515 plughw:1,0 plughw:1,0 -p GPIO=23

Added this to .asoundrc

pcm.ARDOP {
type rate
slave {
pcm "hw:1,0"
rate 12000
}
}

I found that using arim was useful in getting piardopc going because of
its debug facilities.

https://www.whitemesa.net/arim/arim.html

/Basil n7nix