Topics

GPIO pins used for UDRC

VE3MIC
 

Hi,  I'm wondering if there is a list of the GPIO pins and their functions used by the UDRC.

Thanks in advance.

73 de Mike

 




John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223
   

VE3MIC
 

Thanks John, 

Is there any chance of someone having posted a 'truth table' of sorts to show which state the GPIO pins need to be set for the UDRC?

Some of the GPIO pins are being reset by another app?, and I'm trying to figure out what's going on.

Something is changing GPIO pin 7, as well as the mysterious resetting of the PCM audio level to zero.


Thanks again for your help.

73 de Mike

 

The fact that you have something interfering with GPIO.7 is probably what is messing up your PCM.  GPIO.7 is the control channel for the CODEC chip.

One application that can cross it up is AMBEserver, if it is not configured to avoid trying to access a PiDV.  (A PiDV and UDRC cannot both be on a Pi at the same time, a ThumbDV can but changes have to be made to the setup.)

In general, running extra applications other than ircddbgateway on a Pi configured as a dstarrepeater controller (running dstarrepeater/d) is not recommended.



On Fri, Feb 17, 2017 at 8:37 PM, VE3MIC via Groups.Io <ve3mic@...> wrote:

Thanks John, 

Is there any chance of someone having posted a 'truth table' of sorts to show which state the GPIO pins need to be set for the UDRC?

Some of the GPIO pins are being reset by another app?, and I'm trying to figure out what's going on.

Something is changing GPIO pin 7, as well as the mysterious resetting of the PCM audio level to zero.


Thanks again for your help.

73 de Mike




--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223
   

Jeremy McDermond
 

Mike --

This is what the firmware is supposed to set up on boot. Any line beginning with ‘#’ is a comment and is a pin that we don’t care about for the UDRC. The rest have a comment on the right hand side that indicates their function on the UDRC. Anything that is ALT0 is particularly important to the UDRC. The reset on pin 13 is also very essential. Note that these are *BCM* numbers. They are *NOT* wiringPi numbers, nor are they physical pin numbers. If you need to translate, refer to http://pinout.xyz.

# GPIO FUNCTION PULL
# ---- -------- ----
setgpio 2 ALT0 UP # I2C SDA
setgpio 3 ALT0 UP # I2C SDL
setgpio 4 ALT0 DOWN # AIC3204 MCLK
setgpio 5 INPUT DEFAULT # DR-1X PKSQL
setgpio 6 OUTPUT UP # DR-1X BASE
#setgpio 7 INPUT DEFAULT
#setgpio 8 INPUT DEFAULT
#setgpio 9 INPUT DEFAULT
#setgpio 10 INPUT DEFAULT
#setgpio 11 INPUT DEFAULT
setgpio 12 OUTPUT UP # DR-1X PTT
setgpio 13 OUTPUT DOWN # AIC3204 Reset
#setgpio 14 INPUT DEFAULT
#setgpio 15 INPUT DEFAULT
#setgpio 16 INPUT DEFAULT
#setgpio 17 INPUT DEFAULT
setgpio 18 ALT0 DEFAULT # I2S BCLK
setgpio 19 ALT0 DEFAULT # I2S LRCLK
setgpio 20 ALT0 DEFAULT # I2S DIN
setgpio 21 ALT0 DEFAULT # I2S DOUT
setgpio 22 OUTPUT UP # DR-1X EXT2
setgpio 23 OUTPUT UP # DR-1X EXT3
setgpio 24 OUTPUT UP # DR-1X EXT1
setgpio 25 INPUT DEFAULT # DR-1X SQLDET
setgpio 26 INPUT DEFAULT # AIC3204 MFP5
setgpio 27 OUTPUT UP # DR-1X EXT4

--
Jeremy McDermond
nh6z@...

On Feb 17, 2017, at 8:37 PM, VE3MIC via Groups.Io <ve3mic@...> wrote:

Thanks John,

Is there any chance of someone having posted a 'truth table' of sorts to show which state the GPIO pins need to be set for the UDRC?

Some of the GPIO pins are being reset by another app?, and I'm trying to figure out what's going on.

Something is changing GPIO pin 7, as well as the mysterious resetting of the PCM audio level to zero.



Thanks again for your help.

73 de Mike

VE3MIC
 

Thank you Jeremy for the explanation -very helpful
I had another application that appeared to be resetting GPIO pin7 (BCM pin4)
Unaware, I had the AMBEserver application installed, and as John had pointed out, may cause issues with the UDRC if a PiDV is also present on the same GPIO bus.

Thanks again.
73 de Mike


On Saturday, February 18, 2017 10:50 PM, Jeremy McDermond <mcdermj@...> wrote:


Mike --

This is what the firmware is supposed to set up on boot.  Any line beginning with ‘#’ is a comment and is a pin that we don’t care about for the UDRC.  The rest have a comment on the right hand side that indicates their function on the UDRC.  Anything that is ALT0 is particularly important to the UDRC.  The reset on pin 13 is also very essential.  Note that these are *BCM* numbers.  They are *NOT* wiringPi numbers, nor are they physical pin numbers.  If you need to translate, refer to http://pinout.xyz.

#            GPIO      FUNCTION      PULL
#            ----      --------      ----
setgpio      2        ALT0          UP        # I2C SDA
setgpio      3        ALT0          UP        # I2C SDL
setgpio      4        ALT0        DOWN        # AIC3204 MCLK
setgpio      5        INPUT        DEFAULT        # DR-1X PKSQL
setgpio      6        OUTPUT        UP        # DR-1X BASE
#setgpio      7        INPUT        DEFAULT
#setgpio      8        INPUT        DEFAULT
#setgpio      9        INPUT        DEFAULT
#setgpio      10        INPUT        DEFAULT
#setgpio      11        INPUT        DEFAULT
setgpio      12        OUTPUT        UP        # DR-1X PTT
setgpio      13        OUTPUT        DOWN        # AIC3204 Reset
#setgpio      14        INPUT        DEFAULT
#setgpio      15        INPUT        DEFAULT
#setgpio      16        INPUT        DEFAULT
#setgpio      17        INPUT        DEFAULT
setgpio      18        ALT0        DEFAULT        # I2S BCLK
setgpio      19        ALT0        DEFAULT        # I2S LRCLK
setgpio      20        ALT0        DEFAULT        # I2S DIN
setgpio      21        ALT0        DEFAULT        # I2S DOUT
setgpio      22        OUTPUT        UP        # DR-1X EXT2
setgpio      23        OUTPUT        UP        # DR-1X EXT3
setgpio      24        OUTPUT        UP        # DR-1X EXT1
setgpio      25        INPUT        DEFAULT        # DR-1X SQLDET
setgpio      26        INPUT        DEFAULT        # AIC3204 MFP5
setgpio      27        OUTPUT        UP        # DR-1X EXT4

--
Jeremy McDermond
nh6z@...

> On Feb 17, 2017, at 8:37 PM, VE3MIC via Groups.Io <ve3mic=yahoo.com@groups.io> wrote:
>
> Thanks John,
>
> Is there any chance of someone having posted a 'truth table' of sorts to show which state the GPIO pins need to be set for the UDRC?
>
> Some of the GPIO pins are being reset by another app?, and I'm trying to figure out what's going on.
>
> Something is changing GPIO pin 7, as well as the mysterious resetting of the PCM audio level to zero.
>
>
>
> Thanks again for your help.
>
> 73 de Mike
>
>





 

Mike,

If you want to run AMBEserver with USB on the same raspberry Pi as a UDRC, edit

/etc/opendv/ambeserver-ttyAMA0.conf
and
/etc/opendv/ambeserver-ttyS0.conf

And set 

AMBESERVER_FLAGS="-r"

This will prevent the server from attempting to reset on GPIO.7

On Sat, Feb 18, 2017 at 8:37 PM, VE3MIC via Groups.Io <ve3mic@...> wrote:
Thank you Jeremy for the explanation -very helpful
I had another application that appeared to be resetting GPIO pin7 (BCM pin4)
Unaware, I had the AMBEserver application installed, and as John had pointed out, may cause issues with the UDRC if a PiDV is also present on the same GPIO bus.

Thanks again.
73 de Mike



--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223