Date   
Re: Installing a DCV Barrel Connector on the UDRC-II

 

On Fri, Nov 18, 2016 at 4:48 PM, Budd Churchward <budd@...> wrote:

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



View the Video on YouTube




--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223
   

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@...