Date   

Installing a DCV Barrel Connector on the UDRC-II

Budd Churchward
 

I just posted a video on installing a DC connector to the UDRC-II PCB.



View the Video on YouTube


Re: UDRC-II squelch on the Yaesu FT-897D

Stuart Longland VK4MSL
 

Hi Bryan,
On 18/11/16 00:27, Bryan Hoyer wrote:
Pullup should go on the bottom. see attached
Much appreciated, I'll have a look at this on the weekend.
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
...it's backed up on a tape somewhere.


Re: UDRC-II squelch on the Yaesu FT-897D

 

Pullup should go on the bottom. see attached

Bryan K7UDR

On Nov 16, 2016, at 2:11 PM, Stuart Longland VK4MSL <stuartl@...> wrote:

On 17/11/16 07:46, Bryan Hoyer wrote:
Stuart, have you made any progress on this problem?

I’d like to understand what’s going on and help get this resolved.

Hi,

No haven't tried yet, I don't get a lot of time in the evenings and fine
pitch SMD work really needs daylight to do it properly.  Identifying it
will be fun as none of the parts responsible seem to have designations.

I plan to hunt down that 4k7 resistor on the weekend and see where I can
tack on the pull-up.

Thanks in advance.
Regards,
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
 ...it's backed up on a tape somewhere.





Re: UDRC-II squelch on the Yaesu FT-897D

 

I’ll send you plots.

you’re using the Mini DIN-6 correct?

On Nov 16, 2016, at 2:11 PM, Stuart Longland VK4MSL <@VK4MSL> wrote:

On 17/11/16 07:46, Bryan Hoyer wrote:
Stuart, have you made any progress on this problem?

I’d like to understand what’s going on and help get this resolved.
Hi,

No haven't tried yet, I don't get a lot of time in the evenings and fine
pitch SMD work really needs daylight to do it properly. Identifying it
will be fun as none of the parts responsible seem to have designations.

I plan to hunt down that 4k7 resistor on the weekend and see where I can
tack on the pull-up.

Thanks in advance.
Regards,
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
...it's backed up on a tape somewhere.



Re: UDRC-II squelch on the Yaesu FT-897D

Stuart Longland VK4MSL
 

On 17/11/16 07:46, Bryan Hoyer wrote:
Stuart, have you made any progress on this problem?

I’d like to understand what’s going on and help get this resolved.
Hi,

No haven't tried yet, I don't get a lot of time in the evenings and fine
pitch SMD work really needs daylight to do it properly. Identifying it
will be fun as none of the parts responsible seem to have designations.

I plan to hunt down that 4k7 resistor on the weekend and see where I can
tack on the pull-up.

Thanks in advance.
Regards,
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
...it's backed up on a tape somewhere.


Re: UDRC-II squelch on the Yaesu FT-897D

 

Stuart, have you made any progress on this problem?

I’d like to understand what’s going on and help get this resolved.

Thanks,
Bryan K7UDR

On Nov 12, 2016, at 1:14 AM, Stuart Longland VK4MSL <@VK4MSL> wrote:

Hi all,

I've just recently got the UDRC-II board up and running on a Raspberry
Pi 3 single board computer, and this evening started experimenting with
it. I'm hoping to get the unit going for 1200-baud packet radio as a
starting point, as my local emergency comms group¹ use this extensively
in a couple of their events.

One thing I noticed when I went into the mixer… yep, the TLV320AIC3204
is a complex beast. I remember this from when I last had a skirmish
with this chip back around 2010 for Jacques Electronics, these things
have more knobs and dials than the cockpit of a fighter jet!

Thankfully, the "Simplified Block Diagram" in the data sheet provides
the road map to understanding that mixer. Judging from the schematics,
it appears the key channels are the Line Output and Line 1 inputs. The
headphone amplifier and Line 2 and 3 can all be disregarded.

I tried firing up the FT-897D I have here and first connected the Pi up
via the supplied Mini-DIN6 cable. I noticed the moment I did this, the
audio on the FT-897D shuts off.

This happens even if the Pi is turned off.

With the Pi running, I tried getting arecord/aplay to pipe audio from
the UDRC to a USB headset.

arecord -f dat -D hw:udrc - | aplay -D pulse -f dat -

I got no audio out.

I've observed this phenomenon before: on that occasion I was trying to
get the squelch output pin on that data jack to drive the base of a
transistor.

It seems *any* significant load on this pin causes the output of the
radio to mute.

The schematic shows the signal from this pin goes into a base resistor,
a second bias resistor to ground, into the base of a NPN transistor. I
haven't spotted where on the PCB it is, and no designation is given in
the schematic.

As a test, I tried rigging up a quick and dirty adapter to go via the
DB15-HD connector into a Mini-DIN6 I had laying around: I deliberately
skipped the squelch pin.

With that, I was able to get a somewhat noisy audio signal on the left
channel from the data port on the radio. (I had the set on a local
3m-band WFM radio station.)

Conceivably, I can make my own data cables hooking to the DB15-HD
connector. This is messy however, and I'd like to identify and fix the
underlying problem if possible.

I'm wondering if anyone else had similar experiences and knows which
resistor I can try replacing on the UDRC-II board to tweak the load seen
by the radio.
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
...it's backed up on a tape somewhere.

1. https://www.brisbanewicen.org.au/



Powering a Raspberry Pi and UDRC on a 12V supply

 

Some users of direwolf, dstarrepeater, and fldigi may find this useful, especially for mobile operation.

https://nw-digital-radio.groups.io/g/udrc/wiki/Powering-the-UDRC%E2%84%A2-and-Raspberry-Pi-with-12-VDC
--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223
   


Re: UDRC-II squelch on the Yaesu FT-897D

 

The Active Low SQL pin drives a 4.7kOhm resistor to the base of a transistor.

Some radios may require a pull-up resistor to any convenient voltage 3-12V. I’d go with a 4.7k to 3.3V up to 10k at 12V.

Bryan K7UDR

On Nov 12, 2016, at 1:14 AM, Stuart Longland VK4MSL <@VK4MSL> wrote:

Hi all,

I've just recently got the UDRC-II board up and running on a Raspberry
Pi 3 single board computer, and this evening started experimenting with
it. I'm hoping to get the unit going for 1200-baud packet radio as a
starting point, as my local emergency comms group¹ use this extensively
in a couple of their events.

One thing I noticed when I went into the mixer… yep, the TLV320AIC3204
is a complex beast. I remember this from when I last had a skirmish
with this chip back around 2010 for Jacques Electronics, these things
have more knobs and dials than the cockpit of a fighter jet!

Thankfully, the "Simplified Block Diagram" in the data sheet provides
the road map to understanding that mixer. Judging from the schematics,
it appears the key channels are the Line Output and Line 1 inputs. The
headphone amplifier and Line 2 and 3 can all be disregarded.

I tried firing up the FT-897D I have here and first connected the Pi up
via the supplied Mini-DIN6 cable. I noticed the moment I did this, the
audio on the FT-897D shuts off.

This happens even if the Pi is turned off.

With the Pi running, I tried getting arecord/aplay to pipe audio from
the UDRC to a USB headset.

arecord -f dat -D hw:udrc - | aplay -D pulse -f dat -

I got no audio out.

I've observed this phenomenon before: on that occasion I was trying to
get the squelch output pin on that data jack to drive the base of a
transistor.

It seems *any* significant load on this pin causes the output of the
radio to mute.

The schematic shows the signal from this pin goes into a base resistor,
a second bias resistor to ground, into the base of a NPN transistor. I
haven't spotted where on the PCB it is, and no designation is given in
the schematic.

As a test, I tried rigging up a quick and dirty adapter to go via the
DB15-HD connector into a Mini-DIN6 I had laying around: I deliberately
skipped the squelch pin.

With that, I was able to get a somewhat noisy audio signal on the left
channel from the data port on the radio. (I had the set on a local
3m-band WFM radio station.)

Conceivably, I can make my own data cables hooking to the DB15-HD
connector. This is messy however, and I'd like to identify and fix the
underlying problem if possible.

I'm wondering if anyone else had similar experiences and knows which
resistor I can try replacing on the UDRC-II board to tweak the load seen
by the radio.
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
...it's backed up on a tape somewhere.

1. https://www.brisbanewicen.org.au/



Re: Problem with duplicate packets

Edouard Lafargue
 

Doug, just mute ADCFGA Left, it will solve your problem.

Ed

(phone)


On Nov 13, 2016 15:02, "Doug Kingston" <dpk@...> wrote:
So setting channel 0 to 9600 does stop the second decode, but that kind of makes sense since only one modem approach will work for the packet (its 1200 baud).  This seems like a workaround rather then proper isolation of the audio paths and muting the second.

Is there a good block diagram of the UDRC modem and how the Alsa mixer controls map to that functional diagram?

-Doug-

On Sun, Nov 13, 2016 at 2:54 PM, John D Hays - K7VE <john@...> wrote:
Try setting the other channel (0) to 9600 baud.

On Sun, Nov 13, 2016 at 2:39 PM, Doug Kingston <dpk@...> wrote:
Currently only using one channel (Din-6, channel 1 I believe).  I would like to keep the option open to run both in the future.

On Sun, Nov 13, 2016 at 10:36 AM, John D Hays - K7VE <john@...> wrote:
Doug,

There are some things you can do. Are you only using one channel or two?  Which connector?  




On Sun, Nov 13, 2016 at 10:15 AM, Doug Kingston <dpk@...> wrote:
First let me say that the UDRC-II is a great device and paired with the Pi3 makes a really useful wireless TNC and digipeater.  Now form my (albeit minor) problem...

I am having a problem with duplicate packets showing up in the direwolf console.  In this example below (of a two packet exchange) note that the audio level is lower on the second printout of the packet.  Before starting direwolf, I set up the audio levels with the script udrc-setup.sh (script and output below).  My guess at this point is that the mixer is somehow misconfigured and that some of the audio from the Din-6 connector (channel 1) is being sent to channel 0 and so the packet is being decoded twice.  

What does the number in square brackets mean ([1.2] vs [0.4])?
How do I interpret the graphic with | and _?.

Diagnostic output from direwolf during which 2 packets were received by the radio (Icom 207H).

pi@kd7dk-pi:~ $ direwolf -c direwolf.udrc-1200.conf
Dire Wolf version 1.3
Includes optional support for:  gpsd

Reading config file direwolf.udrc-1200.conf
Audio device for both receive and transmit: plughw:CARD=udrc,DEV=0  (channels 0 & 1)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Channel 1: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Ready to accept AGW client application 0 on port 8000 ...
Ready to accept KISS client application on port 8001 ...
Use -p command line option to enable KISS pseudo terminal.

Now connected to IGate server noam.aprs2.net (198.50.198.139)
Check server status here http://198.50.198.139:14501


Digipeater WW7RA audio level = 73(30/29)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WW7RA audio level = 27(13/7)   [NONE]   _|||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 64(26/27)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 24(11/6)   [NONE]   __||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft
^C
QRT

udrc-setup.sh:

pi@kd7dk-pi:~ $ cat udrc-setup.sh
#!/bin/bash

amixer -c udrc -s << EOF
#  Set input and output levels to 0dB
#  input
sset 'ADC Level' -6.5dB
#  output
sset 'LO Driver Gain' 28.0dB
sset 'PCM' -41.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
alsactl save
EOF

Output from running udrc-setup.sh:

root@kd7dk-pi:/home/pi# ./udrc-setup.sh
Simple mixer control 'ADC Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 64
  Front Left: 11 [17%] [-6.50dB]
  Front Right: 11 [17%] [-6.50dB]
Simple mixer control 'LO Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 34 [97%] [28.00dB]
  Front Right: 34 [97%] [28.00dB]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 175
  Mono:
  Front Left: Playback 45 [26%] [-41.00dB]
  Front Right: Playback 45 [26%] [-41.00dB]
Simple mixer control 'CM_L to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'CM_R to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN1_R to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'Mic PGA',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'PGA Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 95
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'ADCFGA Right Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ADCFGA Left Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Attack Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Decay Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Gain Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Max PGA',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 127
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Threshold',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Signal Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 15
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Target Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 7
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Left',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Right',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HP DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'HP Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 0 [0%] [-6.00dB]
  Front Right: 0 [0%] [-6.00dB]
Simple mixer control 'HPL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPL Output Mixer IN1_L',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer IN1_R',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'LO DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'LOL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'LOR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Thanks for your help,
  -Doug-
  KD7DK




--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223
   





--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223
   



Re: Problem with duplicate packets

Doug Kingston
 

So setting channel 0 to 9600 does stop the second decode, but that kind of makes sense since only one modem approach will work for the packet (its 1200 baud).  This seems like a workaround rather then proper isolation of the audio paths and muting the second.

Is there a good block diagram of the UDRC modem and how the Alsa mixer controls map to that functional diagram?

-Doug-

On Sun, Nov 13, 2016 at 2:54 PM, John D Hays - K7VE <john@...> wrote:
Try setting the other channel (0) to 9600 baud.

On Sun, Nov 13, 2016 at 2:39 PM, Doug Kingston <dpk@...> wrote:
Currently only using one channel (Din-6, channel 1 I believe).  I would like to keep the option open to run both in the future.

On Sun, Nov 13, 2016 at 10:36 AM, John D Hays - K7VE <john@...> wrote:
Doug,

There are some things you can do. Are you only using one channel or two?  Which connector?  




On Sun, Nov 13, 2016 at 10:15 AM, Doug Kingston <dpk@...> wrote:
First let me say that the UDRC-II is a great device and paired with the Pi3 makes a really useful wireless TNC and digipeater.  Now form my (albeit minor) problem...

I am having a problem with duplicate packets showing up in the direwolf console.  In this example below (of a two packet exchange) note that the audio level is lower on the second printout of the packet.  Before starting direwolf, I set up the audio levels with the script udrc-setup.sh (script and output below).  My guess at this point is that the mixer is somehow misconfigured and that some of the audio from the Din-6 connector (channel 1) is being sent to channel 0 and so the packet is being decoded twice.  

What does the number in square brackets mean ([1.2] vs [0.4])?
How do I interpret the graphic with | and _?.

Diagnostic output from direwolf during which 2 packets were received by the radio (Icom 207H).

pi@kd7dk-pi:~ $ direwolf -c direwolf.udrc-1200.conf
Dire Wolf version 1.3
Includes optional support for:  gpsd

Reading config file direwolf.udrc-1200.conf
Audio device for both receive and transmit: plughw:CARD=udrc,DEV=0  (channels 0 & 1)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Channel 1: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Ready to accept AGW client application 0 on port 8000 ...
Ready to accept KISS client application on port 8001 ...
Use -p command line option to enable KISS pseudo terminal.

Now connected to IGate server noam.aprs2.net (198.50.198.139)
Check server status here http://198.50.198.139:14501


Digipeater WW7RA audio level = 73(30/29)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WW7RA audio level = 27(13/7)   [NONE]   _|||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 64(26/27)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 24(11/6)   [NONE]   __||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft
^C
QRT

udrc-setup.sh:

pi@kd7dk-pi:~ $ cat udrc-setup.sh
#!/bin/bash

amixer -c udrc -s << EOF
#  Set input and output levels to 0dB
#  input
sset 'ADC Level' -6.5dB
#  output
sset 'LO Driver Gain' 28.0dB
sset 'PCM' -41.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
alsactl save
EOF

Output from running udrc-setup.sh:

root@kd7dk-pi:/home/pi# ./udrc-setup.sh
Simple mixer control 'ADC Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 64
  Front Left: 11 [17%] [-6.50dB]
  Front Right: 11 [17%] [-6.50dB]
Simple mixer control 'LO Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 34 [97%] [28.00dB]
  Front Right: 34 [97%] [28.00dB]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 175
  Mono:
  Front Left: Playback 45 [26%] [-41.00dB]
  Front Right: Playback 45 [26%] [-41.00dB]
Simple mixer control 'CM_L to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'CM_R to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN1_R to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'Mic PGA',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'PGA Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 95
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'ADCFGA Right Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ADCFGA Left Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Attack Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Decay Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Gain Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Max PGA',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 127
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Threshold',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Signal Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 15
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Target Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 7
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Left',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Right',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HP DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'HP Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 0 [0%] [-6.00dB]
  Front Right: 0 [0%] [-6.00dB]
Simple mixer control 'HPL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPL Output Mixer IN1_L',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer IN1_R',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'LO DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'LOL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'LOR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Thanks for your help,
  -Doug-
  KD7DK




--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223
   





--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223
   



Re: Problem with duplicate packets

 

Try setting the other channel (0) to 9600 baud.

On Sun, Nov 13, 2016 at 2:39 PM, Doug Kingston <dpk@...> wrote:
Currently only using one channel (Din-6, channel 1 I believe).  I would like to keep the option open to run both in the future.

On Sun, Nov 13, 2016 at 10:36 AM, John D Hays - K7VE <john@...> wrote:
Doug,

There are some things you can do. Are you only using one channel or two?  Which connector?  




On Sun, Nov 13, 2016 at 10:15 AM, Doug Kingston <dpk@...> wrote:
First let me say that the UDRC-II is a great device and paired with the Pi3 makes a really useful wireless TNC and digipeater.  Now form my (albeit minor) problem...

I am having a problem with duplicate packets showing up in the direwolf console.  In this example below (of a two packet exchange) note that the audio level is lower on the second printout of the packet.  Before starting direwolf, I set up the audio levels with the script udrc-setup.sh (script and output below).  My guess at this point is that the mixer is somehow misconfigured and that some of the audio from the Din-6 connector (channel 1) is being sent to channel 0 and so the packet is being decoded twice.  

What does the number in square brackets mean ([1.2] vs [0.4])?
How do I interpret the graphic with | and _?.

Diagnostic output from direwolf during which 2 packets were received by the radio (Icom 207H).

pi@kd7dk-pi:~ $ direwolf -c direwolf.udrc-1200.conf
Dire Wolf version 1.3
Includes optional support for:  gpsd

Reading config file direwolf.udrc-1200.conf
Audio device for both receive and transmit: plughw:CARD=udrc,DEV=0  (channels 0 & 1)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Channel 1: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Ready to accept AGW client application 0 on port 8000 ...
Ready to accept KISS client application on port 8001 ...
Use -p command line option to enable KISS pseudo terminal.

Now connected to IGate server noam.aprs2.net (198.50.198.139)
Check server status here http://198.50.198.139:14501


Digipeater WW7RA audio level = 73(30/29)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WW7RA audio level = 27(13/7)   [NONE]   _|||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 64(26/27)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 24(11/6)   [NONE]   __||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft
^C
QRT

udrc-setup.sh:

pi@kd7dk-pi:~ $ cat udrc-setup.sh
#!/bin/bash

amixer -c udrc -s << EOF
#  Set input and output levels to 0dB
#  input
sset 'ADC Level' -6.5dB
#  output
sset 'LO Driver Gain' 28.0dB
sset 'PCM' -41.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
alsactl save
EOF

Output from running udrc-setup.sh:

root@kd7dk-pi:/home/pi# ./udrc-setup.sh
Simple mixer control 'ADC Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 64
  Front Left: 11 [17%] [-6.50dB]
  Front Right: 11 [17%] [-6.50dB]
Simple mixer control 'LO Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 34 [97%] [28.00dB]
  Front Right: 34 [97%] [28.00dB]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 175
  Mono:
  Front Left: Playback 45 [26%] [-41.00dB]
  Front Right: Playback 45 [26%] [-41.00dB]
Simple mixer control 'CM_L to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'CM_R to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN1_R to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'Mic PGA',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'PGA Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 95
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'ADCFGA Right Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ADCFGA Left Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Attack Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Decay Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Gain Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Max PGA',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 127
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Threshold',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Signal Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 15
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Target Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 7
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Left',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Right',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HP DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'HP Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 0 [0%] [-6.00dB]
  Front Right: 0 [0%] [-6.00dB]
Simple mixer control 'HPL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPL Output Mixer IN1_L',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer IN1_R',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'LO DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'LOL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'LOR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Thanks for your help,
  -Doug-
  KD7DK




--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223
   





--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223
   


Re: Problem with duplicate packets

Doug Kingston
 

Currently only using one channel (Din-6, channel 1 I believe).  I would like to keep the option open to run both in the future.

On Sun, Nov 13, 2016 at 10:36 AM, John D Hays - K7VE <john@...> wrote:
Doug,

There are some things you can do. Are you only using one channel or two?  Which connector?  




On Sun, Nov 13, 2016 at 10:15 AM, Doug Kingston <dpk@...> wrote:
First let me say that the UDRC-II is a great device and paired with the Pi3 makes a really useful wireless TNC and digipeater.  Now form my (albeit minor) problem...

I am having a problem with duplicate packets showing up in the direwolf console.  In this example below (of a two packet exchange) note that the audio level is lower on the second printout of the packet.  Before starting direwolf, I set up the audio levels with the script udrc-setup.sh (script and output below).  My guess at this point is that the mixer is somehow misconfigured and that some of the audio from the Din-6 connector (channel 1) is being sent to channel 0 and so the packet is being decoded twice.  

What does the number in square brackets mean ([1.2] vs [0.4])?
How do I interpret the graphic with | and _?.

Diagnostic output from direwolf during which 2 packets were received by the radio (Icom 207H).

pi@kd7dk-pi:~ $ direwolf -c direwolf.udrc-1200.conf
Dire Wolf version 1.3
Includes optional support for:  gpsd

Reading config file direwolf.udrc-1200.conf
Audio device for both receive and transmit: plughw:CARD=udrc,DEV=0  (channels 0 & 1)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Channel 1: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Ready to accept AGW client application 0 on port 8000 ...
Ready to accept KISS client application on port 8001 ...
Use -p command line option to enable KISS pseudo terminal.

Now connected to IGate server noam.aprs2.net (198.50.198.139)
Check server status here http://198.50.198.139:14501


Digipeater WW7RA audio level = 73(30/29)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WW7RA audio level = 27(13/7)   [NONE]   _|||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 64(26/27)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 24(11/6)   [NONE]   __||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft
^C
QRT

udrc-setup.sh:

pi@kd7dk-pi:~ $ cat udrc-setup.sh
#!/bin/bash

amixer -c udrc -s << EOF
#  Set input and output levels to 0dB
#  input
sset 'ADC Level' -6.5dB
#  output
sset 'LO Driver Gain' 28.0dB
sset 'PCM' -41.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
alsactl save
EOF

Output from running udrc-setup.sh:

root@kd7dk-pi:/home/pi# ./udrc-setup.sh
Simple mixer control 'ADC Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 64
  Front Left: 11 [17%] [-6.50dB]
  Front Right: 11 [17%] [-6.50dB]
Simple mixer control 'LO Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 34 [97%] [28.00dB]
  Front Right: 34 [97%] [28.00dB]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 175
  Mono:
  Front Left: Playback 45 [26%] [-41.00dB]
  Front Right: Playback 45 [26%] [-41.00dB]
Simple mixer control 'CM_L to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'CM_R to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN1_R to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'Mic PGA',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'PGA Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 95
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'ADCFGA Right Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ADCFGA Left Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Attack Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Decay Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Gain Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Max PGA',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 127
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Threshold',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Signal Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 15
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Target Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 7
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Left',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Right',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HP DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'HP Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 0 [0%] [-6.00dB]
  Front Right: 0 [0%] [-6.00dB]
Simple mixer control 'HPL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPL Output Mixer IN1_L',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer IN1_R',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'LO DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'LOL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'LOR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Thanks for your help,
  -Doug-
  KD7DK




--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223
   



Re: Problem with duplicate packets

 

Doug,

There are some things you can do. Are you only using one channel or two?  Which connector?  




On Sun, Nov 13, 2016 at 10:15 AM, Doug Kingston <dpk@...> wrote:
First let me say that the UDRC-II is a great device and paired with the Pi3 makes a really useful wireless TNC and digipeater.  Now form my (albeit minor) problem...

I am having a problem with duplicate packets showing up in the direwolf console.  In this example below (of a two packet exchange) note that the audio level is lower on the second printout of the packet.  Before starting direwolf, I set up the audio levels with the script udrc-setup.sh (script and output below).  My guess at this point is that the mixer is somehow misconfigured and that some of the audio from the Din-6 connector (channel 1) is being sent to channel 0 and so the packet is being decoded twice.  

What does the number in square brackets mean ([1.2] vs [0.4])?
How do I interpret the graphic with | and _?.

Diagnostic output from direwolf during which 2 packets were received by the radio (Icom 207H).

pi@kd7dk-pi:~ $ direwolf -c direwolf.udrc-1200.conf
Dire Wolf version 1.3
Includes optional support for:  gpsd

Reading config file direwolf.udrc-1200.conf
Audio device for both receive and transmit: plughw:CARD=udrc,DEV=0  (channels 0 & 1)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Channel 1: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Ready to accept AGW client application 0 on port 8000 ...
Ready to accept KISS client application on port 8001 ...
Use -p command line option to enable KISS pseudo terminal.

Now connected to IGate server noam.aprs2.net (198.50.198.139)
Check server status here http://198.50.198.139:14501


Digipeater WW7RA audio level = 73(30/29)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WW7RA audio level = 27(13/7)   [NONE]   _|||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 64(26/27)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 24(11/6)   [NONE]   __||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft
^C
QRT

udrc-setup.sh:

pi@kd7dk-pi:~ $ cat udrc-setup.sh
#!/bin/bash

amixer -c udrc -s << EOF
#  Set input and output levels to 0dB
#  input
sset 'ADC Level' -6.5dB
#  output
sset 'LO Driver Gain' 28.0dB
sset 'PCM' -41.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
alsactl save
EOF

Output from running udrc-setup.sh:

root@kd7dk-pi:/home/pi# ./udrc-setup.sh
Simple mixer control 'ADC Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 64
  Front Left: 11 [17%] [-6.50dB]
  Front Right: 11 [17%] [-6.50dB]
Simple mixer control 'LO Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 34 [97%] [28.00dB]
  Front Right: 34 [97%] [28.00dB]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 175
  Mono:
  Front Left: Playback 45 [26%] [-41.00dB]
  Front Right: Playback 45 [26%] [-41.00dB]
Simple mixer control 'CM_L to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'CM_R to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN1_R to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'Mic PGA',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'PGA Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 95
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'ADCFGA Right Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ADCFGA Left Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Attack Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Decay Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Gain Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Max PGA',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 127
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Threshold',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Signal Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 15
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Target Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 7
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Left',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Right',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HP DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'HP Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 0 [0%] [-6.00dB]
  Front Right: 0 [0%] [-6.00dB]
Simple mixer control 'HPL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPL Output Mixer IN1_L',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer IN1_R',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'LO DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'LOL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'LOR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Thanks for your help,
  -Doug-
  KD7DK




--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223
   


Re: Problem with duplicate packets

Edouard Lafargue
 

  Hi Doug,

  I assume you are using a standard 6-pin min-DIN, right ? The issue is that both the 1200b and your 9600b pins are connected to the UDRC, on channel 0 and channel 1 on Direwolf. So Direwolf sees each packet twice: one with a high audio level (9600baud), and one with lower audio.

   You can either configure Direwolf to only enable one channel, or you can go to Alsamixer and mute one of the channels (type "M" on either "ADCFGA L" or "ADCFGA R" on the playback screen (those should really be on the "recording" screen, but that's another story).

Hoping this helps!

Ed

On Sun, Nov 13, 2016 at 10:15 AM, Doug Kingston <dpk@...> wrote:
First let me say that the UDRC-II is a great device and paired with the Pi3 makes a really useful wireless TNC and digipeater.  Now form my (albeit minor) problem...

I am having a problem with duplicate packets showing up in the direwolf console.  In this example below (of a two packet exchange) note that the audio level is lower on the second printout of the packet.  Before starting direwolf, I set up the audio levels with the script udrc-setup.sh (script and output below).  My guess at this point is that the mixer is somehow misconfigured and that some of the audio from the Din-6 connector (channel 1) is being sent to channel 0 and so the packet is being decoded twice.  

What does the number in square brackets mean ([1.2] vs [0.4])?
How do I interpret the graphic with | and _?.

Diagnostic output from direwolf during which 2 packets were received by the radio (Icom 207H).

pi@kd7dk-pi:~ $ direwolf -c direwolf.udrc-1200.conf
Dire Wolf version 1.3
Includes optional support for:  gpsd

Reading config file direwolf.udrc-1200.conf
Audio device for both receive and transmit: plughw:CARD=udrc,DEV=0  (channels 0 & 1)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Channel 1: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Ready to accept AGW client application 0 on port 8000 ...
Ready to accept KISS client application on port 8001 ...
Use -p command line option to enable KISS pseudo terminal.

Now connected to IGate server noam.aprs2.net (198.50.198.139)
Check server status here http://198.50.198.139:14501


Digipeater WW7RA audio level = 73(30/29)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WW7RA audio level = 27(13/7)   [NONE]   _|||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 64(26/27)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 24(11/6)   [NONE]   __||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft
^C
QRT

udrc-setup.sh:

pi@kd7dk-pi:~ $ cat udrc-setup.sh
#!/bin/bash

amixer -c udrc -s << EOF
#  Set input and output levels to 0dB
#  input
sset 'ADC Level' -6.5dB
#  output
sset 'LO Driver Gain' 28.0dB
sset 'PCM' -41.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
alsactl save
EOF

Output from running udrc-setup.sh:

root@kd7dk-pi:/home/pi# ./udrc-setup.sh
Simple mixer control 'ADC Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 64
  Front Left: 11 [17%] [-6.50dB]
  Front Right: 11 [17%] [-6.50dB]
Simple mixer control 'LO Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 34 [97%] [28.00dB]
  Front Right: 34 [97%] [28.00dB]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 175
  Mono:
  Front Left: Playback 45 [26%] [-41.00dB]
  Front Right: Playback 45 [26%] [-41.00dB]
Simple mixer control 'CM_L to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'CM_R to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN1_R to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'Mic PGA',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'PGA Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 95
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'ADCFGA Right Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ADCFGA Left Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Attack Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Decay Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Gain Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Max PGA',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 127
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Threshold',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Signal Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 15
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Target Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 7
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Left',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Right',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HP DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'HP Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 0 [0%] [-6.00dB]
  Front Right: 0 [0%] [-6.00dB]
Simple mixer control 'HPL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPL Output Mixer IN1_L',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer IN1_R',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'LO DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'LOL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'LOR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Thanks for your help,
  -Doug-
  KD7DK



Problem with duplicate packets

Doug Kingston
 

First let me say that the UDRC-II is a great device and paired with the Pi3 makes a really useful wireless TNC and digipeater.  Now form my (albeit minor) problem...

I am having a problem with duplicate packets showing up in the direwolf console.  In this example below (of a two packet exchange) note that the audio level is lower on the second printout of the packet.  Before starting direwolf, I set up the audio levels with the script udrc-setup.sh (script and output below).  My guess at this point is that the mixer is somehow misconfigured and that some of the audio from the Din-6 connector (channel 1) is being sent to channel 0 and so the packet is being decoded twice.  

What does the number in square brackets mean ([1.2] vs [0.4])?
How do I interpret the graphic with | and _?.

Diagnostic output from direwolf during which 2 packets were received by the radio (Icom 207H).

pi@kd7dk-pi:~ $ direwolf -c direwolf.udrc-1200.conf
Dire Wolf version 1.3
Includes optional support for:  gpsd

Reading config file direwolf.udrc-1200.conf
Audio device for both receive and transmit: plughw:CARD=udrc,DEV=0  (channels 0 & 1)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Channel 1: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 3.
Ready to accept AGW client application 0 on port 8000 ...
Ready to accept KISS client application on port 8001 ...
Use -p command line option to enable KISS pseudo terminal.

Now connected to IGate server noam.aprs2.net (198.50.198.139)
Check server status here http://198.50.198.139:14501


Digipeater WW7RA audio level = 73(30/29)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WW7RA audio level = 27(13/7)   [NONE]   _|||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA*,WIDE2-1:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 64(26/27)   [NONE]   ||||||___
[1.2] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft

Digipeater WIDE2 (probably ERINB) audio level = 24(11/6)   [NONE]   __||||||_
[0.4] KA7RRA-9>T7RWRQ,WW7RA,ERINB,WIDE2*:`2MCl 5>/]"48}=<0x0d>
MIC-E, normal car (side view), Kenwood TM-D710, In Service
N 47 27.2100, W 122 49.3900, 0 MPH, course 25, alt 108 ft
^C
QRT

udrc-setup.sh:

pi@kd7dk-pi:~ $ cat udrc-setup.sh
#!/bin/bash

amixer -c udrc -s << EOF
#  Set input and output levels to 0dB
#  input
sset 'ADC Level' -6.5dB
#  output
sset 'LO Driver Gain' 28.0dB
sset 'PCM' -41.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
alsactl save
EOF

Output from running udrc-setup.sh:

root@kd7dk-pi:/home/pi# ./udrc-setup.sh
Simple mixer control 'ADC Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 64
  Front Left: 11 [17%] [-6.50dB]
  Front Right: 11 [17%] [-6.50dB]
Simple mixer control 'LO Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 34 [97%] [28.00dB]
  Front Right: 34 [97%] [28.00dB]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 175
  Mono:
  Front Left: Playback 45 [26%] [-41.00dB]
  Front Right: Playback 45 [26%] [-41.00dB]
Simple mixer control 'CM_L to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'CM_R to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: '10 kOhm'
Simple mixer control 'IN1_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN1_R to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_L to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN2_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Left Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_L to Right Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Left Mixer Negative Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'IN3_R to Right Mixer Positive Resistor',0
  Capabilities: enum
  Items: 'Off' '10 kOhm' '20 kOhm' '40 kOhm'
  Item0: 'Off'
Simple mixer control 'Mic PGA',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'PGA Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 95
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'ADCFGA Right Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ADCFGA Left Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Attack Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Decay Time',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Gain Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Hysteresis',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Max PGA',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 127
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Noise Threshold',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Signal Debounce',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 15
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Target Level',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 7
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'AGC Left',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AGC Right',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HP DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'HP Driver Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 35
  Front Left: 0 [0%] [-6.00dB]
  Front Right: 0 [0%] [-6.00dB]
Simple mixer control 'HPL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPL Output Mixer IN1_L',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HPR Output Mixer IN1_R',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'LO DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'LOL Output Mixer L_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'LOR Output Mixer R_DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Thanks for your help,
  -Doug-
  KD7DK


UDRC-II squelch on the Yaesu FT-897D

Stuart Longland VK4MSL
 

Hi all,

I've just recently got the UDRC-II board up and running on a Raspberry
Pi 3 single board computer, and this evening started experimenting with
it. I'm hoping to get the unit going for 1200-baud packet radio as a
starting point, as my local emergency comms group¹ use this extensively
in a couple of their events.

One thing I noticed when I went into the mixer… yep, the TLV320AIC3204
is a complex beast. I remember this from when I last had a skirmish
with this chip back around 2010 for Jacques Electronics, these things
have more knobs and dials than the cockpit of a fighter jet!

Thankfully, the "Simplified Block Diagram" in the data sheet provides
the road map to understanding that mixer. Judging from the schematics,
it appears the key channels are the Line Output and Line 1 inputs. The
headphone amplifier and Line 2 and 3 can all be disregarded.

I tried firing up the FT-897D I have here and first connected the Pi up
via the supplied Mini-DIN6 cable. I noticed the moment I did this, the
audio on the FT-897D shuts off.

This happens even if the Pi is turned off.

With the Pi running, I tried getting arecord/aplay to pipe audio from
the UDRC to a USB headset.

arecord -f dat -D hw:udrc - | aplay -D pulse -f dat -

I got no audio out.

I've observed this phenomenon before: on that occasion I was trying to
get the squelch output pin on that data jack to drive the base of a
transistor.

It seems *any* significant load on this pin causes the output of the
radio to mute.

The schematic shows the signal from this pin goes into a base resistor,
a second bias resistor to ground, into the base of a NPN transistor. I
haven't spotted where on the PCB it is, and no designation is given in
the schematic.

As a test, I tried rigging up a quick and dirty adapter to go via the
DB15-HD connector into a Mini-DIN6 I had laying around: I deliberately
skipped the squelch pin.

With that, I was able to get a somewhat noisy audio signal on the left
channel from the data port on the radio. (I had the set on a local
3m-band WFM radio station.)

Conceivably, I can make my own data cables hooking to the DB15-HD
connector. This is messy however, and I'd like to identify and fix the
underlying problem if possible.

I'm wondering if anyone else had similar experiences and knows which
resistor I can try replacing on the UDRC-II board to tweak the load seen
by the radio.
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
...it's backed up on a tape somewhere.

1. https://www.brisbanewicen.org.au/


UDRC Fun

Dan Porter (AI2M)
 

Here’s something I can’t do with my DVMega:

  • UDRC to FT-7800R operating on 70cm with arbitrary -0.500 mHz split
  • ID-51A and ID-5100A listening to the same reflector via the UDRC
  • Transmit with either radio without having to turn quickly down the audio on the other

I’ve been meaning to set it up this way for a long time and finally got around to it today.

73,
Dan - AI2M


Re: Setting up a UDRC on a Kenwood TKR-750/850 Repeater

 


Re: Pi Case

Mason AF5WN
 

Budd, I'm interested in a case with the power adapter but your email isn't listed on here. Would you get in contact with me at mason.creager@...


Setting up a UDRC on a Kenwood TKR-750/850 Repeater

Mason AF5WN
 

I have successfully setup a UDRC on a Kenwood TKR-850 repeater, it has been up and running for about 2 weeks. There were a lot of initial issues with getting it setup but with help from John Hays K7VE everything is running great. I would start with an interface cable first, I used a DB25 and a mini din 6.

Din pin 1 ---> DB25 pin 8 (TX Data)

Din pin 2 ---> DB25 pins 12 & 19 (GND)

Din pin 3 ---> DB25 pin 16 (PTT)

Din pin 4 ---> DB25 pin 10 (RX Data)


If you require further information use the UDRC pinout provided on the NW Digital Radio site and use the TKR-850 manual page 52 (the DB25 pinouts are the same on both the TKR-750 and TKR-850).

http://www.repeater-builder.com/kenwood/pdfs/tkr-850-revised.pdf

Next comes programming the TKR-750/850 repeater, this part is really simple. Remove all functions for the 6 programmable pins on the DB25, you won't need them for the UDRC. Do not set any encode/decode tones, remove the courtesy tone, remove the cw id, do not use multi table, and do not scan del/add. Set the operation mode to duplex, change the bandwidth to narrowband and finally set your frequency and hang-times as required.

Next setup the UDRC to your rpi following the wiki for converted analog repeaters. Setup the UDRC for using the mini din 6 port, using serial config 5, duplex mode 0, RX Inversion on, TX Inversion off. If you have any issues this is a good step by step dstarrepeaterconfig guide, I found it easier to use command line to setup.

https://nw-digital-radio.groups.io/g/udrc/topic/dstarrepeater_settings_for/1964456?p=,,,20,0,0,0::Relevance,,dstarrepeater,20,2,0,1964456

Next adjust your alsamixer settings. This was the most difficult part of the process but these settings should get you on the right path. I would adjust it using an ID-5100 since the RX is so picky. Load the standard DR-1X script for alsamixer. While dstarrepeater is running open alsamixer and set the PCM level to 0 dB and set the LO drive to 7 dB, save the config and store it. This is what got my specific repeater's audio levels just right, it may not work for you based on any internal or KPG programmed audio levels on the repeater. The best bet would be to set the PCM to 0 dB and adjust the LO level until it makes an ID-5100 happy.


The next step is to setup ircddbgateway per the wiki. I do not have internet at the repeater site  yet so this is just running in the background as a daemon. I will post an update when the internet is installed and the STARS Club gets back on the network.

I would highly recommend running ircddbgateway and dstarrepeater as daemons and programming everything via command line. It seems that there were less issues getting everything setup. I believe this is the first successful UDRC interface to a Kenwood TKR-750/850 repeater and the setup should be the same if not very similar to the TKR-751/851 series repeaters as well. When the internet gets setup, feel free to drop on in to the W5STR repeater and try it out. This will be the first wide area D-Star repeater system in Central Arkansas. We will also be participating in a lot of the same nets as the Memphis W4LET group.

Please feel free to respond if you have any questions.

Last but not least, I wanted to say thank you to the W4LET Memphis D-Start group for brainstorming with me on this project and the biggest help in the project John Hays K7VE. I couldn't of done any of this without your help and support.